blob: 5e8a647bc97e2e989a9a351f050d63c6c2ba4098 [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'
Cristyff282552015-09-19 16:49:39 -0400592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristy3ed852e2009-09-05 21:47:34 +0000639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000646OSX_GCOV_LDFLAG
cristyfa161182012-12-19 15:45:28 +0000647MAGICK_FEATURES
cristy422d5502012-12-22 22:20:57 +0000648MAGICK_DELEGATES
cristy3ed852e2009-09-05 21:47:34 +0000649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
cristy3ed852e2009-09-05 21:47:34 +0000687windows_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000688ghostscript_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy5a3dc992014-12-05 19:50:04 +0000690apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000691PrintDelegate
692ZipDelegate
693XPSDelegate
694WWWDecodeDelegate
695WMFDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000696WebPEncodeDelegate
697WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000698UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000700SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000702RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000703RMDelegate
704RLEEncodeDelegate
705PSDelegate
706POVDelegate
707PGPDecodeDelegate
708PCLDelegate
709MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000710MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000711MPEGEncodeDelegate
712MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000713MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000714MANDelegate
715LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000716LPRDelegate
717LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000718JXREncodeDelegate
719JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720ILBMEncodeDelegate
721ILBMDecodeDelegate
722HTMLDecodeDelegate
723HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000724GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000725GnuplotDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000726EditorDelegate
727EchoDelegate
cristy66f238e2014-05-16 12:21:48 +0000728DisplayDelegate
729ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000730DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000731DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000732DNGDecodeDelegate
733CatDelegate
cristy3ed852e2009-09-05 21:47:34 +0000734BrowseDelegate
735BZIPDelegate
736BlenderDecodeDelegate
cristy16b412d2014-12-15 11:09:48 +0000737BGPEncodeDelegate
738BGPDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000739AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000740SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000741SHAREARCH_RELATIVE_PATH
742SHAREARCH_DIRNAME
743SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000746INSTALL_DOC_FALSE
747INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000748DOCUMENTATION_PATH
749FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000750FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000751CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000752CODER_DIRNAME
753MODULES_PATH
754MODULES_RELATIVE_PATH
755MODULES_DIRNAME
756MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000757LIB_BIN_DIR_PATH
758LIB_BIN_DIR_RELATIVE_PATH
759LIB_BIN_DIR
760LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000761LIBRARY_PATH
762EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000763INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000764INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000765PERLMAINCC
cristy73bd4a52010-10-05 11:24:23 +0000766XML_DELEGATE_FALSE
767XML_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000768XML_LIBS
769XML_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000770WMF_LIBS
771WMF_CFLAGS
cristyebc8f692015-06-16 10:36:30 +0000772WMF_DELEGATE_FALSE
773WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000774WEBP_LIBS
775WEBP_DELEGATE_FALSE
776WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000778TIFF_DELEGATE_FALSE
779TIFF_DELEGATE_TRUE
780CAIRO_DELEGATE_FALSE
781CAIRO_DELEGATE_TRUE
782RSVG_DELEGATE_FALSE
783RSVG_DELEGATE_TRUE
784CAIRO_SVG_LIBS
785CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000786RSVG_LIBS
787RSVG_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000788PNG_DELEGATE_FALSE
789PNG_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000790PNG_LIBS
791PNG_CFLAGS
cristya054b762012-03-26 23:16:00 +0000792PANGOCAIRO_DELEGATE_FALSE
793PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000794PANGO_DELEGATE_FALSE
795PANGO_DELEGATE_TRUE
796PANGO_LIBS
797PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000798OPENEXR_DELEGATE_FALSE
799OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000800OPENEXR_LIBS
801OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000802LZMA_DELEGATE_FALSE
803LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000804LZMA_LIBS
805LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000806LQR_DELEGATE_FALSE
807LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000808LQR_LIBS
809LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000810LIBOPENJP2_DELEGATE_FALSE
811LIBOPENJP2_DELEGATE_TRUE
812LIBOPENJP2_LIBS
813LIBOPENJP2_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000814LCMS_LIBS
815LCMS_CFLAGS
cristyfa2b4c32015-07-01 13:12:01 +0000816LCMS_DELEGATE_FALSE
817LCMS_DELEGATE_TRUE
cristyb054e072015-06-05 20:35:43 +0000818LCMS2_LIBS
819LCMS2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000820JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821JPEG_DELEGATE_FALSE
822JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824JBIG_DELEGATE_FALSE
825JBIG_DELEGATE_TRUE
826GVC_DELEGATE_FALSE
827GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828GVC_LIBS
829GVC_CFLAGS
830GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000831GS_DELEGATE_FALSE
832GS_DELEGATE_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000833FREETYPE_DELEGATE_FALSE
834FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000835FREETYPE_LIBS
836FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000837FONTCONFIG_DELEGATE_FALSE
838FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000839FONTCONFIG_LIBS
840FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000841DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000842DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000843DJVU_DELEGATE_FALSE
844DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000845ddjvuapi_LIBS
846ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000847FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000848FPX_DELEGATE_FALSE
849FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000850FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000851FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000852FFTW_DELEGATE_FALSE
853FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000854fftw3_LIBS
855fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000856DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857DPS_DELEGATE_FALSE
858DPS_DELEGATE_TRUE
859AUTOTRACE_DELEGATE_FALSE
860AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000861AUTOTRACE_LIBS
862AUTOTRACE_CFLAGS
863LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000864WITH_LTDL_FALSE
865WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000866ZLIB_DELEGATE_FALSE
867ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000868ZLIB_LIBS
869ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000870XEXT_LIBS
871X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000872X11_DELEGATE_FALSE
873X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000874X_EXTRA_LIBS
875X_LIBS
876X_PRE_LIBS
877X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000878XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000879BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000880BZLIB_DELEGATE_FALSE
881BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000882CCMALLOCDelegate
883UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000884HasUMEM_FALSE
885HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000886JEMALLOC_LIBS
887HasJEMALLOC_FALSE
888HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000889GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000890WITH_MAGICK_PLUS_PLUS_FALSE
891WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000892OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000893MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000894POW_LIB
895LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000896UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000897UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000900UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000901UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000902INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000903INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000904UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000905UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000906INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000907INT32_T
908UINT16_T
909INT16_T
910UINT8_T
911INT8_T
912LIBRARY_EXTRA_CPPFLAGS
913MODULE_EXTRA_CPPFLAGS
914LIBSTDCLDFLAGS
915PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000916MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000917MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000918QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000919LEGACY_SUPPORT_FALSE
920LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000921MAINT
922MAINTAINER_MODE_FALSE
923MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000924MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000925WITH_MODULES_FALSE
926WITH_MODULES_TRUE
927WITH_SHARED_LIBS_FALSE
928WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000930CXXCPP
Cristy15f22012015-11-14 17:51:30 -0500931LT_SYS_LIBRARY_PATH
cristy73bd4a52010-10-05 11:24:23 +0000932OTOOL64
933OTOOL
934LIPO
935NMEDIT
936DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000937MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000938RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000939NM
940ac_ct_DUMPBIN
941DUMPBIN
942LIBTOOL
943OBJDUMP
944DLLTOOL
945AS
cristy3ed852e2009-09-05 21:47:34 +0000946LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000947CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000948CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000949OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000950THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000951PTHREAD_CFLAGS
952PTHREAD_LIBS
953PTHREAD_CC
954ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000955pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000956SHAREARCH_DIR
957INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000958WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000959USING_CL_FALSE
960USING_CL_TRUE
961CYGWIN_BUILD_FALSE
962CYGWIN_BUILD_TRUE
963WIN32_NATIVE_BUILD_FALSE
964WIN32_NATIVE_BUILD_TRUE
965WINGDI32_DELEGATE_FALSE
966WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000967GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000968HAVE_LD_VERSION_SCRIPT_FALSE
969HAVE_LD_VERSION_SCRIPT_TRUE
cristy146497a2015-05-17 22:46:16 +0000970PKG_CONFIG_LIBDIR
971PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000972PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000973PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000974LN_S
cristy3ed852e2009-09-05 21:47:34 +0000975LD
cristy73bd4a52010-10-05 11:24:23 +0000976FGREP
977SED
978am__fastdepCXX_FALSE
979am__fastdepCXX_TRUE
980CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000981ac_ct_CXX
982CXXFLAGS
983CXX
cristy9e007fe2015-01-03 16:05:07 +0000984ac_ct_AR
985AR
cristya0b81c32010-01-22 02:54:33 +0000986EGREP
987GREP
988CPP
cristy73bd4a52010-10-05 11:24:23 +0000989am__fastdepCC_FALSE
990am__fastdepCC_TRUE
991CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000992am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000993AMDEPBACKSLASH
994AMDEP_FALSE
995AMDEP_TRUE
996am__quote
997am__include
998DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000999OBJEXT
1000EXEEXT
1001ac_ct_CC
1002CPPFLAGS
1003LDFLAGS
1004CFLAGS
1005CC
1006DIRSEP
1007MAGICK_FILTER_MODULE_PATH
1008MAGICK_CONFIGURE_BUILD_PATH
1009MAGICK_CONFIGURE_SRC_PATH
1010MAGICK_CODER_MODULE_PATH
1011MAN_DIR
1012INFO_DIR
1013PERSISTINCLUDE_DIR
1014INCLUDE_DIR
1015LIB_DIR
1016LOCALSTATE_DIR
1017SHAREDSTATE_DIR
1018SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001019DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001020DATA_DIR
1021LIBEXEC_DIR
1022SBIN_DIR
1023BIN_DIR
1024EXEC_PREFIX_DIR
1025PREFIX_DIR
1026CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001027MAGICKPP_LIB_VERSION_TEXT
1028MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001029MAGICK_LIB_VERSION_NUMBER
1030MAGICK_LIB_VERSION_TEXT
1031MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001032PACKAGE_VERSION_ADDENDUM
1033PACKAGE_RELEASE_DATE
1034PACKAGE_LIB_VERSION_NUMBER
1035PACKAGE_LIB_VERSION
1036PACKAGE_CHANGE_DATE
1037PACKAGE_RELEASE
1038PACKAGE_PERL_VERSION
1039MAGICKPP_LIBRARY_VERSION_INFO
1040MAGICKPP_LIBRARY_CURRENT_MIN
1041MAGICKPP_LIBRARY_AGE
1042MAGICKPP_LIBRARY_REVISION
1043MAGICKPP_LIBRARY_CURRENT
1044MAGICK_LIBRARY_VERSION_INFO
1045MAGICK_LIBRARY_CURRENT_MIN
1046MAGICK_LIBRARY_AGE
1047MAGICK_LIBRARY_REVISION
1048MAGICK_LIBRARY_CURRENT
Cristyfbb8d802015-09-02 11:41:34 -04001049MAGICK_GIT_REVISION
cristy9af1cbf2014-12-28 22:03:09 +00001050MAGICK_VERSION
1051MAGICK_PATCHLEVEL_VERSION
1052MAGICK_MICRO_VERSION
1053MAGICK_MINOR_VERSION
1054MAGICK_MAJOR_VERSION
1055MAGICK_TARGET_OS
1056MAGICK_TARGET_VENDOR
1057MAGICK_TARGET_CPU
1058CONFIGURE_ARGS
1059DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001060AM_BACKSLASH
1061AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001062AM_DEFAULT_V
1063AM_V
cristy73bd4a52010-10-05 11:24:23 +00001064am__untar
1065am__tar
1066AMTAR
1067am__leading_dot
1068SET_MAKE
1069AWK
1070mkdir_p
1071MKDIR_P
1072INSTALL_STRIP_PROGRAM
1073STRIP
1074install_sh
1075MAKEINFO
1076AUTOHEADER
1077AUTOMAKE
1078AUTOCONF
1079ACLOCAL
1080VERSION
1081PACKAGE
1082CYGPATH_W
1083am__isrc
1084INSTALL_DATA
1085INSTALL_SCRIPT
1086INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001087target_os
1088target_vendor
1089target_cpu
1090target
1091host_os
1092host_vendor
1093host_cpu
1094host
1095build_os
1096build_vendor
1097build_cpu
1098build
cristy3ed852e2009-09-05 21:47:34 +00001099target_alias
1100host_alias
1101build_alias
1102LIBS
1103ECHO_T
1104ECHO_N
1105ECHO_C
1106DEFS
1107mandir
1108localedir
1109libdir
1110psdir
1111pdfdir
1112dvidir
1113htmldir
1114infodir
1115docdir
1116oldincludedir
1117includedir
1118localstatedir
1119sharedstatedir
1120sysconfdir
1121datadir
1122datarootdir
1123libexecdir
1124sbindir
1125bindir
1126program_transform_name
1127prefix
1128exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001129PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001130PACKAGE_BUGREPORT
1131PACKAGE_STRING
1132PACKAGE_VERSION
1133PACKAGE_TARNAME
1134PACKAGE_NAME
1135PATH_SEPARATOR
1136SHELL'
1137ac_subst_files=''
1138ac_user_opts='
1139enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001140enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001141enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001142enable_dependency_tracking
1143with_gnu_ld
1144with_dmalloc
cristya0459972013-11-03 18:09:35 +00001145with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001146enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001147enable_bounds_checking
1148enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001149with_includearch_dir
1150with_sharearch_dir
cristy2ec87cc2013-02-18 17:46:50 +00001151with_pkgconfigdir
cristy3ed852e2009-09-05 21:47:34 +00001152with_threads
1153enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001154enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001155enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001156enable_shared
1157enable_static
1158with_pic
1159enable_fast_install
Cristy15f22012015-11-14 17:51:30 -05001160with_aix_soname
cristyda16f162011-02-19 23:52:17 +00001161with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001162enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001163with_modules
1164enable_delegate_build
1165enable_deprecated
1166enable_installed
1167enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001168enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001169enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001170enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001171enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001172enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001173enable_ccmalloc
1174enable_efence
1175enable_prof
1176enable_gprof
1177enable_gcov
1178with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001179enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001180with_quantum_depth
1181with_cache
1182with_frozenpaths
1183with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001184with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001185with_perl
1186with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001187with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001188with_umem
1189with_libstdc
1190with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001191with_x
cristy3ed852e2009-09-05 21:47:34 +00001192with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001193with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001194with_autotrace
1195with_dps
cristy430a7312010-01-21 20:44:04 +00001196with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001197with_fftw
1198with_fpx
cristy853d9902014-08-21 18:50:43 +00001199with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001200with_fontconfig
1201with_freetype
1202with_gslib
1203with_fontpath
1204with_gs_font_dir
1205with_gvc
1206with_jbig
1207with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001208with_lcms
cristy99db3872014-01-01 15:11:34 +00001209with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001210with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001211with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001212with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001213with_pango
cristy3ed852e2009-09-05 21:47:34 +00001214with_png
1215with_rsvg
1216with_tiff
cristyb1860752011-03-14 00:27:46 +00001217with_webp
cristy3ed852e2009-09-05 21:47:34 +00001218with_windows_font_dir
1219with_wmf
1220with_xml
cristydd17feb2014-03-05 02:06:32 +00001221enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001222'
1223 ac_precious_vars='build_alias
1224host_alias
1225target_alias
1226CC
1227CFLAGS
1228LDFLAGS
1229LIBS
1230CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001231CPP
cristy3ed852e2009-09-05 21:47:34 +00001232CXX
1233CXXFLAGS
1234CCC
cristy73bd4a52010-10-05 11:24:23 +00001235PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001236PKG_CONFIG_PATH
1237PKG_CONFIG_LIBDIR
Cristy15f22012015-11-14 17:51:30 -05001238LT_SYS_LIBRARY_PATH
cristy73bd4a52010-10-05 11:24:23 +00001239CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001240XMKMF
cristy32f75d42015-06-05 18:46:23 +00001241ZLIB_CFLAGS
1242ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001243AUTOTRACE_CFLAGS
1244AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001245fftw3_CFLAGS
1246fftw3_LIBS
1247ddjvuapi_CFLAGS
1248ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001249FONTCONFIG_CFLAGS
1250FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001251FREETYPE_CFLAGS
1252FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001253GVC_CFLAGS
1254GVC_LIBS
cristyb054e072015-06-05 20:35:43 +00001255LCMS2_CFLAGS
1256LCMS2_LIBS
cristy99db3872014-01-01 15:11:34 +00001257LIBOPENJP2_CFLAGS
1258LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001259LQR_CFLAGS
1260LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001261LZMA_CFLAGS
1262LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001263OPENEXR_CFLAGS
1264OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001265PANGO_CFLAGS
1266PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001267PNG_CFLAGS
1268PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001269RSVG_CFLAGS
1270RSVG_LIBS
1271CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001272CAIRO_SVG_LIBS
cristy32f75d42015-06-05 18:46:23 +00001273XML_CFLAGS
1274XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001275
1276
1277# Initialize some variables set by options.
1278ac_init_help=
1279ac_init_version=false
1280ac_unrecognized_opts=
1281ac_unrecognized_sep=
1282# The variables have the same names as the options, with
1283# dashes changed to underlines.
1284cache_file=/dev/null
1285exec_prefix=NONE
1286no_create=
1287no_recursion=
1288prefix=NONE
1289program_prefix=NONE
1290program_suffix=NONE
1291program_transform_name=s,x,x,
1292silent=
1293site=
1294srcdir=
1295verbose=
1296x_includes=NONE
1297x_libraries=NONE
1298
1299# Installation directory options.
1300# These are left unexpanded so users can "make install exec_prefix=/foo"
1301# and all the variables that are supposed to be based on exec_prefix
1302# by default will actually change.
1303# Use braces instead of parens because sh, perl, etc. also accept them.
1304# (The list follows the same order as the GNU Coding Standards.)
1305bindir='${exec_prefix}/bin'
1306sbindir='${exec_prefix}/sbin'
1307libexecdir='${exec_prefix}/libexec'
1308datarootdir='${prefix}/share'
1309datadir='${datarootdir}'
1310sysconfdir='${prefix}/etc'
1311sharedstatedir='${prefix}/com'
1312localstatedir='${prefix}/var'
1313includedir='${prefix}/include'
1314oldincludedir='/usr/include'
1315docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1316infodir='${datarootdir}/info'
1317htmldir='${docdir}'
1318dvidir='${docdir}'
1319pdfdir='${docdir}'
1320psdir='${docdir}'
1321libdir='${exec_prefix}/lib'
1322localedir='${datarootdir}/locale'
1323mandir='${datarootdir}/man'
1324
1325ac_prev=
1326ac_dashdash=
1327for ac_option
1328do
1329 # If the previous option needs an argument, assign it.
1330 if test -n "$ac_prev"; then
1331 eval $ac_prev=\$ac_option
1332 ac_prev=
1333 continue
1334 fi
1335
1336 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001337 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1338 *=) ac_optarg= ;;
1339 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001340 esac
1341
1342 # Accept the important Cygnus configure options, so we can diagnose typos.
1343
1344 case $ac_dashdash$ac_option in
1345 --)
1346 ac_dashdash=yes ;;
1347
1348 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1349 ac_prev=bindir ;;
1350 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1351 bindir=$ac_optarg ;;
1352
1353 -build | --build | --buil | --bui | --bu)
1354 ac_prev=build_alias ;;
1355 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1356 build_alias=$ac_optarg ;;
1357
1358 -cache-file | --cache-file | --cache-fil | --cache-fi \
1359 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1360 ac_prev=cache_file ;;
1361 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1362 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1363 cache_file=$ac_optarg ;;
1364
1365 --config-cache | -C)
1366 cache_file=config.cache ;;
1367
1368 -datadir | --datadir | --datadi | --datad)
1369 ac_prev=datadir ;;
1370 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1371 datadir=$ac_optarg ;;
1372
1373 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1374 | --dataroo | --dataro | --datar)
1375 ac_prev=datarootdir ;;
1376 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1377 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1378 datarootdir=$ac_optarg ;;
1379
1380 -disable-* | --disable-*)
1381 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1382 # Reject names that are not valid shell variable names.
1383 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001384 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001385 ac_useropt_orig=$ac_useropt
1386 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1387 case $ac_user_opts in
1388 *"
1389"enable_$ac_useropt"
1390"*) ;;
1391 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1392 ac_unrecognized_sep=', ';;
1393 esac
1394 eval enable_$ac_useropt=no ;;
1395
1396 -docdir | --docdir | --docdi | --doc | --do)
1397 ac_prev=docdir ;;
1398 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1399 docdir=$ac_optarg ;;
1400
1401 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1402 ac_prev=dvidir ;;
1403 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1404 dvidir=$ac_optarg ;;
1405
1406 -enable-* | --enable-*)
1407 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1408 # Reject names that are not valid shell variable names.
1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001410 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001411 ac_useropt_orig=$ac_useropt
1412 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1413 case $ac_user_opts in
1414 *"
1415"enable_$ac_useropt"
1416"*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval enable_$ac_useropt=\$ac_optarg ;;
1421
1422 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1423 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1424 | --exec | --exe | --ex)
1425 ac_prev=exec_prefix ;;
1426 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1427 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1428 | --exec=* | --exe=* | --ex=*)
1429 exec_prefix=$ac_optarg ;;
1430
1431 -gas | --gas | --ga | --g)
1432 # Obsolete; use --with-gas.
1433 with_gas=yes ;;
1434
1435 -help | --help | --hel | --he | -h)
1436 ac_init_help=long ;;
1437 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1438 ac_init_help=recursive ;;
1439 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1440 ac_init_help=short ;;
1441
1442 -host | --host | --hos | --ho)
1443 ac_prev=host_alias ;;
1444 -host=* | --host=* | --hos=* | --ho=*)
1445 host_alias=$ac_optarg ;;
1446
1447 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1448 ac_prev=htmldir ;;
1449 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1450 | --ht=*)
1451 htmldir=$ac_optarg ;;
1452
1453 -includedir | --includedir | --includedi | --included | --include \
1454 | --includ | --inclu | --incl | --inc)
1455 ac_prev=includedir ;;
1456 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1457 | --includ=* | --inclu=* | --incl=* | --inc=*)
1458 includedir=$ac_optarg ;;
1459
1460 -infodir | --infodir | --infodi | --infod | --info | --inf)
1461 ac_prev=infodir ;;
1462 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1463 infodir=$ac_optarg ;;
1464
1465 -libdir | --libdir | --libdi | --libd)
1466 ac_prev=libdir ;;
1467 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1468 libdir=$ac_optarg ;;
1469
1470 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1471 | --libexe | --libex | --libe)
1472 ac_prev=libexecdir ;;
1473 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1474 | --libexe=* | --libex=* | --libe=*)
1475 libexecdir=$ac_optarg ;;
1476
1477 -localedir | --localedir | --localedi | --localed | --locale)
1478 ac_prev=localedir ;;
1479 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1480 localedir=$ac_optarg ;;
1481
1482 -localstatedir | --localstatedir | --localstatedi | --localstated \
1483 | --localstate | --localstat | --localsta | --localst | --locals)
1484 ac_prev=localstatedir ;;
1485 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1486 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1487 localstatedir=$ac_optarg ;;
1488
1489 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1490 ac_prev=mandir ;;
1491 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1492 mandir=$ac_optarg ;;
1493
1494 -nfp | --nfp | --nf)
1495 # Obsolete; use --without-fp.
1496 with_fp=no ;;
1497
1498 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1499 | --no-cr | --no-c | -n)
1500 no_create=yes ;;
1501
1502 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1503 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1504 no_recursion=yes ;;
1505
1506 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1507 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1508 | --oldin | --oldi | --old | --ol | --o)
1509 ac_prev=oldincludedir ;;
1510 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1511 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1512 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1513 oldincludedir=$ac_optarg ;;
1514
1515 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1516 ac_prev=prefix ;;
1517 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1518 prefix=$ac_optarg ;;
1519
1520 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1521 | --program-pre | --program-pr | --program-p)
1522 ac_prev=program_prefix ;;
1523 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1524 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1525 program_prefix=$ac_optarg ;;
1526
1527 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1528 | --program-suf | --program-su | --program-s)
1529 ac_prev=program_suffix ;;
1530 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1531 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1532 program_suffix=$ac_optarg ;;
1533
1534 -program-transform-name | --program-transform-name \
1535 | --program-transform-nam | --program-transform-na \
1536 | --program-transform-n | --program-transform- \
1537 | --program-transform | --program-transfor \
1538 | --program-transfo | --program-transf \
1539 | --program-trans | --program-tran \
1540 | --progr-tra | --program-tr | --program-t)
1541 ac_prev=program_transform_name ;;
1542 -program-transform-name=* | --program-transform-name=* \
1543 | --program-transform-nam=* | --program-transform-na=* \
1544 | --program-transform-n=* | --program-transform-=* \
1545 | --program-transform=* | --program-transfor=* \
1546 | --program-transfo=* | --program-transf=* \
1547 | --program-trans=* | --program-tran=* \
1548 | --progr-tra=* | --program-tr=* | --program-t=*)
1549 program_transform_name=$ac_optarg ;;
1550
1551 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1552 ac_prev=pdfdir ;;
1553 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1554 pdfdir=$ac_optarg ;;
1555
1556 -psdir | --psdir | --psdi | --psd | --ps)
1557 ac_prev=psdir ;;
1558 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1559 psdir=$ac_optarg ;;
1560
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1563 silent=yes ;;
1564
1565 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1566 ac_prev=sbindir ;;
1567 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1568 | --sbi=* | --sb=*)
1569 sbindir=$ac_optarg ;;
1570
1571 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1572 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1573 | --sharedst | --shareds | --shared | --share | --shar \
1574 | --sha | --sh)
1575 ac_prev=sharedstatedir ;;
1576 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1577 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1578 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1579 | --sha=* | --sh=*)
1580 sharedstatedir=$ac_optarg ;;
1581
1582 -site | --site | --sit)
1583 ac_prev=site ;;
1584 -site=* | --site=* | --sit=*)
1585 site=$ac_optarg ;;
1586
1587 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1588 ac_prev=srcdir ;;
1589 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1590 srcdir=$ac_optarg ;;
1591
1592 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1593 | --syscon | --sysco | --sysc | --sys | --sy)
1594 ac_prev=sysconfdir ;;
1595 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1596 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1597 sysconfdir=$ac_optarg ;;
1598
1599 -target | --target | --targe | --targ | --tar | --ta | --t)
1600 ac_prev=target_alias ;;
1601 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1602 target_alias=$ac_optarg ;;
1603
1604 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1605 verbose=yes ;;
1606
1607 -version | --version | --versio | --versi | --vers | -V)
1608 ac_init_version=: ;;
1609
1610 -with-* | --with-*)
1611 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1612 # Reject names that are not valid shell variable names.
1613 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001614 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001615 ac_useropt_orig=$ac_useropt
1616 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1617 case $ac_user_opts in
1618 *"
1619"with_$ac_useropt"
1620"*) ;;
1621 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1622 ac_unrecognized_sep=', ';;
1623 esac
1624 eval with_$ac_useropt=\$ac_optarg ;;
1625
1626 -without-* | --without-*)
1627 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1628 # Reject names that are not valid shell variable names.
1629 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001630 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001631 ac_useropt_orig=$ac_useropt
1632 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1633 case $ac_user_opts in
1634 *"
1635"with_$ac_useropt"
1636"*) ;;
1637 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1638 ac_unrecognized_sep=', ';;
1639 esac
1640 eval with_$ac_useropt=no ;;
1641
1642 --x)
1643 # Obsolete; use --with-x.
1644 with_x=yes ;;
1645
1646 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1647 | --x-incl | --x-inc | --x-in | --x-i)
1648 ac_prev=x_includes ;;
1649 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1650 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1651 x_includes=$ac_optarg ;;
1652
1653 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1654 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1655 ac_prev=x_libraries ;;
1656 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1657 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1658 x_libraries=$ac_optarg ;;
1659
cristy98dddb52010-11-04 00:30:15 +00001660 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1661Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001662 ;;
1663
1664 *=*)
1665 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1666 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001667 case $ac_envvar in #(
1668 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001669 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001670 esac
cristy3ed852e2009-09-05 21:47:34 +00001671 eval $ac_envvar=\$ac_optarg
1672 export $ac_envvar ;;
1673
1674 *)
1675 # FIXME: should be removed in autoconf 3.0.
1676 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1677 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1678 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001679 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001680 ;;
1681
1682 esac
1683done
1684
1685if test -n "$ac_prev"; then
1686 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001687 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001688fi
1689
1690if test -n "$ac_unrecognized_opts"; then
1691 case $enable_option_checking in
1692 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001693 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001694 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1695 esac
1696fi
1697
1698# Check all directory arguments for consistency.
1699for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1700 datadir sysconfdir sharedstatedir localstatedir includedir \
1701 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1702 libdir localedir mandir
1703do
1704 eval ac_val=\$$ac_var
1705 # Remove trailing slashes.
1706 case $ac_val in
1707 */ )
1708 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1709 eval $ac_var=\$ac_val;;
1710 esac
1711 # Be sure to have absolute directory names.
1712 case $ac_val in
1713 [\\/$]* | ?:[\\/]* ) continue;;
1714 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1715 esac
cristy98dddb52010-11-04 00:30:15 +00001716 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001717done
1718
1719# There might be people who depend on the old broken behavior: `$host'
1720# used to hold the argument of --host etc.
1721# FIXME: To remove some day.
1722build=$build_alias
1723host=$host_alias
1724target=$target_alias
1725
1726# FIXME: To remove some day.
1727if test "x$host_alias" != x; then
1728 if test "x$build_alias" = x; then
1729 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001730 elif test "x$build_alias" != "x$host_alias"; then
1731 cross_compiling=yes
1732 fi
1733fi
1734
1735ac_tool_prefix=
1736test -n "$host_alias" && ac_tool_prefix=$host_alias-
1737
1738test "$silent" = yes && exec 6>/dev/null
1739
1740
1741ac_pwd=`pwd` && test -n "$ac_pwd" &&
1742ac_ls_di=`ls -di .` &&
1743ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001744 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001745test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001746 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001747
1748
1749# Find the source files, if location was not specified.
1750if test -z "$srcdir"; then
1751 ac_srcdir_defaulted=yes
1752 # Try the directory containing this script, then the parent directory.
1753 ac_confdir=`$as_dirname -- "$as_myself" ||
1754$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1755 X"$as_myself" : 'X\(//\)[^/]' \| \
1756 X"$as_myself" : 'X\(//\)$' \| \
1757 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1758$as_echo X"$as_myself" |
1759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1760 s//\1/
1761 q
1762 }
1763 /^X\(\/\/\)[^/].*/{
1764 s//\1/
1765 q
1766 }
1767 /^X\(\/\/\)$/{
1768 s//\1/
1769 q
1770 }
1771 /^X\(\/\).*/{
1772 s//\1/
1773 q
1774 }
1775 s/.*/./; q'`
1776 srcdir=$ac_confdir
1777 if test ! -r "$srcdir/$ac_unique_file"; then
1778 srcdir=..
1779 fi
1780else
1781 ac_srcdir_defaulted=no
1782fi
1783if test ! -r "$srcdir/$ac_unique_file"; then
1784 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001785 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001786fi
1787ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1788ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001789 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001790 pwd)`
1791# When building in place, set srcdir=.
1792if test "$ac_abs_confdir" = "$ac_pwd"; then
1793 srcdir=.
1794fi
1795# Remove unnecessary trailing slashes from srcdir.
1796# Double slashes in file names in object file debugging info
1797# mess up M-x gdb in Emacs.
1798case $srcdir in
1799*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1800esac
1801for ac_var in $ac_precious_vars; do
1802 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1803 eval ac_env_${ac_var}_value=\$${ac_var}
1804 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1805 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1806done
1807
1808#
1809# Report the --help message.
1810#
1811if test "$ac_init_help" = "long"; then
1812 # Omit some internal or obsolete options to make the list less imposing.
1813 # This message is too long to be a string in the A/UX 3.1 sh.
1814 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001815\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001816
1817Usage: $0 [OPTION]... [VAR=VALUE]...
1818
1819To assign environment variables (e.g., CC, CFLAGS...), specify them as
1820VAR=VALUE. See below for descriptions of some of the useful variables.
1821
1822Defaults for the options are specified in brackets.
1823
1824Configuration:
1825 -h, --help display this help and exit
1826 --help=short display options specific to this package
1827 --help=recursive display the short help of all the included packages
1828 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001829 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001830 --cache-file=FILE cache test results in FILE [disabled]
1831 -C, --config-cache alias for \`--cache-file=config.cache'
1832 -n, --no-create do not create output files
1833 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1834
1835Installation directories:
1836 --prefix=PREFIX install architecture-independent files in PREFIX
1837 [$ac_default_prefix]
1838 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1839 [PREFIX]
1840
1841By default, \`make install' will install all the files in
1842\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1843an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1844for instance \`--prefix=\$HOME'.
1845
1846For better control, use the options below.
1847
1848Fine tuning of the installation directories:
1849 --bindir=DIR user executables [EPREFIX/bin]
1850 --sbindir=DIR system admin executables [EPREFIX/sbin]
1851 --libexecdir=DIR program executables [EPREFIX/libexec]
1852 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1853 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1854 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1855 --libdir=DIR object code libraries [EPREFIX/lib]
1856 --includedir=DIR C header files [PREFIX/include]
1857 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1858 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1859 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1860 --infodir=DIR info documentation [DATAROOTDIR/info]
1861 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1862 --mandir=DIR man documentation [DATAROOTDIR/man]
Cristyff282552015-09-19 16:49:39 -04001863 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001864 --htmldir=DIR html documentation [DOCDIR]
1865 --dvidir=DIR dvi documentation [DOCDIR]
1866 --pdfdir=DIR pdf documentation [DOCDIR]
1867 --psdir=DIR ps documentation [DOCDIR]
1868_ACEOF
1869
1870 cat <<\_ACEOF
1871
cristy73bd4a52010-10-05 11:24:23 +00001872Program names:
1873 --program-prefix=PREFIX prepend PREFIX to installed program names
1874 --program-suffix=SUFFIX append SUFFIX to installed program names
1875 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1876
cristy3ed852e2009-09-05 21:47:34 +00001877X features:
1878 --x-includes=DIR X include files are in DIR
1879 --x-libraries=DIR X library files are in DIR
1880
1881System types:
1882 --build=BUILD configure for building on BUILD [guessed]
1883 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1884 --target=TARGET configure for building compilers for TARGET [HOST]
1885_ACEOF
1886fi
1887
1888if test -n "$ac_init_help"; then
1889 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001890 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001891 esac
1892 cat <<\_ACEOF
1893
1894Optional Features:
1895 --disable-option-checking ignore unrecognized --enable/--with options
1896 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1897 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001898 --enable-silent-rules less verbose build output (undo: "make V=1")
1899 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001900 --enable-reproducible-build
1901 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001902 --enable-dependency-tracking
1903 do not reject slow dependency extractors
1904 --disable-dependency-tracking
1905 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001906 --enable-ld-version-script
1907 enable linker version script (default is enabled
1908 when possible)
cristya3824692012-03-30 17:22:07 +00001909 --enable-bounds-checking
1910 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001911 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001912 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001913 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001914 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001915 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001916 --enable-shared[=PKGS] build shared libraries [default=yes]
1917 --enable-static[=PKGS] build static libraries [default=yes]
1918 --enable-fast-install[=PKGS]
1919 optimize for fast installation [default=yes]
1920 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001921 --enable-delegate-build look for delegate libraries in build directory
1922 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001923 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001924 --disable-installed Formally install ImageMagick under PREFIX
1925 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001926 --enable-zero-configuration
1927 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001928 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001929 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001930 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001931 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001932 --enable-maintainer-mode
1933 enable make rules and dependencies not useful (and
1934 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001935 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001936 --enable-ccmalloc enable 'ccmalloc' memory debug support
1937 --enable-efence enable 'efence' memory debug support
1938 --enable-prof enable 'prof' profiling support
1939 --enable-gprof enable 'gprof' profiling support
1940 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001941 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001942 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001943 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001944
1945Optional Packages:
1946 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1947 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001948 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001949 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001950 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1951 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001952 --includearch-dir=DIR ARCH specific include directory
1953 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001954 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001956 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001957 both]
Cristy15f22012015-11-14 17:51:30 -05001958 --with-aix-soname=aix|svr4|both
1959 shared library versioning (aka "SONAME") variant to
1960 provide on AIX, [default=aix].
1961 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1962 compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001963 --with-modules enable building dynamically loadable modules
1964 --with-method-prefix=PREFIX
1965 prefix MagickCore API methods
1966 --with-quantum-depth=DEPTH
1967 number of bits in a pixel quantum (default 16)
1968 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1969 memory)
1970 --with-frozenpaths freeze delegate paths
1971 --without-magick-plus-plus
1972 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001973 --with-package-release-name=NAME
1974 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001975 --with-perl enable build/install of PerlMagick
1976 --with-perl-options=OPTIONS
1977 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001978 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001979 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001980 --with-umem enable umem memory allocation library support
1981 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1982 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001983 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001984 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001985 --with-apple-font-dir=DIR
1986 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001987 --with-autotrace enable autotrace support
1988 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001989 --with-dejavu-font-dir=DIR
1990 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001991 --without-fftw disable FFTW support
1992 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00001993 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00001994 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001995 --without-freetype disable Freetype support
cristybdabdd62013-03-04 17:43:36 +00001996 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00001997 --with-fontpath=DIR prepend to default font search path
1998 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00001999 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00002000 --without-jbig disable JBIG support
2001 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00002002 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00002003 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00002004 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00002005 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002006 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002007 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002008 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002009 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002010 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002011 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002012 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002013 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002014 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002015 --without-xml disable XML support
2016
2017Some influential environment variables:
2018 CC C compiler command
2019 CFLAGS C compiler flags
2020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2021 nonstandard directory <lib dir>
2022 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002023 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002024 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002025 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002026 CXX C++ compiler command
2027 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002028 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002029 PKG_CONFIG_PATH
2030 directories to add to pkg-config's search path
2031 PKG_CONFIG_LIBDIR
2032 path overriding pkg-config's built-in search path
Cristy15f22012015-11-14 17:51:30 -05002033 LT_SYS_LIBRARY_PATH
2034 User-defined run-time library search path.
nicolas6237c462010-10-05 06:11:49 +00002035 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002036 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002037 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2038 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002039 AUTOTRACE_CFLAGS
2040 C compiler flags for AUTOTRACE, overriding pkg-config
2041 AUTOTRACE_LIBS
2042 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002043 fftw3_CFLAGS
2044 C compiler flags for fftw3, overriding pkg-config
2045 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2046 ddjvuapi_CFLAGS
2047 C compiler flags for ddjvuapi, overriding pkg-config
2048 ddjvuapi_LIBS
2049 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002050 FONTCONFIG_CFLAGS
2051 C compiler flags for FONTCONFIG, overriding pkg-config
2052 FONTCONFIG_LIBS
2053 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002054 FREETYPE_CFLAGS
2055 C compiler flags for FREETYPE, overriding pkg-config
2056 FREETYPE_LIBS
2057 linker flags for FREETYPE, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002058 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2059 GVC_LIBS linker flags for GVC, overriding pkg-config
cristyb054e072015-06-05 20:35:43 +00002060 LCMS2_CFLAGS
2061 C compiler flags for LCMS2, overriding pkg-config
2062 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002063 LIBOPENJP2_CFLAGS
2064 C compiler flags for LIBOPENJP2, overriding pkg-config
2065 LIBOPENJP2_LIBS
2066 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002067 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2068 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002069 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2070 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002071 OPENEXR_CFLAGS
2072 C compiler flags for OPENEXR, overriding pkg-config
2073 OPENEXR_LIBS
2074 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002075 PANGO_CFLAGS
2076 C compiler flags for PANGO, overriding pkg-config
2077 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002078 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2079 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002080 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2081 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2082 CAIRO_SVG_CFLAGS
2083 C compiler flags for CAIRO_SVG, overriding pkg-config
2084 CAIRO_SVG_LIBS
2085 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002086 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2087 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002088
2089Use these variables to override the choices made by `configure' or to help
2090it to find libraries and programs with nonstandard names/locations.
2091
2092Report bugs to <http://www.imagemagick.org>.
2093_ACEOF
2094ac_status=$?
2095fi
2096
2097if test "$ac_init_help" = "recursive"; then
2098 # If there are subdirs, report their specific --help.
2099 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2100 test -d "$ac_dir" ||
2101 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2102 continue
2103 ac_builddir=.
2104
2105case "$ac_dir" in
2106.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107*)
2108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2109 # A ".." for each directory in $ac_dir_suffix.
2110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2111 case $ac_top_builddir_sub in
2112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2114 esac ;;
2115esac
2116ac_abs_top_builddir=$ac_pwd
2117ac_abs_builddir=$ac_pwd$ac_dir_suffix
2118# for backward compatibility:
2119ac_top_builddir=$ac_top_build_prefix
2120
2121case $srcdir in
2122 .) # We are building in place.
2123 ac_srcdir=.
2124 ac_top_srcdir=$ac_top_builddir_sub
2125 ac_abs_top_srcdir=$ac_pwd ;;
2126 [\\/]* | ?:[\\/]* ) # Absolute name.
2127 ac_srcdir=$srcdir$ac_dir_suffix;
2128 ac_top_srcdir=$srcdir
2129 ac_abs_top_srcdir=$srcdir ;;
2130 *) # Relative name.
2131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2132 ac_top_srcdir=$ac_top_build_prefix$srcdir
2133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2134esac
2135ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2136
2137 cd "$ac_dir" || { ac_status=$?; continue; }
2138 # Check for guested configure.
2139 if test -f "$ac_srcdir/configure.gnu"; then
2140 echo &&
2141 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2142 elif test -f "$ac_srcdir/configure"; then
2143 echo &&
2144 $SHELL "$ac_srcdir/configure" --help=recursive
2145 else
2146 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2147 fi || ac_status=$?
2148 cd "$ac_pwd" || { ac_status=$?; break; }
2149 done
2150fi
2151
2152test -n "$ac_init_help" && exit $ac_status
2153if $ac_init_version; then
2154 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002155ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002156generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002157
cristy14fefe52012-05-21 00:59:18 +00002158Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002159This configure script is free software; the Free Software Foundation
2160gives unlimited permission to copy, distribute and modify it.
2161_ACEOF
2162 exit
2163fi
cristy8b350f62009-11-15 23:12:43 +00002164
2165## ------------------------ ##
2166## Autoconf initialization. ##
2167## ------------------------ ##
2168
2169# ac_fn_c_try_compile LINENO
2170# --------------------------
2171# Try to compile conftest.$ac_ext, and return whether this succeeded.
2172ac_fn_c_try_compile ()
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 rm -f conftest.$ac_objext
2176 if { { ac_try="$ac_compile"
2177case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180esac
2181eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182$as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_compile") 2>conftest.err
2184 ac_status=$?
2185 if test -s conftest.err; then
2186 grep -v '^ *+' conftest.err >conftest.er1
2187 cat conftest.er1 >&5
2188 mv -f conftest.er1 conftest.err
2189 fi
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } && {
2192 test -z "$ac_c_werror_flag" ||
2193 test ! -s conftest.err
2194 } && test -s conftest.$ac_objext; then :
2195 ac_retval=0
2196else
2197 $as_echo "$as_me: failed program was:" >&5
2198sed 's/^/| /' conftest.$ac_ext >&5
2199
2200 ac_retval=1
2201fi
cristyda16f162011-02-19 23:52:17 +00002202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002203 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002204
2205} # ac_fn_c_try_compile
2206
cristy95646052009-11-28 23:05:30 +00002207# ac_fn_c_try_cpp LINENO
2208# ----------------------
2209# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2210ac_fn_c_try_cpp ()
2211{
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 if { { ac_try="$ac_cpp conftest.$ac_ext"
2214case "(($ac_try" in
2215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216 *) ac_try_echo=$ac_try;;
2217esac
2218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219$as_echo "$ac_try_echo"; } >&5
2220 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2221 ac_status=$?
2222 if test -s conftest.err; then
2223 grep -v '^ *+' conftest.err >conftest.er1
2224 cat conftest.er1 >&5
2225 mv -f conftest.er1 conftest.err
2226 fi
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002228 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2230 test ! -s conftest.err
2231 }; then :
2232 ac_retval=0
2233else
2234 $as_echo "$as_me: failed program was:" >&5
2235sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 ac_retval=1
2238fi
cristyda16f162011-02-19 23:52:17 +00002239 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002240 as_fn_set_status $ac_retval
2241
2242} # ac_fn_c_try_cpp
2243
cristy8b350f62009-11-15 23:12:43 +00002244# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2245# -------------------------------------------------------
2246# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2247# the include files in INCLUDES and setting the cache variable VAR
2248# accordingly.
2249ac_fn_c_check_header_mongrel ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002252 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002255if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002256 $as_echo_n "(cached) " >&6
2257fi
2258eval ac_res=\$$3
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2260$as_echo "$ac_res" >&6; }
2261else
2262 # Is the header compilable?
2263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2264$as_echo_n "checking $2 usability... " >&6; }
2265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268#include <$2>
2269_ACEOF
2270if ac_fn_c_try_compile "$LINENO"; then :
2271 ac_header_compiler=yes
2272else
2273 ac_header_compiler=no
2274fi
2275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2277$as_echo "$ac_header_compiler" >&6; }
2278
2279# Is the header present?
2280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2281$as_echo_n "checking $2 presence... " >&6; }
2282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283/* end confdefs.h. */
2284#include <$2>
2285_ACEOF
2286if ac_fn_c_try_cpp "$LINENO"; then :
2287 ac_header_preproc=yes
2288else
2289 ac_header_preproc=no
2290fi
cristyda16f162011-02-19 23:52:17 +00002291rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2293$as_echo "$ac_header_preproc" >&6; }
2294
2295# So? What about this header?
2296case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2297 yes:no: )
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2299$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2301$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2302 ;;
2303 no:yes:* )
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2305$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2307$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2309$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2311$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2313$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002314( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002315## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002316## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002317 ) | sed "s/^/$as_me: WARNING: /" >&2
2318 ;;
2319esac
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002322if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002323 $as_echo_n "(cached) " >&6
2324else
2325 eval "$3=\$ac_header_compiler"
2326fi
2327eval ac_res=\$$3
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2329$as_echo "$ac_res" >&6; }
2330fi
cristyda16f162011-02-19 23:52:17 +00002331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002332
2333} # ac_fn_c_check_header_mongrel
2334
2335# ac_fn_c_try_run LINENO
2336# ----------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338# that executables *can* be run.
2339ac_fn_c_try_run ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5
2350 ac_status=$?
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353 { { case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5
2360 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=$ac_status
2370fi
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002373 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002374
2375} # ac_fn_c_try_run
2376
2377# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2378# -------------------------------------------------------
2379# Tests whether HEADER exists and can be compiled using the include files in
2380# INCLUDES, setting the cache variable VAR accordingly.
2381ac_fn_c_check_header_compile ()
2382{
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2385$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002386if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002387 $as_echo_n "(cached) " >&6
2388else
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390/* end confdefs.h. */
2391$4
2392#include <$2>
2393_ACEOF
2394if ac_fn_c_try_compile "$LINENO"; then :
2395 eval "$3=yes"
2396else
2397 eval "$3=no"
2398fi
2399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400fi
2401eval ac_res=\$$3
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002405
2406} # ac_fn_c_check_header_compile
2407
cristya0b81c32010-01-22 02:54:33 +00002408# ac_fn_cxx_try_compile LINENO
2409# ----------------------------
2410# Try to compile conftest.$ac_ext, and return whether this succeeded.
2411ac_fn_cxx_try_compile ()
2412{
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 rm -f conftest.$ac_objext
2415 if { { ac_try="$ac_compile"
2416case "(($ac_try" in
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2419esac
2420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421$as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_compile") 2>conftest.err
2423 ac_status=$?
2424 if test -s conftest.err; then
2425 grep -v '^ *+' conftest.err >conftest.er1
2426 cat conftest.er1 >&5
2427 mv -f conftest.er1 conftest.err
2428 fi
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } && {
2431 test -z "$ac_cxx_werror_flag" ||
2432 test ! -s conftest.err
2433 } && test -s conftest.$ac_objext; then :
2434 ac_retval=0
2435else
2436 $as_echo "$as_me: failed program was:" >&5
2437sed 's/^/| /' conftest.$ac_ext >&5
2438
2439 ac_retval=1
2440fi
cristyda16f162011-02-19 23:52:17 +00002441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002442 as_fn_set_status $ac_retval
2443
2444} # ac_fn_cxx_try_compile
2445
cristyd95b7a52013-10-23 13:12:53 +00002446# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2447# --------------------------------------------
2448# Tries to find the compile-time value of EXPR in a program that includes
2449# INCLUDES, setting VAR accordingly. Returns whether the value could be
2450# computed
2451ac_fn_c_compute_int ()
2452{
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 if test "$cross_compiling" = yes; then
2455 # Depending upon the size, compute the lo and hi bounds.
2456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h. */
2458$4
2459int
2460main ()
2461{
2462static int test_array [1 - 2 * !(($2) >= 0)];
2463test_array [0] = 0;
2464return test_array [0];
2465
2466 ;
2467 return 0;
2468}
2469_ACEOF
2470if ac_fn_c_try_compile "$LINENO"; then :
2471 ac_lo=0 ac_mid=0
2472 while :; do
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h. */
2475$4
2476int
2477main ()
2478{
2479static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2480test_array [0] = 0;
2481return test_array [0];
2482
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"; then :
2488 ac_hi=$ac_mid; break
2489else
2490 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2491 if test $ac_lo -le $ac_mid; then
2492 ac_lo= ac_hi=
2493 break
2494 fi
2495 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2496fi
2497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2498 done
2499else
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501/* end confdefs.h. */
2502$4
2503int
2504main ()
2505{
2506static int test_array [1 - 2 * !(($2) < 0)];
2507test_array [0] = 0;
2508return test_array [0];
2509
2510 ;
2511 return 0;
2512}
2513_ACEOF
2514if ac_fn_c_try_compile "$LINENO"; then :
2515 ac_hi=-1 ac_mid=-1
2516 while :; do
2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2518/* end confdefs.h. */
2519$4
2520int
2521main ()
2522{
2523static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2524test_array [0] = 0;
2525return test_array [0];
2526
2527 ;
2528 return 0;
2529}
2530_ACEOF
2531if ac_fn_c_try_compile "$LINENO"; then :
2532 ac_lo=$ac_mid; break
2533else
2534 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2535 if test $ac_mid -le $ac_hi; then
2536 ac_lo= ac_hi=
2537 break
2538 fi
2539 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2540fi
2541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 done
2543else
2544 ac_lo= ac_hi=
2545fi
2546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2547fi
2548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2549# Binary search between lo and hi bounds.
2550while test "x$ac_lo" != "x$ac_hi"; do
2551 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553/* end confdefs.h. */
2554$4
2555int
2556main ()
2557{
2558static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2559test_array [0] = 0;
2560return test_array [0];
2561
2562 ;
2563 return 0;
2564}
2565_ACEOF
2566if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_hi=$ac_mid
2568else
2569 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2570fi
2571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572done
2573case $ac_lo in #((
2574?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2575'') ac_retval=1 ;;
2576esac
2577 else
2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2579/* end confdefs.h. */
2580$4
2581static long int longval () { return $2; }
2582static unsigned long int ulongval () { return $2; }
2583#include <stdio.h>
2584#include <stdlib.h>
2585int
2586main ()
2587{
2588
2589 FILE *f = fopen ("conftest.val", "w");
2590 if (! f)
2591 return 1;
2592 if (($2) < 0)
2593 {
2594 long int i = longval ();
2595 if (i != ($2))
2596 return 1;
2597 fprintf (f, "%ld", i);
2598 }
2599 else
2600 {
2601 unsigned long int i = ulongval ();
2602 if (i != ($2))
2603 return 1;
2604 fprintf (f, "%lu", i);
2605 }
2606 /* Do not output a trailing newline, as this causes \r\n confusion
2607 on some platforms. */
2608 return ferror (f) || fclose (f) != 0;
2609
2610 ;
2611 return 0;
2612}
2613_ACEOF
2614if ac_fn_c_try_run "$LINENO"; then :
2615 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2616else
2617 ac_retval=1
2618fi
2619rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2620 conftest.$ac_objext conftest.beam conftest.$ac_ext
2621rm -f conftest.val
2622
2623 fi
2624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2625 as_fn_set_status $ac_retval
2626
2627} # ac_fn_c_compute_int
2628
cristy8b350f62009-11-15 23:12:43 +00002629# ac_fn_c_try_link LINENO
2630# -----------------------
2631# Try to link conftest.$ac_ext, and return whether this succeeded.
2632ac_fn_c_try_link ()
2633{
2634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2635 rm -f conftest.$ac_objext conftest$ac_exeext
2636 if { { ac_try="$ac_link"
2637case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
2641eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2642$as_echo "$ac_try_echo"; } >&5
2643 (eval "$ac_link") 2>conftest.err
2644 ac_status=$?
2645 if test -s conftest.err; then
2646 grep -v '^ *+' conftest.err >conftest.er1
2647 cat conftest.er1 >&5
2648 mv -f conftest.er1 conftest.err
2649 fi
2650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651 test $ac_status = 0; } && {
2652 test -z "$ac_c_werror_flag" ||
2653 test ! -s conftest.err
2654 } && test -s conftest$ac_exeext && {
2655 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002656 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002657 }; then :
2658 ac_retval=0
2659else
2660 $as_echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 ac_retval=1
2664fi
2665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2667 # interfere with the next link command; also delete a directory that is
2668 # left behind by Apple's compiler. We do this before executing the actions.
2669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002671 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002672
2673} # ac_fn_c_try_link
2674
cristy73bd4a52010-10-05 11:24:23 +00002675# ac_fn_c_check_func LINENO FUNC VAR
2676# ----------------------------------
2677# Tests whether FUNC exists, setting the cache variable VAR accordingly
2678ac_fn_c_check_func ()
2679{
2680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2682$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002683if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002684 $as_echo_n "(cached) " >&6
2685else
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687/* end confdefs.h. */
2688/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2690#define $2 innocuous_$2
2691
2692/* System header to define __stub macros and hopefully few prototypes,
2693 which can conflict with char $2 (); below.
2694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2695 <limits.h> exists even on freestanding compilers. */
2696
2697#ifdef __STDC__
2698# include <limits.h>
2699#else
2700# include <assert.h>
2701#endif
2702
2703#undef $2
2704
2705/* Override any GCC internal prototype to avoid an error.
2706 Use char because int might match the return type of a GCC
2707 builtin and then its argument prototype would still apply. */
2708#ifdef __cplusplus
2709extern "C"
2710#endif
2711char $2 ();
2712/* The GNU C library defines this for functions which it implements
2713 to always fail with ENOSYS. Some functions are actually named
2714 something starting with __ and the normal name is an alias. */
2715#if defined __stub_$2 || defined __stub___$2
2716choke me
2717#endif
2718
2719int
2720main ()
2721{
2722return $2 ();
2723 ;
2724 return 0;
2725}
2726_ACEOF
2727if ac_fn_c_try_link "$LINENO"; then :
2728 eval "$3=yes"
2729else
2730 eval "$3=no"
2731fi
2732rm -f core conftest.err conftest.$ac_objext \
2733 conftest$ac_exeext conftest.$ac_ext
2734fi
2735eval ac_res=\$$3
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2737$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002739
2740} # ac_fn_c_check_func
2741
2742# ac_fn_cxx_try_cpp LINENO
2743# ------------------------
2744# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2745ac_fn_cxx_try_cpp ()
2746{
2747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748 if { { ac_try="$ac_cpp conftest.$ac_ext"
2749case "(($ac_try" in
2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2751 *) ac_try_echo=$ac_try;;
2752esac
2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2754$as_echo "$ac_try_echo"; } >&5
2755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2756 ac_status=$?
2757 if test -s conftest.err; then
2758 grep -v '^ *+' conftest.err >conftest.er1
2759 cat conftest.er1 >&5
2760 mv -f conftest.er1 conftest.err
2761 fi
2762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002763 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002764 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2765 test ! -s conftest.err
2766 }; then :
2767 ac_retval=0
2768else
2769 $as_echo "$as_me: failed program was:" >&5
2770sed 's/^/| /' conftest.$ac_ext >&5
2771
2772 ac_retval=1
2773fi
cristyda16f162011-02-19 23:52:17 +00002774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002775 as_fn_set_status $ac_retval
2776
2777} # ac_fn_cxx_try_cpp
2778
2779# ac_fn_cxx_try_link LINENO
2780# -------------------------
2781# Try to link conftest.$ac_ext, and return whether this succeeded.
2782ac_fn_cxx_try_link ()
2783{
2784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2785 rm -f conftest.$ac_objext conftest$ac_exeext
2786 if { { ac_try="$ac_link"
2787case "(($ac_try" in
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2790esac
2791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792$as_echo "$ac_try_echo"; } >&5
2793 (eval "$ac_link") 2>conftest.err
2794 ac_status=$?
2795 if test -s conftest.err; then
2796 grep -v '^ *+' conftest.err >conftest.er1
2797 cat conftest.er1 >&5
2798 mv -f conftest.er1 conftest.err
2799 fi
2800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2801 test $ac_status = 0; } && {
2802 test -z "$ac_cxx_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest$ac_exeext && {
2805 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002806 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002807 }; then :
2808 ac_retval=0
2809else
2810 $as_echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813 ac_retval=1
2814fi
2815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2817 # interfere with the next link command; also delete a directory that is
2818 # left behind by Apple's compiler. We do this before executing the actions.
2819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002821 as_fn_set_status $ac_retval
2822
2823} # ac_fn_cxx_try_link
2824
cristy8b350f62009-11-15 23:12:43 +00002825# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2826# -------------------------------------------
2827# Tests whether TYPE exists after having included INCLUDES, setting cache
2828# variable VAR accordingly.
2829ac_fn_c_check_type ()
2830{
2831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2833$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002834if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002835 $as_echo_n "(cached) " >&6
2836else
2837 eval "$3=no"
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839/* end confdefs.h. */
2840$4
2841int
2842main ()
2843{
2844if (sizeof ($2))
2845 return 0;
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850if ac_fn_c_try_compile "$LINENO"; then :
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852/* end confdefs.h. */
2853$4
2854int
2855main ()
2856{
2857if (sizeof (($2)))
2858 return 0;
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864
2865else
2866 eval "$3=yes"
2867fi
2868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869fi
2870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871fi
2872eval ac_res=\$$3
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2874$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002876
2877} # ac_fn_c_check_type
2878
cristy92703d82010-04-26 00:18:18 +00002879# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2880# ----------------------------------------------------
2881# Tries to find if the field MEMBER exists in type AGGR, after including
2882# INCLUDES, setting cache variable VAR accordingly.
2883ac_fn_c_check_member ()
2884{
2885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2887$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002888if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002889 $as_echo_n "(cached) " >&6
2890else
2891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2892/* end confdefs.h. */
2893$5
2894int
2895main ()
2896{
2897static $2 ac_aggr;
2898if (ac_aggr.$3)
2899return 0;
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904if ac_fn_c_try_compile "$LINENO"; then :
2905 eval "$4=yes"
2906else
2907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h. */
2909$5
2910int
2911main ()
2912{
2913static $2 ac_aggr;
2914if (sizeof ac_aggr.$3)
2915return 0;
2916 ;
2917 return 0;
2918}
2919_ACEOF
2920if ac_fn_c_try_compile "$LINENO"; then :
2921 eval "$4=yes"
2922else
2923 eval "$4=no"
2924fi
2925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926fi
2927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928fi
2929eval ac_res=\$$4
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2931$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002933
2934} # ac_fn_c_check_member
2935
cristy5eef09f2012-10-16 12:08:28 +00002936# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2937# ---------------------------------------------
2938# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2939# accordingly.
2940ac_fn_c_check_decl ()
2941{
2942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2943 as_decl_name=`echo $2|sed 's/ *(.*//'`
2944 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2946$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2947if eval \${$3+:} false; then :
2948 $as_echo_n "(cached) " >&6
2949else
2950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2951/* end confdefs.h. */
2952$4
2953int
2954main ()
2955{
2956#ifndef $as_decl_name
2957#ifdef __cplusplus
2958 (void) $as_decl_use;
2959#else
2960 (void) $as_decl_name;
2961#endif
2962#endif
2963
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968if ac_fn_c_try_compile "$LINENO"; then :
2969 eval "$3=yes"
2970else
2971 eval "$3=no"
2972fi
2973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2974fi
2975eval ac_res=\$$3
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2977$as_echo "$ac_res" >&6; }
2978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2979
2980} # ac_fn_c_check_decl
2981
cristy501c8042011-05-26 17:46:28 +00002982# ac_fn_c_find_intX_t LINENO BITS VAR
2983# -----------------------------------
2984# Finds a signed integer type with width BITS, setting cache variable VAR
2985# accordingly.
2986ac_fn_c_find_intX_t ()
2987{
2988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2990$as_echo_n "checking for int$2_t... " >&6; }
2991if eval \${$3+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993else
2994 eval "$3=no"
2995 # Order is important - never check a type that is potentially smaller
2996 # than half of the expected target width.
2997 for ac_type in int$2_t 'int' 'long int' \
2998 'long long int' 'short int' 'signed char'; do
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h. */
3001$ac_includes_default
3002 enum { N = $2 / 2 - 1 };
3003int
3004main ()
3005{
3006static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00003007test_array [0] = 0;
3008return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003009
3010 ;
3011 return 0;
3012}
3013_ACEOF
3014if ac_fn_c_try_compile "$LINENO"; then :
3015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016/* end confdefs.h. */
3017$ac_includes_default
3018 enum { N = $2 / 2 - 1 };
3019int
3020main ()
3021{
3022static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3023 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003024test_array [0] = 0;
3025return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003026
3027 ;
3028 return 0;
3029}
3030_ACEOF
3031if ac_fn_c_try_compile "$LINENO"; then :
3032
3033else
3034 case $ac_type in #(
3035 int$2_t) :
3036 eval "$3=yes" ;; #(
3037 *) :
3038 eval "$3=\$ac_type" ;;
3039esac
3040fi
3041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3042fi
3043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3044 if eval test \"x\$"$3"\" = x"no"; then :
3045
3046else
3047 break
3048fi
3049 done
3050fi
3051eval ac_res=\$$3
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3053$as_echo "$ac_res" >&6; }
3054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3055
3056} # ac_fn_c_find_intX_t
3057
3058# ac_fn_c_find_uintX_t LINENO BITS VAR
3059# ------------------------------------
3060# Finds an unsigned integer type with width BITS, setting cache variable VAR
3061# accordingly.
3062ac_fn_c_find_uintX_t ()
3063{
3064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3066$as_echo_n "checking for uint$2_t... " >&6; }
3067if eval \${$3+:} false; then :
3068 $as_echo_n "(cached) " >&6
3069else
3070 eval "$3=no"
3071 # Order is important - never check a type that is potentially smaller
3072 # than half of the expected target width.
3073 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3074 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h. */
3077$ac_includes_default
3078int
3079main ()
3080{
3081static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003082test_array [0] = 0;
3083return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003084
3085 ;
3086 return 0;
3087}
3088_ACEOF
3089if ac_fn_c_try_compile "$LINENO"; then :
3090 case $ac_type in #(
3091 uint$2_t) :
3092 eval "$3=yes" ;; #(
3093 *) :
3094 eval "$3=\$ac_type" ;;
3095esac
3096fi
3097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 if eval test \"x\$"$3"\" = x"no"; then :
3099
3100else
3101 break
3102fi
3103 done
3104fi
3105eval ac_res=\$$3
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107$as_echo "$ac_res" >&6; }
3108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3109
3110} # ac_fn_c_find_uintX_t
3111
cristy8b350f62009-11-15 23:12:43 +00003112# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3113# ---------------------------------------------------------
3114# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3115# the include files in INCLUDES and setting the cache variable VAR
3116# accordingly.
3117ac_fn_cxx_check_header_mongrel ()
3118{
3119 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003120 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3122$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003123if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003124 $as_echo_n "(cached) " >&6
3125fi
3126eval ac_res=\$$3
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3128$as_echo "$ac_res" >&6; }
3129else
3130 # Is the header compilable?
3131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3132$as_echo_n "checking $2 usability... " >&6; }
3133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3134/* end confdefs.h. */
3135$4
3136#include <$2>
3137_ACEOF
3138if ac_fn_cxx_try_compile "$LINENO"; then :
3139 ac_header_compiler=yes
3140else
3141 ac_header_compiler=no
3142fi
3143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3145$as_echo "$ac_header_compiler" >&6; }
3146
3147# Is the header present?
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3149$as_echo_n "checking $2 presence... " >&6; }
3150cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151/* end confdefs.h. */
3152#include <$2>
3153_ACEOF
3154if ac_fn_cxx_try_cpp "$LINENO"; then :
3155 ac_header_preproc=yes
3156else
3157 ac_header_preproc=no
3158fi
cristyda16f162011-02-19 23:52:17 +00003159rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3161$as_echo "$ac_header_preproc" >&6; }
3162
3163# So? What about this header?
3164case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3165 yes:no: )
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3167$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3169$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3170 ;;
3171 no:yes:* )
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3173$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3175$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3177$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3179$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3181$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003182( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003183## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003184## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003185 ) | sed "s/^/$as_me: WARNING: /" >&2
3186 ;;
3187esac
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3189$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003190if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003191 $as_echo_n "(cached) " >&6
3192else
3193 eval "$3=\$ac_header_compiler"
3194fi
3195eval ac_res=\$$3
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3197$as_echo "$ac_res" >&6; }
3198fi
cristyda16f162011-02-19 23:52:17 +00003199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003200
3201} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003202cat >config.log <<_ACEOF
3203This file contains any messages produced by compilers while
3204running configure, to aid debugging if configure makes a mistake.
3205
cristy29eb34e2011-10-16 00:46:08 +00003206It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003207generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003208
3209 $ $0 $@
3210
3211_ACEOF
3212exec 5>>config.log
3213{
3214cat <<_ASUNAME
3215## --------- ##
3216## Platform. ##
3217## --------- ##
3218
3219hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3220uname -m = `(uname -m) 2>/dev/null || echo unknown`
3221uname -r = `(uname -r) 2>/dev/null || echo unknown`
3222uname -s = `(uname -s) 2>/dev/null || echo unknown`
3223uname -v = `(uname -v) 2>/dev/null || echo unknown`
3224
3225/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3226/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3227
3228/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3229/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3230/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3231/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3232/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3233/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3234/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3235
3236_ASUNAME
3237
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003243 $as_echo "PATH: $as_dir"
3244 done
cristy3ed852e2009-09-05 21:47:34 +00003245IFS=$as_save_IFS
3246
3247} >&5
3248
3249cat >&5 <<_ACEOF
3250
3251
3252## ----------- ##
3253## Core tests. ##
3254## ----------- ##
3255
3256_ACEOF
3257
3258
3259# Keep a trace of the command line.
3260# Strip out --no-create and --no-recursion so they do not pile up.
3261# Strip out --silent because we don't want to record it for future runs.
3262# Also quote any args containing shell meta-characters.
3263# Make two passes to allow for proper duplicate-argument suppression.
3264ac_configure_args=
3265ac_configure_args0=
3266ac_configure_args1=
3267ac_must_keep_next=false
3268for ac_pass in 1 2
3269do
3270 for ac_arg
3271 do
3272 case $ac_arg in
3273 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3274 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3275 | -silent | --silent | --silen | --sile | --sil)
3276 continue ;;
3277 *\'*)
3278 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3279 esac
3280 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003281 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003282 2)
cristy8b350f62009-11-15 23:12:43 +00003283 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003284 if test $ac_must_keep_next = true; then
3285 ac_must_keep_next=false # Got value, back to normal.
3286 else
3287 case $ac_arg in
3288 *=* | --config-cache | -C | -disable-* | --disable-* \
3289 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3290 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3291 | -with-* | --with-* | -without-* | --without-* | --x)
3292 case "$ac_configure_args0 " in
3293 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3294 esac
3295 ;;
3296 -* ) ac_must_keep_next=true ;;
3297 esac
3298 fi
cristy8b350f62009-11-15 23:12:43 +00003299 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003300 ;;
3301 esac
3302 done
3303done
cristy8b350f62009-11-15 23:12:43 +00003304{ ac_configure_args0=; unset ac_configure_args0;}
3305{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003306
3307# When interrupted or exit'd, cleanup temporary files, and complete
3308# config.log. We remove comments because anyway the quotes in there
3309# would cause problems or look ugly.
3310# WARNING: Use '\'' to represent an apostrophe within the trap.
3311# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3312trap 'exit_status=$?
3313 # Save into config.log some information that might help in debugging.
3314 {
3315 echo
3316
cristy98dddb52010-11-04 00:30:15 +00003317 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003318## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003319## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003320 echo
3321 # The following way of writing the cache mishandles newlines in values,
3322(
3323 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3324 eval ac_val=\$$ac_var
3325 case $ac_val in #(
3326 *${as_nl}*)
3327 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003329$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3330 esac
3331 case $ac_var in #(
3332 _ | IFS | as_nl) ;; #(
3333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003334 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003335 esac ;;
3336 esac
3337 done
3338 (set) 2>&1 |
3339 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3340 *${as_nl}ac_space=\ *)
3341 sed -n \
3342 "s/'\''/'\''\\\\'\'''\''/g;
3343 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3344 ;; #(
3345 *)
3346 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3347 ;;
3348 esac |
3349 sort
3350)
3351 echo
3352
cristy98dddb52010-11-04 00:30:15 +00003353 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003354## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003355## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003356 echo
3357 for ac_var in $ac_subst_vars
3358 do
3359 eval ac_val=\$$ac_var
3360 case $ac_val in
3361 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3362 esac
3363 $as_echo "$ac_var='\''$ac_val'\''"
3364 done | sort
3365 echo
3366
3367 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003368 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003369## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003370## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003371 echo
3372 for ac_var in $ac_subst_files
3373 do
3374 eval ac_val=\$$ac_var
3375 case $ac_val in
3376 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3377 esac
3378 $as_echo "$ac_var='\''$ac_val'\''"
3379 done | sort
3380 echo
3381 fi
3382
3383 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003384 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003385## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003386## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003387 echo
3388 cat confdefs.h
3389 echo
3390 fi
3391 test "$ac_signal" != 0 &&
3392 $as_echo "$as_me: caught signal $ac_signal"
3393 $as_echo "$as_me: exit $exit_status"
3394 } >&5
3395 rm -f core *.core core.conftest.* &&
3396 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3397 exit $exit_status
3398' 0
3399for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003400 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003401done
3402ac_signal=0
3403
3404# confdefs.h avoids OS command line length limits that DEFS can exceed.
3405rm -f -r conftest* confdefs.h
3406
cristy8b350f62009-11-15 23:12:43 +00003407$as_echo "/* confdefs.h */" > confdefs.h
3408
cristy3ed852e2009-09-05 21:47:34 +00003409# Predefined preprocessor variables.
3410
3411cat >>confdefs.h <<_ACEOF
3412#define PACKAGE_NAME "$PACKAGE_NAME"
3413_ACEOF
3414
cristy3ed852e2009-09-05 21:47:34 +00003415cat >>confdefs.h <<_ACEOF
3416#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3417_ACEOF
3418
cristy3ed852e2009-09-05 21:47:34 +00003419cat >>confdefs.h <<_ACEOF
3420#define PACKAGE_VERSION "$PACKAGE_VERSION"
3421_ACEOF
3422
cristy3ed852e2009-09-05 21:47:34 +00003423cat >>confdefs.h <<_ACEOF
3424#define PACKAGE_STRING "$PACKAGE_STRING"
3425_ACEOF
3426
cristy3ed852e2009-09-05 21:47:34 +00003427cat >>confdefs.h <<_ACEOF
3428#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3429_ACEOF
3430
cristy8b350f62009-11-15 23:12:43 +00003431cat >>confdefs.h <<_ACEOF
3432#define PACKAGE_URL "$PACKAGE_URL"
3433_ACEOF
3434
cristy3ed852e2009-09-05 21:47:34 +00003435
3436# Let the site file select an alternate cache file if it wants to.
3437# Prefer an explicitly selected file to automatically selected ones.
3438ac_site_file1=NONE
3439ac_site_file2=NONE
3440if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003441 # We do not want a PATH search for config.site.
3442 case $CONFIG_SITE in #((
3443 -*) ac_site_file1=./$CONFIG_SITE;;
3444 */*) ac_site_file1=$CONFIG_SITE;;
3445 *) ac_site_file1=./$CONFIG_SITE;;
3446 esac
cristy3ed852e2009-09-05 21:47:34 +00003447elif test "x$prefix" != xNONE; then
3448 ac_site_file1=$prefix/share/config.site
3449 ac_site_file2=$prefix/etc/config.site
3450else
3451 ac_site_file1=$ac_default_prefix/share/config.site
3452 ac_site_file2=$ac_default_prefix/etc/config.site
3453fi
3454for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3455do
3456 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003457 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003458 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003459$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3460 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003461 . "$ac_site_file" \
3462 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3464as_fn_error $? "failed to load site script $ac_site_file
3465See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003466 fi
3467done
3468
3469if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003470 # Some versions of bash will fail to source /dev/null (special files
3471 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3472 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003473 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003474$as_echo "$as_me: loading cache $cache_file" >&6;}
3475 case $cache_file in
3476 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3477 *) . "./$cache_file";;
3478 esac
3479 fi
3480else
cristy8b350f62009-11-15 23:12:43 +00003481 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003482$as_echo "$as_me: creating cache $cache_file" >&6;}
3483 >$cache_file
3484fi
3485
cristycd4c5312009-11-22 01:19:08 +00003486as_fn_append ac_header_list " stdlib.h"
3487as_fn_append ac_header_list " unistd.h"
3488as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003489# Check that the precious variables saved in the cache have kept the same
3490# value.
3491ac_cache_corrupted=false
3492for ac_var in $ac_precious_vars; do
3493 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3494 eval ac_new_set=\$ac_env_${ac_var}_set
3495 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3496 eval ac_new_val=\$ac_env_${ac_var}_value
3497 case $ac_old_set,$ac_new_set in
3498 set,)
cristy8b350f62009-11-15 23:12:43 +00003499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003500$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3501 ac_cache_corrupted=: ;;
3502 ,set)
cristy8b350f62009-11-15 23:12:43 +00003503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003504$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3505 ac_cache_corrupted=: ;;
3506 ,);;
3507 *)
3508 if test "x$ac_old_val" != "x$ac_new_val"; then
3509 # differences in whitespace do not lead to failure.
3510 ac_old_val_w=`echo x $ac_old_val`
3511 ac_new_val_w=`echo x $ac_new_val`
3512 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003514$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3515 ac_cache_corrupted=:
3516 else
cristy8b350f62009-11-15 23:12:43 +00003517 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003518$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3519 eval $ac_var=\$ac_old_val
3520 fi
cristy8b350f62009-11-15 23:12:43 +00003521 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003522$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003523 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003524$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3525 fi;;
3526 esac
3527 # Pass precious variables to config.status.
3528 if test "$ac_new_set" = set; then
3529 case $ac_new_val in
3530 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3531 *) ac_arg=$ac_var=$ac_new_val ;;
3532 esac
3533 case " $ac_configure_args " in
3534 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003535 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003536 esac
3537 fi
3538done
3539if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003543$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545fi
cristy8b350f62009-11-15 23:12:43 +00003546## -------------------- ##
3547## Main body of script. ##
3548## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003549
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556
3557
3558ac_aux_dir=
3559for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003560 if test -f "$ac_dir/install-sh"; then
3561 ac_aux_dir=$ac_dir
3562 ac_install_sh="$ac_aux_dir/install-sh -c"
3563 break
3564 elif test -f "$ac_dir/install.sh"; then
3565 ac_aux_dir=$ac_dir
3566 ac_install_sh="$ac_aux_dir/install.sh -c"
3567 break
3568 elif test -f "$ac_dir/shtool"; then
3569 ac_aux_dir=$ac_dir
3570 ac_install_sh="$ac_aux_dir/shtool install -c"
3571 break
3572 fi
cristy3ed852e2009-09-05 21:47:34 +00003573done
3574if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003575 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003576fi
3577
3578# These three variables are undocumented and unsupported,
3579# and are intended to be withdrawn in a future Autoconf release.
3580# They can cause serious problems if a builder's source tree is in a directory
3581# whose full name contains unusual characters.
3582ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3583ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3584ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3585
3586
3587
3588
3589ac_config_headers="$ac_config_headers config/config.h"
3590
cristy24fc1fe2010-10-23 21:13:01 +00003591
cristy01ff9f32012-12-01 18:15:29 +00003592ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003593
cristy3ed852e2009-09-05 21:47:34 +00003594# Make sure we can run config.sub.
3595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003596 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003597
cristy8b350f62009-11-15 23:12:43 +00003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003599$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003600if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003601 $as_echo_n "(cached) " >&6
3602else
3603 ac_build_alias=$build_alias
3604test "x$ac_build_alias" = x &&
3605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3606test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003607 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003608ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003610
3611fi
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo "$ac_cv_build" >&6; }
3614case $ac_cv_build in
3615*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003616*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003617esac
3618build=$ac_cv_build
3619ac_save_IFS=$IFS; IFS='-'
3620set x $ac_cv_build
3621shift
3622build_cpu=$1
3623build_vendor=$2
3624shift; shift
3625# Remember, the first character of IFS is used to create $*,
3626# except with old shells:
3627build_os=$*
3628IFS=$ac_save_IFS
3629case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3630
3631
cristy8b350f62009-11-15 23:12:43 +00003632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003633$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003634if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003635 $as_echo_n "(cached) " >&6
3636else
3637 if test "x$host_alias" = x; then
3638 ac_cv_host=$ac_cv_build
3639else
3640 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003641 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003642fi
3643
3644fi
cristy8b350f62009-11-15 23:12:43 +00003645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003646$as_echo "$ac_cv_host" >&6; }
3647case $ac_cv_host in
3648*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003649*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003650esac
3651host=$ac_cv_host
3652ac_save_IFS=$IFS; IFS='-'
3653set x $ac_cv_host
3654shift
3655host_cpu=$1
3656host_vendor=$2
3657shift; shift
3658# Remember, the first character of IFS is used to create $*,
3659# except with old shells:
3660host_os=$*
3661IFS=$ac_save_IFS
3662case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3663
3664
cristy8b350f62009-11-15 23:12:43 +00003665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003666$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003667if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003668 $as_echo_n "(cached) " >&6
3669else
3670 if test "x$target_alias" = x; then
3671 ac_cv_target=$ac_cv_host
3672else
3673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003674 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003675fi
3676
3677fi
cristy8b350f62009-11-15 23:12:43 +00003678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003679$as_echo "$ac_cv_target" >&6; }
3680case $ac_cv_target in
3681*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003682*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003683esac
3684target=$ac_cv_target
3685ac_save_IFS=$IFS; IFS='-'
3686set x $ac_cv_target
3687shift
3688target_cpu=$1
3689target_vendor=$2
3690shift; shift
3691# Remember, the first character of IFS is used to create $*,
3692# except with old shells:
3693target_os=$*
3694IFS=$ac_save_IFS
3695case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3696
3697
3698# The aliases save the names the user supplied, while $host etc.
3699# will get canonicalized.
3700test -n "$target_alias" &&
3701 test "$program_prefix$program_suffix$program_transform_name" = \
3702 NONENONEs,x,x, &&
3703 program_prefix=${target_alias}-
3704
cristy837d6dc2010-02-27 01:16:57 +00003705
cristyead532a2015-06-05 00:49:30 +00003706am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003707
3708# Find a good install program. We prefer a C program (faster),
3709# so one script is as good as another. But avoid the broken or
3710# incompatible versions:
3711# SysV /etc/install, /usr/sbin/install
3712# SunOS /usr/etc/install
3713# IRIX /sbin/install
3714# AIX /bin/install
3715# AmigaOS /C/install, which installs bootblocks on floppy discs
3716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3719# OS/2's system install, which has a completely different semantic
3720# ./install, which can be erroneously created by make from ./install.sh.
3721# Reject install programs that cannot install multiple files.
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3723$as_echo_n "checking for a BSD-compatible install... " >&6; }
3724if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003725if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003726 $as_echo_n "(cached) " >&6
3727else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729for as_dir in $PATH
3730do
3731 IFS=$as_save_IFS
3732 test -z "$as_dir" && as_dir=.
3733 # Account for people who put trailing slashes in PATH elements.
3734case $as_dir/ in #((
3735 ./ | .// | /[cC]/* | \
3736 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3737 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3738 /usr/ucb/* ) ;;
3739 *)
3740 # OSF1 and SCO ODT 3.0 have their own names for install.
3741 # Don't use installbsd from OSF since it installs stuff as root
3742 # by default.
3743 for ac_prog in ginstall scoinst install; do
3744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003745 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003746 if test $ac_prog = install &&
3747 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748 # AIX install. It has an incompatible calling convention.
3749 :
3750 elif test $ac_prog = install &&
3751 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3752 # program-specific install script used by HP pwplus--don't use.
3753 :
3754 else
3755 rm -rf conftest.one conftest.two conftest.dir
3756 echo one > conftest.one
3757 echo two > conftest.two
3758 mkdir conftest.dir
3759 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3760 test -s conftest.one && test -s conftest.two &&
3761 test -s conftest.dir/conftest.one &&
3762 test -s conftest.dir/conftest.two
3763 then
3764 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3765 break 3
3766 fi
3767 fi
3768 fi
3769 done
3770 done
3771 ;;
3772esac
3773
3774 done
3775IFS=$as_save_IFS
3776
3777rm -rf conftest.one conftest.two conftest.dir
3778
3779fi
3780 if test "${ac_cv_path_install+set}" = set; then
3781 INSTALL=$ac_cv_path_install
3782 else
3783 # As a last resort, use the slow shell script. Don't cache a
3784 # value for INSTALL within a source directory, because that will
3785 # break other packages using the cache if that directory is
3786 # removed, or if the value is a relative name.
3787 INSTALL=$ac_install_sh
3788 fi
3789fi
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3791$as_echo "$INSTALL" >&6; }
3792
3793# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3794# It thinks the first close brace ends the variable substitution.
3795test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3796
3797test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3798
3799test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3800
cristy9af1cbf2014-12-28 22:03:09 +00003801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3802$as_echo_n "checking whether build environment is sane... " >&6; }
3803# Reject unsafe characters in $srcdir or the absolute working directory
3804# name. Accept space and tab only in the latter.
3805am_lf='
3806'
3807case `pwd` in
3808 *[\\\"\#\$\&\'\`$am_lf]*)
3809 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3810esac
3811case $srcdir in
3812 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3813 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3814esac
3815
3816# Do 'set' in a subshell so we don't clobber the current shell's
3817# arguments. Must try -L first in case configure is actually a
3818# symlink; some systems play weird games with the mod time of symlinks
3819# (eg FreeBSD returns the mod time of the symlink's containing
3820# directory).
3821if (
3822 am_has_slept=no
3823 for am_try in 1 2; do
3824 echo "timestamp, slept: $am_has_slept" > conftest.file
3825 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3826 if test "$*" = "X"; then
3827 # -L didn't work.
3828 set X `ls -t "$srcdir/configure" conftest.file`
3829 fi
3830 if test "$*" != "X $srcdir/configure conftest.file" \
3831 && test "$*" != "X conftest.file $srcdir/configure"; then
3832
3833 # If neither matched, then we have a broken ls. This can happen
3834 # if, for instance, CONFIG_SHELL is bash and it inherits a
3835 # broken ls alias from the environment. This has actually
3836 # happened. Such a system could not be considered "sane".
3837 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3838 alias in your environment" "$LINENO" 5
3839 fi
3840 if test "$2" = conftest.file || test $am_try -eq 2; then
3841 break
3842 fi
3843 # Just in case.
3844 sleep 1
3845 am_has_slept=yes
3846 done
3847 test "$2" = conftest.file
3848 )
3849then
3850 # Ok.
3851 :
3852else
3853 as_fn_error $? "newly created file is older than distributed files!
3854Check your system clock" "$LINENO" 5
3855fi
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3857$as_echo "yes" >&6; }
3858# If we didn't sleep, we still need to ensure time stamps of config.status and
3859# generated files are strictly newer.
3860am_sleep_pid=
3861if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3862 ( sleep 1 ) &
3863 am_sleep_pid=$!
3864fi
3865
3866rm -f conftest.file
3867
cristy73bd4a52010-10-05 11:24:23 +00003868test "$program_prefix" != NONE &&
3869 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3870# Use a double $ so make ignores it.
3871test "$program_suffix" != NONE &&
3872 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3873# Double any \ or $.
3874# By default was `s,x,x', remove it if useless.
3875ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3876program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3877
cristyead532a2015-06-05 00:49:30 +00003878# Expand $ac_aux_dir to an absolute path.
3879am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003880
3881if test x"${MISSING+set}" != xset; then
3882 case $am_aux_dir in
3883 *\ * | *\ *)
3884 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3885 *)
3886 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3887 esac
3888fi
3889# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003890if eval "$MISSING --is-lightweight"; then
3891 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003892else
3893 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3895$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003896fi
3897
cristyead532a2015-06-05 00:49:30 +00003898if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003899 case $am_aux_dir in
3900 *\ * | *\ *)
3901 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3902 *)
3903 install_sh="\${SHELL} $am_aux_dir/install-sh"
3904 esac
3905fi
3906
cristyc0890a62012-07-19 00:18:20 +00003907# Installed binaries are usually stripped using 'strip' when the user
3908# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003909# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003910# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003911if test "$cross_compiling" != no; then
3912 if test -n "$ac_tool_prefix"; then
3913 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3914set dummy ${ac_tool_prefix}strip; ac_word=$2
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003917if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003918 $as_echo_n "(cached) " >&6
3919else
3920 if test -n "$STRIP"; then
3921 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3922else
3923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924for as_dir in $PATH
3925do
3926 IFS=$as_save_IFS
3927 test -z "$as_dir" && as_dir=.
3928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003930 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3932 break 2
3933 fi
3934done
3935 done
3936IFS=$as_save_IFS
3937
3938fi
3939fi
3940STRIP=$ac_cv_prog_STRIP
3941if test -n "$STRIP"; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3943$as_echo "$STRIP" >&6; }
3944else
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3946$as_echo "no" >&6; }
3947fi
3948
3949
3950fi
3951if test -z "$ac_cv_prog_STRIP"; then
3952 ac_ct_STRIP=$STRIP
3953 # Extract the first word of "strip", so it can be a program name with args.
3954set dummy strip; ac_word=$2
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003957if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003958 $as_echo_n "(cached) " >&6
3959else
3960 if test -n "$ac_ct_STRIP"; then
3961 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3962else
3963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3964for as_dir in $PATH
3965do
3966 IFS=$as_save_IFS
3967 test -z "$as_dir" && as_dir=.
3968 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003970 ac_cv_prog_ac_ct_STRIP="strip"
3971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3972 break 2
3973 fi
3974done
3975 done
3976IFS=$as_save_IFS
3977
3978fi
3979fi
3980ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3981if test -n "$ac_ct_STRIP"; then
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3983$as_echo "$ac_ct_STRIP" >&6; }
3984else
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3986$as_echo "no" >&6; }
3987fi
3988
3989 if test "x$ac_ct_STRIP" = x; then
3990 STRIP=":"
3991 else
3992 case $cross_compiling:$ac_tool_warned in
3993yes:)
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3996ac_tool_warned=yes ;;
3997esac
3998 STRIP=$ac_ct_STRIP
3999 fi
4000else
4001 STRIP="$ac_cv_prog_STRIP"
4002fi
4003
4004fi
4005INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4006
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4008$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4009if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004010 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004011 $as_echo_n "(cached) " >&6
4012else
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4014for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4015do
4016 IFS=$as_save_IFS
4017 test -z "$as_dir" && as_dir=.
4018 for ac_prog in mkdir gmkdir; do
4019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004020 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004021 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4022 'mkdir (GNU coreutils) '* | \
4023 'mkdir (coreutils) '* | \
4024 'mkdir (fileutils) '4.1*)
4025 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4026 break 3;;
4027 esac
4028 done
4029 done
4030 done
4031IFS=$as_save_IFS
4032
4033fi
4034
4035 test -d ./--version && rmdir ./--version
4036 if test "${ac_cv_path_mkdir+set}" = set; then
4037 MKDIR_P="$ac_cv_path_mkdir -p"
4038 else
4039 # As a last resort, use the slow shell script. Don't cache a
4040 # value for MKDIR_P within a source directory, because that will
4041 # break other packages using the cache if that directory is
4042 # removed, or if the value is a relative name.
4043 MKDIR_P="$ac_install_sh -d"
4044 fi
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4047$as_echo "$MKDIR_P" >&6; }
4048
cristy73bd4a52010-10-05 11:24:23 +00004049for ac_prog in gawk mawk nawk awk
4050do
4051 # Extract the first word of "$ac_prog", so it can be a program name with args.
4052set dummy $ac_prog; ac_word=$2
4053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004055if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004056 $as_echo_n "(cached) " >&6
4057else
4058 if test -n "$AWK"; then
4059 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4060else
4061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4062for as_dir in $PATH
4063do
4064 IFS=$as_save_IFS
4065 test -z "$as_dir" && as_dir=.
4066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004068 ac_cv_prog_AWK="$ac_prog"
4069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 break 2
4071 fi
4072done
4073 done
4074IFS=$as_save_IFS
4075
4076fi
4077fi
4078AWK=$ac_cv_prog_AWK
4079if test -n "$AWK"; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4081$as_echo "$AWK" >&6; }
4082else
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4084$as_echo "no" >&6; }
4085fi
4086
4087
4088 test -n "$AWK" && break
4089done
4090
4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4092$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4093set x ${MAKE-make}
4094ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004095if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004096 $as_echo_n "(cached) " >&6
4097else
4098 cat >conftest.make <<\_ACEOF
4099SHELL = /bin/sh
4100all:
4101 @echo '@@@%%%=$(MAKE)=@@@%%%'
4102_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004103# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004104case `${MAKE-make} -f conftest.make 2>/dev/null` in
4105 *@@@%%%=?*=@@@%%%*)
4106 eval ac_cv_prog_make_${ac_make}_set=yes;;
4107 *)
4108 eval ac_cv_prog_make_${ac_make}_set=no;;
4109esac
4110rm -f conftest.make
4111fi
4112if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4114$as_echo "yes" >&6; }
4115 SET_MAKE=
4116else
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4118$as_echo "no" >&6; }
4119 SET_MAKE="MAKE=${MAKE-make}"
4120fi
4121
4122rm -rf .tst 2>/dev/null
4123mkdir .tst 2>/dev/null
4124if test -d .tst; then
4125 am__leading_dot=.
4126else
4127 am__leading_dot=_
4128fi
4129rmdir .tst 2>/dev/null
4130
cristya448bd22011-10-14 12:38:13 +00004131# Check whether --enable-silent-rules was given.
4132if test "${enable_silent_rules+set}" = set; then :
4133 enableval=$enable_silent_rules;
4134fi
4135
cristyc0890a62012-07-19 00:18:20 +00004136case $enable_silent_rules in # (((
4137 yes) AM_DEFAULT_VERBOSITY=0;;
4138 no) AM_DEFAULT_VERBOSITY=1;;
4139 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004140esac
cristyc3fb77b2012-02-06 01:49:41 +00004141am_make=${MAKE-make}
4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4143$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4144if ${am_cv_make_support_nested_variables+:} false; then :
4145 $as_echo_n "(cached) " >&6
4146else
4147 if $as_echo 'TRUE=$(BAR$(V))
4148BAR0=false
4149BAR1=true
4150V=1
4151am__doit:
4152 @$(TRUE)
4153.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4154 am_cv_make_support_nested_variables=yes
4155else
4156 am_cv_make_support_nested_variables=no
4157fi
4158fi
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4160$as_echo "$am_cv_make_support_nested_variables" >&6; }
4161if test $am_cv_make_support_nested_variables = yes; then
4162 AM_V='$(V)'
4163 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4164else
4165 AM_V=$AM_DEFAULT_VERBOSITY
4166 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4167fi
cristya448bd22011-10-14 12:38:13 +00004168AM_BACKSLASH='\'
4169
cristy73bd4a52010-10-05 11:24:23 +00004170if test "`cd $srcdir && pwd`" != "`pwd`"; then
4171 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4172 # is not polluted with repeated "-I."
4173 am__isrc=' -I$(srcdir)'
4174 # test to see if srcdir already configured
4175 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004176 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004177 fi
4178fi
4179
4180# test whether we have cygpath
4181if test -z "$CYGPATH_W"; then
4182 if (cygpath --version) >/dev/null 2>/dev/null; then
4183 CYGPATH_W='cygpath -w'
4184 else
4185 CYGPATH_W=echo
4186 fi
4187fi
4188
4189
4190# Define the identity of the package.
Cristyff282552015-09-19 16:49:39 -04004191 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004192 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004193
4194
cristya448bd22011-10-14 12:38:13 +00004195cat >>confdefs.h <<_ACEOF
4196#define PACKAGE "$PACKAGE"
4197_ACEOF
4198
4199
4200cat >>confdefs.h <<_ACEOF
4201#define VERSION "$VERSION"
4202_ACEOF
4203
cristy73bd4a52010-10-05 11:24:23 +00004204# Some tools Automake needs.
4205
4206ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4207
4208
4209AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4210
4211
4212AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4213
4214
4215AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4216
4217
4218MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4219
cristyc0890a62012-07-19 00:18:20 +00004220# For better backward compatibility. To be removed once Automake 1.9.x
4221# dies out for good. For more background, see:
4222# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4223# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4224mkdir_p='$(MKDIR_P)'
4225
cristyead532a2015-06-05 00:49:30 +00004226# We need awk for the "check" target (and possibly the TAP driver). The
4227# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004228# Always define AMTAR for backward compatibility. Yes, it's still used
4229# in the wild :-( We should find a proper way to deprecate it ...
4230AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004231
cristye69bdbe2013-05-03 21:40:44 +00004232
4233# We'll loop over all known methods to create a tar archive until one works.
4234_am_tools='gnutar pax cpio none'
4235
cristyc3fb77b2012-02-06 01:49:41 +00004236am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004237
4238
4239
4240
4241
cristy3ed852e2009-09-05 21:47:34 +00004242
cristya5bda012013-11-03 18:05:38 +00004243# POSIX will say in a future version that running "rm -f" with no argument
4244# is OK; and we want to be able to make that assumption in our Makefile
4245# recipes. So use an aggressive probe to check that the usage we want is
4246# actually supported "in the wild" to an acceptable degree.
4247# See automake bug#10828.
4248# To make any issue more visible, cause the running configure to be aborted
4249# by default if the 'rm' program in use doesn't match our expectations; the
4250# user can still override this though.
4251if rm -f && rm -fr && rm -rf; then : OK; else
4252 cat >&2 <<'END'
4253Oops!
4254
4255Your 'rm' program seems unable to run without file operands specified
4256on the command line, even when the '-f' option is present. This is contrary
4257to the behaviour of most rm programs out there, and not conforming with
4258the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4259
4260Please tell bug-automake@gnu.org about your system, including the value
4261of your $PATH and any error possibly output before this message. This
4262can help us improve future automake versions.
4263
4264END
4265 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4266 echo 'Configuration will proceed anyway, since you have set the' >&2
4267 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4268 echo >&2
4269 else
4270 cat >&2 <<'END'
4271Aborting the configuration process, to ensure you take notice of the issue.
4272
4273You can download and install GNU coreutils to get an 'rm' implementation
4274that behaves properly: <http://www.gnu.org/software/coreutils/>.
4275
4276If you want to complete the configuration process using your problematic
4277'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4278to "yes", and re-run configure.
4279
4280END
4281 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4282 fi
4283fi
cristyead532a2015-06-05 00:49:30 +00004284
cristy73bd4a52010-10-05 11:24:23 +00004285# Check whether --enable-silent-rules was given.
4286if test "${enable_silent_rules+set}" = set; then :
4287 enableval=$enable_silent_rules;
4288fi
4289
cristyc0890a62012-07-19 00:18:20 +00004290case $enable_silent_rules in # (((
4291 yes) AM_DEFAULT_VERBOSITY=0;;
4292 no) AM_DEFAULT_VERBOSITY=1;;
4293 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004294esac
cristyc3fb77b2012-02-06 01:49:41 +00004295am_make=${MAKE-make}
4296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4297$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4298if ${am_cv_make_support_nested_variables+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300else
4301 if $as_echo 'TRUE=$(BAR$(V))
4302BAR0=false
4303BAR1=true
4304V=1
4305am__doit:
4306 @$(TRUE)
4307.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4308 am_cv_make_support_nested_variables=yes
4309else
4310 am_cv_make_support_nested_variables=no
4311fi
4312fi
4313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4314$as_echo "$am_cv_make_support_nested_variables" >&6; }
4315if test $am_cv_make_support_nested_variables = yes; then
4316 AM_V='$(V)'
4317 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4318else
4319 AM_V=$AM_DEFAULT_VERBOSITY
4320 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4321fi
cristy73bd4a52010-10-05 11:24:23 +00004322AM_BACKSLASH='\'
4323
cristy3ed852e2009-09-05 21:47:34 +00004324
cristy9af1cbf2014-12-28 22:03:09 +00004325#
4326# Save initial user-tunable values
4327#
4328USER_LIBS=$LIBS
4329for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4330 eval isset=\${$var+set}
4331 if test "$isset" = 'set'; then
4332 eval val=$`echo $var`
4333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4334 fi
4335done
4336
4337
4338CONFIGURE_ARGS="$0 ${ac_configure_args}"
4339
4340
cristy187791c2015-05-03 22:17:00 +00004341# Check whether --enable-reproducible-build was given.
4342if test "${enable_reproducible_build+set}" = set; then :
4343 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4344else
4345 enable_reproducible_build='no'
4346fi
4347
4348
cristy9af1cbf2014-12-28 22:03:09 +00004349# Source file containing package/library versioning information.
4350. ${srcdir}/version.sh
4351
4352echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4353
4354MAGICK_TARGET_CPU=$host_cpu
4355
4356
4357cat >>confdefs.h <<_ACEOF
4358#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4359_ACEOF
4360
4361
4362MAGICK_TARGET_VENDOR=$host_vendor
4363
4364
4365cat >>confdefs.h <<_ACEOF
4366#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4367_ACEOF
4368
4369
4370MAGICK_TARGET_OS=$host_os
4371
4372
4373cat >>confdefs.h <<_ACEOF
4374#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4375_ACEOF
4376
4377
4378
4379# Substitute versioning
4380MAGICK_MAJOR_VERSION=7
4381
4382MAGICK_MINOR_VERSION=0
4383
4384MAGICK_MICRO_VERSION=0
4385
4386MAGICK_PATCHLEVEL_VERSION=0
4387
4388MAGICK_VERSION=7.0.0-0
4389
Cristy96afea82015-12-20 18:02:44 -05004390MAGICK_GIT_REVISION=17359:88932ef:20151220
cristy9af1cbf2014-12-28 22:03:09 +00004391
4392
4393# Substitute library versioning
4394MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4395
4396MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4397
4398
4399MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4400
4401MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4402
4403
cristy187791c2015-05-03 22:17:00 +00004404if test X$enable_reproducible_build = Xyes; then :
4405 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4406elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4407
4408fi
4409
cristy9af1cbf2014-12-28 22:03:09 +00004410
4411# Ensure that make can run correctly
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4413$as_echo_n "checking whether build environment is sane... " >&6; }
4414# Reject unsafe characters in $srcdir or the absolute working directory
4415# name. Accept space and tab only in the latter.
4416am_lf='
4417'
4418case `pwd` in
4419 *[\\\"\#\$\&\'\`$am_lf]*)
4420 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4421esac
4422case $srcdir in
4423 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4424 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4425esac
4426
4427# Do 'set' in a subshell so we don't clobber the current shell's
4428# arguments. Must try -L first in case configure is actually a
4429# symlink; some systems play weird games with the mod time of symlinks
4430# (eg FreeBSD returns the mod time of the symlink's containing
4431# directory).
4432if (
4433 am_has_slept=no
4434 for am_try in 1 2; do
4435 echo "timestamp, slept: $am_has_slept" > conftest.file
4436 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4437 if test "$*" = "X"; then
4438 # -L didn't work.
4439 set X `ls -t "$srcdir/configure" conftest.file`
4440 fi
4441 if test "$*" != "X $srcdir/configure conftest.file" \
4442 && test "$*" != "X conftest.file $srcdir/configure"; then
4443
4444 # If neither matched, then we have a broken ls. This can happen
4445 # if, for instance, CONFIG_SHELL is bash and it inherits a
4446 # broken ls alias from the environment. This has actually
4447 # happened. Such a system could not be considered "sane".
4448 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4449 alias in your environment" "$LINENO" 5
4450 fi
4451 if test "$2" = conftest.file || test $am_try -eq 2; then
4452 break
4453 fi
4454 # Just in case.
4455 sleep 1
4456 am_has_slept=yes
4457 done
4458 test "$2" = conftest.file
4459 )
4460then
4461 # Ok.
4462 :
4463else
4464 as_fn_error $? "newly created file is older than distributed files!
4465Check your system clock" "$LINENO" 5
4466fi
4467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468$as_echo "yes" >&6; }
4469# If we didn't sleep, we still need to ensure time stamps of config.status and
4470# generated files are strictly newer.
4471am_sleep_pid=
4472if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4473 ( sleep 1 ) &
4474 am_sleep_pid=$!
4475fi
4476
4477rm -f conftest.file
4478
4479
cristyf279b692014-08-13 12:01:27 +00004480# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004481MAGICK_LIB_VERSION="0x"
4482if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4483 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4484fi
4485MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4486if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4487 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4488fi
4489MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4490if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4491 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4492fi
4493MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4494
4495
4496# Definition used to define MagickLibVersionText in version.h
4497MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4498
4499
4500# Definition used to define MagickLibVersionNumber in version.h
4501MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4502
4503
cristy5ed9c6e2013-07-14 21:20:31 +00004504MAGICKPP_LIB_VERSION="0x"
4505if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4506 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4507fi
4508MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4509if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4510 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4511fi
4512MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4513if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4514 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4515fi
4516MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4517
4518
4519# Definition used to define MagickLibVersionText in version.h
4520MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4521
4522
4523# Definition used to define MagickLibVersionNumber in version.h
4524MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4525
4526
4527
4528
cristy3ed852e2009-09-05 21:47:34 +00004529# Regenerate config.status if ChangeLog or version.sh is updated.
4530CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4531
4532
4533PERLMAINCC=$CC
4534
4535MAGICK_CFLAGS=''
4536MAGICK_CPPFLAGS=$CPPFLAGS_USER
4537MAGICK_PCFLAGS=$CPPFLAGS_USER
4538MAGICK_LDFLAGS=''
4539MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004540MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004541
4542#
4543# Evaluate shell variable equivalents to Makefile directory variables
4544#
4545if test "x$prefix" = xNONE; then
4546 prefix=$ac_default_prefix
4547fi
4548# Let make expand exec_prefix.
4549if test "x$exec_prefix" = xNONE; then
4550 exec_prefix='${prefix}'
4551fi
4552
4553#
4554eval "eval PREFIX_DIR=${prefix}"
4555
4556eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4557
4558eval "eval BIN_DIR=$bindir"
4559
4560eval "eval SBIN_DIR=$sbindir"
4561
4562eval "eval LIBEXEC_DIR=$libexecdir"
4563
4564eval "eval DATA_DIR=$datadir"
4565
Cristye35bdc62015-09-19 18:29:00 -04004566eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004567
cristy3ed852e2009-09-05 21:47:34 +00004568eval "eval SYSCONF_DIR=$sysconfdir"
4569
4570eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4571
4572eval "eval LOCALSTATE_DIR=$localstatedir"
4573
4574eval "eval LIB_DIR=$libdir"
4575
4576eval "eval INCLUDE_DIR=$includedir"
4577
4578eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4579
4580eval "eval INFO_DIR=$infodir"
4581
4582eval "eval MAN_DIR=$mandir"
4583
4584
4585# Get full paths to source and build directories
4586srcdirfull="`cd $srcdir && pwd`"
4587builddir="`pwd`"
4588
4589#
4590# Compute variables useful for running uninstalled software.
4591#
4592MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4593MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4594MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4595MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4596DIRSEP=':'
4597case "${build_os}" in
4598 mingw* )
4599 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4600 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4601 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4602 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4603 DIRSEP=';'
4604 ;;
4605esac
4606case "${host_os}" in
4607 mingw* )
4608 DIRSEP=';'
4609 ;;
4610esac
4611
4612
4613
4614
4615
4616
cristya0b81c32010-01-22 02:54:33 +00004617
4618#
4619# Enable OS features.
4620#
cristy73bd4a52010-10-05 11:24:23 +00004621DEPDIR="${am__leading_dot}deps"
4622
4623ac_config_commands="$ac_config_commands depfiles"
4624
4625
4626am_make=${MAKE-make}
4627cat > confinc << 'END'
4628am__doit:
4629 @echo this is the am__doit target
4630.PHONY: am__doit
4631END
4632# If we don't find an include directive, just comment out the code.
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4634$as_echo_n "checking for style of include used by $am_make... " >&6; }
4635am__include="#"
4636am__quote=
4637_am_result=none
4638# First try GNU make style include.
4639echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004640# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004641case `$am_make -s -f confmf 2> /dev/null` in #(
4642*the\ am__doit\ target*)
4643 am__include=include
4644 am__quote=
4645 _am_result=GNU
4646 ;;
4647esac
4648# Now try BSD make style include.
4649if test "$am__include" = "#"; then
4650 echo '.include "confinc"' > confmf
4651 case `$am_make -s -f confmf 2> /dev/null` in #(
4652 *the\ am__doit\ target*)
4653 am__include=.include
4654 am__quote="\""
4655 _am_result=BSD
4656 ;;
4657 esac
4658fi
4659
4660
4661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4662$as_echo "$_am_result" >&6; }
4663rm -f confinc confmf
4664
4665# Check whether --enable-dependency-tracking was given.
4666if test "${enable_dependency_tracking+set}" = set; then :
4667 enableval=$enable_dependency_tracking;
4668fi
4669
4670if test "x$enable_dependency_tracking" != xno; then
4671 am_depcomp="$ac_aux_dir/depcomp"
4672 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004673 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004674fi
4675 if test "x$enable_dependency_tracking" != xno; then
4676 AMDEP_TRUE=
4677 AMDEP_FALSE='#'
4678else
4679 AMDEP_TRUE='#'
4680 AMDEP_FALSE=
4681fi
4682
4683
cristy3ed852e2009-09-05 21:47:34 +00004684ac_ext=c
4685ac_cpp='$CPP $CPPFLAGS'
4686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688ac_compiler_gnu=$ac_cv_c_compiler_gnu
4689if test -n "$ac_tool_prefix"; then
4690 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4691set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004693$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004694if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004695 $as_echo_n "(cached) " >&6
4696else
4697 if test -n "$CC"; then
4698 ac_cv_prog_CC="$CC" # Let the user override the test.
4699else
4700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701for as_dir in $PATH
4702do
4703 IFS=$as_save_IFS
4704 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004705 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004707 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004709 break 2
4710 fi
4711done
cristy8b350f62009-11-15 23:12:43 +00004712 done
cristy3ed852e2009-09-05 21:47:34 +00004713IFS=$as_save_IFS
4714
4715fi
4716fi
4717CC=$ac_cv_prog_CC
4718if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004720$as_echo "$CC" >&6; }
4721else
cristy8b350f62009-11-15 23:12:43 +00004722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004723$as_echo "no" >&6; }
4724fi
4725
4726
4727fi
4728if test -z "$ac_cv_prog_CC"; then
4729 ac_ct_CC=$CC
4730 # Extract the first word of "gcc", so it can be a program name with args.
4731set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004734if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004735 $as_echo_n "(cached) " >&6
4736else
4737 if test -n "$ac_ct_CC"; then
4738 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743 IFS=$as_save_IFS
4744 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004745 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004749 break 2
4750 fi
4751done
cristy8b350f62009-11-15 23:12:43 +00004752 done
cristy3ed852e2009-09-05 21:47:34 +00004753IFS=$as_save_IFS
4754
4755fi
4756fi
4757ac_ct_CC=$ac_cv_prog_ac_ct_CC
4758if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004760$as_echo "$ac_ct_CC" >&6; }
4761else
cristy8b350f62009-11-15 23:12:43 +00004762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004763$as_echo "no" >&6; }
4764fi
4765
4766 if test "x$ac_ct_CC" = x; then
4767 CC=""
4768 else
4769 case $cross_compiling:$ac_tool_warned in
4770yes:)
cristy8b350f62009-11-15 23:12:43 +00004771{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004772$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4773ac_tool_warned=yes ;;
4774esac
4775 CC=$ac_ct_CC
4776 fi
4777else
4778 CC="$ac_cv_prog_CC"
4779fi
4780
4781if test -z "$CC"; then
4782 if test -n "$ac_tool_prefix"; then
4783 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4784set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004786$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004787if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004788 $as_echo_n "(cached) " >&6
4789else
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC="$CC" # Let the user override the test.
4792else
4793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794for as_dir in $PATH
4795do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004798 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004800 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004802 break 2
4803 fi
4804done
cristy8b350f62009-11-15 23:12:43 +00004805 done
cristy3ed852e2009-09-05 21:47:34 +00004806IFS=$as_save_IFS
4807
4808fi
4809fi
4810CC=$ac_cv_prog_CC
4811if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004813$as_echo "$CC" >&6; }
4814else
cristy8b350f62009-11-15 23:12:43 +00004815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004816$as_echo "no" >&6; }
4817fi
4818
4819
4820 fi
4821fi
4822if test -z "$CC"; then
4823 # Extract the first word of "cc", so it can be a program name with args.
4824set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004826$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004827if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004828 $as_echo_n "(cached) " >&6
4829else
4830 if test -n "$CC"; then
4831 ac_cv_prog_CC="$CC" # Let the user override the test.
4832else
4833 ac_prog_rejected=no
4834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835for as_dir in $PATH
4836do
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004841 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4842 ac_prog_rejected=yes
4843 continue
4844 fi
4845 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004847 break 2
4848 fi
4849done
cristy8b350f62009-11-15 23:12:43 +00004850 done
cristy3ed852e2009-09-05 21:47:34 +00004851IFS=$as_save_IFS
4852
4853if test $ac_prog_rejected = yes; then
4854 # We found a bogon in the path, so make sure we never use it.
4855 set dummy $ac_cv_prog_CC
4856 shift
4857 if test $# != 0; then
4858 # We chose a different compiler from the bogus one.
4859 # However, it has the same basename, so the bogon will be chosen
4860 # first if we set CC to just the basename; use the full file name.
4861 shift
4862 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4863 fi
4864fi
4865fi
4866fi
4867CC=$ac_cv_prog_CC
4868if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004870$as_echo "$CC" >&6; }
4871else
cristy8b350f62009-11-15 23:12:43 +00004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004873$as_echo "no" >&6; }
4874fi
4875
4876
4877fi
4878if test -z "$CC"; then
4879 if test -n "$ac_tool_prefix"; then
4880 for ac_prog in cl.exe
4881 do
4882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004886if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004887 $as_echo_n "(cached) " >&6
4888else
4889 if test -n "$CC"; then
4890 ac_cv_prog_CC="$CC" # Let the user override the test.
4891else
4892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4893for as_dir in $PATH
4894do
4895 IFS=$as_save_IFS
4896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004899 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004901 break 2
4902 fi
4903done
cristy8b350f62009-11-15 23:12:43 +00004904 done
cristy3ed852e2009-09-05 21:47:34 +00004905IFS=$as_save_IFS
4906
4907fi
4908fi
4909CC=$ac_cv_prog_CC
4910if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004912$as_echo "$CC" >&6; }
4913else
cristy8b350f62009-11-15 23:12:43 +00004914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004915$as_echo "no" >&6; }
4916fi
4917
4918
4919 test -n "$CC" && break
4920 done
4921fi
4922if test -z "$CC"; then
4923 ac_ct_CC=$CC
4924 for ac_prog in cl.exe
4925do
4926 # Extract the first word of "$ac_prog", so it can be a program name with args.
4927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004930if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004931 $as_echo_n "(cached) " >&6
4932else
4933 if test -n "$ac_ct_CC"; then
4934 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4935else
4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004943 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004945 break 2
4946 fi
4947done
cristy8b350f62009-11-15 23:12:43 +00004948 done
cristy3ed852e2009-09-05 21:47:34 +00004949IFS=$as_save_IFS
4950
4951fi
4952fi
4953ac_ct_CC=$ac_cv_prog_ac_ct_CC
4954if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo "$ac_ct_CC" >&6; }
4957else
cristy8b350f62009-11-15 23:12:43 +00004958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959$as_echo "no" >&6; }
4960fi
4961
4962
4963 test -n "$ac_ct_CC" && break
4964done
4965
4966 if test "x$ac_ct_CC" = x; then
4967 CC=""
4968 else
4969 case $cross_compiling:$ac_tool_warned in
4970yes:)
cristy8b350f62009-11-15 23:12:43 +00004971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4973ac_tool_warned=yes ;;
4974esac
4975 CC=$ac_ct_CC
4976 fi
4977fi
4978
4979fi
4980
4981
cristy8b350f62009-11-15 23:12:43 +00004982test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004984as_fn_error $? "no acceptable C compiler found in \$PATH
4985See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004986
4987# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004988$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004989set X $ac_compile
4990ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004991for ac_option in --version -v -V -qversion; do
4992 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004993case "(($ac_try" in
4994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4995 *) ac_try_echo=$ac_try;;
4996esac
cristy8b350f62009-11-15 23:12:43 +00004997eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4998$as_echo "$ac_try_echo"; } >&5
4999 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00005000 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005001 if test -s conftest.err; then
5002 sed '10a\
5003... rest of stderr output deleted ...
5004 10q' conftest.err >conftest.er1
5005 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00005006 fi
cristycd4c5312009-11-22 01:19:08 +00005007 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5009 test $ac_status = 0; }
5010done
cristy3ed852e2009-09-05 21:47:34 +00005011
cristy8b350f62009-11-15 23:12:43 +00005012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005013/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005014
cristy3ed852e2009-09-05 21:47:34 +00005015int
5016main ()
5017{
5018
5019 ;
5020 return 0;
5021}
5022_ACEOF
5023ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005024ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005025# Try to create an executable without -o first, disregard a.out.
5026# It will help us diagnose broken compilers, and finding out an intuition
5027# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5029$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005030ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5031
5032# The possible output files:
5033ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5034
5035ac_rmfiles=
5036for ac_file in $ac_files
5037do
5038 case $ac_file in
5039 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5040 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5041 esac
5042done
5043rm -f $ac_rmfiles
5044
cristy8b350f62009-11-15 23:12:43 +00005045if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005046case "(($ac_try" in
5047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5048 *) ac_try_echo=$ac_try;;
5049esac
cristy8b350f62009-11-15 23:12:43 +00005050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5051$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005052 (eval "$ac_link_default") 2>&5
5053 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005056 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5057# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5058# in a Makefile. We should not override ac_cv_exeext if it was cached,
5059# so that the user can short-circuit this test for compilers unknown to
5060# Autoconf.
5061for ac_file in $ac_files ''
5062do
5063 test -f "$ac_file" || continue
5064 case $ac_file in
5065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5066 ;;
5067 [ab].out )
5068 # We found the default executable, but exeext='' is most
5069 # certainly right.
5070 break;;
5071 *.* )
cristy8b350f62009-11-15 23:12:43 +00005072 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005073 then :; else
5074 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5075 fi
5076 # We set ac_cv_exeext here because the later test for it is not
5077 # safe: cross compilers may not add the suffix if given an `-o'
5078 # argument, so we may need to know it at that point already.
5079 # Even if this section looks crufty: it has the advantage of
5080 # actually working.
5081 break;;
5082 * )
5083 break;;
5084 esac
5085done
5086test "$ac_cv_exeext" = no && ac_cv_exeext=
5087
5088else
5089 ac_file=''
5090fi
cristy8b350f62009-11-15 23:12:43 +00005091if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093$as_echo "no" >&6; }
5094$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005095sed 's/^/| /' conftest.$ac_ext >&5
5096
cristy8b350f62009-11-15 23:12:43 +00005097{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005098$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005099as_fn_error 77 "C compiler cannot create executables
5100See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005101else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5103$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005104fi
cristycd4c5312009-11-22 01:19:08 +00005105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5106$as_echo_n "checking for C compiler default output file name... " >&6; }
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5108$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005109ac_exeext=$ac_cv_exeext
5110
cristycd4c5312009-11-22 01:19:08 +00005111rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005112ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005114$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005115if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005116case "(($ac_try" in
5117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5118 *) ac_try_echo=$ac_try;;
5119esac
cristy8b350f62009-11-15 23:12:43 +00005120eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5121$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005122 (eval "$ac_link") 2>&5
5123 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005126 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5127# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5128# work properly (i.e., refer to `conftest.exe'), while it won't with
5129# `rm'.
5130for ac_file in conftest.exe conftest conftest.*; do
5131 test -f "$ac_file" || continue
5132 case $ac_file in
5133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5134 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5135 break;;
5136 * ) break;;
5137 esac
5138done
5139else
cristy8b350f62009-11-15 23:12:43 +00005140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005141$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005142as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5143See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005144fi
cristycd4c5312009-11-22 01:19:08 +00005145rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005147$as_echo "$ac_cv_exeext" >&6; }
5148
5149rm -f conftest.$ac_ext
5150EXEEXT=$ac_cv_exeext
5151ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153/* end confdefs.h. */
5154#include <stdio.h>
5155int
5156main ()
5157{
5158FILE *f = fopen ("conftest.out", "w");
5159 return ferror (f) || fclose (f) != 0;
5160
5161 ;
5162 return 0;
5163}
5164_ACEOF
5165ac_clean_files="$ac_clean_files conftest.out"
5166# Check that the compiler produces executables we can run. If not, either
5167# the compiler is broken, or we cross compile.
5168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5169$as_echo_n "checking whether we are cross compiling... " >&6; }
5170if test "$cross_compiling" != yes; then
5171 { { ac_try="$ac_link"
5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5177$as_echo "$ac_try_echo"; } >&5
5178 (eval "$ac_link") 2>&5
5179 ac_status=$?
5180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5181 test $ac_status = 0; }
5182 if { ac_try='./conftest$ac_cv_exeext'
5183 { { case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
5187eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5188$as_echo "$ac_try_echo"; } >&5
5189 (eval "$ac_try") 2>&5
5190 ac_status=$?
5191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192 test $ac_status = 0; }; }; then
5193 cross_compiling=no
5194 else
5195 if test "$cross_compiling" = maybe; then
5196 cross_compiling=yes
5197 else
5198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5199$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005200as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005201If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005202See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005203 fi
5204 fi
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5207$as_echo "$cross_compiling" >&6; }
5208
5209rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5210ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005212$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005213if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005214 $as_echo_n "(cached) " >&6
5215else
cristy8b350f62009-11-15 23:12:43 +00005216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005217/* end confdefs.h. */
5218
5219int
5220main ()
5221{
5222
5223 ;
5224 return 0;
5225}
5226_ACEOF
5227rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005228if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005229case "(($ac_try" in
5230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231 *) ac_try_echo=$ac_try;;
5232esac
cristy8b350f62009-11-15 23:12:43 +00005233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005235 (eval "$ac_compile") 2>&5
5236 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005239 for ac_file in conftest.o conftest.obj conftest.*; do
5240 test -f "$ac_file" || continue;
5241 case $ac_file in
5242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5243 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5244 break;;
5245 esac
5246done
5247else
5248 $as_echo "$as_me: failed program was:" >&5
5249sed 's/^/| /' conftest.$ac_ext >&5
5250
cristy8b350f62009-11-15 23:12:43 +00005251{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005252$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005253as_fn_error $? "cannot compute suffix of object files: cannot compile
5254See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005255fi
cristy3ed852e2009-09-05 21:47:34 +00005256rm -f conftest.$ac_cv_objext conftest.$ac_ext
5257fi
cristy8b350f62009-11-15 23:12:43 +00005258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005259$as_echo "$ac_cv_objext" >&6; }
5260OBJEXT=$ac_cv_objext
5261ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005263$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005264if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005265 $as_echo_n "(cached) " >&6
5266else
cristy8b350f62009-11-15 23:12:43 +00005267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005268/* end confdefs.h. */
5269
5270int
5271main ()
5272{
5273#ifndef __GNUC__
5274 choke me
5275#endif
5276
5277 ;
5278 return 0;
5279}
5280_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005281if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005282 ac_compiler_gnu=yes
5283else
cristy8b350f62009-11-15 23:12:43 +00005284 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005285fi
cristy3ed852e2009-09-05 21:47:34 +00005286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287ac_cv_c_compiler_gnu=$ac_compiler_gnu
5288
5289fi
cristy8b350f62009-11-15 23:12:43 +00005290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005291$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5292if test $ac_compiler_gnu = yes; then
5293 GCC=yes
5294else
5295 GCC=
5296fi
5297ac_test_CFLAGS=${CFLAGS+set}
5298ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005300$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005301if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005302 $as_echo_n "(cached) " >&6
5303else
5304 ac_save_c_werror_flag=$ac_c_werror_flag
5305 ac_c_werror_flag=yes
5306 ac_cv_prog_cc_g=no
5307 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005309/* end confdefs.h. */
5310
5311int
5312main ()
5313{
5314
5315 ;
5316 return 0;
5317}
5318_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005319if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005320 ac_cv_prog_cc_g=yes
5321else
cristy8b350f62009-11-15 23:12:43 +00005322 CFLAGS=""
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005324/* end confdefs.h. */
5325
5326int
5327main ()
5328{
5329
5330 ;
5331 return 0;
5332}
5333_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005334if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005335
cristy8b350f62009-11-15 23:12:43 +00005336else
5337 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005338 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005340/* end confdefs.h. */
5341
5342int
5343main ()
5344{
5345
5346 ;
5347 return 0;
5348}
5349_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005350if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005351 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005352fi
cristy3ed852e2009-09-05 21:47:34 +00005353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354fi
cristy3ed852e2009-09-05 21:47:34 +00005355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356fi
cristy3ed852e2009-09-05 21:47:34 +00005357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 ac_c_werror_flag=$ac_save_c_werror_flag
5359fi
cristy8b350f62009-11-15 23:12:43 +00005360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005361$as_echo "$ac_cv_prog_cc_g" >&6; }
5362if test "$ac_test_CFLAGS" = set; then
5363 CFLAGS=$ac_save_CFLAGS
5364elif test $ac_cv_prog_cc_g = yes; then
5365 if test "$GCC" = yes; then
5366 CFLAGS="-g -O2"
5367 else
5368 CFLAGS="-g"
5369 fi
5370else
5371 if test "$GCC" = yes; then
5372 CFLAGS="-O2"
5373 else
5374 CFLAGS=
5375 fi
5376fi
cristy8b350f62009-11-15 23:12:43 +00005377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005378$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005379if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005380 $as_echo_n "(cached) " >&6
5381else
5382 ac_cv_prog_cc_c89=no
5383ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005385/* end confdefs.h. */
5386#include <stdarg.h>
5387#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005388struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005389/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5390struct buf { int x; };
5391FILE * (*rcsopen) (struct buf *, struct stat *, int);
5392static char *e (p, i)
5393 char **p;
5394 int i;
5395{
5396 return p[i];
5397}
5398static char *f (char * (*g) (char **, int), char **p, ...)
5399{
5400 char *s;
5401 va_list v;
5402 va_start (v,p);
5403 s = g (p, va_arg (v,int));
5404 va_end (v);
5405 return s;
5406}
5407
5408/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5409 function prototypes and stuff, but not '\xHH' hex character constants.
5410 These don't provoke an error unfortunately, instead are silently treated
5411 as 'x'. The following induces an error, until -std is added to get
5412 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5413 array size at least. It's necessary to write '\x00'==0 to get something
5414 that's true only with -std. */
5415int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5416
5417/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5418 inside strings and character constants. */
5419#define FOO(x) 'x'
5420int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5421
5422int test (int i, double x);
5423struct s1 {int (*f) (int a);};
5424struct s2 {int (*f) (double a);};
5425int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5426int argc;
5427char **argv;
5428int
5429main ()
5430{
5431return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5432 ;
5433 return 0;
5434}
5435_ACEOF
5436for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5437 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5438do
5439 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005440 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005441 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005442fi
cristy3ed852e2009-09-05 21:47:34 +00005443rm -f core conftest.err conftest.$ac_objext
5444 test "x$ac_cv_prog_cc_c89" != "xno" && break
5445done
5446rm -f conftest.$ac_ext
5447CC=$ac_save_CC
5448
5449fi
5450# AC_CACHE_VAL
5451case "x$ac_cv_prog_cc_c89" in
5452 x)
cristy8b350f62009-11-15 23:12:43 +00005453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005454$as_echo "none needed" >&6; } ;;
5455 xno)
cristy8b350f62009-11-15 23:12:43 +00005456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005457$as_echo "unsupported" >&6; } ;;
5458 *)
5459 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005461$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5462esac
cristy8b350f62009-11-15 23:12:43 +00005463if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005464
cristy8b350f62009-11-15 23:12:43 +00005465fi
cristy3ed852e2009-09-05 21:47:34 +00005466
5467ac_ext=c
5468ac_cpp='$CPP $CPPFLAGS'
5469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5471ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005472
cristya5bda012013-11-03 18:05:38 +00005473ac_ext=c
5474ac_cpp='$CPP $CPPFLAGS'
5475ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5476ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5477ac_compiler_gnu=$ac_cv_c_compiler_gnu
5478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5479$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5480if ${am_cv_prog_cc_c_o+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482else
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484/* end confdefs.h. */
5485
5486int
5487main ()
5488{
5489
5490 ;
5491 return 0;
5492}
5493_ACEOF
5494 # Make sure it works both with $CC and with simple cc.
5495 # Following AC_PROG_CC_C_O, we do the test twice because some
5496 # compilers refuse to overwrite an existing .o file with -o,
5497 # though they will create one.
5498 am_cv_prog_cc_c_o=yes
5499 for am_i in 1 2; do
5500 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5501 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5502 ac_status=$?
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } \
5505 && test -f conftest2.$ac_objext; then
5506 : OK
5507 else
5508 am_cv_prog_cc_c_o=no
5509 break
5510 fi
5511 done
5512 rm -f core conftest*
5513 unset am_i
5514fi
5515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5516$as_echo "$am_cv_prog_cc_c_o" >&6; }
5517if test "$am_cv_prog_cc_c_o" != yes; then
5518 # Losing compiler, so override with the script.
5519 # FIXME: It is wrong to rewrite CC.
5520 # But if we don't then we get into trouble of one sort or another.
5521 # A longer-term fix would be to have automake use am__CC in this case,
5522 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5523 CC="$am_aux_dir/compile $CC"
5524fi
5525ac_ext=c
5526ac_cpp='$CPP $CPPFLAGS'
5527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5529ac_compiler_gnu=$ac_cv_c_compiler_gnu
5530
5531
cristy73bd4a52010-10-05 11:24:23 +00005532depcc="$CC" am_compiler_list=
5533
5534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5535$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005536if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005537 $as_echo_n "(cached) " >&6
5538else
5539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5540 # We make a subdir and do the tests there. Otherwise we can end up
5541 # making bogus files that we don't know about and never remove. For
5542 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005543 # making a dummy file named 'D' -- because '-MD' means "put the output
5544 # in D".
cristy7247bba2012-02-05 16:37:27 +00005545 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005546 mkdir conftest.dir
5547 # Copy depcomp to subdir because otherwise we won't find it if we're
5548 # using a relative directory.
5549 cp "$am_depcomp" conftest.dir
5550 cd conftest.dir
5551 # We will build objects and dependencies in a subdirectory because
5552 # it helps to detect inapplicable dependency modes. For instance
5553 # both Tru64's cc and ICC support -MD to output dependencies as a
5554 # side effect of compilation, but ICC will put the dependencies in
5555 # the current directory while Tru64 will put them in the object
5556 # directory.
5557 mkdir sub
5558
5559 am_cv_CC_dependencies_compiler_type=none
5560 if test "$am_compiler_list" = ""; then
5561 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5562 fi
5563 am__universal=false
5564 case " $depcc " in #(
5565 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5566 esac
5567
5568 for depmode in $am_compiler_list; do
5569 # Setup a source with many dependencies, because some compilers
5570 # like to wrap large dependency lists on column 80 (with \), and
5571 # we should not choose a depcomp mode which is confused by this.
5572 #
5573 # We need to recreate these files for each test, as the compiler may
5574 # overwrite some of them when testing with obscure command lines.
5575 # This happens at least with the AIX C compiler.
5576 : > sub/conftest.c
5577 for i in 1 2 3 4 5 6; do
5578 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005579 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5580 # Solaris 10 /bin/sh.
5581 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005582 done
5583 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5584
cristyc0890a62012-07-19 00:18:20 +00005585 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005586 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005587 # handle '-M -o', and we need to detect this. Also, some Intel
5588 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005589 am__obj=sub/conftest.${OBJEXT-o}
5590 am__minus_obj="-o $am__obj"
5591 case $depmode in
5592 gcc)
5593 # This depmode causes a compiler race in universal mode.
5594 test "$am__universal" = false || continue
5595 ;;
5596 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005597 # After this tag, mechanisms are not by side-effect, so they'll
5598 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005599 if test "x$enable_dependency_tracking" = xyes; then
5600 continue
5601 else
5602 break
5603 fi
5604 ;;
cristy7247bba2012-02-05 16:37:27 +00005605 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005606 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005607 # not run yet. These depmodes are late enough in the game, and
5608 # so weak that their functioning should not be impacted.
5609 am__obj=conftest.${OBJEXT-o}
5610 am__minus_obj=
5611 ;;
5612 none) break ;;
5613 esac
5614 if depmode=$depmode \
5615 source=sub/conftest.c object=$am__obj \
5616 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5617 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5618 >/dev/null 2>conftest.err &&
5619 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5620 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5621 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5622 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5623 # icc doesn't choke on unknown options, it will just issue warnings
5624 # or remarks (even with -Werror). So we grep stderr for any message
5625 # that says an option was ignored or not supported.
5626 # When given -MP, icc 7.0 and 7.1 complain thusly:
5627 # icc: Command line warning: ignoring option '-M'; no argument required
5628 # The diagnosis changed in icc 8.0:
5629 # icc: Command line remark: option '-MP' not supported
5630 if (grep 'ignoring option' conftest.err ||
5631 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5632 am_cv_CC_dependencies_compiler_type=$depmode
5633 break
5634 fi
5635 fi
5636 done
5637
5638 cd ..
5639 rm -rf conftest.dir
5640else
5641 am_cv_CC_dependencies_compiler_type=none
5642fi
5643
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5646$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5647CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5648
5649 if
5650 test "x$enable_dependency_tracking" != xno \
5651 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5652 am__fastdepCC_TRUE=
5653 am__fastdepCC_FALSE='#'
5654else
5655 am__fastdepCC_TRUE='#'
5656 am__fastdepCC_FALSE=
5657fi
5658
5659
cristy3ed852e2009-09-05 21:47:34 +00005660
cristya0b81c32010-01-22 02:54:33 +00005661ac_ext=c
5662ac_cpp='$CPP $CPPFLAGS'
5663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5667$as_echo_n "checking how to run the C preprocessor... " >&6; }
5668# On Suns, sometimes $CPP names a directory.
5669if test -n "$CPP" && test -d "$CPP"; then
5670 CPP=
5671fi
5672if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005673 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005674 $as_echo_n "(cached) " >&6
5675else
5676 # Double quotes because CPP needs to be expanded
5677 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5678 do
5679 ac_preproc_ok=false
5680for ac_c_preproc_warn_flag in '' yes
5681do
5682 # Use a header file that comes with gcc, so configuring glibc
5683 # with a fresh cross-compiler works.
5684 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5685 # <limits.h> exists even on freestanding compilers.
5686 # On the NeXT, cc -E runs the code through the compiler's parser,
5687 # not just through cpp. "Syntax error" is here to catch this case.
5688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5689/* end confdefs.h. */
5690#ifdef __STDC__
5691# include <limits.h>
5692#else
5693# include <assert.h>
5694#endif
5695 Syntax error
5696_ACEOF
5697if ac_fn_c_try_cpp "$LINENO"; then :
5698
5699else
5700 # Broken: fails on valid input.
5701continue
5702fi
cristyda16f162011-02-19 23:52:17 +00005703rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005704
5705 # OK, works on sane cases. Now check whether nonexistent headers
5706 # can be detected and how.
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708/* end confdefs.h. */
5709#include <ac_nonexistent.h>
5710_ACEOF
5711if ac_fn_c_try_cpp "$LINENO"; then :
5712 # Broken: success on invalid input.
5713continue
5714else
5715 # Passes both tests.
5716ac_preproc_ok=:
5717break
5718fi
cristyda16f162011-02-19 23:52:17 +00005719rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005720
5721done
5722# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005723rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005724if $ac_preproc_ok; then :
5725 break
5726fi
5727
5728 done
5729 ac_cv_prog_CPP=$CPP
5730
5731fi
5732 CPP=$ac_cv_prog_CPP
5733else
5734 ac_cv_prog_CPP=$CPP
5735fi
5736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5737$as_echo "$CPP" >&6; }
5738ac_preproc_ok=false
5739for ac_c_preproc_warn_flag in '' yes
5740do
5741 # Use a header file that comes with gcc, so configuring glibc
5742 # with a fresh cross-compiler works.
5743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5744 # <limits.h> exists even on freestanding compilers.
5745 # On the NeXT, cc -E runs the code through the compiler's parser,
5746 # not just through cpp. "Syntax error" is here to catch this case.
5747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5748/* end confdefs.h. */
5749#ifdef __STDC__
5750# include <limits.h>
5751#else
5752# include <assert.h>
5753#endif
5754 Syntax error
5755_ACEOF
5756if ac_fn_c_try_cpp "$LINENO"; then :
5757
5758else
5759 # Broken: fails on valid input.
5760continue
5761fi
cristyda16f162011-02-19 23:52:17 +00005762rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005763
5764 # OK, works on sane cases. Now check whether nonexistent headers
5765 # can be detected and how.
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767/* end confdefs.h. */
5768#include <ac_nonexistent.h>
5769_ACEOF
5770if ac_fn_c_try_cpp "$LINENO"; then :
5771 # Broken: success on invalid input.
5772continue
5773else
5774 # Passes both tests.
5775ac_preproc_ok=:
5776break
5777fi
cristyda16f162011-02-19 23:52:17 +00005778rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005779
5780done
5781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005782rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005783if $ac_preproc_ok; then :
5784
5785else
5786 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5787$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005788as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5789See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005790fi
5791
5792ac_ext=c
5793ac_cpp='$CPP $CPPFLAGS'
5794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5796ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5800$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005801if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005802 $as_echo_n "(cached) " >&6
5803else
5804 if test -z "$GREP"; then
5805 ac_path_GREP_found=false
5806 # Loop through the user's path and test for each of PROGNAME-LIST
5807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5809do
5810 IFS=$as_save_IFS
5811 test -z "$as_dir" && as_dir=.
5812 for ac_prog in grep ggrep; do
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005815 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005816# Check for GNU ac_path_GREP and select it if it is found.
5817 # Check for GNU $ac_path_GREP
5818case `"$ac_path_GREP" --version 2>&1` in
5819*GNU*)
5820 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5821*)
5822 ac_count=0
5823 $as_echo_n 0123456789 >"conftest.in"
5824 while :
5825 do
5826 cat "conftest.in" "conftest.in" >"conftest.tmp"
5827 mv "conftest.tmp" "conftest.in"
5828 cp "conftest.in" "conftest.nl"
5829 $as_echo 'GREP' >> "conftest.nl"
5830 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5831 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5832 as_fn_arith $ac_count + 1 && ac_count=$as_val
5833 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5834 # Best one so far, save it but keep looking for a better one
5835 ac_cv_path_GREP="$ac_path_GREP"
5836 ac_path_GREP_max=$ac_count
5837 fi
5838 # 10*(2^10) chars as input seems more than enough
5839 test $ac_count -gt 10 && break
5840 done
5841 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842esac
5843
5844 $ac_path_GREP_found && break 3
5845 done
5846 done
5847 done
5848IFS=$as_save_IFS
5849 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005850 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005851 fi
5852else
5853 ac_cv_path_GREP=$GREP
5854fi
5855
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5858$as_echo "$ac_cv_path_GREP" >&6; }
5859 GREP="$ac_cv_path_GREP"
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5863$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005864if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005865 $as_echo_n "(cached) " >&6
5866else
5867 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5868 then ac_cv_path_EGREP="$GREP -E"
5869 else
5870 if test -z "$EGREP"; then
5871 ac_path_EGREP_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_prog in egrep; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005881 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005882# Check for GNU ac_path_EGREP and select it if it is found.
5883 # Check for GNU $ac_path_EGREP
5884case `"$ac_path_EGREP" --version 2>&1` in
5885*GNU*)
5886 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5887*)
5888 ac_count=0
5889 $as_echo_n 0123456789 >"conftest.in"
5890 while :
5891 do
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo 'EGREP' >> "conftest.nl"
5896 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_EGREP="$ac_path_EGREP"
5902 ac_path_EGREP_max=$ac_count
5903 fi
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5906 done
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908esac
5909
5910 $ac_path_EGREP_found && break 3
5911 done
5912 done
5913 done
5914IFS=$as_save_IFS
5915 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005916 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005917 fi
5918else
5919 ac_cv_path_EGREP=$EGREP
5920fi
5921
5922 fi
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5925$as_echo "$ac_cv_path_EGREP" >&6; }
5926 EGREP="$ac_cv_path_EGREP"
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5930$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005931if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005932 $as_echo_n "(cached) " >&6
5933else
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935/* end confdefs.h. */
5936#include <stdlib.h>
5937#include <stdarg.h>
5938#include <string.h>
5939#include <float.h>
5940
5941int
5942main ()
5943{
5944
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949if ac_fn_c_try_compile "$LINENO"; then :
5950 ac_cv_header_stdc=yes
5951else
5952 ac_cv_header_stdc=no
5953fi
5954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5955
5956if test $ac_cv_header_stdc = yes; then
5957 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959/* end confdefs.h. */
5960#include <string.h>
5961
5962_ACEOF
5963if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5964 $EGREP "memchr" >/dev/null 2>&1; then :
5965
5966else
5967 ac_cv_header_stdc=no
5968fi
5969rm -f conftest*
5970
5971fi
5972
5973if test $ac_cv_header_stdc = yes; then
5974 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976/* end confdefs.h. */
5977#include <stdlib.h>
5978
5979_ACEOF
5980if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5981 $EGREP "free" >/dev/null 2>&1; then :
5982
5983else
5984 ac_cv_header_stdc=no
5985fi
5986rm -f conftest*
5987
5988fi
5989
5990if test $ac_cv_header_stdc = yes; then
5991 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5992 if test "$cross_compiling" = yes; then :
5993 :
5994else
5995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5996/* end confdefs.h. */
5997#include <ctype.h>
5998#include <stdlib.h>
5999#if ((' ' & 0x0FF) == 0x020)
6000# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6001# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6002#else
6003# define ISLOWER(c) \
6004 (('a' <= (c) && (c) <= 'i') \
6005 || ('j' <= (c) && (c) <= 'r') \
6006 || ('s' <= (c) && (c) <= 'z'))
6007# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6008#endif
6009
6010#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6011int
6012main ()
6013{
6014 int i;
6015 for (i = 0; i < 256; i++)
6016 if (XOR (islower (i), ISLOWER (i))
6017 || toupper (i) != TOUPPER (i))
6018 return 2;
6019 return 0;
6020}
6021_ACEOF
6022if ac_fn_c_try_run "$LINENO"; then :
6023
6024else
6025 ac_cv_header_stdc=no
6026fi
6027rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6028 conftest.$ac_objext conftest.beam conftest.$ac_ext
6029fi
6030
6031fi
6032fi
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6034$as_echo "$ac_cv_header_stdc" >&6; }
6035if test $ac_cv_header_stdc = yes; then
6036
6037$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6038
6039fi
6040
6041# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6042for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6043 inttypes.h stdint.h unistd.h
6044do :
6045 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6046ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6047"
cristy98dddb52010-11-04 00:30:15 +00006048if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006049 cat >>confdefs.h <<_ACEOF
6050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051_ACEOF
6052
6053fi
6054
6055done
6056
6057
6058
6059 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00006060if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006061 MINIX=yes
6062else
6063 MINIX=
6064fi
6065
6066
6067 if test "$MINIX" = yes; then
6068
6069$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6070
6071
6072$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6073
6074
6075$as_echo "#define _MINIX 1" >>confdefs.h
6076
6077 fi
6078
6079
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6081$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006082if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006083 $as_echo_n "(cached) " >&6
6084else
6085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6086/* end confdefs.h. */
6087
cristy14fefe52012-05-21 00:59:18 +00006088# define __EXTENSIONS__ 1
6089 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006090int
6091main ()
6092{
6093
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098if ac_fn_c_try_compile "$LINENO"; then :
6099 ac_cv_safe_to_define___extensions__=yes
6100else
6101 ac_cv_safe_to_define___extensions__=no
6102fi
6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6104fi
6105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6106$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6107 test $ac_cv_safe_to_define___extensions__ = yes &&
6108 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6109
6110 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6111
6112 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6113
6114 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6115
6116 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6117
6118
6119
cristy9af1cbf2014-12-28 22:03:09 +00006120# ==============================================================================
6121# Find required base packages
6122# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006123if test -n "$ac_tool_prefix"; then
6124 for ac_prog in ar lib "link -lib"
6125 do
6126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6129$as_echo_n "checking for $ac_word... " >&6; }
6130if ${ac_cv_prog_AR+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132else
6133 if test -n "$AR"; then
6134 ac_cv_prog_AR="$AR" # Let the user override the test.
6135else
6136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6145 break 2
6146 fi
6147done
6148 done
6149IFS=$as_save_IFS
6150
6151fi
6152fi
6153AR=$ac_cv_prog_AR
6154if test -n "$AR"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6156$as_echo "$AR" >&6; }
6157else
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6159$as_echo "no" >&6; }
6160fi
6161
6162
6163 test -n "$AR" && break
6164 done
6165fi
6166if test -z "$AR"; then
6167 ac_ct_AR=$AR
6168 for ac_prog in ar lib "link -lib"
6169do
6170 # Extract the first word of "$ac_prog", so it can be a program name with args.
6171set dummy $ac_prog; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if ${ac_cv_prog_ac_ct_AR+:} false; then :
6175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$ac_ct_AR"; then
6178 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_ac_ct_AR="$ac_prog"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192 done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197ac_ct_AR=$ac_cv_prog_ac_ct_AR
6198if test -n "$ac_ct_AR"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6200$as_echo "$ac_ct_AR" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206
6207 test -n "$ac_ct_AR" && break
6208done
6209
6210 if test "x$ac_ct_AR" = x; then
6211 AR="false"
6212 else
6213 case $cross_compiling:$ac_tool_warned in
6214yes:)
6215{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6216$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6217ac_tool_warned=yes ;;
6218esac
6219 AR=$ac_ct_AR
6220 fi
6221fi
6222
6223: ${AR=ar}
6224
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6226$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6227if ${am_cv_ar_interface+:} false; then :
6228 $as_echo_n "(cached) " >&6
6229else
6230 ac_ext=c
6231ac_cpp='$CPP $CPPFLAGS'
6232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6234ac_compiler_gnu=$ac_cv_c_compiler_gnu
6235
6236 am_cv_ar_interface=ar
6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6238/* end confdefs.h. */
6239int some_variable = 0;
6240_ACEOF
6241if ac_fn_c_try_compile "$LINENO"; then :
6242 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6243 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6244 (eval $am_ar_try) 2>&5
6245 ac_status=$?
6246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6247 test $ac_status = 0; }
6248 if test "$ac_status" -eq 0; then
6249 am_cv_ar_interface=ar
6250 else
6251 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6253 (eval $am_ar_try) 2>&5
6254 ac_status=$?
6255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6256 test $ac_status = 0; }
6257 if test "$ac_status" -eq 0; then
6258 am_cv_ar_interface=lib
6259 else
6260 am_cv_ar_interface=unknown
6261 fi
6262 fi
6263 rm -f conftest.lib libconftest.a
6264
6265fi
6266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 ac_ext=c
6268ac_cpp='$CPP $CPPFLAGS'
6269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272
6273fi
6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6275$as_echo "$am_cv_ar_interface" >&6; }
6276
6277case $am_cv_ar_interface in
6278ar)
6279 ;;
6280lib)
6281 # Microsoft lib, so override with the ar-lib wrapper script.
6282 # FIXME: It is wrong to rewrite AR.
6283 # But if we don't then we get into trouble of one sort or another.
6284 # A longer-term fix would be to have automake use am__AR in this case,
6285 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6286 # similar.
6287 AR="$am_aux_dir/ar-lib $AR"
6288 ;;
6289unknown)
6290 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6291 ;;
6292esac
cristy9af1cbf2014-12-28 22:03:09 +00006293
cristya0b81c32010-01-22 02:54:33 +00006294ac_ext=c
6295ac_cpp='$CPP $CPPFLAGS'
6296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6298ac_compiler_gnu=$ac_cv_c_compiler_gnu
6299if test -n "$ac_tool_prefix"; then
6300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6301set dummy ${ac_tool_prefix}gcc; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006304if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006305 $as_echo_n "(cached) " >&6
6306else
6307 if test -n "$CC"; then
6308 ac_cv_prog_CC="$CC" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006317 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322 done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327CC=$ac_cv_prog_CC
6328if test -n "$CC"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6330$as_echo "$CC" >&6; }
6331else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336
6337fi
6338if test -z "$ac_cv_prog_CC"; then
6339 ac_ct_CC=$CC
6340 # Extract the first word of "gcc", so it can be a program name with args.
6341set dummy gcc; ac_word=$2
6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6343$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006344if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006345 $as_echo_n "(cached) " >&6
6346else
6347 if test -n "$ac_ct_CC"; then
6348 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6349else
6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6351for as_dir in $PATH
6352do
6353 IFS=$as_save_IFS
6354 test -z "$as_dir" && as_dir=.
6355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006357 ac_cv_prog_ac_ct_CC="gcc"
6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 break 2
6360 fi
6361done
6362 done
6363IFS=$as_save_IFS
6364
6365fi
6366fi
6367ac_ct_CC=$ac_cv_prog_ac_ct_CC
6368if test -n "$ac_ct_CC"; then
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6370$as_echo "$ac_ct_CC" >&6; }
6371else
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373$as_echo "no" >&6; }
6374fi
6375
6376 if test "x$ac_ct_CC" = x; then
6377 CC=""
6378 else
6379 case $cross_compiling:$ac_tool_warned in
6380yes:)
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6383ac_tool_warned=yes ;;
6384esac
6385 CC=$ac_ct_CC
6386 fi
6387else
6388 CC="$ac_cv_prog_CC"
6389fi
6390
6391if test -z "$CC"; then
6392 if test -n "$ac_tool_prefix"; then
6393 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6394set dummy ${ac_tool_prefix}cc; ac_word=$2
6395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006397if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006398 $as_echo_n "(cached) " >&6
6399else
6400 if test -n "$CC"; then
6401 ac_cv_prog_CC="$CC" # Let the user override the test.
6402else
6403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404for as_dir in $PATH
6405do
6406 IFS=$as_save_IFS
6407 test -z "$as_dir" && as_dir=.
6408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006410 ac_cv_prog_CC="${ac_tool_prefix}cc"
6411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412 break 2
6413 fi
6414done
6415 done
6416IFS=$as_save_IFS
6417
6418fi
6419fi
6420CC=$ac_cv_prog_CC
6421if test -n "$CC"; then
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6423$as_echo "$CC" >&6; }
6424else
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426$as_echo "no" >&6; }
6427fi
6428
6429
6430 fi
6431fi
6432if test -z "$CC"; then
6433 # Extract the first word of "cc", so it can be a program name with args.
6434set dummy cc; ac_word=$2
6435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6436$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006437if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006438 $as_echo_n "(cached) " >&6
6439else
6440 if test -n "$CC"; then
6441 ac_cv_prog_CC="$CC" # Let the user override the test.
6442else
6443 ac_prog_rejected=no
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447 IFS=$as_save_IFS
6448 test -z "$as_dir" && as_dir=.
6449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006451 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6452 ac_prog_rejected=yes
6453 continue
6454 fi
6455 ac_cv_prog_CC="cc"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459done
6460 done
6461IFS=$as_save_IFS
6462
6463if test $ac_prog_rejected = yes; then
6464 # We found a bogon in the path, so make sure we never use it.
6465 set dummy $ac_cv_prog_CC
6466 shift
6467 if test $# != 0; then
6468 # We chose a different compiler from the bogus one.
6469 # However, it has the same basename, so the bogon will be chosen
6470 # first if we set CC to just the basename; use the full file name.
6471 shift
6472 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6473 fi
6474fi
6475fi
6476fi
6477CC=$ac_cv_prog_CC
6478if test -n "$CC"; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6480$as_echo "$CC" >&6; }
6481else
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6483$as_echo "no" >&6; }
6484fi
6485
6486
6487fi
6488if test -z "$CC"; then
6489 if test -n "$ac_tool_prefix"; then
6490 for ac_prog in cl.exe
6491 do
6492 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6493set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006496if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006497 $as_echo_n "(cached) " >&6
6498else
6499 if test -n "$CC"; then
6500 ac_cv_prog_CC="$CC" # Let the user override the test.
6501else
6502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6503for as_dir in $PATH
6504do
6505 IFS=$as_save_IFS
6506 test -z "$as_dir" && as_dir=.
6507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006509 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6511 break 2
6512 fi
6513done
6514 done
6515IFS=$as_save_IFS
6516
6517fi
6518fi
6519CC=$ac_cv_prog_CC
6520if test -n "$CC"; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6522$as_echo "$CC" >&6; }
6523else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6525$as_echo "no" >&6; }
6526fi
6527
6528
6529 test -n "$CC" && break
6530 done
6531fi
6532if test -z "$CC"; then
6533 ac_ct_CC=$CC
6534 for ac_prog in cl.exe
6535do
6536 # Extract the first word of "$ac_prog", so it can be a program name with args.
6537set dummy $ac_prog; ac_word=$2
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006540if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006541 $as_echo_n "(cached) " >&6
6542else
6543 if test -n "$ac_ct_CC"; then
6544 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6545else
6546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547for as_dir in $PATH
6548do
6549 IFS=$as_save_IFS
6550 test -z "$as_dir" && as_dir=.
6551 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006553 ac_cv_prog_ac_ct_CC="$ac_prog"
6554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 break 2
6556 fi
6557done
6558 done
6559IFS=$as_save_IFS
6560
6561fi
6562fi
6563ac_ct_CC=$ac_cv_prog_ac_ct_CC
6564if test -n "$ac_ct_CC"; then
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6566$as_echo "$ac_ct_CC" >&6; }
6567else
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569$as_echo "no" >&6; }
6570fi
6571
6572
6573 test -n "$ac_ct_CC" && break
6574done
6575
6576 if test "x$ac_ct_CC" = x; then
6577 CC=""
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580yes:)
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6583ac_tool_warned=yes ;;
6584esac
6585 CC=$ac_ct_CC
6586 fi
6587fi
6588
6589fi
6590
6591
6592test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006594as_fn_error $? "no acceptable C compiler found in \$PATH
6595See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006596
6597# Provide some information about the compiler.
6598$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6599set X $ac_compile
6600ac_compiler=$2
6601for ac_option in --version -v -V -qversion; do
6602 { { ac_try="$ac_compiler $ac_option >&5"
6603case "(($ac_try" in
6604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6605 *) ac_try_echo=$ac_try;;
6606esac
6607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6608$as_echo "$ac_try_echo"; } >&5
6609 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6610 ac_status=$?
6611 if test -s conftest.err; then
6612 sed '10a\
6613... rest of stderr output deleted ...
6614 10q' conftest.err >conftest.er1
6615 cat conftest.er1 >&5
6616 fi
6617 rm -f conftest.er1 conftest.err
6618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6619 test $ac_status = 0; }
6620done
6621
6622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6623$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006624if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006625 $as_echo_n "(cached) " >&6
6626else
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h. */
6629
6630int
6631main ()
6632{
6633#ifndef __GNUC__
6634 choke me
6635#endif
6636
6637 ;
6638 return 0;
6639}
6640_ACEOF
6641if ac_fn_c_try_compile "$LINENO"; then :
6642 ac_compiler_gnu=yes
6643else
6644 ac_compiler_gnu=no
6645fi
6646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647ac_cv_c_compiler_gnu=$ac_compiler_gnu
6648
6649fi
6650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6651$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6652if test $ac_compiler_gnu = yes; then
6653 GCC=yes
6654else
6655 GCC=
6656fi
6657ac_test_CFLAGS=${CFLAGS+set}
6658ac_save_CFLAGS=$CFLAGS
6659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6660$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006661if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006662 $as_echo_n "(cached) " >&6
6663else
6664 ac_save_c_werror_flag=$ac_c_werror_flag
6665 ac_c_werror_flag=yes
6666 ac_cv_prog_cc_g=no
6667 CFLAGS="-g"
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669/* end confdefs.h. */
6670
6671int
6672main ()
6673{
6674
6675 ;
6676 return 0;
6677}
6678_ACEOF
6679if ac_fn_c_try_compile "$LINENO"; then :
6680 ac_cv_prog_cc_g=yes
6681else
6682 CFLAGS=""
6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6684/* end confdefs.h. */
6685
6686int
6687main ()
6688{
6689
6690 ;
6691 return 0;
6692}
6693_ACEOF
6694if ac_fn_c_try_compile "$LINENO"; then :
6695
6696else
6697 ac_c_werror_flag=$ac_save_c_werror_flag
6698 CFLAGS="-g"
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700/* end confdefs.h. */
6701
6702int
6703main ()
6704{
6705
6706 ;
6707 return 0;
6708}
6709_ACEOF
6710if ac_fn_c_try_compile "$LINENO"; then :
6711 ac_cv_prog_cc_g=yes
6712fi
6713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714fi
6715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6716fi
6717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 ac_c_werror_flag=$ac_save_c_werror_flag
6719fi
6720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6721$as_echo "$ac_cv_prog_cc_g" >&6; }
6722if test "$ac_test_CFLAGS" = set; then
6723 CFLAGS=$ac_save_CFLAGS
6724elif test $ac_cv_prog_cc_g = yes; then
6725 if test "$GCC" = yes; then
6726 CFLAGS="-g -O2"
6727 else
6728 CFLAGS="-g"
6729 fi
6730else
6731 if test "$GCC" = yes; then
6732 CFLAGS="-O2"
6733 else
6734 CFLAGS=
6735 fi
6736fi
6737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6738$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006739if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006740 $as_echo_n "(cached) " >&6
6741else
6742 ac_cv_prog_cc_c89=no
6743ac_save_CC=$CC
6744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6745/* end confdefs.h. */
6746#include <stdarg.h>
6747#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006748struct stat;
cristya0b81c32010-01-22 02:54:33 +00006749/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6750struct buf { int x; };
6751FILE * (*rcsopen) (struct buf *, struct stat *, int);
6752static char *e (p, i)
6753 char **p;
6754 int i;
6755{
6756 return p[i];
6757}
6758static char *f (char * (*g) (char **, int), char **p, ...)
6759{
6760 char *s;
6761 va_list v;
6762 va_start (v,p);
6763 s = g (p, va_arg (v,int));
6764 va_end (v);
6765 return s;
6766}
6767
6768/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6769 function prototypes and stuff, but not '\xHH' hex character constants.
6770 These don't provoke an error unfortunately, instead are silently treated
6771 as 'x'. The following induces an error, until -std is added to get
6772 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6773 array size at least. It's necessary to write '\x00'==0 to get something
6774 that's true only with -std. */
6775int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6776
6777/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6778 inside strings and character constants. */
6779#define FOO(x) 'x'
6780int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6781
6782int test (int i, double x);
6783struct s1 {int (*f) (int a);};
6784struct s2 {int (*f) (double a);};
6785int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6786int argc;
6787char **argv;
6788int
6789main ()
6790{
6791return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6792 ;
6793 return 0;
6794}
6795_ACEOF
6796for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6797 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6798do
6799 CC="$ac_save_CC $ac_arg"
6800 if ac_fn_c_try_compile "$LINENO"; then :
6801 ac_cv_prog_cc_c89=$ac_arg
6802fi
6803rm -f core conftest.err conftest.$ac_objext
6804 test "x$ac_cv_prog_cc_c89" != "xno" && break
6805done
6806rm -f conftest.$ac_ext
6807CC=$ac_save_CC
6808
6809fi
6810# AC_CACHE_VAL
6811case "x$ac_cv_prog_cc_c89" in
6812 x)
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6814$as_echo "none needed" >&6; } ;;
6815 xno)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6817$as_echo "unsupported" >&6; } ;;
6818 *)
6819 CC="$CC $ac_cv_prog_cc_c89"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6821$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6822esac
6823if test "x$ac_cv_prog_cc_c89" != xno; then :
6824
6825fi
6826
6827ac_ext=c
6828ac_cpp='$CPP $CPPFLAGS'
6829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6831ac_compiler_gnu=$ac_cv_c_compiler_gnu
6832
cristya5bda012013-11-03 18:05:38 +00006833ac_ext=c
6834ac_cpp='$CPP $CPPFLAGS'
6835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6837ac_compiler_gnu=$ac_cv_c_compiler_gnu
6838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6839$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6840if ${am_cv_prog_cc_c_o+:} false; then :
6841 $as_echo_n "(cached) " >&6
6842else
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844/* end confdefs.h. */
6845
6846int
6847main ()
6848{
6849
6850 ;
6851 return 0;
6852}
6853_ACEOF
6854 # Make sure it works both with $CC and with simple cc.
6855 # Following AC_PROG_CC_C_O, we do the test twice because some
6856 # compilers refuse to overwrite an existing .o file with -o,
6857 # though they will create one.
6858 am_cv_prog_cc_c_o=yes
6859 for am_i in 1 2; do
6860 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6861 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6862 ac_status=$?
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } \
6865 && test -f conftest2.$ac_objext; then
6866 : OK
6867 else
6868 am_cv_prog_cc_c_o=no
6869 break
6870 fi
6871 done
6872 rm -f core conftest*
6873 unset am_i
6874fi
6875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6876$as_echo "$am_cv_prog_cc_c_o" >&6; }
6877if test "$am_cv_prog_cc_c_o" != yes; then
6878 # Losing compiler, so override with the script.
6879 # FIXME: It is wrong to rewrite CC.
6880 # But if we don't then we get into trouble of one sort or another.
6881 # A longer-term fix would be to have automake use am__CC in this case,
6882 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6883 CC="$am_aux_dir/compile $CC"
6884fi
6885ac_ext=c
6886ac_cpp='$CPP $CPPFLAGS'
6887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6889ac_compiler_gnu=$ac_cv_c_compiler_gnu
6890
6891
cristy73bd4a52010-10-05 11:24:23 +00006892depcc="$CC" am_compiler_list=
6893
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6895$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006896if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006897 $as_echo_n "(cached) " >&6
6898else
6899 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6900 # We make a subdir and do the tests there. Otherwise we can end up
6901 # making bogus files that we don't know about and never remove. For
6902 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006903 # making a dummy file named 'D' -- because '-MD' means "put the output
6904 # in D".
cristy7247bba2012-02-05 16:37:27 +00006905 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006906 mkdir conftest.dir
6907 # Copy depcomp to subdir because otherwise we won't find it if we're
6908 # using a relative directory.
6909 cp "$am_depcomp" conftest.dir
6910 cd conftest.dir
6911 # We will build objects and dependencies in a subdirectory because
6912 # it helps to detect inapplicable dependency modes. For instance
6913 # both Tru64's cc and ICC support -MD to output dependencies as a
6914 # side effect of compilation, but ICC will put the dependencies in
6915 # the current directory while Tru64 will put them in the object
6916 # directory.
6917 mkdir sub
6918
6919 am_cv_CC_dependencies_compiler_type=none
6920 if test "$am_compiler_list" = ""; then
6921 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6922 fi
6923 am__universal=false
6924 case " $depcc " in #(
6925 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6926 esac
6927
6928 for depmode in $am_compiler_list; do
6929 # Setup a source with many dependencies, because some compilers
6930 # like to wrap large dependency lists on column 80 (with \), and
6931 # we should not choose a depcomp mode which is confused by this.
6932 #
6933 # We need to recreate these files for each test, as the compiler may
6934 # overwrite some of them when testing with obscure command lines.
6935 # This happens at least with the AIX C compiler.
6936 : > sub/conftest.c
6937 for i in 1 2 3 4 5 6; do
6938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006939 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6940 # Solaris 10 /bin/sh.
6941 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006942 done
6943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6944
cristyc0890a62012-07-19 00:18:20 +00006945 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006946 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006947 # handle '-M -o', and we need to detect this. Also, some Intel
6948 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006949 am__obj=sub/conftest.${OBJEXT-o}
6950 am__minus_obj="-o $am__obj"
6951 case $depmode in
6952 gcc)
6953 # This depmode causes a compiler race in universal mode.
6954 test "$am__universal" = false || continue
6955 ;;
6956 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006957 # After this tag, mechanisms are not by side-effect, so they'll
6958 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006959 if test "x$enable_dependency_tracking" = xyes; then
6960 continue
6961 else
6962 break
6963 fi
6964 ;;
cristy7247bba2012-02-05 16:37:27 +00006965 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006966 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006967 # not run yet. These depmodes are late enough in the game, and
6968 # so weak that their functioning should not be impacted.
6969 am__obj=conftest.${OBJEXT-o}
6970 am__minus_obj=
6971 ;;
6972 none) break ;;
6973 esac
6974 if depmode=$depmode \
6975 source=sub/conftest.c object=$am__obj \
6976 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6977 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6978 >/dev/null 2>conftest.err &&
6979 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6980 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6981 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6982 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6983 # icc doesn't choke on unknown options, it will just issue warnings
6984 # or remarks (even with -Werror). So we grep stderr for any message
6985 # that says an option was ignored or not supported.
6986 # When given -MP, icc 7.0 and 7.1 complain thusly:
6987 # icc: Command line warning: ignoring option '-M'; no argument required
6988 # The diagnosis changed in icc 8.0:
6989 # icc: Command line remark: option '-MP' not supported
6990 if (grep 'ignoring option' conftest.err ||
6991 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6992 am_cv_CC_dependencies_compiler_type=$depmode
6993 break
6994 fi
6995 fi
6996 done
6997
6998 cd ..
6999 rm -rf conftest.dir
7000else
7001 am_cv_CC_dependencies_compiler_type=none
7002fi
7003
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7006$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7007CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7008
7009 if
7010 test "x$enable_dependency_tracking" != xno \
7011 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7012 am__fastdepCC_TRUE=
7013 am__fastdepCC_FALSE='#'
7014else
7015 am__fastdepCC_TRUE='#'
7016 am__fastdepCC_FALSE=
7017fi
7018
7019
cristy95646052009-11-28 23:05:30 +00007020ac_ext=cpp
7021ac_cpp='$CXXCPP $CPPFLAGS'
7022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7025if test -z "$CXX"; then
7026 if test -n "$CCC"; then
7027 CXX=$CCC
7028 else
7029 if test -n "$ac_tool_prefix"; then
7030 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7031 do
7032 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7033set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007036if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007037 $as_echo_n "(cached) " >&6
7038else
7039 if test -n "$CXX"; then
7040 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7041else
7042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7043for as_dir in $PATH
7044do
7045 IFS=$as_save_IFS
7046 test -z "$as_dir" && as_dir=.
7047 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007049 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7051 break 2
7052 fi
7053done
7054 done
7055IFS=$as_save_IFS
7056
7057fi
7058fi
7059CXX=$ac_cv_prog_CXX
7060if test -n "$CXX"; then
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7062$as_echo "$CXX" >&6; }
7063else
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066fi
7067
7068
7069 test -n "$CXX" && break
7070 done
7071fi
7072if test -z "$CXX"; then
7073 ac_ct_CXX=$CXX
7074 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7075do
7076 # Extract the first word of "$ac_prog", so it can be a program name with args.
7077set dummy $ac_prog; ac_word=$2
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007080if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007081 $as_echo_n "(cached) " >&6
7082else
7083 if test -n "$ac_ct_CXX"; then
7084 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089 IFS=$as_save_IFS
7090 test -z "$as_dir" && as_dir=.
7091 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007093 ac_cv_prog_ac_ct_CXX="$ac_prog"
7094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095 break 2
7096 fi
7097done
7098 done
7099IFS=$as_save_IFS
7100
7101fi
7102fi
7103ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7104if test -n "$ac_ct_CXX"; then
7105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7106$as_echo "$ac_ct_CXX" >&6; }
7107else
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110fi
7111
7112
7113 test -n "$ac_ct_CXX" && break
7114done
7115
7116 if test "x$ac_ct_CXX" = x; then
7117 CXX="g++"
7118 else
7119 case $cross_compiling:$ac_tool_warned in
7120yes:)
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123ac_tool_warned=yes ;;
7124esac
7125 CXX=$ac_ct_CXX
7126 fi
7127fi
7128
7129 fi
7130fi
7131# Provide some information about the compiler.
7132$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7133set X $ac_compile
7134ac_compiler=$2
7135for ac_option in --version -v -V -qversion; do
7136 { { ac_try="$ac_compiler $ac_option >&5"
7137case "(($ac_try" in
7138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7139 *) ac_try_echo=$ac_try;;
7140esac
7141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7142$as_echo "$ac_try_echo"; } >&5
7143 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7144 ac_status=$?
7145 if test -s conftest.err; then
7146 sed '10a\
7147... rest of stderr output deleted ...
7148 10q' conftest.err >conftest.er1
7149 cat conftest.er1 >&5
7150 fi
7151 rm -f conftest.er1 conftest.err
7152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7153 test $ac_status = 0; }
7154done
7155
7156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7157$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007158if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007159 $as_echo_n "(cached) " >&6
7160else
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162/* end confdefs.h. */
7163
7164int
7165main ()
7166{
7167#ifndef __GNUC__
7168 choke me
7169#endif
7170
7171 ;
7172 return 0;
7173}
7174_ACEOF
7175if ac_fn_cxx_try_compile "$LINENO"; then :
7176 ac_compiler_gnu=yes
7177else
7178 ac_compiler_gnu=no
7179fi
7180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7181ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7182
7183fi
7184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7185$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7186if test $ac_compiler_gnu = yes; then
7187 GXX=yes
7188else
7189 GXX=
7190fi
7191ac_test_CXXFLAGS=${CXXFLAGS+set}
7192ac_save_CXXFLAGS=$CXXFLAGS
7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7194$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007195if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007196 $as_echo_n "(cached) " >&6
7197else
7198 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7199 ac_cxx_werror_flag=yes
7200 ac_cv_prog_cxx_g=no
7201 CXXFLAGS="-g"
7202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7203/* end confdefs.h. */
7204
7205int
7206main ()
7207{
7208
7209 ;
7210 return 0;
7211}
7212_ACEOF
7213if ac_fn_cxx_try_compile "$LINENO"; then :
7214 ac_cv_prog_cxx_g=yes
7215else
7216 CXXFLAGS=""
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218/* end confdefs.h. */
7219
7220int
7221main ()
7222{
7223
7224 ;
7225 return 0;
7226}
7227_ACEOF
7228if ac_fn_cxx_try_compile "$LINENO"; then :
7229
7230else
7231 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7232 CXXFLAGS="-g"
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234/* end confdefs.h. */
7235
7236int
7237main ()
7238{
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_cxx_try_compile "$LINENO"; then :
7245 ac_cv_prog_cxx_g=yes
7246fi
7247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7248fi
7249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7253fi
7254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7255$as_echo "$ac_cv_prog_cxx_g" >&6; }
7256if test "$ac_test_CXXFLAGS" = set; then
7257 CXXFLAGS=$ac_save_CXXFLAGS
7258elif test $ac_cv_prog_cxx_g = yes; then
7259 if test "$GXX" = yes; then
7260 CXXFLAGS="-g -O2"
7261 else
7262 CXXFLAGS="-g"
7263 fi
7264else
7265 if test "$GXX" = yes; then
7266 CXXFLAGS="-O2"
7267 else
7268 CXXFLAGS=
7269 fi
7270fi
7271ac_ext=c
7272ac_cpp='$CPP $CPPFLAGS'
7273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275ac_compiler_gnu=$ac_cv_c_compiler_gnu
7276
cristy73bd4a52010-10-05 11:24:23 +00007277depcc="$CXX" am_compiler_list=
7278
7279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7280$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007281if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007282 $as_echo_n "(cached) " >&6
7283else
7284 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7285 # We make a subdir and do the tests there. Otherwise we can end up
7286 # making bogus files that we don't know about and never remove. For
7287 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007288 # making a dummy file named 'D' -- because '-MD' means "put the output
7289 # in D".
cristy7247bba2012-02-05 16:37:27 +00007290 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007291 mkdir conftest.dir
7292 # Copy depcomp to subdir because otherwise we won't find it if we're
7293 # using a relative directory.
7294 cp "$am_depcomp" conftest.dir
7295 cd conftest.dir
7296 # We will build objects and dependencies in a subdirectory because
7297 # it helps to detect inapplicable dependency modes. For instance
7298 # both Tru64's cc and ICC support -MD to output dependencies as a
7299 # side effect of compilation, but ICC will put the dependencies in
7300 # the current directory while Tru64 will put them in the object
7301 # directory.
7302 mkdir sub
7303
7304 am_cv_CXX_dependencies_compiler_type=none
7305 if test "$am_compiler_list" = ""; then
7306 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7307 fi
7308 am__universal=false
7309 case " $depcc " in #(
7310 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7311 esac
7312
7313 for depmode in $am_compiler_list; do
7314 # Setup a source with many dependencies, because some compilers
7315 # like to wrap large dependency lists on column 80 (with \), and
7316 # we should not choose a depcomp mode which is confused by this.
7317 #
7318 # We need to recreate these files for each test, as the compiler may
7319 # overwrite some of them when testing with obscure command lines.
7320 # This happens at least with the AIX C compiler.
7321 : > sub/conftest.c
7322 for i in 1 2 3 4 5 6; do
7323 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007324 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7325 # Solaris 10 /bin/sh.
7326 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007327 done
7328 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7329
cristyc0890a62012-07-19 00:18:20 +00007330 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007331 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007332 # handle '-M -o', and we need to detect this. Also, some Intel
7333 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007334 am__obj=sub/conftest.${OBJEXT-o}
7335 am__minus_obj="-o $am__obj"
7336 case $depmode in
7337 gcc)
7338 # This depmode causes a compiler race in universal mode.
7339 test "$am__universal" = false || continue
7340 ;;
7341 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007342 # After this tag, mechanisms are not by side-effect, so they'll
7343 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007344 if test "x$enable_dependency_tracking" = xyes; then
7345 continue
7346 else
7347 break
7348 fi
7349 ;;
cristy7247bba2012-02-05 16:37:27 +00007350 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007351 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007352 # not run yet. These depmodes are late enough in the game, and
7353 # so weak that their functioning should not be impacted.
7354 am__obj=conftest.${OBJEXT-o}
7355 am__minus_obj=
7356 ;;
7357 none) break ;;
7358 esac
7359 if depmode=$depmode \
7360 source=sub/conftest.c object=$am__obj \
7361 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7362 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7363 >/dev/null 2>conftest.err &&
7364 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7365 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7366 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7367 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7368 # icc doesn't choke on unknown options, it will just issue warnings
7369 # or remarks (even with -Werror). So we grep stderr for any message
7370 # that says an option was ignored or not supported.
7371 # When given -MP, icc 7.0 and 7.1 complain thusly:
7372 # icc: Command line warning: ignoring option '-M'; no argument required
7373 # The diagnosis changed in icc 8.0:
7374 # icc: Command line remark: option '-MP' not supported
7375 if (grep 'ignoring option' conftest.err ||
7376 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7377 am_cv_CXX_dependencies_compiler_type=$depmode
7378 break
7379 fi
7380 fi
7381 done
7382
7383 cd ..
7384 rm -rf conftest.dir
7385else
7386 am_cv_CXX_dependencies_compiler_type=none
7387fi
7388
7389fi
7390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7391$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7392CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7393
7394 if
7395 test "x$enable_dependency_tracking" != xno \
7396 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7397 am__fastdepCXX_TRUE=
7398 am__fastdepCXX_FALSE='#'
7399else
7400 am__fastdepCXX_TRUE='#'
7401 am__fastdepCXX_FALSE=
7402fi
7403
7404
cristy8b350f62009-11-15 23:12:43 +00007405 case $ac_cv_prog_cc_stdc in #(
7406 no) :
7407 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7408 *) :
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007410$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007411if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007412 $as_echo_n "(cached) " >&6
7413else
7414 ac_cv_prog_cc_c99=no
7415ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007417/* end confdefs.h. */
7418#include <stdarg.h>
7419#include <stdbool.h>
7420#include <stdlib.h>
7421#include <wchar.h>
7422#include <stdio.h>
7423
7424// Check varargs macros. These examples are taken from C99 6.10.3.5.
7425#define debug(...) fprintf (stderr, __VA_ARGS__)
7426#define showlist(...) puts (#__VA_ARGS__)
7427#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7428static void
7429test_varargs_macros (void)
7430{
7431 int x = 1234;
7432 int y = 5678;
7433 debug ("Flag");
7434 debug ("X = %d\n", x);
7435 showlist (The first, second, and third items.);
7436 report (x>y, "x is %d but y is %d", x, y);
7437}
7438
7439// Check long long types.
7440#define BIG64 18446744073709551615ull
7441#define BIG32 4294967295ul
7442#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7443#if !BIG_OK
7444 your preprocessor is broken;
7445#endif
7446#if BIG_OK
7447#else
7448 your preprocessor is broken;
7449#endif
7450static long long int bignum = -9223372036854775807LL;
7451static unsigned long long int ubignum = BIG64;
7452
7453struct incomplete_array
7454{
7455 int datasize;
7456 double data[];
7457};
7458
7459struct named_init {
7460 int number;
7461 const wchar_t *name;
7462 double average;
7463};
7464
7465typedef const char *ccp;
7466
7467static inline int
7468test_restrict (ccp restrict text)
7469{
7470 // See if C++-style comments work.
7471 // Iterate through items via the restricted pointer.
7472 // Also check for declarations in for loops.
7473 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7474 continue;
7475 return 0;
7476}
7477
7478// Check varargs and va_copy.
7479static void
7480test_varargs (const char *format, ...)
7481{
7482 va_list args;
7483 va_start (args, format);
7484 va_list args_copy;
7485 va_copy (args_copy, args);
7486
7487 const char *str;
7488 int number;
7489 float fnumber;
7490
7491 while (*format)
7492 {
7493 switch (*format++)
7494 {
7495 case 's': // string
7496 str = va_arg (args_copy, const char *);
7497 break;
7498 case 'd': // int
7499 number = va_arg (args_copy, int);
7500 break;
7501 case 'f': // float
7502 fnumber = va_arg (args_copy, double);
7503 break;
7504 default:
7505 break;
7506 }
7507 }
7508 va_end (args_copy);
7509 va_end (args);
7510}
7511
7512int
7513main ()
7514{
7515
7516 // Check bool.
7517 _Bool success = false;
7518
7519 // Check restrict.
7520 if (test_restrict ("String literal") == 0)
7521 success = true;
7522 char *restrict newvar = "Another string";
7523
7524 // Check varargs.
7525 test_varargs ("s, d' f .", "string", 65, 34.234);
7526 test_varargs_macros ();
7527
7528 // Check flexible array members.
7529 struct incomplete_array *ia =
7530 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7531 ia->datasize = 10;
7532 for (int i = 0; i < ia->datasize; ++i)
7533 ia->data[i] = i * 1.234;
7534
7535 // Check named initializers.
7536 struct named_init ni = {
7537 .number = 34,
7538 .name = L"Test wide string",
7539 .average = 543.34343,
7540 };
7541
7542 ni.number = 58;
7543
7544 int dynamic_array[ni.number];
7545 dynamic_array[ni.number - 1] = 543;
7546
7547 // work around unused variable warnings
7548 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7549 || dynamic_array[ni.number - 1] != 543);
7550
7551 ;
7552 return 0;
7553}
7554_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007555for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007556do
7557 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007558 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007559 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007560fi
cristy3ed852e2009-09-05 21:47:34 +00007561rm -f core conftest.err conftest.$ac_objext
7562 test "x$ac_cv_prog_cc_c99" != "xno" && break
7563done
7564rm -f conftest.$ac_ext
7565CC=$ac_save_CC
7566
7567fi
7568# AC_CACHE_VAL
7569case "x$ac_cv_prog_cc_c99" in
7570 x)
cristy8b350f62009-11-15 23:12:43 +00007571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007572$as_echo "none needed" >&6; } ;;
7573 xno)
cristy8b350f62009-11-15 23:12:43 +00007574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007575$as_echo "unsupported" >&6; } ;;
7576 *)
7577 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007579$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7580esac
cristy8b350f62009-11-15 23:12:43 +00007581if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007582 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7583else
cristy8b350f62009-11-15 23:12:43 +00007584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007585$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007586if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007587 $as_echo_n "(cached) " >&6
7588else
7589 ac_cv_prog_cc_c89=no
7590ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007592/* end confdefs.h. */
7593#include <stdarg.h>
7594#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007595struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7597struct buf { int x; };
7598FILE * (*rcsopen) (struct buf *, struct stat *, int);
7599static char *e (p, i)
7600 char **p;
7601 int i;
7602{
7603 return p[i];
7604}
7605static char *f (char * (*g) (char **, int), char **p, ...)
7606{
7607 char *s;
7608 va_list v;
7609 va_start (v,p);
7610 s = g (p, va_arg (v,int));
7611 va_end (v);
7612 return s;
7613}
7614
7615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7616 function prototypes and stuff, but not '\xHH' hex character constants.
7617 These don't provoke an error unfortunately, instead are silently treated
7618 as 'x'. The following induces an error, until -std is added to get
7619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7620 array size at least. It's necessary to write '\x00'==0 to get something
7621 that's true only with -std. */
7622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7623
7624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7625 inside strings and character constants. */
7626#define FOO(x) 'x'
7627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7628
7629int test (int i, double x);
7630struct s1 {int (*f) (int a);};
7631struct s2 {int (*f) (double a);};
7632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7633int argc;
7634char **argv;
7635int
7636main ()
7637{
7638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7639 ;
7640 return 0;
7641}
7642_ACEOF
7643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7645do
7646 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007647 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007648 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007649fi
cristy3ed852e2009-09-05 21:47:34 +00007650rm -f core conftest.err conftest.$ac_objext
7651 test "x$ac_cv_prog_cc_c89" != "xno" && break
7652done
7653rm -f conftest.$ac_ext
7654CC=$ac_save_CC
7655
7656fi
7657# AC_CACHE_VAL
7658case "x$ac_cv_prog_cc_c89" in
7659 x)
cristy8b350f62009-11-15 23:12:43 +00007660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007661$as_echo "none needed" >&6; } ;;
7662 xno)
cristy8b350f62009-11-15 23:12:43 +00007663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007664$as_echo "unsupported" >&6; } ;;
7665 *)
7666 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7669esac
cristy8b350f62009-11-15 23:12:43 +00007670if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007671 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7672else
7673 ac_cv_prog_cc_stdc=no
7674fi
7675
cristy3ed852e2009-09-05 21:47:34 +00007676fi
cristy3ed852e2009-09-05 21:47:34 +00007677 ;;
7678esac
cristy8b350f62009-11-15 23:12:43 +00007679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007680$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007681 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007682 $as_echo_n "(cached) " >&6
7683fi
7684
cristy8b350f62009-11-15 23:12:43 +00007685 case $ac_cv_prog_cc_stdc in #(
7686 no) :
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7688$as_echo "unsupported" >&6; } ;; #(
7689 '') :
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7691$as_echo "none needed" >&6; } ;; #(
7692 *) :
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007694$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7695esac
7696
cristy3ed852e2009-09-05 21:47:34 +00007697ac_ext=c
7698ac_cpp='$CPP $CPPFLAGS'
7699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007703$as_echo_n "checking how to run the C preprocessor... " >&6; }
7704# On Suns, sometimes $CPP names a directory.
7705if test -n "$CPP" && test -d "$CPP"; then
7706 CPP=
7707fi
7708if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007709 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007710 $as_echo_n "(cached) " >&6
7711else
7712 # Double quotes because CPP needs to be expanded
7713 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7714 do
7715 ac_preproc_ok=false
7716for ac_c_preproc_warn_flag in '' yes
7717do
7718 # Use a header file that comes with gcc, so configuring glibc
7719 # with a fresh cross-compiler works.
7720 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7721 # <limits.h> exists even on freestanding compilers.
7722 # On the NeXT, cc -E runs the code through the compiler's parser,
7723 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007725/* end confdefs.h. */
7726#ifdef __STDC__
7727# include <limits.h>
7728#else
7729# include <assert.h>
7730#endif
7731 Syntax error
7732_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007733if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007734
cristy8b350f62009-11-15 23:12:43 +00007735else
cristy3ed852e2009-09-05 21:47:34 +00007736 # Broken: fails on valid input.
7737continue
7738fi
cristyda16f162011-02-19 23:52:17 +00007739rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007740
7741 # OK, works on sane cases. Now check whether nonexistent headers
7742 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007744/* end confdefs.h. */
7745#include <ac_nonexistent.h>
7746_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007747if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007748 # Broken: success on invalid input.
7749continue
7750else
cristy3ed852e2009-09-05 21:47:34 +00007751 # Passes both tests.
7752ac_preproc_ok=:
7753break
7754fi
cristyda16f162011-02-19 23:52:17 +00007755rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007756
7757done
7758# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007759rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007760if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007761 break
7762fi
7763
7764 done
7765 ac_cv_prog_CPP=$CPP
7766
7767fi
7768 CPP=$ac_cv_prog_CPP
7769else
7770 ac_cv_prog_CPP=$CPP
7771fi
cristy8b350f62009-11-15 23:12:43 +00007772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007773$as_echo "$CPP" >&6; }
7774ac_preproc_ok=false
7775for ac_c_preproc_warn_flag in '' yes
7776do
7777 # Use a header file that comes with gcc, so configuring glibc
7778 # with a fresh cross-compiler works.
7779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7780 # <limits.h> exists even on freestanding compilers.
7781 # On the NeXT, cc -E runs the code through the compiler's parser,
7782 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007784/* end confdefs.h. */
7785#ifdef __STDC__
7786# include <limits.h>
7787#else
7788# include <assert.h>
7789#endif
7790 Syntax error
7791_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007792if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007793
cristy8b350f62009-11-15 23:12:43 +00007794else
cristy3ed852e2009-09-05 21:47:34 +00007795 # Broken: fails on valid input.
7796continue
7797fi
cristyda16f162011-02-19 23:52:17 +00007798rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007799
7800 # OK, works on sane cases. Now check whether nonexistent headers
7801 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007803/* end confdefs.h. */
7804#include <ac_nonexistent.h>
7805_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007806if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007807 # Broken: success on invalid input.
7808continue
7809else
cristy3ed852e2009-09-05 21:47:34 +00007810 # Passes both tests.
7811ac_preproc_ok=:
7812break
7813fi
cristyda16f162011-02-19 23:52:17 +00007814rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007815
7816done
7817# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007818rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007819if $ac_preproc_ok; then :
7820
cristy3ed852e2009-09-05 21:47:34 +00007821else
cristy8b350f62009-11-15 23:12:43 +00007822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007823$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007824as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7825See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007826fi
7827
7828ac_ext=c
7829ac_cpp='$CPP $CPPFLAGS'
7830ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7831ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7832ac_compiler_gnu=$ac_cv_c_compiler_gnu
7833
cristy73bd4a52010-10-05 11:24:23 +00007834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7835$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007836if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007837 $as_echo_n "(cached) " >&6
7838else
7839 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7840 for ac_i in 1 2 3 4 5 6 7; do
7841 ac_script="$ac_script$as_nl$ac_script"
7842 done
7843 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7844 { ac_script=; unset ac_script;}
7845 if test -z "$SED"; then
7846 ac_path_SED_found=false
7847 # Loop through the user's path and test for each of PROGNAME-LIST
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851 IFS=$as_save_IFS
7852 test -z "$as_dir" && as_dir=.
7853 for ac_prog in sed gsed; do
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007856 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007857# Check for GNU ac_path_SED and select it if it is found.
7858 # Check for GNU $ac_path_SED
7859case `"$ac_path_SED" --version 2>&1` in
7860*GNU*)
7861 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7862*)
7863 ac_count=0
7864 $as_echo_n 0123456789 >"conftest.in"
7865 while :
7866 do
7867 cat "conftest.in" "conftest.in" >"conftest.tmp"
7868 mv "conftest.tmp" "conftest.in"
7869 cp "conftest.in" "conftest.nl"
7870 $as_echo '' >> "conftest.nl"
7871 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7873 as_fn_arith $ac_count + 1 && ac_count=$as_val
7874 if test $ac_count -gt ${ac_path_SED_max-0}; then
7875 # Best one so far, save it but keep looking for a better one
7876 ac_cv_path_SED="$ac_path_SED"
7877 ac_path_SED_max=$ac_count
7878 fi
7879 # 10*(2^10) chars as input seems more than enough
7880 test $ac_count -gt 10 && break
7881 done
7882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7883esac
7884
7885 $ac_path_SED_found && break 3
7886 done
7887 done
7888 done
7889IFS=$as_save_IFS
7890 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007891 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007892 fi
7893else
7894 ac_cv_path_SED=$SED
7895fi
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7899$as_echo "$ac_cv_path_SED" >&6; }
7900 SED="$ac_cv_path_SED"
7901 rm -f conftest.sed
7902
7903test -z "$SED" && SED=sed
7904Xsed="$SED -e 1s/^X//"
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7917$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007918if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007919 $as_echo_n "(cached) " >&6
7920else
7921 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7922 then ac_cv_path_FGREP="$GREP -F"
7923 else
7924 if test -z "$FGREP"; then
7925 ac_path_FGREP_found=false
7926 # Loop through the user's path and test for each of PROGNAME-LIST
7927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7929do
7930 IFS=$as_save_IFS
7931 test -z "$as_dir" && as_dir=.
7932 for ac_prog in fgrep; do
7933 for ac_exec_ext in '' $ac_executable_extensions; do
7934 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007935 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007936# Check for GNU ac_path_FGREP and select it if it is found.
7937 # Check for GNU $ac_path_FGREP
7938case `"$ac_path_FGREP" --version 2>&1` in
7939*GNU*)
7940 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7941*)
7942 ac_count=0
7943 $as_echo_n 0123456789 >"conftest.in"
7944 while :
7945 do
7946 cat "conftest.in" "conftest.in" >"conftest.tmp"
7947 mv "conftest.tmp" "conftest.in"
7948 cp "conftest.in" "conftest.nl"
7949 $as_echo 'FGREP' >> "conftest.nl"
7950 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7952 as_fn_arith $ac_count + 1 && ac_count=$as_val
7953 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7954 # Best one so far, save it but keep looking for a better one
7955 ac_cv_path_FGREP="$ac_path_FGREP"
7956 ac_path_FGREP_max=$ac_count
7957 fi
7958 # 10*(2^10) chars as input seems more than enough
7959 test $ac_count -gt 10 && break
7960 done
7961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7962esac
7963
7964 $ac_path_FGREP_found && break 3
7965 done
7966 done
7967 done
7968IFS=$as_save_IFS
7969 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007970 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007971 fi
7972else
7973 ac_cv_path_FGREP=$FGREP
7974fi
7975
7976 fi
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7979$as_echo "$ac_cv_path_FGREP" >&6; }
7980 FGREP="$ac_cv_path_FGREP"
7981
7982
7983test -z "$GREP" && GREP=grep
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
cristy0c60a692010-11-04 01:09:47 +00008001ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8003ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8004
8005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8006$as_echo_n "checking how to print strings... " >&6; }
8007# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008008if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008009 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8010 ECHO='print -r --'
8011elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8012 ECHO='printf %s\n'
8013else
8014 # Use this function as a fallback that always works.
8015 func_fallback_echo ()
8016 {
8017 eval 'cat <<_LTECHO_EOF
8018$1
8019_LTECHO_EOF'
8020 }
8021 ECHO='func_fallback_echo'
8022fi
8023
8024# func_echo_all arg...
8025# Invoke $ECHO with all args, space-separated.
8026func_echo_all ()
8027{
8028 $ECHO ""
8029}
8030
Cristy15f22012015-11-14 17:51:30 -05008031case $ECHO in
cristy0c60a692010-11-04 01:09:47 +00008032 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8033$as_echo "printf" >&6; } ;;
8034 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8035$as_echo "print -r" >&6; } ;;
8036 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8037$as_echo "cat" >&6; } ;;
8038esac
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
cristy73bd4a52010-10-05 11:24:23 +00008053
8054
8055# Check whether --with-gnu-ld was given.
8056if test "${with_gnu_ld+set}" = set; then :
Cristy15f22012015-11-14 17:51:30 -05008057 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cristy73bd4a52010-10-05 11:24:23 +00008058else
8059 with_gnu_ld=no
8060fi
8061
8062ac_prog=ld
Cristy15f22012015-11-14 17:51:30 -05008063if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +00008064 # Check if gcc -print-prog-name=ld gives a path.
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8066$as_echo_n "checking for ld used by $CC... " >&6; }
8067 case $host in
8068 *-*-mingw*)
Cristy15f22012015-11-14 17:51:30 -05008069 # gcc leaves a trailing carriage return, which upsets mingw
cristy73bd4a52010-10-05 11:24:23 +00008070 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8071 *)
8072 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8073 esac
8074 case $ac_prog in
8075 # Accept absolute paths.
8076 [\\/]* | ?:[\\/]*)
8077 re_direlt='/[^/][^/]*/\.\./'
8078 # Canonicalize the pathname of ld
8079 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8080 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8081 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8082 done
Cristy15f22012015-11-14 17:51:30 -05008083 test -z "$LD" && LD=$ac_prog
cristy73bd4a52010-10-05 11:24:23 +00008084 ;;
8085 "")
8086 # If it fails, then pretend we aren't using GCC.
8087 ac_prog=ld
8088 ;;
8089 *)
8090 # If it is relative, then search for the first ld in PATH.
8091 with_gnu_ld=unknown
8092 ;;
8093 esac
Cristy15f22012015-11-14 17:51:30 -05008094elif test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +00008095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8096$as_echo_n "checking for GNU ld... " >&6; }
8097else
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8099$as_echo_n "checking for non-GNU ld... " >&6; }
8100fi
cristyda16f162011-02-19 23:52:17 +00008101if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008102 $as_echo_n "(cached) " >&6
8103else
8104 if test -z "$LD"; then
Cristy15f22012015-11-14 17:51:30 -05008105 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +00008106 for ac_dir in $PATH; do
Cristy15f22012015-11-14 17:51:30 -05008107 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +00008108 test -z "$ac_dir" && ac_dir=.
8109 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Cristy15f22012015-11-14 17:51:30 -05008110 lt_cv_path_LD=$ac_dir/$ac_prog
cristy73bd4a52010-10-05 11:24:23 +00008111 # Check to see if the program is GNU ld. I'd rather use --version,
8112 # but apparently some variants of GNU ld only accept -v.
8113 # Break only if it was the GNU/non-GNU ld that we prefer.
8114 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8115 *GNU* | *'with BFD'*)
Cristy15f22012015-11-14 17:51:30 -05008116 test no != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +00008117 ;;
8118 *)
Cristy15f22012015-11-14 17:51:30 -05008119 test yes != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +00008120 ;;
8121 esac
8122 fi
8123 done
Cristy15f22012015-11-14 17:51:30 -05008124 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +00008125else
Cristy15f22012015-11-14 17:51:30 -05008126 lt_cv_path_LD=$LD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +00008127fi
8128fi
8129
Cristy15f22012015-11-14 17:51:30 -05008130LD=$lt_cv_path_LD
cristy73bd4a52010-10-05 11:24:23 +00008131if test -n "$LD"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8133$as_echo "$LD" >&6; }
8134else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136$as_echo "no" >&6; }
8137fi
cristy98dddb52010-11-04 00:30:15 +00008138test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8140$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008141if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008142 $as_echo_n "(cached) " >&6
8143else
8144 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8145case `$LD -v 2>&1 </dev/null` in
8146*GNU* | *'with BFD'*)
8147 lt_cv_prog_gnu_ld=yes
8148 ;;
8149*)
8150 lt_cv_prog_gnu_ld=no
8151 ;;
8152esac
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8155$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8156with_gnu_ld=$lt_cv_prog_gnu_ld
8157
8158
8159
8160
8161
8162
8163
8164
8165
cristy3ed852e2009-09-05 21:47:34 +00008166
cristy837d6dc2010-02-27 01:16:57 +00008167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8168$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008169if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008170 $as_echo_n "(cached) " >&6
8171else
8172 ac_cv_prog_cc_c99=no
8173ac_save_CC=$CC
8174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175/* end confdefs.h. */
8176#include <stdarg.h>
8177#include <stdbool.h>
8178#include <stdlib.h>
8179#include <wchar.h>
8180#include <stdio.h>
8181
8182// Check varargs macros. These examples are taken from C99 6.10.3.5.
8183#define debug(...) fprintf (stderr, __VA_ARGS__)
8184#define showlist(...) puts (#__VA_ARGS__)
8185#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8186static void
8187test_varargs_macros (void)
8188{
8189 int x = 1234;
8190 int y = 5678;
8191 debug ("Flag");
8192 debug ("X = %d\n", x);
8193 showlist (The first, second, and third items.);
8194 report (x>y, "x is %d but y is %d", x, y);
8195}
8196
8197// Check long long types.
8198#define BIG64 18446744073709551615ull
8199#define BIG32 4294967295ul
8200#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8201#if !BIG_OK
8202 your preprocessor is broken;
8203#endif
8204#if BIG_OK
8205#else
8206 your preprocessor is broken;
8207#endif
8208static long long int bignum = -9223372036854775807LL;
8209static unsigned long long int ubignum = BIG64;
8210
8211struct incomplete_array
8212{
8213 int datasize;
8214 double data[];
8215};
8216
8217struct named_init {
8218 int number;
8219 const wchar_t *name;
8220 double average;
8221};
8222
8223typedef const char *ccp;
8224
8225static inline int
8226test_restrict (ccp restrict text)
8227{
8228 // See if C++-style comments work.
8229 // Iterate through items via the restricted pointer.
8230 // Also check for declarations in for loops.
8231 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8232 continue;
8233 return 0;
8234}
8235
8236// Check varargs and va_copy.
8237static void
8238test_varargs (const char *format, ...)
8239{
8240 va_list args;
8241 va_start (args, format);
8242 va_list args_copy;
8243 va_copy (args_copy, args);
8244
8245 const char *str;
8246 int number;
8247 float fnumber;
8248
8249 while (*format)
8250 {
8251 switch (*format++)
8252 {
8253 case 's': // string
8254 str = va_arg (args_copy, const char *);
8255 break;
8256 case 'd': // int
8257 number = va_arg (args_copy, int);
8258 break;
8259 case 'f': // float
8260 fnumber = va_arg (args_copy, double);
8261 break;
8262 default:
8263 break;
8264 }
8265 }
8266 va_end (args_copy);
8267 va_end (args);
8268}
8269
8270int
8271main ()
8272{
8273
8274 // Check bool.
8275 _Bool success = false;
8276
8277 // Check restrict.
8278 if (test_restrict ("String literal") == 0)
8279 success = true;
8280 char *restrict newvar = "Another string";
8281
8282 // Check varargs.
8283 test_varargs ("s, d' f .", "string", 65, 34.234);
8284 test_varargs_macros ();
8285
8286 // Check flexible array members.
8287 struct incomplete_array *ia =
8288 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8289 ia->datasize = 10;
8290 for (int i = 0; i < ia->datasize; ++i)
8291 ia->data[i] = i * 1.234;
8292
8293 // Check named initializers.
8294 struct named_init ni = {
8295 .number = 34,
8296 .name = L"Test wide string",
8297 .average = 543.34343,
8298 };
8299
8300 ni.number = 58;
8301
8302 int dynamic_array[ni.number];
8303 dynamic_array[ni.number - 1] = 543;
8304
8305 // work around unused variable warnings
8306 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8307 || dynamic_array[ni.number - 1] != 543);
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008313for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008314do
8315 CC="$ac_save_CC $ac_arg"
8316 if ac_fn_c_try_compile "$LINENO"; then :
8317 ac_cv_prog_cc_c99=$ac_arg
8318fi
8319rm -f core conftest.err conftest.$ac_objext
8320 test "x$ac_cv_prog_cc_c99" != "xno" && break
8321done
8322rm -f conftest.$ac_ext
8323CC=$ac_save_CC
8324
8325fi
8326# AC_CACHE_VAL
8327case "x$ac_cv_prog_cc_c99" in
8328 x)
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8330$as_echo "none needed" >&6; } ;;
8331 xno)
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8333$as_echo "unsupported" >&6; } ;;
8334 *)
8335 CC="$CC $ac_cv_prog_cc_c99"
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8337$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8338esac
8339if test "x$ac_cv_prog_cc_c99" != xno; then :
8340
8341fi
8342
8343
cristy73bd4a52010-10-05 11:24:23 +00008344
cristy17491be2014-06-24 01:10:53 +00008345ac_ext=c
8346ac_cpp='$CPP $CPPFLAGS'
8347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
cristy73bd4a52010-10-05 11:24:23 +00008351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8352$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008353if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008354 $as_echo_n "(cached) " >&6
8355else
8356 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008357ac_save_CFLAGS="$CFLAGS"
8358for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristy73bd4a52010-10-05 11:24:23 +00008359do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8361/* end confdefs.h. */
8362
8363int
8364main ()
8365{
cristy24fc1fe2010-10-23 21:13:01 +00008366
cristy73bd4a52010-10-05 11:24:23 +00008367 ;
8368 return 0;
8369}
8370_ACEOF
8371if ac_fn_c_try_compile "$LINENO"; then :
8372 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8373fi
8374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8375done
cristy17491be2014-06-24 01:10:53 +00008376CFLAGS="$ac_save_CFLAGS"
8377
8378fi
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8380$as_echo "$ac_cv_cflags_warn_all" >&6; }
8381
8382
8383case ".$ac_cv_cflags_warn_all" in
8384 .ok|.ok,*) ;;
8385 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008386 *)
8387if ${CFLAGS+:} false; then :
8388
8389 case " $CFLAGS " in #(
8390 *" $ac_cv_cflags_warn_all "*) :
8391 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008392 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8393 ac_status=$?
8394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008395 test $ac_status = 0; } ;; #(
8396 *) :
8397
8398 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8399 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8400 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008401 ac_status=$?
8402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8403 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008404 ;;
8405esac
8406
cristy17491be2014-06-24 01:10:53 +00008407else
cristy146497a2015-05-17 22:46:16 +00008408
8409 CFLAGS=$ac_cv_cflags_warn_all
8410 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8411 (: CFLAGS="$CFLAGS") 2>&5
8412 ac_status=$?
8413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8414 test $ac_status = 0; }
8415
cristy17491be2014-06-24 01:10:53 +00008416fi
8417 ;;
8418esac
8419
8420ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008421ac_cpp='$CPP $CPPFLAGS'
8422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8424ac_compiler_gnu=$ac_cv_c_compiler_gnu
8425
8426
cristya0b81c32010-01-22 02:54:33 +00008427
8428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8429$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8430set x ${MAKE-make}
8431ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008432if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008433 $as_echo_n "(cached) " >&6
8434else
8435 cat >conftest.make <<\_ACEOF
8436SHELL = /bin/sh
8437all:
8438 @echo '@@@%%%=$(MAKE)=@@@%%%'
8439_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008440# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008441case `${MAKE-make} -f conftest.make 2>/dev/null` in
8442 *@@@%%%=?*=@@@%%%*)
8443 eval ac_cv_prog_make_${ac_make}_set=yes;;
8444 *)
8445 eval ac_cv_prog_make_${ac_make}_set=no;;
8446esac
8447rm -f conftest.make
8448fi
8449if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8451$as_echo "yes" >&6; }
8452 SET_MAKE=
8453else
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456 SET_MAKE="MAKE=${MAKE-make}"
8457fi
8458
cristy8b350f62009-11-15 23:12:43 +00008459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008460$as_echo_n "checking whether ln -s works... " >&6; }
8461LN_S=$as_ln_s
8462if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008464$as_echo "yes" >&6; }
8465else
cristy8b350f62009-11-15 23:12:43 +00008466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008467$as_echo "no, using $LN_S" >&6; }
8468fi
8469
cristy8d0ff762013-03-10 20:33:28 +00008470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8471$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8472if ${ac_cv_path_SED+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474else
8475 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8476 for ac_i in 1 2 3 4 5 6 7; do
8477 ac_script="$ac_script$as_nl$ac_script"
8478 done
8479 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8480 { ac_script=; unset ac_script;}
8481 if test -z "$SED"; then
8482 ac_path_SED_found=false
8483 # Loop through the user's path and test for each of PROGNAME-LIST
8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487 IFS=$as_save_IFS
8488 test -z "$as_dir" && as_dir=.
8489 for ac_prog in sed gsed; do
8490 for ac_exec_ext in '' $ac_executable_extensions; do
8491 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8492 as_fn_executable_p "$ac_path_SED" || continue
8493# Check for GNU ac_path_SED and select it if it is found.
8494 # Check for GNU $ac_path_SED
8495case `"$ac_path_SED" --version 2>&1` in
8496*GNU*)
8497 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8498*)
8499 ac_count=0
8500 $as_echo_n 0123456789 >"conftest.in"
8501 while :
8502 do
8503 cat "conftest.in" "conftest.in" >"conftest.tmp"
8504 mv "conftest.tmp" "conftest.in"
8505 cp "conftest.in" "conftest.nl"
8506 $as_echo '' >> "conftest.nl"
8507 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8509 as_fn_arith $ac_count + 1 && ac_count=$as_val
8510 if test $ac_count -gt ${ac_path_SED_max-0}; then
8511 # Best one so far, save it but keep looking for a better one
8512 ac_cv_path_SED="$ac_path_SED"
8513 ac_path_SED_max=$ac_count
8514 fi
8515 # 10*(2^10) chars as input seems more than enough
8516 test $ac_count -gt 10 && break
8517 done
8518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8519esac
8520
8521 $ac_path_SED_found && break 3
8522 done
8523 done
8524 done
8525IFS=$as_save_IFS
8526 if test -z "$ac_cv_path_SED"; then
8527 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8528 fi
8529else
8530 ac_cv_path_SED=$SED
8531fi
8532
8533fi
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8535$as_echo "$ac_cv_path_SED" >&6; }
8536 SED="$ac_cv_path_SED"
8537 rm -f conftest.sed
8538
cristybc556452012-08-17 19:44:03 +00008539for ac_prog in gawk mawk nawk awk
8540do
8541 # Extract the first word of "$ac_prog", so it can be a program name with args.
8542set dummy $ac_prog; ac_word=$2
8543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8544$as_echo_n "checking for $ac_word... " >&6; }
8545if ${ac_cv_prog_AWK+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547else
8548 if test -n "$AWK"; then
8549 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8550else
8551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552for as_dir in $PATH
8553do
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8558 ac_cv_prog_AWK="$ac_prog"
8559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8561 fi
8562done
8563 done
8564IFS=$as_save_IFS
8565
8566fi
8567fi
8568AWK=$ac_cv_prog_AWK
8569if test -n "$AWK"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8571$as_echo "$AWK" >&6; }
8572else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574$as_echo "no" >&6; }
8575fi
8576
8577
8578 test -n "$AWK" && break
8579done
8580
cristy73bd4a52010-10-05 11:24:23 +00008581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8582$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8583
8584# Check whether --with-dmalloc was given.
8585if test "${with_dmalloc+set}" = set; then :
8586 withval=$with_dmalloc; if test "$withval" = yes; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8588$as_echo "yes" >&6; }
8589
8590$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8591
8592 LIBS="$LIBS -ldmalloc"
8593 LDFLAGS="$LDFLAGS -g"
8594else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596$as_echo "no" >&6; }
8597fi
8598else
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8600$as_echo "no" >&6; }
8601fi
8602
8603
8604
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8606$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008607if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008608 $as_echo_n "(cached) " >&6
8609else
8610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8611/* end confdefs.h. */
8612#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008613 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008614 static void
8615 foo(void) {
8616 exit(1);
8617 }
8618
8619int
8620main ()
8621{
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627if ac_fn_c_try_compile "$LINENO"; then :
8628 ax_cv___attribute__=yes
8629else
8630 ax_cv___attribute__=no
8631
8632fi
8633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8634
8635fi
8636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8637$as_echo "$ax_cv___attribute__" >&6; }
8638 if test "$ax_cv___attribute__" = "yes"; then
8639
8640$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8641
8642 fi
8643
cristy146497a2015-05-17 22:46:16 +00008644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8645$as_echo_n "checking for C compiler vendor... " >&6; }
8646if ${ax_cv_c_compiler_vendor+:} false; then :
8647 $as_echo_n "(cached) " >&6
8648else
8649 # note: don't check for gcc first since some other compilers define __GNUC__
8650 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8651 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8652 pathscale: __PATHCC__,__PATHSCALE__
8653 clang: __clang__
8654 cray: _CRAYC
8655 fujitsu: __FUJITSU
8656 gnu: __GNUC__
8657 sun: __SUNPRO_C,__SUNPRO_CC
8658 hp: __HP_cc,__HP_aCC
8659 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8660 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8661 comeau: __COMO__
8662 kai: __KCC
8663 lcc: __LCC__
8664 sgi: __sgi,sgi
8665 microsoft: _MSC_VER
8666 metrowerks: __MWERKS__
8667 watcom: __WATCOMC__
8668 portland: __PGI
8669 tcc: __TINYC__
8670 unknown: UNKNOWN"
8671 for ventest in $vendors; do
8672 case $ventest in
8673 *:) vendor=$ventest; continue ;;
8674 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8675 esac
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677/* end confdefs.h. */
8678
8679int
8680main ()
8681{
8682
8683 #if !($vencpp)
8684 thisisanerror;
8685 #endif
8686
8687 ;
8688 return 0;
8689}
8690_ACEOF
8691if ac_fn_c_try_compile "$LINENO"; then :
8692 break
8693fi
8694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 done
8696 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8697
8698fi
8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8700$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8701
8702
cristy73bd4a52010-10-05 11:24:23 +00008703
8704
cristya0459972013-11-03 18:09:35 +00008705
8706
cristy17491be2014-06-24 01:10:53 +00008707
cristya0459972013-11-03 18:09:35 +00008708# Check whether --with-gcc-arch was given.
8709if test "${with_gcc_arch+set}" = set; then :
8710 withval=$with_gcc_arch; ax_gcc_arch=$withval
8711else
cristy17491be2014-06-24 01:10:53 +00008712 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008713fi
8714
8715
8716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8717$as_echo_n "checking for gcc architecture flag... " >&6; }
8718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8719$as_echo "" >&6; }
8720if ${ax_cv_gcc_archflag+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722else
8723
8724ax_cv_gcc_archflag="unknown"
8725
8726if test "$GCC" = yes; then
8727
8728if test "x$ax_gcc_arch" = xyes; then
8729ax_gcc_arch=""
8730if test "$cross_compiling" = no; then
8731case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008732 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008733
8734ac_ext=c
8735ac_cpp='$CPP $CPPFLAGS'
8736ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8737ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8738ac_compiler_gnu=$ac_cv_c_compiler_gnu
8739
8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8741$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8742if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8743 $as_echo_n "(cached) " >&6
8744else
8745 if test "$cross_compiling" = yes; then :
8746 ax_cv_gcc_x86_cpuid_0=unknown
8747else
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749/* end confdefs.h. */
8750#include <stdio.h>
8751int
8752main ()
8753{
8754
Cristy66387d22015-11-02 07:41:25 -05008755 int op = 0, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008756 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008757 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008758 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008759 : "a" (op), "2" (level));
8760
cristya0459972013-11-03 18:09:35 +00008761 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8762 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8763 fclose(f);
8764 return 0;
8765
8766 ;
8767 return 0;
8768}
8769_ACEOF
8770if ac_fn_c_try_run "$LINENO"; then :
8771 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8772else
8773 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8774fi
8775rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8776 conftest.$ac_objext conftest.beam conftest.$ac_ext
8777fi
8778
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8781$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8782ac_ext=c
8783ac_cpp='$CPP $CPPFLAGS'
8784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8786ac_compiler_gnu=$ac_cv_c_compiler_gnu
8787
8788
8789
Cristy66387d22015-11-02 07:41:25 -05008790
cristya0459972013-11-03 18:09:35 +00008791ac_ext=c
8792ac_cpp='$CPP $CPPFLAGS'
8793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8795ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796
8797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8798$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8799if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801else
8802 if test "$cross_compiling" = yes; then :
8803 ax_cv_gcc_x86_cpuid_1=unknown
8804else
8805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8806/* end confdefs.h. */
8807#include <stdio.h>
8808int
8809main ()
8810{
8811
Cristy66387d22015-11-02 07:41:25 -05008812 int op = 1, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008813 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008814 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008815 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008816 : "a" (op), "2" (level));
8817
cristya0459972013-11-03 18:09:35 +00008818 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8819 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8820 fclose(f);
8821 return 0;
8822
8823 ;
8824 return 0;
8825}
8826_ACEOF
8827if ac_fn_c_try_run "$LINENO"; then :
8828 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8829else
8830 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8831fi
8832rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8833 conftest.$ac_objext conftest.beam conftest.$ac_ext
8834fi
8835
8836fi
8837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8838$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8839ac_ext=c
8840ac_cpp='$CPP $CPPFLAGS'
8841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8843ac_compiler_gnu=$ac_cv_c_compiler_gnu
8844
8845
Cristy66387d22015-11-02 07:41:25 -05008846
cristya0459972013-11-03 18:09:35 +00008847 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008848 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008849 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008850 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8851 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8852 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8853 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8854 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8855 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8856 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8857 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008858 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008859 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8860 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8861 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8862 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8863 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8864 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8865 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8866 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8867 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8868 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8869 # fallback
8870 *5??:*:*:*) ax_gcc_arch=pentium ;;
8871 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008872 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008873 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008874 esac ;;
cristy146497a2015-05-17 22:46:16 +00008875 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008876 case $ax_cv_gcc_x86_cpuid_1 in
8877 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008878 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8879 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008880 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8881 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008882 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8883 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8884 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8885 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8886 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8887 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8888 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8889 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8890 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8891 # fallback
8892 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
8893 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
8894 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8895 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8896 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
8897 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
8898 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
8899 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00008900 esac ;;
cristy146497a2015-05-17 22:46:16 +00008901 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00008902 case $ax_cv_gcc_x86_cpuid_1 in
8903 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00008904 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
8905 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00008906 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00008907 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00008908 esac ;;
8909 esac
8910 if test x"$ax_gcc_arch" = x; then # fallback
8911 case $host_cpu in
8912 i586*) ax_gcc_arch=pentium ;;
8913 i686*) ax_gcc_arch=pentiumpro ;;
8914 esac
8915 fi
8916 ;;
8917
8918 sparc*)
8919 # Extract the first word of "prtdiag", so it can be a program name with args.
8920set dummy prtdiag; ac_word=$2
8921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922$as_echo_n "checking for $ac_word... " >&6; }
8923if ${ac_cv_path_PRTDIAG+:} false; then :
8924 $as_echo_n "(cached) " >&6
8925else
8926 case $PRTDIAG in
8927 [\\/]* | ?:[\\/]*)
8928 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8929 ;;
8930 *)
8931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8932as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8933for as_dir in $as_dummy
8934do
8935 IFS=$as_save_IFS
8936 test -z "$as_dir" && as_dir=.
8937 for ac_exec_ext in '' $ac_executable_extensions; do
8938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8939 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8941 break 2
8942 fi
8943done
8944 done
8945IFS=$as_save_IFS
8946
8947 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8948 ;;
8949esac
8950fi
8951PRTDIAG=$ac_cv_path_PRTDIAG
8952if test -n "$PRTDIAG"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8954$as_echo "$PRTDIAG" >&6; }
8955else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957$as_echo "no" >&6; }
8958fi
8959
8960
8961 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
cristy17491be2014-06-24 01:10:53 +00008962 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00008963 case $cputype in
8964 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8965 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8966 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8967 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8968 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8969 *cypress*) ax_gcc_arch=cypress ;;
8970 esac ;;
8971
8972 alphaev5) ax_gcc_arch=ev5 ;;
8973 alphaev56) ax_gcc_arch=ev56 ;;
8974 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8975 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8976 alphaev6) ax_gcc_arch=ev6 ;;
8977 alphaev67) ax_gcc_arch=ev67 ;;
8978 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8979 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8980 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8981 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8982
8983 powerpc*)
cristy17491be2014-06-24 01:10:53 +00008984 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`
8985 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00008986 case $cputype in
8987 *750*) ax_gcc_arch="750 G3" ;;
8988 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8989 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8990 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8991 *970*) ax_gcc_arch="970 G5 power4";;
8992 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8993 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8994 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8995 *) ax_gcc_arch=$cputype ;;
8996 esac
8997 ax_gcc_arch="$ax_gcc_arch powerpc"
8998 ;;
8999esac
9000fi # not cross-compiling
9001fi # guess arch
9002
9003if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00009004if test "xyes" = xyes; then # if we require portable code
9005 flag_prefixes="-mtune="
9006 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9007 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9008 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9009 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9010else
9011 flag_prefixes="-march= -mcpu= -m"
9012fi
9013for flag_prefix in $flag_prefixes; do
9014 for arch in $ax_gcc_arch; do
9015 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009016 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9018$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9019if eval \${$as_CACHEVAR+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021else
9022
9023 ax_check_save_flags=$CFLAGS
9024 CFLAGS="$CFLAGS $flag"
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h. */
9027
9028int
9029main ()
9030{
9031
9032 ;
9033 return 0;
9034}
9035_ACEOF
9036if ac_fn_c_try_compile "$LINENO"; then :
9037 eval "$as_CACHEVAR=yes"
9038else
9039 eval "$as_CACHEVAR=no"
9040fi
9041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9042 CFLAGS=$ax_check_save_flags
9043fi
9044eval ac_res=\$$as_CACHEVAR
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9046$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009047if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9048 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9049 if test "xyes" = xyes; then
9050 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9051 fi
9052 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009053else
9054 :
9055fi
9056
9057 done
9058 test "x$ax_cv_gcc_archflag" = xunknown || break
9059done
9060fi
9061
9062fi # $GCC=yes
9063
9064fi
9065
9066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9067$as_echo_n "checking for gcc architecture flag... " >&6; }
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9069$as_echo "$ax_cv_gcc_archflag" >&6; }
9070if test "x$ax_cv_gcc_archflag" = xunknown; then
9071 :
9072else
9073 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9074fi
9075
9076
9077
cristy146497a2015-05-17 22:46:16 +00009078
9079
9080
9081
9082
cristy73bd4a52010-10-05 11:24:23 +00009083if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9084 if test -n "$ac_tool_prefix"; then
9085 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9086set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009089if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009090 $as_echo_n "(cached) " >&6
9091else
9092 case $PKG_CONFIG in
9093 [\\/]* | ?:[\\/]*)
9094 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9095 ;;
9096 *)
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098for as_dir in $PATH
9099do
9100 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2
9107 fi
9108done
9109 done
9110IFS=$as_save_IFS
9111
9112 ;;
9113esac
9114fi
9115PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9116if test -n "$PKG_CONFIG"; then
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9118$as_echo "$PKG_CONFIG" >&6; }
9119else
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9121$as_echo "no" >&6; }
9122fi
9123
9124
9125fi
9126if test -z "$ac_cv_path_PKG_CONFIG"; then
9127 ac_pt_PKG_CONFIG=$PKG_CONFIG
9128 # Extract the first word of "pkg-config", so it can be a program name with args.
9129set dummy pkg-config; ac_word=$2
9130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009132if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009133 $as_echo_n "(cached) " >&6
9134else
9135 case $ac_pt_PKG_CONFIG in
9136 [\\/]* | ?:[\\/]*)
9137 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9138 ;;
9139 *)
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141for as_dir in $PATH
9142do
9143 IFS=$as_save_IFS
9144 test -z "$as_dir" && as_dir=.
9145 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149 break 2
9150 fi
9151done
9152 done
9153IFS=$as_save_IFS
9154
9155 ;;
9156esac
9157fi
9158ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9159if test -n "$ac_pt_PKG_CONFIG"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9161$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9162else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164$as_echo "no" >&6; }
9165fi
9166
9167 if test "x$ac_pt_PKG_CONFIG" = x; then
9168 PKG_CONFIG=""
9169 else
9170 case $cross_compiling:$ac_tool_warned in
9171yes:)
9172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9174ac_tool_warned=yes ;;
9175esac
9176 PKG_CONFIG=$ac_pt_PKG_CONFIG
9177 fi
9178else
9179 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9180fi
9181
9182fi
9183if test -n "$PKG_CONFIG"; then
9184 _pkg_min_version=0.9.0
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9186$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9187 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9189$as_echo "yes" >&6; }
9190 else
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192$as_echo "no" >&6; }
9193 PKG_CONFIG=""
9194 fi
cristy73bd4a52010-10-05 11:24:23 +00009195fi
cristy3ed852e2009-09-05 21:47:34 +00009196
cristy9af1cbf2014-12-28 22:03:09 +00009197
9198
cristyd95b7a52013-10-23 13:12:53 +00009199# Test for 64-bit build.
9200# The cast to long int works around a bug in the HP C Compiler
9201# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9202# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9203# This bug is HP SR number 8606223364.
9204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9205$as_echo_n "checking size of size_t... " >&6; }
9206if ${ac_cv_sizeof_size_t+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208else
9209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9210
9211else
9212 if test "$ac_cv_type_size_t" = yes; then
9213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9215as_fn_error 77 "cannot compute sizeof (size_t)
9216See \`config.log' for more details" "$LINENO" 5; }
9217 else
9218 ac_cv_sizeof_size_t=0
9219 fi
9220fi
9221
9222fi
9223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9224$as_echo "$ac_cv_sizeof_size_t" >&6; }
9225
9226
9227
9228cat >>confdefs.h <<_ACEOF
9229#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9230_ACEOF
9231
9232
9233
9234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9235$as_echo_n "checking for C compiler vendor... " >&6; }
9236if ${ax_cv_c_compiler_vendor+:} false; then :
9237 $as_echo_n "(cached) " >&6
9238else
cristy146497a2015-05-17 22:46:16 +00009239 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009240 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9241 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9242 pathscale: __PATHCC__,__PATHSCALE__
9243 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009244 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009245 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009246 gnu: __GNUC__
9247 sun: __SUNPRO_C,__SUNPRO_CC
9248 hp: __HP_cc,__HP_aCC
9249 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009250 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009251 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009252 kai: __KCC
9253 lcc: __LCC__
9254 sgi: __sgi,sgi
9255 microsoft: _MSC_VER
9256 metrowerks: __MWERKS__
9257 watcom: __WATCOMC__
9258 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009259 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009260 unknown: UNKNOWN"
9261 for ventest in $vendors; do
9262 case $ventest in
9263 *:) vendor=$ventest; continue ;;
9264 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9265 esac
9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9267/* end confdefs.h. */
9268
9269int
9270main ()
9271{
9272
9273 #if !($vencpp)
9274 thisisanerror;
9275 #endif
9276
9277 ;
9278 return 0;
9279}
9280_ACEOF
9281if ac_fn_c_try_compile "$LINENO"; then :
9282 break
9283fi
9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9285 done
9286 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9287
9288fi
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9290$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9291
cristyd95b7a52013-10-23 13:12:53 +00009292# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9293# compiler.
9294if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009295 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009296ac_cpp='$CPP $CPPFLAGS'
9297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9299ac_compiler_gnu=$ac_cv_c_compiler_gnu
9300
cristy17491be2014-06-24 01:10:53 +00009301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9302$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9303if ${ac_cv_cflags_warn_all+:} false; then :
9304 $as_echo_n "(cached) " >&6
9305else
9306 ac_cv_cflags_warn_all="no, unknown"
9307ac_save_CFLAGS="$CFLAGS"
9308for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
cristyd95b7a52013-10-23 13:12:53 +00009309do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311/* end confdefs.h. */
9312
9313int
9314main ()
9315{
9316
9317 ;
9318 return 0;
9319}
9320_ACEOF
9321if ac_fn_c_try_compile "$LINENO"; then :
9322 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9323fi
9324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9325done
cristy17491be2014-06-24 01:10:53 +00009326CFLAGS="$ac_save_CFLAGS"
9327
9328fi
9329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9330$as_echo "$ac_cv_cflags_warn_all" >&6; }
9331
9332
9333case ".$ac_cv_cflags_warn_all" in
9334 .ok|.ok,*) ;;
9335 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009336 *)
9337if ${CFLAGS+:} false; then :
9338
9339 case " $CFLAGS " in #(
9340 *" $ac_cv_cflags_warn_all "*) :
9341 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009342 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9343 ac_status=$?
9344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009345 test $ac_status = 0; } ;; #(
9346 *) :
9347
9348 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9349 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9350 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009351 ac_status=$?
9352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9353 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009354 ;;
9355esac
9356
cristy17491be2014-06-24 01:10:53 +00009357else
cristy146497a2015-05-17 22:46:16 +00009358
9359 CFLAGS=$ac_cv_cflags_warn_all
9360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9361 (: CFLAGS="$CFLAGS") 2>&5
9362 ac_status=$?
9363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9364 test $ac_status = 0; }
9365
cristy17491be2014-06-24 01:10:53 +00009366fi
9367 ;;
9368esac
9369
9370ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009371ac_cpp='$CPP $CPPFLAGS'
9372ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9373ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9374ac_compiler_gnu=$ac_cv_c_compiler_gnu
9375
9376
9377fi
cristyd95b7a52013-10-23 13:12:53 +00009378
9379if test "x$GCC" = "xyes"; then
9380 CFLAGS="$CFLAGS -fexceptions"
9381 touch local.exp
9382else
9383 cat > local.exp <<EOF
9384set CC_FOR_TARGET "$CC"
9385EOF
9386fi
9387
cristy9b86f202012-11-28 21:55:35 +00009388# Check for linker script support
9389
9390 # Check whether --enable-ld-version-script was given.
9391if test "${enable_ld_version_script+set}" = set; then :
9392 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9393fi
9394
9395 if test -z "$have_ld_version_script"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9397$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9398 save_LDFLAGS="$LDFLAGS"
9399 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9400 cat > conftest.map <<EOF
9401foo
9402EOF
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404/* end confdefs.h. */
9405
9406int
9407main ()
9408{
9409
9410 ;
9411 return 0;
9412}
9413_ACEOF
9414if ac_fn_c_try_link "$LINENO"; then :
9415 accepts_syntax_errors=yes
9416else
9417 accepts_syntax_errors=no
9418fi
9419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 if test "$accepts_syntax_errors" = no; then
9422 cat > conftest.map <<EOF
9423VERS_1 {
9424 global: sym;
9425};
9426
9427VERS_2 {
9428 global: sym;
9429} VERS_1;
9430EOF
9431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9432/* end confdefs.h. */
9433
9434int
9435main ()
9436{
9437
9438 ;
9439 return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443 have_ld_version_script=yes
9444else
9445 have_ld_version_script=no
9446fi
9447rm -f core conftest.err conftest.$ac_objext \
9448 conftest$ac_exeext conftest.$ac_ext
9449 else
9450 have_ld_version_script=no
9451 fi
9452 rm -f conftest.map
9453 LDFLAGS="$save_LDFLAGS"
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9455$as_echo "$have_ld_version_script" >&6; }
9456 fi
9457 if test "$have_ld_version_script" = "yes"; then
9458 HAVE_LD_VERSION_SCRIPT_TRUE=
9459 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9460else
9461 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9462 HAVE_LD_VERSION_SCRIPT_FALSE=
9463fi
9464
9465
9466
cristy3ed852e2009-09-05 21:47:34 +00009467#
cristy3ed852e2009-09-05 21:47:34 +00009468# Enable run-time checking.
9469#
9470# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009471if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009472 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9473else
9474 enable_bounds_checking='no'
9475fi
9476
9477
9478if test "$enable_bounds_checking" = yes; then
9479
cristy8b350f62009-11-15 23:12:43 +00009480$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009481
9482fi
9483
9484#
9485# Tests for Windows
9486#
9487
9488
9489
9490GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009491native_win32_build='no'
9492cygwin_build='no'
9493case "${host_os}" in
9494 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009495 cygwin_build='yes'
9496 GDI32_LIBS='-lgdi32'
9497 ;;
9498 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009499 native_win32_build='yes'
9500 GDI32_LIBS='-lgdi32'
9501 ;;
9502esac
9503if test "${GDI32_LIBS}x" != 'x'; then
9504
cristy8b350f62009-11-15 23:12:43 +00009505$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009506
9507fi
9508
cristy73bd4a52010-10-05 11:24:23 +00009509 if test "${GDI32_LIBS}x" != 'x' ; then
9510 WINGDI32_DELEGATE_TRUE=
9511 WINGDI32_DELEGATE_FALSE='#'
9512else
9513 WINGDI32_DELEGATE_TRUE='#'
9514 WINGDI32_DELEGATE_FALSE=
9515fi
9516
9517 if test "${native_win32_build}" = 'yes' ; then
9518 WIN32_NATIVE_BUILD_TRUE=
9519 WIN32_NATIVE_BUILD_FALSE='#'
9520else
9521 WIN32_NATIVE_BUILD_TRUE='#'
9522 WIN32_NATIVE_BUILD_FALSE=
9523fi
9524
9525 if test "${cygwin_build}" = 'yes' ; then
9526 CYGWIN_BUILD_TRUE=
9527 CYGWIN_BUILD_FALSE='#'
9528else
9529 CYGWIN_BUILD_TRUE='#'
9530 CYGWIN_BUILD_FALSE=
9531fi
9532
9533 if test "x${CC}" = 'xcl.exe' ; then
9534 USING_CL_TRUE=
9535 USING_CL_FALSE='#'
9536else
9537 USING_CL_TRUE='#'
9538 USING_CL_FALSE=
9539fi
9540
cristy3ed852e2009-09-05 21:47:34 +00009541
9542WinPathScript="${srcdirfull}/winpath.sh"
9543
9544
9545#
9546# Compiler flags tweaks
9547#
9548if test "${GCC}" != "yes"; then
9549 case "${host}" in
9550 *-*-hpux* )
9551 # aCC: HP ANSI C++ B3910B A.03.34
9552 CFLAGS="${CFLAGS} -Wp,-H30000"
9553 if test -n "${CXXFLAGS}"; then
9554 CXXFLAGS='-AA'
9555 else
9556 CXXFLAGS="${CXXFLAGS} -AA"
9557 fi
9558 ;;
9559 *-dec-osf5.* )
9560 # Compaq alphaev68-dec-osf5.1 compiler
9561 if test -n "${CXXFLAGS}"; then
9562 CXXFLAGS='-std strict_ansi -noimplicit_include'
9563 else
9564 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9565 fi
9566 esac
9567fi
9568
9569# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009571$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009572if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009573 $as_echo_n "(cached) " >&6
9574else
9575
9576im_cv_ld_lazyload='none'
9577case "${host}" in
9578 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9579 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9580 im_cv_ld_lazyload='-Wl,-zlazyload'
9581 fi
9582 ;;
9583esac
9584
9585fi
cristy8b350f62009-11-15 23:12:43 +00009586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009587$as_echo "$im_cv_ld_lazyload" >&6; }
9588if test "${im_cv_ld_lazyload}" != 'none' ; then
9589 if test -z "${LDFLAGS}" ; then
9590 LDFLAGS="${im_cv_ld_lazyload}"
9591 else
9592 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9593 fi
9594fi
9595
9596case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009597 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009598 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009599 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009600if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009601 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9602else
9603 build_osxuniversal=no
9604fi
9605
9606
cristyc37574e2013-02-16 01:04:55 +00009607 if test "${build_osxuniversal}" != no ; then
9608 if test "$enable_dependency_tracking" != no ; then
9609 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009610Please re-run configure with these options:
9611 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009612 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009613 fi
9614 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9615 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9616 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009617 fi
9618 ;;
9619esac
9620
cristy0151ae12011-10-28 16:32:29 +00009621#
9622# ARCH specific include directory
9623#
9624
cristy670aa3c2011-11-03 00:54:00 +00009625# Check whether --with-includearch-dir was given.
9626if test "${with_includearch_dir+set}" = set; then :
9627 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009628else
cristy670aa3c2011-11-03 00:54:00 +00009629 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009630fi
9631
9632
cristyd286fd72013-02-24 19:25:33 +00009633eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009634
cristy0151ae12011-10-28 16:32:29 +00009635
9636#
9637# ARCH specific configuration directory
9638#
9639
cristy670aa3c2011-11-03 00:54:00 +00009640# Check whether --with-sharearch-dir was given.
9641if test "${with_sharearch_dir+set}" = set; then :
9642 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009643else
cristy408ebcd2011-11-14 01:36:57 +00009644 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009645fi
9646
9647
cristy670aa3c2011-11-03 00:54:00 +00009648eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009649
cristy0151ae12011-10-28 16:32:29 +00009650
cristy2ec87cc2013-02-18 17:46:50 +00009651# Path to the pkgconfig folder
9652
9653# Check whether --with-pkgconfigdir was given.
9654if test "${with_pkgconfigdir+set}" = set; then :
9655 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9656else
9657 pkgconfigdir='${libdir}/pkgconfig'
9658fi
9659
9660
9661
cristy0151ae12011-10-28 16:32:29 +00009662#
cristy3ed852e2009-09-05 21:47:34 +00009663# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009664#
9665# Find Posix threads library
9666#
cristy3ed852e2009-09-05 21:47:34 +00009667
9668# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009669if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009670 withval=$with_threads; with_threads=$withval
9671else
9672 with_threads='yes'
9673fi
9674
9675
cristy1ae5c992013-07-30 14:55:07 +00009676THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009677have_threads=no
9678if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009679
9680
cristy73bd4a52010-10-05 11:24:23 +00009681ac_ext=c
9682ac_cpp='$CPP $CPPFLAGS'
9683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9685ac_compiler_gnu=$ac_cv_c_compiler_gnu
9686
9687ax_pthread_ok=no
9688
9689# We used to check for pthread.h first, but this fails if pthread.h
9690# requires special compiler flags (e.g. on True64 or Sequent).
9691# It gets checked for in the link test anyway.
9692
9693# First of all, check if the user has set any of the PTHREAD_LIBS,
9694# etcetera environment variables, and if threads linking works using
9695# them:
9696if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9697 save_CFLAGS="$CFLAGS"
9698 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9699 save_LIBS="$LIBS"
9700 LIBS="$PTHREAD_LIBS $LIBS"
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9702$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704/* end confdefs.h. */
9705
9706/* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9709#ifdef __cplusplus
9710extern "C"
9711#endif
9712char pthread_join ();
9713int
9714main ()
9715{
9716return pthread_join ();
9717 ;
9718 return 0;
9719}
9720_ACEOF
9721if ac_fn_c_try_link "$LINENO"; then :
9722 ax_pthread_ok=yes
9723fi
9724rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9727$as_echo "$ax_pthread_ok" >&6; }
9728 if test x"$ax_pthread_ok" = xno; then
9729 PTHREAD_LIBS=""
9730 PTHREAD_CFLAGS=""
9731 fi
9732 LIBS="$save_LIBS"
9733 CFLAGS="$save_CFLAGS"
9734fi
9735
9736# We must check for the threads library under a number of different
9737# names; the ordering is very important because some systems
9738# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9739# libraries is broken (non-POSIX).
9740
9741# Create a list of thread flags to try. Items starting with a "-" are
9742# C compiler flags, and other items are library names, except for "none"
9743# which indicates that we try without any flags at all, and "pthread-config"
9744# which is a program returning the flags for the Pth emulation library.
9745
cristy2ec87cc2013-02-18 17:46:50 +00009746ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009747
9748# The ordering *is* (sometimes) important. Some notes on the
9749# individual items follow:
9750
9751# pthreads: AIX (must check this before -lpthread)
9752# none: in case threads are in libc; should be tried before -Kthread and
9753# other compiler flags to prevent continual compiler warnings
9754# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9755# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9756# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9757# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9758# -pthreads: Solaris/gcc
9759# -mthreads: Mingw32/gcc, Lynx/gcc
9760# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9761# doesn't hurt to check since this sometimes defines pthreads too;
9762# also defines -D_REENTRANT)
9763# ... -mt is also the pthreads flag for HP/aCC
9764# pthread: Linux, etcetera
9765# --thread-safe: KAI C++
9766# pthread-config: use pthread-config program (for GNU Pth library)
9767
cristy2ec87cc2013-02-18 17:46:50 +00009768case ${host_os} in
9769 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009770
9771 # On Solaris (at least, for some versions), libc contains stubbed
9772 # (non-functional) versions of the pthreads routines, so link-based
9773 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9774 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9775 # a function called by this macro, so we could check for that, but
9776 # who knows whether they'll stub that too in a future libc.) So,
9777 # we'll just look for -pthreads and -lpthread first:
9778
9779 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9780 ;;
9781
cristy2ec87cc2013-02-18 17:46:50 +00009782 darwin*)
cristya316db12011-10-24 00:49:45 +00009783 ax_pthread_flags="-pthread $ax_pthread_flags"
9784 ;;
cristy73bd4a52010-10-05 11:24:23 +00009785esac
9786
cristy17491be2014-06-24 01:10:53 +00009787# Clang doesn't consider unrecognized options an error unless we specify
9788# -Werror. We throw in some extra Clang-specific options to ensure that
9789# this doesn't happen for GCC, which also accepts -Werror.
9790
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9792$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9793save_CFLAGS="$CFLAGS"
9794ax_pthread_extra_flags="-Werror"
9795CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9797/* end confdefs.h. */
9798int foo(void);
9799int
9800main ()
9801{
9802foo()
9803 ;
9804 return 0;
9805}
9806_ACEOF
9807if ac_fn_c_try_compile "$LINENO"; then :
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9809$as_echo "yes" >&6; }
9810else
9811 ax_pthread_extra_flags=
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9813$as_echo "no" >&6; }
9814fi
9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9816CFLAGS="$save_CFLAGS"
9817
cristy73bd4a52010-10-05 11:24:23 +00009818if test x"$ax_pthread_ok" = xno; then
9819for flag in $ax_pthread_flags; do
9820
9821 case $flag in
9822 none)
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9824$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9825 ;;
9826
9827 -*)
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9829$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9830 PTHREAD_CFLAGS="$flag"
9831 ;;
9832
cristya316db12011-10-24 00:49:45 +00009833 pthread-config)
9834 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009835set dummy pthread-config; ac_word=$2
9836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009838if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009839 $as_echo_n "(cached) " >&6
9840else
9841 if test -n "$ax_pthread_config"; then
9842 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9843else
9844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9845for as_dir in $PATH
9846do
9847 IFS=$as_save_IFS
9848 test -z "$as_dir" && as_dir=.
9849 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009851 ac_cv_prog_ax_pthread_config="yes"
9852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9853 break 2
9854 fi
9855done
9856 done
9857IFS=$as_save_IFS
9858
9859 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9860fi
9861fi
9862ax_pthread_config=$ac_cv_prog_ax_pthread_config
9863if test -n "$ax_pthread_config"; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9865$as_echo "$ax_pthread_config" >&6; }
9866else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9868$as_echo "no" >&6; }
9869fi
9870
9871
cristya316db12011-10-24 00:49:45 +00009872 if test x"$ax_pthread_config" = xno; then continue; fi
9873 PTHREAD_CFLAGS="`pthread-config --cflags`"
9874 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9875 ;;
cristy73bd4a52010-10-05 11:24:23 +00009876
9877 *)
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9879$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9880 PTHREAD_LIBS="-l$flag"
9881 ;;
9882 esac
9883
9884 save_LIBS="$LIBS"
9885 save_CFLAGS="$CFLAGS"
9886 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +00009887 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +00009888
9889 # Check for various functions. We must include pthread.h,
9890 # since some functions may be macros. (On the Sequent, we
9891 # need a special flag -Kthread to make this header compile.)
9892 # We check for pthread_join because it is in -lpthread on IRIX
9893 # while pthread_create is in libc. We check for pthread_attr_init
9894 # due to DEC craziness with -lpthreads. We check for
9895 # pthread_cleanup_push because it is one of the few pthread
9896 # functions on Solaris that doesn't have a non-functional libc stub.
9897 # We try pthread_create on general principles.
9898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9899/* end confdefs.h. */
9900#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009901 static void routine(void *a) { a = 0; }
9902 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009903int
9904main ()
9905{
9906pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009907 pthread_create(&th, 0, start_routine, 0);
9908 pthread_join(th, 0);
9909 pthread_attr_init(&attr);
9910 pthread_cleanup_push(routine, 0);
9911 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009912 ;
9913 return 0;
9914}
9915_ACEOF
9916if ac_fn_c_try_link "$LINENO"; then :
9917 ax_pthread_ok=yes
9918fi
9919rm -f core conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921
9922 LIBS="$save_LIBS"
9923 CFLAGS="$save_CFLAGS"
9924
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9926$as_echo "$ax_pthread_ok" >&6; }
9927 if test "x$ax_pthread_ok" = xyes; then
9928 break;
9929 fi
9930
9931 PTHREAD_LIBS=""
9932 PTHREAD_CFLAGS=""
9933done
9934fi
9935
9936# Various other checks:
9937if test "x$ax_pthread_ok" = xyes; then
9938 save_LIBS="$LIBS"
9939 LIBS="$PTHREAD_LIBS $LIBS"
9940 save_CFLAGS="$CFLAGS"
9941 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9942
9943 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009945$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009946 attr_name=unknown
9947 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009949/* end confdefs.h. */
9950#include <pthread.h>
9951int
9952main ()
9953{
cristya316db12011-10-24 00:49:45 +00009954int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009955 ;
9956 return 0;
9957}
9958_ACEOF
9959if ac_fn_c_try_link "$LINENO"; then :
9960 attr_name=$attr; break
9961fi
9962rm -f core conftest.err conftest.$ac_objext \
9963 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009964 done
cristy73bd4a52010-10-05 11:24:23 +00009965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9966$as_echo "$attr_name" >&6; }
9967 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9968
9969cat >>confdefs.h <<_ACEOF
9970#define PTHREAD_CREATE_JOINABLE $attr_name
9971_ACEOF
9972
9973 fi
9974
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9976$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9977 flag=no
cristy2ec87cc2013-02-18 17:46:50 +00009978 case ${host_os} in
9979 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
9980 osf* | hpux*) flag="-D_REENTRANT";;
9981 solaris*)
9982 if test "$GCC" = "yes"; then
9983 flag="-D_REENTRANT"
9984 else
cristy17491be2014-06-24 01:10:53 +00009985 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +00009986 flag="-mt -D_REENTRANT"
9987 fi
9988 ;;
cristy73bd4a52010-10-05 11:24:23 +00009989 esac
cristy17491be2014-06-24 01:10:53 +00009990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
9991$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009992 if test "x$flag" != xno; then
9993 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9994 fi
9995
cristya316db12011-10-24 00:49:45 +00009996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9997$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9998if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9999 $as_echo_n "(cached) " >&6
10000else
10001
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010004#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010005int
10006main ()
10007{
10008int i = PTHREAD_PRIO_INHERIT;
10009 ;
10010 return 0;
10011}
10012_ACEOF
10013if ac_fn_c_try_link "$LINENO"; then :
10014 ax_cv_PTHREAD_PRIO_INHERIT=yes
10015else
10016 ax_cv_PTHREAD_PRIO_INHERIT=no
10017fi
10018rm -f core conftest.err conftest.$ac_objext \
10019 conftest$ac_exeext conftest.$ac_ext
10020
10021fi
10022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10023$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10024 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10025
10026$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10027
10028fi
10029
cristy73bd4a52010-10-05 11:24:23 +000010030 LIBS="$save_LIBS"
10031 CFLAGS="$save_CFLAGS"
10032
cristy23493c42013-04-11 16:04:59 +000010033 # More AIX lossage: compile with *_r variant
10034 if test "x$GCC" != xyes; then
10035 case $host_os in
10036 aix*)
10037 case "x/$CC" in #(
10038 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10039 #handle absolute path differently from PATH based program lookup
10040 case "x$CC" in #(
10041 x/*) :
10042 if as_fn_executable_p ${CC}_r; then :
10043 PTHREAD_CC="${CC}_r"
10044fi ;; #(
10045 *) :
10046 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010047do
10048 # Extract the first word of "$ac_prog", so it can be a program name with args.
10049set dummy $ac_prog; ac_word=$2
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010052if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010053 $as_echo_n "(cached) " >&6
10054else
10055 if test -n "$PTHREAD_CC"; then
10056 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
10063 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010065 ac_cv_prog_PTHREAD_CC="$ac_prog"
10066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067 break 2
10068 fi
10069done
10070 done
10071IFS=$as_save_IFS
10072
10073fi
10074fi
10075PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10076if test -n "$PTHREAD_CC"; then
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10078$as_echo "$PTHREAD_CC" >&6; }
10079else
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084
10085 test -n "$PTHREAD_CC" && break
10086done
cristy23493c42013-04-11 16:04:59 +000010087test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10088 ;;
10089esac ;; #(
10090 *) :
10091 ;;
10092esac
10093 ;;
10094 esac
cristya316db12011-10-24 00:49:45 +000010095 fi
cristy73bd4a52010-10-05 11:24:23 +000010096fi
10097
cristy23493c42013-04-11 16:04:59 +000010098test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10099
cristy73bd4a52010-10-05 11:24:23 +000010100
10101
10102
10103
10104# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10105if test x"$ax_pthread_ok" = xyes; then
10106
10107$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10108
10109 :
10110else
10111 ax_pthread_ok=no
10112
10113fi
10114ac_ext=c
10115ac_cpp='$CPP $CPPFLAGS'
10116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10118ac_compiler_gnu=$ac_cv_c_compiler_gnu
10119
10120
cristy7acf8fb2010-09-23 19:58:53 +000010121 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010122 have_threads=yes
10123 DEF_THREAD="$PTHREAD_CFLAGS"
10124 CFLAGS="$CFLAGS $DEF_THREAD"
10125 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010126 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010127 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010128 { $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 +000010129$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10130 CC="$PTHREAD_CC"
10131 fi
cristy55bf91c2010-09-24 00:29:41 +000010132
10133$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10134
cristy3ed852e2009-09-05 21:47:34 +000010135 fi
10136fi
cristy1ae5c992013-07-30 14:55:07 +000010137LIBS="$LIBS $THREAD_LIBS"
10138
cristy3ed852e2009-09-05 21:47:34 +000010139
10140# Enable support for OpenMP
10141if test "$have_threads" != 'yes'; then
10142 ac_cv_prog_c_openmp=unsupported
10143fi
10144
10145 OPENMP_CFLAGS=
10146 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010147if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010148 enableval=$enable_openmp;
10149fi
10150
10151 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010153$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010154if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010155 $as_echo_n "(cached) " >&6
10156else
cristy8b350f62009-11-15 23:12:43 +000010157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10158/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010159
10160#ifndef _OPENMP
10161 choke me
10162#endif
10163#include <omp.h>
10164int main () { return omp_get_num_threads (); }
10165
10166_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010167if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010168 ac_cv_prog_c_openmp='none needed'
10169else
cristy8b350f62009-11-15 23:12:43 +000010170 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010171 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10172 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010173 ac_save_CFLAGS=$CFLAGS
10174 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10176/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010177
10178#ifndef _OPENMP
10179 choke me
10180#endif
10181#include <omp.h>
10182int main () { return omp_get_num_threads (); }
10183
10184_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010185if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010186 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010187fi
cristy8b350f62009-11-15 23:12:43 +000010188rm -f core conftest.err conftest.$ac_objext \
10189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010190 CFLAGS=$ac_save_CFLAGS
10191 if test "$ac_cv_prog_c_openmp" != unsupported; then
10192 break
10193 fi
10194 done
10195fi
cristy8b350f62009-11-15 23:12:43 +000010196rm -f core conftest.err conftest.$ac_objext \
10197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010198fi
cristy8b350f62009-11-15 23:12:43 +000010199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010200$as_echo "$ac_cv_prog_c_openmp" >&6; }
10201 case $ac_cv_prog_c_openmp in #(
10202 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010203 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010204 *)
cristy8b350f62009-11-15 23:12:43 +000010205 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010206 esac
10207 fi
10208
10209
10210CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10211MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10212
cristy391f1ce2010-09-09 17:23:28 +000010213if test "$enable_openmp" != no; then
10214 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10215 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10216 fi
10217fi
cristy3ed852e2009-09-05 21:47:34 +000010218
cristy736173a2009-09-20 21:18:22 +000010219# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010220
10221
cristy73bd4a52010-10-05 11:24:23 +000010222ac_ext=c
10223ac_cpp='$CPP $CPPFLAGS'
10224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226ac_compiler_gnu=$ac_cv_c_compiler_gnu
10227
10228ax_pthread_ok=no
10229
10230# We used to check for pthread.h first, but this fails if pthread.h
10231# requires special compiler flags (e.g. on True64 or Sequent).
10232# It gets checked for in the link test anyway.
10233
10234# First of all, check if the user has set any of the PTHREAD_LIBS,
10235# etcetera environment variables, and if threads linking works using
10236# them:
10237if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10238 save_CFLAGS="$CFLAGS"
10239 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10240 save_LIBS="$LIBS"
10241 LIBS="$PTHREAD_LIBS $LIBS"
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10243$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10245/* end confdefs.h. */
10246
10247/* Override any GCC internal prototype to avoid an error.
10248 Use char because int might match the return type of a GCC
10249 builtin and then its argument prototype would still apply. */
10250#ifdef __cplusplus
10251extern "C"
10252#endif
10253char pthread_join ();
10254int
10255main ()
10256{
10257return pthread_join ();
10258 ;
10259 return 0;
10260}
10261_ACEOF
10262if ac_fn_c_try_link "$LINENO"; then :
10263 ax_pthread_ok=yes
10264fi
10265rm -f core conftest.err conftest.$ac_objext \
10266 conftest$ac_exeext conftest.$ac_ext
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10268$as_echo "$ax_pthread_ok" >&6; }
10269 if test x"$ax_pthread_ok" = xno; then
10270 PTHREAD_LIBS=""
10271 PTHREAD_CFLAGS=""
10272 fi
10273 LIBS="$save_LIBS"
10274 CFLAGS="$save_CFLAGS"
10275fi
10276
10277# We must check for the threads library under a number of different
10278# names; the ordering is very important because some systems
10279# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10280# libraries is broken (non-POSIX).
10281
10282# Create a list of thread flags to try. Items starting with a "-" are
10283# C compiler flags, and other items are library names, except for "none"
10284# which indicates that we try without any flags at all, and "pthread-config"
10285# which is a program returning the flags for the Pth emulation library.
10286
cristy2ec87cc2013-02-18 17:46:50 +000010287ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010288
10289# The ordering *is* (sometimes) important. Some notes on the
10290# individual items follow:
10291
10292# pthreads: AIX (must check this before -lpthread)
10293# none: in case threads are in libc; should be tried before -Kthread and
10294# other compiler flags to prevent continual compiler warnings
10295# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10296# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10297# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10298# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10299# -pthreads: Solaris/gcc
10300# -mthreads: Mingw32/gcc, Lynx/gcc
10301# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10302# doesn't hurt to check since this sometimes defines pthreads too;
10303# also defines -D_REENTRANT)
10304# ... -mt is also the pthreads flag for HP/aCC
10305# pthread: Linux, etcetera
10306# --thread-safe: KAI C++
10307# pthread-config: use pthread-config program (for GNU Pth library)
10308
cristy2ec87cc2013-02-18 17:46:50 +000010309case ${host_os} in
10310 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010311
10312 # On Solaris (at least, for some versions), libc contains stubbed
10313 # (non-functional) versions of the pthreads routines, so link-based
10314 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10315 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10316 # a function called by this macro, so we could check for that, but
10317 # who knows whether they'll stub that too in a future libc.) So,
10318 # we'll just look for -pthreads and -lpthread first:
10319
10320 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10321 ;;
10322
cristy2ec87cc2013-02-18 17:46:50 +000010323 darwin*)
cristya316db12011-10-24 00:49:45 +000010324 ax_pthread_flags="-pthread $ax_pthread_flags"
10325 ;;
cristy73bd4a52010-10-05 11:24:23 +000010326esac
10327
cristy17491be2014-06-24 01:10:53 +000010328# Clang doesn't consider unrecognized options an error unless we specify
10329# -Werror. We throw in some extra Clang-specific options to ensure that
10330# this doesn't happen for GCC, which also accepts -Werror.
10331
10332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10333$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10334save_CFLAGS="$CFLAGS"
10335ax_pthread_extra_flags="-Werror"
10336CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10338/* end confdefs.h. */
10339int foo(void);
10340int
10341main ()
10342{
10343foo()
10344 ;
10345 return 0;
10346}
10347_ACEOF
10348if ac_fn_c_try_compile "$LINENO"; then :
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10350$as_echo "yes" >&6; }
10351else
10352 ax_pthread_extra_flags=
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10354$as_echo "no" >&6; }
10355fi
10356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10357CFLAGS="$save_CFLAGS"
10358
cristy73bd4a52010-10-05 11:24:23 +000010359if test x"$ax_pthread_ok" = xno; then
10360for flag in $ax_pthread_flags; do
10361
10362 case $flag in
10363 none)
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10365$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10366 ;;
10367
10368 -*)
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10370$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10371 PTHREAD_CFLAGS="$flag"
10372 ;;
10373
cristya316db12011-10-24 00:49:45 +000010374 pthread-config)
10375 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010376set dummy pthread-config; ac_word=$2
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010379if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010380 $as_echo_n "(cached) " >&6
10381else
10382 if test -n "$ax_pthread_config"; then
10383 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388 IFS=$as_save_IFS
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010392 ac_cv_prog_ax_pthread_config="yes"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394 break 2
10395 fi
10396done
10397 done
10398IFS=$as_save_IFS
10399
10400 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10401fi
10402fi
10403ax_pthread_config=$ac_cv_prog_ax_pthread_config
10404if test -n "$ax_pthread_config"; then
10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10406$as_echo "$ax_pthread_config" >&6; }
10407else
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409$as_echo "no" >&6; }
10410fi
10411
10412
cristya316db12011-10-24 00:49:45 +000010413 if test x"$ax_pthread_config" = xno; then continue; fi
10414 PTHREAD_CFLAGS="`pthread-config --cflags`"
10415 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10416 ;;
cristy73bd4a52010-10-05 11:24:23 +000010417
10418 *)
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10420$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10421 PTHREAD_LIBS="-l$flag"
10422 ;;
10423 esac
10424
10425 save_LIBS="$LIBS"
10426 save_CFLAGS="$CFLAGS"
10427 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010428 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010429
10430 # Check for various functions. We must include pthread.h,
10431 # since some functions may be macros. (On the Sequent, we
10432 # need a special flag -Kthread to make this header compile.)
10433 # We check for pthread_join because it is in -lpthread on IRIX
10434 # while pthread_create is in libc. We check for pthread_attr_init
10435 # due to DEC craziness with -lpthreads. We check for
10436 # pthread_cleanup_push because it is one of the few pthread
10437 # functions on Solaris that doesn't have a non-functional libc stub.
10438 # We try pthread_create on general principles.
10439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10440/* end confdefs.h. */
10441#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010442 static void routine(void *a) { a = 0; }
10443 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010444int
10445main ()
10446{
10447pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010448 pthread_create(&th, 0, start_routine, 0);
10449 pthread_join(th, 0);
10450 pthread_attr_init(&attr);
10451 pthread_cleanup_push(routine, 0);
10452 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010453 ;
10454 return 0;
10455}
10456_ACEOF
10457if ac_fn_c_try_link "$LINENO"; then :
10458 ax_pthread_ok=yes
10459fi
10460rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462
10463 LIBS="$save_LIBS"
10464 CFLAGS="$save_CFLAGS"
10465
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10467$as_echo "$ax_pthread_ok" >&6; }
10468 if test "x$ax_pthread_ok" = xyes; then
10469 break;
10470 fi
10471
10472 PTHREAD_LIBS=""
10473 PTHREAD_CFLAGS=""
10474done
10475fi
10476
10477# Various other checks:
10478if test "x$ax_pthread_ok" = xyes; then
10479 save_LIBS="$LIBS"
10480 LIBS="$PTHREAD_LIBS $LIBS"
10481 save_CFLAGS="$CFLAGS"
10482 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10483
10484 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010486$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010487 attr_name=unknown
10488 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010490/* end confdefs.h. */
10491#include <pthread.h>
10492int
10493main ()
10494{
cristya316db12011-10-24 00:49:45 +000010495int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010496 ;
10497 return 0;
10498}
10499_ACEOF
10500if ac_fn_c_try_link "$LINENO"; then :
10501 attr_name=$attr; break
10502fi
10503rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010505 done
cristy73bd4a52010-10-05 11:24:23 +000010506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10507$as_echo "$attr_name" >&6; }
10508 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10509
10510cat >>confdefs.h <<_ACEOF
10511#define PTHREAD_CREATE_JOINABLE $attr_name
10512_ACEOF
10513
10514 fi
10515
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10517$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10518 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010519 case ${host_os} in
10520 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10521 osf* | hpux*) flag="-D_REENTRANT";;
10522 solaris*)
10523 if test "$GCC" = "yes"; then
10524 flag="-D_REENTRANT"
10525 else
cristy17491be2014-06-24 01:10:53 +000010526 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010527 flag="-mt -D_REENTRANT"
10528 fi
10529 ;;
cristy73bd4a52010-10-05 11:24:23 +000010530 esac
cristy17491be2014-06-24 01:10:53 +000010531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10532$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010533 if test "x$flag" != xno; then
10534 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10535 fi
10536
cristya316db12011-10-24 00:49:45 +000010537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10538$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10539if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541else
10542
10543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010545#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010546int
10547main ()
10548{
10549int i = PTHREAD_PRIO_INHERIT;
10550 ;
10551 return 0;
10552}
10553_ACEOF
10554if ac_fn_c_try_link "$LINENO"; then :
10555 ax_cv_PTHREAD_PRIO_INHERIT=yes
10556else
10557 ax_cv_PTHREAD_PRIO_INHERIT=no
10558fi
10559rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561
10562fi
10563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10564$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10565 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10566
10567$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10568
10569fi
10570
cristy73bd4a52010-10-05 11:24:23 +000010571 LIBS="$save_LIBS"
10572 CFLAGS="$save_CFLAGS"
10573
cristy23493c42013-04-11 16:04:59 +000010574 # More AIX lossage: compile with *_r variant
10575 if test "x$GCC" != xyes; then
10576 case $host_os in
10577 aix*)
10578 case "x/$CC" in #(
10579 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10580 #handle absolute path differently from PATH based program lookup
10581 case "x$CC" in #(
10582 x/*) :
10583 if as_fn_executable_p ${CC}_r; then :
10584 PTHREAD_CC="${CC}_r"
10585fi ;; #(
10586 *) :
10587 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010588do
10589 # Extract the first word of "$ac_prog", so it can be a program name with args.
10590set dummy $ac_prog; ac_word=$2
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010593if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010594 $as_echo_n "(cached) " >&6
10595else
10596 if test -n "$PTHREAD_CC"; then
10597 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10598else
10599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10600for as_dir in $PATH
10601do
10602 IFS=$as_save_IFS
10603 test -z "$as_dir" && as_dir=.
10604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010606 ac_cv_prog_PTHREAD_CC="$ac_prog"
10607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10608 break 2
10609 fi
10610done
10611 done
10612IFS=$as_save_IFS
10613
10614fi
10615fi
10616PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10617if test -n "$PTHREAD_CC"; then
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10619$as_echo "$PTHREAD_CC" >&6; }
10620else
10621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10622$as_echo "no" >&6; }
10623fi
10624
10625
10626 test -n "$PTHREAD_CC" && break
10627done
cristy23493c42013-04-11 16:04:59 +000010628test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10629 ;;
10630esac ;; #(
10631 *) :
10632 ;;
10633esac
10634 ;;
10635 esac
cristya316db12011-10-24 00:49:45 +000010636 fi
cristy73bd4a52010-10-05 11:24:23 +000010637fi
10638
cristy23493c42013-04-11 16:04:59 +000010639test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10640
cristy73bd4a52010-10-05 11:24:23 +000010641
10642
10643
10644
10645# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10646if test x"$ax_pthread_ok" = xyes; then
10647
10648$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10649
10650 :
10651else
10652 ax_pthread_ok=no
10653
10654fi
10655ac_ext=c
10656ac_cpp='$CPP $CPPFLAGS'
10657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10659ac_compiler_gnu=$ac_cv_c_compiler_gnu
10660
10661
10662
10663# Check whether --enable-opencl was given.
10664if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010665 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010666else
cristy48794642012-09-02 15:19:08 +000010667 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010668fi
10669
10670
cristy48794642012-09-02 15:19:08 +000010671if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010672 ac_ext=c
10673ac_cpp='$CPP $CPPFLAGS'
10674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10676ac_compiler_gnu=$ac_cv_c_compiler_gnu
10677
cristy75314cc2012-09-15 23:08:29 +000010678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10679$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10680if ${ax_cv_c_compiler_ms+:} false; then :
10681 $as_echo_n "(cached) " >&6
10682else
10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684/* end confdefs.h. */
10685
10686int
10687main ()
10688{
10689#ifndef _MSC_VER
10690 choke me
10691#endif
10692
10693 ;
10694 return 0;
10695}
10696_ACEOF
10697if ac_fn_c_try_compile "$LINENO"; then :
10698 ax_compiler_ms=yes
10699else
10700 ax_compiler_ms=no
10701fi
10702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10703ax_cv_c_compiler_ms=$ax_compiler_ms
10704
10705fi
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10707$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010708 if test X$ax_compiler_ms = Xno; then :
10709 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10710fi
10711
10712 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010713 ax_save_CL_CFLAGS=$CL_CFLAGS
10714
10715 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010716 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10717 for ac_header in CL/cl.h OpenCL/cl.h
10718do :
10719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10720ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010721if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010722 cat >>confdefs.h <<_ACEOF
10723#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10724_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010725 found_opencl_header='yes'
10726 break;
10727else
10728 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010729fi
10730
10731done
10732
cristyfdc7d122013-08-17 20:46:45 +000010733
10734 if test X$found_opencl_header = Xno; then :
10735 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10736 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10737 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10738 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10739 for ac_header in CL/cl.h OpenCL/cl.h
10740do :
10741 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10742ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10744 cat >>confdefs.h <<_ACEOF
10745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10746_ACEOF
10747 found_opencl_header='yes'
10748 break;
10749else
10750 found_opencl_header='no'
10751fi
10752
10753done
10754
10755
10756fi
10757
10758 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010759
10760 for ac_header in windows.h
10761do :
10762 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010763if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010764 cat >>confdefs.h <<_ACEOF
10765#define HAVE_WINDOWS_H 1
10766_ACEOF
10767
10768fi
10769
10770done
10771
10772
10773
10774
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10776$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010777if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010778 $as_echo_n "(cached) " >&6
10779else
10780 ax_cv_check_cl_libcl=no
10781 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010782 x86_64) ax_check_cl_libdir=lib64
10783 ax_check_cl_amd_libdir=x86_64
10784 ;;
10785 *) ax_check_cl_libdir=lib
10786 ax_check_cl_amd_libdir=x86
10787 ;;
cristy73bd4a52010-10-05 11:24:23 +000010788 esac
10789 ax_save_CPPFLAGS=$CPPFLAGS
10790 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10791 ax_save_LIBS=$LIBS
10792 LIBS=""
10793 ax_check_libs="-lOpenCL -lCL -lclparser"
10794 for ax_lib in $ax_check_libs; do
10795 if test X$ax_compiler_ms = Xyes; then :
10796 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10797else
10798 ax_try_lib=$ax_lib
10799fi
10800 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802/* end confdefs.h. */
10803
10804 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10805 # include <windows.h>
10806 # endif
10807 # ifdef HAVE_CL_CL_H
10808 # include <CL/cl.h>
10809 # elif defined(HAVE_OPENCL_CL_H)
10810 # include <OpenCL/cl.h>
10811 # else
10812 # error no CL.h
10813 # endif
10814int
10815main ()
10816{
10817clCreateContextFromType(0,0,0,0,0)
10818 ;
10819 return 0;
10820}
10821_ACEOF
10822if ac_fn_c_try_link "$LINENO"; then :
10823 ax_cv_check_cl_libcl=$ax_try_lib; break
10824else
10825 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"
10826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10827/* end confdefs.h. */
10828
10829 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10830 # include <windows.h>
10831 # endif
10832 # ifdef HAVE_CL_CL_H
10833 # include <CL/cl.h>
10834 # elif defined(HAVE_OPENCL_CL_H)
10835 # include <OpenCL/cl.h>
10836 # else
10837 # error no CL.h
10838 # endif
10839int
10840main ()
10841{
10842clCreateContextFromType(0,0,0,0,0)
10843 ;
10844 return 0;
10845}
10846_ACEOF
10847if ac_fn_c_try_link "$LINENO"; then :
10848 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10849else
cristy78c5a0c2010-12-04 20:00:59 +000010850 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 +000010851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10852/* end confdefs.h. */
10853
10854 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10855 # include <windows.h>
10856 # endif
10857 # ifdef HAVE_CL_CL_H
10858 # include <CL/cl.h>
10859 # elif defined(HAVE_OPENCL_CL_H)
10860 # include <OpenCL/cl.h>
10861 # else
10862 # error no CL.h
10863 # endif
10864int
10865main ()
10866{
10867clCreateContextFromType(0,0,0,0,0)
10868 ;
10869 return 0;
10870}
10871_ACEOF
10872if ac_fn_c_try_link "$LINENO"; then :
10873 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010874else
10875 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"
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877/* end confdefs.h. */
10878
10879 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10880 # include <windows.h>
10881 # endif
10882 # ifdef HAVE_CL_CL_H
10883 # include <CL/cl.h>
10884 # elif defined(HAVE_OPENCL_CL_H)
10885 # include <OpenCL/cl.h>
10886 # else
10887 # error no CL.h
10888 # endif
10889int
10890main ()
10891{
10892clCreateContextFromType(0,0,0,0,0)
10893 ;
10894 return 0;
10895}
10896_ACEOF
10897if ac_fn_c_try_link "$LINENO"; then :
10898 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
10899
10900fi
10901rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903
10904
cristy73bd4a52010-10-05 11:24:23 +000010905fi
10906rm -f core conftest.err conftest.$ac_objext \
10907 conftest$ac_exeext conftest.$ac_ext
10908fi
10909rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10911fi
10912rm -f core conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10914 done
10915
cristyc3f8b8e2011-12-22 14:55:16 +000010916 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010917 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919/* end confdefs.h. */
10920
10921 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10922 # include <windows.h>
10923 # endif
10924 # ifdef HAVE_CL_CL_H
10925 # include <CL/cl.h>
10926 # elif defined(HAVE_OPENCL_CL_H)
10927 # include <OpenCL/cl.h>
10928 # else
10929 # error no CL.h
10930 # endif
10931int
10932main ()
10933{
10934clCreateContextFromType(0,0,0,0,0)
10935 ;
10936 return 0;
10937}
10938_ACEOF
10939if ac_fn_c_try_link "$LINENO"; then :
10940 ax_cv_check_cl_libcl=$LIBS
10941fi
10942rm -f core conftest.err conftest.$ac_objext \
10943 conftest$ac_exeext conftest.$ac_ext
10944fi
10945
10946 LIBS=$ax_save_LIBS
10947 CPPFLAGS=$ax_save_CPPFLAGS
10948fi
10949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10950$as_echo "$ax_cv_check_cl_libcl" >&6; }
10951
10952 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10953 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10954else
10955 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10956$as_echo "#define _OPENCL 1" >>confdefs.h
10957
10958fi
10959 ac_ext=c
10960ac_cpp='$CPP $CPPFLAGS'
10961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10963ac_compiler_gnu=$ac_cv_c_compiler_gnu
10964
10965fi
10966
10967
10968
cristy0c832c62014-03-07 22:21:04 +000010969#remove static link on Linux
10970CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
10971
cristy73bd4a52010-10-05 11:24:23 +000010972
cristyc7083c12009-10-14 03:16:55 +000010973CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000010974CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000010975LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010976
cristy391f1ce2010-09-09 17:23:28 +000010977if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010978 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010979 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10980 fi
cristyfd9dcd42010-08-08 18:07:02 +000010981fi
cristy2e8b51d2009-10-17 18:26:15 +000010982
cristy3ed852e2009-09-05 21:47:34 +000010983########
10984#
10985# Check for large file support
10986#
10987########
10988# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010989if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010990 enableval=$enable_largefile;
10991fi
10992
10993if test "$enable_largefile" != no; then
10994
cristy8b350f62009-11-15 23:12:43 +000010995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010996$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010997if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010998 $as_echo_n "(cached) " >&6
10999else
11000 ac_cv_sys_largefile_CC=no
11001 if test "$GCC" != yes; then
11002 ac_save_CC=$CC
11003 while :; do
11004 # IRIX 6.2 and later do not support large files by default,
11005 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000011006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011007/* end confdefs.h. */
11008#include <sys/types.h>
11009 /* Check that off_t can represent 2**63 - 1 correctly.
11010 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11011 since some C++ compilers masquerading as C compilers
11012 incorrectly reject 9223372036854775807. */
11013#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11014 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11015 && LARGE_OFF_T % 2147483647 == 1)
11016 ? 1 : -1];
11017int
11018main ()
11019{
11020
11021 ;
11022 return 0;
11023}
11024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011025 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011026 break
cristy3ed852e2009-09-05 21:47:34 +000011027fi
cristy3ed852e2009-09-05 21:47:34 +000011028rm -f core conftest.err conftest.$ac_objext
11029 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011030 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011031 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011032fi
cristy3ed852e2009-09-05 21:47:34 +000011033rm -f core conftest.err conftest.$ac_objext
11034 break
11035 done
11036 CC=$ac_save_CC
11037 rm -f conftest.$ac_ext
11038 fi
11039fi
cristy8b350f62009-11-15 23:12:43 +000011040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011041$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11042 if test "$ac_cv_sys_largefile_CC" != no; then
11043 CC=$CC$ac_cv_sys_largefile_CC
11044 fi
11045
cristy8b350f62009-11-15 23:12:43 +000011046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011047$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011048if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011049 $as_echo_n "(cached) " >&6
11050else
11051 while :; do
cristy8b350f62009-11-15 23:12:43 +000011052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011053/* end confdefs.h. */
11054#include <sys/types.h>
11055 /* Check that off_t can represent 2**63 - 1 correctly.
11056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11057 since some C++ compilers masquerading as C compilers
11058 incorrectly reject 9223372036854775807. */
11059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11061 && LARGE_OFF_T % 2147483647 == 1)
11062 ? 1 : -1];
11063int
11064main ()
11065{
11066
11067 ;
11068 return 0;
11069}
11070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011071if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011072 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011073fi
cristy3ed852e2009-09-05 21:47:34 +000011074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011076/* end confdefs.h. */
11077#define _FILE_OFFSET_BITS 64
11078#include <sys/types.h>
11079 /* Check that off_t can represent 2**63 - 1 correctly.
11080 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11081 since some C++ compilers masquerading as C compilers
11082 incorrectly reject 9223372036854775807. */
11083#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11084 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11085 && LARGE_OFF_T % 2147483647 == 1)
11086 ? 1 : -1];
11087int
11088main ()
11089{
11090
11091 ;
11092 return 0;
11093}
11094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011095if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011096 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011097fi
cristy3ed852e2009-09-05 21:47:34 +000011098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11099 ac_cv_sys_file_offset_bits=unknown
11100 break
11101done
11102fi
cristy8b350f62009-11-15 23:12:43 +000011103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011104$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11105case $ac_cv_sys_file_offset_bits in #(
11106 no | unknown) ;;
11107 *)
11108cat >>confdefs.h <<_ACEOF
11109#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11110_ACEOF
11111;;
11112esac
11113rm -rf conftest*
11114 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011116$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011117if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011118 $as_echo_n "(cached) " >&6
11119else
11120 while :; do
cristy8b350f62009-11-15 23:12:43 +000011121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011122/* end confdefs.h. */
11123#include <sys/types.h>
11124 /* Check that off_t can represent 2**63 - 1 correctly.
11125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11126 since some C++ compilers masquerading as C compilers
11127 incorrectly reject 9223372036854775807. */
11128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11130 && LARGE_OFF_T % 2147483647 == 1)
11131 ? 1 : -1];
11132int
11133main ()
11134{
11135
11136 ;
11137 return 0;
11138}
11139_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011140if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011141 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011142fi
cristy3ed852e2009-09-05 21:47:34 +000011143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011145/* end confdefs.h. */
11146#define _LARGE_FILES 1
11147#include <sys/types.h>
11148 /* Check that off_t can represent 2**63 - 1 correctly.
11149 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11150 since some C++ compilers masquerading as C compilers
11151 incorrectly reject 9223372036854775807. */
11152#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11153 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11154 && LARGE_OFF_T % 2147483647 == 1)
11155 ? 1 : -1];
11156int
11157main ()
11158{
11159
11160 ;
11161 return 0;
11162}
11163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011164if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011165 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011166fi
cristy3ed852e2009-09-05 21:47:34 +000011167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11168 ac_cv_sys_large_files=unknown
11169 break
11170done
11171fi
cristy8b350f62009-11-15 23:12:43 +000011172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011173$as_echo "$ac_cv_sys_large_files" >&6; }
11174case $ac_cv_sys_large_files in #(
11175 no | unknown) ;;
11176 *)
11177cat >>confdefs.h <<_ACEOF
11178#define _LARGE_FILES $ac_cv_sys_large_files
11179_ACEOF
11180;;
11181esac
11182rm -rf conftest*
11183 fi
cristy14fefe52012-05-21 00:59:18 +000011184
11185
cristy3ed852e2009-09-05 21:47:34 +000011186fi
11187
cristy8b350f62009-11-15 23:12:43 +000011188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011189$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011190if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011191 $as_echo_n "(cached) " >&6
11192else
11193 while :; do
cristy8b350f62009-11-15 23:12:43 +000011194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011195/* end confdefs.h. */
11196#include <sys/types.h> /* for off_t */
11197 #include <stdio.h>
11198int
11199main ()
11200{
11201int (*fp) (FILE *, off_t, int) = fseeko;
11202 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11203 ;
11204 return 0;
11205}
11206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011207if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011208 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011209fi
cristy8b350f62009-11-15 23:12:43 +000011210rm -f core conftest.err conftest.$ac_objext \
11211 conftest$ac_exeext conftest.$ac_ext
11212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011213/* end confdefs.h. */
11214#define _LARGEFILE_SOURCE 1
11215#include <sys/types.h> /* for off_t */
11216 #include <stdio.h>
11217int
11218main ()
11219{
11220int (*fp) (FILE *, off_t, int) = fseeko;
11221 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11222 ;
11223 return 0;
11224}
11225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011227 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011228fi
cristy8b350f62009-11-15 23:12:43 +000011229rm -f core conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011231 ac_cv_sys_largefile_source=unknown
11232 break
11233done
11234fi
cristy8b350f62009-11-15 23:12:43 +000011235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011236$as_echo "$ac_cv_sys_largefile_source" >&6; }
11237case $ac_cv_sys_largefile_source in #(
11238 no | unknown) ;;
11239 *)
11240cat >>confdefs.h <<_ACEOF
11241#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11242_ACEOF
11243;;
11244esac
11245rm -rf conftest*
11246
11247# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11248# in glibc 2.1.3, but that breaks too many other things.
11249# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11250if test $ac_cv_sys_largefile_source != unknown; then
11251
cristy8b350f62009-11-15 23:12:43 +000011252$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011253
11254fi
11255
11256LFS_CPPFLAGS=''
11257if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011258 case $ac_cv_sys_file_offset_bits in
11259 no)
11260 # nothing to do here as the host supports LFS fine
11261 ;;
11262 unknown)
cristy8b350f62009-11-15 23:12:43 +000011263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011264$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011265 if test "$cross_compiling" = yes; then :
11266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011267$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011268as_fn_error $? "cannot run test program while cross compiling
11269See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011270else
cristy8b350f62009-11-15 23:12:43 +000011271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011273#include <unistd.h>
11274 main () {
11275 exit(!(sizeof(off_t) == 8));
11276 }
cristyda16f162011-02-19 23:52:17 +000011277int
11278main ()
11279{
11280
11281 ;
11282 return 0;
11283}
cristy3ed852e2009-09-05 21:47:34 +000011284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011285if ac_fn_c_try_run "$LINENO"; then :
11286 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011287
cristyad38abe2012-12-23 23:03:21 +000011288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11289$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011290else
cristyad38abe2012-12-23 23:03:21 +000011291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011293fi
cristy8b350f62009-11-15 23:12:43 +000011294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11295 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011296fi
11297
cristyc1e0cc12011-09-21 16:41:16 +000011298 ;;
11299 *)
11300 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11301 ;;
11302 esac
cristy3ed852e2009-09-05 21:47:34 +000011303 if test "$ac_cv_sys_large_files" != 'no'; then
11304 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11305 fi
11306 if test "$ac_cv_sys_largefile_source" != 'no'; then
11307 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11308 fi
11309fi
11310
11311
cristy3ed852e2009-09-05 21:47:34 +000011312# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011313enable_dlopen=yes
11314
11315
11316
11317case `pwd` in
11318 *\ * | *\ *)
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11320$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11321esac
11322
11323
11324
Cristy15f22012015-11-14 17:51:30 -050011325macro_version='2.4.6'
11326macro_revision='2.4.6'
cristy73bd4a52010-10-05 11:24:23 +000011327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
Cristy15f22012015-11-14 17:51:30 -050011340ltmain=$ac_aux_dir/ltmain.sh
cristy73bd4a52010-10-05 11:24:23 +000011341
cristy0c60a692010-11-04 01:09:47 +000011342# Backslashify metacharacters that are still active within
11343# double-quoted strings.
11344sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11345
11346# Same as above, but do not quote variable references.
11347double_quote_subst='s/\(["`\\]\)/\\\1/g'
11348
11349# Sed substitution to delay expansion of an escaped shell variable in a
11350# double_quote_subst'ed string.
11351delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11352
11353# Sed substitution to delay expansion of an escaped single quote.
11354delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11355
11356# Sed substitution to avoid accidental globbing in evaled expressions
11357no_glob_subst='s/\*/\\\*/g'
11358
cristy73bd4a52010-10-05 11:24:23 +000011359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11360$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011361if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011362 $as_echo_n "(cached) " >&6
11363else
11364 if test -n "$NM"; then
11365 # Let the user override the test.
Cristy15f22012015-11-14 17:51:30 -050011366 lt_cv_path_NM=$NM
cristy73bd4a52010-10-05 11:24:23 +000011367else
Cristy15f22012015-11-14 17:51:30 -050011368 lt_nm_to_check=${ac_tool_prefix}nm
cristy73bd4a52010-10-05 11:24:23 +000011369 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11370 lt_nm_to_check="$lt_nm_to_check nm"
11371 fi
11372 for lt_tmp_nm in $lt_nm_to_check; do
Cristy15f22012015-11-14 17:51:30 -050011373 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000011374 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Cristy15f22012015-11-14 17:51:30 -050011375 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000011376 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050011377 tmp_nm=$ac_dir/$lt_tmp_nm
11378 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
cristy73bd4a52010-10-05 11:24:23 +000011379 # Check to see if the nm accepts a BSD-compat flag.
Cristy15f22012015-11-14 17:51:30 -050011380 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
cristy73bd4a52010-10-05 11:24:23 +000011381 # nm: unknown option "B" ignored
11382 # Tru64's nm complains that /dev/null is an invalid object file
Cristy15f22012015-11-14 17:51:30 -050011383 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11384 case $build_os in
11385 mingw*) lt_bad_file=conftest.nm/nofile ;;
11386 *) lt_bad_file=/dev/null ;;
11387 esac
11388 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11389 *$lt_bad_file* | *'Invalid file or object type'*)
cristy73bd4a52010-10-05 11:24:23 +000011390 lt_cv_path_NM="$tmp_nm -B"
Cristy15f22012015-11-14 17:51:30 -050011391 break 2
cristy73bd4a52010-10-05 11:24:23 +000011392 ;;
11393 *)
11394 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11395 */dev/null*)
11396 lt_cv_path_NM="$tmp_nm -p"
Cristy15f22012015-11-14 17:51:30 -050011397 break 2
cristy73bd4a52010-10-05 11:24:23 +000011398 ;;
11399 *)
11400 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11401 continue # so that we can try to find one that supports BSD flags
11402 ;;
11403 esac
11404 ;;
11405 esac
11406 fi
11407 done
Cristy15f22012015-11-14 17:51:30 -050011408 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000011409 done
11410 : ${lt_cv_path_NM=no}
11411fi
11412fi
11413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11414$as_echo "$lt_cv_path_NM" >&6; }
Cristy15f22012015-11-14 17:51:30 -050011415if test no != "$lt_cv_path_NM"; then
11416 NM=$lt_cv_path_NM
cristy73bd4a52010-10-05 11:24:23 +000011417else
11418 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011419 if test -n "$DUMPBIN"; then :
11420 # Let the user override the test.
11421 else
11422 if test -n "$ac_tool_prefix"; then
11423 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011424 do
11425 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11426set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011429if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011430 $as_echo_n "(cached) " >&6
11431else
11432 if test -n "$DUMPBIN"; then
11433 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11434else
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
11440 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011442 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444 break 2
11445 fi
11446done
11447 done
11448IFS=$as_save_IFS
11449
11450fi
11451fi
11452DUMPBIN=$ac_cv_prog_DUMPBIN
11453if test -n "$DUMPBIN"; then
11454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11455$as_echo "$DUMPBIN" >&6; }
11456else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
11460
11461
11462 test -n "$DUMPBIN" && break
11463 done
11464fi
11465if test -z "$DUMPBIN"; then
11466 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011467 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011468do
11469 # Extract the first word of "$ac_prog", so it can be a program name with args.
11470set dummy $ac_prog; ac_word=$2
11471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011473if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011474 $as_echo_n "(cached) " >&6
11475else
11476 if test -n "$ac_ct_DUMPBIN"; then
11477 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11478else
11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011486 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11489 fi
11490done
11491 done
11492IFS=$as_save_IFS
11493
11494fi
11495fi
11496ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11497if test -n "$ac_ct_DUMPBIN"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11499$as_echo "$ac_ct_DUMPBIN" >&6; }
11500else
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502$as_echo "no" >&6; }
11503fi
11504
11505
11506 test -n "$ac_ct_DUMPBIN" && break
11507done
11508
11509 if test "x$ac_ct_DUMPBIN" = x; then
11510 DUMPBIN=":"
11511 else
11512 case $cross_compiling:$ac_tool_warned in
11513yes:)
11514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11516ac_tool_warned=yes ;;
11517esac
11518 DUMPBIN=$ac_ct_DUMPBIN
11519 fi
11520fi
11521
Cristy15f22012015-11-14 17:51:30 -050011522 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
cristy0c60a692010-11-04 01:09:47 +000011523 *COFF*)
Cristy15f22012015-11-14 17:51:30 -050011524 DUMPBIN="$DUMPBIN -symbols -headers"
cristy0c60a692010-11-04 01:09:47 +000011525 ;;
11526 *)
11527 DUMPBIN=:
11528 ;;
11529 esac
11530 fi
cristy73bd4a52010-10-05 11:24:23 +000011531
Cristy15f22012015-11-14 17:51:30 -050011532 if test : != "$DUMPBIN"; then
11533 NM=$DUMPBIN
cristy73bd4a52010-10-05 11:24:23 +000011534 fi
11535fi
11536test -z "$NM" && NM=nm
11537
11538
11539
11540
11541
11542
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11544$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011545if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011546 $as_echo_n "(cached) " >&6
11547else
11548 lt_cv_nm_interface="BSD nm"
11549 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011550 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011551 (eval "$ac_compile" 2>conftest.err)
11552 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011553 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011554 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11555 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011556 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011557 cat conftest.out >&5
11558 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11559 lt_cv_nm_interface="MS dumpbin"
11560 fi
11561 rm -f conftest*
11562fi
11563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11564$as_echo "$lt_cv_nm_interface" >&6; }
11565
11566# find the maximum length of command line arguments
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11568$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011569if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011570 $as_echo_n "(cached) " >&6
11571else
11572 i=0
Cristy15f22012015-11-14 17:51:30 -050011573 teststring=ABCD
cristy73bd4a52010-10-05 11:24:23 +000011574
11575 case $build_os in
11576 msdosdjgpp*)
11577 # On DJGPP, this test can blow up pretty badly due to problems in libc
11578 # (any single argument exceeding 2000 bytes causes a buffer overrun
11579 # during glob expansion). Even if it were fixed, the result of this
11580 # check would be larger than it should be.
11581 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11582 ;;
11583
11584 gnu*)
11585 # Under GNU Hurd, this test is not required because there is
11586 # no limit to the length of command line arguments.
11587 # Libtool will interpret -1 as no limit whatsoever
11588 lt_cv_sys_max_cmd_len=-1;
11589 ;;
11590
11591 cygwin* | mingw* | cegcc*)
11592 # On Win9x/ME, this test blows up -- it succeeds, but takes
11593 # about 5 minutes as the teststring grows exponentially.
11594 # Worse, since 9x/ME are not pre-emptively multitasking,
11595 # you end up with a "frozen" computer, even though with patience
11596 # the test eventually succeeds (with a max line length of 256k).
11597 # Instead, let's just punt: use the minimum linelength reported by
11598 # all of the supported platforms: 8192 (on NT/2K/XP).
11599 lt_cv_sys_max_cmd_len=8192;
11600 ;;
11601
cristy0c60a692010-11-04 01:09:47 +000011602 mint*)
11603 # On MiNT this can take a long time and run out of memory.
11604 lt_cv_sys_max_cmd_len=8192;
11605 ;;
11606
cristy73bd4a52010-10-05 11:24:23 +000011607 amigaos*)
11608 # On AmigaOS with pdksh, this test takes hours, literally.
11609 # So we just punt and use a minimum line length of 8192.
11610 lt_cv_sys_max_cmd_len=8192;
11611 ;;
11612
Cristy15f22012015-11-14 17:51:30 -050011613 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
cristy73bd4a52010-10-05 11:24:23 +000011614 # This has been around since 386BSD, at least. Likely further.
11615 if test -x /sbin/sysctl; then
11616 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11617 elif test -x /usr/sbin/sysctl; then
11618 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11619 else
11620 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11621 fi
11622 # And add a safety zone
11623 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11624 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11625 ;;
11626
11627 interix*)
11628 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11629 lt_cv_sys_max_cmd_len=196608
11630 ;;
11631
cristy99bd5232011-12-07 14:38:20 +000011632 os2*)
11633 # The test takes a long time on OS/2.
11634 lt_cv_sys_max_cmd_len=8192
11635 ;;
11636
cristy73bd4a52010-10-05 11:24:23 +000011637 osf*)
11638 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11639 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11640 # nice to cause kernel panics so lets avoid the loop below.
11641 # First set a reasonable default.
11642 lt_cv_sys_max_cmd_len=16384
11643 #
11644 if test -x /sbin/sysconfig; then
11645 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11646 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11647 esac
11648 fi
11649 ;;
11650 sco3.2v5*)
11651 lt_cv_sys_max_cmd_len=102400
11652 ;;
11653 sysv5* | sco5v6* | sysv4.2uw2*)
11654 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11655 if test -n "$kargmax"; then
11656 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11657 else
11658 lt_cv_sys_max_cmd_len=32768
11659 fi
11660 ;;
11661 *)
11662 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Cristy15f22012015-11-14 17:51:30 -050011663 if test -n "$lt_cv_sys_max_cmd_len" && \
11664 test undefined != "$lt_cv_sys_max_cmd_len"; then
cristy73bd4a52010-10-05 11:24:23 +000011665 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11667 else
11668 # Make teststring a little bigger before we do anything with it.
11669 # a 1K string should be a reasonable start.
Cristy15f22012015-11-14 17:51:30 -050011670 for i in 1 2 3 4 5 6 7 8; do
cristy73bd4a52010-10-05 11:24:23 +000011671 teststring=$teststring$teststring
11672 done
11673 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11674 # If test is not a shell built-in, we'll probably end up computing a
11675 # maximum length that is only half of the actual maximum length, but
11676 # we can't tell.
Cristy15f22012015-11-14 17:51:30 -050011677 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011678 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Cristy15f22012015-11-14 17:51:30 -050011679 test 17 != "$i" # 1/2 MB should be enough
cristy73bd4a52010-10-05 11:24:23 +000011680 do
11681 i=`expr $i + 1`
11682 teststring=$teststring$teststring
11683 done
11684 # Only check the string length outside the loop.
11685 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11686 teststring=
11687 # Add a significant safety factor because C++ compilers can tack on
11688 # massive amounts of additional arguments before passing them to the
11689 # linker. It appears as though 1/2 is a usable value.
11690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11691 fi
11692 ;;
11693 esac
11694
11695fi
11696
Cristy15f22012015-11-14 17:51:30 -050011697if test -n "$lt_cv_sys_max_cmd_len"; then
cristy73bd4a52010-10-05 11:24:23 +000011698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11699$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11700else
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11702$as_echo "none" >&6; }
11703fi
11704max_cmd_len=$lt_cv_sys_max_cmd_len
11705
11706
11707
11708
11709
11710
11711: ${CP="cp -f"}
11712: ${MV="mv -f"}
11713: ${RM="rm -f"}
11714
cristy73bd4a52010-10-05 11:24:23 +000011715if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11716 lt_unset=unset
11717else
11718 lt_unset=false
11719fi
11720
11721
11722
11723
11724
11725# test EBCDIC or ASCII
11726case `echo X|tr X '\101'` in
11727 A) # ASCII based system
11728 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11729 lt_SP2NL='tr \040 \012'
11730 lt_NL2SP='tr \015\012 \040\040'
11731 ;;
11732 *) # EBCDIC based system
11733 lt_SP2NL='tr \100 \n'
11734 lt_NL2SP='tr \r\n \100\100'
11735 ;;
11736esac
11737
11738
11739
11740
11741
11742
11743
11744
11745
cristyda16f162011-02-19 23:52:17 +000011746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11747$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11748if ${lt_cv_to_host_file_cmd+:} false; then :
11749 $as_echo_n "(cached) " >&6
11750else
11751 case $host in
11752 *-*-mingw* )
11753 case $build in
11754 *-*-mingw* ) # actually msys
11755 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11756 ;;
11757 *-*-cygwin* )
11758 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11759 ;;
11760 * ) # otherwise, assume *nix
11761 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11762 ;;
11763 esac
11764 ;;
11765 *-*-cygwin* )
11766 case $build in
11767 *-*-mingw* ) # actually msys
11768 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11769 ;;
11770 *-*-cygwin* )
11771 lt_cv_to_host_file_cmd=func_convert_file_noop
11772 ;;
11773 * ) # otherwise, assume *nix
11774 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11775 ;;
11776 esac
11777 ;;
11778 * ) # unhandled hosts (and "normal" native builds)
11779 lt_cv_to_host_file_cmd=func_convert_file_noop
11780 ;;
11781esac
11782
11783fi
11784
11785to_host_file_cmd=$lt_cv_to_host_file_cmd
11786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11787$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11788
11789
11790
11791
11792
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11794$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11795if ${lt_cv_to_tool_file_cmd+:} false; then :
11796 $as_echo_n "(cached) " >&6
11797else
11798 #assume ordinary cross tools, or native build.
11799lt_cv_to_tool_file_cmd=func_convert_file_noop
11800case $host in
11801 *-*-mingw* )
11802 case $build in
11803 *-*-mingw* ) # actually msys
11804 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11805 ;;
11806 esac
11807 ;;
11808esac
11809
11810fi
11811
11812to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11814$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11815
11816
11817
11818
11819
cristy73bd4a52010-10-05 11:24:23 +000011820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11821$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011822if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011823 $as_echo_n "(cached) " >&6
11824else
11825 lt_cv_ld_reload_flag='-r'
11826fi
11827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11828$as_echo "$lt_cv_ld_reload_flag" >&6; }
11829reload_flag=$lt_cv_ld_reload_flag
11830case $reload_flag in
11831"" | " "*) ;;
11832*) reload_flag=" $reload_flag" ;;
11833esac
11834reload_cmds='$LD$reload_flag -o $output$reload_objs'
11835case $host_os in
cristyda16f162011-02-19 23:52:17 +000011836 cygwin* | mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050011837 if test yes != "$GCC"; then
cristyda16f162011-02-19 23:52:17 +000011838 reload_cmds=false
11839 fi
11840 ;;
cristy73bd4a52010-10-05 11:24:23 +000011841 darwin*)
Cristy15f22012015-11-14 17:51:30 -050011842 if test yes = "$GCC"; then
11843 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
cristy73bd4a52010-10-05 11:24:23 +000011844 else
11845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11846 fi
11847 ;;
11848esac
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858if test -n "$ac_tool_prefix"; then
11859 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11860set dummy ${ac_tool_prefix}objdump; ac_word=$2
11861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11862$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011863if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011864 $as_echo_n "(cached) " >&6
11865else
11866 if test -n "$OBJDUMP"; then
11867 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11868else
11869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11870for as_dir in $PATH
11871do
11872 IFS=$as_save_IFS
11873 test -z "$as_dir" && as_dir=.
11874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011876 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11878 break 2
11879 fi
11880done
11881 done
11882IFS=$as_save_IFS
11883
11884fi
11885fi
11886OBJDUMP=$ac_cv_prog_OBJDUMP
11887if test -n "$OBJDUMP"; then
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11889$as_echo "$OBJDUMP" >&6; }
11890else
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892$as_echo "no" >&6; }
11893fi
11894
11895
11896fi
11897if test -z "$ac_cv_prog_OBJDUMP"; then
11898 ac_ct_OBJDUMP=$OBJDUMP
11899 # Extract the first word of "objdump", so it can be a program name with args.
11900set dummy objdump; ac_word=$2
11901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011903if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011904 $as_echo_n "(cached) " >&6
11905else
11906 if test -n "$ac_ct_OBJDUMP"; then
11907 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11908else
11909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910for as_dir in $PATH
11911do
11912 IFS=$as_save_IFS
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011916 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11918 break 2
11919 fi
11920done
11921 done
11922IFS=$as_save_IFS
11923
11924fi
11925fi
11926ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11927if test -n "$ac_ct_OBJDUMP"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11929$as_echo "$ac_ct_OBJDUMP" >&6; }
11930else
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932$as_echo "no" >&6; }
11933fi
11934
11935 if test "x$ac_ct_OBJDUMP" = x; then
11936 OBJDUMP="false"
11937 else
11938 case $cross_compiling:$ac_tool_warned in
11939yes:)
11940{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11941$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942ac_tool_warned=yes ;;
11943esac
11944 OBJDUMP=$ac_ct_OBJDUMP
11945 fi
11946else
11947 OBJDUMP="$ac_cv_prog_OBJDUMP"
11948fi
11949
11950test -z "$OBJDUMP" && OBJDUMP=objdump
11951
11952
11953
11954
11955
11956
11957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11958$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011959if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011960 $as_echo_n "(cached) " >&6
11961else
11962 lt_cv_file_magic_cmd='$MAGIC_CMD'
11963lt_cv_file_magic_test_file=
11964lt_cv_deplibs_check_method='unknown'
11965# Need to set the preceding variable on all platforms that support
11966# interlibrary dependencies.
11967# 'none' -- dependencies not supported.
Cristy15f22012015-11-14 17:51:30 -050011968# 'unknown' -- same as none, but documents that we really don't know.
cristy73bd4a52010-10-05 11:24:23 +000011969# 'pass_all' -- all dependencies passed with no checks.
11970# 'test_compile' -- check by making test program.
11971# 'file_magic [[regex]]' -- check by looking for files in library path
Cristy15f22012015-11-14 17:51:30 -050011972# that responds to the $file_magic_cmd with a given extended regex.
11973# If you have 'file' or equivalent on your system and you're not sure
11974# whether 'pass_all' will *always* work, you probably want this one.
cristy73bd4a52010-10-05 11:24:23 +000011975
11976case $host_os in
11977aix[4-9]*)
11978 lt_cv_deplibs_check_method=pass_all
11979 ;;
11980
11981beos*)
11982 lt_cv_deplibs_check_method=pass_all
11983 ;;
11984
11985bsdi[45]*)
11986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11987 lt_cv_file_magic_cmd='/usr/bin/file -L'
11988 lt_cv_file_magic_test_file=/shlib/libc.so
11989 ;;
11990
11991cygwin*)
11992 # func_win32_libid is a shell function defined in ltmain.sh
11993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11994 lt_cv_file_magic_cmd='func_win32_libid'
11995 ;;
11996
11997mingw* | pw32*)
11998 # Base MSYS/MinGW do not provide the 'file' command needed by
11999 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12000 # unless we find 'file', for example because we are cross-compiling.
Cristy15f22012015-11-14 17:51:30 -050012001 if ( file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12003 lt_cv_file_magic_cmd='func_win32_libid'
12004 else
cristy0c60a692010-11-04 01:09:47 +000012005 # Keep this pattern in sync with the one in func_win32_libid.
12006 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 +000012007 lt_cv_file_magic_cmd='$OBJDUMP -f'
12008 fi
12009 ;;
12010
cristy0c60a692010-11-04 01:09:47 +000012011cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012012 # use the weaker test based on 'objdump'. See mingw*.
12013 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12014 lt_cv_file_magic_cmd='$OBJDUMP -f'
12015 ;;
12016
12017darwin* | rhapsody*)
12018 lt_cv_deplibs_check_method=pass_all
12019 ;;
12020
12021freebsd* | dragonfly*)
12022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12023 case $host_cpu in
12024 i*86 )
12025 # Not sure whether the presence of OpenBSD here was a mistake.
12026 # Let's accept both of them until this is cleared up.
12027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12028 lt_cv_file_magic_cmd=/usr/bin/file
12029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12030 ;;
12031 esac
12032 else
12033 lt_cv_deplibs_check_method=pass_all
12034 fi
12035 ;;
12036
cristy0c60a692010-11-04 01:09:47 +000012037haiku*)
12038 lt_cv_deplibs_check_method=pass_all
12039 ;;
12040
cristy73bd4a52010-10-05 11:24:23 +000012041hpux10.20* | hpux11*)
12042 lt_cv_file_magic_cmd=/usr/bin/file
12043 case $host_cpu in
12044 ia64*)
12045 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12046 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12047 ;;
12048 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012049 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 +000012050 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12051 ;;
12052 *)
cristy0c60a692010-11-04 01:09:47 +000012053 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 +000012054 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12055 ;;
12056 esac
12057 ;;
12058
12059interix[3-9]*)
12060 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12062 ;;
12063
12064irix5* | irix6* | nonstopux*)
12065 case $LD in
12066 *-32|*"-32 ") libmagic=32-bit;;
12067 *-n32|*"-n32 ") libmagic=N32;;
12068 *-64|*"-64 ") libmagic=64-bit;;
12069 *) libmagic=never-match;;
12070 esac
12071 lt_cv_deplibs_check_method=pass_all
12072 ;;
12073
cristy99bd5232011-12-07 14:38:20 +000012074# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050012075linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000012076 lt_cv_deplibs_check_method=pass_all
12077 ;;
12078
12079netbsd*)
12080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12082 else
12083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12084 fi
12085 ;;
12086
12087newos6*)
12088 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12089 lt_cv_file_magic_cmd=/usr/bin/file
12090 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12091 ;;
12092
12093*nto* | *qnx*)
12094 lt_cv_deplibs_check_method=pass_all
12095 ;;
12096
Cristy15f22012015-11-14 17:51:30 -050012097openbsd* | bitrig*)
12098 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cristy73bd4a52010-10-05 11:24:23 +000012099 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12100 else
12101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12102 fi
12103 ;;
12104
12105osf3* | osf4* | osf5*)
12106 lt_cv_deplibs_check_method=pass_all
12107 ;;
12108
12109rdos*)
12110 lt_cv_deplibs_check_method=pass_all
12111 ;;
12112
12113solaris*)
12114 lt_cv_deplibs_check_method=pass_all
12115 ;;
12116
12117sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12118 lt_cv_deplibs_check_method=pass_all
12119 ;;
12120
12121sysv4 | sysv4.3*)
12122 case $host_vendor in
12123 motorola)
12124 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]'
12125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12126 ;;
12127 ncr)
12128 lt_cv_deplibs_check_method=pass_all
12129 ;;
12130 sequent)
12131 lt_cv_file_magic_cmd='/bin/file'
12132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12133 ;;
12134 sni)
12135 lt_cv_file_magic_cmd='/bin/file'
12136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12137 lt_cv_file_magic_test_file=/lib/libc.so
12138 ;;
12139 siemens)
12140 lt_cv_deplibs_check_method=pass_all
12141 ;;
12142 pc)
12143 lt_cv_deplibs_check_method=pass_all
12144 ;;
12145 esac
12146 ;;
12147
12148tpf*)
12149 lt_cv_deplibs_check_method=pass_all
12150 ;;
Cristy15f22012015-11-14 17:51:30 -050012151os2*)
12152 lt_cv_deplibs_check_method=pass_all
12153 ;;
cristy73bd4a52010-10-05 11:24:23 +000012154esac
12155
12156fi
12157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12158$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012159
12160file_magic_glob=
12161want_nocaseglob=no
12162if test "$build" = "$host"; then
12163 case $host_os in
12164 mingw* | pw32*)
12165 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12166 want_nocaseglob=yes
12167 else
12168 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12169 fi
12170 ;;
12171 esac
12172fi
12173
cristy73bd4a52010-10-05 11:24:23 +000012174file_magic_cmd=$lt_cv_file_magic_cmd
12175deplibs_check_method=$lt_cv_deplibs_check_method
12176test -z "$deplibs_check_method" && deplibs_check_method=unknown
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
cristyda16f162011-02-19 23:52:17 +000012189
12190
12191
12192
12193
12194
12195
12196
12197
12198
cristy73bd4a52010-10-05 11:24:23 +000012199if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012200 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12201set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012204if ${ac_cv_prog_DLLTOOL+:} false; then :
12205 $as_echo_n "(cached) " >&6
12206else
12207 if test -n "$DLLTOOL"; then
12208 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12209else
12210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12211for as_dir in $PATH
12212do
12213 IFS=$as_save_IFS
12214 test -z "$as_dir" && as_dir=.
12215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012217 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12219 break 2
12220 fi
12221done
12222 done
12223IFS=$as_save_IFS
12224
12225fi
12226fi
12227DLLTOOL=$ac_cv_prog_DLLTOOL
12228if test -n "$DLLTOOL"; then
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12230$as_echo "$DLLTOOL" >&6; }
12231else
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233$as_echo "no" >&6; }
12234fi
12235
12236
12237fi
12238if test -z "$ac_cv_prog_DLLTOOL"; then
12239 ac_ct_DLLTOOL=$DLLTOOL
12240 # Extract the first word of "dlltool", so it can be a program name with args.
12241set dummy dlltool; ac_word=$2
12242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12243$as_echo_n "checking for $ac_word... " >&6; }
12244if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12245 $as_echo_n "(cached) " >&6
12246else
12247 if test -n "$ac_ct_DLLTOOL"; then
12248 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12249else
12250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12251for as_dir in $PATH
12252do
12253 IFS=$as_save_IFS
12254 test -z "$as_dir" && as_dir=.
12255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012257 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 break 2
12260 fi
12261done
12262 done
12263IFS=$as_save_IFS
12264
12265fi
12266fi
12267ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12268if test -n "$ac_ct_DLLTOOL"; then
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12270$as_echo "$ac_ct_DLLTOOL" >&6; }
12271else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12273$as_echo "no" >&6; }
12274fi
12275
12276 if test "x$ac_ct_DLLTOOL" = x; then
12277 DLLTOOL="false"
12278 else
12279 case $cross_compiling:$ac_tool_warned in
12280yes:)
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12283ac_tool_warned=yes ;;
12284esac
12285 DLLTOOL=$ac_ct_DLLTOOL
12286 fi
12287else
12288 DLLTOOL="$ac_cv_prog_DLLTOOL"
12289fi
12290
12291test -z "$DLLTOOL" && DLLTOOL=dlltool
12292
12293
12294
12295
12296
12297
12298
12299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12300$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12301if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303else
12304 lt_cv_sharedlib_from_linklib_cmd='unknown'
12305
12306case $host_os in
12307cygwin* | mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050012308 # two different shell functions defined in ltmain.sh;
12309 # decide which one to use based on capabilities of $DLLTOOL
cristyda16f162011-02-19 23:52:17 +000012310 case `$DLLTOOL --help 2>&1` in
12311 *--identify-strict*)
12312 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12313 ;;
12314 *)
12315 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12316 ;;
12317 esac
12318 ;;
12319*)
12320 # fallback: assume linklib IS sharedlib
Cristy15f22012015-11-14 17:51:30 -050012321 lt_cv_sharedlib_from_linklib_cmd=$ECHO
cristyda16f162011-02-19 23:52:17 +000012322 ;;
12323esac
12324
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12327$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12328sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12329test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12330
12331
12332
12333
12334
12335
12336
12337if test -n "$ac_tool_prefix"; then
12338 for ac_prog in ar
12339 do
12340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12341set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12343$as_echo_n "checking for $ac_word... " >&6; }
12344if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012345 $as_echo_n "(cached) " >&6
12346else
12347 if test -n "$AR"; then
12348 ac_cv_prog_AR="$AR" # Let the user override the test.
12349else
12350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351for as_dir in $PATH
12352do
12353 IFS=$as_save_IFS
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012357 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12359 break 2
12360 fi
12361done
12362 done
12363IFS=$as_save_IFS
12364
12365fi
12366fi
12367AR=$ac_cv_prog_AR
12368if test -n "$AR"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12370$as_echo "$AR" >&6; }
12371else
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12373$as_echo "no" >&6; }
12374fi
12375
12376
cristyda16f162011-02-19 23:52:17 +000012377 test -n "$AR" && break
12378 done
cristy73bd4a52010-10-05 11:24:23 +000012379fi
cristyda16f162011-02-19 23:52:17 +000012380if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012381 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012382 for ac_prog in ar
12383do
12384 # Extract the first word of "$ac_prog", so it can be a program name with args.
12385set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012388if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012389 $as_echo_n "(cached) " >&6
12390else
12391 if test -n "$ac_ct_AR"; then
12392 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12393else
12394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12395for as_dir in $PATH
12396do
12397 IFS=$as_save_IFS
12398 test -z "$as_dir" && as_dir=.
12399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012401 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12403 break 2
12404 fi
12405done
12406 done
12407IFS=$as_save_IFS
12408
12409fi
12410fi
12411ac_ct_AR=$ac_cv_prog_ac_ct_AR
12412if test -n "$ac_ct_AR"; then
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12414$as_echo "$ac_ct_AR" >&6; }
12415else
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12417$as_echo "no" >&6; }
12418fi
12419
cristyda16f162011-02-19 23:52:17 +000012420
12421 test -n "$ac_ct_AR" && break
12422done
12423
cristy73bd4a52010-10-05 11:24:23 +000012424 if test "x$ac_ct_AR" = x; then
12425 AR="false"
12426 else
12427 case $cross_compiling:$ac_tool_warned in
12428yes:)
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12430$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12431ac_tool_warned=yes ;;
12432esac
12433 AR=$ac_ct_AR
12434 fi
cristy73bd4a52010-10-05 11:24:23 +000012435fi
12436
cristyda16f162011-02-19 23:52:17 +000012437: ${AR=ar}
12438: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
cristyda16f162011-02-19 23:52:17 +000012450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12451$as_echo_n "checking for archiver @FILE support... " >&6; }
12452if ${lt_cv_ar_at_file+:} false; then :
12453 $as_echo_n "(cached) " >&6
12454else
12455 lt_cv_ar_at_file=no
12456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12457/* end confdefs.h. */
12458
12459int
12460main ()
12461{
12462
12463 ;
12464 return 0;
12465}
12466_ACEOF
12467if ac_fn_c_try_compile "$LINENO"; then :
12468 echo conftest.$ac_objext > conftest.lst
12469 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12471 (eval $lt_ar_try) 2>&5
12472 ac_status=$?
12473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12474 test $ac_status = 0; }
Cristy15f22012015-11-14 17:51:30 -050012475 if test 0 -eq "$ac_status"; then
cristyda16f162011-02-19 23:52:17 +000012476 # Ensure the archiver fails upon bogus file names.
12477 rm -f conftest.$ac_objext libconftest.a
12478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12479 (eval $lt_ar_try) 2>&5
12480 ac_status=$?
12481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12482 test $ac_status = 0; }
Cristy15f22012015-11-14 17:51:30 -050012483 if test 0 -ne "$ac_status"; then
cristyda16f162011-02-19 23:52:17 +000012484 lt_cv_ar_at_file=@
12485 fi
12486 fi
12487 rm -f conftest.* libconftest.a
12488
12489fi
12490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12491
12492fi
12493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12494$as_echo "$lt_cv_ar_at_file" >&6; }
12495
Cristy15f22012015-11-14 17:51:30 -050012496if test no = "$lt_cv_ar_at_file"; then
cristyda16f162011-02-19 23:52:17 +000012497 archiver_list_spec=
12498else
12499 archiver_list_spec=$lt_cv_ar_at_file
12500fi
12501
12502
12503
12504
12505
12506
12507
cristy73bd4a52010-10-05 11:24:23 +000012508if test -n "$ac_tool_prefix"; then
12509 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12510set dummy ${ac_tool_prefix}strip; ac_word=$2
12511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012513if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012514 $as_echo_n "(cached) " >&6
12515else
12516 if test -n "$STRIP"; then
12517 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12518else
12519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
12521do
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012526 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12529 fi
12530done
12531 done
12532IFS=$as_save_IFS
12533
12534fi
12535fi
12536STRIP=$ac_cv_prog_STRIP
12537if test -n "$STRIP"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12539$as_echo "$STRIP" >&6; }
12540else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542$as_echo "no" >&6; }
12543fi
12544
12545
12546fi
12547if test -z "$ac_cv_prog_STRIP"; then
12548 ac_ct_STRIP=$STRIP
12549 # Extract the first word of "strip", so it can be a program name with args.
12550set dummy strip; ac_word=$2
12551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012553if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012554 $as_echo_n "(cached) " >&6
12555else
12556 if test -n "$ac_ct_STRIP"; then
12557 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12558else
12559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12560for as_dir in $PATH
12561do
12562 IFS=$as_save_IFS
12563 test -z "$as_dir" && as_dir=.
12564 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012566 ac_cv_prog_ac_ct_STRIP="strip"
12567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12568 break 2
12569 fi
12570done
12571 done
12572IFS=$as_save_IFS
12573
12574fi
12575fi
12576ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12577if test -n "$ac_ct_STRIP"; then
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12579$as_echo "$ac_ct_STRIP" >&6; }
12580else
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582$as_echo "no" >&6; }
12583fi
12584
12585 if test "x$ac_ct_STRIP" = x; then
12586 STRIP=":"
12587 else
12588 case $cross_compiling:$ac_tool_warned in
12589yes:)
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12592ac_tool_warned=yes ;;
12593esac
12594 STRIP=$ac_ct_STRIP
12595 fi
12596else
12597 STRIP="$ac_cv_prog_STRIP"
12598fi
12599
12600test -z "$STRIP" && STRIP=:
12601
12602
12603
12604
12605
12606
12607if test -n "$ac_tool_prefix"; then
12608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12609set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012612if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012613 $as_echo_n "(cached) " >&6
12614else
12615 if test -n "$RANLIB"; then
12616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12617else
12618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12619for as_dir in $PATH
12620do
12621 IFS=$as_save_IFS
12622 test -z "$as_dir" && as_dir=.
12623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12627 break 2
12628 fi
12629done
12630 done
12631IFS=$as_save_IFS
12632
12633fi
12634fi
12635RANLIB=$ac_cv_prog_RANLIB
12636if test -n "$RANLIB"; then
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12638$as_echo "$RANLIB" >&6; }
12639else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12641$as_echo "no" >&6; }
12642fi
12643
12644
12645fi
12646if test -z "$ac_cv_prog_RANLIB"; then
12647 ac_ct_RANLIB=$RANLIB
12648 # Extract the first word of "ranlib", so it can be a program name with args.
12649set dummy ranlib; ac_word=$2
12650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012652if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012653 $as_echo_n "(cached) " >&6
12654else
12655 if test -n "$ac_ct_RANLIB"; then
12656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12657else
12658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12659for as_dir in $PATH
12660do
12661 IFS=$as_save_IFS
12662 test -z "$as_dir" && as_dir=.
12663 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012665 ac_cv_prog_ac_ct_RANLIB="ranlib"
12666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12667 break 2
12668 fi
12669done
12670 done
12671IFS=$as_save_IFS
12672
12673fi
12674fi
12675ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12676if test -n "$ac_ct_RANLIB"; then
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12678$as_echo "$ac_ct_RANLIB" >&6; }
12679else
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12681$as_echo "no" >&6; }
12682fi
12683
12684 if test "x$ac_ct_RANLIB" = x; then
12685 RANLIB=":"
12686 else
12687 case $cross_compiling:$ac_tool_warned in
12688yes:)
12689{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12691ac_tool_warned=yes ;;
12692esac
12693 RANLIB=$ac_ct_RANLIB
12694 fi
12695else
12696 RANLIB="$ac_cv_prog_RANLIB"
12697fi
12698
12699test -z "$RANLIB" && RANLIB=:
12700
12701
12702
12703
12704
12705
12706# Determine commands to create old-style static archives.
12707old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12708old_postinstall_cmds='chmod 644 $oldlib'
12709old_postuninstall_cmds=
12710
12711if test -n "$RANLIB"; then
12712 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050012713 bitrig* | openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012714 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012715 ;;
12716 *)
cristy99bd5232011-12-07 14:38:20 +000012717 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012718 ;;
12719 esac
cristy99bd5232011-12-07 14:38:20 +000012720 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012721fi
12722
cristy0c60a692010-11-04 01:09:47 +000012723case $host_os in
12724 darwin*)
12725 lock_old_archive_extraction=yes ;;
12726 *)
12727 lock_old_archive_extraction=no ;;
12728esac
12729
12730
12731
12732
12733
12734
cristy73bd4a52010-10-05 11:24:23 +000012735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768# If no C compiler was specified, use CC.
12769LTCC=${LTCC-"$CC"}
12770
12771# If no C compiler flags were specified, use CFLAGS.
12772LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12773
12774# Allow CC to be a program name with arguments.
12775compiler=$CC
12776
12777
12778# Check for command to grab the raw symbol name followed by C symbol from nm.
12779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12780$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012781if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012782 $as_echo_n "(cached) " >&6
12783else
12784
12785# These are sane defaults that work on at least a few old systems.
12786# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12787
12788# Character class describing NM global symbol codes.
12789symcode='[BCDEGRST]'
12790
12791# Regexp to match symbols that can be accessed directly from C.
12792sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12793
12794# Define system-specific variables.
12795case $host_os in
12796aix*)
12797 symcode='[BCDT]'
12798 ;;
12799cygwin* | mingw* | pw32* | cegcc*)
12800 symcode='[ABCDGISTW]'
12801 ;;
12802hpux*)
Cristy15f22012015-11-14 17:51:30 -050012803 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000012804 symcode='[ABCDEGRST]'
12805 fi
12806 ;;
12807irix* | nonstopux*)
12808 symcode='[BCDEGRST]'
12809 ;;
12810osf*)
12811 symcode='[BCDEGQRST]'
12812 ;;
12813solaris*)
12814 symcode='[BDRT]'
12815 ;;
12816sco3.2v5*)
12817 symcode='[DT]'
12818 ;;
12819sysv4.2uw2*)
12820 symcode='[DT]'
12821 ;;
12822sysv5* | sco5v6* | unixware* | OpenUNIX*)
12823 symcode='[ABDT]'
12824 ;;
12825sysv4)
12826 symcode='[DFNSTU]'
12827 ;;
12828esac
12829
12830# If we're using GNU nm, then use its standard symbol codes.
12831case `$NM -V 2>&1` in
12832*GNU* | *'with BFD'*)
12833 symcode='[ABCDGIRSTW]' ;;
12834esac
12835
Cristy15f22012015-11-14 17:51:30 -050012836if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12837 # Gets list of data symbols to import.
12838 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12839 # Adjust the below global symbol transforms to fixup imported variables.
12840 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12841 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12842 lt_c_name_lib_hook="\
12843 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12844 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12845else
12846 # Disable hooks by default.
12847 lt_cv_sys_global_symbol_to_import=
12848 lt_cdecl_hook=
12849 lt_c_name_hook=
12850 lt_c_name_lib_hook=
12851fi
12852
cristy73bd4a52010-10-05 11:24:23 +000012853# Transform an extracted symbol line into a proper C declaration.
12854# Some systems (esp. on ia64) link data and code symbols differently,
12855# so use this general approach.
Cristy15f22012015-11-14 17:51:30 -050012856lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12857$lt_cdecl_hook\
12858" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12859" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
cristy73bd4a52010-10-05 11:24:23 +000012860
12861# Transform an extracted symbol line into symbol name and symbol address
Cristy15f22012015-11-14 17:51:30 -050012862lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12863$lt_c_name_hook\
12864" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12865" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12866
12867# Transform an extracted symbol line into symbol name with lib prefix and
12868# symbol address.
12869lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12870$lt_c_name_lib_hook\
12871" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12872" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12873" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
cristy73bd4a52010-10-05 11:24:23 +000012874
12875# Handle CRLF in mingw tool chain
12876opt_cr=
12877case $build_os in
12878mingw*)
12879 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12880 ;;
12881esac
12882
12883# Try without a prefix underscore, then with it.
12884for ac_symprfx in "" "_"; do
12885
12886 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
12887 symxfrm="\\1 $ac_symprfx\\2 \\2"
12888
12889 # Write the raw and C identifiers.
12890 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Cristy15f22012015-11-14 17:51:30 -050012891 # Fake it for dumpbin and say T for any non-static function,
12892 # D for any global variable and I for any imported variable.
cristy73bd4a52010-10-05 11:24:23 +000012893 # Also find C++ and __fastcall symbols from MSVC++,
12894 # which start with @ or ?.
12895 lt_cv_sys_global_symbol_pipe="$AWK '"\
12896" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000012897" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000012898" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Cristy15f22012015-11-14 17:51:30 -050012899" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
12900" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
12901" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
cristy73bd4a52010-10-05 11:24:23 +000012902" \$ 0!~/External *\|/{next};"\
12903" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
12904" {if(hide[section]) next};"\
Cristy15f22012015-11-14 17:51:30 -050012905" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
12906" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
12907" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
12908" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
cristy73bd4a52010-10-05 11:24:23 +000012909" ' prfx=^$ac_symprfx"
12910 else
12911 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12912 fi
cristyda16f162011-02-19 23:52:17 +000012913 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012914
12915 # Check to see that the pipe works correctly.
12916 pipe_works=no
12917
12918 rm -f conftest*
12919 cat > conftest.$ac_ext <<_LT_EOF
12920#ifdef __cplusplus
12921extern "C" {
12922#endif
12923char nm_test_var;
12924void nm_test_func(void);
12925void nm_test_func(void){}
12926#ifdef __cplusplus
12927}
12928#endif
12929int main(){nm_test_var='a';nm_test_func();return(0);}
12930_LT_EOF
12931
12932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12933 (eval $ac_compile) 2>&5
12934 ac_status=$?
12935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936 test $ac_status = 0; }; then
12937 # Now try to grab the symbols.
12938 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12940 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012941 ac_status=$?
12942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12943 test $ac_status = 0; } && test -s "$nlist"; then
12944 # Try sorting and uniquifying the output.
12945 if sort "$nlist" | uniq > "$nlist"T; then
12946 mv -f "$nlist"T "$nlist"
12947 else
12948 rm -f "$nlist"T
12949 fi
12950
12951 # Make sure that we snagged all the symbols we need.
12952 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12953 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12954 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012955/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Cristy15f22012015-11-14 17:51:30 -050012956#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
12957/* DATA imports from DLLs on WIN32 can't be const, because runtime
cristyda16f162011-02-19 23:52:17 +000012958 relocations are performed -- see ld's documentation on pseudo-relocs. */
12959# define LT_DLSYM_CONST
Cristy15f22012015-11-14 17:51:30 -050012960#elif defined __osf__
cristyda16f162011-02-19 23:52:17 +000012961/* This system does not cope well with relocations in const data. */
12962# define LT_DLSYM_CONST
12963#else
12964# define LT_DLSYM_CONST const
12965#endif
12966
cristy73bd4a52010-10-05 11:24:23 +000012967#ifdef __cplusplus
12968extern "C" {
12969#endif
12970
12971_LT_EOF
12972 # Now generate the symbol file.
12973 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12974
12975 cat <<_LT_EOF >> conftest.$ac_ext
12976
12977/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012978LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012979 const char *name;
12980 void *address;
12981}
12982lt__PROGRAM__LTX_preloaded_symbols[] =
12983{
12984 { "@PROGRAM@", (void *) 0 },
12985_LT_EOF
Cristy15f22012015-11-14 17:51:30 -050012986 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012987 cat <<\_LT_EOF >> conftest.$ac_ext
12988 {0, (void *) 0}
12989};
12990
12991/* This works around a problem in FreeBSD linker */
12992#ifdef FREEBSD_WORKAROUND
12993static const void *lt_preloaded_setup() {
12994 return lt__PROGRAM__LTX_preloaded_symbols;
12995}
12996#endif
12997
12998#ifdef __cplusplus
12999}
13000#endif
13001_LT_EOF
13002 # Now try linking the two files.
13003 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000013004 lt_globsym_save_LIBS=$LIBS
13005 lt_globsym_save_CFLAGS=$CFLAGS
Cristy15f22012015-11-14 17:51:30 -050013006 LIBS=conftstm.$ac_objext
cristy73bd4a52010-10-05 11:24:23 +000013007 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13009 (eval $ac_link) 2>&5
13010 ac_status=$?
13011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050013012 test $ac_status = 0; } && test -s conftest$ac_exeext; then
cristy73bd4a52010-10-05 11:24:23 +000013013 pipe_works=yes
13014 fi
cristyda16f162011-02-19 23:52:17 +000013015 LIBS=$lt_globsym_save_LIBS
13016 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013017 else
13018 echo "cannot find nm_test_func in $nlist" >&5
13019 fi
13020 else
13021 echo "cannot find nm_test_var in $nlist" >&5
13022 fi
13023 else
13024 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13025 fi
13026 else
13027 echo "$progname: failed program was:" >&5
13028 cat conftest.$ac_ext >&5
13029 fi
13030 rm -rf conftest* conftst*
13031
13032 # Do not use the global_symbol_pipe unless it works.
Cristy15f22012015-11-14 17:51:30 -050013033 if test yes = "$pipe_works"; then
cristy73bd4a52010-10-05 11:24:23 +000013034 break
13035 else
13036 lt_cv_sys_global_symbol_pipe=
13037 fi
13038done
13039
13040fi
13041
13042if test -z "$lt_cv_sys_global_symbol_pipe"; then
13043 lt_cv_sys_global_symbol_to_cdecl=
13044fi
13045if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13047$as_echo "failed" >&6; }
13048else
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13050$as_echo "ok" >&6; }
13051fi
13052
cristyda16f162011-02-19 23:52:17 +000013053# Response file support.
13054if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13055 nm_file_list_spec='@'
13056elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13057 nm_file_list_spec='@'
13058fi
cristy73bd4a52010-10-05 11:24:23 +000013059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
cristyda16f162011-02-19 23:52:17 +000013080
13081
13082
13083
13084
13085
Cristy15f22012015-11-14 17:51:30 -050013086
13087
13088
13089
13090
13091
13092
13093
13094
13095
cristyda16f162011-02-19 23:52:17 +000013096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13097$as_echo_n "checking for sysroot... " >&6; }
13098
13099# Check whether --with-sysroot was given.
13100if test "${with_sysroot+set}" = set; then :
13101 withval=$with_sysroot;
13102else
13103 with_sysroot=no
13104fi
13105
13106
13107lt_sysroot=
Cristy15f22012015-11-14 17:51:30 -050013108case $with_sysroot in #(
cristyda16f162011-02-19 23:52:17 +000013109 yes)
Cristy15f22012015-11-14 17:51:30 -050013110 if test yes = "$GCC"; then
cristyda16f162011-02-19 23:52:17 +000013111 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13112 fi
13113 ;; #(
13114 /*)
13115 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13116 ;; #(
13117 no|'')
13118 ;; #(
13119 *)
Cristy15f22012015-11-14 17:51:30 -050013120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13121$as_echo "$with_sysroot" >&6; }
cristyda16f162011-02-19 23:52:17 +000013122 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13123 ;;
13124esac
13125
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13127$as_echo "${lt_sysroot:-no}" >&6; }
13128
13129
13130
13131
13132
Cristy15f22012015-11-14 17:51:30 -050013133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13134$as_echo_n "checking for a working dd... " >&6; }
13135if ${ac_cv_path_lt_DD+:} false; then :
13136 $as_echo_n "(cached) " >&6
13137else
13138 printf 0123456789abcdef0123456789abcdef >conftest.i
13139cat conftest.i conftest.i >conftest2.i
13140: ${lt_DD:=$DD}
13141if test -z "$lt_DD"; then
13142 ac_path_lt_DD_found=false
13143 # Loop through the user's path and test for each of PROGNAME-LIST
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145for as_dir in $PATH
13146do
13147 IFS=$as_save_IFS
13148 test -z "$as_dir" && as_dir=.
13149 for ac_prog in dd; do
13150 for ac_exec_ext in '' $ac_executable_extensions; do
13151 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13152 as_fn_executable_p "$ac_path_lt_DD" || continue
13153if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13154 cmp -s conftest.i conftest.out \
13155 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13156fi
13157 $ac_path_lt_DD_found && break 3
13158 done
13159 done
13160 done
13161IFS=$as_save_IFS
13162 if test -z "$ac_cv_path_lt_DD"; then
13163 :
13164 fi
13165else
13166 ac_cv_path_lt_DD=$lt_DD
13167fi
13168
13169rm -f conftest.i conftest2.i conftest.out
13170fi
13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13172$as_echo "$ac_cv_path_lt_DD" >&6; }
13173
13174
13175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13176$as_echo_n "checking how to truncate binary pipes... " >&6; }
13177if ${lt_cv_truncate_bin+:} false; then :
13178 $as_echo_n "(cached) " >&6
13179else
13180 printf 0123456789abcdef0123456789abcdef >conftest.i
13181cat conftest.i conftest.i >conftest2.i
13182lt_cv_truncate_bin=
13183if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13184 cmp -s conftest.i conftest.out \
13185 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13186fi
13187rm -f conftest.i conftest2.i conftest.out
13188test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13189fi
13190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13191$as_echo "$lt_cv_truncate_bin" >&6; }
13192
13193
13194
13195
13196
13197
13198
13199# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13200func_cc_basename ()
13201{
13202 for cc_temp in $*""; do
13203 case $cc_temp in
13204 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13205 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13206 \-*) ;;
13207 *) break;;
13208 esac
13209 done
13210 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13211}
13212
cristy73bd4a52010-10-05 11:24:23 +000013213# Check whether --enable-libtool-lock was given.
13214if test "${enable_libtool_lock+set}" = set; then :
13215 enableval=$enable_libtool_lock;
13216fi
13217
Cristy15f22012015-11-14 17:51:30 -050013218test no = "$enable_libtool_lock" || enable_libtool_lock=yes
cristy73bd4a52010-10-05 11:24:23 +000013219
13220# Some flags need to be propagated to the compiler or linker for good
13221# libtool support.
13222case $host in
13223ia64-*-hpux*)
Cristy15f22012015-11-14 17:51:30 -050013224 # Find out what ABI is being produced by ac_compile, and set mode
13225 # options accordingly.
cristy73bd4a52010-10-05 11:24:23 +000013226 echo 'int i;' > conftest.$ac_ext
13227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13228 (eval $ac_compile) 2>&5
13229 ac_status=$?
13230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13231 test $ac_status = 0; }; then
13232 case `/usr/bin/file conftest.$ac_objext` in
13233 *ELF-32*)
Cristy15f22012015-11-14 17:51:30 -050013234 HPUX_IA64_MODE=32
cristy73bd4a52010-10-05 11:24:23 +000013235 ;;
13236 *ELF-64*)
Cristy15f22012015-11-14 17:51:30 -050013237 HPUX_IA64_MODE=64
cristy73bd4a52010-10-05 11:24:23 +000013238 ;;
13239 esac
13240 fi
13241 rm -rf conftest*
13242 ;;
13243*-*-irix6*)
Cristy15f22012015-11-14 17:51:30 -050013244 # Find out what ABI is being produced by ac_compile, and set linker
13245 # options accordingly.
cristy0c60a692010-11-04 01:09:47 +000013246 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013247 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13248 (eval $ac_compile) 2>&5
13249 ac_status=$?
13250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13251 test $ac_status = 0; }; then
Cristy15f22012015-11-14 17:51:30 -050013252 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000013253 case `/usr/bin/file conftest.$ac_objext` in
13254 *32-bit*)
13255 LD="${LD-ld} -melf32bsmip"
13256 ;;
13257 *N32*)
13258 LD="${LD-ld} -melf32bmipn32"
13259 ;;
13260 *64-bit*)
13261 LD="${LD-ld} -melf64bmip"
13262 ;;
13263 esac
13264 else
13265 case `/usr/bin/file conftest.$ac_objext` in
13266 *32-bit*)
13267 LD="${LD-ld} -32"
13268 ;;
13269 *N32*)
13270 LD="${LD-ld} -n32"
13271 ;;
13272 *64-bit*)
13273 LD="${LD-ld} -64"
13274 ;;
13275 esac
13276 fi
13277 fi
13278 rm -rf conftest*
13279 ;;
13280
Cristy15f22012015-11-14 17:51:30 -050013281mips64*-*linux*)
13282 # Find out what ABI is being produced by ac_compile, and set linker
13283 # options accordingly.
13284 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13286 (eval $ac_compile) 2>&5
13287 ac_status=$?
13288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13289 test $ac_status = 0; }; then
13290 emul=elf
13291 case `/usr/bin/file conftest.$ac_objext` in
13292 *32-bit*)
13293 emul="${emul}32"
13294 ;;
13295 *64-bit*)
13296 emul="${emul}64"
13297 ;;
13298 esac
13299 case `/usr/bin/file conftest.$ac_objext` in
13300 *MSB*)
13301 emul="${emul}btsmip"
13302 ;;
13303 *LSB*)
13304 emul="${emul}ltsmip"
13305 ;;
13306 esac
13307 case `/usr/bin/file conftest.$ac_objext` in
13308 *N32*)
13309 emul="${emul}n32"
13310 ;;
13311 esac
13312 LD="${LD-ld} -m $emul"
13313 fi
13314 rm -rf conftest*
13315 ;;
13316
cristyd95b7a52013-10-23 13:12:53 +000013317x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013318s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Cristy15f22012015-11-14 17:51:30 -050013319 # Find out what ABI is being produced by ac_compile, and set linker
13320 # options accordingly. Note that the listed cases only cover the
13321 # situations where additional linker options are needed (such as when
13322 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13323 # vice versa); the common cases where no linker options are needed do
13324 # not appear in the list.
cristy73bd4a52010-10-05 11:24:23 +000013325 echo 'int i;' > conftest.$ac_ext
13326 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13327 (eval $ac_compile) 2>&5
13328 ac_status=$?
13329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13330 test $ac_status = 0; }; then
13331 case `/usr/bin/file conftest.o` in
13332 *32-bit*)
13333 case $host in
13334 x86_64-*kfreebsd*-gnu)
13335 LD="${LD-ld} -m elf_i386_fbsd"
13336 ;;
13337 x86_64-*linux*)
Cristy15f22012015-11-14 17:51:30 -050013338 case `/usr/bin/file conftest.o` in
13339 *x86-64*)
13340 LD="${LD-ld} -m elf32_x86_64"
13341 ;;
13342 *)
13343 LD="${LD-ld} -m elf_i386"
13344 ;;
13345 esac
cristy73bd4a52010-10-05 11:24:23 +000013346 ;;
cristya5bda012013-11-03 18:05:38 +000013347 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013348 LD="${LD-ld} -m elf32lppclinux"
13349 ;;
cristya5bda012013-11-03 18:05:38 +000013350 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013351 LD="${LD-ld} -m elf32ppclinux"
13352 ;;
13353 s390x-*linux*)
13354 LD="${LD-ld} -m elf_s390"
13355 ;;
13356 sparc64-*linux*)
13357 LD="${LD-ld} -m elf32_sparc"
13358 ;;
13359 esac
13360 ;;
13361 *64-bit*)
13362 case $host in
13363 x86_64-*kfreebsd*-gnu)
13364 LD="${LD-ld} -m elf_x86_64_fbsd"
13365 ;;
13366 x86_64-*linux*)
13367 LD="${LD-ld} -m elf_x86_64"
13368 ;;
cristyd95b7a52013-10-23 13:12:53 +000013369 powerpcle-*linux*)
13370 LD="${LD-ld} -m elf64lppc"
13371 ;;
13372 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013373 LD="${LD-ld} -m elf64ppc"
13374 ;;
13375 s390*-*linux*|s390*-*tpf*)
13376 LD="${LD-ld} -m elf64_s390"
13377 ;;
13378 sparc*-*linux*)
13379 LD="${LD-ld} -m elf64_sparc"
13380 ;;
13381 esac
13382 ;;
13383 esac
13384 fi
13385 rm -rf conftest*
13386 ;;
13387
13388*-*-sco3.2v5*)
13389 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Cristy15f22012015-11-14 17:51:30 -050013390 SAVE_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013391 CFLAGS="$CFLAGS -belf"
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13393$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013394if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013395 $as_echo_n "(cached) " >&6
13396else
13397 ac_ext=c
13398ac_cpp='$CPP $CPPFLAGS'
13399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13401ac_compiler_gnu=$ac_cv_c_compiler_gnu
13402
13403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h. */
13405
13406int
13407main ()
13408{
13409
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414if ac_fn_c_try_link "$LINENO"; then :
13415 lt_cv_cc_needs_belf=yes
13416else
13417 lt_cv_cc_needs_belf=no
13418fi
13419rm -f core conftest.err conftest.$ac_objext \
13420 conftest$ac_exeext conftest.$ac_ext
13421 ac_ext=c
13422ac_cpp='$CPP $CPPFLAGS'
13423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13425ac_compiler_gnu=$ac_cv_c_compiler_gnu
13426
13427fi
13428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13429$as_echo "$lt_cv_cc_needs_belf" >&6; }
Cristy15f22012015-11-14 17:51:30 -050013430 if test yes != "$lt_cv_cc_needs_belf"; then
cristy73bd4a52010-10-05 11:24:23 +000013431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Cristy15f22012015-11-14 17:51:30 -050013432 CFLAGS=$SAVE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013433 fi
13434 ;;
cristy99bd5232011-12-07 14:38:20 +000013435*-*solaris*)
Cristy15f22012015-11-14 17:51:30 -050013436 # Find out what ABI is being produced by ac_compile, and set linker
13437 # options accordingly.
cristy73bd4a52010-10-05 11:24:23 +000013438 echo 'int i;' > conftest.$ac_ext
13439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13440 (eval $ac_compile) 2>&5
13441 ac_status=$?
13442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13443 test $ac_status = 0; }; then
13444 case `/usr/bin/file conftest.o` in
13445 *64-bit*)
13446 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013447 yes*)
13448 case $host in
Cristy15f22012015-11-14 17:51:30 -050013449 i?86-*-solaris*|x86_64-*-solaris*)
cristy99bd5232011-12-07 14:38:20 +000013450 LD="${LD-ld} -m elf_x86_64"
13451 ;;
13452 sparc*-*-solaris*)
13453 LD="${LD-ld} -m elf64_sparc"
13454 ;;
13455 esac
13456 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13457 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Cristy15f22012015-11-14 17:51:30 -050013458 LD=${LD-ld}_sol2
cristy99bd5232011-12-07 14:38:20 +000013459 fi
13460 ;;
cristy73bd4a52010-10-05 11:24:23 +000013461 *)
13462 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13463 LD="${LD-ld} -64"
13464 fi
13465 ;;
13466 esac
13467 ;;
13468 esac
13469 fi
13470 rm -rf conftest*
13471 ;;
13472esac
13473
Cristy15f22012015-11-14 17:51:30 -050013474need_locks=$enable_libtool_lock
cristy73bd4a52010-10-05 11:24:23 +000013475
cristyda16f162011-02-19 23:52:17 +000013476if test -n "$ac_tool_prefix"; then
13477 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13478set dummy ${ac_tool_prefix}mt; ac_word=$2
13479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13480$as_echo_n "checking for $ac_word... " >&6; }
13481if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13482 $as_echo_n "(cached) " >&6
13483else
13484 if test -n "$MANIFEST_TOOL"; then
13485 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13486else
13487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13488for as_dir in $PATH
13489do
13490 IFS=$as_save_IFS
13491 test -z "$as_dir" && as_dir=.
13492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013494 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13496 break 2
13497 fi
13498done
13499 done
13500IFS=$as_save_IFS
13501
13502fi
13503fi
13504MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13505if test -n "$MANIFEST_TOOL"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13507$as_echo "$MANIFEST_TOOL" >&6; }
13508else
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13510$as_echo "no" >&6; }
13511fi
13512
13513
13514fi
13515if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13516 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13517 # Extract the first word of "mt", so it can be a program name with args.
13518set dummy mt; ac_word=$2
13519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13520$as_echo_n "checking for $ac_word... " >&6; }
13521if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13522 $as_echo_n "(cached) " >&6
13523else
13524 if test -n "$ac_ct_MANIFEST_TOOL"; then
13525 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13526else
13527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528for as_dir in $PATH
13529do
13530 IFS=$as_save_IFS
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013534 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13536 break 2
13537 fi
13538done
13539 done
13540IFS=$as_save_IFS
13541
13542fi
13543fi
13544ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13545if test -n "$ac_ct_MANIFEST_TOOL"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13547$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13548else
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13550$as_echo "no" >&6; }
13551fi
13552
13553 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13554 MANIFEST_TOOL=":"
13555 else
13556 case $cross_compiling:$ac_tool_warned in
13557yes:)
13558{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13559$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13560ac_tool_warned=yes ;;
13561esac
13562 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13563 fi
13564else
13565 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13566fi
13567
13568test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13570$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13571if ${lt_cv_path_mainfest_tool+:} false; then :
13572 $as_echo_n "(cached) " >&6
13573else
13574 lt_cv_path_mainfest_tool=no
13575 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13576 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13577 cat conftest.err >&5
13578 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13579 lt_cv_path_mainfest_tool=yes
13580 fi
13581 rm -f conftest*
13582fi
13583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13584$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Cristy15f22012015-11-14 17:51:30 -050013585if test yes != "$lt_cv_path_mainfest_tool"; then
cristyda16f162011-02-19 23:52:17 +000013586 MANIFEST_TOOL=:
13587fi
13588
13589
13590
13591
13592
cristy73bd4a52010-10-05 11:24:23 +000013593
13594 case $host_os in
13595 rhapsody* | darwin*)
13596 if test -n "$ac_tool_prefix"; then
13597 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13598set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13600$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013601if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013602 $as_echo_n "(cached) " >&6
13603else
13604 if test -n "$DSYMUTIL"; then
13605 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13606else
13607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13608for as_dir in $PATH
13609do
13610 IFS=$as_save_IFS
13611 test -z "$as_dir" && as_dir=.
13612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013614 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13616 break 2
13617 fi
13618done
13619 done
13620IFS=$as_save_IFS
13621
13622fi
13623fi
13624DSYMUTIL=$ac_cv_prog_DSYMUTIL
13625if test -n "$DSYMUTIL"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13627$as_echo "$DSYMUTIL" >&6; }
13628else
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13630$as_echo "no" >&6; }
13631fi
13632
13633
13634fi
13635if test -z "$ac_cv_prog_DSYMUTIL"; then
13636 ac_ct_DSYMUTIL=$DSYMUTIL
13637 # Extract the first word of "dsymutil", so it can be a program name with args.
13638set dummy dsymutil; ac_word=$2
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13640$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013641if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013642 $as_echo_n "(cached) " >&6
13643else
13644 if test -n "$ac_ct_DSYMUTIL"; then
13645 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13646else
13647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13648for as_dir in $PATH
13649do
13650 IFS=$as_save_IFS
13651 test -z "$as_dir" && as_dir=.
13652 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013654 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13656 break 2
13657 fi
13658done
13659 done
13660IFS=$as_save_IFS
13661
13662fi
13663fi
13664ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13665if test -n "$ac_ct_DSYMUTIL"; then
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13667$as_echo "$ac_ct_DSYMUTIL" >&6; }
13668else
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13670$as_echo "no" >&6; }
13671fi
13672
13673 if test "x$ac_ct_DSYMUTIL" = x; then
13674 DSYMUTIL=":"
13675 else
13676 case $cross_compiling:$ac_tool_warned in
13677yes:)
13678{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13679$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13680ac_tool_warned=yes ;;
13681esac
13682 DSYMUTIL=$ac_ct_DSYMUTIL
13683 fi
13684else
13685 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13686fi
13687
13688 if test -n "$ac_tool_prefix"; then
13689 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13690set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13692$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013693if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013694 $as_echo_n "(cached) " >&6
13695else
13696 if test -n "$NMEDIT"; then
13697 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13698else
13699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13700for as_dir in $PATH
13701do
13702 IFS=$as_save_IFS
13703 test -z "$as_dir" && as_dir=.
13704 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013706 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13708 break 2
13709 fi
13710done
13711 done
13712IFS=$as_save_IFS
13713
13714fi
13715fi
13716NMEDIT=$ac_cv_prog_NMEDIT
13717if test -n "$NMEDIT"; then
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13719$as_echo "$NMEDIT" >&6; }
13720else
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13722$as_echo "no" >&6; }
13723fi
13724
13725
13726fi
13727if test -z "$ac_cv_prog_NMEDIT"; then
13728 ac_ct_NMEDIT=$NMEDIT
13729 # Extract the first word of "nmedit", so it can be a program name with args.
13730set dummy nmedit; ac_word=$2
13731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013733if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013734 $as_echo_n "(cached) " >&6
13735else
13736 if test -n "$ac_ct_NMEDIT"; then
13737 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13738else
13739as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13740for as_dir in $PATH
13741do
13742 IFS=$as_save_IFS
13743 test -z "$as_dir" && as_dir=.
13744 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013746 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13748 break 2
13749 fi
13750done
13751 done
13752IFS=$as_save_IFS
13753
13754fi
13755fi
13756ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13757if test -n "$ac_ct_NMEDIT"; then
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13759$as_echo "$ac_ct_NMEDIT" >&6; }
13760else
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13762$as_echo "no" >&6; }
13763fi
13764
13765 if test "x$ac_ct_NMEDIT" = x; then
13766 NMEDIT=":"
13767 else
13768 case $cross_compiling:$ac_tool_warned in
13769yes:)
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13771$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13772ac_tool_warned=yes ;;
13773esac
13774 NMEDIT=$ac_ct_NMEDIT
13775 fi
13776else
13777 NMEDIT="$ac_cv_prog_NMEDIT"
13778fi
13779
13780 if test -n "$ac_tool_prefix"; then
13781 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13782set dummy ${ac_tool_prefix}lipo; ac_word=$2
13783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13784$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013785if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013786 $as_echo_n "(cached) " >&6
13787else
13788 if test -n "$LIPO"; then
13789 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13790else
13791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13792for as_dir in $PATH
13793do
13794 IFS=$as_save_IFS
13795 test -z "$as_dir" && as_dir=.
13796 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013798 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13800 break 2
13801 fi
13802done
13803 done
13804IFS=$as_save_IFS
13805
13806fi
13807fi
13808LIPO=$ac_cv_prog_LIPO
13809if test -n "$LIPO"; then
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13811$as_echo "$LIPO" >&6; }
13812else
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13814$as_echo "no" >&6; }
13815fi
13816
13817
13818fi
13819if test -z "$ac_cv_prog_LIPO"; then
13820 ac_ct_LIPO=$LIPO
13821 # Extract the first word of "lipo", so it can be a program name with args.
13822set dummy lipo; ac_word=$2
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13824$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013825if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013826 $as_echo_n "(cached) " >&6
13827else
13828 if test -n "$ac_ct_LIPO"; then
13829 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13830else
13831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13832for as_dir in $PATH
13833do
13834 IFS=$as_save_IFS
13835 test -z "$as_dir" && as_dir=.
13836 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013838 ac_cv_prog_ac_ct_LIPO="lipo"
13839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13840 break 2
13841 fi
13842done
13843 done
13844IFS=$as_save_IFS
13845
13846fi
13847fi
13848ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13849if test -n "$ac_ct_LIPO"; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13851$as_echo "$ac_ct_LIPO" >&6; }
13852else
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13854$as_echo "no" >&6; }
13855fi
13856
13857 if test "x$ac_ct_LIPO" = x; then
13858 LIPO=":"
13859 else
13860 case $cross_compiling:$ac_tool_warned in
13861yes:)
13862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13864ac_tool_warned=yes ;;
13865esac
13866 LIPO=$ac_ct_LIPO
13867 fi
13868else
13869 LIPO="$ac_cv_prog_LIPO"
13870fi
13871
13872 if test -n "$ac_tool_prefix"; then
13873 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13874set dummy ${ac_tool_prefix}otool; ac_word=$2
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13876$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013877if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013878 $as_echo_n "(cached) " >&6
13879else
13880 if test -n "$OTOOL"; then
13881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13882else
13883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884for as_dir in $PATH
13885do
13886 IFS=$as_save_IFS
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013890 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13892 break 2
13893 fi
13894done
13895 done
13896IFS=$as_save_IFS
13897
13898fi
13899fi
13900OTOOL=$ac_cv_prog_OTOOL
13901if test -n "$OTOOL"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13903$as_echo "$OTOOL" >&6; }
13904else
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906$as_echo "no" >&6; }
13907fi
13908
13909
13910fi
13911if test -z "$ac_cv_prog_OTOOL"; then
13912 ac_ct_OTOOL=$OTOOL
13913 # Extract the first word of "otool", so it can be a program name with args.
13914set dummy otool; ac_word=$2
13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013917if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013918 $as_echo_n "(cached) " >&6
13919else
13920 if test -n "$ac_ct_OTOOL"; then
13921 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13922else
13923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13924for as_dir in $PATH
13925do
13926 IFS=$as_save_IFS
13927 test -z "$as_dir" && as_dir=.
13928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013930 ac_cv_prog_ac_ct_OTOOL="otool"
13931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13932 break 2
13933 fi
13934done
13935 done
13936IFS=$as_save_IFS
13937
13938fi
13939fi
13940ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13941if test -n "$ac_ct_OTOOL"; then
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13943$as_echo "$ac_ct_OTOOL" >&6; }
13944else
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13946$as_echo "no" >&6; }
13947fi
13948
13949 if test "x$ac_ct_OTOOL" = x; then
13950 OTOOL=":"
13951 else
13952 case $cross_compiling:$ac_tool_warned in
13953yes:)
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13956ac_tool_warned=yes ;;
13957esac
13958 OTOOL=$ac_ct_OTOOL
13959 fi
13960else
13961 OTOOL="$ac_cv_prog_OTOOL"
13962fi
13963
13964 if test -n "$ac_tool_prefix"; then
13965 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13966set dummy ${ac_tool_prefix}otool64; ac_word=$2
13967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13968$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013969if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013970 $as_echo_n "(cached) " >&6
13971else
13972 if test -n "$OTOOL64"; then
13973 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13974else
13975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13976for as_dir in $PATH
13977do
13978 IFS=$as_save_IFS
13979 test -z "$as_dir" && as_dir=.
13980 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013982 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13984 break 2
13985 fi
13986done
13987 done
13988IFS=$as_save_IFS
13989
13990fi
13991fi
13992OTOOL64=$ac_cv_prog_OTOOL64
13993if test -n "$OTOOL64"; then
13994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13995$as_echo "$OTOOL64" >&6; }
13996else
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13998$as_echo "no" >&6; }
13999fi
14000
14001
14002fi
14003if test -z "$ac_cv_prog_OTOOL64"; then
14004 ac_ct_OTOOL64=$OTOOL64
14005 # Extract the first word of "otool64", so it can be a program name with args.
14006set dummy otool64; ac_word=$2
14007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14008$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014009if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014010 $as_echo_n "(cached) " >&6
14011else
14012 if test -n "$ac_ct_OTOOL64"; then
14013 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14014else
14015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14016for as_dir in $PATH
14017do
14018 IFS=$as_save_IFS
14019 test -z "$as_dir" && as_dir=.
14020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014022 ac_cv_prog_ac_ct_OTOOL64="otool64"
14023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14024 break 2
14025 fi
14026done
14027 done
14028IFS=$as_save_IFS
14029
14030fi
14031fi
14032ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14033if test -n "$ac_ct_OTOOL64"; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14035$as_echo "$ac_ct_OTOOL64" >&6; }
14036else
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14038$as_echo "no" >&6; }
14039fi
14040
14041 if test "x$ac_ct_OTOOL64" = x; then
14042 OTOOL64=":"
14043 else
14044 case $cross_compiling:$ac_tool_warned in
14045yes:)
14046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14048ac_tool_warned=yes ;;
14049esac
14050 OTOOL64=$ac_ct_OTOOL64
14051 fi
14052else
14053 OTOOL64="$ac_cv_prog_OTOOL64"
14054fi
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14083$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014084if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014085 $as_echo_n "(cached) " >&6
14086else
14087 lt_cv_apple_cc_single_mod=no
Cristy15f22012015-11-14 17:51:30 -050014088 if test -z "$LT_MULTI_MODULE"; then
cristy73bd4a52010-10-05 11:24:23 +000014089 # By default we will add the -single_module flag. You can override
14090 # by either setting the environment variable LT_MULTI_MODULE
14091 # non-empty at configure time, or by adding -multi_module to the
14092 # link flags.
14093 rm -rf libconftest.dylib*
14094 echo "int foo(void){return 1;}" > conftest.c
14095 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14096-dynamiclib -Wl,-single_module conftest.c" >&5
14097 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14098 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14099 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014100 # If there is a non-empty error log, and "single_module"
14101 # appears in it, assume the flag caused a linker warning
14102 if test -s conftest.err && $GREP single_module conftest.err; then
14103 cat conftest.err >&5
14104 # Otherwise, if the output was created with a 0 exit code from
14105 # the compiler, it worked.
Cristy15f22012015-11-14 17:51:30 -050014106 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
cristy73bd4a52010-10-05 11:24:23 +000014107 lt_cv_apple_cc_single_mod=yes
14108 else
14109 cat conftest.err >&5
14110 fi
14111 rm -rf libconftest.dylib*
14112 rm -f conftest.*
14113 fi
14114fi
14115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14116$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000014117
cristy73bd4a52010-10-05 11:24:23 +000014118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14119$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014120if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014121 $as_echo_n "(cached) " >&6
14122else
14123 lt_cv_ld_exported_symbols_list=no
14124 save_LDFLAGS=$LDFLAGS
14125 echo "_main" > conftest.sym
14126 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128/* end confdefs.h. */
14129
14130int
14131main ()
14132{
14133
14134 ;
14135 return 0;
14136}
14137_ACEOF
14138if ac_fn_c_try_link "$LINENO"; then :
14139 lt_cv_ld_exported_symbols_list=yes
14140else
14141 lt_cv_ld_exported_symbols_list=no
14142fi
14143rm -f core conftest.err conftest.$ac_objext \
14144 conftest$ac_exeext conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050014145 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014146
14147fi
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14149$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000014150
cristy0c60a692010-11-04 01:09:47 +000014151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14152$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014153if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014154 $as_echo_n "(cached) " >&6
14155else
14156 lt_cv_ld_force_load=no
14157 cat > conftest.c << _LT_EOF
14158int forced_loaded() { return 2;}
14159_LT_EOF
14160 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14161 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14162 echo "$AR cru libconftest.a conftest.o" >&5
14163 $AR cru libconftest.a conftest.o 2>&5
14164 echo "$RANLIB libconftest.a" >&5
14165 $RANLIB libconftest.a 2>&5
14166 cat > conftest.c << _LT_EOF
14167int main() { return 0;}
14168_LT_EOF
14169 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14170 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14171 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014172 if test -s conftest.err && $GREP force_load conftest.err; then
14173 cat conftest.err >&5
Cristy15f22012015-11-14 17:51:30 -050014174 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
cristy0c60a692010-11-04 01:09:47 +000014175 lt_cv_ld_force_load=yes
14176 else
14177 cat conftest.err >&5
14178 fi
14179 rm -f conftest.err libconftest.a conftest conftest.c
14180 rm -rf conftest.dSYM
14181
14182fi
14183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14184$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014185 case $host_os in
14186 rhapsody* | darwin1.[012])
Cristy15f22012015-11-14 17:51:30 -050014187 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000014188 darwin1.*)
Cristy15f22012015-11-14 17:51:30 -050014189 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000014190 darwin*) # darwin 5.x on
14191 # if running on 10.5 or later, the deployment target defaults
14192 # to the OS version, if on x86, and 10.4, the deployment
14193 # target defaults to 10.4. Don't you love it?
14194 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14195 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Cristy15f22012015-11-14 17:51:30 -050014196 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14197 10.[012][,.]*)
14198 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000014199 10.*)
Cristy15f22012015-11-14 17:51:30 -050014200 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cristy73bd4a52010-10-05 11:24:23 +000014201 esac
14202 ;;
14203 esac
Cristy15f22012015-11-14 17:51:30 -050014204 if test yes = "$lt_cv_apple_cc_single_mod"; then
cristy73bd4a52010-10-05 11:24:23 +000014205 _lt_dar_single_mod='$single_module'
14206 fi
Cristy15f22012015-11-14 17:51:30 -050014207 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14208 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
cristy73bd4a52010-10-05 11:24:23 +000014209 else
Cristy15f22012015-11-14 17:51:30 -050014210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
cristy73bd4a52010-10-05 11:24:23 +000014211 fi
Cristy15f22012015-11-14 17:51:30 -050014212 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
cristy73bd4a52010-10-05 11:24:23 +000014213 _lt_dsymutil='~$DSYMUTIL $lib || :'
14214 else
14215 _lt_dsymutil=
14216 fi
14217 ;;
14218 esac
14219
Cristy15f22012015-11-14 17:51:30 -050014220# func_munge_path_list VARIABLE PATH
14221# -----------------------------------
14222# VARIABLE is name of variable containing _space_ separated list of
14223# directories to be munged by the contents of PATH, which is string
14224# having a format:
14225# "DIR[:DIR]:"
14226# string "DIR[ DIR]" will be prepended to VARIABLE
14227# ":DIR[:DIR]"
14228# string "DIR[ DIR]" will be appended to VARIABLE
14229# "DIRP[:DIRP]::[DIRA:]DIRA"
14230# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14231# "DIRA[ DIRA]" will be appended to VARIABLE
14232# "DIR[:DIR]"
14233# VARIABLE will be replaced by "DIR[ DIR]"
14234func_munge_path_list ()
14235{
14236 case x$2 in
14237 x)
14238 ;;
14239 *:)
14240 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14241 ;;
14242 x:*)
14243 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14244 ;;
14245 *::*)
14246 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14247 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14248 ;;
14249 *)
14250 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14251 ;;
14252 esac
14253}
14254
cristy73bd4a52010-10-05 11:24:23 +000014255for ac_header in dlfcn.h
14256do :
14257 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14258"
cristyda16f162011-02-19 23:52:17 +000014259if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014260 cat >>confdefs.h <<_ACEOF
14261#define HAVE_DLFCN_H 1
14262_ACEOF
14263
14264fi
14265
14266done
14267
14268
14269
cristy73bd4a52010-10-05 11:24:23 +000014270
cristyda16f162011-02-19 23:52:17 +000014271func_stripname_cnf ()
14272{
Cristy15f22012015-11-14 17:51:30 -050014273 case $2 in
14274 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14275 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
cristyda16f162011-02-19 23:52:17 +000014276 esac
14277} # func_stripname_cnf
14278
14279
14280
cristy73bd4a52010-10-05 11:24:23 +000014281
14282
14283# Set options
14284enable_win32_dll=yes
14285
14286case $host in
cristy0c60a692010-11-04 01:09:47 +000014287*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014288 if test -n "$ac_tool_prefix"; then
14289 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14290set dummy ${ac_tool_prefix}as; ac_word=$2
14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14292$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014293if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014294 $as_echo_n "(cached) " >&6
14295else
14296 if test -n "$AS"; then
14297 ac_cv_prog_AS="$AS" # Let the user override the test.
14298else
14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14300for as_dir in $PATH
14301do
14302 IFS=$as_save_IFS
14303 test -z "$as_dir" && as_dir=.
14304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014306 ac_cv_prog_AS="${ac_tool_prefix}as"
14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14308 break 2
14309 fi
14310done
14311 done
14312IFS=$as_save_IFS
14313
14314fi
14315fi
14316AS=$ac_cv_prog_AS
14317if test -n "$AS"; then
14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14319$as_echo "$AS" >&6; }
14320else
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14322$as_echo "no" >&6; }
14323fi
14324
14325
14326fi
14327if test -z "$ac_cv_prog_AS"; then
14328 ac_ct_AS=$AS
14329 # Extract the first word of "as", so it can be a program name with args.
14330set dummy as; ac_word=$2
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14332$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014333if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014334 $as_echo_n "(cached) " >&6
14335else
14336 if test -n "$ac_ct_AS"; then
14337 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14338else
14339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14340for as_dir in $PATH
14341do
14342 IFS=$as_save_IFS
14343 test -z "$as_dir" && as_dir=.
14344 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014346 ac_cv_prog_ac_ct_AS="as"
14347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14348 break 2
14349 fi
14350done
14351 done
14352IFS=$as_save_IFS
14353
14354fi
14355fi
14356ac_ct_AS=$ac_cv_prog_ac_ct_AS
14357if test -n "$ac_ct_AS"; then
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14359$as_echo "$ac_ct_AS" >&6; }
14360else
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14362$as_echo "no" >&6; }
14363fi
14364
14365 if test "x$ac_ct_AS" = x; then
14366 AS="false"
14367 else
14368 case $cross_compiling:$ac_tool_warned in
14369yes:)
14370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14372ac_tool_warned=yes ;;
14373esac
14374 AS=$ac_ct_AS
14375 fi
14376else
14377 AS="$ac_cv_prog_AS"
14378fi
14379
14380 if test -n "$ac_tool_prefix"; then
14381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14382set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14384$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014385if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014386 $as_echo_n "(cached) " >&6
14387else
14388 if test -n "$DLLTOOL"; then
14389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14390else
14391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14392for as_dir in $PATH
14393do
14394 IFS=$as_save_IFS
14395 test -z "$as_dir" && as_dir=.
14396 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14400 break 2
14401 fi
14402done
14403 done
14404IFS=$as_save_IFS
14405
14406fi
14407fi
14408DLLTOOL=$ac_cv_prog_DLLTOOL
14409if test -n "$DLLTOOL"; then
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14411$as_echo "$DLLTOOL" >&6; }
14412else
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14414$as_echo "no" >&6; }
14415fi
14416
14417
14418fi
14419if test -z "$ac_cv_prog_DLLTOOL"; then
14420 ac_ct_DLLTOOL=$DLLTOOL
14421 # Extract the first word of "dlltool", so it can be a program name with args.
14422set dummy dlltool; ac_word=$2
14423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14424$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014425if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014426 $as_echo_n "(cached) " >&6
14427else
14428 if test -n "$ac_ct_DLLTOOL"; then
14429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14430else
14431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14432for as_dir in $PATH
14433do
14434 IFS=$as_save_IFS
14435 test -z "$as_dir" && as_dir=.
14436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 break 2
14441 fi
14442done
14443 done
14444IFS=$as_save_IFS
14445
14446fi
14447fi
14448ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14449if test -n "$ac_ct_DLLTOOL"; then
14450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14451$as_echo "$ac_ct_DLLTOOL" >&6; }
14452else
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14454$as_echo "no" >&6; }
14455fi
14456
14457 if test "x$ac_ct_DLLTOOL" = x; then
14458 DLLTOOL="false"
14459 else
14460 case $cross_compiling:$ac_tool_warned in
14461yes:)
14462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14464ac_tool_warned=yes ;;
14465esac
14466 DLLTOOL=$ac_ct_DLLTOOL
14467 fi
14468else
14469 DLLTOOL="$ac_cv_prog_DLLTOOL"
14470fi
14471
14472 if test -n "$ac_tool_prefix"; then
14473 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14474set dummy ${ac_tool_prefix}objdump; ac_word=$2
14475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14476$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014477if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014478 $as_echo_n "(cached) " >&6
14479else
14480 if test -n "$OBJDUMP"; then
14481 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14482else
14483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484for as_dir in $PATH
14485do
14486 IFS=$as_save_IFS
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014490 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14492 break 2
14493 fi
14494done
14495 done
14496IFS=$as_save_IFS
14497
14498fi
14499fi
14500OBJDUMP=$ac_cv_prog_OBJDUMP
14501if test -n "$OBJDUMP"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14503$as_echo "$OBJDUMP" >&6; }
14504else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506$as_echo "no" >&6; }
14507fi
14508
14509
14510fi
14511if test -z "$ac_cv_prog_OBJDUMP"; then
14512 ac_ct_OBJDUMP=$OBJDUMP
14513 # Extract the first word of "objdump", so it can be a program name with args.
14514set dummy objdump; ac_word=$2
14515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014517if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014518 $as_echo_n "(cached) " >&6
14519else
14520 if test -n "$ac_ct_OBJDUMP"; then
14521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14522else
14523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14524for as_dir in $PATH
14525do
14526 IFS=$as_save_IFS
14527 test -z "$as_dir" && as_dir=.
14528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014530 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14532 break 2
14533 fi
14534done
14535 done
14536IFS=$as_save_IFS
14537
14538fi
14539fi
14540ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14541if test -n "$ac_ct_OBJDUMP"; then
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14543$as_echo "$ac_ct_OBJDUMP" >&6; }
14544else
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546$as_echo "no" >&6; }
14547fi
14548
14549 if test "x$ac_ct_OBJDUMP" = x; then
14550 OBJDUMP="false"
14551 else
14552 case $cross_compiling:$ac_tool_warned in
14553yes:)
14554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14556ac_tool_warned=yes ;;
14557esac
14558 OBJDUMP=$ac_ct_OBJDUMP
14559 fi
14560else
14561 OBJDUMP="$ac_cv_prog_OBJDUMP"
14562fi
14563
14564 ;;
14565esac
14566
14567test -z "$AS" && AS=as
14568
14569
14570
14571
14572
14573test -z "$DLLTOOL" && DLLTOOL=dlltool
14574
14575
14576
14577
14578
14579test -z "$OBJDUMP" && OBJDUMP=objdump
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589 # Check whether --enable-shared was given.
14590if test "${enable_shared+set}" = set; then :
14591 enableval=$enable_shared; p=${PACKAGE-default}
14592 case $enableval in
14593 yes) enable_shared=yes ;;
14594 no) enable_shared=no ;;
14595 *)
14596 enable_shared=no
14597 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014598 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000014599 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050014600 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014601 if test "X$pkg" = "X$p"; then
14602 enable_shared=yes
14603 fi
14604 done
Cristy15f22012015-11-14 17:51:30 -050014605 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014606 ;;
14607 esac
14608else
14609 enable_shared=yes
14610fi
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620 # Check whether --enable-static was given.
14621if test "${enable_static+set}" = set; then :
14622 enableval=$enable_static; p=${PACKAGE-default}
14623 case $enableval in
14624 yes) enable_static=yes ;;
14625 no) enable_static=no ;;
14626 *)
14627 enable_static=no
14628 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014629 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000014630 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050014631 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014632 if test "X$pkg" = "X$p"; then
14633 enable_static=yes
14634 fi
14635 done
Cristy15f22012015-11-14 17:51:30 -050014636 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014637 ;;
14638 esac
14639else
14640 enable_static=yes
14641fi
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652# Check whether --with-pic was given.
14653if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014654 withval=$with_pic; lt_p=${PACKAGE-default}
14655 case $withval in
14656 yes|no) pic_mode=$withval ;;
14657 *)
14658 pic_mode=default
14659 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014660 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy99bd5232011-12-07 14:38:20 +000014661 for lt_pkg in $withval; do
Cristy15f22012015-11-14 17:51:30 -050014662 IFS=$lt_save_ifs
cristy99bd5232011-12-07 14:38:20 +000014663 if test "X$lt_pkg" = "X$lt_p"; then
14664 pic_mode=yes
14665 fi
14666 done
Cristy15f22012015-11-14 17:51:30 -050014667 IFS=$lt_save_ifs
cristy99bd5232011-12-07 14:38:20 +000014668 ;;
14669 esac
cristy73bd4a52010-10-05 11:24:23 +000014670else
14671 pic_mode=default
14672fi
14673
14674
cristy73bd4a52010-10-05 11:24:23 +000014675
14676
14677
14678
14679
14680
14681 # Check whether --enable-fast-install was given.
14682if test "${enable_fast_install+set}" = set; then :
14683 enableval=$enable_fast_install; p=${PACKAGE-default}
14684 case $enableval in
14685 yes) enable_fast_install=yes ;;
14686 no) enable_fast_install=no ;;
14687 *)
14688 enable_fast_install=no
14689 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014690 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000014691 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050014692 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014693 if test "X$pkg" = "X$p"; then
14694 enable_fast_install=yes
14695 fi
14696 done
Cristy15f22012015-11-14 17:51:30 -050014697 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014698 ;;
14699 esac
14700else
14701 enable_fast_install=yes
14702fi
14703
14704
14705
14706
14707
14708
14709
14710
Cristy15f22012015-11-14 17:51:30 -050014711 shared_archive_member_spec=
14712case $host,$enable_shared in
14713power*-*-aix[5-9]*,yes)
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14715$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14716
14717# Check whether --with-aix-soname was given.
14718if test "${with_aix_soname+set}" = set; then :
14719 withval=$with_aix_soname; case $withval in
14720 aix|svr4|both)
14721 ;;
14722 *)
14723 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14724 ;;
14725 esac
14726 lt_cv_with_aix_soname=$with_aix_soname
14727else
14728 if ${lt_cv_with_aix_soname+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730else
14731 lt_cv_with_aix_soname=aix
14732fi
14733
14734 with_aix_soname=$lt_cv_with_aix_soname
14735fi
14736
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14738$as_echo "$with_aix_soname" >&6; }
14739 if test aix != "$with_aix_soname"; then
14740 # For the AIX way of multilib, we name the shared archive member
14741 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14742 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14743 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14744 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14745 if test 64 = "${OBJECT_MODE-32}"; then
14746 shared_archive_member_spec=shr_64
14747 else
14748 shared_archive_member_spec=shr
14749 fi
14750 fi
14751 ;;
14752*)
14753 with_aix_soname=aix
14754 ;;
14755esac
14756
14757
14758
14759
14760
14761
14762
cristy73bd4a52010-10-05 11:24:23 +000014763
14764
14765
14766# This can be used to rebuild libtool when needed
Cristy15f22012015-11-14 17:51:30 -050014767LIBTOOL_DEPS=$ltmain
cristy73bd4a52010-10-05 11:24:23 +000014768
14769# Always use our own libtool.
14770LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
cristy0c60a692010-11-04 01:09:47 +000014796
cristy99bd5232011-12-07 14:38:20 +000014797
14798
14799
14800
cristy73bd4a52010-10-05 11:24:23 +000014801test -z "$LN_S" && LN_S="ln -s"
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
Cristy15f22012015-11-14 17:51:30 -050014816if test -n "${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000014817 setopt NO_GLOB_SUBST
14818fi
14819
14820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14821$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014822if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014823 $as_echo_n "(cached) " >&6
14824else
14825 rm -f .libs 2>/dev/null
14826mkdir .libs 2>/dev/null
14827if test -d .libs; then
14828 lt_cv_objdir=.libs
14829else
14830 # MS-DOS does not allow filenames that begin with a dot.
14831 lt_cv_objdir=_libs
14832fi
14833rmdir .libs 2>/dev/null
14834fi
14835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14836$as_echo "$lt_cv_objdir" >&6; }
14837objdir=$lt_cv_objdir
14838
14839
14840
14841
14842
14843cat >>confdefs.h <<_ACEOF
14844#define LT_OBJDIR "$lt_cv_objdir/"
14845_ACEOF
14846
14847
14848
14849
cristy73bd4a52010-10-05 11:24:23 +000014850case $host_os in
14851aix3*)
14852 # AIX sometimes has problems with the GCC collect2 program. For some
14853 # reason, if we set the COLLECT_NAMES environment variable, the problems
14854 # vanish in a puff of smoke.
Cristy15f22012015-11-14 17:51:30 -050014855 if test set != "${COLLECT_NAMES+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000014856 COLLECT_NAMES=
14857 export COLLECT_NAMES
14858 fi
14859 ;;
14860esac
14861
cristy73bd4a52010-10-05 11:24:23 +000014862# Global variables:
14863ofile=libtool
14864can_build_shared=yes
14865
Cristy15f22012015-11-14 17:51:30 -050014866# All known linkers require a '.a' archive for static linking (except MSVC,
cristy73bd4a52010-10-05 11:24:23 +000014867# which needs '.lib').
14868libext=a
14869
Cristy15f22012015-11-14 17:51:30 -050014870with_gnu_ld=$lt_cv_prog_gnu_ld
cristy73bd4a52010-10-05 11:24:23 +000014871
Cristy15f22012015-11-14 17:51:30 -050014872old_CC=$CC
14873old_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014874
14875# Set sane defaults for various variables
14876test -z "$CC" && CC=cc
14877test -z "$LTCC" && LTCC=$CC
14878test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14879test -z "$LD" && LD=ld
14880test -z "$ac_objext" && ac_objext=o
14881
Cristy15f22012015-11-14 17:51:30 -050014882func_cc_basename $compiler
14883cc_basename=$func_cc_basename_result
cristy73bd4a52010-10-05 11:24:23 +000014884
14885
14886# Only perform the check for file, if the check method requires it
14887test -z "$MAGIC_CMD" && MAGIC_CMD=file
14888case $deplibs_check_method in
14889file_magic*)
14890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
14892$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014893if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014894 $as_echo_n "(cached) " >&6
14895else
14896 case $MAGIC_CMD in
14897[\\/*] | ?:[\\/]*)
Cristy15f22012015-11-14 17:51:30 -050014898 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000014899 ;;
14900*)
Cristy15f22012015-11-14 17:51:30 -050014901 lt_save_MAGIC_CMD=$MAGIC_CMD
14902 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000014903 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14904 for ac_dir in $ac_dummy; do
Cristy15f22012015-11-14 17:51:30 -050014905 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014906 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050014907 if test -f "$ac_dir/${ac_tool_prefix}file"; then
14908 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
cristy73bd4a52010-10-05 11:24:23 +000014909 if test -n "$file_magic_test_file"; then
14910 case $deplibs_check_method in
14911 "file_magic "*)
14912 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Cristy15f22012015-11-14 17:51:30 -050014913 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000014914 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14915 $EGREP "$file_magic_regex" > /dev/null; then
14916 :
14917 else
14918 cat <<_LT_EOF 1>&2
14919
14920*** Warning: the command libtool uses to detect shared libraries,
14921*** $file_magic_cmd, produces output that libtool cannot recognize.
14922*** The result is that libtool may fail to recognize shared libraries
14923*** as such. This will affect the creation of libtool libraries that
14924*** depend on shared libraries, but programs linked with such libtool
14925*** libraries will work regardless of this problem. Nevertheless, you
14926*** may want to report the problem to your system manager and/or to
14927*** bug-libtool@gnu.org
14928
14929_LT_EOF
14930 fi ;;
14931 esac
14932 fi
14933 break
14934 fi
14935 done
Cristy15f22012015-11-14 17:51:30 -050014936 IFS=$lt_save_ifs
14937 MAGIC_CMD=$lt_save_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000014938 ;;
14939esac
14940fi
14941
Cristy15f22012015-11-14 17:51:30 -050014942MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000014943if test -n "$MAGIC_CMD"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
14945$as_echo "$MAGIC_CMD" >&6; }
14946else
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14948$as_echo "no" >&6; }
14949fi
14950
14951
14952
14953
14954
14955if test -z "$lt_cv_path_MAGIC_CMD"; then
14956 if test -n "$ac_tool_prefix"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
14958$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014959if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014960 $as_echo_n "(cached) " >&6
14961else
14962 case $MAGIC_CMD in
14963[\\/*] | ?:[\\/]*)
Cristy15f22012015-11-14 17:51:30 -050014964 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000014965 ;;
14966*)
Cristy15f22012015-11-14 17:51:30 -050014967 lt_save_MAGIC_CMD=$MAGIC_CMD
14968 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000014969 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
14970 for ac_dir in $ac_dummy; do
Cristy15f22012015-11-14 17:51:30 -050014971 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014972 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050014973 if test -f "$ac_dir/file"; then
14974 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
cristy73bd4a52010-10-05 11:24:23 +000014975 if test -n "$file_magic_test_file"; then
14976 case $deplibs_check_method in
14977 "file_magic "*)
14978 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Cristy15f22012015-11-14 17:51:30 -050014979 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000014980 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
14981 $EGREP "$file_magic_regex" > /dev/null; then
14982 :
14983 else
14984 cat <<_LT_EOF 1>&2
14985
14986*** Warning: the command libtool uses to detect shared libraries,
14987*** $file_magic_cmd, produces output that libtool cannot recognize.
14988*** The result is that libtool may fail to recognize shared libraries
14989*** as such. This will affect the creation of libtool libraries that
14990*** depend on shared libraries, but programs linked with such libtool
14991*** libraries will work regardless of this problem. Nevertheless, you
14992*** may want to report the problem to your system manager and/or to
14993*** bug-libtool@gnu.org
14994
14995_LT_EOF
14996 fi ;;
14997 esac
14998 fi
14999 break
15000 fi
15001 done
Cristy15f22012015-11-14 17:51:30 -050015002 IFS=$lt_save_ifs
15003 MAGIC_CMD=$lt_save_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015004 ;;
15005esac
15006fi
15007
Cristy15f22012015-11-14 17:51:30 -050015008MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015009if test -n "$MAGIC_CMD"; then
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15011$as_echo "$MAGIC_CMD" >&6; }
15012else
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15014$as_echo "no" >&6; }
15015fi
15016
15017
15018 else
15019 MAGIC_CMD=:
15020 fi
15021fi
15022
15023 fi
15024 ;;
15025esac
15026
15027# Use C for the default configuration in the libtool script
15028
Cristy15f22012015-11-14 17:51:30 -050015029lt_save_CC=$CC
cristy73bd4a52010-10-05 11:24:23 +000015030ac_ext=c
15031ac_cpp='$CPP $CPPFLAGS'
15032ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15033ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15034ac_compiler_gnu=$ac_cv_c_compiler_gnu
15035
15036
15037# Source file extension for C test sources.
15038ac_ext=c
15039
15040# Object file extension for compiled C test sources.
15041objext=o
15042objext=$objext
15043
15044# Code to be used in simple compile tests
15045lt_simple_compile_test_code="int some_variable = 0;"
15046
15047# Code to be used in simple link tests
15048lt_simple_link_test_code='int main(){return(0);}'
15049
15050
15051
15052
15053
15054
15055
15056# If no C compiler was specified, use CC.
15057LTCC=${LTCC-"$CC"}
15058
15059# If no C compiler flags were specified, use CFLAGS.
15060LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15061
15062# Allow CC to be a program name with arguments.
15063compiler=$CC
15064
15065# Save the default compiler, since it gets overwritten when the other
15066# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15067compiler_DEFAULT=$CC
15068
15069# save warnings/boilerplate of simple test code
15070ac_outfile=conftest.$ac_objext
15071echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15072eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15073_lt_compiler_boilerplate=`cat conftest.err`
15074$RM conftest*
15075
15076ac_outfile=conftest.$ac_objext
15077echo "$lt_simple_link_test_code" >conftest.$ac_ext
15078eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15079_lt_linker_boilerplate=`cat conftest.err`
15080$RM -r conftest*
15081
15082
15083## CAVEAT EMPTOR:
15084## There is no encapsulation within the following macros, do not change
15085## the running order or otherwise move them around unless you know exactly
15086## what you are doing...
15087if test -n "$compiler"; then
15088
15089lt_prog_compiler_no_builtin_flag=
15090
Cristy15f22012015-11-14 17:51:30 -050015091if test yes = "$GCC"; then
cristy0c60a692010-11-04 01:09:47 +000015092 case $cc_basename in
15093 nvcc*)
15094 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15095 *)
15096 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15097 esac
cristy73bd4a52010-10-05 11:24:23 +000015098
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15100$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015101if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015102 $as_echo_n "(cached) " >&6
15103else
15104 lt_cv_prog_compiler_rtti_exceptions=no
15105 ac_outfile=conftest.$ac_objext
15106 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050015107 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000015108 # Insert the option either (1) after the last *FLAGS variable, or
15109 # (2) before a word containing "conftest.", or (3) at the end.
15110 # Note that $ac_compile itself does not contain backslashes and begins
15111 # with a dollar sign (not a hyphen), so the echo should work correctly.
15112 # The option is referenced via a variable to avoid confusing sed.
15113 lt_compile=`echo "$ac_compile" | $SED \
15114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15116 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015117 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015118 (eval "$lt_compile" 2>conftest.err)
15119 ac_status=$?
15120 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015122 if (exit $ac_status) && test -s "$ac_outfile"; then
15123 # The compiler can only warn and ignore the option if not recognized
15124 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015125 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015126 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15127 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15128 lt_cv_prog_compiler_rtti_exceptions=yes
15129 fi
15130 fi
15131 $RM conftest*
15132
15133fi
15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15135$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15136
Cristy15f22012015-11-14 17:51:30 -050015137if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
cristy73bd4a52010-10-05 11:24:23 +000015138 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15139else
15140 :
15141fi
15142
15143fi
15144
15145
15146
15147
15148
15149
15150 lt_prog_compiler_wl=
15151lt_prog_compiler_pic=
15152lt_prog_compiler_static=
15153
cristy73bd4a52010-10-05 11:24:23 +000015154
Cristy15f22012015-11-14 17:51:30 -050015155 if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000015156 lt_prog_compiler_wl='-Wl,'
15157 lt_prog_compiler_static='-static'
15158
15159 case $host_os in
15160 aix*)
15161 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050015162 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000015163 # AIX 5 now supports IA64 processor
15164 lt_prog_compiler_static='-Bstatic'
15165 fi
Cristy15f22012015-11-14 17:51:30 -050015166 lt_prog_compiler_pic='-fPIC'
cristy73bd4a52010-10-05 11:24:23 +000015167 ;;
15168
15169 amigaos*)
15170 case $host_cpu in
15171 powerpc)
15172 # see comment about AmigaOS4 .so support
15173 lt_prog_compiler_pic='-fPIC'
15174 ;;
15175 m68k)
15176 # FIXME: we need at least 68020 code to build shared libraries, but
Cristy15f22012015-11-14 17:51:30 -050015177 # adding the '-m68020' flag to GCC prevents building anything better,
15178 # like '-m68040'.
cristy73bd4a52010-10-05 11:24:23 +000015179 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15180 ;;
15181 esac
15182 ;;
15183
15184 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15185 # PIC is the default for these OSes.
15186 ;;
15187
15188 mingw* | cygwin* | pw32* | os2* | cegcc*)
15189 # This hack is so that the source file can tell whether it is being
15190 # built for inclusion in a dll (and should export symbols for example).
15191 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15192 # (--disable-auto-import) libraries
15193 lt_prog_compiler_pic='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050015194 case $host_os in
15195 os2*)
15196 lt_prog_compiler_static='$wl-static'
15197 ;;
15198 esac
cristy73bd4a52010-10-05 11:24:23 +000015199 ;;
15200
15201 darwin* | rhapsody*)
15202 # PIC is the default on this platform
15203 # Common symbols not allowed in MH_DYLIB files
15204 lt_prog_compiler_pic='-fno-common'
15205 ;;
15206
cristy0c60a692010-11-04 01:09:47 +000015207 haiku*)
15208 # PIC is the default for Haiku.
15209 # The "-static" flag exists, but is broken.
15210 lt_prog_compiler_static=
15211 ;;
15212
cristy73bd4a52010-10-05 11:24:23 +000015213 hpux*)
15214 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15215 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15216 # sets the default TLS model and affects inlining.
15217 case $host_cpu in
15218 hppa*64*)
15219 # +Z the default
15220 ;;
15221 *)
15222 lt_prog_compiler_pic='-fPIC'
15223 ;;
15224 esac
15225 ;;
15226
15227 interix[3-9]*)
15228 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15229 # Instead, we relocate shared libraries at runtime.
15230 ;;
15231
15232 msdosdjgpp*)
15233 # Just because we use GCC doesn't mean we suddenly get shared libraries
15234 # on systems that don't support them.
15235 lt_prog_compiler_can_build_shared=no
15236 enable_shared=no
15237 ;;
15238
15239 *nto* | *qnx*)
15240 # QNX uses GNU C++, but need to define -shared option too, otherwise
15241 # it will coredump.
15242 lt_prog_compiler_pic='-fPIC -shared'
15243 ;;
15244
15245 sysv4*MP*)
15246 if test -d /usr/nec; then
15247 lt_prog_compiler_pic=-Kconform_pic
15248 fi
15249 ;;
15250
15251 *)
15252 lt_prog_compiler_pic='-fPIC'
15253 ;;
15254 esac
cristy0c60a692010-11-04 01:09:47 +000015255
15256 case $cc_basename in
15257 nvcc*) # Cuda Compiler Driver 2.2
15258 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015259 if test -n "$lt_prog_compiler_pic"; then
15260 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15261 fi
cristy0c60a692010-11-04 01:09:47 +000015262 ;;
15263 esac
cristy73bd4a52010-10-05 11:24:23 +000015264 else
15265 # PORTME Check for flag to pass linker flags through the system compiler.
15266 case $host_os in
15267 aix*)
15268 lt_prog_compiler_wl='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050015269 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000015270 # AIX 5 now supports IA64 processor
15271 lt_prog_compiler_static='-Bstatic'
15272 else
15273 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15274 fi
15275 ;;
15276
Cristy15f22012015-11-14 17:51:30 -050015277 darwin* | rhapsody*)
15278 # PIC is the default on this platform
15279 # Common symbols not allowed in MH_DYLIB files
15280 lt_prog_compiler_pic='-fno-common'
15281 case $cc_basename in
15282 nagfor*)
15283 # NAG Fortran compiler
15284 lt_prog_compiler_wl='-Wl,-Wl,,'
15285 lt_prog_compiler_pic='-PIC'
15286 lt_prog_compiler_static='-Bstatic'
15287 ;;
15288 esac
15289 ;;
15290
cristy73bd4a52010-10-05 11:24:23 +000015291 mingw* | cygwin* | pw32* | os2* | cegcc*)
15292 # This hack is so that the source file can tell whether it is being
15293 # built for inclusion in a dll (and should export symbols for example).
15294 lt_prog_compiler_pic='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050015295 case $host_os in
15296 os2*)
15297 lt_prog_compiler_static='$wl-static'
15298 ;;
15299 esac
cristy73bd4a52010-10-05 11:24:23 +000015300 ;;
15301
15302 hpux9* | hpux10* | hpux11*)
15303 lt_prog_compiler_wl='-Wl,'
15304 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15305 # not for PA HP-UX.
15306 case $host_cpu in
15307 hppa*64*|ia64*)
15308 # +Z the default
15309 ;;
15310 *)
15311 lt_prog_compiler_pic='+Z'
15312 ;;
15313 esac
15314 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Cristy15f22012015-11-14 17:51:30 -050015315 lt_prog_compiler_static='$wl-a ${wl}archive'
cristy73bd4a52010-10-05 11:24:23 +000015316 ;;
15317
15318 irix5* | irix6* | nonstopux*)
15319 lt_prog_compiler_wl='-Wl,'
15320 # PIC (with -KPIC) is the default.
15321 lt_prog_compiler_static='-non_shared'
15322 ;;
15323
Cristy15f22012015-11-14 17:51:30 -050015324 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000015325 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050015326 # old Intel for x86_64, which still supported -KPIC.
cristy73bd4a52010-10-05 11:24:23 +000015327 ecc*)
15328 lt_prog_compiler_wl='-Wl,'
15329 lt_prog_compiler_pic='-KPIC'
15330 lt_prog_compiler_static='-static'
15331 ;;
15332 # icc used to be incompatible with GCC.
15333 # ICC 10 doesn't accept -KPIC any more.
15334 icc* | ifort*)
15335 lt_prog_compiler_wl='-Wl,'
15336 lt_prog_compiler_pic='-fPIC'
15337 lt_prog_compiler_static='-static'
15338 ;;
15339 # Lahey Fortran 8.1.
15340 lf95*)
15341 lt_prog_compiler_wl='-Wl,'
15342 lt_prog_compiler_pic='--shared'
15343 lt_prog_compiler_static='--static'
15344 ;;
cristyda16f162011-02-19 23:52:17 +000015345 nagfor*)
15346 # NAG Fortran compiler
15347 lt_prog_compiler_wl='-Wl,-Wl,,'
15348 lt_prog_compiler_pic='-PIC'
15349 lt_prog_compiler_static='-Bstatic'
15350 ;;
Cristy15f22012015-11-14 17:51:30 -050015351 tcc*)
15352 # Fabrice Bellard et al's Tiny C Compiler
15353 lt_prog_compiler_wl='-Wl,'
15354 lt_prog_compiler_pic='-fPIC'
15355 lt_prog_compiler_static='-static'
15356 ;;
cristy0c60a692010-11-04 01:09:47 +000015357 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015358 # Portland Group compilers (*not* the Pentium gcc compiler,
15359 # which looks to be a dead project)
15360 lt_prog_compiler_wl='-Wl,'
15361 lt_prog_compiler_pic='-fpic'
15362 lt_prog_compiler_static='-Bstatic'
15363 ;;
15364 ccc*)
15365 lt_prog_compiler_wl='-Wl,'
15366 # All Alpha code is PIC.
15367 lt_prog_compiler_static='-non_shared'
15368 ;;
cristy0c60a692010-11-04 01:09:47 +000015369 xl* | bgxl* | bgf* | mpixl*)
15370 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015371 lt_prog_compiler_wl='-Wl,'
15372 lt_prog_compiler_pic='-qpic'
15373 lt_prog_compiler_static='-qstaticlink'
15374 ;;
15375 *)
15376 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015377 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015378 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15379 lt_prog_compiler_pic='-KPIC'
15380 lt_prog_compiler_static='-Bstatic'
15381 lt_prog_compiler_wl=''
15382 ;;
cristy99bd5232011-12-07 14:38:20 +000015383 *Sun\ F* | *Sun*Fortran*)
15384 lt_prog_compiler_pic='-KPIC'
15385 lt_prog_compiler_static='-Bstatic'
15386 lt_prog_compiler_wl='-Qoption ld '
15387 ;;
cristy73bd4a52010-10-05 11:24:23 +000015388 *Sun\ C*)
15389 # Sun C 5.9
15390 lt_prog_compiler_pic='-KPIC'
15391 lt_prog_compiler_static='-Bstatic'
15392 lt_prog_compiler_wl='-Wl,'
15393 ;;
cristy99bd5232011-12-07 14:38:20 +000015394 *Intel*\ [CF]*Compiler*)
15395 lt_prog_compiler_wl='-Wl,'
15396 lt_prog_compiler_pic='-fPIC'
15397 lt_prog_compiler_static='-static'
15398 ;;
15399 *Portland\ Group*)
15400 lt_prog_compiler_wl='-Wl,'
15401 lt_prog_compiler_pic='-fpic'
15402 lt_prog_compiler_static='-Bstatic'
15403 ;;
cristy73bd4a52010-10-05 11:24:23 +000015404 esac
15405 ;;
15406 esac
15407 ;;
15408
15409 newsos6)
15410 lt_prog_compiler_pic='-KPIC'
15411 lt_prog_compiler_static='-Bstatic'
15412 ;;
15413
15414 *nto* | *qnx*)
15415 # QNX uses GNU C++, but need to define -shared option too, otherwise
15416 # it will coredump.
15417 lt_prog_compiler_pic='-fPIC -shared'
15418 ;;
15419
15420 osf3* | osf4* | osf5*)
15421 lt_prog_compiler_wl='-Wl,'
15422 # All OSF/1 code is PIC.
15423 lt_prog_compiler_static='-non_shared'
15424 ;;
15425
15426 rdos*)
15427 lt_prog_compiler_static='-non_shared'
15428 ;;
15429
15430 solaris*)
15431 lt_prog_compiler_pic='-KPIC'
15432 lt_prog_compiler_static='-Bstatic'
15433 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015434 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015435 lt_prog_compiler_wl='-Qoption ld ';;
15436 *)
15437 lt_prog_compiler_wl='-Wl,';;
15438 esac
15439 ;;
15440
15441 sunos4*)
15442 lt_prog_compiler_wl='-Qoption ld '
15443 lt_prog_compiler_pic='-PIC'
15444 lt_prog_compiler_static='-Bstatic'
15445 ;;
15446
15447 sysv4 | sysv4.2uw2* | sysv4.3*)
15448 lt_prog_compiler_wl='-Wl,'
15449 lt_prog_compiler_pic='-KPIC'
15450 lt_prog_compiler_static='-Bstatic'
15451 ;;
15452
15453 sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050015454 if test -d /usr/nec; then
cristy73bd4a52010-10-05 11:24:23 +000015455 lt_prog_compiler_pic='-Kconform_pic'
15456 lt_prog_compiler_static='-Bstatic'
15457 fi
15458 ;;
15459
15460 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15461 lt_prog_compiler_wl='-Wl,'
15462 lt_prog_compiler_pic='-KPIC'
15463 lt_prog_compiler_static='-Bstatic'
15464 ;;
15465
15466 unicos*)
15467 lt_prog_compiler_wl='-Wl,'
15468 lt_prog_compiler_can_build_shared=no
15469 ;;
15470
15471 uts4*)
15472 lt_prog_compiler_pic='-pic'
15473 lt_prog_compiler_static='-Bstatic'
15474 ;;
15475
15476 *)
15477 lt_prog_compiler_can_build_shared=no
15478 ;;
15479 esac
15480 fi
15481
15482case $host_os in
Cristy15f22012015-11-14 17:51:30 -050015483 # For platforms that do not support PIC, -DPIC is meaningless:
cristy73bd4a52010-10-05 11:24:23 +000015484 *djgpp*)
15485 lt_prog_compiler_pic=
15486 ;;
15487 *)
15488 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15489 ;;
15490esac
cristy73bd4a52010-10-05 11:24:23 +000015491
cristyda16f162011-02-19 23:52:17 +000015492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15493$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15494if ${lt_cv_prog_compiler_pic+:} false; then :
15495 $as_echo_n "(cached) " >&6
15496else
15497 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15498fi
15499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15500$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15501lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015502
15503#
15504# Check to make sure the PIC flag actually works.
15505#
15506if test -n "$lt_prog_compiler_pic"; then
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15508$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015509if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015510 $as_echo_n "(cached) " >&6
15511else
15512 lt_cv_prog_compiler_pic_works=no
15513 ac_outfile=conftest.$ac_objext
15514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050015515 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000015516 # Insert the option either (1) after the last *FLAGS variable, or
15517 # (2) before a word containing "conftest.", or (3) at the end.
15518 # Note that $ac_compile itself does not contain backslashes and begins
15519 # with a dollar sign (not a hyphen), so the echo should work correctly.
15520 # The option is referenced via a variable to avoid confusing sed.
15521 lt_compile=`echo "$ac_compile" | $SED \
15522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15524 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015526 (eval "$lt_compile" 2>conftest.err)
15527 ac_status=$?
15528 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015530 if (exit $ac_status) && test -s "$ac_outfile"; then
15531 # The compiler can only warn and ignore the option if not recognized
15532 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15536 lt_cv_prog_compiler_pic_works=yes
15537 fi
15538 fi
15539 $RM conftest*
15540
15541fi
15542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15543$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15544
Cristy15f22012015-11-14 17:51:30 -050015545if test yes = "$lt_cv_prog_compiler_pic_works"; then
cristy73bd4a52010-10-05 11:24:23 +000015546 case $lt_prog_compiler_pic in
15547 "" | " "*) ;;
15548 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15549 esac
15550else
15551 lt_prog_compiler_pic=
15552 lt_prog_compiler_can_build_shared=no
15553fi
15554
15555fi
15556
15557
15558
15559
15560
15561
cristyda16f162011-02-19 23:52:17 +000015562
15563
15564
15565
15566
cristy73bd4a52010-10-05 11:24:23 +000015567#
15568# Check to make sure the static flag actually works.
15569#
15570wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15572$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015573if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015574 $as_echo_n "(cached) " >&6
15575else
15576 lt_cv_prog_compiler_static_works=no
Cristy15f22012015-11-14 17:51:30 -050015577 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000015578 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15579 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15580 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15581 # The linker can only warn and ignore the option if not recognized
15582 # So say no if there are warnings
15583 if test -s conftest.err; then
15584 # Append any errors to the config.log.
15585 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015586 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015587 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15588 if diff conftest.exp conftest.er2 >/dev/null; then
15589 lt_cv_prog_compiler_static_works=yes
15590 fi
15591 else
15592 lt_cv_prog_compiler_static_works=yes
15593 fi
15594 fi
15595 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050015596 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000015597
15598fi
15599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15600$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15601
Cristy15f22012015-11-14 17:51:30 -050015602if test yes = "$lt_cv_prog_compiler_static_works"; then
cristy73bd4a52010-10-05 11:24:23 +000015603 :
15604else
15605 lt_prog_compiler_static=
15606fi
15607
15608
15609
15610
15611
15612
15613
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15615$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015616if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015617 $as_echo_n "(cached) " >&6
15618else
15619 lt_cv_prog_compiler_c_o=no
15620 $RM -r conftest 2>/dev/null
15621 mkdir conftest
15622 cd conftest
15623 mkdir out
15624 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15625
15626 lt_compiler_flag="-o out/conftest2.$ac_objext"
15627 # Insert the option either (1) after the last *FLAGS variable, or
15628 # (2) before a word containing "conftest.", or (3) at the end.
15629 # Note that $ac_compile itself does not contain backslashes and begins
15630 # with a dollar sign (not a hyphen), so the echo should work correctly.
15631 lt_compile=`echo "$ac_compile" | $SED \
15632 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15633 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15634 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015635 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015636 (eval "$lt_compile" 2>out/conftest.err)
15637 ac_status=$?
15638 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015640 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15641 then
15642 # The compiler can only warn and ignore the option if not recognized
15643 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015644 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015645 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15646 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15647 lt_cv_prog_compiler_c_o=yes
15648 fi
15649 fi
15650 chmod u+w . 2>&5
15651 $RM conftest*
15652 # SGI C++ compiler will create directory out/ii_files/ for
15653 # template instantiation
15654 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15655 $RM out/* && rmdir out
15656 cd ..
15657 $RM -r conftest
15658 $RM conftest*
15659
15660fi
15661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15662$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15663
15664
15665
15666
15667
15668
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15670$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015671if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015672 $as_echo_n "(cached) " >&6
15673else
15674 lt_cv_prog_compiler_c_o=no
15675 $RM -r conftest 2>/dev/null
15676 mkdir conftest
15677 cd conftest
15678 mkdir out
15679 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15680
15681 lt_compiler_flag="-o out/conftest2.$ac_objext"
15682 # Insert the option either (1) after the last *FLAGS variable, or
15683 # (2) before a word containing "conftest.", or (3) at the end.
15684 # Note that $ac_compile itself does not contain backslashes and begins
15685 # with a dollar sign (not a hyphen), so the echo should work correctly.
15686 lt_compile=`echo "$ac_compile" | $SED \
15687 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15688 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15689 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015690 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015691 (eval "$lt_compile" 2>out/conftest.err)
15692 ac_status=$?
15693 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015695 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15696 then
15697 # The compiler can only warn and ignore the option if not recognized
15698 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015699 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015700 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15701 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15702 lt_cv_prog_compiler_c_o=yes
15703 fi
15704 fi
15705 chmod u+w . 2>&5
15706 $RM conftest*
15707 # SGI C++ compiler will create directory out/ii_files/ for
15708 # template instantiation
15709 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15710 $RM out/* && rmdir out
15711 cd ..
15712 $RM -r conftest
15713 $RM conftest*
15714
15715fi
15716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15717$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15718
15719
15720
15721
Cristy15f22012015-11-14 17:51:30 -050015722hard_links=nottested
15723if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
cristy73bd4a52010-10-05 11:24:23 +000015724 # do not overwrite the value of need_locks provided by the user
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15726$as_echo_n "checking if we can lock with hard links... " >&6; }
15727 hard_links=yes
15728 $RM conftest*
15729 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15730 touch conftest.a
15731 ln conftest.a conftest.b 2>&5 || hard_links=no
15732 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15734$as_echo "$hard_links" >&6; }
Cristy15f22012015-11-14 17:51:30 -050015735 if test no = "$hard_links"; then
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15737$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cristy73bd4a52010-10-05 11:24:23 +000015738 need_locks=warn
15739 fi
15740else
15741 need_locks=no
15742fi
15743
15744
15745
15746
15747
15748
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15750$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15751
15752 runpath_var=
15753 allow_undefined_flag=
15754 always_export_symbols=no
15755 archive_cmds=
15756 archive_expsym_cmds=
15757 compiler_needs_object=no
15758 enable_shared_with_static_runtimes=no
15759 export_dynamic_flag_spec=
15760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15761 hardcode_automatic=no
15762 hardcode_direct=no
15763 hardcode_direct_absolute=no
15764 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015765 hardcode_libdir_separator=
15766 hardcode_minus_L=no
15767 hardcode_shlibpath_var=unsupported
15768 inherit_rpath=no
15769 link_all_deplibs=unknown
15770 module_cmds=
15771 module_expsym_cmds=
15772 old_archive_from_new_cmds=
15773 old_archive_from_expsyms_cmds=
15774 thread_safe_flag_spec=
15775 whole_archive_flag_spec=
15776 # include_expsyms should be a list of space-separated symbols to be *always*
15777 # included in the symbol list
15778 include_expsyms=
15779 # exclude_expsyms can be an extended regexp of symbols to exclude
Cristy15f22012015-11-14 17:51:30 -050015780 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15781 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15782 # as well as any symbol that contains 'd'.
cristy73bd4a52010-10-05 11:24:23 +000015783 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15784 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15785 # platforms (ab)use it in PIC code, but their linkers get confused if
15786 # the symbol is explicitly referenced. Since portable code cannot
15787 # rely on this symbol name, it's probably fine to never include it in
15788 # preloaded symbol tables.
15789 # Exclude shared library initialization/finalization symbols.
15790 extract_expsyms_cmds=
15791
15792 case $host_os in
15793 cygwin* | mingw* | pw32* | cegcc*)
15794 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15795 # When not using gcc, we currently assume that we are using
15796 # Microsoft Visual C++.
Cristy15f22012015-11-14 17:51:30 -050015797 if test yes != "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000015798 with_gnu_ld=no
15799 fi
15800 ;;
15801 interix*)
15802 # we just hope/assume this is gcc and not c89 (= MSVC++)
15803 with_gnu_ld=yes
15804 ;;
Cristy15f22012015-11-14 17:51:30 -050015805 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000015806 with_gnu_ld=no
15807 ;;
15808 esac
15809
15810 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015811
15812 # On some targets, GNU ld is compatible enough with the native linker
15813 # that we're better off using the native interface for both.
15814 lt_use_gnu_ld_interface=no
Cristy15f22012015-11-14 17:51:30 -050015815 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000015816 case $host_os in
15817 aix*)
15818 # The AIX port of GNU ld has always aspired to compatibility
15819 # with the native linker. However, as the warning in the GNU ld
15820 # block says, versions before 2.19.5* couldn't really create working
15821 # shared libraries, regardless of the interface used.
15822 case `$LD -v 2>&1` in
15823 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15824 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15825 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15826 *)
15827 lt_use_gnu_ld_interface=yes
15828 ;;
15829 esac
15830 ;;
15831 *)
15832 lt_use_gnu_ld_interface=yes
15833 ;;
15834 esac
15835 fi
15836
Cristy15f22012015-11-14 17:51:30 -050015837 if test yes = "$lt_use_gnu_ld_interface"; then
cristy73bd4a52010-10-05 11:24:23 +000015838 # If archive_cmds runs LD, not CC, wlarc should be empty
Cristy15f22012015-11-14 17:51:30 -050015839 wlarc='$wl'
cristy73bd4a52010-10-05 11:24:23 +000015840
15841 # Set some defaults for GNU ld with shared library support. These
15842 # are reset later if shared libraries are not supported. Putting them
15843 # here allows them to be overridden if necessary.
15844 runpath_var=LD_RUN_PATH
Cristy15f22012015-11-14 17:51:30 -050015845 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15846 export_dynamic_flag_spec='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000015847 # ancient GNU ld didn't support --whole-archive et. al.
15848 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050015849 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015850 else
15851 whole_archive_flag_spec=
15852 fi
15853 supports_anon_versioning=no
Cristy15f22012015-11-14 17:51:30 -050015854 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015855 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15859 *\ 2.11.*) ;; # other 2.11 versions
15860 *) supports_anon_versioning=yes ;;
15861 esac
15862
15863 # See if GNU ld supports shared libraries.
15864 case $host_os in
15865 aix[3-9]*)
15866 # On AIX/PPC, the GNU linker is very broken
Cristy15f22012015-11-14 17:51:30 -050015867 if test ia64 != "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000015868 ld_shlibs=no
15869 cat <<_LT_EOF 1>&2
15870
cristy0c60a692010-11-04 01:09:47 +000015871*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015872*** to be unable to reliably create shared libraries on AIX.
15873*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015874*** really care for shared libraries, you may want to install binutils
15875*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15876*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015877
15878_LT_EOF
15879 fi
15880 ;;
15881
15882 amigaos*)
15883 case $host_cpu in
15884 powerpc)
15885 # see comment about AmigaOS4 .so support
Cristy15f22012015-11-14 17:51:30 -050015886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015887 archive_expsym_cmds=''
15888 ;;
15889 m68k)
15890 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)'
15891 hardcode_libdir_flag_spec='-L$libdir'
15892 hardcode_minus_L=yes
15893 ;;
15894 esac
15895 ;;
15896
15897 beos*)
15898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15899 allow_undefined_flag=unsupported
15900 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15901 # support --undefined. This deserves some investigation. FIXME
Cristy15f22012015-11-14 17:51:30 -050015902 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015903 else
15904 ld_shlibs=no
15905 fi
15906 ;;
15907
15908 cygwin* | mingw* | pw32* | cegcc*)
15909 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15910 # as there is no search path for DLLs.
15911 hardcode_libdir_flag_spec='-L$libdir'
Cristy15f22012015-11-14 17:51:30 -050015912 export_dynamic_flag_spec='$wl--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000015913 allow_undefined_flag=unsupported
15914 always_export_symbols=no
15915 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000015916 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'
15917 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 +000015918
15919 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050015920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15921 # If the export-symbols file already is a .def file, use it as
15922 # is; otherwise, prepend EXPORTS...
15923 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
15924 cp $export_symbols $output_objdir/$soname.def;
15925 else
15926 echo EXPORTS > $output_objdir/$soname.def;
15927 cat $export_symbols >> $output_objdir/$soname.def;
15928 fi~
15929 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
cristy73bd4a52010-10-05 11:24:23 +000015930 else
15931 ld_shlibs=no
15932 fi
15933 ;;
15934
cristy0c60a692010-11-04 01:09:47 +000015935 haiku*)
Cristy15f22012015-11-14 17:51:30 -050015936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy0c60a692010-11-04 01:09:47 +000015937 link_all_deplibs=yes
15938 ;;
15939
Cristy15f22012015-11-14 17:51:30 -050015940 os2*)
15941 hardcode_libdir_flag_spec='-L$libdir'
15942 hardcode_minus_L=yes
15943 allow_undefined_flag=unsupported
15944 shrext_cmds=.dll
15945 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15946 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15947 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15948 $ECHO EXPORTS >> $output_objdir/$libname.def~
15949 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
15950 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15951 emximp -o $lib $output_objdir/$libname.def'
15952 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
15953 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
15954 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
15955 $ECHO EXPORTS >> $output_objdir/$libname.def~
15956 prefix_cmds="$SED"~
15957 if test EXPORTS = "`$SED 1q $export_symbols`"; then
15958 prefix_cmds="$prefix_cmds -e 1d";
15959 fi~
15960 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
15961 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
15962 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
15963 emximp -o $lib $output_objdir/$libname.def'
15964 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
15965 enable_shared_with_static_runtimes=yes
15966 ;;
15967
cristy73bd4a52010-10-05 11:24:23 +000015968 interix[3-9]*)
15969 hardcode_direct=no
15970 hardcode_shlibpath_var=no
Cristy15f22012015-11-14 17:51:30 -050015971 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
15972 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000015973 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15974 # Instead, shared libraries are loaded at an image base (0x10000000 by
15975 # default) and relocated if they conflict, which is a slow very memory
15976 # consuming and fragmenting process. To avoid this, we pick a random,
15977 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15978 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Cristy15f22012015-11-14 17:51:30 -050015979 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15980 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'
cristy73bd4a52010-10-05 11:24:23 +000015981 ;;
15982
cristy0c60a692010-11-04 01:09:47 +000015983 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000015984 tmp_diet=no
Cristy15f22012015-11-14 17:51:30 -050015985 if test linux-dietlibc = "$host_os"; then
cristy73bd4a52010-10-05 11:24:23 +000015986 case $cc_basename in
15987 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15988 esac
15989 fi
15990 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Cristy15f22012015-11-14 17:51:30 -050015991 && test no = "$tmp_diet"
cristy73bd4a52010-10-05 11:24:23 +000015992 then
cristyda16f162011-02-19 23:52:17 +000015993 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000015994 tmp_sharedflag='-shared'
15995 case $cc_basename,$host_cpu in
15996 pgcc*) # Portland Group C compiler
Cristy15f22012015-11-14 17:51:30 -050015997 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 +000015998 tmp_addflag=' $pic_flag'
15999 ;;
cristy0c60a692010-11-04 01:09:47 +000016000 pgf77* | pgf90* | pgf95* | pgfortran*)
16001 # Portland Group f77 and f90 compilers
Cristy15f22012015-11-14 17:51:30 -050016002 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 +000016003 tmp_addflag=' $pic_flag -Mnomain' ;;
16004 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16005 tmp_addflag=' -i_dynamic' ;;
16006 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16007 tmp_addflag=' -i_dynamic -nofor_main' ;;
16008 ifc* | ifort*) # Intel Fortran compiler
16009 tmp_addflag=' -nofor_main' ;;
16010 lf95*) # Lahey Fortran 8.1
16011 whole_archive_flag_spec=
16012 tmp_sharedflag='--shared' ;;
Cristy15f22012015-11-14 17:51:30 -050016013 nagfor*) # NAGFOR 5.3
16014 tmp_sharedflag='-Wl,-shared' ;;
cristy0c60a692010-11-04 01:09:47 +000016015 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000016016 tmp_sharedflag='-qmkshrobj'
16017 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000016018 nvcc*) # Cuda Compiler Driver 2.2
Cristy15f22012015-11-14 17:51:30 -050016019 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'
cristy0c60a692010-11-04 01:09:47 +000016020 compiler_needs_object=yes
16021 ;;
cristy73bd4a52010-10-05 11:24:23 +000016022 esac
16023 case `$CC -V 2>&1 | sed 5q` in
16024 *Sun\ C*) # Sun C 5.9
Cristy15f22012015-11-14 17:51:30 -050016025 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 +000016026 compiler_needs_object=yes
16027 tmp_sharedflag='-G' ;;
16028 *Sun\ F*) # Sun Fortran 8.3
16029 tmp_sharedflag='-G' ;;
16030 esac
Cristy15f22012015-11-14 17:51:30 -050016031 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016032
Cristy15f22012015-11-14 17:51:30 -050016033 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000016034 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050016035 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16036 echo "local: *; };" >> $output_objdir/$libname.ver~
16037 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016038 fi
16039
16040 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050016041 tcc*)
16042 export_dynamic_flag_spec='-rdynamic'
16043 ;;
cristy0c60a692010-11-04 01:09:47 +000016044 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000016045 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16046 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Cristy15f22012015-11-14 17:51:30 -050016047 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy0c60a692010-11-04 01:09:47 +000016048 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Cristy15f22012015-11-14 17:51:30 -050016049 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000016050 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050016051 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16052 echo "local: *; };" >> $output_objdir/$libname.ver~
16053 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016054 fi
16055 ;;
16056 esac
16057 else
16058 ld_shlibs=no
16059 fi
16060 ;;
16061
16062 netbsd*)
16063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16064 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16065 wlarc=
16066 else
Cristy15f22012015-11-14 17:51:30 -050016067 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16068 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 +000016069 fi
16070 ;;
16071
16072 solaris*)
16073 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16074 ld_shlibs=no
16075 cat <<_LT_EOF 1>&2
16076
16077*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16078*** create shared libraries on Solaris systems. Therefore, libtool
16079*** is disabling shared libraries support. We urge you to upgrade GNU
16080*** binutils to release 2.9.1 or newer. Another option is to modify
16081*** your PATH or compiler configuration so that the native linker is
16082*** used, and then restart.
16083
16084_LT_EOF
16085 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016086 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16087 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 +000016088 else
16089 ld_shlibs=no
16090 fi
16091 ;;
16092
16093 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16094 case `$LD -v 2>&1` in
16095 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16096 ld_shlibs=no
16097 cat <<_LT_EOF 1>&2
16098
Cristy15f22012015-11-14 17:51:30 -050016099*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
cristy73bd4a52010-10-05 11:24:23 +000016100*** reliably create shared libraries on SCO systems. Therefore, libtool
16101*** is disabling shared libraries support. We urge you to upgrade GNU
16102*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16103*** your PATH or compiler configuration so that the native linker is
16104*** used, and then restart.
16105
16106_LT_EOF
16107 ;;
16108 *)
16109 # For security reasons, it is highly recommended that you always
16110 # use absolute paths for naming shared libraries, and exclude the
16111 # DT_RUNPATH tag from executables and libraries. But doing so
16112 # requires that you compile everything twice, which is a pain.
16113 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016114 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16116 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016117 else
16118 ld_shlibs=no
16119 fi
16120 ;;
16121 esac
16122 ;;
16123
16124 sunos4*)
16125 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16126 wlarc=
16127 hardcode_direct=yes
16128 hardcode_shlibpath_var=no
16129 ;;
16130
16131 *)
16132 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016133 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16134 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 +000016135 else
16136 ld_shlibs=no
16137 fi
16138 ;;
16139 esac
16140
Cristy15f22012015-11-14 17:51:30 -050016141 if test no = "$ld_shlibs"; then
cristy73bd4a52010-10-05 11:24:23 +000016142 runpath_var=
16143 hardcode_libdir_flag_spec=
16144 export_dynamic_flag_spec=
16145 whole_archive_flag_spec=
16146 fi
16147 else
16148 # PORTME fill in a description of your system's linker (not GNU ld)
16149 case $host_os in
16150 aix3*)
16151 allow_undefined_flag=unsupported
16152 always_export_symbols=yes
16153 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'
16154 # Note: this linker hardcodes the directories in LIBPATH if there
16155 # are no directories specified by -L.
16156 hardcode_minus_L=yes
Cristy15f22012015-11-14 17:51:30 -050016157 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
cristy73bd4a52010-10-05 11:24:23 +000016158 # Neither direct hardcoding nor static linking is supported with a
16159 # broken collect2.
16160 hardcode_direct=unsupported
16161 fi
16162 ;;
16163
16164 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050016165 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000016166 # On IA64, the linker does run time linking by default, so we don't
16167 # have to do anything special.
16168 aix_use_runtimelinking=no
16169 exp_sym_flag='-Bexport'
Cristy15f22012015-11-14 17:51:30 -050016170 no_entry_flag=
cristy73bd4a52010-10-05 11:24:23 +000016171 else
16172 # If we're using GNU nm, then we don't want the "-C" option.
Cristy15f22012015-11-14 17:51:30 -050016173 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16174 # Without the "-l" option, or with the "-B" option, AIX nm treats
16175 # weak defined symbols like other global defined symbols, whereas
16176 # GNU nm marks them as "W".
16177 # While the 'weak' keyword is ignored in the Export File, we need
16178 # it in the Import File for the 'aix-soname' feature, so we have
16179 # to replace the "-B" option with "-P" for AIX nm.
cristy73bd4a52010-10-05 11:24:23 +000016180 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016181 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000016182 else
Cristy15f22012015-11-14 17:51:30 -050016183 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000016184 fi
16185 aix_use_runtimelinking=no
16186
16187 # Test if we are trying to use run time linking or normal
16188 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Cristy15f22012015-11-14 17:51:30 -050016189 # have runtime linking enabled, and use it for executables.
16190 # For shared libraries, we enable/disable runtime linking
16191 # depending on the kind of the shared library created -
16192 # when "with_aix_soname,aix_use_runtimelinking" is:
16193 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16194 # "aix,yes" lib.so shared, rtl:yes, for executables
16195 # lib.a static archive
16196 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16197 # lib.a(lib.so.V) shared, rtl:no, for executables
16198 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16199 # lib.a(lib.so.V) shared, rtl:no
16200 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16201 # lib.a static archive
cristy73bd4a52010-10-05 11:24:23 +000016202 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16203 for ld_flag in $LDFLAGS; do
Cristy15f22012015-11-14 17:51:30 -050016204 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
cristy73bd4a52010-10-05 11:24:23 +000016205 aix_use_runtimelinking=yes
16206 break
16207 fi
16208 done
Cristy15f22012015-11-14 17:51:30 -050016209 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16210 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16211 # so we don't have lib.a shared libs to link our executables.
16212 # We have to force runtime linking in this case.
16213 aix_use_runtimelinking=yes
16214 LDFLAGS="$LDFLAGS -Wl,-brtl"
16215 fi
cristy73bd4a52010-10-05 11:24:23 +000016216 ;;
16217 esac
16218
16219 exp_sym_flag='-bexport'
16220 no_entry_flag='-bnoentry'
16221 fi
16222
16223 # When large executables or shared objects are built, AIX ld can
16224 # have problems creating the table of contents. If linking a library
16225 # or program results in "error TOC overflow" add -mminimal-toc to
16226 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16227 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16228
16229 archive_cmds=''
16230 hardcode_direct=yes
16231 hardcode_direct_absolute=yes
16232 hardcode_libdir_separator=':'
16233 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050016234 file_list_spec='$wl-f,'
16235 case $with_aix_soname,$aix_use_runtimelinking in
16236 aix,*) ;; # traditional, no import file
16237 svr4,* | *,yes) # use import file
16238 # The Import File defines what to hardcode.
16239 hardcode_direct=no
16240 hardcode_direct_absolute=no
16241 ;;
16242 esac
cristy73bd4a52010-10-05 11:24:23 +000016243
Cristy15f22012015-11-14 17:51:30 -050016244 if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000016245 case $host_os in aix4.[012]|aix4.[012].*)
16246 # We only want to do this on AIX 4.2 and lower, the check
16247 # below for broken collect2 doesn't work under 4.3+
Cristy15f22012015-11-14 17:51:30 -050016248 collect2name=`$CC -print-prog-name=collect2`
cristy73bd4a52010-10-05 11:24:23 +000016249 if test -f "$collect2name" &&
16250 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16251 then
16252 # We have reworked collect2
16253 :
16254 else
16255 # We have old collect2
16256 hardcode_direct=unsupported
16257 # It fails to find uninstalled libraries when the uninstalled
16258 # path is not listed in the libpath. Setting hardcode_minus_L
16259 # to unsupported forces relinking
16260 hardcode_minus_L=yes
16261 hardcode_libdir_flag_spec='-L$libdir'
16262 hardcode_libdir_separator=
16263 fi
16264 ;;
16265 esac
16266 shared_flag='-shared'
Cristy15f22012015-11-14 17:51:30 -050016267 if test yes = "$aix_use_runtimelinking"; then
16268 shared_flag="$shared_flag "'$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016269 fi
Cristy15f22012015-11-14 17:51:30 -050016270 # Need to ensure runtime linking is disabled for the traditional
16271 # shared library, or the linker may eventually find shared libraries
16272 # /with/ Import File - we do not want to mix them.
16273 shared_flag_aix='-shared'
16274 shared_flag_svr4='-shared $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016275 else
16276 # not using gcc
Cristy15f22012015-11-14 17:51:30 -050016277 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000016278 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16279 # chokes on -Wl,-G. The following line is correct:
16280 shared_flag='-G'
16281 else
Cristy15f22012015-11-14 17:51:30 -050016282 if test yes = "$aix_use_runtimelinking"; then
16283 shared_flag='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016284 else
Cristy15f22012015-11-14 17:51:30 -050016285 shared_flag='$wl-bM:SRE'
cristy73bd4a52010-10-05 11:24:23 +000016286 fi
Cristy15f22012015-11-14 17:51:30 -050016287 shared_flag_aix='$wl-bM:SRE'
16288 shared_flag_svr4='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016289 fi
16290 fi
16291
Cristy15f22012015-11-14 17:51:30 -050016292 export_dynamic_flag_spec='$wl-bexpall'
cristy73bd4a52010-10-05 11:24:23 +000016293 # It seems that -bexpall does not export symbols beginning with
16294 # underscore (_), so it is better to generate a list of symbols to export.
16295 always_export_symbols=yes
Cristy15f22012015-11-14 17:51:30 -050016296 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cristy73bd4a52010-10-05 11:24:23 +000016297 # Warning - without using the other runtime loading flags (-brtl),
16298 # -berok will link without error, but may produce a broken library.
16299 allow_undefined_flag='-berok'
16300 # Determine the default libpath from the value encoded in an
16301 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050016302 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000016303 aix_libpath=$lt_cv_aix_libpath
16304else
16305 if ${lt_cv_aix_libpath_+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307else
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016309/* end confdefs.h. */
16310
16311int
16312main ()
16313{
16314
16315 ;
16316 return 0;
16317}
16318_ACEOF
16319if ac_fn_c_try_link "$LINENO"; then :
16320
cristyda16f162011-02-19 23:52:17 +000016321 lt_aix_libpath_sed='
16322 /Import File Strings/,/^$/ {
16323 /^0/ {
16324 s/^0 *\([^ ]*\) *$/\1/
16325 p
16326 }
16327 }'
16328 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16329 # Check for a 64-bit object if we didn't find anything.
16330 if test -z "$lt_cv_aix_libpath_"; then
16331 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16332 fi
cristy73bd4a52010-10-05 11:24:23 +000016333fi
16334rm -f core conftest.err conftest.$ac_objext \
16335 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016336 if test -z "$lt_cv_aix_libpath_"; then
Cristy15f22012015-11-14 17:51:30 -050016337 lt_cv_aix_libpath_=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000016338 fi
16339
16340fi
16341
16342 aix_libpath=$lt_cv_aix_libpath_
16343fi
cristy73bd4a52010-10-05 11:24:23 +000016344
Cristy15f22012015-11-14 17:51:30 -050016345 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16346 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
cristy73bd4a52010-10-05 11:24:23 +000016347 else
Cristy15f22012015-11-14 17:51:30 -050016348 if test ia64 = "$host_cpu"; then
16349 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
cristy73bd4a52010-10-05 11:24:23 +000016350 allow_undefined_flag="-z nodefs"
Cristy15f22012015-11-14 17:51:30 -050016351 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"
cristy73bd4a52010-10-05 11:24:23 +000016352 else
16353 # Determine the default libpath from the value encoded in an
16354 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050016355 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000016356 aix_libpath=$lt_cv_aix_libpath
16357else
16358 if ${lt_cv_aix_libpath_+:} false; then :
16359 $as_echo_n "(cached) " >&6
16360else
16361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016362/* end confdefs.h. */
16363
16364int
16365main ()
16366{
16367
16368 ;
16369 return 0;
16370}
16371_ACEOF
16372if ac_fn_c_try_link "$LINENO"; then :
16373
cristyda16f162011-02-19 23:52:17 +000016374 lt_aix_libpath_sed='
16375 /Import File Strings/,/^$/ {
16376 /^0/ {
16377 s/^0 *\([^ ]*\) *$/\1/
16378 p
16379 }
16380 }'
16381 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16382 # Check for a 64-bit object if we didn't find anything.
16383 if test -z "$lt_cv_aix_libpath_"; then
16384 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16385 fi
cristy73bd4a52010-10-05 11:24:23 +000016386fi
16387rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016389 if test -z "$lt_cv_aix_libpath_"; then
Cristy15f22012015-11-14 17:51:30 -050016390 lt_cv_aix_libpath_=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000016391 fi
16392
16393fi
16394
16395 aix_libpath=$lt_cv_aix_libpath_
16396fi
cristy73bd4a52010-10-05 11:24:23 +000016397
Cristy15f22012015-11-14 17:51:30 -050016398 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000016399 # Warning - without using the other run time loading flags,
16400 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050016401 no_undefined_flag=' $wl-bernotok'
16402 allow_undefined_flag=' $wl-berok'
16403 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000016404 # We only use this code for GNU lds that support --whole-archive.
Cristy15f22012015-11-14 17:51:30 -050016405 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy0c60a692010-11-04 01:09:47 +000016406 else
16407 # Exported symbols can be pulled into shared objects from archives
16408 whole_archive_flag_spec='$convenience'
16409 fi
cristy73bd4a52010-10-05 11:24:23 +000016410 archive_cmds_need_lc=yes
Cristy15f22012015-11-14 17:51:30 -050016411 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16412 # -brtl affects multiple linker settings, -berok does not and is overridden later
16413 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16414 if test svr4 != "$with_aix_soname"; then
16415 # This is similar to how AIX traditionally builds its shared libraries.
16416 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16417 fi
16418 if test aix != "$with_aix_soname"; then
16419 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16420 else
16421 # used by -dlpreopen to get the symbols
16422 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16423 fi
16424 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
cristy73bd4a52010-10-05 11:24:23 +000016425 fi
16426 fi
16427 ;;
16428
16429 amigaos*)
16430 case $host_cpu in
16431 powerpc)
16432 # see comment about AmigaOS4 .so support
Cristy15f22012015-11-14 17:51:30 -050016433 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016434 archive_expsym_cmds=''
16435 ;;
16436 m68k)
16437 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)'
16438 hardcode_libdir_flag_spec='-L$libdir'
16439 hardcode_minus_L=yes
16440 ;;
16441 esac
16442 ;;
16443
16444 bsdi[45]*)
16445 export_dynamic_flag_spec=-rdynamic
16446 ;;
16447
16448 cygwin* | mingw* | pw32* | cegcc*)
16449 # When not using gcc, we currently assume that we are using
16450 # Microsoft Visual C++.
16451 # hardcode_libdir_flag_spec is actually meaningless, as there is
16452 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016453 case $cc_basename in
16454 cl*)
16455 # Native MSVC
16456 hardcode_libdir_flag_spec=' '
16457 allow_undefined_flag=unsupported
16458 always_export_symbols=yes
16459 file_list_spec='@'
16460 # Tell ltmain to make .lib files, not .a files.
16461 libext=lib
16462 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050016463 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000016464 # FIXME: Setting linknames here is a bad hack.
Cristy15f22012015-11-14 17:51:30 -050016465 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16466 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16467 cp "$export_symbols" "$output_objdir/$soname.def";
16468 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16469 else
16470 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16471 fi~
16472 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16473 linknames='
cristyda16f162011-02-19 23:52:17 +000016474 # The linker will not automatically build a static lib if we build a DLL.
16475 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16476 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016477 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16479 # Don't use ranlib
16480 old_postinstall_cmds='chmod 644 $oldlib'
16481 postlink_cmds='lt_outputfile="@OUTPUT@"~
Cristy15f22012015-11-14 17:51:30 -050016482 lt_tool_outputfile="@TOOL_OUTPUT@"~
16483 case $lt_outputfile in
16484 *.exe|*.EXE) ;;
16485 *)
16486 lt_outputfile=$lt_outputfile.exe
16487 lt_tool_outputfile=$lt_tool_outputfile.exe
16488 ;;
16489 esac~
16490 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16491 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16492 $RM "$lt_outputfile.manifest";
16493 fi'
cristyda16f162011-02-19 23:52:17 +000016494 ;;
16495 *)
16496 # Assume MSVC wrapper
16497 hardcode_libdir_flag_spec=' '
16498 allow_undefined_flag=unsupported
16499 # Tell ltmain to make .lib files, not .a files.
16500 libext=lib
16501 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050016502 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000016503 # FIXME: Setting linknames here is a bad hack.
16504 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16505 # The linker will automatically build a .lib file if we build a DLL.
16506 old_archive_from_new_cmds='true'
16507 # FIXME: Should let the user specify the lib program.
16508 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16509 enable_shared_with_static_runtimes=yes
16510 ;;
16511 esac
cristy73bd4a52010-10-05 11:24:23 +000016512 ;;
16513
16514 darwin* | rhapsody*)
16515
16516
16517 archive_cmds_need_lc=no
16518 hardcode_direct=no
16519 hardcode_automatic=yes
16520 hardcode_shlibpath_var=unsupported
Cristy15f22012015-11-14 17:51:30 -050016521 if test yes = "$lt_cv_ld_force_load"; then
16522 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 +000016523
cristy0c60a692010-11-04 01:09:47 +000016524 else
16525 whole_archive_flag_spec=''
16526 fi
cristy73bd4a52010-10-05 11:24:23 +000016527 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050016528 allow_undefined_flag=$_lt_dar_allow_undefined
cristy73bd4a52010-10-05 11:24:23 +000016529 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050016530 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000016531 *) _lt_dar_can_shared=$GCC ;;
16532 esac
Cristy15f22012015-11-14 17:51:30 -050016533 if test yes = "$_lt_dar_can_shared"; then
cristy0c60a692010-11-04 01:09:47 +000016534 output_verbose_link_cmd=func_echo_all
Cristy15f22012015-11-14 17:51:30 -050016535 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16536 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16537 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"
16538 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"
cristy73bd4a52010-10-05 11:24:23 +000016539
16540 else
16541 ld_shlibs=no
16542 fi
16543
16544 ;;
16545
16546 dgux*)
16547 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16548 hardcode_libdir_flag_spec='-L$libdir'
16549 hardcode_shlibpath_var=no
16550 ;;
16551
cristy73bd4a52010-10-05 11:24:23 +000016552 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16553 # support. Future versions do this automatically, but an explicit c++rt0.o
16554 # does not break anything, and helps significantly (at the cost of a little
16555 # extra space).
16556 freebsd2.2*)
16557 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16558 hardcode_libdir_flag_spec='-R$libdir'
16559 hardcode_direct=yes
16560 hardcode_shlibpath_var=no
16561 ;;
16562
16563 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016564 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_direct=yes
16567 hardcode_minus_L=yes
16568 hardcode_shlibpath_var=no
16569 ;;
16570
16571 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16572 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016573 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016574 hardcode_libdir_flag_spec='-R$libdir'
16575 hardcode_direct=yes
16576 hardcode_shlibpath_var=no
16577 ;;
16578
16579 hpux9*)
Cristy15f22012015-11-14 17:51:30 -050016580 if test yes = "$GCC"; then
16581 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000016582 else
Cristy15f22012015-11-14 17:51:30 -050016583 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000016584 fi
Cristy15f22012015-11-14 17:51:30 -050016585 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016586 hardcode_libdir_separator=:
16587 hardcode_direct=yes
16588
16589 # hardcode_minus_L: Not really in the search PATH,
16590 # but as the default location of the library.
16591 hardcode_minus_L=yes
Cristy15f22012015-11-14 17:51:30 -050016592 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016593 ;;
16594
16595 hpux10*)
Cristy15f22012015-11-14 17:51:30 -050016596 if test yes,no = "$GCC,$with_gnu_ld"; then
16597 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 +000016598 else
16599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16600 fi
Cristy15f22012015-11-14 17:51:30 -050016601 if test no = "$with_gnu_ld"; then
16602 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016603 hardcode_libdir_separator=:
16604 hardcode_direct=yes
16605 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050016606 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016607 # hardcode_minus_L: Not really in the search PATH,
16608 # but as the default location of the library.
16609 hardcode_minus_L=yes
16610 fi
16611 ;;
16612
16613 hpux11*)
Cristy15f22012015-11-14 17:51:30 -050016614 if test yes,no = "$GCC,$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000016615 case $host_cpu in
16616 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050016617 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016618 ;;
16619 ia64*)
Cristy15f22012015-11-14 17:51:30 -050016620 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016621 ;;
16622 *)
Cristy15f22012015-11-14 17:51:30 -050016623 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 +000016624 ;;
16625 esac
16626 else
16627 case $host_cpu in
16628 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050016629 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016630 ;;
16631 ia64*)
Cristy15f22012015-11-14 17:51:30 -050016632 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016633 ;;
16634 *)
cristy0c60a692010-11-04 01:09:47 +000016635
16636 # Older versions of the 11.00 compiler do not understand -b yet
16637 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16639$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016640if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016641 $as_echo_n "(cached) " >&6
16642else
16643 lt_cv_prog_compiler__b=no
Cristy15f22012015-11-14 17:51:30 -050016644 save_LDFLAGS=$LDFLAGS
cristy0c60a692010-11-04 01:09:47 +000016645 LDFLAGS="$LDFLAGS -b"
16646 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16647 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16648 # The linker can only warn and ignore the option if not recognized
16649 # So say no if there are warnings
16650 if test -s conftest.err; then
16651 # Append any errors to the config.log.
16652 cat conftest.err 1>&5
16653 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16654 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16655 if diff conftest.exp conftest.er2 >/dev/null; then
16656 lt_cv_prog_compiler__b=yes
16657 fi
16658 else
16659 lt_cv_prog_compiler__b=yes
16660 fi
16661 fi
16662 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050016663 LDFLAGS=$save_LDFLAGS
cristy0c60a692010-11-04 01:09:47 +000016664
16665fi
16666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16667$as_echo "$lt_cv_prog_compiler__b" >&6; }
16668
Cristy15f22012015-11-14 17:51:30 -050016669if test yes = "$lt_cv_prog_compiler__b"; then
16670 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000016671else
16672 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16673fi
16674
cristy73bd4a52010-10-05 11:24:23 +000016675 ;;
16676 esac
16677 fi
Cristy15f22012015-11-14 17:51:30 -050016678 if test no = "$with_gnu_ld"; then
16679 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016680 hardcode_libdir_separator=:
16681
16682 case $host_cpu in
16683 hppa*64*|ia64*)
16684 hardcode_direct=no
16685 hardcode_shlibpath_var=no
16686 ;;
16687 *)
16688 hardcode_direct=yes
16689 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050016690 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016691
16692 # hardcode_minus_L: Not really in the search PATH,
16693 # but as the default location of the library.
16694 hardcode_minus_L=yes
16695 ;;
16696 esac
16697 fi
16698 ;;
16699
16700 irix5* | irix6* | nonstopux*)
Cristy15f22012015-11-14 17:51:30 -050016701 if test yes = "$GCC"; then
16702 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 +000016703 # Try to use the -exported_symbol ld option, if it does not
16704 # work, assume that -exports_file does not work either and
16705 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016706 # This should be the same for all languages, so no per-tag cache variable.
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16708$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16709if ${lt_cv_irix_exported_symbol+:} false; then :
16710 $as_echo_n "(cached) " >&6
16711else
Cristy15f22012015-11-14 17:51:30 -050016712 save_LDFLAGS=$LDFLAGS
16713 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
cristyda16f162011-02-19 23:52:17 +000016714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016715/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016716int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016717_ACEOF
16718if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016719 lt_cv_irix_exported_symbol=yes
16720else
16721 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016722fi
16723rm -f core conftest.err conftest.$ac_objext \
16724 conftest$ac_exeext conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050016725 LDFLAGS=$save_LDFLAGS
cristyda16f162011-02-19 23:52:17 +000016726fi
16727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16728$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Cristy15f22012015-11-14 17:51:30 -050016729 if test yes = "$lt_cv_irix_exported_symbol"; then
16730 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'
cristyda16f162011-02-19 23:52:17 +000016731 fi
cristy73bd4a52010-10-05 11:24:23 +000016732 else
Cristy15f22012015-11-14 17:51:30 -050016733 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'
16734 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 +000016735 fi
16736 archive_cmds_need_lc='no'
Cristy15f22012015-11-14 17:51:30 -050016737 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016738 hardcode_libdir_separator=:
16739 inherit_rpath=yes
16740 link_all_deplibs=yes
16741 ;;
16742
Cristy15f22012015-11-14 17:51:30 -050016743 linux*)
16744 case $cc_basename in
16745 tcc*)
16746 # Fabrice Bellard et al's Tiny C Compiler
16747 ld_shlibs=yes
16748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16749 ;;
16750 esac
16751 ;;
16752
cristy73bd4a52010-10-05 11:24:23 +000016753 netbsd*)
16754 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16756 else
16757 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16758 fi
16759 hardcode_libdir_flag_spec='-R$libdir'
16760 hardcode_direct=yes
16761 hardcode_shlibpath_var=no
16762 ;;
16763
16764 newsos6)
16765 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16766 hardcode_direct=yes
Cristy15f22012015-11-14 17:51:30 -050016767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016768 hardcode_libdir_separator=:
16769 hardcode_shlibpath_var=no
16770 ;;
16771
16772 *nto* | *qnx*)
16773 ;;
16774
Cristy15f22012015-11-14 17:51:30 -050016775 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000016776 if test -f /usr/libexec/ld.so; then
16777 hardcode_direct=yes
16778 hardcode_shlibpath_var=no
16779 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050016780 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cristy73bd4a52010-10-05 11:24:23 +000016781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Cristy15f22012015-11-14 17:51:30 -050016782 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16783 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16784 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016785 else
Cristy15f22012015-11-14 17:51:30 -050016786 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16787 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016788 fi
16789 else
16790 ld_shlibs=no
16791 fi
16792 ;;
16793
16794 os2*)
16795 hardcode_libdir_flag_spec='-L$libdir'
16796 hardcode_minus_L=yes
16797 allow_undefined_flag=unsupported
Cristy15f22012015-11-14 17:51:30 -050016798 shrext_cmds=.dll
16799 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16800 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16801 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16802 $ECHO EXPORTS >> $output_objdir/$libname.def~
16803 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16804 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16805 emximp -o $lib $output_objdir/$libname.def'
16806 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16807 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16808 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16809 $ECHO EXPORTS >> $output_objdir/$libname.def~
16810 prefix_cmds="$SED"~
16811 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16812 prefix_cmds="$prefix_cmds -e 1d";
16813 fi~
16814 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16815 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16817 emximp -o $lib $output_objdir/$libname.def'
16818 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16819 enable_shared_with_static_runtimes=yes
cristy73bd4a52010-10-05 11:24:23 +000016820 ;;
16821
16822 osf3*)
Cristy15f22012015-11-14 17:51:30 -050016823 if test yes = "$GCC"; then
16824 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16825 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 +000016826 else
16827 allow_undefined_flag=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050016828 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 +000016829 fi
16830 archive_cmds_need_lc='no'
Cristy15f22012015-11-14 17:51:30 -050016831 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016832 hardcode_libdir_separator=:
16833 ;;
16834
16835 osf4* | osf5*) # as osf3* with the addition of -msym flag
Cristy15f22012015-11-14 17:51:30 -050016836 if test yes = "$GCC"; then
16837 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16838 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'
16839 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016840 else
16841 allow_undefined_flag=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050016842 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 +000016843 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~
Cristy15f22012015-11-14 17:51:30 -050016844 $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 +000016845
16846 # Both c and cxx compiler support -rpath directly
16847 hardcode_libdir_flag_spec='-rpath $libdir'
16848 fi
16849 archive_cmds_need_lc='no'
16850 hardcode_libdir_separator=:
16851 ;;
16852
16853 solaris*)
16854 no_undefined_flag=' -z defs'
Cristy15f22012015-11-14 17:51:30 -050016855 if test yes = "$GCC"; then
16856 wlarc='$wl'
16857 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 +000016858 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Cristy15f22012015-11-14 17:51:30 -050016859 $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 +000016860 else
16861 case `$CC -V 2>&1` in
16862 *"Compilers 5.0"*)
16863 wlarc=''
Cristy15f22012015-11-14 17:51:30 -050016864 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
cristy73bd4a52010-10-05 11:24:23 +000016865 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Cristy15f22012015-11-14 17:51:30 -050016866 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000016867 ;;
16868 *)
Cristy15f22012015-11-14 17:51:30 -050016869 wlarc='$wl'
16870 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016871 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Cristy15f22012015-11-14 17:51:30 -050016872 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000016873 ;;
16874 esac
16875 fi
16876 hardcode_libdir_flag_spec='-R$libdir'
16877 hardcode_shlibpath_var=no
16878 case $host_os in
16879 solaris2.[0-5] | solaris2.[0-5].*) ;;
16880 *)
16881 # The compiler driver will combine and reorder linker options,
Cristy15f22012015-11-14 17:51:30 -050016882 # but understands '-z linker_flag'. GCC discards it without '$wl',
cristy73bd4a52010-10-05 11:24:23 +000016883 # but is careful enough not to reorder.
16884 # Supported since Solaris 2.6 (maybe 2.5.1?)
Cristy15f22012015-11-14 17:51:30 -050016885 if test yes = "$GCC"; then
16886 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cristy73bd4a52010-10-05 11:24:23 +000016887 else
16888 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16889 fi
16890 ;;
16891 esac
16892 link_all_deplibs=yes
16893 ;;
16894
16895 sunos4*)
Cristy15f22012015-11-14 17:51:30 -050016896 if test sequent = "$host_vendor"; then
cristy73bd4a52010-10-05 11:24:23 +000016897 # Use $CC to link under sequent, because it throws in some extra .o
16898 # files that make .init and .fini sections work.
Cristy15f22012015-11-14 17:51:30 -050016899 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016900 else
16901 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16902 fi
16903 hardcode_libdir_flag_spec='-L$libdir'
16904 hardcode_direct=yes
16905 hardcode_minus_L=yes
16906 hardcode_shlibpath_var=no
16907 ;;
16908
16909 sysv4)
16910 case $host_vendor in
16911 sni)
16912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16913 hardcode_direct=yes # is this really true???
16914 ;;
16915 siemens)
16916 ## LD is ld it makes a PLAMLIB
16917 ## CC just makes a GrossModule.
16918 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16919 reload_cmds='$CC -r -o $output$reload_objs'
16920 hardcode_direct=no
16921 ;;
16922 motorola)
16923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16924 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16925 ;;
16926 esac
16927 runpath_var='LD_RUN_PATH'
16928 hardcode_shlibpath_var=no
16929 ;;
16930
16931 sysv4.3*)
16932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16933 hardcode_shlibpath_var=no
16934 export_dynamic_flag_spec='-Bexport'
16935 ;;
16936
16937 sysv4*MP*)
16938 if test -d /usr/nec; then
16939 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16940 hardcode_shlibpath_var=no
16941 runpath_var=LD_RUN_PATH
16942 hardcode_runpath_var=yes
16943 ld_shlibs=yes
16944 fi
16945 ;;
16946
16947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Cristy15f22012015-11-14 17:51:30 -050016948 no_undefined_flag='$wl-z,text'
cristy73bd4a52010-10-05 11:24:23 +000016949 archive_cmds_need_lc=no
16950 hardcode_shlibpath_var=no
16951 runpath_var='LD_RUN_PATH'
16952
Cristy15f22012015-11-14 17:51:30 -050016953 if test yes = "$GCC"; then
16954 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16955 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016956 else
Cristy15f22012015-11-14 17:51:30 -050016957 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16958 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016959 fi
16960 ;;
16961
16962 sysv5* | sco3.2v5* | sco5v6*)
Cristy15f22012015-11-14 17:51:30 -050016963 # Note: We CANNOT use -z defs as we might desire, because we do not
cristy73bd4a52010-10-05 11:24:23 +000016964 # link with -lc, and that would cause any symbols used from libc to
16965 # always be unresolved, which means just about no library would
16966 # ever link correctly. If we're not using GNU ld we use -z text
16967 # though, which does catch some bad symbols but isn't as heavy-handed
16968 # as -z defs.
Cristy15f22012015-11-14 17:51:30 -050016969 no_undefined_flag='$wl-z,text'
16970 allow_undefined_flag='$wl-z,nodefs'
cristy73bd4a52010-10-05 11:24:23 +000016971 archive_cmds_need_lc=no
16972 hardcode_shlibpath_var=no
Cristy15f22012015-11-14 17:51:30 -050016973 hardcode_libdir_flag_spec='$wl-R,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016974 hardcode_libdir_separator=':'
16975 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050016976 export_dynamic_flag_spec='$wl-Bexport'
cristy73bd4a52010-10-05 11:24:23 +000016977 runpath_var='LD_RUN_PATH'
16978
Cristy15f22012015-11-14 17:51:30 -050016979 if test yes = "$GCC"; then
16980 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016982 else
Cristy15f22012015-11-14 17:51:30 -050016983 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16984 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016985 fi
16986 ;;
16987
16988 uts4*)
16989 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16990 hardcode_libdir_flag_spec='-L$libdir'
16991 hardcode_shlibpath_var=no
16992 ;;
16993
16994 *)
16995 ld_shlibs=no
16996 ;;
16997 esac
16998
Cristy15f22012015-11-14 17:51:30 -050016999 if test sni = "$host_vendor"; then
cristy73bd4a52010-10-05 11:24:23 +000017000 case $host in
17001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Cristy15f22012015-11-14 17:51:30 -050017002 export_dynamic_flag_spec='$wl-Blargedynsym'
cristy73bd4a52010-10-05 11:24:23 +000017003 ;;
17004 esac
17005 fi
17006 fi
17007
17008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17009$as_echo "$ld_shlibs" >&6; }
Cristy15f22012015-11-14 17:51:30 -050017010test no = "$ld_shlibs" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000017011
17012with_gnu_ld=$with_gnu_ld
17013
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027
17028#
17029# Do we need to explicitly link libc?
17030#
17031case "x$archive_cmds_need_lc" in
17032x|xyes)
17033 # Assume -lc should be added
17034 archive_cmds_need_lc=yes
17035
Cristy15f22012015-11-14 17:51:30 -050017036 if test yes,yes = "$GCC,$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000017037 case $archive_cmds in
17038 *'~'*)
17039 # FIXME: we may have to deal with multi-command sequences.
17040 ;;
17041 '$CC '*)
17042 # Test whether the compiler implicitly links with -lc since on some
17043 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17044 # to ld, don't add -lc before -lgcc.
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17046$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017047if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017048 $as_echo_n "(cached) " >&6
17049else
17050 $RM conftest*
17051 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017052
cristy0c60a692010-11-04 01:09:47 +000017053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017054 (eval $ac_compile) 2>&5
17055 ac_status=$?
17056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17057 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000017058 soname=conftest
17059 lib=conftest
17060 libobjs=conftest.$ac_objext
17061 deplibs=
17062 wl=$lt_prog_compiler_wl
17063 pic_flag=$lt_prog_compiler_pic
17064 compiler_flags=-v
17065 linker_flags=-v
17066 verstring=
17067 output_objdir=.
17068 libname=conftest
17069 lt_save_allow_undefined_flag=$allow_undefined_flag
17070 allow_undefined_flag=
17071 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 +000017072 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17073 ac_status=$?
17074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17075 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000017076 then
17077 lt_cv_archive_cmds_need_lc=no
17078 else
17079 lt_cv_archive_cmds_need_lc=yes
17080 fi
17081 allow_undefined_flag=$lt_save_allow_undefined_flag
17082 else
17083 cat conftest.err 1>&5
17084 fi
17085 $RM conftest*
17086
17087fi
17088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17089$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17090 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000017091 ;;
17092 esac
17093 fi
17094 ;;
17095esac
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
17244
17245
17246
17247
cristy73bd4a52010-10-05 11:24:23 +000017248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17249$as_echo_n "checking dynamic linker characteristics... " >&6; }
17250
Cristy15f22012015-11-14 17:51:30 -050017251if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000017252 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050017253 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17254 *) lt_awk_arg='/^libraries:/' ;;
cristy73bd4a52010-10-05 11:24:23 +000017255 esac
cristy0c60a692010-11-04 01:09:47 +000017256 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050017257 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17258 *) lt_sed_strip_eq='s|=/|/|g' ;;
cristy0c60a692010-11-04 01:09:47 +000017259 esac
17260 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17261 case $lt_search_path_spec in
17262 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000017263 # if the path contains ";" then we assume it to be the separator
17264 # otherwise default to the standard path separator (i.e. ":") - it is
17265 # assumed that no part of a normal pathname contains ";" but that should
17266 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000017267 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17268 ;;
17269 *)
17270 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17271 ;;
17272 esac
cristy73bd4a52010-10-05 11:24:23 +000017273 # Ok, now we have the path, separated by spaces, we can step through it
Cristy15f22012015-11-14 17:51:30 -050017274 # and add multilib dir if necessary...
cristy73bd4a52010-10-05 11:24:23 +000017275 lt_tmp_lt_search_path_spec=
Cristy15f22012015-11-14 17:51:30 -050017276 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17277 # ...but if some path component already ends with the multilib dir we assume
17278 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17279 case "$lt_multi_os_dir; $lt_search_path_spec " in
17280 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17281 lt_multi_os_dir=
17282 ;;
17283 esac
cristy73bd4a52010-10-05 11:24:23 +000017284 for lt_sys_path in $lt_search_path_spec; do
Cristy15f22012015-11-14 17:51:30 -050017285 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17286 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17287 elif test -n "$lt_multi_os_dir"; then
cristy73bd4a52010-10-05 11:24:23 +000017288 test -d "$lt_sys_path" && \
17289 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17290 fi
17291 done
cristy0c60a692010-11-04 01:09:47 +000017292 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Cristy15f22012015-11-14 17:51:30 -050017293BEGIN {RS = " "; FS = "/|\n";} {
17294 lt_foo = "";
17295 lt_count = 0;
cristy73bd4a52010-10-05 11:24:23 +000017296 for (lt_i = NF; lt_i > 0; lt_i--) {
17297 if ($lt_i != "" && $lt_i != ".") {
17298 if ($lt_i == "..") {
17299 lt_count++;
17300 } else {
17301 if (lt_count == 0) {
Cristy15f22012015-11-14 17:51:30 -050017302 lt_foo = "/" $lt_i lt_foo;
cristy73bd4a52010-10-05 11:24:23 +000017303 } else {
17304 lt_count--;
17305 }
17306 }
17307 }
17308 }
17309 if (lt_foo != "") { lt_freq[lt_foo]++; }
17310 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17311}'`
cristy0c60a692010-11-04 01:09:47 +000017312 # AWK program above erroneously prepends '/' to C:/dos/paths
17313 # for these hosts.
17314 case $host_os in
17315 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Cristy15f22012015-11-14 17:51:30 -050017316 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
cristy0c60a692010-11-04 01:09:47 +000017317 esac
17318 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000017319else
17320 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17321fi
17322library_names_spec=
17323libname_spec='lib$name'
17324soname_spec=
Cristy15f22012015-11-14 17:51:30 -050017325shrext_cmds=.so
cristy73bd4a52010-10-05 11:24:23 +000017326postinstall_cmds=
17327postuninstall_cmds=
17328finish_cmds=
17329finish_eval=
17330shlibpath_var=
17331shlibpath_overrides_runpath=unknown
17332version_type=none
17333dynamic_linker="$host_os ld.so"
17334sys_lib_dlsearch_path_spec="/lib /usr/lib"
17335need_lib_prefix=unknown
17336hardcode_into_libs=no
17337
17338# when you set need_version to no, make sure it does not cause -set_version
17339# flags to be left without arguments
17340need_version=unknown
17341
Cristy15f22012015-11-14 17:51:30 -050017342
17343
cristy73bd4a52010-10-05 11:24:23 +000017344case $host_os in
17345aix3*)
cristy99bd5232011-12-07 14:38:20 +000017346 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050017347 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cristy73bd4a52010-10-05 11:24:23 +000017348 shlibpath_var=LIBPATH
17349
17350 # AIX 3 has no versioning support, so we append a major version to the name.
Cristy15f22012015-11-14 17:51:30 -050017351 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017352 ;;
17353
17354aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000017355 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017356 need_lib_prefix=no
17357 need_version=no
17358 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050017359 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000017360 # AIX 5 supports IA64
Cristy15f22012015-11-14 17:51:30 -050017361 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017362 shlibpath_var=LD_LIBRARY_PATH
17363 else
17364 # With GCC up to 2.95.x, collect2 would create an import file
17365 # for dependence libraries. The import file would start with
Cristy15f22012015-11-14 17:51:30 -050017366 # the line '#! .'. This would cause the generated library to
17367 # depend on '.', always an invalid library. This was fixed in
cristy73bd4a52010-10-05 11:24:23 +000017368 # development snapshots of GCC prior to 3.0.
17369 case $host_os in
17370 aix4 | aix4.[01] | aix4.[01].*)
17371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17372 echo ' yes '
Cristy15f22012015-11-14 17:51:30 -050017373 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000017374 :
17375 else
17376 can_build_shared=no
17377 fi
17378 ;;
17379 esac
Cristy15f22012015-11-14 17:51:30 -050017380 # Using Import Files as archive members, it is possible to support
17381 # filename-based versioning of shared library archives on AIX. While
17382 # this would work for both with and without runtime linking, it will
17383 # prevent static linking of such archives. So we do filename-based
17384 # shared library versioning with .so extension only, which is used
17385 # when both runtime linking and shared linking is enabled.
17386 # Unfortunately, runtime linking may impact performance, so we do
17387 # not want this to be the default eventually. Also, we use the
17388 # versioned .so libs for executables only if there is the -brtl
17389 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17390 # To allow for filename-based versioning support, we need to create
17391 # libNAME.so.V as an archive file, containing:
17392 # *) an Import File, referring to the versioned filename of the
17393 # archive as well as the shared archive member, telling the
17394 # bitwidth (32 or 64) of that shared object, and providing the
17395 # list of exported symbols of that shared object, eventually
17396 # decorated with the 'weak' keyword
17397 # *) the shared object with the F_LOADONLY flag set, to really avoid
17398 # it being seen by the linker.
17399 # At run time we better use the real file rather than another symlink,
17400 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17401
17402 case $with_aix_soname,$aix_use_runtimelinking in
17403 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cristy73bd4a52010-10-05 11:24:23 +000017404 # soname into executable. Probably we can add versioning support to
17405 # collect2, so additional links can be useful in future.
Cristy15f22012015-11-14 17:51:30 -050017406 aix,yes) # traditional libtool
17407 dynamic_linker='AIX unversionable lib.so'
cristy73bd4a52010-10-05 11:24:23 +000017408 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17409 # instead of lib<name>.a to let people know that these are not
17410 # typical AIX shared libraries.
Cristy15f22012015-11-14 17:51:30 -050017411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17412 ;;
17413 aix,no) # traditional AIX only
17414 dynamic_linker='AIX lib.a(lib.so.V)'
cristy73bd4a52010-10-05 11:24:23 +000017415 # We preserve .a as extension for shared libraries through AIX4.2
17416 # and later when we are not doing run time linking.
Cristy15f22012015-11-14 17:51:30 -050017417 library_names_spec='$libname$release.a $libname.a'
17418 soname_spec='$libname$release$shared_ext$major'
17419 ;;
17420 svr4,*) # full svr4 only
17421 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17422 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17423 # We do not specify a path in Import Files, so LIBPATH fires.
17424 shlibpath_overrides_runpath=yes
17425 ;;
17426 *,yes) # both, prefer svr4
17427 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17428 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17429 # unpreferred sharedlib libNAME.a needs extra handling
17430 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17431 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17432 # We do not specify a path in Import Files, so LIBPATH fires.
17433 shlibpath_overrides_runpath=yes
17434 ;;
17435 *,no) # both, prefer aix
17436 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17437 library_names_spec='$libname$release.a $libname.a'
17438 soname_spec='$libname$release$shared_ext$major'
17439 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17440 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17441 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17442 ;;
17443 esac
cristy73bd4a52010-10-05 11:24:23 +000017444 shlibpath_var=LIBPATH
17445 fi
17446 ;;
17447
17448amigaos*)
17449 case $host_cpu in
17450 powerpc)
17451 # Since July 2007 AmigaOS4 officially supports .so libraries.
17452 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Cristy15f22012015-11-14 17:51:30 -050017453 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017454 ;;
17455 m68k)
17456 library_names_spec='$libname.ixlibrary $libname.a'
17457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Cristy15f22012015-11-14 17:51:30 -050017458 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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 +000017459 ;;
17460 esac
17461 ;;
17462
17463beos*)
Cristy15f22012015-11-14 17:51:30 -050017464 library_names_spec='$libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017465 dynamic_linker="$host_os ld.so"
17466 shlibpath_var=LIBRARY_PATH
17467 ;;
17468
17469bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017470 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017471 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17473 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17478 # the default ld.so.conf also contains /usr/contrib/lib and
17479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17480 # libtool to hard-code these into programs
17481 ;;
17482
17483cygwin* | mingw* | pw32* | cegcc*)
17484 version_type=windows
Cristy15f22012015-11-14 17:51:30 -050017485 shrext_cmds=.dll
cristy73bd4a52010-10-05 11:24:23 +000017486 need_version=no
17487 need_lib_prefix=no
17488
cristyda16f162011-02-19 23:52:17 +000017489 case $GCC,$cc_basename in
17490 yes,*)
17491 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017492 library_names_spec='$libname.dll.a'
17493 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050017494 postinstall_cmds='base_file=`basename \$file`~
17495 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristy73bd4a52010-10-05 11:24:23 +000017496 dldir=$destdir/`dirname \$dlpath`~
17497 test -d \$dldir || mkdir -p \$dldir~
17498 $install_prog $dir/$dlname \$dldir/$dlname~
17499 chmod a+x \$dldir/$dlname~
17500 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17501 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17502 fi'
17503 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17504 dlpath=$dir/\$dldll~
17505 $RM \$dlpath'
17506 shlibpath_overrides_runpath=yes
17507
17508 case $host_os in
17509 cygwin*)
17510 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050017511 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy0c60a692010-11-04 01:09:47 +000017512
17513 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017514 ;;
17515 mingw* | cegcc*)
17516 # MinGW DLLs use traditional 'lib' prefix
Cristy15f22012015-11-14 17:51:30 -050017517 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017518 ;;
17519 pw32*)
17520 # pw32 DLLs use 'pw' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050017521 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017522 ;;
17523 esac
cristyda16f162011-02-19 23:52:17 +000017524 dynamic_linker='Win32 ld.exe'
17525 ;;
17526
17527 *,cl*)
17528 # Native MSVC
17529 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050017530 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17531 library_names_spec='$libname.dll.lib'
cristyda16f162011-02-19 23:52:17 +000017532
17533 case $build_os in
17534 mingw*)
17535 sys_lib_search_path_spec=
17536 lt_save_ifs=$IFS
17537 IFS=';'
17538 for lt_path in $LIB
17539 do
17540 IFS=$lt_save_ifs
17541 # Let DOS variable expansion print the short 8.3 style file name.
17542 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17543 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17544 done
17545 IFS=$lt_save_ifs
17546 # Convert to MSYS style.
17547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17548 ;;
17549 cygwin*)
17550 # Convert to unix form, then to dos form, then back to unix form
17551 # but this time dos style (no spaces!) so that the unix form looks
17552 # like /cygdrive/c/PROGRA~1:/cygdr...
17553 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17554 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17555 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17556 ;;
17557 *)
Cristy15f22012015-11-14 17:51:30 -050017558 sys_lib_search_path_spec=$LIB
cristyda16f162011-02-19 23:52:17 +000017559 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17560 # It is most probably a Windows format PATH.
17561 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17562 else
17563 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17564 fi
17565 # FIXME: find the short name or the path components, as spaces are
17566 # common. (e.g. "Program Files" -> "PROGRA~1")
17567 ;;
17568 esac
17569
17570 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050017571 postinstall_cmds='base_file=`basename \$file`~
17572 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristyda16f162011-02-19 23:52:17 +000017573 dldir=$destdir/`dirname \$dlpath`~
17574 test -d \$dldir || mkdir -p \$dldir~
17575 $install_prog $dir/$dlname \$dldir/$dlname'
17576 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17577 dlpath=$dir/\$dldll~
17578 $RM \$dlpath'
17579 shlibpath_overrides_runpath=yes
17580 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017581 ;;
17582
17583 *)
cristyda16f162011-02-19 23:52:17 +000017584 # Assume MSVC wrapper
Cristy15f22012015-11-14 17:51:30 -050017585 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017586 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017587 ;;
17588 esac
cristy73bd4a52010-10-05 11:24:23 +000017589 # FIXME: first we should search . and the directory the executable is in
17590 shlibpath_var=PATH
17591 ;;
17592
17593darwin* | rhapsody*)
17594 dynamic_linker="$host_os dyld"
17595 version_type=darwin
17596 need_lib_prefix=no
17597 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017598 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17599 soname_spec='$libname$release$major$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017600 shlibpath_overrides_runpath=yes
17601 shlibpath_var=DYLD_LIBRARY_PATH
17602 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17603
17604 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17605 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17606 ;;
17607
17608dgux*)
cristy99bd5232011-12-07 14:38:20 +000017609 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017610 need_lib_prefix=no
17611 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017612 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17613 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017614 shlibpath_var=LD_LIBRARY_PATH
17615 ;;
17616
cristy73bd4a52010-10-05 11:24:23 +000017617freebsd* | dragonfly*)
17618 # DragonFly does not have aout. When/if they implement a new
17619 # versioning mechanism, adjust this.
17620 if test -x /usr/bin/objformat; then
17621 objformat=`/usr/bin/objformat`
17622 else
17623 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017624 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017625 *) objformat=elf ;;
17626 esac
17627 fi
17628 version_type=freebsd-$objformat
17629 case $version_type in
17630 freebsd-elf*)
Cristy15f22012015-11-14 17:51:30 -050017631 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17632 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017633 need_version=no
17634 need_lib_prefix=no
17635 ;;
17636 freebsd-*)
Cristy15f22012015-11-14 17:51:30 -050017637 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000017638 need_version=yes
17639 ;;
17640 esac
17641 shlibpath_var=LD_LIBRARY_PATH
17642 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017643 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017644 shlibpath_overrides_runpath=yes
17645 ;;
17646 freebsd3.[01]* | freebsdelf3.[01]*)
17647 shlibpath_overrides_runpath=yes
17648 hardcode_into_libs=yes
17649 ;;
17650 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17651 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17652 shlibpath_overrides_runpath=no
17653 hardcode_into_libs=yes
17654 ;;
17655 *) # from 4.6 on, and DragonFly
17656 shlibpath_overrides_runpath=yes
17657 hardcode_into_libs=yes
17658 ;;
17659 esac
17660 ;;
17661
cristy0c60a692010-11-04 01:09:47 +000017662haiku*)
cristy99bd5232011-12-07 14:38:20 +000017663 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017664 need_lib_prefix=no
17665 need_version=no
17666 dynamic_linker="$host_os runtime_loader"
Cristy15f22012015-11-14 17:51:30 -050017667 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17668 soname_spec='$libname$release$shared_ext$major'
cristy0c60a692010-11-04 01:09:47 +000017669 shlibpath_var=LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050017670 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017671 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17672 hardcode_into_libs=yes
17673 ;;
17674
cristy73bd4a52010-10-05 11:24:23 +000017675hpux9* | hpux10* | hpux11*)
17676 # Give a soname corresponding to the major version so that dld.sl refuses to
17677 # link against other versions.
17678 version_type=sunos
17679 need_lib_prefix=no
17680 need_version=no
17681 case $host_cpu in
17682 ia64*)
17683 shrext_cmds='.so'
17684 hardcode_into_libs=yes
17685 dynamic_linker="$host_os dld.so"
17686 shlibpath_var=LD_LIBRARY_PATH
17687 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050017688 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17689 soname_spec='$libname$release$shared_ext$major'
17690 if test 32 = "$HPUX_IA64_MODE"; then
cristy73bd4a52010-10-05 11:24:23 +000017691 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Cristy15f22012015-11-14 17:51:30 -050017692 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cristy73bd4a52010-10-05 11:24:23 +000017693 else
17694 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Cristy15f22012015-11-14 17:51:30 -050017695 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cristy73bd4a52010-10-05 11:24:23 +000017696 fi
cristy73bd4a52010-10-05 11:24:23 +000017697 ;;
17698 hppa*64*)
17699 shrext_cmds='.sl'
17700 hardcode_into_libs=yes
17701 dynamic_linker="$host_os dld.sl"
17702 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050017704 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17705 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017706 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17708 ;;
17709 *)
17710 shrext_cmds='.sl'
17711 dynamic_linker="$host_os dld.sl"
17712 shlibpath_var=SHLIB_PATH
17713 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Cristy15f22012015-11-14 17:51:30 -050017714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17715 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017716 ;;
17717 esac
cristy0c60a692010-11-04 01:09:47 +000017718 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017719 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017720 # or fails outright, so override atomically:
17721 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017722 ;;
17723
17724interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017725 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017726 need_lib_prefix=no
17727 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017728 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17729 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017730 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=no
17733 hardcode_into_libs=yes
17734 ;;
17735
17736irix5* | irix6* | nonstopux*)
17737 case $host_os in
17738 nonstopux*) version_type=nonstopux ;;
17739 *)
Cristy15f22012015-11-14 17:51:30 -050017740 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy99bd5232011-12-07 14:38:20 +000017741 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017742 else
17743 version_type=irix
17744 fi ;;
17745 esac
17746 need_lib_prefix=no
17747 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017748 soname_spec='$libname$release$shared_ext$major'
17749 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017750 case $host_os in
17751 irix5* | nonstopux*)
17752 libsuff= shlibsuff=
17753 ;;
17754 *)
17755 case $LD in # libtool.m4 will add one of these switches to LD
17756 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17757 libsuff= shlibsuff= libmagic=32-bit;;
17758 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17759 libsuff=32 shlibsuff=N32 libmagic=N32;;
17760 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17761 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17762 *) libsuff= shlibsuff= libmagic=never-match;;
17763 esac
17764 ;;
17765 esac
17766 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17767 shlibpath_overrides_runpath=no
Cristy15f22012015-11-14 17:51:30 -050017768 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17769 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cristy73bd4a52010-10-05 11:24:23 +000017770 hardcode_into_libs=yes
17771 ;;
17772
17773# No shared lib support for Linux oldld, aout, or coff.
17774linux*oldld* | linux*aout* | linux*coff*)
17775 dynamic_linker=no
17776 ;;
17777
Cristy15f22012015-11-14 17:51:30 -050017778linux*android*)
17779 version_type=none # Android doesn't support versioned libraries.
17780 need_lib_prefix=no
17781 need_version=no
17782 library_names_spec='$libname$release$shared_ext'
17783 soname_spec='$libname$release$shared_ext'
17784 finish_cmds=
17785 shlibpath_var=LD_LIBRARY_PATH
17786 shlibpath_overrides_runpath=yes
17787
17788 # This implies no fast_install, which is unacceptable.
17789 # Some rework will be needed to allow for fast_install
17790 # before this can be enabled.
17791 hardcode_into_libs=yes
17792
17793 dynamic_linker='Android linker'
17794 # Don't embed -rpath directories since the linker doesn't support them.
17795 hardcode_libdir_flag_spec='-L$libdir'
17796 ;;
17797
cristy99bd5232011-12-07 14:38:20 +000017798# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050017799linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy99bd5232011-12-07 14:38:20 +000017800 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017801 need_lib_prefix=no
17802 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017803 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17804 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017805 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17806 shlibpath_var=LD_LIBRARY_PATH
17807 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017808
cristy73bd4a52010-10-05 11:24:23 +000017809 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017810 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017811 $as_echo_n "(cached) " >&6
17812else
17813 lt_cv_shlibpath_overrides_runpath=no
17814 save_LDFLAGS=$LDFLAGS
17815 save_libdir=$libdir
17816 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17817 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017819/* end confdefs.h. */
17820
17821int
17822main ()
17823{
17824
17825 ;
17826 return 0;
17827}
17828_ACEOF
17829if ac_fn_c_try_link "$LINENO"; then :
17830 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017831 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017832fi
17833fi
17834rm -f core conftest.err conftest.$ac_objext \
17835 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017836 LDFLAGS=$save_LDFLAGS
17837 libdir=$save_libdir
17838
17839fi
17840
17841 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017842
17843 # This implies no fast_install, which is unacceptable.
17844 # Some rework will be needed to allow for fast_install
17845 # before this can be enabled.
17846 hardcode_into_libs=yes
17847
17848 # Add ABI-specific directories to the system library path.
17849 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17850
Cristy15f22012015-11-14 17:51:30 -050017851 # Ideally, we could use ldconfig to report *all* directores which are
17852 # searched for libraries, however this is still not possible. Aside from not
17853 # being certain /sbin/ldconfig is available, command
17854 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17855 # even though it is searched at run-time. Try to do the best guess by
17856 # appending ld.so.conf contents (and includes) to the search path.
cristy73bd4a52010-10-05 11:24:23 +000017857 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017858 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 +000017859 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17860 fi
17861
17862 # We used to test for /lib/ld.so.1 and disable shared libraries on
17863 # powerpc, because MkLinux only supported shared libraries with the
17864 # GNU dynamic linker. Since this was broken with cross compilers,
17865 # most powerpc-linux boxes support dynamic linking these days and
17866 # people can always --disable-shared, the test was removed, and we
17867 # assume the GNU/Linux dynamic linker is in use.
17868 dynamic_linker='GNU/Linux ld.so'
17869 ;;
17870
17871netbsd*)
17872 version_type=sunos
17873 need_lib_prefix=no
17874 need_version=no
17875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017876 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000017877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17878 dynamic_linker='NetBSD (a.out) ld.so'
17879 else
Cristy15f22012015-11-14 17:51:30 -050017880 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17881 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017882 dynamic_linker='NetBSD ld.elf_so'
17883 fi
17884 shlibpath_var=LD_LIBRARY_PATH
17885 shlibpath_overrides_runpath=yes
17886 hardcode_into_libs=yes
17887 ;;
17888
17889newsos6)
cristy99bd5232011-12-07 14:38:20 +000017890 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050017891 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017892 shlibpath_var=LD_LIBRARY_PATH
17893 shlibpath_overrides_runpath=yes
17894 ;;
17895
17896*nto* | *qnx*)
17897 version_type=qnx
17898 need_lib_prefix=no
17899 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017900 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17901 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017902 shlibpath_var=LD_LIBRARY_PATH
17903 shlibpath_overrides_runpath=no
17904 hardcode_into_libs=yes
17905 dynamic_linker='ldqnx.so'
17906 ;;
17907
Cristy15f22012015-11-14 17:51:30 -050017908openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000017909 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050017910 sys_lib_dlsearch_path_spec=/usr/lib
cristy73bd4a52010-10-05 11:24:23 +000017911 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050017912 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17913 need_version=no
17914 else
17915 need_version=yes
17916 fi
17917 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000017918 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17919 shlibpath_var=LD_LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050017920 shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017921 ;;
17922
17923os2*)
17924 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050017925 version_type=windows
17926 shrext_cmds=.dll
17927 need_version=no
cristy73bd4a52010-10-05 11:24:23 +000017928 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050017929 # OS/2 can only load a DLL with a base name of 8 characters or less.
17930 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
17931 v=$($ECHO $release$versuffix | tr -d .-);
17932 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
17933 $ECHO $n$v`$shared_ext'
17934 library_names_spec='${libname}_dll.$libext'
cristy73bd4a52010-10-05 11:24:23 +000017935 dynamic_linker='OS/2 ld.exe'
Cristy15f22012015-11-14 17:51:30 -050017936 shlibpath_var=BEGINLIBPATH
17937 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17939 postinstall_cmds='base_file=`basename \$file`~
17940 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
17941 dldir=$destdir/`dirname \$dlpath`~
17942 test -d \$dldir || mkdir -p \$dldir~
17943 $install_prog $dir/$dlname \$dldir/$dlname~
17944 chmod a+x \$dldir/$dlname~
17945 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17946 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17947 fi'
17948 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
17949 dlpath=$dir/\$dldll~
17950 $RM \$dlpath'
cristy73bd4a52010-10-05 11:24:23 +000017951 ;;
17952
17953osf3* | osf4* | osf5*)
17954 version_type=osf
17955 need_lib_prefix=no
17956 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017957 soname_spec='$libname$release$shared_ext$major'
17958 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017959 shlibpath_var=LD_LIBRARY_PATH
17960 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Cristy15f22012015-11-14 17:51:30 -050017961 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000017962 ;;
17963
17964rdos*)
17965 dynamic_linker=no
17966 ;;
17967
17968solaris*)
cristy99bd5232011-12-07 14:38:20 +000017969 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017970 need_lib_prefix=no
17971 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17973 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017974 shlibpath_var=LD_LIBRARY_PATH
17975 shlibpath_overrides_runpath=yes
17976 hardcode_into_libs=yes
17977 # ldd complains unless libraries are executable
17978 postinstall_cmds='chmod +x $lib'
17979 ;;
17980
17981sunos4*)
17982 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050017983 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000017984 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17985 shlibpath_var=LD_LIBRARY_PATH
17986 shlibpath_overrides_runpath=yes
Cristy15f22012015-11-14 17:51:30 -050017987 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000017988 need_lib_prefix=no
17989 fi
17990 need_version=yes
17991 ;;
17992
17993sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000017994 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050017995 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17996 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017997 shlibpath_var=LD_LIBRARY_PATH
17998 case $host_vendor in
17999 sni)
18000 shlibpath_overrides_runpath=no
18001 need_lib_prefix=no
18002 runpath_var=LD_RUN_PATH
18003 ;;
18004 siemens)
18005 need_lib_prefix=no
18006 ;;
18007 motorola)
18008 need_lib_prefix=no
18009 need_version=no
18010 shlibpath_overrides_runpath=no
18011 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18012 ;;
18013 esac
18014 ;;
18015
18016sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050018017 if test -d /usr/nec; then
cristy99bd5232011-12-07 14:38:20 +000018018 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018019 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18020 soname_spec='$libname$shared_ext.$major'
cristy73bd4a52010-10-05 11:24:23 +000018021 shlibpath_var=LD_LIBRARY_PATH
18022 fi
18023 ;;
18024
18025sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Cristy15f22012015-11-14 17:51:30 -050018026 version_type=sco
cristy73bd4a52010-10-05 11:24:23 +000018027 need_lib_prefix=no
18028 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018029 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18030 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018031 shlibpath_var=LD_LIBRARY_PATH
18032 shlibpath_overrides_runpath=yes
18033 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050018034 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000018035 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18036 else
18037 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18038 case $host_os in
18039 sco3.2v5*)
18040 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18041 ;;
18042 esac
18043 fi
18044 sys_lib_dlsearch_path_spec='/usr/lib'
18045 ;;
18046
18047tpf*)
18048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000018049 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000018050 need_lib_prefix=no
18051 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018053 shlibpath_var=LD_LIBRARY_PATH
18054 shlibpath_overrides_runpath=no
18055 hardcode_into_libs=yes
18056 ;;
18057
18058uts4*)
cristy99bd5232011-12-07 14:38:20 +000018059 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18061 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018062 shlibpath_var=LD_LIBRARY_PATH
18063 ;;
18064
18065*)
18066 dynamic_linker=no
18067 ;;
18068esac
18069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18070$as_echo "$dynamic_linker" >&6; }
Cristy15f22012015-11-14 17:51:30 -050018071test no = "$dynamic_linker" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000018072
18073variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Cristy15f22012015-11-14 17:51:30 -050018074if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000018075 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18076fi
18077
Cristy15f22012015-11-14 17:51:30 -050018078if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18079 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000018080fi
Cristy15f22012015-11-14 17:51:30 -050018081
18082if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18083 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cristy73bd4a52010-10-05 11:24:23 +000018084fi
18085
Cristy15f22012015-11-14 17:51:30 -050018086# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18087configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18088
18089# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18090func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18091
18092# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18093configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18094
18095
18096
18097
18098
18099
cristy73bd4a52010-10-05 11:24:23 +000018100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176
18177
18178
18179
18180
18181
18182
18183
18184
18185
cristy0c60a692010-11-04 01:09:47 +000018186
18187
18188
18189
18190
cristy73bd4a52010-10-05 11:24:23 +000018191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18192$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18193hardcode_action=
18194if test -n "$hardcode_libdir_flag_spec" ||
18195 test -n "$runpath_var" ||
Cristy15f22012015-11-14 17:51:30 -050018196 test yes = "$hardcode_automatic"; then
cristy73bd4a52010-10-05 11:24:23 +000018197
18198 # We can hardcode non-existent directories.
Cristy15f22012015-11-14 17:51:30 -050018199 if test no != "$hardcode_direct" &&
cristy73bd4a52010-10-05 11:24:23 +000018200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18201 # have to relink, otherwise we might link with an installed library
18202 # when we should be linking with a yet-to-be-installed one
Cristy15f22012015-11-14 17:51:30 -050018203 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18204 test no != "$hardcode_minus_L"; then
cristy73bd4a52010-10-05 11:24:23 +000018205 # Linking always hardcodes the temporary library directory.
18206 hardcode_action=relink
18207 else
18208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18209 hardcode_action=immediate
18210 fi
18211else
18212 # We cannot hardcode anything, or else we can only hardcode existing
18213 # directories.
18214 hardcode_action=unsupported
18215fi
18216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18217$as_echo "$hardcode_action" >&6; }
18218
Cristy15f22012015-11-14 17:51:30 -050018219if test relink = "$hardcode_action" ||
18220 test yes = "$inherit_rpath"; then
cristy73bd4a52010-10-05 11:24:23 +000018221 # Fast installation is not supported
18222 enable_fast_install=no
Cristy15f22012015-11-14 17:51:30 -050018223elif test yes = "$shlibpath_overrides_runpath" ||
18224 test no = "$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000018225 # Fast installation is not necessary
18226 enable_fast_install=needless
18227fi
18228
18229
18230
18231
18232
18233
Cristy15f22012015-11-14 17:51:30 -050018234 if test yes != "$enable_dlopen"; then
cristy73bd4a52010-10-05 11:24:23 +000018235 enable_dlopen=unknown
18236 enable_dlopen_self=unknown
18237 enable_dlopen_self_static=unknown
18238else
18239 lt_cv_dlopen=no
18240 lt_cv_dlopen_libs=
18241
18242 case $host_os in
18243 beos*)
Cristy15f22012015-11-14 17:51:30 -050018244 lt_cv_dlopen=load_add_on
cristy73bd4a52010-10-05 11:24:23 +000018245 lt_cv_dlopen_libs=
18246 lt_cv_dlopen_self=yes
18247 ;;
18248
18249 mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050018250 lt_cv_dlopen=LoadLibrary
cristy73bd4a52010-10-05 11:24:23 +000018251 lt_cv_dlopen_libs=
18252 ;;
18253
18254 cygwin*)
Cristy15f22012015-11-14 17:51:30 -050018255 lt_cv_dlopen=dlopen
cristy73bd4a52010-10-05 11:24:23 +000018256 lt_cv_dlopen_libs=
18257 ;;
18258
18259 darwin*)
Cristy15f22012015-11-14 17:51:30 -050018260 # if libdl is installed we need to link against it
cristy73bd4a52010-10-05 11:24:23 +000018261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18262$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018263if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018264 $as_echo_n "(cached) " >&6
18265else
18266 ac_check_lib_save_LIBS=$LIBS
18267LIBS="-ldl $LIBS"
18268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269/* end confdefs.h. */
18270
18271/* Override any GCC internal prototype to avoid an error.
18272 Use char because int might match the return type of a GCC
18273 builtin and then its argument prototype would still apply. */
18274#ifdef __cplusplus
18275extern "C"
18276#endif
18277char dlopen ();
18278int
18279main ()
18280{
18281return dlopen ();
18282 ;
18283 return 0;
18284}
18285_ACEOF
18286if ac_fn_c_try_link "$LINENO"; then :
18287 ac_cv_lib_dl_dlopen=yes
18288else
18289 ac_cv_lib_dl_dlopen=no
18290fi
18291rm -f core conftest.err conftest.$ac_objext \
18292 conftest$ac_exeext conftest.$ac_ext
18293LIBS=$ac_check_lib_save_LIBS
18294fi
18295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18296$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018297if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018298 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cristy73bd4a52010-10-05 11:24:23 +000018299else
18300
Cristy15f22012015-11-14 17:51:30 -050018301 lt_cv_dlopen=dyld
cristy73bd4a52010-10-05 11:24:23 +000018302 lt_cv_dlopen_libs=
18303 lt_cv_dlopen_self=yes
18304
18305fi
18306
18307 ;;
18308
Cristy15f22012015-11-14 17:51:30 -050018309 tpf*)
18310 # Don't try to run any link tests for TPF. We know it's impossible
18311 # because TPF is a cross-compiler, and we know how we open DSOs.
18312 lt_cv_dlopen=dlopen
18313 lt_cv_dlopen_libs=
18314 lt_cv_dlopen_self=no
18315 ;;
18316
cristy73bd4a52010-10-05 11:24:23 +000018317 *)
18318 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000018319if test "x$ac_cv_func_shl_load" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018320 lt_cv_dlopen=shl_load
cristy73bd4a52010-10-05 11:24:23 +000018321else
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18323$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018324if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018325 $as_echo_n "(cached) " >&6
18326else
18327 ac_check_lib_save_LIBS=$LIBS
18328LIBS="-ldld $LIBS"
18329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18330/* end confdefs.h. */
18331
18332/* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18335#ifdef __cplusplus
18336extern "C"
18337#endif
18338char shl_load ();
18339int
18340main ()
18341{
18342return shl_load ();
18343 ;
18344 return 0;
18345}
18346_ACEOF
18347if ac_fn_c_try_link "$LINENO"; then :
18348 ac_cv_lib_dld_shl_load=yes
18349else
18350 ac_cv_lib_dld_shl_load=no
18351fi
18352rm -f core conftest.err conftest.$ac_objext \
18353 conftest$ac_exeext conftest.$ac_ext
18354LIBS=$ac_check_lib_save_LIBS
18355fi
18356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18357$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000018358if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018359 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
cristy73bd4a52010-10-05 11:24:23 +000018360else
18361 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000018362if test "x$ac_cv_func_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018363 lt_cv_dlopen=dlopen
cristy73bd4a52010-10-05 11:24:23 +000018364else
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18366$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018367if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018368 $as_echo_n "(cached) " >&6
18369else
18370 ac_check_lib_save_LIBS=$LIBS
18371LIBS="-ldl $LIBS"
18372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18373/* end confdefs.h. */
18374
18375/* Override any GCC internal prototype to avoid an error.
18376 Use char because int might match the return type of a GCC
18377 builtin and then its argument prototype would still apply. */
18378#ifdef __cplusplus
18379extern "C"
18380#endif
18381char dlopen ();
18382int
18383main ()
18384{
18385return dlopen ();
18386 ;
18387 return 0;
18388}
18389_ACEOF
18390if ac_fn_c_try_link "$LINENO"; then :
18391 ac_cv_lib_dl_dlopen=yes
18392else
18393 ac_cv_lib_dl_dlopen=no
18394fi
18395rm -f core conftest.err conftest.$ac_objext \
18396 conftest$ac_exeext conftest.$ac_ext
18397LIBS=$ac_check_lib_save_LIBS
18398fi
18399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18400$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018401if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018402 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cristy73bd4a52010-10-05 11:24:23 +000018403else
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18405$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018406if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018407 $as_echo_n "(cached) " >&6
18408else
18409 ac_check_lib_save_LIBS=$LIBS
18410LIBS="-lsvld $LIBS"
18411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18412/* end confdefs.h. */
18413
18414/* Override any GCC internal prototype to avoid an error.
18415 Use char because int might match the return type of a GCC
18416 builtin and then its argument prototype would still apply. */
18417#ifdef __cplusplus
18418extern "C"
18419#endif
18420char dlopen ();
18421int
18422main ()
18423{
18424return dlopen ();
18425 ;
18426 return 0;
18427}
18428_ACEOF
18429if ac_fn_c_try_link "$LINENO"; then :
18430 ac_cv_lib_svld_dlopen=yes
18431else
18432 ac_cv_lib_svld_dlopen=no
18433fi
18434rm -f core conftest.err conftest.$ac_objext \
18435 conftest$ac_exeext conftest.$ac_ext
18436LIBS=$ac_check_lib_save_LIBS
18437fi
18438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18439$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018440if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018441 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
cristy73bd4a52010-10-05 11:24:23 +000018442else
18443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18444$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018445if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018446 $as_echo_n "(cached) " >&6
18447else
18448 ac_check_lib_save_LIBS=$LIBS
18449LIBS="-ldld $LIBS"
18450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18451/* end confdefs.h. */
18452
18453/* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */
18456#ifdef __cplusplus
18457extern "C"
18458#endif
18459char dld_link ();
18460int
18461main ()
18462{
18463return dld_link ();
18464 ;
18465 return 0;
18466}
18467_ACEOF
18468if ac_fn_c_try_link "$LINENO"; then :
18469 ac_cv_lib_dld_dld_link=yes
18470else
18471 ac_cv_lib_dld_dld_link=no
18472fi
18473rm -f core conftest.err conftest.$ac_objext \
18474 conftest$ac_exeext conftest.$ac_ext
18475LIBS=$ac_check_lib_save_LIBS
18476fi
18477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18478$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000018479if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018480 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
cristy73bd4a52010-10-05 11:24:23 +000018481fi
18482
18483
18484fi
18485
18486
18487fi
18488
18489
18490fi
18491
18492
18493fi
18494
18495
18496fi
18497
18498 ;;
18499 esac
18500
Cristy15f22012015-11-14 17:51:30 -050018501 if test no = "$lt_cv_dlopen"; then
cristy73bd4a52010-10-05 11:24:23 +000018502 enable_dlopen=no
Cristy15f22012015-11-14 17:51:30 -050018503 else
18504 enable_dlopen=yes
cristy73bd4a52010-10-05 11:24:23 +000018505 fi
18506
18507 case $lt_cv_dlopen in
18508 dlopen)
Cristy15f22012015-11-14 17:51:30 -050018509 save_CPPFLAGS=$CPPFLAGS
18510 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cristy73bd4a52010-10-05 11:24:23 +000018511
Cristy15f22012015-11-14 17:51:30 -050018512 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018513 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18514
Cristy15f22012015-11-14 17:51:30 -050018515 save_LIBS=$LIBS
cristy73bd4a52010-10-05 11:24:23 +000018516 LIBS="$lt_cv_dlopen_libs $LIBS"
18517
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18519$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018520if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018521 $as_echo_n "(cached) " >&6
18522else
Cristy15f22012015-11-14 17:51:30 -050018523 if test yes = "$cross_compiling"; then :
cristy73bd4a52010-10-05 11:24:23 +000018524 lt_cv_dlopen_self=cross
18525else
18526 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18527 lt_status=$lt_dlunknown
18528 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018529#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018530#include "confdefs.h"
18531
18532#if HAVE_DLFCN_H
18533#include <dlfcn.h>
18534#endif
18535
18536#include <stdio.h>
18537
18538#ifdef RTLD_GLOBAL
18539# define LT_DLGLOBAL RTLD_GLOBAL
18540#else
18541# ifdef DL_GLOBAL
18542# define LT_DLGLOBAL DL_GLOBAL
18543# else
18544# define LT_DLGLOBAL 0
18545# endif
18546#endif
18547
18548/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18549 find out it does not work in some platform. */
18550#ifndef LT_DLLAZY_OR_NOW
18551# ifdef RTLD_LAZY
18552# define LT_DLLAZY_OR_NOW RTLD_LAZY
18553# else
18554# ifdef DL_LAZY
18555# define LT_DLLAZY_OR_NOW DL_LAZY
18556# else
18557# ifdef RTLD_NOW
18558# define LT_DLLAZY_OR_NOW RTLD_NOW
18559# else
18560# ifdef DL_NOW
18561# define LT_DLLAZY_OR_NOW DL_NOW
18562# else
18563# define LT_DLLAZY_OR_NOW 0
18564# endif
18565# endif
18566# endif
18567# endif
18568#endif
18569
Cristy15f22012015-11-14 17:51:30 -050018570/* When -fvisibility=hidden is used, assume the code has been annotated
cristy0c60a692010-11-04 01:09:47 +000018571 correspondingly for the symbols needed. */
Cristy15f22012015-11-14 17:51:30 -050018572#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018573int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018574#endif
18575
cristyda16f162011-02-19 23:52:17 +000018576int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018577int main ()
18578{
18579 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18580 int status = $lt_dlunknown;
18581
18582 if (self)
18583 {
18584 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018585 else
18586 {
18587 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18588 else puts (dlerror ());
18589 }
cristy73bd4a52010-10-05 11:24:23 +000018590 /* dlclose (self); */
18591 }
18592 else
18593 puts (dlerror ());
18594
18595 return status;
18596}
18597_LT_EOF
18598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18599 (eval $ac_link) 2>&5
18600 ac_status=$?
18601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050018602 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000018603 (./conftest; exit; ) >&5 2>/dev/null
18604 lt_status=$?
18605 case x$lt_status in
18606 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18607 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18608 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18609 esac
18610 else :
18611 # compilation failed
18612 lt_cv_dlopen_self=no
18613 fi
18614fi
18615rm -fr conftest*
18616
18617
18618fi
18619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18620$as_echo "$lt_cv_dlopen_self" >&6; }
18621
Cristy15f22012015-11-14 17:51:30 -050018622 if test yes = "$lt_cv_dlopen_self"; then
cristy73bd4a52010-10-05 11:24:23 +000018623 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18625$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018626if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018627 $as_echo_n "(cached) " >&6
18628else
Cristy15f22012015-11-14 17:51:30 -050018629 if test yes = "$cross_compiling"; then :
cristy73bd4a52010-10-05 11:24:23 +000018630 lt_cv_dlopen_self_static=cross
18631else
18632 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18633 lt_status=$lt_dlunknown
18634 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018635#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018636#include "confdefs.h"
18637
18638#if HAVE_DLFCN_H
18639#include <dlfcn.h>
18640#endif
18641
18642#include <stdio.h>
18643
18644#ifdef RTLD_GLOBAL
18645# define LT_DLGLOBAL RTLD_GLOBAL
18646#else
18647# ifdef DL_GLOBAL
18648# define LT_DLGLOBAL DL_GLOBAL
18649# else
18650# define LT_DLGLOBAL 0
18651# endif
18652#endif
18653
18654/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18655 find out it does not work in some platform. */
18656#ifndef LT_DLLAZY_OR_NOW
18657# ifdef RTLD_LAZY
18658# define LT_DLLAZY_OR_NOW RTLD_LAZY
18659# else
18660# ifdef DL_LAZY
18661# define LT_DLLAZY_OR_NOW DL_LAZY
18662# else
18663# ifdef RTLD_NOW
18664# define LT_DLLAZY_OR_NOW RTLD_NOW
18665# else
18666# ifdef DL_NOW
18667# define LT_DLLAZY_OR_NOW DL_NOW
18668# else
18669# define LT_DLLAZY_OR_NOW 0
18670# endif
18671# endif
18672# endif
18673# endif
18674#endif
18675
Cristy15f22012015-11-14 17:51:30 -050018676/* When -fvisibility=hidden is used, assume the code has been annotated
cristy0c60a692010-11-04 01:09:47 +000018677 correspondingly for the symbols needed. */
Cristy15f22012015-11-14 17:51:30 -050018678#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018679int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018680#endif
18681
cristyda16f162011-02-19 23:52:17 +000018682int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018683int main ()
18684{
18685 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18686 int status = $lt_dlunknown;
18687
18688 if (self)
18689 {
18690 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018691 else
18692 {
18693 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18694 else puts (dlerror ());
18695 }
cristy73bd4a52010-10-05 11:24:23 +000018696 /* dlclose (self); */
18697 }
18698 else
18699 puts (dlerror ());
18700
18701 return status;
18702}
18703_LT_EOF
18704 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18705 (eval $ac_link) 2>&5
18706 ac_status=$?
18707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050018708 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000018709 (./conftest; exit; ) >&5 2>/dev/null
18710 lt_status=$?
18711 case x$lt_status in
18712 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18713 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18714 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18715 esac
18716 else :
18717 # compilation failed
18718 lt_cv_dlopen_self_static=no
18719 fi
18720fi
18721rm -fr conftest*
18722
18723
18724fi
18725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18726$as_echo "$lt_cv_dlopen_self_static" >&6; }
18727 fi
18728
Cristy15f22012015-11-14 17:51:30 -050018729 CPPFLAGS=$save_CPPFLAGS
18730 LDFLAGS=$save_LDFLAGS
18731 LIBS=$save_LIBS
cristy73bd4a52010-10-05 11:24:23 +000018732 ;;
18733 esac
18734
18735 case $lt_cv_dlopen_self in
18736 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18737 *) enable_dlopen_self=unknown ;;
18738 esac
18739
18740 case $lt_cv_dlopen_self_static in
18741 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18742 *) enable_dlopen_self_static=unknown ;;
18743 esac
18744fi
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762striplib=
18763old_striplib=
18764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18765$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18766if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18767 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18768 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18770$as_echo "yes" >&6; }
18771else
18772# FIXME - insert some real tests, host_os isn't really good enough
18773 case $host_os in
18774 darwin*)
Cristy15f22012015-11-14 17:51:30 -050018775 if test -n "$STRIP"; then
cristy73bd4a52010-10-05 11:24:23 +000018776 striplib="$STRIP -x"
18777 old_striplib="$STRIP -S"
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18779$as_echo "yes" >&6; }
18780 else
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18782$as_echo "no" >&6; }
18783 fi
18784 ;;
18785 *)
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18787$as_echo "no" >&6; }
18788 ;;
18789 esac
18790fi
18791
18792
18793
18794
18795
18796
18797
18798
18799
18800
18801
18802
Cristy15f22012015-11-14 17:51:30 -050018803 # Report what library types will actually be built
cristy73bd4a52010-10-05 11:24:23 +000018804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18805$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18807$as_echo "$can_build_shared" >&6; }
18808
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18810$as_echo_n "checking whether to build shared libraries... " >&6; }
Cristy15f22012015-11-14 17:51:30 -050018811 test no = "$can_build_shared" && enable_shared=no
cristy73bd4a52010-10-05 11:24:23 +000018812
18813 # On AIX, shared libraries and static libraries use the same namespace, and
18814 # are all built from PIC.
18815 case $host_os in
18816 aix3*)
Cristy15f22012015-11-14 17:51:30 -050018817 test yes = "$enable_shared" && enable_static=no
cristy73bd4a52010-10-05 11:24:23 +000018818 if test -n "$RANLIB"; then
18819 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18820 postinstall_cmds='$RANLIB $lib'
18821 fi
18822 ;;
18823
18824 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050018825 if test ia64 != "$host_cpu"; then
18826 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18827 yes,aix,yes) ;; # shared object as lib.so file only
18828 yes,svr4,*) ;; # shared object as lib.so archive member only
18829 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18830 esac
cristy73bd4a52010-10-05 11:24:23 +000018831 fi
18832 ;;
18833 esac
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18835$as_echo "$enable_shared" >&6; }
18836
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18838$as_echo_n "checking whether to build static libraries... " >&6; }
18839 # Make sure either enable_shared or enable_static is yes.
Cristy15f22012015-11-14 17:51:30 -050018840 test yes = "$enable_shared" || enable_static=yes
cristy73bd4a52010-10-05 11:24:23 +000018841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18842$as_echo "$enable_static" >&6; }
18843
18844
18845
18846
18847fi
18848ac_ext=c
18849ac_cpp='$CPP $CPPFLAGS'
18850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18852ac_compiler_gnu=$ac_cv_c_compiler_gnu
18853
Cristy15f22012015-11-14 17:51:30 -050018854CC=$lt_save_CC
cristy73bd4a52010-10-05 11:24:23 +000018855
Cristy15f22012015-11-14 17:51:30 -050018856 if test -n "$CXX" && ( test no != "$CXX" &&
18857 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18858 (test g++ != "$CXX"))); then
cristy0c60a692010-11-04 01:09:47 +000018859 ac_ext=cpp
18860ac_cpp='$CXXCPP $CPPFLAGS'
18861ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18862ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18863ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18865$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18866if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018867 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018868 $as_echo_n "(cached) " >&6
18869else
18870 # Double quotes because CXXCPP needs to be expanded
18871 for CXXCPP in "$CXX -E" "/lib/cpp"
18872 do
18873 ac_preproc_ok=false
18874for ac_cxx_preproc_warn_flag in '' yes
18875do
18876 # Use a header file that comes with gcc, so configuring glibc
18877 # with a fresh cross-compiler works.
18878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18879 # <limits.h> exists even on freestanding compilers.
18880 # On the NeXT, cc -E runs the code through the compiler's parser,
18881 # not just through cpp. "Syntax error" is here to catch this case.
18882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18883/* end confdefs.h. */
18884#ifdef __STDC__
18885# include <limits.h>
18886#else
18887# include <assert.h>
18888#endif
18889 Syntax error
18890_ACEOF
18891if ac_fn_cxx_try_cpp "$LINENO"; then :
18892
18893else
18894 # Broken: fails on valid input.
18895continue
18896fi
cristyda16f162011-02-19 23:52:17 +000018897rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018898
18899 # OK, works on sane cases. Now check whether nonexistent headers
18900 # can be detected and how.
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902/* end confdefs.h. */
18903#include <ac_nonexistent.h>
18904_ACEOF
18905if ac_fn_cxx_try_cpp "$LINENO"; then :
18906 # Broken: success on invalid input.
18907continue
18908else
18909 # Passes both tests.
18910ac_preproc_ok=:
18911break
18912fi
cristyda16f162011-02-19 23:52:17 +000018913rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018914
18915done
18916# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018917rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018918if $ac_preproc_ok; then :
18919 break
18920fi
18921
18922 done
18923 ac_cv_prog_CXXCPP=$CXXCPP
18924
18925fi
18926 CXXCPP=$ac_cv_prog_CXXCPP
18927else
18928 ac_cv_prog_CXXCPP=$CXXCPP
18929fi
18930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
18931$as_echo "$CXXCPP" >&6; }
18932ac_preproc_ok=false
18933for ac_cxx_preproc_warn_flag in '' yes
18934do
18935 # Use a header file that comes with gcc, so configuring glibc
18936 # with a fresh cross-compiler works.
18937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18938 # <limits.h> exists even on freestanding compilers.
18939 # On the NeXT, cc -E runs the code through the compiler's parser,
18940 # not just through cpp. "Syntax error" is here to catch this case.
18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942/* end confdefs.h. */
18943#ifdef __STDC__
18944# include <limits.h>
18945#else
18946# include <assert.h>
18947#endif
18948 Syntax error
18949_ACEOF
18950if ac_fn_cxx_try_cpp "$LINENO"; then :
18951
18952else
18953 # Broken: fails on valid input.
18954continue
18955fi
cristyda16f162011-02-19 23:52:17 +000018956rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018957
18958 # OK, works on sane cases. Now check whether nonexistent headers
18959 # can be detected and how.
18960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18961/* end confdefs.h. */
18962#include <ac_nonexistent.h>
18963_ACEOF
18964if ac_fn_cxx_try_cpp "$LINENO"; then :
18965 # Broken: success on invalid input.
18966continue
18967else
18968 # Passes both tests.
18969ac_preproc_ok=:
18970break
18971fi
cristyda16f162011-02-19 23:52:17 +000018972rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018973
18974done
18975# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000018976rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000018977if $ac_preproc_ok; then :
18978
18979else
18980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18982as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
18983See \`config.log' for more details" "$LINENO" 5; }
18984fi
18985
18986ac_ext=c
18987ac_cpp='$CPP $CPPFLAGS'
18988ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18989ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18990ac_compiler_gnu=$ac_cv_c_compiler_gnu
18991
18992else
18993 _lt_caught_CXX_error=yes
18994fi
cristy73bd4a52010-10-05 11:24:23 +000018995
18996ac_ext=cpp
18997ac_cpp='$CXXCPP $CPPFLAGS'
18998ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18999ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19000ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19001
19002archive_cmds_need_lc_CXX=no
19003allow_undefined_flag_CXX=
19004always_export_symbols_CXX=no
19005archive_expsym_cmds_CXX=
19006compiler_needs_object_CXX=no
19007export_dynamic_flag_spec_CXX=
19008hardcode_direct_CXX=no
19009hardcode_direct_absolute_CXX=no
19010hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000019011hardcode_libdir_separator_CXX=
19012hardcode_minus_L_CXX=no
19013hardcode_shlibpath_var_CXX=unsupported
19014hardcode_automatic_CXX=no
19015inherit_rpath_CXX=no
19016module_cmds_CXX=
19017module_expsym_cmds_CXX=
19018link_all_deplibs_CXX=unknown
19019old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000019020reload_flag_CXX=$reload_flag
19021reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000019022no_undefined_flag_CXX=
19023whole_archive_flag_spec_CXX=
19024enable_shared_with_static_runtimes_CXX=no
19025
19026# Source file extension for C++ test sources.
19027ac_ext=cpp
19028
19029# Object file extension for compiled C++ test sources.
19030objext=o
19031objext_CXX=$objext
19032
19033# No sense in running all these tests if we already determined that
19034# the CXX compiler isn't working. Some variables (like enable_shared)
19035# are currently assumed to apply to all compilers on this platform,
19036# and will be corrupted by setting them based on a non-working compiler.
Cristy15f22012015-11-14 17:51:30 -050019037if test yes != "$_lt_caught_CXX_error"; then
cristy73bd4a52010-10-05 11:24:23 +000019038 # Code to be used in simple compile tests
19039 lt_simple_compile_test_code="int some_variable = 0;"
19040
19041 # Code to be used in simple link tests
19042 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19043
19044 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19045
19046
19047
19048
19049
19050
19051# If no C compiler was specified, use CC.
19052LTCC=${LTCC-"$CC"}
19053
19054# If no C compiler flags were specified, use CFLAGS.
19055LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19056
19057# Allow CC to be a program name with arguments.
19058compiler=$CC
19059
19060
19061 # save warnings/boilerplate of simple test code
19062 ac_outfile=conftest.$ac_objext
19063echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19064eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19065_lt_compiler_boilerplate=`cat conftest.err`
19066$RM conftest*
19067
19068 ac_outfile=conftest.$ac_objext
19069echo "$lt_simple_link_test_code" >conftest.$ac_ext
19070eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19071_lt_linker_boilerplate=`cat conftest.err`
19072$RM -r conftest*
19073
19074
19075 # Allow CC to be a program name with arguments.
19076 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000019077 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019078 lt_save_LD=$LD
19079 lt_save_GCC=$GCC
19080 GCC=$GXX
19081 lt_save_with_gnu_ld=$with_gnu_ld
19082 lt_save_path_LD=$lt_cv_path_LD
19083 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19084 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19085 else
19086 $as_unset lt_cv_prog_gnu_ld
19087 fi
19088 if test -n "${lt_cv_path_LDCXX+set}"; then
19089 lt_cv_path_LD=$lt_cv_path_LDCXX
19090 else
19091 $as_unset lt_cv_path_LD
19092 fi
19093 test -z "${LDCXX+set}" || LD=$LDCXX
19094 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000019095 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019096 compiler=$CC
19097 compiler_CXX=$CC
Cristy15f22012015-11-14 17:51:30 -050019098 func_cc_basename $compiler
19099cc_basename=$func_cc_basename_result
cristy73bd4a52010-10-05 11:24:23 +000019100
19101
19102 if test -n "$compiler"; then
19103 # We don't want -fno-exception when compiling C++ code, so set the
19104 # no_builtin_flag separately
Cristy15f22012015-11-14 17:51:30 -050019105 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000019106 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19107 else
19108 lt_prog_compiler_no_builtin_flag_CXX=
19109 fi
19110
Cristy15f22012015-11-14 17:51:30 -050019111 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000019112 # Set up default GNU C++ configuration
19113
19114
19115
19116# Check whether --with-gnu-ld was given.
19117if test "${with_gnu_ld+set}" = set; then :
Cristy15f22012015-11-14 17:51:30 -050019118 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cristy73bd4a52010-10-05 11:24:23 +000019119else
19120 with_gnu_ld=no
19121fi
19122
19123ac_prog=ld
Cristy15f22012015-11-14 17:51:30 -050019124if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000019125 # Check if gcc -print-prog-name=ld gives a path.
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19127$as_echo_n "checking for ld used by $CC... " >&6; }
19128 case $host in
19129 *-*-mingw*)
Cristy15f22012015-11-14 17:51:30 -050019130 # gcc leaves a trailing carriage return, which upsets mingw
cristy73bd4a52010-10-05 11:24:23 +000019131 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19132 *)
19133 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19134 esac
19135 case $ac_prog in
19136 # Accept absolute paths.
19137 [\\/]* | ?:[\\/]*)
19138 re_direlt='/[^/][^/]*/\.\./'
19139 # Canonicalize the pathname of ld
19140 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19141 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19142 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19143 done
Cristy15f22012015-11-14 17:51:30 -050019144 test -z "$LD" && LD=$ac_prog
cristy73bd4a52010-10-05 11:24:23 +000019145 ;;
19146 "")
19147 # If it fails, then pretend we aren't using GCC.
19148 ac_prog=ld
19149 ;;
19150 *)
19151 # If it is relative, then search for the first ld in PATH.
19152 with_gnu_ld=unknown
19153 ;;
19154 esac
Cristy15f22012015-11-14 17:51:30 -050019155elif test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000019156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19157$as_echo_n "checking for GNU ld... " >&6; }
19158else
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19160$as_echo_n "checking for non-GNU ld... " >&6; }
19161fi
cristyda16f162011-02-19 23:52:17 +000019162if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019163 $as_echo_n "(cached) " >&6
19164else
19165 if test -z "$LD"; then
Cristy15f22012015-11-14 17:51:30 -050019166 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000019167 for ac_dir in $PATH; do
Cristy15f22012015-11-14 17:51:30 -050019168 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000019169 test -z "$ac_dir" && ac_dir=.
19170 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Cristy15f22012015-11-14 17:51:30 -050019171 lt_cv_path_LD=$ac_dir/$ac_prog
cristy73bd4a52010-10-05 11:24:23 +000019172 # Check to see if the program is GNU ld. I'd rather use --version,
19173 # but apparently some variants of GNU ld only accept -v.
19174 # Break only if it was the GNU/non-GNU ld that we prefer.
19175 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19176 *GNU* | *'with BFD'*)
Cristy15f22012015-11-14 17:51:30 -050019177 test no != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +000019178 ;;
19179 *)
Cristy15f22012015-11-14 17:51:30 -050019180 test yes != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +000019181 ;;
19182 esac
19183 fi
19184 done
Cristy15f22012015-11-14 17:51:30 -050019185 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000019186else
Cristy15f22012015-11-14 17:51:30 -050019187 lt_cv_path_LD=$LD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000019188fi
19189fi
19190
Cristy15f22012015-11-14 17:51:30 -050019191LD=$lt_cv_path_LD
cristy73bd4a52010-10-05 11:24:23 +000019192if test -n "$LD"; then
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19194$as_echo "$LD" >&6; }
19195else
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19197$as_echo "no" >&6; }
19198fi
cristy98dddb52010-11-04 00:30:15 +000019199test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19201$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019202if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019203 $as_echo_n "(cached) " >&6
19204else
19205 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19206case `$LD -v 2>&1 </dev/null` in
19207*GNU* | *'with BFD'*)
19208 lt_cv_prog_gnu_ld=yes
19209 ;;
19210*)
19211 lt_cv_prog_gnu_ld=no
19212 ;;
19213esac
19214fi
19215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19216$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19217with_gnu_ld=$lt_cv_prog_gnu_ld
19218
19219
19220
19221
19222
19223
19224
19225 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19226 # archiving commands below assume that GNU ld is being used.
Cristy15f22012015-11-14 17:51:30 -050019227 if test yes = "$with_gnu_ld"; then
19228 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19229 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 +000019230
Cristy15f22012015-11-14 17:51:30 -050019231 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19232 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000019233
19234 # If archive_cmds runs LD, not CC, wlarc should be empty
19235 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19236 # investigate it a little bit more. (MM)
Cristy15f22012015-11-14 17:51:30 -050019237 wlarc='$wl'
cristy73bd4a52010-10-05 11:24:23 +000019238
19239 # ancient GNU ld didn't support --whole-archive et. al.
19240 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19241 $GREP 'no-whole-archive' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050019242 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000019243 else
19244 whole_archive_flag_spec_CXX=
19245 fi
19246 else
19247 with_gnu_ld=no
19248 wlarc=
19249
19250 # A generic and very simple default shared library creation
19251 # command for GNU C++ for the case where it uses the native
19252 # linker, instead of GNU ld. If possible, this setting should
19253 # overridden to take advantage of the native linker features on
19254 # the platform it is being used on.
19255 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19256 fi
19257
19258 # Commands to make compiler produce verbose output that lists
19259 # what "hidden" libraries, object files and flags are used when
19260 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019261 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019262
19263 else
19264 GXX=no
19265 with_gnu_ld=no
19266 wlarc=
19267 fi
19268
19269 # PORTME: fill in a description of your system's C++ link characteristics
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19271$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19272 ld_shlibs_CXX=yes
19273 case $host_os in
19274 aix3*)
19275 # FIXME: insert proper C++ library support
19276 ld_shlibs_CXX=no
19277 ;;
19278 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050019279 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000019280 # On IA64, the linker does run time linking by default, so we don't
19281 # have to do anything special.
19282 aix_use_runtimelinking=no
19283 exp_sym_flag='-Bexport'
Cristy15f22012015-11-14 17:51:30 -050019284 no_entry_flag=
cristy73bd4a52010-10-05 11:24:23 +000019285 else
19286 aix_use_runtimelinking=no
19287
19288 # Test if we are trying to use run time linking or normal
19289 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Cristy15f22012015-11-14 17:51:30 -050019290 # have runtime linking enabled, and use it for executables.
19291 # For shared libraries, we enable/disable runtime linking
19292 # depending on the kind of the shared library created -
19293 # when "with_aix_soname,aix_use_runtimelinking" is:
19294 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
19295 # "aix,yes" lib.so shared, rtl:yes, for executables
19296 # lib.a static archive
19297 # "both,no" lib.so.V(shr.o) shared, rtl:yes
19298 # lib.a(lib.so.V) shared, rtl:no, for executables
19299 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19300 # lib.a(lib.so.V) shared, rtl:no
19301 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
19302 # lib.a static archive
cristy73bd4a52010-10-05 11:24:23 +000019303 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19304 for ld_flag in $LDFLAGS; do
19305 case $ld_flag in
19306 *-brtl*)
19307 aix_use_runtimelinking=yes
19308 break
19309 ;;
19310 esac
19311 done
Cristy15f22012015-11-14 17:51:30 -050019312 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19313 # With aix-soname=svr4, we create the lib.so.V shared archives only,
19314 # so we don't have lib.a shared libs to link our executables.
19315 # We have to force runtime linking in this case.
19316 aix_use_runtimelinking=yes
19317 LDFLAGS="$LDFLAGS -Wl,-brtl"
19318 fi
cristy73bd4a52010-10-05 11:24:23 +000019319 ;;
19320 esac
19321
19322 exp_sym_flag='-bexport'
19323 no_entry_flag='-bnoentry'
19324 fi
19325
19326 # When large executables or shared objects are built, AIX ld can
19327 # have problems creating the table of contents. If linking a library
19328 # or program results in "error TOC overflow" add -mminimal-toc to
19329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19331
19332 archive_cmds_CXX=''
19333 hardcode_direct_CXX=yes
19334 hardcode_direct_absolute_CXX=yes
19335 hardcode_libdir_separator_CXX=':'
19336 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019337 file_list_spec_CXX='$wl-f,'
19338 case $with_aix_soname,$aix_use_runtimelinking in
19339 aix,*) ;; # no import file
19340 svr4,* | *,yes) # use import file
19341 # The Import File defines what to hardcode.
19342 hardcode_direct_CXX=no
19343 hardcode_direct_absolute_CXX=no
19344 ;;
19345 esac
cristy73bd4a52010-10-05 11:24:23 +000019346
Cristy15f22012015-11-14 17:51:30 -050019347 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000019348 case $host_os in aix4.[012]|aix4.[012].*)
19349 # We only want to do this on AIX 4.2 and lower, the check
19350 # below for broken collect2 doesn't work under 4.3+
Cristy15f22012015-11-14 17:51:30 -050019351 collect2name=`$CC -print-prog-name=collect2`
cristy73bd4a52010-10-05 11:24:23 +000019352 if test -f "$collect2name" &&
19353 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19354 then
19355 # We have reworked collect2
19356 :
19357 else
19358 # We have old collect2
19359 hardcode_direct_CXX=unsupported
19360 # It fails to find uninstalled libraries when the uninstalled
19361 # path is not listed in the libpath. Setting hardcode_minus_L
19362 # to unsupported forces relinking
19363 hardcode_minus_L_CXX=yes
19364 hardcode_libdir_flag_spec_CXX='-L$libdir'
19365 hardcode_libdir_separator_CXX=
19366 fi
19367 esac
19368 shared_flag='-shared'
Cristy15f22012015-11-14 17:51:30 -050019369 if test yes = "$aix_use_runtimelinking"; then
19370 shared_flag=$shared_flag' $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019371 fi
Cristy15f22012015-11-14 17:51:30 -050019372 # Need to ensure runtime linking is disabled for the traditional
19373 # shared library, or the linker may eventually find shared libraries
19374 # /with/ Import File - we do not want to mix them.
19375 shared_flag_aix='-shared'
19376 shared_flag_svr4='-shared $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019377 else
19378 # not using gcc
Cristy15f22012015-11-14 17:51:30 -050019379 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000019380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19381 # chokes on -Wl,-G. The following line is correct:
19382 shared_flag='-G'
19383 else
Cristy15f22012015-11-14 17:51:30 -050019384 if test yes = "$aix_use_runtimelinking"; then
19385 shared_flag='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019386 else
Cristy15f22012015-11-14 17:51:30 -050019387 shared_flag='$wl-bM:SRE'
cristy73bd4a52010-10-05 11:24:23 +000019388 fi
Cristy15f22012015-11-14 17:51:30 -050019389 shared_flag_aix='$wl-bM:SRE'
19390 shared_flag_svr4='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019391 fi
19392 fi
19393
Cristy15f22012015-11-14 17:51:30 -050019394 export_dynamic_flag_spec_CXX='$wl-bexpall'
cristy73bd4a52010-10-05 11:24:23 +000019395 # It seems that -bexpall does not export symbols beginning with
19396 # underscore (_), so it is better to generate a list of symbols to
19397 # export.
19398 always_export_symbols_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019399 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cristy73bd4a52010-10-05 11:24:23 +000019400 # Warning - without using the other runtime loading flags (-brtl),
19401 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050019402 # The "-G" linker flag allows undefined symbols.
19403 no_undefined_flag_CXX='-bernotok'
cristy73bd4a52010-10-05 11:24:23 +000019404 # Determine the default libpath from the value encoded in an empty
19405 # executable.
Cristy15f22012015-11-14 17:51:30 -050019406 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000019407 aix_libpath=$lt_cv_aix_libpath
19408else
19409 if ${lt_cv_aix_libpath__CXX+:} false; then :
19410 $as_echo_n "(cached) " >&6
19411else
19412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019413/* end confdefs.h. */
19414
19415int
19416main ()
19417{
19418
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423if ac_fn_cxx_try_link "$LINENO"; then :
19424
cristyda16f162011-02-19 23:52:17 +000019425 lt_aix_libpath_sed='
19426 /Import File Strings/,/^$/ {
19427 /^0/ {
19428 s/^0 *\([^ ]*\) *$/\1/
19429 p
19430 }
19431 }'
19432 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19433 # Check for a 64-bit object if we didn't find anything.
19434 if test -z "$lt_cv_aix_libpath__CXX"; then
19435 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19436 fi
cristy73bd4a52010-10-05 11:24:23 +000019437fi
19438rm -f core conftest.err conftest.$ac_objext \
19439 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000019440 if test -z "$lt_cv_aix_libpath__CXX"; then
Cristy15f22012015-11-14 17:51:30 -050019441 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000019442 fi
19443
19444fi
19445
19446 aix_libpath=$lt_cv_aix_libpath__CXX
19447fi
cristy73bd4a52010-10-05 11:24:23 +000019448
Cristy15f22012015-11-14 17:51:30 -050019449 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000019450
Cristy15f22012015-11-14 17:51:30 -050019451 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
cristy73bd4a52010-10-05 11:24:23 +000019452 else
Cristy15f22012015-11-14 17:51:30 -050019453 if test ia64 = "$host_cpu"; then
19454 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
cristy73bd4a52010-10-05 11:24:23 +000019455 allow_undefined_flag_CXX="-z nodefs"
Cristy15f22012015-11-14 17:51:30 -050019456 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"
cristy73bd4a52010-10-05 11:24:23 +000019457 else
19458 # Determine the default libpath from the value encoded in an
19459 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050019460 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000019461 aix_libpath=$lt_cv_aix_libpath
19462else
19463 if ${lt_cv_aix_libpath__CXX+:} false; then :
19464 $as_echo_n "(cached) " >&6
19465else
19466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019467/* end confdefs.h. */
19468
19469int
19470main ()
19471{
19472
19473 ;
19474 return 0;
19475}
19476_ACEOF
19477if ac_fn_cxx_try_link "$LINENO"; then :
19478
cristyda16f162011-02-19 23:52:17 +000019479 lt_aix_libpath_sed='
19480 /Import File Strings/,/^$/ {
19481 /^0/ {
19482 s/^0 *\([^ ]*\) *$/\1/
19483 p
19484 }
19485 }'
19486 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19487 # Check for a 64-bit object if we didn't find anything.
19488 if test -z "$lt_cv_aix_libpath__CXX"; then
19489 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19490 fi
cristy73bd4a52010-10-05 11:24:23 +000019491fi
19492rm -f core conftest.err conftest.$ac_objext \
19493 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000019494 if test -z "$lt_cv_aix_libpath__CXX"; then
Cristy15f22012015-11-14 17:51:30 -050019495 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000019496 fi
19497
19498fi
19499
19500 aix_libpath=$lt_cv_aix_libpath__CXX
19501fi
cristy73bd4a52010-10-05 11:24:23 +000019502
Cristy15f22012015-11-14 17:51:30 -050019503 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000019504 # Warning - without using the other run time loading flags,
19505 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050019506 no_undefined_flag_CXX=' $wl-bernotok'
19507 allow_undefined_flag_CXX=' $wl-berok'
19508 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000019509 # We only use this code for GNU lds that support --whole-archive.
Cristy15f22012015-11-14 17:51:30 -050019510 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy0c60a692010-11-04 01:09:47 +000019511 else
19512 # Exported symbols can be pulled into shared objects from archives
19513 whole_archive_flag_spec_CXX='$convenience'
19514 fi
cristy73bd4a52010-10-05 11:24:23 +000019515 archive_cmds_need_lc_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019516 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19517 # -brtl affects multiple linker settings, -berok does not and is overridden later
19518 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19519 if test svr4 != "$with_aix_soname"; then
19520 # This is similar to how AIX traditionally builds its shared
19521 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19522 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
19523 fi
19524 if test aix != "$with_aix_soname"; then
19525 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
19526 else
19527 # used by -dlpreopen to get the symbols
19528 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19529 fi
19530 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
cristy73bd4a52010-10-05 11:24:23 +000019531 fi
19532 fi
19533 ;;
19534
19535 beos*)
19536 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19537 allow_undefined_flag_CXX=unsupported
19538 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19539 # support --undefined. This deserves some investigation. FIXME
Cristy15f22012015-11-14 17:51:30 -050019540 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019541 else
19542 ld_shlibs_CXX=no
19543 fi
19544 ;;
19545
19546 chorus*)
19547 case $cc_basename in
19548 *)
19549 # FIXME: insert proper C++ library support
19550 ld_shlibs_CXX=no
19551 ;;
19552 esac
19553 ;;
19554
19555 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019556 case $GXX,$cc_basename in
19557 ,cl* | no,cl*)
19558 # Native MSVC
19559 # hardcode_libdir_flag_spec is actually meaningless, as there is
19560 # no search path for DLLs.
19561 hardcode_libdir_flag_spec_CXX=' '
19562 allow_undefined_flag_CXX=unsupported
19563 always_export_symbols_CXX=yes
19564 file_list_spec_CXX='@'
19565 # Tell ltmain to make .lib files, not .a files.
19566 libext=lib
19567 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050019568 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000019569 # FIXME: Setting linknames here is a bad hack.
Cristy15f22012015-11-14 17:51:30 -050019570 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19571 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19572 cp "$export_symbols" "$output_objdir/$soname.def";
19573 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19574 else
19575 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19576 fi~
19577 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19578 linknames='
cristyda16f162011-02-19 23:52:17 +000019579 # The linker will not automatically build a static lib if we build a DLL.
19580 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19581 enable_shared_with_static_runtimes_CXX=yes
19582 # Don't use ranlib
19583 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19584 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Cristy15f22012015-11-14 17:51:30 -050019585 lt_tool_outputfile="@TOOL_OUTPUT@"~
19586 case $lt_outputfile in
19587 *.exe|*.EXE) ;;
19588 *)
19589 lt_outputfile=$lt_outputfile.exe
19590 lt_tool_outputfile=$lt_tool_outputfile.exe
19591 ;;
19592 esac~
19593 func_to_tool_file "$lt_outputfile"~
19594 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19595 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19596 $RM "$lt_outputfile.manifest";
19597 fi'
cristyda16f162011-02-19 23:52:17 +000019598 ;;
19599 *)
19600 # g++
19601 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19602 # as there is no search path for DLLs.
19603 hardcode_libdir_flag_spec_CXX='-L$libdir'
Cristy15f22012015-11-14 17:51:30 -050019604 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
cristyda16f162011-02-19 23:52:17 +000019605 allow_undefined_flag_CXX=unsupported
19606 always_export_symbols_CXX=no
19607 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019608
cristyda16f162011-02-19 23:52:17 +000019609 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050019610 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'
19611 # If the export-symbols file already is a .def file, use it as
19612 # is; otherwise, prepend EXPORTS...
19613 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19614 cp $export_symbols $output_objdir/$soname.def;
19615 else
19616 echo EXPORTS > $output_objdir/$soname.def;
19617 cat $export_symbols >> $output_objdir/$soname.def;
19618 fi~
19619 $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'
cristyda16f162011-02-19 23:52:17 +000019620 else
19621 ld_shlibs_CXX=no
19622 fi
19623 ;;
19624 esac
19625 ;;
cristy73bd4a52010-10-05 11:24:23 +000019626 darwin* | rhapsody*)
19627
19628
19629 archive_cmds_need_lc_CXX=no
19630 hardcode_direct_CXX=no
19631 hardcode_automatic_CXX=yes
19632 hardcode_shlibpath_var_CXX=unsupported
Cristy15f22012015-11-14 17:51:30 -050019633 if test yes = "$lt_cv_ld_force_load"; then
19634 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 +000019635
cristy0c60a692010-11-04 01:09:47 +000019636 else
19637 whole_archive_flag_spec_CXX=''
19638 fi
cristy73bd4a52010-10-05 11:24:23 +000019639 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019640 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
cristy73bd4a52010-10-05 11:24:23 +000019641 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050019642 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000019643 *) _lt_dar_can_shared=$GCC ;;
19644 esac
Cristy15f22012015-11-14 17:51:30 -050019645 if test yes = "$_lt_dar_can_shared"; then
cristy0c60a692010-11-04 01:09:47 +000019646 output_verbose_link_cmd=func_echo_all
Cristy15f22012015-11-14 17:51:30 -050019647 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"
19648 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19649 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"
19650 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"
19651 if test yes != "$lt_cv_apple_cc_single_mod"; then
19652 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"
19653 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"
cristy73bd4a52010-10-05 11:24:23 +000019654 fi
19655
19656 else
19657 ld_shlibs_CXX=no
19658 fi
19659
19660 ;;
19661
Cristy15f22012015-11-14 17:51:30 -050019662 os2*)
19663 hardcode_libdir_flag_spec_CXX='-L$libdir'
19664 hardcode_minus_L_CXX=yes
19665 allow_undefined_flag_CXX=unsupported
19666 shrext_cmds=.dll
19667 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19668 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19669 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19670 $ECHO EXPORTS >> $output_objdir/$libname.def~
19671 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19672 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19673 emximp -o $lib $output_objdir/$libname.def'
19674 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19675 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19676 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19677 $ECHO EXPORTS >> $output_objdir/$libname.def~
19678 prefix_cmds="$SED"~
19679 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19680 prefix_cmds="$prefix_cmds -e 1d";
19681 fi~
19682 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19683 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19684 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19685 emximp -o $lib $output_objdir/$libname.def'
19686 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19687 enable_shared_with_static_runtimes_CXX=yes
19688 ;;
19689
cristy73bd4a52010-10-05 11:24:23 +000019690 dgux*)
19691 case $cc_basename in
19692 ec++*)
19693 # FIXME: insert proper C++ library support
19694 ld_shlibs_CXX=no
19695 ;;
19696 ghcx*)
19697 # Green Hills C++ Compiler
19698 # FIXME: insert proper C++ library support
19699 ld_shlibs_CXX=no
19700 ;;
19701 *)
19702 # FIXME: insert proper C++ library support
19703 ld_shlibs_CXX=no
19704 ;;
19705 esac
19706 ;;
19707
cristy99bd5232011-12-07 14:38:20 +000019708 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019709 # C++ shared libraries reported to be fairly broken before
19710 # switch to ELF
19711 ld_shlibs_CXX=no
19712 ;;
19713
19714 freebsd-elf*)
19715 archive_cmds_need_lc_CXX=no
19716 ;;
19717
19718 freebsd* | dragonfly*)
19719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19720 # conventions
19721 ld_shlibs_CXX=yes
19722 ;;
19723
cristy0c60a692010-11-04 01:09:47 +000019724 haiku*)
Cristy15f22012015-11-14 17:51:30 -050019725 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy0c60a692010-11-04 01:09:47 +000019726 link_all_deplibs_CXX=yes
19727 ;;
19728
cristy73bd4a52010-10-05 11:24:23 +000019729 hpux9*)
Cristy15f22012015-11-14 17:51:30 -050019730 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000019731 hardcode_libdir_separator_CXX=:
Cristy15f22012015-11-14 17:51:30 -050019732 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000019733 hardcode_direct_CXX=yes
19734 hardcode_minus_L_CXX=yes # Not in the search PATH,
19735 # but as the default
19736 # location of the library.
19737
19738 case $cc_basename in
19739 CC*)
19740 # FIXME: insert proper C++ library support
19741 ld_shlibs_CXX=no
19742 ;;
19743 aCC*)
Cristy15f22012015-11-14 17:51:30 -050019744 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000019745 # Commands to make compiler produce verbose output that lists
19746 # what "hidden" libraries, object files and flags are used when
19747 # linking a shared library.
19748 #
19749 # There doesn't appear to be a way to prevent this compiler from
19750 # explicitly linking system object files so we need to strip them
19751 # from the output so that they don't get included in the library
19752 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050019753 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 +000019754 ;;
19755 *)
Cristy15f22012015-11-14 17:51:30 -050019756 if test yes = "$GXX"; then
19757 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000019758 else
19759 # FIXME: insert proper C++ library support
19760 ld_shlibs_CXX=no
19761 fi
19762 ;;
19763 esac
19764 ;;
19765
19766 hpux10*|hpux11*)
Cristy15f22012015-11-14 17:51:30 -050019767 if test no = "$with_gnu_ld"; then
19768 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000019769 hardcode_libdir_separator_CXX=:
19770
19771 case $host_cpu in
19772 hppa*64*|ia64*)
19773 ;;
19774 *)
Cristy15f22012015-11-14 17:51:30 -050019775 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000019776 ;;
19777 esac
19778 fi
19779 case $host_cpu in
19780 hppa*64*|ia64*)
19781 hardcode_direct_CXX=no
19782 hardcode_shlibpath_var_CXX=no
19783 ;;
19784 *)
19785 hardcode_direct_CXX=yes
19786 hardcode_direct_absolute_CXX=yes
19787 hardcode_minus_L_CXX=yes # Not in the search PATH,
19788 # but as the default
19789 # location of the library.
19790 ;;
19791 esac
19792
19793 case $cc_basename in
19794 CC*)
19795 # FIXME: insert proper C++ library support
19796 ld_shlibs_CXX=no
19797 ;;
19798 aCC*)
19799 case $host_cpu in
19800 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050019801 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000019802 ;;
19803 ia64*)
Cristy15f22012015-11-14 17:51:30 -050019804 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000019805 ;;
19806 *)
Cristy15f22012015-11-14 17:51:30 -050019807 archive_cmds_CXX='$CC -b $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 +000019808 ;;
19809 esac
19810 # Commands to make compiler produce verbose output that lists
19811 # what "hidden" libraries, object files and flags are used when
19812 # linking a shared library.
19813 #
19814 # There doesn't appear to be a way to prevent this compiler from
19815 # explicitly linking system object files so we need to strip them
19816 # from the output so that they don't get included in the library
19817 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050019818 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 +000019819 ;;
19820 *)
Cristy15f22012015-11-14 17:51:30 -050019821 if test yes = "$GXX"; then
19822 if test no = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000019823 case $host_cpu in
19824 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050019825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000019826 ;;
19827 ia64*)
Cristy15f22012015-11-14 17:51:30 -050019828 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 +000019829 ;;
19830 *)
Cristy15f22012015-11-14 17:51:30 -050019831 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 +000019832 ;;
19833 esac
19834 fi
19835 else
19836 # FIXME: insert proper C++ library support
19837 ld_shlibs_CXX=no
19838 fi
19839 ;;
19840 esac
19841 ;;
19842
19843 interix[3-9]*)
19844 hardcode_direct_CXX=no
19845 hardcode_shlibpath_var_CXX=no
Cristy15f22012015-11-14 17:51:30 -050019846 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19847 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000019848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19849 # Instead, shared libraries are loaded at an image base (0x10000000 by
19850 # default) and relocated if they conflict, which is a slow very memory
19851 # consuming and fragmenting process. To avoid this, we pick a random,
19852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Cristy15f22012015-11-14 17:51:30 -050019854 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'
19855 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'
cristy73bd4a52010-10-05 11:24:23 +000019856 ;;
19857 irix5* | irix6*)
19858 case $cc_basename in
19859 CC*)
19860 # SGI C++
Cristy15f22012015-11-14 17:51:30 -050019861 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 +000019862
19863 # Archives containing C++ object files must be created using
19864 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19865 # necessary to make sure instantiated templates are included
19866 # in the archive.
19867 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19868 ;;
19869 *)
Cristy15f22012015-11-14 17:51:30 -050019870 if test yes = "$GXX"; then
19871 if test no = "$with_gnu_ld"; then
19872 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 +000019873 else
Cristy15f22012015-11-14 17:51:30 -050019874 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 +000019875 fi
19876 fi
19877 link_all_deplibs_CXX=yes
19878 ;;
19879 esac
Cristy15f22012015-11-14 17:51:30 -050019880 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000019881 hardcode_libdir_separator_CXX=:
19882 inherit_rpath_CXX=yes
19883 ;;
19884
Cristy15f22012015-11-14 17:51:30 -050019885 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000019886 case $cc_basename in
19887 KCC*)
19888 # Kuck and Associates, Inc. (KAI) C++ Compiler
19889
19890 # KCC will only create a shared library if the output file
19891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19892 # to its proper name (with version) after linking.
Cristy15f22012015-11-14 17:51:30 -050019893 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'
19894 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'
cristy73bd4a52010-10-05 11:24:23 +000019895 # Commands to make compiler produce verbose output that lists
19896 # what "hidden" libraries, object files and flags are used when
19897 # linking a shared library.
19898 #
19899 # There doesn't appear to be a way to prevent this compiler from
19900 # explicitly linking system object files so we need to strip them
19901 # from the output so that they don't get included in the library
19902 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050019903 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 +000019904
Cristy15f22012015-11-14 17:51:30 -050019905 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19906 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000019907
19908 # Archives containing C++ object files must be created using
19909 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19910 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19911 ;;
19912 icpc* | ecpc* )
19913 # Intel C++
19914 with_gnu_ld=yes
19915 # version 8.0 and above of icpc choke on multiply defined symbols
19916 # if we add $predep_objects and $postdep_objects, however 7.1 and
19917 # earlier do not add the objects themselves.
19918 case `$CC -V 2>&1` in
19919 *"Version 7."*)
Cristy15f22012015-11-14 17:51:30 -050019920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19921 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'
cristy73bd4a52010-10-05 11:24:23 +000019922 ;;
19923 *) # Version 8.0 or newer
19924 tmp_idyn=
19925 case $host_cpu in
19926 ia64*) tmp_idyn=' -i_dynamic';;
19927 esac
Cristy15f22012015-11-14 17:51:30 -050019928 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19929 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'
cristy73bd4a52010-10-05 11:24:23 +000019930 ;;
19931 esac
19932 archive_cmds_need_lc_CXX=no
Cristy15f22012015-11-14 17:51:30 -050019933 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19934 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19935 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000019936 ;;
19937 pgCC* | pgcpp*)
19938 # Portland Group C++ compiler
19939 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000019940 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000019941 prelink_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050019942 rm -rf $tpldir~
19943 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19944 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000019945 old_archive_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050019946 rm -rf $tpldir~
19947 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19948 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
19949 $RANLIB $oldlib'
cristy73bd4a52010-10-05 11:24:23 +000019950 archive_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050019951 rm -rf $tpldir~
19952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19953 $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 +000019954 archive_expsym_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050019955 rm -rf $tpldir~
19956 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19957 $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 +000019958 ;;
cristy0c60a692010-11-04 01:09:47 +000019959 *) # Version 6 and above use weak symbols
Cristy15f22012015-11-14 17:51:30 -050019960 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19961 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'
cristy73bd4a52010-10-05 11:24:23 +000019962 ;;
19963 esac
19964
Cristy15f22012015-11-14 17:51:30 -050019965 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
19966 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19967 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 +000019968 ;;
19969 cxx*)
19970 # Compaq C++
Cristy15f22012015-11-14 17:51:30 -050019971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19972 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'
cristy73bd4a52010-10-05 11:24:23 +000019973
19974 runpath_var=LD_RUN_PATH
19975 hardcode_libdir_flag_spec_CXX='-rpath $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.
19981 #
19982 # There doesn't appear to be a way to prevent this compiler from
19983 # explicitly linking system object files so we need to strip them
19984 # from the output so that they don't get included in the library
19985 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050019986 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 +000019987 ;;
cristy0c60a692010-11-04 01:09:47 +000019988 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000019989 # IBM XL 8.0 on PPC, with GNU ld
Cristy15f22012015-11-14 17:51:30 -050019990 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19991 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19992 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19993 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000019994 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050019995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19996 echo "local: *; };" >> $output_objdir/$libname.ver~
19997 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019998 fi
19999 ;;
20000 *)
20001 case `$CC -V 2>&1 | sed 5q` in
20002 *Sun\ C*)
20003 # Sun C++ 5.9
20004 no_undefined_flag_CXX=' -zdefs'
Cristy15f22012015-11-14 17:51:30 -050020005 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20006 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'
cristy73bd4a52010-10-05 11:24:23 +000020007 hardcode_libdir_flag_spec_CXX='-R$libdir'
Cristy15f22012015-11-14 17:51:30 -050020008 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 +000020009 compiler_needs_object_CXX=yes
20010
20011 # Not sure whether something based on
20012 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20013 # would be better.
cristy0c60a692010-11-04 01:09:47 +000020014 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000020015
20016 # Archives containing C++ object files must be created using
20017 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20018 # necessary to make sure instantiated templates are included
20019 # in the archive.
20020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20021 ;;
20022 esac
20023 ;;
20024 esac
20025 ;;
20026
20027 lynxos*)
20028 # FIXME: insert proper C++ library support
20029 ld_shlibs_CXX=no
20030 ;;
20031
20032 m88k*)
20033 # FIXME: insert proper C++ library support
20034 ld_shlibs_CXX=no
20035 ;;
20036
20037 mvs*)
20038 case $cc_basename in
20039 cxx*)
20040 # FIXME: insert proper C++ library support
20041 ld_shlibs_CXX=no
20042 ;;
20043 *)
20044 # FIXME: insert proper C++ library support
20045 ld_shlibs_CXX=no
20046 ;;
20047 esac
20048 ;;
20049
20050 netbsd*)
20051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20052 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20053 wlarc=
20054 hardcode_libdir_flag_spec_CXX='-R$libdir'
20055 hardcode_direct_CXX=yes
20056 hardcode_shlibpath_var_CXX=no
20057 fi
20058 # Workaround some broken pre-1.5 toolchains
20059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20060 ;;
20061
20062 *nto* | *qnx*)
20063 ld_shlibs_CXX=yes
20064 ;;
20065
Cristy15f22012015-11-14 17:51:30 -050020066 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000020067 if test -f /usr/libexec/ld.so; then
20068 hardcode_direct_CXX=yes
20069 hardcode_shlibpath_var_CXX=no
20070 hardcode_direct_absolute_CXX=yes
20071 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Cristy15f22012015-11-14 17:51:30 -050020072 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20073 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20074 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20075 export_dynamic_flag_spec_CXX='$wl-E'
20076 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000020077 fi
cristy0c60a692010-11-04 01:09:47 +000020078 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000020079 else
20080 ld_shlibs_CXX=no
20081 fi
20082 ;;
20083
20084 osf3* | osf4* | osf5*)
20085 case $cc_basename in
20086 KCC*)
20087 # Kuck and Associates, Inc. (KAI) C++ Compiler
20088
20089 # KCC will only create a shared library if the output file
20090 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20091 # to its proper name (with version) after linking.
Cristy15f22012015-11-14 17:51:30 -050020092 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'
cristy73bd4a52010-10-05 11:24:23 +000020093
Cristy15f22012015-11-14 17:51:30 -050020094 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020095 hardcode_libdir_separator_CXX=:
20096
20097 # Archives containing C++ object files must be created using
20098 # the KAI C++ compiler.
20099 case $host in
20100 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20101 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20102 esac
20103 ;;
20104 RCC*)
20105 # Rational C++ 2.4.1
20106 # FIXME: insert proper C++ library support
20107 ld_shlibs_CXX=no
20108 ;;
20109 cxx*)
20110 case $host in
20111 osf3*)
Cristy15f22012015-11-14 17:51:30 -050020112 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20113 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'
20114 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020115 ;;
20116 *)
20117 allow_undefined_flag_CXX=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050020118 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 +000020119 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
Cristy15f22012015-11-14 17:51:30 -050020120 echo "-hidden">> $lib.exp~
20121 $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~
20122 $RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000020123 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20124 ;;
20125 esac
20126
20127 hardcode_libdir_separator_CXX=:
20128
20129 # Commands to make compiler produce verbose output that lists
20130 # what "hidden" libraries, object files and flags are used when
20131 # linking a shared library.
20132 #
20133 # There doesn't appear to be a way to prevent this compiler from
20134 # explicitly linking system object files so we need to strip them
20135 # from the output so that they don't get included in the library
20136 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050020137 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 +000020138 ;;
20139 *)
Cristy15f22012015-11-14 17:51:30 -050020140 if test yes,no = "$GXX,$with_gnu_ld"; then
20141 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
cristy73bd4a52010-10-05 11:24:23 +000020142 case $host in
20143 osf3*)
Cristy15f22012015-11-14 17:51:30 -050020144 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 +000020145 ;;
20146 *)
Cristy15f22012015-11-14 17:51:30 -050020147 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 +000020148 ;;
20149 esac
20150
Cristy15f22012015-11-14 17:51:30 -050020151 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020152 hardcode_libdir_separator_CXX=:
20153
20154 # Commands to make compiler produce verbose output that lists
20155 # what "hidden" libraries, object files and flags are used when
20156 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020157 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020158
20159 else
20160 # FIXME: insert proper C++ library support
20161 ld_shlibs_CXX=no
20162 fi
20163 ;;
20164 esac
20165 ;;
20166
20167 psos*)
20168 # FIXME: insert proper C++ library support
20169 ld_shlibs_CXX=no
20170 ;;
20171
20172 sunos4*)
20173 case $cc_basename in
20174 CC*)
20175 # Sun C++ 4.x
20176 # FIXME: insert proper C++ library support
20177 ld_shlibs_CXX=no
20178 ;;
20179 lcc*)
20180 # Lucid
20181 # FIXME: insert proper C++ library support
20182 ld_shlibs_CXX=no
20183 ;;
20184 *)
20185 # FIXME: insert proper C++ library support
20186 ld_shlibs_CXX=no
20187 ;;
20188 esac
20189 ;;
20190
20191 solaris*)
20192 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020193 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020194 # Sun C++ 4.2, 5.x and Centerline C++
20195 archive_cmds_need_lc_CXX=yes
20196 no_undefined_flag_CXX=' -zdefs'
Cristy15f22012015-11-14 17:51:30 -050020197 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000020198 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Cristy15f22012015-11-14 17:51:30 -050020199 $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'
cristy73bd4a52010-10-05 11:24:23 +000020200
20201 hardcode_libdir_flag_spec_CXX='-R$libdir'
20202 hardcode_shlibpath_var_CXX=no
20203 case $host_os in
20204 solaris2.[0-5] | solaris2.[0-5].*) ;;
20205 *)
20206 # The compiler driver will combine and reorder linker options,
Cristy15f22012015-11-14 17:51:30 -050020207 # but understands '-z linker_flag'.
cristy73bd4a52010-10-05 11:24:23 +000020208 # Supported since Solaris 2.6 (maybe 2.5.1?)
20209 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20210 ;;
20211 esac
20212 link_all_deplibs_CXX=yes
20213
cristy0c60a692010-11-04 01:09:47 +000020214 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000020215
20216 # Archives containing C++ object files must be created using
20217 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20218 # necessary to make sure instantiated templates are included
20219 # in the archive.
20220 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20221 ;;
20222 gcx*)
20223 # Green Hills C++ Compiler
Cristy15f22012015-11-14 17:51:30 -050020224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000020225
20226 # The C++ compiler must be used to create the archive.
20227 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20228 ;;
20229 *)
20230 # GNU C++ compiler with Solaris linker
Cristy15f22012015-11-14 17:51:30 -050020231 if test yes,no = "$GXX,$with_gnu_ld"; then
20232 no_undefined_flag_CXX=' $wl-z ${wl}defs'
cristy73bd4a52010-10-05 11:24:23 +000020233 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050020234 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000020235 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Cristy15f22012015-11-14 17:51:30 -050020236 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000020237
20238 # Commands to make compiler produce verbose output that lists
20239 # what "hidden" libraries, object files and flags are used when
20240 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020241 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020242 else
Cristy15f22012015-11-14 17:51:30 -050020243 # g++ 2.7 appears to require '-G' NOT '-shared' on this
cristy73bd4a52010-10-05 11:24:23 +000020244 # platform.
Cristy15f22012015-11-14 17:51:30 -050020245 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000020246 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Cristy15f22012015-11-14 17:51:30 -050020247 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000020248
20249 # Commands to make compiler produce verbose output that lists
20250 # what "hidden" libraries, object files and flags are used when
20251 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020252 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020253 fi
20254
Cristy15f22012015-11-14 17:51:30 -050020255 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020256 case $host_os in
20257 solaris2.[0-5] | solaris2.[0-5].*) ;;
20258 *)
Cristy15f22012015-11-14 17:51:30 -050020259 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cristy73bd4a52010-10-05 11:24:23 +000020260 ;;
20261 esac
20262 fi
20263 ;;
20264 esac
20265 ;;
20266
20267 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Cristy15f22012015-11-14 17:51:30 -050020268 no_undefined_flag_CXX='$wl-z,text'
cristy73bd4a52010-10-05 11:24:23 +000020269 archive_cmds_need_lc_CXX=no
20270 hardcode_shlibpath_var_CXX=no
20271 runpath_var='LD_RUN_PATH'
20272
20273 case $cc_basename in
20274 CC*)
Cristy15f22012015-11-14 17:51:30 -050020275 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20276 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000020277 ;;
20278 *)
Cristy15f22012015-11-14 17:51:30 -050020279 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20280 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000020281 ;;
20282 esac
20283 ;;
20284
20285 sysv5* | sco3.2v5* | sco5v6*)
Cristy15f22012015-11-14 17:51:30 -050020286 # Note: We CANNOT use -z defs as we might desire, because we do not
cristy73bd4a52010-10-05 11:24:23 +000020287 # link with -lc, and that would cause any symbols used from libc to
20288 # always be unresolved, which means just about no library would
20289 # ever link correctly. If we're not using GNU ld we use -z text
20290 # though, which does catch some bad symbols but isn't as heavy-handed
20291 # as -z defs.
Cristy15f22012015-11-14 17:51:30 -050020292 no_undefined_flag_CXX='$wl-z,text'
20293 allow_undefined_flag_CXX='$wl-z,nodefs'
cristy73bd4a52010-10-05 11:24:23 +000020294 archive_cmds_need_lc_CXX=no
20295 hardcode_shlibpath_var_CXX=no
Cristy15f22012015-11-14 17:51:30 -050020296 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020297 hardcode_libdir_separator_CXX=':'
20298 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050020299 export_dynamic_flag_spec_CXX='$wl-Bexport'
cristy73bd4a52010-10-05 11:24:23 +000020300 runpath_var='LD_RUN_PATH'
20301
20302 case $cc_basename in
20303 CC*)
Cristy15f22012015-11-14 17:51:30 -050020304 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20305 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 +000020306 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Cristy15f22012015-11-14 17:51:30 -050020307 '"$old_archive_cmds_CXX"
cristy0c60a692010-11-04 01:09:47 +000020308 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Cristy15f22012015-11-14 17:51:30 -050020309 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000020310 ;;
20311 *)
Cristy15f22012015-11-14 17:51:30 -050020312 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20313 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000020314 ;;
20315 esac
20316 ;;
20317
20318 tandem*)
20319 case $cc_basename in
20320 NCC*)
20321 # NonStop-UX NCC 3.20
20322 # FIXME: insert proper C++ library support
20323 ld_shlibs_CXX=no
20324 ;;
20325 *)
20326 # FIXME: insert proper C++ library support
20327 ld_shlibs_CXX=no
20328 ;;
20329 esac
20330 ;;
20331
20332 vxworks*)
20333 # FIXME: insert proper C++ library support
20334 ld_shlibs_CXX=no
20335 ;;
20336
20337 *)
20338 # FIXME: insert proper C++ library support
20339 ld_shlibs_CXX=no
20340 ;;
20341 esac
20342
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20344$as_echo "$ld_shlibs_CXX" >&6; }
Cristy15f22012015-11-14 17:51:30 -050020345 test no = "$ld_shlibs_CXX" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000020346
Cristy15f22012015-11-14 17:51:30 -050020347 GCC_CXX=$GXX
20348 LD_CXX=$LD
cristy73bd4a52010-10-05 11:24:23 +000020349
20350 ## CAVEAT EMPTOR:
20351 ## There is no encapsulation within the following macros, do not change
20352 ## the running order or otherwise move them around unless you know exactly
20353 ## what you are doing...
20354 # Dependencies to place before and after the object being linked:
20355predep_objects_CXX=
20356postdep_objects_CXX=
20357predeps_CXX=
20358postdeps_CXX=
20359compiler_lib_search_path_CXX=
20360
20361cat > conftest.$ac_ext <<_LT_EOF
20362class Foo
20363{
20364public:
20365 Foo (void) { a = 0; }
20366private:
20367 int a;
20368};
20369_LT_EOF
20370
cristyda16f162011-02-19 23:52:17 +000020371
20372_lt_libdeps_save_CFLAGS=$CFLAGS
20373case "$CC $CFLAGS " in #(
20374*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20375*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000020376*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000020377esac
20378
cristy73bd4a52010-10-05 11:24:23 +000020379if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20380 (eval $ac_compile) 2>&5
20381 ac_status=$?
20382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20383 test $ac_status = 0; }; then
20384 # Parse the compiler output and extract the necessary
20385 # objects, libraries and library flags.
20386
20387 # Sentinel used to keep track of whether or not we are before
20388 # the conftest object file.
20389 pre_test_object_deps_done=no
20390
20391 for p in `eval "$output_verbose_link_cmd"`; do
Cristy15f22012015-11-14 17:51:30 -050020392 case $prev$p in
cristy73bd4a52010-10-05 11:24:23 +000020393
20394 -L* | -R* | -l*)
20395 # Some compilers place space between "-{L,R}" and the path.
20396 # Remove the space.
Cristy15f22012015-11-14 17:51:30 -050020397 if test x-L = "$p" ||
20398 test x-R = "$p"; then
cristy73bd4a52010-10-05 11:24:23 +000020399 prev=$p
20400 continue
cristy73bd4a52010-10-05 11:24:23 +000020401 fi
20402
cristyda16f162011-02-19 23:52:17 +000020403 # Expand the sysroot to ease extracting the directories later.
20404 if test -z "$prev"; then
20405 case $p in
20406 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20407 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20408 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20409 esac
20410 fi
20411 case $p in
20412 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20413 esac
Cristy15f22012015-11-14 17:51:30 -050020414 if test no = "$pre_test_object_deps_done"; then
20415 case $prev in
cristyda16f162011-02-19 23:52:17 +000020416 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000020417 # Internal compiler library paths should come after those
20418 # provided the user. The postdeps already come after the
20419 # user supplied libs so there is no need to process them.
20420 if test -z "$compiler_lib_search_path_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020421 compiler_lib_search_path_CXX=$prev$p
cristy73bd4a52010-10-05 11:24:23 +000020422 else
Cristy15f22012015-11-14 17:51:30 -050020423 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
cristy73bd4a52010-10-05 11:24:23 +000020424 fi
20425 ;;
20426 # The "-l" case would never come before the object being
20427 # linked, so don't bother handling this case.
20428 esac
20429 else
20430 if test -z "$postdeps_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020431 postdeps_CXX=$prev$p
cristy73bd4a52010-10-05 11:24:23 +000020432 else
Cristy15f22012015-11-14 17:51:30 -050020433 postdeps_CXX="${postdeps_CXX} $prev$p"
cristy73bd4a52010-10-05 11:24:23 +000020434 fi
20435 fi
cristyda16f162011-02-19 23:52:17 +000020436 prev=
cristy73bd4a52010-10-05 11:24:23 +000020437 ;;
20438
cristyda16f162011-02-19 23:52:17 +000020439 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000020440 *.$objext)
20441 # This assumes that the test object file only shows up
20442 # once in the compiler output.
20443 if test "$p" = "conftest.$objext"; then
20444 pre_test_object_deps_done=yes
20445 continue
20446 fi
20447
Cristy15f22012015-11-14 17:51:30 -050020448 if test no = "$pre_test_object_deps_done"; then
cristy73bd4a52010-10-05 11:24:23 +000020449 if test -z "$predep_objects_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020450 predep_objects_CXX=$p
cristy73bd4a52010-10-05 11:24:23 +000020451 else
20452 predep_objects_CXX="$predep_objects_CXX $p"
20453 fi
20454 else
20455 if test -z "$postdep_objects_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020456 postdep_objects_CXX=$p
cristy73bd4a52010-10-05 11:24:23 +000020457 else
20458 postdep_objects_CXX="$postdep_objects_CXX $p"
20459 fi
20460 fi
20461 ;;
20462
20463 *) ;; # Ignore the rest.
20464
20465 esac
20466 done
20467
20468 # Clean up.
20469 rm -f a.out a.exe
20470else
20471 echo "libtool.m4: error: problem compiling CXX test program"
20472fi
20473
20474$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000020475CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020476
20477# PORTME: override above test on systems where it is broken
20478case $host_os in
20479interix[3-9]*)
20480 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20481 # hack all around it, let's just trust "g++" to DTRT.
20482 predep_objects_CXX=
20483 postdep_objects_CXX=
20484 postdeps_CXX=
20485 ;;
cristy73bd4a52010-10-05 11:24:23 +000020486esac
20487
20488
20489case " $postdeps_CXX " in
20490*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20491esac
20492 compiler_lib_search_dirs_CXX=
20493if test -n "${compiler_lib_search_path_CXX}"; then
Cristy15f22012015-11-14 17:51:30 -050020494 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
cristy73bd4a52010-10-05 11:24:23 +000020495fi
20496
20497
20498
20499
20500
20501
20502
20503
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527 lt_prog_compiler_wl_CXX=
20528lt_prog_compiler_pic_CXX=
20529lt_prog_compiler_static_CXX=
20530
cristy73bd4a52010-10-05 11:24:23 +000020531
20532 # C++ specific cases for pic, static, wl, etc.
Cristy15f22012015-11-14 17:51:30 -050020533 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020534 lt_prog_compiler_wl_CXX='-Wl,'
20535 lt_prog_compiler_static_CXX='-static'
20536
20537 case $host_os in
20538 aix*)
20539 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050020540 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020541 # AIX 5 now supports IA64 processor
20542 lt_prog_compiler_static_CXX='-Bstatic'
20543 fi
Cristy15f22012015-11-14 17:51:30 -050020544 lt_prog_compiler_pic_CXX='-fPIC'
cristy73bd4a52010-10-05 11:24:23 +000020545 ;;
20546
20547 amigaos*)
20548 case $host_cpu in
20549 powerpc)
20550 # see comment about AmigaOS4 .so support
20551 lt_prog_compiler_pic_CXX='-fPIC'
20552 ;;
20553 m68k)
20554 # FIXME: we need at least 68020 code to build shared libraries, but
Cristy15f22012015-11-14 17:51:30 -050020555 # adding the '-m68020' flag to GCC prevents building anything better,
20556 # like '-m68040'.
cristy73bd4a52010-10-05 11:24:23 +000020557 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20558 ;;
20559 esac
20560 ;;
20561
20562 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20563 # PIC is the default for these OSes.
20564 ;;
20565 mingw* | cygwin* | os2* | pw32* | cegcc*)
20566 # This hack is so that the source file can tell whether it is being
20567 # built for inclusion in a dll (and should export symbols for example).
20568 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20569 # (--disable-auto-import) libraries
20570 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050020571 case $host_os in
20572 os2*)
20573 lt_prog_compiler_static_CXX='$wl-static'
20574 ;;
20575 esac
cristy73bd4a52010-10-05 11:24:23 +000020576 ;;
20577 darwin* | rhapsody*)
20578 # PIC is the default on this platform
20579 # Common symbols not allowed in MH_DYLIB files
20580 lt_prog_compiler_pic_CXX='-fno-common'
20581 ;;
20582 *djgpp*)
20583 # DJGPP does not support shared libraries at all
20584 lt_prog_compiler_pic_CXX=
20585 ;;
cristy0c60a692010-11-04 01:09:47 +000020586 haiku*)
20587 # PIC is the default for Haiku.
20588 # The "-static" flag exists, but is broken.
20589 lt_prog_compiler_static_CXX=
20590 ;;
cristy73bd4a52010-10-05 11:24:23 +000020591 interix[3-9]*)
20592 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20593 # Instead, we relocate shared libraries at runtime.
20594 ;;
20595 sysv4*MP*)
20596 if test -d /usr/nec; then
20597 lt_prog_compiler_pic_CXX=-Kconform_pic
20598 fi
20599 ;;
20600 hpux*)
20601 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20602 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20603 # sets the default TLS model and affects inlining.
20604 case $host_cpu in
20605 hppa*64*)
20606 ;;
20607 *)
20608 lt_prog_compiler_pic_CXX='-fPIC'
20609 ;;
20610 esac
20611 ;;
20612 *qnx* | *nto*)
20613 # QNX uses GNU C++, but need to define -shared option too, otherwise
20614 # it will coredump.
20615 lt_prog_compiler_pic_CXX='-fPIC -shared'
20616 ;;
20617 *)
20618 lt_prog_compiler_pic_CXX='-fPIC'
20619 ;;
20620 esac
20621 else
20622 case $host_os in
20623 aix[4-9]*)
20624 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050020625 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020626 # AIX 5 now supports IA64 processor
20627 lt_prog_compiler_static_CXX='-Bstatic'
20628 else
20629 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20630 fi
20631 ;;
20632 chorus*)
20633 case $cc_basename in
20634 cxch68*)
20635 # Green Hills C++ Compiler
20636 # _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"
20637 ;;
20638 esac
20639 ;;
cristyda16f162011-02-19 23:52:17 +000020640 mingw* | cygwin* | os2* | pw32* | cegcc*)
20641 # This hack is so that the source file can tell whether it is being
20642 # built for inclusion in a dll (and should export symbols for example).
20643 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20644 ;;
cristy73bd4a52010-10-05 11:24:23 +000020645 dgux*)
20646 case $cc_basename in
20647 ec++*)
20648 lt_prog_compiler_pic_CXX='-KPIC'
20649 ;;
20650 ghcx*)
20651 # Green Hills C++ Compiler
20652 lt_prog_compiler_pic_CXX='-pic'
20653 ;;
20654 *)
20655 ;;
20656 esac
20657 ;;
20658 freebsd* | dragonfly*)
20659 # FreeBSD uses GNU C++
20660 ;;
20661 hpux9* | hpux10* | hpux11*)
20662 case $cc_basename in
20663 CC*)
20664 lt_prog_compiler_wl_CXX='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050020665 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20666 if test ia64 != "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020667 lt_prog_compiler_pic_CXX='+Z'
20668 fi
20669 ;;
20670 aCC*)
20671 lt_prog_compiler_wl_CXX='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050020672 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
cristy73bd4a52010-10-05 11:24:23 +000020673 case $host_cpu in
20674 hppa*64*|ia64*)
20675 # +Z the default
20676 ;;
20677 *)
20678 lt_prog_compiler_pic_CXX='+Z'
20679 ;;
20680 esac
20681 ;;
20682 *)
20683 ;;
20684 esac
20685 ;;
20686 interix*)
20687 # This is c89, which is MS Visual C++ (no shared libs)
20688 # Anyone wants to do a port?
20689 ;;
20690 irix5* | irix6* | nonstopux*)
20691 case $cc_basename in
20692 CC*)
20693 lt_prog_compiler_wl_CXX='-Wl,'
20694 lt_prog_compiler_static_CXX='-non_shared'
20695 # CC pic flag -KPIC is the default.
20696 ;;
20697 *)
20698 ;;
20699 esac
20700 ;;
Cristy15f22012015-11-14 17:51:30 -050020701 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000020702 case $cc_basename in
20703 KCC*)
20704 # KAI C++ Compiler
20705 lt_prog_compiler_wl_CXX='--backend -Wl,'
20706 lt_prog_compiler_pic_CXX='-fPIC'
20707 ;;
20708 ecpc* )
Cristy15f22012015-11-14 17:51:30 -050020709 # old Intel C++ for x86_64, which still supported -KPIC.
cristy73bd4a52010-10-05 11:24:23 +000020710 lt_prog_compiler_wl_CXX='-Wl,'
20711 lt_prog_compiler_pic_CXX='-KPIC'
20712 lt_prog_compiler_static_CXX='-static'
20713 ;;
20714 icpc* )
20715 # Intel C++, used to be incompatible with GCC.
20716 # ICC 10 doesn't accept -KPIC any more.
20717 lt_prog_compiler_wl_CXX='-Wl,'
20718 lt_prog_compiler_pic_CXX='-fPIC'
20719 lt_prog_compiler_static_CXX='-static'
20720 ;;
20721 pgCC* | pgcpp*)
20722 # Portland Group C++ compiler
20723 lt_prog_compiler_wl_CXX='-Wl,'
20724 lt_prog_compiler_pic_CXX='-fpic'
20725 lt_prog_compiler_static_CXX='-Bstatic'
20726 ;;
20727 cxx*)
20728 # Compaq C++
20729 # Make sure the PIC flag is empty. It appears that all Alpha
20730 # Linux and Compaq Tru64 Unix objects are PIC.
20731 lt_prog_compiler_pic_CXX=
20732 lt_prog_compiler_static_CXX='-non_shared'
20733 ;;
cristy0c60a692010-11-04 01:09:47 +000020734 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20735 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020736 lt_prog_compiler_wl_CXX='-Wl,'
20737 lt_prog_compiler_pic_CXX='-qpic'
20738 lt_prog_compiler_static_CXX='-qstaticlink'
20739 ;;
20740 *)
20741 case `$CC -V 2>&1 | sed 5q` in
20742 *Sun\ C*)
20743 # Sun C++ 5.9
20744 lt_prog_compiler_pic_CXX='-KPIC'
20745 lt_prog_compiler_static_CXX='-Bstatic'
20746 lt_prog_compiler_wl_CXX='-Qoption ld '
20747 ;;
20748 esac
20749 ;;
20750 esac
20751 ;;
20752 lynxos*)
20753 ;;
20754 m88k*)
20755 ;;
20756 mvs*)
20757 case $cc_basename in
20758 cxx*)
20759 lt_prog_compiler_pic_CXX='-W c,exportall'
20760 ;;
20761 *)
20762 ;;
20763 esac
20764 ;;
20765 netbsd*)
20766 ;;
20767 *qnx* | *nto*)
20768 # QNX uses GNU C++, but need to define -shared option too, otherwise
20769 # it will coredump.
20770 lt_prog_compiler_pic_CXX='-fPIC -shared'
20771 ;;
20772 osf3* | osf4* | osf5*)
20773 case $cc_basename in
20774 KCC*)
20775 lt_prog_compiler_wl_CXX='--backend -Wl,'
20776 ;;
20777 RCC*)
20778 # Rational C++ 2.4.1
20779 lt_prog_compiler_pic_CXX='-pic'
20780 ;;
20781 cxx*)
20782 # Digital/Compaq C++
20783 lt_prog_compiler_wl_CXX='-Wl,'
20784 # Make sure the PIC flag is empty. It appears that all Alpha
20785 # Linux and Compaq Tru64 Unix objects are PIC.
20786 lt_prog_compiler_pic_CXX=
20787 lt_prog_compiler_static_CXX='-non_shared'
20788 ;;
20789 *)
20790 ;;
20791 esac
20792 ;;
20793 psos*)
20794 ;;
20795 solaris*)
20796 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020797 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020798 # Sun C++ 4.2, 5.x and Centerline C++
20799 lt_prog_compiler_pic_CXX='-KPIC'
20800 lt_prog_compiler_static_CXX='-Bstatic'
20801 lt_prog_compiler_wl_CXX='-Qoption ld '
20802 ;;
20803 gcx*)
20804 # Green Hills C++ Compiler
20805 lt_prog_compiler_pic_CXX='-PIC'
20806 ;;
20807 *)
20808 ;;
20809 esac
20810 ;;
20811 sunos4*)
20812 case $cc_basename in
20813 CC*)
20814 # Sun C++ 4.x
20815 lt_prog_compiler_pic_CXX='-pic'
20816 lt_prog_compiler_static_CXX='-Bstatic'
20817 ;;
20818 lcc*)
20819 # Lucid
20820 lt_prog_compiler_pic_CXX='-pic'
20821 ;;
20822 *)
20823 ;;
20824 esac
20825 ;;
20826 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20827 case $cc_basename in
20828 CC*)
20829 lt_prog_compiler_wl_CXX='-Wl,'
20830 lt_prog_compiler_pic_CXX='-KPIC'
20831 lt_prog_compiler_static_CXX='-Bstatic'
20832 ;;
20833 esac
20834 ;;
20835 tandem*)
20836 case $cc_basename in
20837 NCC*)
20838 # NonStop-UX NCC 3.20
20839 lt_prog_compiler_pic_CXX='-KPIC'
20840 ;;
20841 *)
20842 ;;
20843 esac
20844 ;;
20845 vxworks*)
20846 ;;
20847 *)
20848 lt_prog_compiler_can_build_shared_CXX=no
20849 ;;
20850 esac
20851 fi
20852
20853case $host_os in
Cristy15f22012015-11-14 17:51:30 -050020854 # For platforms that do not support PIC, -DPIC is meaningless:
cristy73bd4a52010-10-05 11:24:23 +000020855 *djgpp*)
20856 lt_prog_compiler_pic_CXX=
20857 ;;
20858 *)
20859 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20860 ;;
20861esac
cristy73bd4a52010-10-05 11:24:23 +000020862
cristyda16f162011-02-19 23:52:17 +000020863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20864$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20865if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20866 $as_echo_n "(cached) " >&6
20867else
20868 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20869fi
20870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20871$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20872lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020873
20874#
20875# Check to make sure the PIC flag actually works.
20876#
20877if test -n "$lt_prog_compiler_pic_CXX"; then
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20879$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020880if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020881 $as_echo_n "(cached) " >&6
20882else
20883 lt_cv_prog_compiler_pic_works_CXX=no
20884 ac_outfile=conftest.$ac_objext
20885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050020886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000020887 # Insert the option either (1) after the last *FLAGS variable, or
20888 # (2) before a word containing "conftest.", or (3) at the end.
20889 # Note that $ac_compile itself does not contain backslashes and begins
20890 # with a dollar sign (not a hyphen), so the echo should work correctly.
20891 # The option is referenced via a variable to avoid confusing sed.
20892 lt_compile=`echo "$ac_compile" | $SED \
20893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20895 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020897 (eval "$lt_compile" 2>conftest.err)
20898 ac_status=$?
20899 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000020900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000020901 if (exit $ac_status) && test -s "$ac_outfile"; then
20902 # The compiler can only warn and ignore the option if not recognized
20903 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000020904 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020905 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20906 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20907 lt_cv_prog_compiler_pic_works_CXX=yes
20908 fi
20909 fi
20910 $RM conftest*
20911
20912fi
20913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20914$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20915
Cristy15f22012015-11-14 17:51:30 -050020916if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020917 case $lt_prog_compiler_pic_CXX in
20918 "" | " "*) ;;
20919 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20920 esac
20921else
20922 lt_prog_compiler_pic_CXX=
20923 lt_prog_compiler_can_build_shared_CXX=no
20924fi
20925
20926fi
20927
20928
20929
cristyda16f162011-02-19 23:52:17 +000020930
20931
cristy73bd4a52010-10-05 11:24:23 +000020932#
20933# Check to make sure the static flag actually works.
20934#
20935wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20937$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020938if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020939 $as_echo_n "(cached) " >&6
20940else
20941 lt_cv_prog_compiler_static_works_CXX=no
Cristy15f22012015-11-14 17:51:30 -050020942 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020943 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20944 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20945 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20946 # The linker can only warn and ignore the option if not recognized
20947 # So say no if there are warnings
20948 if test -s conftest.err; then
20949 # Append any errors to the config.log.
20950 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000020951 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000020952 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20953 if diff conftest.exp conftest.er2 >/dev/null; then
20954 lt_cv_prog_compiler_static_works_CXX=yes
20955 fi
20956 else
20957 lt_cv_prog_compiler_static_works_CXX=yes
20958 fi
20959 fi
20960 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050020961 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020962
20963fi
20964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20965$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20966
Cristy15f22012015-11-14 17:51:30 -050020967if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020968 :
20969else
20970 lt_prog_compiler_static_CXX=
20971fi
20972
20973
20974
20975
20976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20977$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020978if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020979 $as_echo_n "(cached) " >&6
20980else
20981 lt_cv_prog_compiler_c_o_CXX=no
20982 $RM -r conftest 2>/dev/null
20983 mkdir conftest
20984 cd conftest
20985 mkdir out
20986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20987
20988 lt_compiler_flag="-o out/conftest2.$ac_objext"
20989 # Insert the option either (1) after the last *FLAGS variable, or
20990 # (2) before a word containing "conftest.", or (3) at the end.
20991 # Note that $ac_compile itself does not contain backslashes and begins
20992 # with a dollar sign (not a hyphen), so the echo should work correctly.
20993 lt_compile=`echo "$ac_compile" | $SED \
20994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20996 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000020997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000020998 (eval "$lt_compile" 2>out/conftest.err)
20999 ac_status=$?
21000 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000021001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000021002 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21003 then
21004 # The compiler can only warn and ignore the option if not recognized
21005 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000021006 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000021007 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21008 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21009 lt_cv_prog_compiler_c_o_CXX=yes
21010 fi
21011 fi
21012 chmod u+w . 2>&5
21013 $RM conftest*
21014 # SGI C++ compiler will create directory out/ii_files/ for
21015 # template instantiation
21016 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21017 $RM out/* && rmdir out
21018 cd ..
21019 $RM -r conftest
21020 $RM conftest*
21021
21022fi
21023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21024$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21025
21026
21027
21028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21029$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021030if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021031 $as_echo_n "(cached) " >&6
21032else
21033 lt_cv_prog_compiler_c_o_CXX=no
21034 $RM -r conftest 2>/dev/null
21035 mkdir conftest
21036 cd conftest
21037 mkdir out
21038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21039
21040 lt_compiler_flag="-o out/conftest2.$ac_objext"
21041 # Insert the option either (1) after the last *FLAGS variable, or
21042 # (2) before a word containing "conftest.", or (3) at the end.
21043 # Note that $ac_compile itself does not contain backslashes and begins
21044 # with a dollar sign (not a hyphen), so the echo should work correctly.
21045 lt_compile=`echo "$ac_compile" | $SED \
21046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21048 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000021049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000021050 (eval "$lt_compile" 2>out/conftest.err)
21051 ac_status=$?
21052 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000021053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000021054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21055 then
21056 # The compiler can only warn and ignore the option if not recognized
21057 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000021058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000021059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21061 lt_cv_prog_compiler_c_o_CXX=yes
21062 fi
21063 fi
21064 chmod u+w . 2>&5
21065 $RM conftest*
21066 # SGI C++ compiler will create directory out/ii_files/ for
21067 # template instantiation
21068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21069 $RM out/* && rmdir out
21070 cd ..
21071 $RM -r conftest
21072 $RM conftest*
21073
21074fi
21075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21076$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21077
21078
21079
21080
Cristy15f22012015-11-14 17:51:30 -050021081hard_links=nottested
21082if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
cristy73bd4a52010-10-05 11:24:23 +000021083 # do not overwrite the value of need_locks provided by the user
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21085$as_echo_n "checking if we can lock with hard links... " >&6; }
21086 hard_links=yes
21087 $RM conftest*
21088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21089 touch conftest.a
21090 ln conftest.a conftest.b 2>&5 || hard_links=no
21091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21093$as_echo "$hard_links" >&6; }
Cristy15f22012015-11-14 17:51:30 -050021094 if test no = "$hard_links"; then
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21096$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cristy73bd4a52010-10-05 11:24:23 +000021097 need_locks=warn
21098 fi
21099else
21100 need_locks=no
21101fi
21102
21103
21104
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21107
21108 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000021109 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000021110 case $host_os in
21111 aix[4-9]*)
21112 # If we're using GNU nm, then we don't want the "-C" option.
Cristy15f22012015-11-14 17:51:30 -050021113 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21114 # Without the "-l" option, or with the "-B" option, AIX nm treats
21115 # weak defined symbols like other global defined symbols, whereas
21116 # GNU nm marks them as "W".
21117 # While the 'weak' keyword is ignored in the Export File, we need
21118 # it in the Import File for the 'aix-soname' feature, so we have
21119 # to replace the "-B" option with "-P" for AIX nm.
cristy73bd4a52010-10-05 11:24:23 +000021120 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050021121 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000021122 else
Cristy15f22012015-11-14 17:51:30 -050021123 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000021124 fi
21125 ;;
21126 pw32*)
Cristy15f22012015-11-14 17:51:30 -050021127 export_symbols_cmds_CXX=$ltdll_cmds
cristyda16f162011-02-19 23:52:17 +000021128 ;;
cristy73bd4a52010-10-05 11:24:23 +000021129 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000021130 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000021131 cl*)
21132 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21133 ;;
cristyda16f162011-02-19 23:52:17 +000021134 *)
21135 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'
21136 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21137 ;;
21138 esac
21139 ;;
cristy73bd4a52010-10-05 11:24:23 +000021140 *)
21141 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000021142 ;;
cristy73bd4a52010-10-05 11:24:23 +000021143 esac
cristy73bd4a52010-10-05 11:24:23 +000021144
21145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21146$as_echo "$ld_shlibs_CXX" >&6; }
Cristy15f22012015-11-14 17:51:30 -050021147test no = "$ld_shlibs_CXX" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000021148
21149with_gnu_ld_CXX=$with_gnu_ld
21150
21151
21152
21153
21154
21155
21156#
21157# Do we need to explicitly link libc?
21158#
21159case "x$archive_cmds_need_lc_CXX" in
21160x|xyes)
21161 # Assume -lc should be added
21162 archive_cmds_need_lc_CXX=yes
21163
Cristy15f22012015-11-14 17:51:30 -050021164 if test yes,yes = "$GCC,$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000021165 case $archive_cmds_CXX in
21166 *'~'*)
21167 # FIXME: we may have to deal with multi-command sequences.
21168 ;;
21169 '$CC '*)
21170 # Test whether the compiler implicitly links with -lc since on some
21171 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21172 # to ld, don't add -lc before -lgcc.
21173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21174$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021175if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021176 $as_echo_n "(cached) " >&6
21177else
21178 $RM conftest*
21179 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021180
cristy0c60a692010-11-04 01:09:47 +000021181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000021182 (eval $ac_compile) 2>&5
21183 ac_status=$?
21184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21185 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000021186 soname=conftest
21187 lib=conftest
21188 libobjs=conftest.$ac_objext
21189 deplibs=
21190 wl=$lt_prog_compiler_wl_CXX
21191 pic_flag=$lt_prog_compiler_pic_CXX
21192 compiler_flags=-v
21193 linker_flags=-v
21194 verstring=
21195 output_objdir=.
21196 libname=conftest
21197 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21198 allow_undefined_flag_CXX=
21199 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 +000021200 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21201 ac_status=$?
21202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21203 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000021204 then
21205 lt_cv_archive_cmds_need_lc_CXX=no
21206 else
21207 lt_cv_archive_cmds_need_lc_CXX=yes
21208 fi
21209 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21210 else
21211 cat conftest.err 1>&5
21212 fi
21213 $RM conftest*
21214
21215fi
21216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21217$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21218 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000021219 ;;
21220 esac
21221 fi
21222 ;;
21223esac
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249
21250
21251
21252
21253
21254
21255
21256
21257
21258
21259
21260
21261
21262
21263
21264
21265
21266
21267
21268
21269
21270
21271
21272
21273
21274
21275
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
cristy73bd4a52010-10-05 11:24:23 +000021286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21287$as_echo_n "checking dynamic linker characteristics... " >&6; }
21288
21289library_names_spec=
21290libname_spec='lib$name'
21291soname_spec=
Cristy15f22012015-11-14 17:51:30 -050021292shrext_cmds=.so
cristy73bd4a52010-10-05 11:24:23 +000021293postinstall_cmds=
21294postuninstall_cmds=
21295finish_cmds=
21296finish_eval=
21297shlibpath_var=
21298shlibpath_overrides_runpath=unknown
21299version_type=none
21300dynamic_linker="$host_os ld.so"
21301sys_lib_dlsearch_path_spec="/lib /usr/lib"
21302need_lib_prefix=unknown
21303hardcode_into_libs=no
21304
21305# when you set need_version to no, make sure it does not cause -set_version
21306# flags to be left without arguments
21307need_version=unknown
21308
Cristy15f22012015-11-14 17:51:30 -050021309
21310
cristy73bd4a52010-10-05 11:24:23 +000021311case $host_os in
21312aix3*)
cristy99bd5232011-12-07 14:38:20 +000021313 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050021314 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cristy73bd4a52010-10-05 11:24:23 +000021315 shlibpath_var=LIBPATH
21316
21317 # AIX 3 has no versioning support, so we append a major version to the name.
Cristy15f22012015-11-14 17:51:30 -050021318 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021319 ;;
21320
21321aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000021322 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021323 need_lib_prefix=no
21324 need_version=no
21325 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050021326 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000021327 # AIX 5 supports IA64
Cristy15f22012015-11-14 17:51:30 -050021328 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021329 shlibpath_var=LD_LIBRARY_PATH
21330 else
21331 # With GCC up to 2.95.x, collect2 would create an import file
21332 # for dependence libraries. The import file would start with
Cristy15f22012015-11-14 17:51:30 -050021333 # the line '#! .'. This would cause the generated library to
21334 # depend on '.', always an invalid library. This was fixed in
cristy73bd4a52010-10-05 11:24:23 +000021335 # development snapshots of GCC prior to 3.0.
21336 case $host_os in
21337 aix4 | aix4.[01] | aix4.[01].*)
21338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21339 echo ' yes '
Cristy15f22012015-11-14 17:51:30 -050021340 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000021341 :
21342 else
21343 can_build_shared=no
21344 fi
21345 ;;
21346 esac
Cristy15f22012015-11-14 17:51:30 -050021347 # Using Import Files as archive members, it is possible to support
21348 # filename-based versioning of shared library archives on AIX. While
21349 # this would work for both with and without runtime linking, it will
21350 # prevent static linking of such archives. So we do filename-based
21351 # shared library versioning with .so extension only, which is used
21352 # when both runtime linking and shared linking is enabled.
21353 # Unfortunately, runtime linking may impact performance, so we do
21354 # not want this to be the default eventually. Also, we use the
21355 # versioned .so libs for executables only if there is the -brtl
21356 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21357 # To allow for filename-based versioning support, we need to create
21358 # libNAME.so.V as an archive file, containing:
21359 # *) an Import File, referring to the versioned filename of the
21360 # archive as well as the shared archive member, telling the
21361 # bitwidth (32 or 64) of that shared object, and providing the
21362 # list of exported symbols of that shared object, eventually
21363 # decorated with the 'weak' keyword
21364 # *) the shared object with the F_LOADONLY flag set, to really avoid
21365 # it being seen by the linker.
21366 # At run time we better use the real file rather than another symlink,
21367 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21368
21369 case $with_aix_soname,$aix_use_runtimelinking in
21370 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cristy73bd4a52010-10-05 11:24:23 +000021371 # soname into executable. Probably we can add versioning support to
21372 # collect2, so additional links can be useful in future.
Cristy15f22012015-11-14 17:51:30 -050021373 aix,yes) # traditional libtool
21374 dynamic_linker='AIX unversionable lib.so'
cristy73bd4a52010-10-05 11:24:23 +000021375 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21376 # instead of lib<name>.a to let people know that these are not
21377 # typical AIX shared libraries.
Cristy15f22012015-11-14 17:51:30 -050021378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21379 ;;
21380 aix,no) # traditional AIX only
21381 dynamic_linker='AIX lib.a(lib.so.V)'
cristy73bd4a52010-10-05 11:24:23 +000021382 # We preserve .a as extension for shared libraries through AIX4.2
21383 # and later when we are not doing run time linking.
Cristy15f22012015-11-14 17:51:30 -050021384 library_names_spec='$libname$release.a $libname.a'
21385 soname_spec='$libname$release$shared_ext$major'
21386 ;;
21387 svr4,*) # full svr4 only
21388 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21389 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21390 # We do not specify a path in Import Files, so LIBPATH fires.
21391 shlibpath_overrides_runpath=yes
21392 ;;
21393 *,yes) # both, prefer svr4
21394 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21395 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21396 # unpreferred sharedlib libNAME.a needs extra handling
21397 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
21398 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
21399 # We do not specify a path in Import Files, so LIBPATH fires.
21400 shlibpath_overrides_runpath=yes
21401 ;;
21402 *,no) # both, prefer aix
21403 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21404 library_names_spec='$libname$release.a $libname.a'
21405 soname_spec='$libname$release$shared_ext$major'
21406 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21407 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
21408 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
21409 ;;
21410 esac
cristy73bd4a52010-10-05 11:24:23 +000021411 shlibpath_var=LIBPATH
21412 fi
21413 ;;
21414
21415amigaos*)
21416 case $host_cpu in
21417 powerpc)
21418 # Since July 2007 AmigaOS4 officially supports .so libraries.
21419 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Cristy15f22012015-11-14 17:51:30 -050021420 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021421 ;;
21422 m68k)
21423 library_names_spec='$libname.ixlibrary $libname.a'
21424 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Cristy15f22012015-11-14 17:51:30 -050021425 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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 +000021426 ;;
21427 esac
21428 ;;
21429
21430beos*)
Cristy15f22012015-11-14 17:51:30 -050021431 library_names_spec='$libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021432 dynamic_linker="$host_os ld.so"
21433 shlibpath_var=LIBRARY_PATH
21434 ;;
21435
21436bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000021437 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021438 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21440 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021441 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21442 shlibpath_var=LD_LIBRARY_PATH
21443 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21444 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21445 # the default ld.so.conf also contains /usr/contrib/lib and
21446 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21447 # libtool to hard-code these into programs
21448 ;;
21449
21450cygwin* | mingw* | pw32* | cegcc*)
21451 version_type=windows
Cristy15f22012015-11-14 17:51:30 -050021452 shrext_cmds=.dll
cristy73bd4a52010-10-05 11:24:23 +000021453 need_version=no
21454 need_lib_prefix=no
21455
cristyda16f162011-02-19 23:52:17 +000021456 case $GCC,$cc_basename in
21457 yes,*)
21458 # gcc
cristy73bd4a52010-10-05 11:24:23 +000021459 library_names_spec='$libname.dll.a'
21460 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050021461 postinstall_cmds='base_file=`basename \$file`~
21462 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristy73bd4a52010-10-05 11:24:23 +000021463 dldir=$destdir/`dirname \$dlpath`~
21464 test -d \$dldir || mkdir -p \$dldir~
21465 $install_prog $dir/$dlname \$dldir/$dlname~
21466 chmod a+x \$dldir/$dlname~
21467 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21468 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21469 fi'
21470 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21471 dlpath=$dir/\$dldll~
21472 $RM \$dlpath'
21473 shlibpath_overrides_runpath=yes
21474
21475 case $host_os in
21476 cygwin*)
21477 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050021478 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy0c60a692010-11-04 01:09:47 +000021479
cristy73bd4a52010-10-05 11:24:23 +000021480 ;;
21481 mingw* | cegcc*)
21482 # MinGW DLLs use traditional 'lib' prefix
Cristy15f22012015-11-14 17:51:30 -050021483 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021484 ;;
21485 pw32*)
21486 # pw32 DLLs use 'pw' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050021487 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021488 ;;
21489 esac
cristyda16f162011-02-19 23:52:17 +000021490 dynamic_linker='Win32 ld.exe'
21491 ;;
21492
21493 *,cl*)
21494 # Native MSVC
21495 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050021496 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21497 library_names_spec='$libname.dll.lib'
cristyda16f162011-02-19 23:52:17 +000021498
21499 case $build_os in
21500 mingw*)
21501 sys_lib_search_path_spec=
21502 lt_save_ifs=$IFS
21503 IFS=';'
21504 for lt_path in $LIB
21505 do
21506 IFS=$lt_save_ifs
21507 # Let DOS variable expansion print the short 8.3 style file name.
21508 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21509 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21510 done
21511 IFS=$lt_save_ifs
21512 # Convert to MSYS style.
21513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21514 ;;
21515 cygwin*)
21516 # Convert to unix form, then to dos form, then back to unix form
21517 # but this time dos style (no spaces!) so that the unix form looks
21518 # like /cygdrive/c/PROGRA~1:/cygdr...
21519 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21520 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21521 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21522 ;;
21523 *)
Cristy15f22012015-11-14 17:51:30 -050021524 sys_lib_search_path_spec=$LIB
cristyda16f162011-02-19 23:52:17 +000021525 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21526 # It is most probably a Windows format PATH.
21527 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21528 else
21529 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21530 fi
21531 # FIXME: find the short name or the path components, as spaces are
21532 # common. (e.g. "Program Files" -> "PROGRA~1")
21533 ;;
21534 esac
21535
21536 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050021537 postinstall_cmds='base_file=`basename \$file`~
21538 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristyda16f162011-02-19 23:52:17 +000021539 dldir=$destdir/`dirname \$dlpath`~
21540 test -d \$dldir || mkdir -p \$dldir~
21541 $install_prog $dir/$dlname \$dldir/$dlname'
21542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21543 dlpath=$dir/\$dldll~
21544 $RM \$dlpath'
21545 shlibpath_overrides_runpath=yes
21546 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000021547 ;;
21548
21549 *)
cristyda16f162011-02-19 23:52:17 +000021550 # Assume MSVC wrapper
Cristy15f22012015-11-14 17:51:30 -050021551 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cristyda16f162011-02-19 23:52:17 +000021552 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000021553 ;;
21554 esac
cristy73bd4a52010-10-05 11:24:23 +000021555 # FIXME: first we should search . and the directory the executable is in
21556 shlibpath_var=PATH
21557 ;;
21558
21559darwin* | rhapsody*)
21560 dynamic_linker="$host_os dyld"
21561 version_type=darwin
21562 need_lib_prefix=no
21563 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021564 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21565 soname_spec='$libname$release$major$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021566 shlibpath_overrides_runpath=yes
21567 shlibpath_var=DYLD_LIBRARY_PATH
21568 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21569
21570 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21571 ;;
21572
21573dgux*)
cristy99bd5232011-12-07 14:38:20 +000021574 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021575 need_lib_prefix=no
21576 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021577 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21578 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021579 shlibpath_var=LD_LIBRARY_PATH
21580 ;;
21581
cristy73bd4a52010-10-05 11:24:23 +000021582freebsd* | dragonfly*)
21583 # DragonFly does not have aout. When/if they implement a new
21584 # versioning mechanism, adjust this.
21585 if test -x /usr/bin/objformat; then
21586 objformat=`/usr/bin/objformat`
21587 else
21588 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021589 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021590 *) objformat=elf ;;
21591 esac
21592 fi
21593 version_type=freebsd-$objformat
21594 case $version_type in
21595 freebsd-elf*)
Cristy15f22012015-11-14 17:51:30 -050021596 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21597 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021598 need_version=no
21599 need_lib_prefix=no
21600 ;;
21601 freebsd-*)
Cristy15f22012015-11-14 17:51:30 -050021602 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021603 need_version=yes
21604 ;;
21605 esac
21606 shlibpath_var=LD_LIBRARY_PATH
21607 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021608 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021609 shlibpath_overrides_runpath=yes
21610 ;;
21611 freebsd3.[01]* | freebsdelf3.[01]*)
21612 shlibpath_overrides_runpath=yes
21613 hardcode_into_libs=yes
21614 ;;
21615 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21616 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21617 shlibpath_overrides_runpath=no
21618 hardcode_into_libs=yes
21619 ;;
21620 *) # from 4.6 on, and DragonFly
21621 shlibpath_overrides_runpath=yes
21622 hardcode_into_libs=yes
21623 ;;
21624 esac
21625 ;;
21626
cristy0c60a692010-11-04 01:09:47 +000021627haiku*)
cristy99bd5232011-12-07 14:38:20 +000021628 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021629 need_lib_prefix=no
21630 need_version=no
21631 dynamic_linker="$host_os runtime_loader"
Cristy15f22012015-11-14 17:51:30 -050021632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21633 soname_spec='$libname$release$shared_ext$major'
cristy0c60a692010-11-04 01:09:47 +000021634 shlibpath_var=LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050021635 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021636 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21637 hardcode_into_libs=yes
21638 ;;
21639
cristy73bd4a52010-10-05 11:24:23 +000021640hpux9* | hpux10* | hpux11*)
21641 # Give a soname corresponding to the major version so that dld.sl refuses to
21642 # link against other versions.
21643 version_type=sunos
21644 need_lib_prefix=no
21645 need_version=no
21646 case $host_cpu in
21647 ia64*)
21648 shrext_cmds='.so'
21649 hardcode_into_libs=yes
21650 dynamic_linker="$host_os dld.so"
21651 shlibpath_var=LD_LIBRARY_PATH
21652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050021653 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21654 soname_spec='$libname$release$shared_ext$major'
21655 if test 32 = "$HPUX_IA64_MODE"; then
cristy73bd4a52010-10-05 11:24:23 +000021656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Cristy15f22012015-11-14 17:51:30 -050021657 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cristy73bd4a52010-10-05 11:24:23 +000021658 else
21659 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Cristy15f22012015-11-14 17:51:30 -050021660 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cristy73bd4a52010-10-05 11:24:23 +000021661 fi
cristy73bd4a52010-10-05 11:24:23 +000021662 ;;
21663 hppa*64*)
21664 shrext_cmds='.sl'
21665 hardcode_into_libs=yes
21666 dynamic_linker="$host_os dld.sl"
21667 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21668 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050021669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21670 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021671 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21672 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21673 ;;
21674 *)
21675 shrext_cmds='.sl'
21676 dynamic_linker="$host_os dld.sl"
21677 shlibpath_var=SHLIB_PATH
21678 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Cristy15f22012015-11-14 17:51:30 -050021679 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21680 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021681 ;;
21682 esac
cristy0c60a692010-11-04 01:09:47 +000021683 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021684 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021685 # or fails outright, so override atomically:
21686 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021687 ;;
21688
21689interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021690 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021691 need_lib_prefix=no
21692 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21694 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021695 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21696 shlibpath_var=LD_LIBRARY_PATH
21697 shlibpath_overrides_runpath=no
21698 hardcode_into_libs=yes
21699 ;;
21700
21701irix5* | irix6* | nonstopux*)
21702 case $host_os in
21703 nonstopux*) version_type=nonstopux ;;
21704 *)
Cristy15f22012015-11-14 17:51:30 -050021705 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy99bd5232011-12-07 14:38:20 +000021706 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021707 else
21708 version_type=irix
21709 fi ;;
21710 esac
21711 need_lib_prefix=no
21712 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021713 soname_spec='$libname$release$shared_ext$major'
21714 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021715 case $host_os in
21716 irix5* | nonstopux*)
21717 libsuff= shlibsuff=
21718 ;;
21719 *)
21720 case $LD in # libtool.m4 will add one of these switches to LD
21721 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21722 libsuff= shlibsuff= libmagic=32-bit;;
21723 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21724 libsuff=32 shlibsuff=N32 libmagic=N32;;
21725 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21726 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21727 *) libsuff= shlibsuff= libmagic=never-match;;
21728 esac
21729 ;;
21730 esac
21731 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21732 shlibpath_overrides_runpath=no
Cristy15f22012015-11-14 17:51:30 -050021733 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21734 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cristy73bd4a52010-10-05 11:24:23 +000021735 hardcode_into_libs=yes
21736 ;;
21737
21738# No shared lib support for Linux oldld, aout, or coff.
21739linux*oldld* | linux*aout* | linux*coff*)
21740 dynamic_linker=no
21741 ;;
21742
Cristy15f22012015-11-14 17:51:30 -050021743linux*android*)
21744 version_type=none # Android doesn't support versioned libraries.
21745 need_lib_prefix=no
21746 need_version=no
21747 library_names_spec='$libname$release$shared_ext'
21748 soname_spec='$libname$release$shared_ext'
21749 finish_cmds=
21750 shlibpath_var=LD_LIBRARY_PATH
21751 shlibpath_overrides_runpath=yes
21752
21753 # This implies no fast_install, which is unacceptable.
21754 # Some rework will be needed to allow for fast_install
21755 # before this can be enabled.
21756 hardcode_into_libs=yes
21757
21758 dynamic_linker='Android linker'
21759 # Don't embed -rpath directories since the linker doesn't support them.
21760 hardcode_libdir_flag_spec_CXX='-L$libdir'
21761 ;;
21762
cristy99bd5232011-12-07 14:38:20 +000021763# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050021764linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
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 need_lib_prefix=no
21767 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021768 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21769 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21771 shlibpath_var=LD_LIBRARY_PATH
21772 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021773
cristy73bd4a52010-10-05 11:24:23 +000021774 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021775 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021776 $as_echo_n "(cached) " >&6
21777else
21778 lt_cv_shlibpath_overrides_runpath=no
21779 save_LDFLAGS=$LDFLAGS
21780 save_libdir=$libdir
21781 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21782 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021784/* end confdefs.h. */
21785
21786int
21787main ()
21788{
21789
21790 ;
21791 return 0;
21792}
21793_ACEOF
21794if ac_fn_cxx_try_link "$LINENO"; then :
21795 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021796 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021797fi
21798fi
21799rm -f core conftest.err conftest.$ac_objext \
21800 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021801 LDFLAGS=$save_LDFLAGS
21802 libdir=$save_libdir
21803
21804fi
21805
21806 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021807
21808 # This implies no fast_install, which is unacceptable.
21809 # Some rework will be needed to allow for fast_install
21810 # before this can be enabled.
21811 hardcode_into_libs=yes
21812
21813 # Add ABI-specific directories to the system library path.
21814 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21815
Cristy15f22012015-11-14 17:51:30 -050021816 # Ideally, we could use ldconfig to report *all* directores which are
21817 # searched for libraries, however this is still not possible. Aside from not
21818 # being certain /sbin/ldconfig is available, command
21819 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21820 # even though it is searched at run-time. Try to do the best guess by
21821 # appending ld.so.conf contents (and includes) to the search path.
cristy73bd4a52010-10-05 11:24:23 +000021822 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021823 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 +000021824 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21825 fi
21826
21827 # We used to test for /lib/ld.so.1 and disable shared libraries on
21828 # powerpc, because MkLinux only supported shared libraries with the
21829 # GNU dynamic linker. Since this was broken with cross compilers,
21830 # most powerpc-linux boxes support dynamic linking these days and
21831 # people can always --disable-shared, the test was removed, and we
21832 # assume the GNU/Linux dynamic linker is in use.
21833 dynamic_linker='GNU/Linux ld.so'
21834 ;;
21835
21836netbsd*)
21837 version_type=sunos
21838 need_lib_prefix=no
21839 need_version=no
21840 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Cristy15f22012015-11-14 17:51:30 -050021841 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21843 dynamic_linker='NetBSD (a.out) ld.so'
21844 else
Cristy15f22012015-11-14 17:51:30 -050021845 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21846 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021847 dynamic_linker='NetBSD ld.elf_so'
21848 fi
21849 shlibpath_var=LD_LIBRARY_PATH
21850 shlibpath_overrides_runpath=yes
21851 hardcode_into_libs=yes
21852 ;;
21853
21854newsos6)
cristy99bd5232011-12-07 14:38:20 +000021855 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050021856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021857 shlibpath_var=LD_LIBRARY_PATH
21858 shlibpath_overrides_runpath=yes
21859 ;;
21860
21861*nto* | *qnx*)
21862 version_type=qnx
21863 need_lib_prefix=no
21864 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021865 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21866 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021867 shlibpath_var=LD_LIBRARY_PATH
21868 shlibpath_overrides_runpath=no
21869 hardcode_into_libs=yes
21870 dynamic_linker='ldqnx.so'
21871 ;;
21872
Cristy15f22012015-11-14 17:51:30 -050021873openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000021874 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050021875 sys_lib_dlsearch_path_spec=/usr/lib
cristy73bd4a52010-10-05 11:24:23 +000021876 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050021877 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21878 need_version=no
21879 else
21880 need_version=yes
21881 fi
21882 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21884 shlibpath_var=LD_LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050021885 shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021886 ;;
21887
21888os2*)
21889 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050021890 version_type=windows
21891 shrext_cmds=.dll
21892 need_version=no
cristy73bd4a52010-10-05 11:24:23 +000021893 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050021894 # OS/2 can only load a DLL with a base name of 8 characters or less.
21895 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
21896 v=$($ECHO $release$versuffix | tr -d .-);
21897 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
21898 $ECHO $n$v`$shared_ext'
21899 library_names_spec='${libname}_dll.$libext'
cristy73bd4a52010-10-05 11:24:23 +000021900 dynamic_linker='OS/2 ld.exe'
Cristy15f22012015-11-14 17:51:30 -050021901 shlibpath_var=BEGINLIBPATH
21902 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
21903 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21904 postinstall_cmds='base_file=`basename \$file`~
21905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
21906 dldir=$destdir/`dirname \$dlpath`~
21907 test -d \$dldir || mkdir -p \$dldir~
21908 $install_prog $dir/$dlname \$dldir/$dlname~
21909 chmod a+x \$dldir/$dlname~
21910 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21911 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21912 fi'
21913 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
21914 dlpath=$dir/\$dldll~
21915 $RM \$dlpath'
cristy73bd4a52010-10-05 11:24:23 +000021916 ;;
21917
21918osf3* | osf4* | osf5*)
21919 version_type=osf
21920 need_lib_prefix=no
21921 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021922 soname_spec='$libname$release$shared_ext$major'
21923 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021924 shlibpath_var=LD_LIBRARY_PATH
21925 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
Cristy15f22012015-11-14 17:51:30 -050021926 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000021927 ;;
21928
21929rdos*)
21930 dynamic_linker=no
21931 ;;
21932
21933solaris*)
cristy99bd5232011-12-07 14:38:20 +000021934 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021935 need_lib_prefix=no
21936 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21938 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021939 shlibpath_var=LD_LIBRARY_PATH
21940 shlibpath_overrides_runpath=yes
21941 hardcode_into_libs=yes
21942 # ldd complains unless libraries are executable
21943 postinstall_cmds='chmod +x $lib'
21944 ;;
21945
21946sunos4*)
21947 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050021948 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021949 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21950 shlibpath_var=LD_LIBRARY_PATH
21951 shlibpath_overrides_runpath=yes
Cristy15f22012015-11-14 17:51:30 -050021952 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000021953 need_lib_prefix=no
21954 fi
21955 need_version=yes
21956 ;;
21957
21958sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000021959 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050021960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21961 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021962 shlibpath_var=LD_LIBRARY_PATH
21963 case $host_vendor in
21964 sni)
21965 shlibpath_overrides_runpath=no
21966 need_lib_prefix=no
21967 runpath_var=LD_RUN_PATH
21968 ;;
21969 siemens)
21970 need_lib_prefix=no
21971 ;;
21972 motorola)
21973 need_lib_prefix=no
21974 need_version=no
21975 shlibpath_overrides_runpath=no
21976 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21977 ;;
21978 esac
21979 ;;
21980
21981sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050021982 if test -d /usr/nec; then
cristy99bd5232011-12-07 14:38:20 +000021983 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050021984 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
21985 soname_spec='$libname$shared_ext.$major'
cristy73bd4a52010-10-05 11:24:23 +000021986 shlibpath_var=LD_LIBRARY_PATH
21987 fi
21988 ;;
21989
21990sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Cristy15f22012015-11-14 17:51:30 -050021991 version_type=sco
cristy73bd4a52010-10-05 11:24:23 +000021992 need_lib_prefix=no
21993 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021994 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
21995 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021996 shlibpath_var=LD_LIBRARY_PATH
21997 shlibpath_overrides_runpath=yes
21998 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050021999 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000022000 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22001 else
22002 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22003 case $host_os in
22004 sco3.2v5*)
22005 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22006 ;;
22007 esac
22008 fi
22009 sys_lib_dlsearch_path_spec='/usr/lib'
22010 ;;
22011
22012tpf*)
22013 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000022014 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000022015 need_lib_prefix=no
22016 need_version=no
Cristy15f22012015-11-14 17:51:30 -050022017 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022018 shlibpath_var=LD_LIBRARY_PATH
22019 shlibpath_overrides_runpath=no
22020 hardcode_into_libs=yes
22021 ;;
22022
22023uts4*)
cristy99bd5232011-12-07 14:38:20 +000022024 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050022025 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22026 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022027 shlibpath_var=LD_LIBRARY_PATH
22028 ;;
22029
22030*)
22031 dynamic_linker=no
22032 ;;
22033esac
22034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22035$as_echo "$dynamic_linker" >&6; }
Cristy15f22012015-11-14 17:51:30 -050022036test no = "$dynamic_linker" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000022037
22038variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Cristy15f22012015-11-14 17:51:30 -050022039if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000022040 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22041fi
22042
Cristy15f22012015-11-14 17:51:30 -050022043if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22044 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000022045fi
Cristy15f22012015-11-14 17:51:30 -050022046
22047if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22048 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cristy73bd4a52010-10-05 11:24:23 +000022049fi
22050
Cristy15f22012015-11-14 17:51:30 -050022051# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22052configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22053
22054# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22055func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22056
22057# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22058configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22059
22060
22061
cristy73bd4a52010-10-05 11:24:23 +000022062
22063
22064
22065
22066
22067
22068
22069
22070
22071
22072
22073
22074
22075
22076
22077
22078
22079
22080
22081
22082
22083
22084
22085
22086
22087
22088
22089
22090
22091
22092
22093
22094
22095
22096
cristy0c60a692010-11-04 01:09:47 +000022097
22098
cristy73bd4a52010-10-05 11:24:23 +000022099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22100$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22101hardcode_action_CXX=
22102if test -n "$hardcode_libdir_flag_spec_CXX" ||
22103 test -n "$runpath_var_CXX" ||
Cristy15f22012015-11-14 17:51:30 -050022104 test yes = "$hardcode_automatic_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022105
22106 # We can hardcode non-existent directories.
Cristy15f22012015-11-14 17:51:30 -050022107 if test no != "$hardcode_direct_CXX" &&
cristy73bd4a52010-10-05 11:24:23 +000022108 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22109 # have to relink, otherwise we might link with an installed library
22110 # when we should be linking with a yet-to-be-installed one
Cristy15f22012015-11-14 17:51:30 -050022111 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22112 test no != "$hardcode_minus_L_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022113 # Linking always hardcodes the temporary library directory.
22114 hardcode_action_CXX=relink
22115 else
22116 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22117 hardcode_action_CXX=immediate
22118 fi
22119else
22120 # We cannot hardcode anything, or else we can only hardcode existing
22121 # directories.
22122 hardcode_action_CXX=unsupported
22123fi
22124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22125$as_echo "$hardcode_action_CXX" >&6; }
22126
Cristy15f22012015-11-14 17:51:30 -050022127if test relink = "$hardcode_action_CXX" ||
22128 test yes = "$inherit_rpath_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022129 # Fast installation is not supported
22130 enable_fast_install=no
Cristy15f22012015-11-14 17:51:30 -050022131elif test yes = "$shlibpath_overrides_runpath" ||
22132 test no = "$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000022133 # Fast installation is not necessary
22134 enable_fast_install=needless
22135fi
22136
22137
22138
22139
22140
22141
22142
22143 fi # test -n "$compiler"
22144
22145 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000022146 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000022147 LDCXX=$LD
22148 LD=$lt_save_LD
22149 GCC=$lt_save_GCC
22150 with_gnu_ld=$lt_save_with_gnu_ld
22151 lt_cv_path_LDCXX=$lt_cv_path_LD
22152 lt_cv_path_LD=$lt_save_path_LD
22153 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22154 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Cristy15f22012015-11-14 17:51:30 -050022155fi # test yes != "$_lt_caught_CXX_error"
cristy73bd4a52010-10-05 11:24:23 +000022156
22157ac_ext=c
22158ac_cpp='$CPP $CPPFLAGS'
22159ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22160ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22161ac_compiler_gnu=$ac_cv_c_compiler_gnu
22162
22163
22164
22165
22166
22167
22168
22169
22170
22171
22172
22173
22174
cristy99bd5232011-12-07 14:38:20 +000022175
22176
cristy73bd4a52010-10-05 11:24:23 +000022177 ac_config_commands="$ac_config_commands libtool"
22178
22179
22180
22181
22182# Only expand once:
22183
22184
22185
cristy3ed852e2009-09-05 21:47:34 +000022186
22187
cristy3ed852e2009-09-05 21:47:34 +000022188# Check to see if building shared libraries
22189libtool_build_shared_libs='no'
22190if test "$enable_shared" = 'yes'; then
22191 libtool_build_shared_libs='yes'
22192fi
22193
22194# Check to see if building static libraries
22195libtool_build_static_libs='no'
22196if test "$enable_static" = 'yes'; then
22197 libtool_build_static_libs='yes'
22198fi
22199
cristy73bd4a52010-10-05 11:24:23 +000022200 if test "${libtool_build_shared_libs}" = 'yes'; then
22201 WITH_SHARED_LIBS_TRUE=
22202 WITH_SHARED_LIBS_FALSE='#'
22203else
22204 WITH_SHARED_LIBS_TRUE='#'
22205 WITH_SHARED_LIBS_FALSE=
22206fi
22207
cristy3ed852e2009-09-05 21:47:34 +000022208#
22209# Enable support for building loadable modules
22210#
cristyaf4cbf32012-10-16 23:47:41 +000022211build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000022212
22213# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000022214if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022215 withval=$with_modules; with_modules=$withval
22216else
cristy5a1cefd2010-01-06 20:42:35 +000022217 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000022218fi
22219
22220
22221# Only allow building loadable modules if we are building shared libraries
22222if test "$with_modules" != 'no' ; then
22223 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000022224 { $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 +000022225$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000022226 build_modules='no'
22227 else
22228 build_modules='yes'
22229 fi
cristy3ed852e2009-09-05 21:47:34 +000022230fi
cristyc6722092012-10-14 00:19:31 +000022231if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000022232
cristy8b350f62009-11-15 23:12:43 +000022233$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022234
cristyfa161182012-12-19 15:45:28 +000022235 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000022236fi
cristyc6722092012-10-14 00:19:31 +000022237 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000022238 WITH_MODULES_TRUE=
22239 WITH_MODULES_FALSE='#'
22240else
22241 WITH_MODULES_TRUE='#'
22242 WITH_MODULES_FALSE=
22243fi
22244
cristy3ed852e2009-09-05 21:47:34 +000022245
cristy3ed852e2009-09-05 21:47:34 +000022246# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000022247# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000022248# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000022249if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022250 enableval=$enable_delegate_build; enable_delegate_build=$enableval
22251else
22252 enable_delegate_build='no'
22253fi
22254
22255
22256# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000022257if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022258 enableval=$enable_deprecated; enable_deprecated=$enableval
22259else
22260 enable_deprecated='no'
22261fi
22262
22263
22264if test "$enable_deprecated" = 'yes'; then
22265
cristy8b350f62009-11-15 23:12:43 +000022266$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022267
22268else
22269 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
22270fi
22271
22272# Build a version of ImageMagick which operates uninstalled.
22273# Used to build distributions located via MAGICK_HOME / executable path
22274# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000022275if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022276 enableval=$enable_installed; enable_installed=$enableval
22277else
22278 enable_installed='yes'
22279fi
22280
22281
22282if test "$enable_installed" = 'yes'; then
22283
cristy8b350f62009-11-15 23:12:43 +000022284$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022285
22286else
22287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
22288fi
22289
22290# Permit enciphering and deciphering image pixels.
22291# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000022292if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022293 enableval=$enable_cipher; enable_cipher=$enableval
22294else
22295 enable_cipher='yes'
22296fi
22297
22298
22299if test "$enable_cipher" = 'yes'; then
22300
cristy8b350f62009-11-15 23:12:43 +000022301$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022302
cristy0f6fc2d2015-05-30 00:49:11 +000022303 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000022304fi
22305
cristy6e3607c2011-09-13 13:59:17 +000022306# Build a zero-configuration version of ImageMagick.
22307# Check whether --enable-zero-configuration was given.
22308if test "${enable_zero_configuration+set}" = set; then :
22309 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000022310else
cristy6e3607c2011-09-13 13:59:17 +000022311 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000022312fi
22313
22314
cristy6e3607c2011-09-13 13:59:17 +000022315if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022316
cristy6e3607c2011-09-13 13:59:17 +000022317$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022318
cristy0f6fc2d2015-05-30 00:49:11 +000022319 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000022320fi
22321
22322# Build a high dynamic range version of ImageMagick.
22323# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000022324if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022325 enableval=$enable_hdri; enable_hdri=$enableval
22326else
cristy191c0b72012-08-12 16:29:52 +000022327 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000022328fi
22329
22330
22331MAGICK_HDRI=""
22332if test "$enable_hdri" = 'yes'; then
22333 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000022334 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000022335 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000022336else
22337 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000022338fi
22339
cristye52f12f2012-12-31 15:32:36 +000022340cat >>confdefs.h <<_ACEOF
22341#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
22342_ACEOF
22343
22344MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22345CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000022346CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000022347
cristy3ed852e2009-09-05 21:47:34 +000022348# Build a version of ImageMagick with assert statements.
22349# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000022350if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022351 enableval=$enable_assert; enable_assert=$enableval
22352else
22353 enable_assert='yes'
22354fi
22355
22356
22357if test "$enable_assert" = 'no'; then
22358
cristy8b350f62009-11-15 23:12:43 +000022359$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022360
22361fi
22362
cristya448bd22011-10-14 12:38:13 +000022363# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000022364
22365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22366$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22367 # Check whether --enable-maintainer-mode was given.
22368if test "${enable_maintainer_mode+set}" = set; then :
22369 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22370else
22371 USE_MAINTAINER_MODE=no
22372fi
22373
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22375$as_echo "$USE_MAINTAINER_MODE" >&6; }
22376 if test $USE_MAINTAINER_MODE = yes; then
22377 MAINTAINER_MODE_TRUE=
22378 MAINTAINER_MODE_FALSE='#'
22379else
22380 MAINTAINER_MODE_TRUE='#'
22381 MAINTAINER_MODE_FALSE=
22382fi
22383
22384 MAINT=$MAINTAINER_MODE_TRUE
22385
22386
cristy3ed852e2009-09-05 21:47:34 +000022387
cristy944e51f2013-04-16 18:45:02 +000022388# Enable hugepages support
22389# Check whether --enable-hugepages was given.
22390if test "${enable_hugepages+set}" = set; then :
22391 enableval=$enable_hugepages; enable_hugepages=$enableval
22392else
22393 enable_hugepages='no'
22394fi
22395
22396
cristy3ed852e2009-09-05 21:47:34 +000022397# Enable ccmalloc memory debugging support
22398# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000022399if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022400 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22401else
22402 enable_ccmalloc='no'
22403fi
22404
22405
22406# Enable Electric Fence memory debugging support
22407# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000022408if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 enableval=$enable_efence; enable_efence=$enableval
22410else
22411 enable_efence='no'
22412fi
22413
22414
22415# Enable prof-based profiling support
22416# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000022417if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 enableval=$enable_prof; enable_prof=$enableval
22419else
22420 enable_prof='no'
22421fi
22422
22423
22424# Enable gprof-based profiling support
22425# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000022426if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022427 enableval=$enable_gprof; enable_gprof=$enableval
22428else
22429 enable_gprof='no'
22430fi
22431
22432
22433# Enable gcov-based profiling support
22434# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000022435if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022436 enableval=$enable_gcov; enable_gcov=$enableval
22437else
22438 enable_gcov='no'
22439fi
22440
22441
22442enable_profiling='no'
22443if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22444 enable_profiling='yes'
22445 if test "$libtool_build_shared_libs" = 'yes'; then
22446 echo "Warning: Can not profile code using shared libraries"
22447 fi
22448fi
22449
22450# Magick API method prefix
22451
22452# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000022453if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000022454 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000022455else
cristyfc3d0222012-02-07 15:05:57 +000022456 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000022457fi
22458
22459
cristyfc3d0222012-02-07 15:05:57 +000022460if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000022461
22462cat >>confdefs.h <<_ACEOF
22463#define NAMESPACE_PREFIX $with_method_prefix
22464_ACEOF
22465
cristyfc3d0222012-02-07 15:05:57 +000022466 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022467fi
22468
cristy71d8c202012-03-20 17:05:01 +000022469# Enable legacy support (default no)
22470# Check whether --enable-legacy-support was given.
22471if test "${enable_legacy_support+set}" = set; then :
22472 enableval=$enable_legacy_support; with_legacy_support=$enableval
22473else
22474 with_legacy_support='no'
22475fi
22476
22477 if test "$with_legacy_support" != 'no'; then
22478 LEGACY_SUPPORT_TRUE=
22479 LEGACY_SUPPORT_FALSE='#'
22480else
22481 LEGACY_SUPPORT_TRUE='#'
22482 LEGACY_SUPPORT_FALSE=
22483fi
22484
22485
cristy3ed852e2009-09-05 21:47:34 +000022486# Number of bits in a Quantum
22487
22488# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022489if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022490 withval=$with_quantum_depth; with_quantum_depth=$withval
22491else
22492 with_quantum_depth=16
22493fi
22494
22495
22496if test "$with_quantum_depth" != '8'; then
22497 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22498fi
22499
22500case "${with_quantum_depth}" in
22501 8 ) ;;
22502 16 ) ;;
22503 32 ) ;;
22504 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022505 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022506esac
22507QUANTUM_DEPTH="$with_quantum_depth"
22508
22509cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000022510#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000022511_ACEOF
22512
cristya371edf2013-02-06 13:42:17 +000022513MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000022514CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000022515CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000022516
cristy01ff9f32012-12-01 18:15:29 +000022517# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000022518MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000022519if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000022520 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000022521fi
cristy01ff9f32012-12-01 18:15:29 +000022522
22523
cristy3ed852e2009-09-05 21:47:34 +000022524# Set pixel cache threshold
22525
22526# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022527if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022528 withval=$with_cache; with_cache=$withval
22529else
22530 with_cache=''
22531fi
22532
22533
22534if test "$with_cache" != ''; then
22535
22536cat >>confdefs.h <<_ACEOF
22537#define PixelCacheThreshold $with_cache
22538_ACEOF
22539
22540 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22541fi
22542
22543# Disable/Enable support for full delegate paths
22544
22545# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022546if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022547 withval=$with_frozenpaths; with_frozenpaths=$withval
22548else
22549 with_frozenpaths='no'
22550fi
22551
22552
22553# Enable build/install of Magick++
22554
22555# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022556if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022557 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22558else
22559 with_magick_plus_plus='yes'
22560fi
22561
22562
cristy3a75f062012-09-08 23:29:40 +000022563# Encode the this name into the shared library.
22564
22565# Check whether --with-package-release-name was given.
22566if test "${with_package_release_name+set}" = set; then :
22567 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22568fi
22569
22570
22571
cristy3ed852e2009-09-05 21:47:34 +000022572# Disable build/install of PerlMagick.
22573
22574# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022575if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022576 withval=$with_perl; with_perl=$withval
22577else
cristyb5f4e2f2010-04-25 00:49:11 +000022578 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022579fi
22580
22581
22582# Options to pass when configuring PerlMagick
22583
22584# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022585if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022586 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022587fi
22588
22589
cristy3ed852e2009-09-05 21:47:34 +000022590
cristy3b0097d2014-11-04 15:34:47 +000022591# Enable jemalloc, object-caching memory allocation library.
22592
22593# Check whether --with-jemalloc was given.
22594if test "${with_jemalloc+set}" = set; then :
22595 withval=$with_jemalloc; with_jemalloc=$withval
22596else
22597 with_jemalloc='no'
22598fi
22599
22600if test "$with_jemalloc" != 'yes' ; then
22601 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
22602fi
22603
cristy3ed852e2009-09-05 21:47:34 +000022604# Enable umem, object-caching memory allocation library.
22605
22606# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022607if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022608 withval=$with_umem; with_umem=$withval
22609else
22610 with_umem='no'
22611fi
22612
22613if test "$with_umem" != 'yes' ; then
22614 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22615fi
22616
22617#
22618# Specify path to shared libstdc++ if not in normal location
22619#
22620
22621# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022622if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022623 withval=$with_libstdc; with_libstdc=$withval
22624else
22625 with_libstdc=''
22626fi
22627
22628
22629if test "$with_libstdc" != ''; then
22630 if test -d "$with_libstdc"; then
22631 LIBSTDCLDFLAGS="-L$with_libstdc"
22632 fi
22633fi
22634
22635
22636# Does gcc required -traditional?
22637if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022639$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022640if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022641 $as_echo_n "(cached) " >&6
22642else
22643 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022645/* end confdefs.h. */
22646#include <sgtty.h>
22647Autoconf TIOCGETP
22648_ACEOF
22649if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022650 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022651 ac_cv_prog_gcc_traditional=yes
22652else
22653 ac_cv_prog_gcc_traditional=no
22654fi
22655rm -f conftest*
22656
22657
22658 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022660/* end confdefs.h. */
22661#include <termio.h>
22662Autoconf TCGETA
22663_ACEOF
22664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022665 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022666 ac_cv_prog_gcc_traditional=yes
22667fi
22668rm -f conftest*
22669
22670 fi
22671fi
cristy8b350f62009-11-15 23:12:43 +000022672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022673$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22674 if test $ac_cv_prog_gcc_traditional = yes; then
22675 CC="$CC -traditional"
22676 fi
22677fi
22678
22679
22680########
22681#
22682# Set defines required to build DLLs and modules using MinGW
22683#
22684########
22685# These options are set for multi-thread DLL module build
22686# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22687# module: _DLL
22688# executable/Magick++: _DLL _MAGICKMOD_
22689MODULE_EXTRA_CPPFLAGS=''
22690LIBRARY_EXTRA_CPPFLAGS=''
22691if test "${native_win32_build}" = 'yes'; then
22692 if test "${libtool_build_shared_libs}" = 'yes'; then
22693 CPPFLAGS="$CPPFLAGS -D_DLL"
22694 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22695 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22696 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022697 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022698 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22699 else
22700 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22701 fi
22702 else
22703 CPPFLAGS="$CPPFLAGS -D_LIB"
22704 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22705 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22706 fi
22707 if test "$with_threads" = 'yes'; then
22708 CPPFLAGS="$CPPFLAGS -D_MT"
22709 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22710 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22711 fi
22712fi
22713
22714
22715
22716# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022718$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022719if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022720 $as_echo_n "(cached) " >&6
22721else
cristy8b350f62009-11-15 23:12:43 +000022722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022723/* end confdefs.h. */
22724#include <stdlib.h>
22725#include <stdarg.h>
22726#include <string.h>
22727#include <float.h>
22728
22729int
22730main ()
22731{
22732
22733 ;
22734 return 0;
22735}
22736_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022737if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022738 ac_cv_header_stdc=yes
22739else
cristy8b350f62009-11-15 23:12:43 +000022740 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022741fi
cristy3ed852e2009-09-05 21:47:34 +000022742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22743
22744if test $ac_cv_header_stdc = yes; then
22745 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022747/* end confdefs.h. */
22748#include <string.h>
22749
22750_ACEOF
22751if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022752 $EGREP "memchr" >/dev/null 2>&1; then :
22753
cristy3ed852e2009-09-05 21:47:34 +000022754else
22755 ac_cv_header_stdc=no
22756fi
22757rm -f conftest*
22758
22759fi
22760
22761if test $ac_cv_header_stdc = yes; then
22762 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022764/* end confdefs.h. */
22765#include <stdlib.h>
22766
22767_ACEOF
22768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022769 $EGREP "free" >/dev/null 2>&1; then :
22770
cristy3ed852e2009-09-05 21:47:34 +000022771else
22772 ac_cv_header_stdc=no
22773fi
22774rm -f conftest*
22775
22776fi
22777
22778if test $ac_cv_header_stdc = yes; then
22779 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022780 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022781 :
22782else
cristy8b350f62009-11-15 23:12:43 +000022783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022784/* end confdefs.h. */
22785#include <ctype.h>
22786#include <stdlib.h>
22787#if ((' ' & 0x0FF) == 0x020)
22788# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22789# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22790#else
22791# define ISLOWER(c) \
22792 (('a' <= (c) && (c) <= 'i') \
22793 || ('j' <= (c) && (c) <= 'r') \
22794 || ('s' <= (c) && (c) <= 'z'))
22795# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22796#endif
22797
22798#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22799int
22800main ()
22801{
22802 int i;
22803 for (i = 0; i < 256; i++)
22804 if (XOR (islower (i), ISLOWER (i))
22805 || toupper (i) != TOUPPER (i))
22806 return 2;
22807 return 0;
22808}
22809_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022810if ac_fn_c_try_run "$LINENO"; then :
22811
cristy3ed852e2009-09-05 21:47:34 +000022812else
cristy8b350f62009-11-15 23:12:43 +000022813 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022814fi
cristy8b350f62009-11-15 23:12:43 +000022815rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22816 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022817fi
22818
cristy3ed852e2009-09-05 21:47:34 +000022819fi
22820fi
cristy8b350f62009-11-15 23:12:43 +000022821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022822$as_echo "$ac_cv_header_stdc" >&6; }
22823if test $ac_cv_header_stdc = yes; then
22824
cristy8b350f62009-11-15 23:12:43 +000022825$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022826
22827fi
22828
22829if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022830 { $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 +000022831 header files. Compilation cannot proceed. Please install the ANSI C
22832 headers and rerun this script." >&5
22833$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22834 header files. Compilation cannot proceed. Please install the ANSI C
22835 headers and rerun this script." >&2;};
22836fi
cristya0b81c32010-01-22 02:54:33 +000022837
22838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22839$as_echo_n "checking whether to enable assertions... " >&6; }
22840 # Check whether --enable-assert was given.
22841if test "${enable_assert+set}" = set; then :
22842 enableval=$enable_assert; ac_enable_assert=$enableval
22843 if test "x$enableval" = xno; then :
22844
22845$as_echo "#define NDEBUG 1" >>confdefs.h
22846
22847elif test "x$enableval" != xyes; then :
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22849$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22850 ac_enable_assert=yes
22851fi
22852else
22853 ac_enable_assert=yes
22854fi
22855
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22857$as_echo "$ac_enable_assert" >&6; }
22858
cristy3ed852e2009-09-05 21:47:34 +000022859ac_header_dirent=no
22860for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22861 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022863$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022864if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022865 $as_echo_n "(cached) " >&6
22866else
cristy8b350f62009-11-15 23:12:43 +000022867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022868/* end confdefs.h. */
22869#include <sys/types.h>
22870#include <$ac_hdr>
22871
22872int
22873main ()
22874{
22875if ((DIR *) 0)
22876return 0;
22877 ;
22878 return 0;
22879}
22880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022881if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022882 eval "$as_ac_Header=yes"
22883else
cristy8b350f62009-11-15 23:12:43 +000022884 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022885fi
cristy3ed852e2009-09-05 21:47:34 +000022886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22887fi
cristy8b350f62009-11-15 23:12:43 +000022888eval ac_res=\$$as_ac_Header
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022890$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022891if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022892 cat >>confdefs.h <<_ACEOF
22893#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22894_ACEOF
22895
22896ac_header_dirent=$ac_hdr; break
22897fi
22898
22899done
22900# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22901if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022903$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022904if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022905 $as_echo_n "(cached) " >&6
22906else
22907 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022909/* end confdefs.h. */
22910
22911/* Override any GCC internal prototype to avoid an error.
22912 Use char because int might match the return type of a GCC
22913 builtin and then its argument prototype would still apply. */
22914#ifdef __cplusplus
22915extern "C"
22916#endif
22917char opendir ();
22918int
22919main ()
22920{
22921return opendir ();
22922 ;
22923 return 0;
22924}
22925_ACEOF
22926for ac_lib in '' dir; do
22927 if test -z "$ac_lib"; then
22928 ac_res="none required"
22929 else
22930 ac_res=-l$ac_lib
22931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22932 fi
cristy8b350f62009-11-15 23:12:43 +000022933 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022934 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022935fi
cristy8b350f62009-11-15 23:12:43 +000022936rm -f core conftest.err conftest.$ac_objext \
22937 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022938 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022939 break
22940fi
22941done
cristyda16f162011-02-19 23:52:17 +000022942if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022943
cristy3ed852e2009-09-05 21:47:34 +000022944else
22945 ac_cv_search_opendir=no
22946fi
22947rm conftest.$ac_ext
22948LIBS=$ac_func_search_save_LIBS
22949fi
cristy8b350f62009-11-15 23:12:43 +000022950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022951$as_echo "$ac_cv_search_opendir" >&6; }
22952ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022953if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22955
22956fi
22957
22958else
cristy8b350f62009-11-15 23:12:43 +000022959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022960$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022961if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022962 $as_echo_n "(cached) " >&6
22963else
22964 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022965cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022966/* end confdefs.h. */
22967
22968/* Override any GCC internal prototype to avoid an error.
22969 Use char because int might match the return type of a GCC
22970 builtin and then its argument prototype would still apply. */
22971#ifdef __cplusplus
22972extern "C"
22973#endif
22974char opendir ();
22975int
22976main ()
22977{
22978return opendir ();
22979 ;
22980 return 0;
22981}
22982_ACEOF
22983for ac_lib in '' x; do
22984 if test -z "$ac_lib"; then
22985 ac_res="none required"
22986 else
22987 ac_res=-l$ac_lib
22988 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22989 fi
cristy8b350f62009-11-15 23:12:43 +000022990 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022991 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022992fi
cristy8b350f62009-11-15 23:12:43 +000022993rm -f core conftest.err conftest.$ac_objext \
22994 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022995 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022996 break
22997fi
22998done
cristyda16f162011-02-19 23:52:17 +000022999if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000023000
cristy3ed852e2009-09-05 21:47:34 +000023001else
23002 ac_cv_search_opendir=no
23003fi
23004rm conftest.$ac_ext
23005LIBS=$ac_func_search_save_LIBS
23006fi
cristy8b350f62009-11-15 23:12:43 +000023007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000023008$as_echo "$ac_cv_search_opendir" >&6; }
23009ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000023010if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000023011 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23012
23013fi
23014
23015fi
23016
23017
23018# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000023019for ac_header in arm/limits.h arpa/inet.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h netinet/in.h OS.h process.h sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/sendfile.h sys/socket.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000023020do :
23021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23022ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023024 cat >>confdefs.h <<_ACEOF
23025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23026_ACEOF
23027
23028fi
23029
23030done
23031
23032
23033########
23034#
23035# Checks for typedefs, structures, and compiler characteristics.
23036#
23037########
23038
cristy8b350f62009-11-15 23:12:43 +000023039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000023040$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023041if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023042 $as_echo_n "(cached) " >&6
23043else
cristy8b350f62009-11-15 23:12:43 +000023044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023045/* end confdefs.h. */
23046
cristy14fefe52012-05-21 00:59:18 +000023047 #include <stdbool.h>
23048 #ifndef bool
23049 "error: bool is not defined"
23050 #endif
23051 #ifndef false
23052 "error: false is not defined"
23053 #endif
23054 #if false
23055 "error: false is not 0"
23056 #endif
23057 #ifndef true
23058 "error: true is not defined"
23059 #endif
23060 #if true != 1
23061 "error: true is not 1"
23062 #endif
23063 #ifndef __bool_true_false_are_defined
23064 "error: __bool_true_false_are_defined is not defined"
23065 #endif
cristy3ed852e2009-09-05 21:47:34 +000023066
cristy14fefe52012-05-21 00:59:18 +000023067 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000023068
cristy14fefe52012-05-21 00:59:18 +000023069 char a[true == 1 ? 1 : -1];
23070 char b[false == 0 ? 1 : -1];
23071 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23072 char d[(bool) 0.5 == true ? 1 : -1];
23073 /* See body of main program for 'e'. */
23074 char f[(_Bool) 0.0 == false ? 1 : -1];
23075 char g[true];
23076 char h[sizeof (_Bool)];
23077 char i[sizeof s.t];
23078 enum { j = false, k = true, l = false * true, m = true * 256 };
23079 /* The following fails for
23080 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23081 _Bool n[m];
23082 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23083 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23084 /* Catch a bug in an HP-UX C compiler. See
23085 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23086 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
23087 */
23088 _Bool q = true;
23089 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000023090
23091int
23092main ()
23093{
23094
cristy14fefe52012-05-21 00:59:18 +000023095 bool e = &s;
23096 *pq |= q;
23097 *pq |= ! q;
23098 /* Refer to every declared value, to avoid compiler optimizations. */
23099 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
23100 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000023101
23102 ;
23103 return 0;
23104}
23105_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023106if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 ac_cv_header_stdbool_h=yes
23108else
cristy8b350f62009-11-15 23:12:43 +000023109 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000023110fi
cristy3ed852e2009-09-05 21:47:34 +000023111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23112fi
cristy8b350f62009-11-15 23:12:43 +000023113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000023114$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000023115 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023116if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023117
23118cat >>confdefs.h <<_ACEOF
23119#define HAVE__BOOL 1
23120_ACEOF
23121
23122
23123fi
23124
cristy14fefe52012-05-21 00:59:18 +000023125
cristy3ed852e2009-09-05 21:47:34 +000023126if test $ac_cv_header_stdbool_h = yes; then
23127
cristy8b350f62009-11-15 23:12:43 +000023128$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023129
23130fi
23131
cristy8b350f62009-11-15 23:12:43 +000023132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000023133$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023134if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023135 $as_echo_n "(cached) " >&6
23136else
cristy8b350f62009-11-15 23:12:43 +000023137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023138/* end confdefs.h. */
23139
23140int
23141main ()
23142{
23143
23144volatile int x;
23145int * volatile y = (int *) 0;
23146return !x && !y;
23147 ;
23148 return 0;
23149}
23150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023151if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023152 ac_cv_c_volatile=yes
23153else
cristy8b350f62009-11-15 23:12:43 +000023154 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000023155fi
cristy3ed852e2009-09-05 21:47:34 +000023156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157fi
cristy8b350f62009-11-15 23:12:43 +000023158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000023159$as_echo "$ac_cv_c_volatile" >&6; }
23160if test $ac_cv_c_volatile = no; then
23161
cristy8b350f62009-11-15 23:12:43 +000023162$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023163
23164fi
23165
cristy8b350f62009-11-15 23:12:43 +000023166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000023167$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023168if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023169 $as_echo_n "(cached) " >&6
23170else
cristy8b350f62009-11-15 23:12:43 +000023171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023172/* end confdefs.h. */
23173#define x(y) #y
23174
23175char *s = x(teststring);
23176_ACEOF
23177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000023178 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000023179 ac_cv_c_stringize=no
23180else
23181 ac_cv_c_stringize=yes
23182fi
23183rm -f conftest*
23184
23185fi
cristy8b350f62009-11-15 23:12:43 +000023186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000023187$as_echo "$ac_cv_c_stringize" >&6; }
23188if test $ac_cv_c_stringize = yes; then
23189
cristy8b350f62009-11-15 23:12:43 +000023190$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023191
23192fi
23193
cristy8b350f62009-11-15 23:12:43 +000023194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000023195$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023196if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023197 $as_echo_n "(cached) " >&6
23198else
cristy8b350f62009-11-15 23:12:43 +000023199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023200/* end confdefs.h. */
23201#include <sys/types.h>
23202#include <sys/stat.h>
23203
23204#if defined S_ISBLK && defined S_IFDIR
23205extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23206#endif
23207
23208#if defined S_ISBLK && defined S_IFCHR
23209extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23210#endif
23211
23212#if defined S_ISLNK && defined S_IFREG
23213extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23214#endif
23215
23216#if defined S_ISSOCK && defined S_IFREG
23217extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23218#endif
23219
23220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023221if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023222 ac_cv_header_stat_broken=no
23223else
cristy8b350f62009-11-15 23:12:43 +000023224 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000023225fi
cristy3ed852e2009-09-05 21:47:34 +000023226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227fi
cristy8b350f62009-11-15 23:12:43 +000023228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000023229$as_echo "$ac_cv_header_stat_broken" >&6; }
23230if test $ac_cv_header_stat_broken = yes; then
23231
cristy8b350f62009-11-15 23:12:43 +000023232$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023233
23234fi
23235
cristy8b350f62009-11-15 23:12:43 +000023236{ $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 +000023237$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023238if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023239 $as_echo_n "(cached) " >&6
23240else
cristy8b350f62009-11-15 23:12:43 +000023241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023242/* end confdefs.h. */
23243#include <sys/types.h>
23244#include <sys/time.h>
23245#include <time.h>
23246
23247int
23248main ()
23249{
23250if ((struct tm *) 0)
23251return 0;
23252 ;
23253 return 0;
23254}
23255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023257 ac_cv_header_time=yes
23258else
cristy8b350f62009-11-15 23:12:43 +000023259 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000023260fi
cristy3ed852e2009-09-05 21:47:34 +000023261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262fi
cristy8b350f62009-11-15 23:12:43 +000023263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000023264$as_echo "$ac_cv_header_time" >&6; }
23265if test $ac_cv_header_time = yes; then
23266
cristy8b350f62009-11-15 23:12:43 +000023267$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023268
23269fi
23270
cristy8b350f62009-11-15 23:12:43 +000023271{ $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 +000023272$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023273if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023274 $as_echo_n "(cached) " >&6
23275else
cristy8b350f62009-11-15 23:12:43 +000023276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023277/* end confdefs.h. */
23278#include <sys/types.h>
23279#include <time.h>
23280
23281int
23282main ()
23283{
23284struct tm tm;
23285 int *p = &tm.tm_sec;
23286 return !p;
23287 ;
23288 return 0;
23289}
23290_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023291if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023292 ac_cv_struct_tm=time.h
23293else
cristy8b350f62009-11-15 23:12:43 +000023294 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000023295fi
cristy3ed852e2009-09-05 21:47:34 +000023296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297fi
cristy8b350f62009-11-15 23:12:43 +000023298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023299$as_echo "$ac_cv_struct_tm" >&6; }
23300if test $ac_cv_struct_tm = sys/time.h; then
23301
cristy8b350f62009-11-15 23:12:43 +000023302$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023303
23304fi
23305
cristy92703d82010-04-26 00:18:18 +000023306ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23307#include <$ac_cv_struct_tm>
23308
23309"
cristyda16f162011-02-19 23:52:17 +000023310if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000023311
23312cat >>confdefs.h <<_ACEOF
23313#define HAVE_STRUCT_TM_TM_ZONE 1
23314_ACEOF
23315
23316
23317fi
23318
23319if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23320
23321$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
23322
23323else
23324 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23325"
cristyda16f162011-02-19 23:52:17 +000023326if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000023327 ac_have_decl=1
23328else
23329 ac_have_decl=0
23330fi
23331
23332cat >>confdefs.h <<_ACEOF
23333#define HAVE_DECL_TZNAME $ac_have_decl
23334_ACEOF
23335
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23337$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023338if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000023339 $as_echo_n "(cached) " >&6
23340else
23341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23342/* end confdefs.h. */
23343#include <time.h>
23344#if !HAVE_DECL_TZNAME
23345extern char *tzname[];
23346#endif
23347
23348int
23349main ()
23350{
23351return tzname[0][0];
23352 ;
23353 return 0;
23354}
23355_ACEOF
23356if ac_fn_c_try_link "$LINENO"; then :
23357 ac_cv_var_tzname=yes
23358else
23359 ac_cv_var_tzname=no
23360fi
23361rm -f core conftest.err conftest.$ac_objext \
23362 conftest$ac_exeext conftest.$ac_ext
23363fi
23364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23365$as_echo "$ac_cv_var_tzname" >&6; }
23366 if test $ac_cv_var_tzname = yes; then
23367
23368$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23369
23370 fi
23371fi
23372
cristy8b350f62009-11-15 23:12:43 +000023373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000023374$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023375if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023376 $as_echo_n "(cached) " >&6
23377else
23378 echo '#! /bin/cat
23379exit 69
23380' >conftest
23381chmod u+x conftest
23382(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23383if test $? -ne 69; then
23384 ac_cv_sys_interpreter=yes
23385else
23386 ac_cv_sys_interpreter=no
23387fi
23388rm -f conftest
23389fi
cristy8b350f62009-11-15 23:12:43 +000023390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000023391$as_echo "$ac_cv_sys_interpreter" >&6; }
23392interpval=$ac_cv_sys_interpreter
23393
23394
cristye80f9cb2013-01-09 01:09:31 +000023395#
23396# Checks for language qualifiers and semantics.
23397#
23398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23399$as_echo_n "checking whether char is unsigned... " >&6; }
23400if ${ac_cv_c_char_unsigned+:} false; then :
23401 $as_echo_n "(cached) " >&6
23402else
23403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23404/* end confdefs.h. */
23405$ac_includes_default
23406int
23407main ()
23408{
23409static int test_array [1 - 2 * !(((char) -1) < 0)];
23410test_array [0] = 0;
23411return test_array [0];
23412
23413 ;
23414 return 0;
23415}
23416_ACEOF
23417if ac_fn_c_try_compile "$LINENO"; then :
23418 ac_cv_c_char_unsigned=no
23419else
23420 ac_cv_c_char_unsigned=yes
23421fi
23422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23423fi
23424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23425$as_echo "$ac_cv_c_char_unsigned" >&6; }
23426if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23427 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23428
23429fi
23430
23431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23432$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23433if ${ac_cv_c_const+:} false; then :
23434 $as_echo_n "(cached) " >&6
23435else
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437/* end confdefs.h. */
23438
23439int
23440main ()
23441{
23442
23443#ifndef __cplusplus
23444 /* Ultrix mips cc rejects this sort of thing. */
23445 typedef int charset[2];
23446 const charset cs = { 0, 0 };
23447 /* SunOS 4.1.1 cc rejects this. */
23448 char const *const *pcpcc;
23449 char **ppc;
23450 /* NEC SVR4.0.2 mips cc rejects this. */
23451 struct point {int x, y;};
23452 static struct point const zero = {0,0};
23453 /* AIX XL C 1.02.0.0 rejects this.
23454 It does not let you subtract one const X* pointer from another in
23455 an arm of an if-expression whose if-part is not a constant
23456 expression */
23457 const char *g = "string";
23458 pcpcc = &g + (g ? g-g : 0);
23459 /* HPUX 7.0 cc rejects these. */
23460 ++pcpcc;
23461 ppc = (char**) pcpcc;
23462 pcpcc = (char const *const *) ppc;
23463 { /* SCO 3.2v4 cc rejects this sort of thing. */
23464 char tx;
23465 char *t = &tx;
23466 char const *s = 0 ? (char *) 0 : (char const *) 0;
23467
23468 *t++ = 0;
23469 if (s) return 0;
23470 }
23471 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23472 int x[] = {25, 17};
23473 const int *foo = &x[0];
23474 ++foo;
23475 }
23476 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23477 typedef const int *iptr;
23478 iptr p = 0;
23479 ++p;
23480 }
23481 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23482 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23483 struct s { int j; const int *ap[3]; } bx;
23484 struct s *b = &bx; b->j = 5;
23485 }
23486 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23487 const int foo = 10;
23488 if (!foo) return 0;
23489 }
23490 return !cs[0] && !zero.x;
23491#endif
23492
23493 ;
23494 return 0;
23495}
23496_ACEOF
23497if ac_fn_c_try_compile "$LINENO"; then :
23498 ac_cv_c_const=yes
23499else
23500 ac_cv_c_const=no
23501fi
23502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503fi
23504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23505$as_echo "$ac_cv_c_const" >&6; }
23506if test $ac_cv_c_const = no; then
23507
23508$as_echo "#define const /**/" >>confdefs.h
23509
23510fi
23511
cristy8b350f62009-11-15 23:12:43 +000023512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023513$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023514if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023515 $as_echo_n "(cached) " >&6
23516else
23517 ac_cv_c_inline=no
23518for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000023519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023520/* end confdefs.h. */
23521#ifndef __cplusplus
23522typedef int foo_t;
23523static $ac_kw foo_t static_foo () {return 0; }
23524$ac_kw foo_t foo () {return 0; }
23525#endif
23526
23527_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023528if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023529 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023530fi
cristy3ed852e2009-09-05 21:47:34 +000023531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23532 test "$ac_cv_c_inline" != no && break
23533done
23534
23535fi
cristy8b350f62009-11-15 23:12:43 +000023536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023537$as_echo "$ac_cv_c_inline" >&6; }
23538
cristy3ed852e2009-09-05 21:47:34 +000023539case $ac_cv_c_inline in
23540 inline | yes) ;;
23541 *)
23542 case $ac_cv_c_inline in
23543 no) ac_val=;;
23544 *) ac_val=$ac_cv_c_inline;;
23545 esac
23546 cat >>confdefs.h <<_ACEOF
23547#ifndef __cplusplus
23548#define inline $ac_val
23549#endif
23550_ACEOF
23551 ;;
23552esac
23553
cristy8b350f62009-11-15 23:12:43 +000023554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000023555$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023556if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023557 $as_echo_n "(cached) " >&6
23558else
23559 ac_cv_c_restrict=no
23560 # The order here caters to the fact that C++ does not require restrict.
23561 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000023562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023563/* end confdefs.h. */
23564typedef int * int_ptr;
23565 int foo (int_ptr $ac_kw ip) {
23566 return ip[0];
23567 }
23568int
23569main ()
23570{
23571int s[1];
23572 int * $ac_kw t = s;
23573 t[0] = 0;
23574 return foo(t)
23575 ;
23576 return 0;
23577}
23578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023579if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023580 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023581fi
cristy3ed852e2009-09-05 21:47:34 +000023582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 test "$ac_cv_c_restrict" != no && break
23584 done
23585
23586fi
cristy8b350f62009-11-15 23:12:43 +000023587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000023588$as_echo "$ac_cv_c_restrict" >&6; }
23589
cristy3ed852e2009-09-05 21:47:34 +000023590 case $ac_cv_c_restrict in
23591 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000023592 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023593 ;;
23594 *) cat >>confdefs.h <<_ACEOF
23595#define restrict $ac_cv_c_restrict
23596_ACEOF
23597 ;;
23598 esac
23599
cristye80f9cb2013-01-09 01:09:31 +000023600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23601$as_echo_n "checking for working volatile... " >&6; }
23602if ${ac_cv_c_volatile+:} false; then :
23603 $as_echo_n "(cached) " >&6
23604else
23605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23606/* end confdefs.h. */
23607
23608int
23609main ()
23610{
23611
23612volatile int x;
23613int * volatile y = (int *) 0;
23614return !x && !y;
23615 ;
23616 return 0;
23617}
23618_ACEOF
23619if ac_fn_c_try_compile "$LINENO"; then :
23620 ac_cv_c_volatile=yes
23621else
23622 ac_cv_c_volatile=no
23623fi
23624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23625fi
23626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23627$as_echo "$ac_cv_c_volatile" >&6; }
23628if test $ac_cv_c_volatile = no; then
23629
23630$as_echo "#define volatile /**/" >>confdefs.h
23631
23632fi
23633
cristy3ed852e2009-09-05 21:47:34 +000023634
23635# If words are stored with the most significant byte first (like
23636# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023638$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023639if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023640 $as_echo_n "(cached) " >&6
23641else
23642 ac_cv_c_bigendian=unknown
23643 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023645/* end confdefs.h. */
23646#ifndef __APPLE_CC__
23647 not a universal capable compiler
23648 #endif
23649 typedef int dummy;
23650
23651_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023652if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023653
23654 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023655 # there are at least two -arch flags with different values.
23656 ac_arch=
23657 ac_prev=
23658 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23659 if test -n "$ac_prev"; then
23660 case $ac_word in
23661 i?86 | x86_64 | ppc | ppc64)
23662 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23663 ac_arch=$ac_word
23664 else
23665 ac_cv_c_bigendian=universal
23666 break
23667 fi
23668 ;;
23669 esac
23670 ac_prev=
23671 elif test "x$ac_word" = "x-arch"; then
23672 ac_prev=arch
23673 fi
23674 done
cristy3ed852e2009-09-05 21:47:34 +000023675fi
cristy3ed852e2009-09-05 21:47:34 +000023676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 if test $ac_cv_c_bigendian = unknown; then
23678 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023680/* end confdefs.h. */
23681#include <sys/types.h>
23682 #include <sys/param.h>
23683
23684int
23685main ()
23686{
23687#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23688 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23689 && LITTLE_ENDIAN)
23690 bogus endian macros
23691 #endif
23692
23693 ;
23694 return 0;
23695}
23696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023697if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023698 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023700/* end confdefs.h. */
23701#include <sys/types.h>
23702 #include <sys/param.h>
23703
23704int
23705main ()
23706{
23707#if BYTE_ORDER != BIG_ENDIAN
23708 not big endian
23709 #endif
23710
23711 ;
23712 return 0;
23713}
23714_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023715if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023716 ac_cv_c_bigendian=yes
23717else
cristy8b350f62009-11-15 23:12:43 +000023718 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023719fi
cristy3ed852e2009-09-05 21:47:34 +000023720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023721fi
cristy3ed852e2009-09-05 21:47:34 +000023722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23723 fi
23724 if test $ac_cv_c_bigendian = unknown; then
23725 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023727/* end confdefs.h. */
23728#include <limits.h>
23729
23730int
23731main ()
23732{
23733#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23734 bogus endian macros
23735 #endif
23736
23737 ;
23738 return 0;
23739}
23740_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023741if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023742 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023744/* end confdefs.h. */
23745#include <limits.h>
23746
23747int
23748main ()
23749{
23750#ifndef _BIG_ENDIAN
23751 not big endian
23752 #endif
23753
23754 ;
23755 return 0;
23756}
23757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023758if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023759 ac_cv_c_bigendian=yes
23760else
cristy8b350f62009-11-15 23:12:43 +000023761 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023762fi
cristy3ed852e2009-09-05 21:47:34 +000023763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023764fi
cristy3ed852e2009-09-05 21:47:34 +000023765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 fi
23767 if test $ac_cv_c_bigendian = unknown; then
23768 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023769 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023770 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023772/* end confdefs.h. */
23773short int ascii_mm[] =
23774 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23775 short int ascii_ii[] =
23776 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23777 int use_ascii (int i) {
23778 return ascii_mm[i] + ascii_ii[i];
23779 }
23780 short int ebcdic_ii[] =
23781 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23782 short int ebcdic_mm[] =
23783 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23784 int use_ebcdic (int i) {
23785 return ebcdic_mm[i] + ebcdic_ii[i];
23786 }
23787 extern int foo;
23788
23789int
23790main ()
23791{
23792return use_ascii (foo) == use_ebcdic (foo);
23793 ;
23794 return 0;
23795}
23796_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023797if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023798 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23799 ac_cv_c_bigendian=yes
23800 fi
23801 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23802 if test "$ac_cv_c_bigendian" = unknown; then
23803 ac_cv_c_bigendian=no
23804 else
23805 # finding both strings is unlikely to happen, but who knows?
23806 ac_cv_c_bigendian=unknown
23807 fi
23808 fi
cristy3ed852e2009-09-05 21:47:34 +000023809fi
cristy3ed852e2009-09-05 21:47:34 +000023810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23811else
cristy8b350f62009-11-15 23:12:43 +000023812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023813/* end confdefs.h. */
23814$ac_includes_default
23815int
23816main ()
23817{
23818
23819 /* Are we little or big endian? From Harbison&Steele. */
23820 union
23821 {
23822 long int l;
23823 char c[sizeof (long int)];
23824 } u;
23825 u.l = 1;
23826 return u.c[sizeof (long int) - 1] == 1;
23827
23828 ;
23829 return 0;
23830}
23831_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023832if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023833 ac_cv_c_bigendian=no
23834else
cristy8b350f62009-11-15 23:12:43 +000023835 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023836fi
cristy8b350f62009-11-15 23:12:43 +000023837rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23838 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023839fi
23840
cristy3ed852e2009-09-05 21:47:34 +000023841 fi
23842fi
cristy8b350f62009-11-15 23:12:43 +000023843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023844$as_echo "$ac_cv_c_bigendian" >&6; }
23845 case $ac_cv_c_bigendian in #(
23846 yes)
cristy8b350f62009-11-15 23:12:43 +000023847 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023848;; #(
23849 no)
23850 ;; #(
23851 universal)
23852
cristy8b350f62009-11-15 23:12:43 +000023853$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023854
23855 ;; #(
23856 *)
cristy98dddb52010-11-04 00:30:15 +000023857 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023858 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023859 esac
23860
23861
cristy501c8042011-05-26 17:46:28 +000023862# Define to a suitable type, if standard headers do not define it.
23863ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23864case $ac_cv_c_int8_t in #(
23865 no|yes) ;; #(
23866 *)
cristy3ed852e2009-09-05 21:47:34 +000023867
23868cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023869#define int8_t $ac_cv_c_int8_t
23870_ACEOF
23871;;
23872esac
23873
23874ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23875case $ac_cv_c_int16_t in #(
23876 no|yes) ;; #(
23877 *)
23878
23879cat >>confdefs.h <<_ACEOF
23880#define int16_t $ac_cv_c_int16_t
23881_ACEOF
23882;;
23883esac
23884
23885ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23886case $ac_cv_c_int32_t in #(
23887 no|yes) ;; #(
23888 *)
23889
23890cat >>confdefs.h <<_ACEOF
23891#define int32_t $ac_cv_c_int32_t
23892_ACEOF
23893;;
23894esac
23895
23896ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23897case $ac_cv_c_int64_t in #(
23898 no|yes) ;; #(
23899 *)
23900
23901cat >>confdefs.h <<_ACEOF
23902#define int64_t $ac_cv_c_int64_t
23903_ACEOF
23904;;
23905esac
23906
23907
cristy045228a2013-06-23 11:00:16 +000023908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23909$as_echo_n "checking for unsigned long long int... " >&6; }
23910if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000023911 $as_echo_n "(cached) " >&6
23912else
cristy045228a2013-06-23 11:00:16 +000023913 ac_cv_type_unsigned_long_long_int=yes
23914 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
23915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000023916/* end confdefs.h. */
23917
23918 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000023919 implementations with broken preprocessors. Perhaps this can
23920 be revisited in 2012. In the meantime, code should not expect
23921 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000023922 /* Test literals. */
23923 long long int ll = 9223372036854775807ll;
23924 long long int nll = -9223372036854775807LL;
23925 unsigned long long int ull = 18446744073709551615ULL;
23926 /* Test constant expressions. */
23927 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000023928 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023929 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000023930 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000023931 int i = 63;
23932int
23933main ()
23934{
23935/* Test availability of runtime routines for shift and division. */
23936 long long int llmax = 9223372036854775807ll;
23937 unsigned long long int ullmax = 18446744073709551615ull;
23938 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000023939 | (llmax / ll) | (llmax % ll)
23940 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23941 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000023942 ;
23943 return 0;
23944}
23945
23946_ACEOF
23947if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000023948
23949else
23950 ac_cv_type_unsigned_long_long_int=no
23951fi
23952rm -f core conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
23954 fi
23955fi
23956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23957$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23958 if test $ac_cv_type_unsigned_long_long_int = yes; then
23959
23960$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23961
23962 fi
23963
23964
23965
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23967$as_echo_n "checking for long long int... " >&6; }
23968if ${ac_cv_type_long_long_int+:} false; then :
23969 $as_echo_n "(cached) " >&6
23970else
cristy501c8042011-05-26 17:46:28 +000023971 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000023972 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000023973 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
23974 if test $ac_cv_type_long_long_int = yes; then
23975 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000023976 :
cristy501c8042011-05-26 17:46:28 +000023977else
23978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23979/* end confdefs.h. */
23980#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000023981 #ifndef LLONG_MAX
23982 # define HALF \
23983 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23984 # define LLONG_MAX (HALF - 1 + HALF)
23985 #endif
cristy501c8042011-05-26 17:46:28 +000023986int
23987main ()
23988{
23989long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000023990 int i;
23991 for (i = 0; ; i++)
23992 {
23993 long long int m = n << i;
23994 if (m >> i != n)
23995 return 1;
23996 if (LLONG_MAX / 2 < m)
23997 break;
23998 }
23999 return 0;
cristy501c8042011-05-26 17:46:28 +000024000 ;
24001 return 0;
24002}
24003_ACEOF
24004if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024005
cristy501c8042011-05-26 17:46:28 +000024006else
24007 ac_cv_type_long_long_int=no
24008fi
24009rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24010 conftest.$ac_objext conftest.beam conftest.$ac_ext
24011fi
24012
cristy5ed9c6e2013-07-14 21:20:31 +000024013 fi
cristy045228a2013-06-23 11:00:16 +000024014 fi
cristy501c8042011-05-26 17:46:28 +000024015fi
24016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24017$as_echo "$ac_cv_type_long_long_int" >&6; }
24018 if test $ac_cv_type_long_long_int = yes; then
24019
24020$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24021
24022 fi
24023
24024
24025
24026 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24027if test "x$ac_cv_type_intmax_t" = xyes; then :
24028
24029$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24030
24031else
24032 test $ac_cv_type_long_long_int = yes \
24033 && ac_type='long long int' \
24034 || ac_type='long int'
24035
24036cat >>confdefs.h <<_ACEOF
24037#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000024038_ACEOF
24039
24040fi
24041
24042
cristy501c8042011-05-26 17:46:28 +000024043
24044 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24045if test "x$ac_cv_type_intptr_t" = xyes; then :
24046
24047$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024048
cristy3ed852e2009-09-05 21:47:34 +000024049else
cristy501c8042011-05-26 17:46:28 +000024050 for ac_type in 'int' 'long int' 'long long int'; do
24051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24052/* end confdefs.h. */
24053$ac_includes_default
24054int
24055main ()
24056{
24057static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000024058test_array [0] = 0;
24059return test_array [0];
cristy501c8042011-05-26 17:46:28 +000024060
24061 ;
24062 return 0;
24063}
24064_ACEOF
24065if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024066
24067cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000024068#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000024069_ACEOF
24070
cristy501c8042011-05-26 17:46:28 +000024071 ac_type=
24072fi
24073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 test -z "$ac_type" && break
24075 done
cristy3ed852e2009-09-05 21:47:34 +000024076fi
24077
24078
cristy3ed852e2009-09-05 21:47:34 +000024079
cristy501c8042011-05-26 17:46:28 +000024080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24081$as_echo_n "checking for long double... " >&6; }
24082if ${ac_cv_type_long_double+:} false; then :
24083 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000024084else
cristy501c8042011-05-26 17:46:28 +000024085 if test "$GCC" = yes; then
24086 ac_cv_type_long_double=yes
24087 else
24088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24089/* end confdefs.h. */
24090/* The Stardent Vistra knows sizeof (long double), but does
24091 not support it. */
24092 long double foo = 0.0L;
24093int
24094main ()
24095{
24096static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
24097 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000024098test_array [0] = 0;
24099return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000024100
cristy501c8042011-05-26 17:46:28 +000024101 ;
24102 return 0;
24103}
cristy3ed852e2009-09-05 21:47:34 +000024104_ACEOF
cristy501c8042011-05-26 17:46:28 +000024105if ac_fn_c_try_compile "$LINENO"; then :
24106 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000024107else
cristy501c8042011-05-26 17:46:28 +000024108 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000024109fi
cristy501c8042011-05-26 17:46:28 +000024110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24111 fi
cristy3ed852e2009-09-05 21:47:34 +000024112fi
cristy501c8042011-05-26 17:46:28 +000024113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
24114$as_echo "$ac_cv_type_long_double" >&6; }
24115 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024116
cristy501c8042011-05-26 17:46:28 +000024117$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024118
cristy501c8042011-05-26 17:46:28 +000024119 fi
24120
cristy3ed852e2009-09-05 21:47:34 +000024121
cristy8b350f62009-11-15 23:12:43 +000024122 { $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 +000024123$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024124if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024125 $as_echo_n "(cached) " >&6
24126else
cristy8b350f62009-11-15 23:12:43 +000024127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024128/* end confdefs.h. */
24129#include <float.h>
24130 long double const a[] =
24131 {
24132 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24133 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24134 };
24135 long double
24136 f (long double x)
24137 {
24138 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24139 + (x ? f (x) : 'c'));
24140 }
24141
24142int
24143main ()
24144{
24145static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24146 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24147 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24148 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24149 && (int) LDBL_EPSILON == 0
24150 )];
cristy14fefe52012-05-21 00:59:18 +000024151test_array [0] = 0;
24152return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000024153
24154 ;
24155 return 0;
24156}
24157_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024158if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024159 ac_cv_type_long_double_wider=yes
24160else
cristy8b350f62009-11-15 23:12:43 +000024161 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000024162fi
cristy3ed852e2009-09-05 21:47:34 +000024163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164fi
cristy8b350f62009-11-15 23:12:43 +000024165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000024166$as_echo "$ac_cv_type_long_double_wider" >&6; }
24167 if test $ac_cv_type_long_double_wider = yes; then
24168
cristy8b350f62009-11-15 23:12:43 +000024169$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024170
24171 fi
24172
24173
cristy045228a2013-06-23 11:00:16 +000024174
cristy501c8042011-05-26 17:46:28 +000024175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24176$as_echo_n "checking for long long int... " >&6; }
24177if ${ac_cv_type_long_long_int+:} false; then :
24178 $as_echo_n "(cached) " >&6
24179else
cristy501c8042011-05-26 17:46:28 +000024180 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000024181 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000024182 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24183 if test $ac_cv_type_long_long_int = yes; then
24184 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000024185 :
cristy501c8042011-05-26 17:46:28 +000024186else
24187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188/* end confdefs.h. */
24189#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000024190 #ifndef LLONG_MAX
24191 # define HALF \
24192 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24193 # define LLONG_MAX (HALF - 1 + HALF)
24194 #endif
cristy501c8042011-05-26 17:46:28 +000024195int
24196main ()
24197{
24198long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000024199 int i;
24200 for (i = 0; ; i++)
24201 {
24202 long long int m = n << i;
24203 if (m >> i != n)
24204 return 1;
24205 if (LLONG_MAX / 2 < m)
24206 break;
24207 }
24208 return 0;
cristy501c8042011-05-26 17:46:28 +000024209 ;
24210 return 0;
24211}
24212_ACEOF
24213if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024214
cristy501c8042011-05-26 17:46:28 +000024215else
24216 ac_cv_type_long_long_int=no
24217fi
24218rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24219 conftest.$ac_objext conftest.beam conftest.$ac_ext
24220fi
24221
cristy5ed9c6e2013-07-14 21:20:31 +000024222 fi
cristy045228a2013-06-23 11:00:16 +000024223 fi
cristy501c8042011-05-26 17:46:28 +000024224fi
24225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24226$as_echo "$ac_cv_type_long_long_int" >&6; }
24227 if test $ac_cv_type_long_long_int = yes; then
24228
24229$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24230
24231 fi
24232
24233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
24234$as_echo_n "checking for mbstate_t... " >&6; }
24235if ${ac_cv_type_mbstate_t+:} false; then :
24236 $as_echo_n "(cached) " >&6
24237else
24238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24239/* end confdefs.h. */
24240$ac_includes_default
24241# include <wchar.h>
24242int
24243main ()
24244{
24245mbstate_t x; return sizeof x;
24246 ;
24247 return 0;
24248}
24249_ACEOF
24250if ac_fn_c_try_compile "$LINENO"; then :
24251 ac_cv_type_mbstate_t=yes
24252else
24253 ac_cv_type_mbstate_t=no
24254fi
24255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256fi
24257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24258$as_echo "$ac_cv_type_mbstate_t" >&6; }
24259 if test $ac_cv_type_mbstate_t = yes; then
24260
24261$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24262
24263 else
24264
24265$as_echo "#define mbstate_t int" >>confdefs.h
24266
24267 fi
24268ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24269if test "x$ac_cv_type_mode_t" = xyes; then :
24270
24271else
24272
24273cat >>confdefs.h <<_ACEOF
24274#define mode_t int
24275_ACEOF
24276
24277fi
24278
24279ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24280if test "x$ac_cv_type_off_t" = xyes; then :
24281
24282else
24283
24284cat >>confdefs.h <<_ACEOF
24285#define off_t long int
24286_ACEOF
24287
24288fi
24289
24290ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24291if test "x$ac_cv_type_pid_t" = xyes; then :
24292
24293else
24294
24295cat >>confdefs.h <<_ACEOF
24296#define pid_t int
24297_ACEOF
24298
24299fi
24300
24301ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24302if test "x$ac_cv_type_size_t" = xyes; then :
24303
24304else
24305
24306cat >>confdefs.h <<_ACEOF
24307#define size_t unsigned int
24308_ACEOF
24309
24310fi
24311
24312ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24313if test "x$ac_cv_type_ssize_t" = xyes; then :
24314
24315else
24316
24317cat >>confdefs.h <<_ACEOF
24318#define ssize_t int
24319_ACEOF
24320
24321fi
24322
24323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24324$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24325if ${ac_cv_type_uid_t+:} false; then :
24326 $as_echo_n "(cached) " >&6
24327else
24328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24329/* end confdefs.h. */
24330#include <sys/types.h>
24331
24332_ACEOF
24333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24334 $EGREP "uid_t" >/dev/null 2>&1; then :
24335 ac_cv_type_uid_t=yes
24336else
24337 ac_cv_type_uid_t=no
24338fi
24339rm -f conftest*
24340
24341fi
24342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24343$as_echo "$ac_cv_type_uid_t" >&6; }
24344if test $ac_cv_type_uid_t = no; then
24345
24346$as_echo "#define uid_t int" >>confdefs.h
24347
24348
24349$as_echo "#define gid_t int" >>confdefs.h
24350
24351fi
24352
24353ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24354case $ac_cv_c_uint8_t in #(
24355 no|yes) ;; #(
24356 *)
24357
24358$as_echo "#define _UINT8_T 1" >>confdefs.h
24359
24360
24361cat >>confdefs.h <<_ACEOF
24362#define uint8_t $ac_cv_c_uint8_t
24363_ACEOF
24364;;
24365 esac
24366
24367ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24368case $ac_cv_c_uint16_t in #(
24369 no|yes) ;; #(
24370 *)
24371
24372
24373cat >>confdefs.h <<_ACEOF
24374#define uint16_t $ac_cv_c_uint16_t
24375_ACEOF
24376;;
24377 esac
24378
24379ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24380case $ac_cv_c_uint32_t in #(
24381 no|yes) ;; #(
24382 *)
24383
24384$as_echo "#define _UINT32_T 1" >>confdefs.h
24385
24386
24387cat >>confdefs.h <<_ACEOF
24388#define uint32_t $ac_cv_c_uint32_t
24389_ACEOF
24390;;
24391 esac
24392
24393ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24394case $ac_cv_c_uint64_t in #(
24395 no|yes) ;; #(
24396 *)
24397
24398$as_echo "#define _UINT64_T 1" >>confdefs.h
24399
24400
24401cat >>confdefs.h <<_ACEOF
24402#define uint64_t $ac_cv_c_uint64_t
24403_ACEOF
24404;;
24405 esac
24406
24407
cristy501c8042011-05-26 17:46:28 +000024408
24409 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24410if test "x$ac_cv_type_uintmax_t" = xyes; then :
24411
24412$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
24413
24414else
24415 test $ac_cv_type_unsigned_long_long_int = yes \
24416 && ac_type='unsigned long long int' \
24417 || ac_type='unsigned long int'
24418
24419cat >>confdefs.h <<_ACEOF
24420#define uintmax_t $ac_type
24421_ACEOF
24422
24423fi
24424
24425
24426
24427 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24428if test "x$ac_cv_type_uintptr_t" = xyes; then :
24429
24430$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24431
24432else
24433 for ac_type in 'unsigned int' 'unsigned long int' \
24434 'unsigned long long int'; do
24435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24436/* end confdefs.h. */
24437$ac_includes_default
24438int
24439main ()
24440{
24441static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000024442test_array [0] = 0;
24443return test_array [0];
cristy501c8042011-05-26 17:46:28 +000024444
24445 ;
24446 return 0;
24447}
24448_ACEOF
24449if ac_fn_c_try_compile "$LINENO"; then :
24450
24451cat >>confdefs.h <<_ACEOF
24452#define uintptr_t $ac_type
24453_ACEOF
24454
24455 ac_type=
24456fi
24457rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24458 test -z "$ac_type" && break
24459 done
24460fi
24461
24462
24463
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24465$as_echo_n "checking for unsigned long long int... " >&6; }
24466if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24467 $as_echo_n "(cached) " >&6
24468else
cristy045228a2013-06-23 11:00:16 +000024469 ac_cv_type_unsigned_long_long_int=yes
24470 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000024472/* end confdefs.h. */
24473
24474 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000024475 implementations with broken preprocessors. Perhaps this can
24476 be revisited in 2012. In the meantime, code should not expect
24477 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000024478 /* Test literals. */
24479 long long int ll = 9223372036854775807ll;
24480 long long int nll = -9223372036854775807LL;
24481 unsigned long long int ull = 18446744073709551615ULL;
24482 /* Test constant expressions. */
24483 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000024484 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024485 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000024486 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024487 int i = 63;
24488int
24489main ()
24490{
24491/* Test availability of runtime routines for shift and division. */
24492 long long int llmax = 9223372036854775807ll;
24493 unsigned long long int ullmax = 18446744073709551615ull;
24494 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000024495 | (llmax / ll) | (llmax % ll)
24496 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24497 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000024498 ;
24499 return 0;
24500}
24501
24502_ACEOF
24503if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024504
cristy501c8042011-05-26 17:46:28 +000024505else
24506 ac_cv_type_unsigned_long_long_int=no
24507fi
24508rm -f core conftest.err conftest.$ac_objext \
24509 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000024510 fi
cristy501c8042011-05-26 17:46:28 +000024511fi
24512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24513$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24514 if test $ac_cv_type_unsigned_long_long_int = yes; then
24515
24516$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24517
24518 fi
24519
24520
cristy708922a2015-05-17 02:33:56 +000024521ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
24522"
cristy98beafc2015-05-14 19:55:55 +000024523if test "x$ac_cv_type_locale_t" = xyes; then :
24524
24525cat >>confdefs.h <<_ACEOF
24526#define HAVE_LOCALE_T 1
24527_ACEOF
24528
24529
24530fi
24531
24532
cristyfec31822013-05-23 12:32:12 +000024533# Float_t and double_t are intended to be the the most efficient type.
24534ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
24535"
24536if test "x$ac_cv_type_float_t" = xyes; then :
24537
24538cat >>confdefs.h <<_ACEOF
24539#define HAVE_FLOAT_T 1
24540_ACEOF
24541
24542
24543fi
24544
24545ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
24546"
24547if test "x$ac_cv_type_double_t" = xyes; then :
24548
24549cat >>confdefs.h <<_ACEOF
24550#define HAVE_DOUBLE_T 1
24551_ACEOF
24552
24553
24554fi
24555
24556# The cast to long int works around a bug in the HP C Compiler
24557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24559# This bug is HP SR number 8606223364.
24560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
24561$as_echo_n "checking size of float_t... " >&6; }
24562if ${ac_cv_sizeof_float_t+:} false; then :
24563 $as_echo_n "(cached) " >&6
24564else
24565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
24566"; then :
24567
24568else
24569 if test "$ac_cv_type_float_t" = yes; then
24570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24572as_fn_error 77 "cannot compute sizeof (float_t)
24573See \`config.log' for more details" "$LINENO" 5; }
24574 else
24575 ac_cv_sizeof_float_t=0
24576 fi
24577fi
24578
24579fi
24580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
24581$as_echo "$ac_cv_sizeof_float_t" >&6; }
24582
24583
24584
24585cat >>confdefs.h <<_ACEOF
24586#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
24587_ACEOF
24588
24589
24590# The cast to long int works around a bug in the HP C Compiler
24591# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24592# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24593# This bug is HP SR number 8606223364.
24594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
24595$as_echo_n "checking size of double_t... " >&6; }
24596if ${ac_cv_sizeof_double_t+:} false; then :
24597 $as_echo_n "(cached) " >&6
24598else
24599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
24600"; then :
24601
24602else
24603 if test "$ac_cv_type_double_t" = yes; then
24604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24606as_fn_error 77 "cannot compute sizeof (double_t)
24607See \`config.log' for more details" "$LINENO" 5; }
24608 else
24609 ac_cv_sizeof_double_t=0
24610 fi
24611fi
24612
24613fi
24614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24615$as_echo "$ac_cv_sizeof_double_t" >&6; }
24616
24617
24618
24619cat >>confdefs.h <<_ACEOF
24620#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24621_ACEOF
24622
24623
24624
cristy9b86f202012-11-28 21:55:35 +000024625# Get size of float, double and long double for comparaison.
24626# The cast to long int works around a bug in the HP C Compiler
24627# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24628# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24629# This bug is HP SR number 8606223364.
24630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24631$as_echo_n "checking size of float... " >&6; }
24632if ${ac_cv_sizeof_float+:} false; then :
24633 $as_echo_n "(cached) " >&6
24634else
24635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24636
24637else
24638 if test "$ac_cv_type_float" = yes; then
24639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24641as_fn_error 77 "cannot compute sizeof (float)
24642See \`config.log' for more details" "$LINENO" 5; }
24643 else
24644 ac_cv_sizeof_float=0
24645 fi
24646fi
24647
24648fi
24649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24650$as_echo "$ac_cv_sizeof_float" >&6; }
24651
24652
24653
24654cat >>confdefs.h <<_ACEOF
24655#define SIZEOF_FLOAT $ac_cv_sizeof_float
24656_ACEOF
24657
24658
24659# The cast to long int works around a bug in the HP C Compiler
24660# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24661# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24662# This bug is HP SR number 8606223364.
24663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24664$as_echo_n "checking size of double... " >&6; }
24665if ${ac_cv_sizeof_double+:} false; then :
24666 $as_echo_n "(cached) " >&6
24667else
24668 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24669
24670else
24671 if test "$ac_cv_type_double" = yes; then
24672 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24673$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24674as_fn_error 77 "cannot compute sizeof (double)
24675See \`config.log' for more details" "$LINENO" 5; }
24676 else
24677 ac_cv_sizeof_double=0
24678 fi
24679fi
24680
24681fi
24682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24683$as_echo "$ac_cv_sizeof_double" >&6; }
24684
24685
24686
24687cat >>confdefs.h <<_ACEOF
24688#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24689_ACEOF
24690
24691
cristy9e2b6242014-03-25 11:49:41 +000024692# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024693# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24694# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24695# This bug is HP SR number 8606223364.
24696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24697$as_echo_n "checking size of long double... " >&6; }
24698if ${ac_cv_sizeof_long_double+:} false; then :
24699 $as_echo_n "(cached) " >&6
24700else
24701 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24702
24703else
24704 if test "$ac_cv_type_long_double" = yes; then
24705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24707as_fn_error 77 "cannot compute sizeof (long double)
24708See \`config.log' for more details" "$LINENO" 5; }
24709 else
24710 ac_cv_sizeof_long_double=0
24711 fi
24712fi
24713
24714fi
24715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24716$as_echo "$ac_cv_sizeof_long_double" >&6; }
24717
24718
24719
24720cat >>confdefs.h <<_ACEOF
24721#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24722_ACEOF
24723
24724
cristyf0cf9a22012-10-24 12:05:01 +000024725
cristy3ed852e2009-09-05 21:47:34 +000024726# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24727# The cast to long int works around a bug in the HP C Compiler
24728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24730# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024732$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024733if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 $as_echo_n "(cached) " >&6
24735else
cristy8b350f62009-11-15 23:12:43 +000024736 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 +000024737
cristy3ed852e2009-09-05 21:47:34 +000024738else
cristy8b350f62009-11-15 23:12:43 +000024739 if test "$ac_cv_type_signed_short" = yes; then
24740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024742as_fn_error 77 "cannot compute sizeof (signed short)
24743See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024744 else
24745 ac_cv_sizeof_signed_short=0
24746 fi
24747fi
cristy8b350f62009-11-15 23:12:43 +000024748
cristy3ed852e2009-09-05 21:47:34 +000024749fi
cristy8b350f62009-11-15 23:12:43 +000024750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024751$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24752
24753
24754
24755cat >>confdefs.h <<_ACEOF
24756#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24757_ACEOF
24758
24759
24760
24761# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24762# The cast to long int works around a bug in the HP C Compiler
24763# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24764# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24765# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024767$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024768if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024769 $as_echo_n "(cached) " >&6
24770else
cristy8b350f62009-11-15 23:12:43 +000024771 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 +000024772
cristy3ed852e2009-09-05 21:47:34 +000024773else
cristy8b350f62009-11-15 23:12:43 +000024774 if test "$ac_cv_type_unsigned_short" = yes; then
24775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024777as_fn_error 77 "cannot compute sizeof (unsigned short)
24778See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024779 else
24780 ac_cv_sizeof_unsigned_short=0
24781 fi
24782fi
cristy8b350f62009-11-15 23:12:43 +000024783
cristy3ed852e2009-09-05 21:47:34 +000024784fi
cristy8b350f62009-11-15 23:12:43 +000024785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024786$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24787
24788
24789
24790cat >>confdefs.h <<_ACEOF
24791#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24792_ACEOF
24793
24794
24795
24796# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24797# The cast to long int works around a bug in the HP C Compiler
24798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24800# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024802$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024803if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024804 $as_echo_n "(cached) " >&6
24805else
cristy8b350f62009-11-15 23:12:43 +000024806 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 +000024807
cristy3ed852e2009-09-05 21:47:34 +000024808else
cristy8b350f62009-11-15 23:12:43 +000024809 if test "$ac_cv_type_signed_int" = yes; then
24810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024812as_fn_error 77 "cannot compute sizeof (signed int)
24813See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024814 else
24815 ac_cv_sizeof_signed_int=0
24816 fi
24817fi
cristy8b350f62009-11-15 23:12:43 +000024818
cristy3ed852e2009-09-05 21:47:34 +000024819fi
cristy8b350f62009-11-15 23:12:43 +000024820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024821$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24822
24823
24824
24825cat >>confdefs.h <<_ACEOF
24826#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24827_ACEOF
24828
24829
24830
24831# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24832# The cast to long int works around a bug in the HP C Compiler
24833# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24834# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24835# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024837$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024838if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024839 $as_echo_n "(cached) " >&6
24840else
cristy8b350f62009-11-15 23:12:43 +000024841 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 +000024842
cristy3ed852e2009-09-05 21:47:34 +000024843else
cristy8b350f62009-11-15 23:12:43 +000024844 if test "$ac_cv_type_unsigned_int" = yes; then
24845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024847as_fn_error 77 "cannot compute sizeof (unsigned int)
24848See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024849 else
24850 ac_cv_sizeof_unsigned_int=0
24851 fi
24852fi
cristy8b350f62009-11-15 23:12:43 +000024853
cristy3ed852e2009-09-05 21:47:34 +000024854fi
cristy8b350f62009-11-15 23:12:43 +000024855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024856$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24857
24858
24859
24860cat >>confdefs.h <<_ACEOF
24861#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24862_ACEOF
24863
24864
24865
24866# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24867# The cast to long int works around a bug in the HP C Compiler
24868# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24869# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24870# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024872$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024873if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024874 $as_echo_n "(cached) " >&6
24875else
cristy8b350f62009-11-15 23:12:43 +000024876 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 +000024877
cristy3ed852e2009-09-05 21:47:34 +000024878else
cristy8b350f62009-11-15 23:12:43 +000024879 if test "$ac_cv_type_signed_long" = yes; then
24880 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024882as_fn_error 77 "cannot compute sizeof (signed long)
24883See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024884 else
24885 ac_cv_sizeof_signed_long=0
24886 fi
24887fi
cristy8b350f62009-11-15 23:12:43 +000024888
cristy3ed852e2009-09-05 21:47:34 +000024889fi
cristy8b350f62009-11-15 23:12:43 +000024890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024891$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24892
24893
24894
24895cat >>confdefs.h <<_ACEOF
24896#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24897_ACEOF
24898
24899
24900
24901# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24902# The cast to long int works around a bug in the HP C Compiler
24903# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24904# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24905# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024907$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024908if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024909 $as_echo_n "(cached) " >&6
24910else
cristy8b350f62009-11-15 23:12:43 +000024911 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 +000024912
cristy3ed852e2009-09-05 21:47:34 +000024913else
cristy8b350f62009-11-15 23:12:43 +000024914 if test "$ac_cv_type_unsigned_long" = yes; then
24915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024917as_fn_error 77 "cannot compute sizeof (unsigned long)
24918See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024919 else
24920 ac_cv_sizeof_unsigned_long=0
24921 fi
24922fi
cristy8b350f62009-11-15 23:12:43 +000024923
cristy3ed852e2009-09-05 21:47:34 +000024924fi
cristy8b350f62009-11-15 23:12:43 +000024925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024926$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24927
24928
24929
24930cat >>confdefs.h <<_ACEOF
24931#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24932_ACEOF
24933
24934
24935
24936# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24937# 'signed long long' is not supported then the value defined is zero.
24938# The cast to long int works around a bug in the HP C Compiler
24939# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24940# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24941# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024943$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024944if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024945 $as_echo_n "(cached) " >&6
24946else
cristy8b350f62009-11-15 23:12:43 +000024947 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 +000024948
cristy3ed852e2009-09-05 21:47:34 +000024949else
cristy8b350f62009-11-15 23:12:43 +000024950 if test "$ac_cv_type_signed_long_long" = yes; then
24951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024952$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024953as_fn_error 77 "cannot compute sizeof (signed long long)
24954See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024955 else
24956 ac_cv_sizeof_signed_long_long=0
24957 fi
24958fi
cristy8b350f62009-11-15 23:12:43 +000024959
cristy3ed852e2009-09-05 21:47:34 +000024960fi
cristy8b350f62009-11-15 23:12:43 +000024961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024962$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24963
24964
24965
24966cat >>confdefs.h <<_ACEOF
24967#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24968_ACEOF
24969
24970
24971
24972# Obtain size of a 'unsigned long long' and define as
24973# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24974# supported then the value defined is zero.
24975# The cast to long int works around a bug in the HP C Compiler
24976# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24977# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24978# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024980$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024981if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024982 $as_echo_n "(cached) " >&6
24983else
cristy8b350f62009-11-15 23:12:43 +000024984 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 +000024985
cristy3ed852e2009-09-05 21:47:34 +000024986else
cristy8b350f62009-11-15 23:12:43 +000024987 if test "$ac_cv_type_unsigned_long_long" = yes; then
24988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024990as_fn_error 77 "cannot compute sizeof (unsigned long long)
24991See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024992 else
24993 ac_cv_sizeof_unsigned_long_long=0
24994 fi
24995fi
cristy8b350f62009-11-15 23:12:43 +000024996
cristy3ed852e2009-09-05 21:47:34 +000024997fi
cristy8b350f62009-11-15 23:12:43 +000024998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024999$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
25000
25001
25002
25003cat >>confdefs.h <<_ACEOF
25004#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25005_ACEOF
25006
25007
25008
cristyfec31822013-05-23 12:32:12 +000025009# Obtain size of off_t and define as SIZEOF_OFF_T
25010# The cast to long int works around a bug in the HP C Compiler
25011# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25012# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25013# This bug is HP SR number 8606223364.
25014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
25015$as_echo_n "checking size of off_t... " >&6; }
25016if ${ac_cv_sizeof_off_t+:} false; then :
25017 $as_echo_n "(cached) " >&6
25018else
25019 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
25020
25021else
25022 if test "$ac_cv_type_off_t" = yes; then
25023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25024$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25025as_fn_error 77 "cannot compute sizeof (off_t)
25026See \`config.log' for more details" "$LINENO" 5; }
25027 else
25028 ac_cv_sizeof_off_t=0
25029 fi
25030fi
25031
25032fi
25033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
25034$as_echo "$ac_cv_sizeof_off_t" >&6; }
25035
25036
25037
25038cat >>confdefs.h <<_ACEOF
25039#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25040_ACEOF
25041
25042
25043
25044# Obtain size of size_t and define as SIZEOF_SIZE_T
25045# The cast to long int works around a bug in the HP C Compiler
25046# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25047# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25048# This bug is HP SR number 8606223364.
25049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
25050$as_echo_n "checking size of size_t... " >&6; }
25051if ${ac_cv_sizeof_size_t+:} false; then :
25052 $as_echo_n "(cached) " >&6
25053else
25054 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
25055
25056else
25057 if test "$ac_cv_type_size_t" = yes; then
25058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25060as_fn_error 77 "cannot compute sizeof (size_t)
25061See \`config.log' for more details" "$LINENO" 5; }
25062 else
25063 ac_cv_sizeof_size_t=0
25064 fi
25065fi
25066
25067fi
25068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
25069$as_echo "$ac_cv_sizeof_size_t" >&6; }
25070
25071
25072
25073cat >>confdefs.h <<_ACEOF
25074#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25075_ACEOF
25076
25077
25078
25079# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
25080# The cast to long int works around a bug in the HP C Compiler
25081# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25082# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25083# This bug is HP SR number 8606223364.
25084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
25085$as_echo_n "checking size of ssize_t... " >&6; }
25086if ${ac_cv_sizeof_ssize_t+:} false; then :
25087 $as_echo_n "(cached) " >&6
25088else
25089 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
25090
25091else
25092 if test "$ac_cv_type_ssize_t" = yes; then
25093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25095as_fn_error 77 "cannot compute sizeof (ssize_t)
25096See \`config.log' for more details" "$LINENO" 5; }
25097 else
25098 ac_cv_sizeof_ssize_t=0
25099 fi
25100fi
25101
25102fi
25103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
25104$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
25105
25106
25107
25108cat >>confdefs.h <<_ACEOF
25109#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
25110_ACEOF
25111
25112
25113
cristy3ed852e2009-09-05 21:47:34 +000025114# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
25115# The cast to long int works around a bug in the HP C Compiler
25116# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25117# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25118# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000025119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000025120$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025121if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025122 $as_echo_n "(cached) " >&6
25123else
cristy8b350f62009-11-15 23:12:43 +000025124 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 +000025125
cristy3ed852e2009-09-05 21:47:34 +000025126else
cristy8b350f62009-11-15 23:12:43 +000025127 if test "$ac_cv_type_unsigned_intp" = yes; then
25128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000025129$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000025130as_fn_error 77 "cannot compute sizeof (unsigned int*)
25131See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000025132 else
25133 ac_cv_sizeof_unsigned_intp=0
25134 fi
25135fi
cristy8b350f62009-11-15 23:12:43 +000025136
cristy3ed852e2009-09-05 21:47:34 +000025137fi
cristy8b350f62009-11-15 23:12:43 +000025138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025139$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
25140
25141
25142
25143cat >>confdefs.h <<_ACEOF
25144#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
25145_ACEOF
25146
25147
25148
25149#
25150# Compute sized types for current CPU and compiler options.
25151#
25152
cristy8b350f62009-11-15 23:12:43 +000025153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025154$as_echo_n "checking for signed 8-bit type... " >&6; }
25155INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000025156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
25157$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025158
25159
cristy8b350f62009-11-15 23:12:43 +000025160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025161$as_echo_n "checking for unsigned 8-bit type... " >&6; }
25162UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000025163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
25164$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025165
25166
cristy8b350f62009-11-15 23:12:43 +000025167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025168$as_echo_n "checking for signed 16-bit type... " >&6; }
25169INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000025170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
25171$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025172
25173
cristy8b350f62009-11-15 23:12:43 +000025174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025175$as_echo_n "checking for unsigned 16-bit type... " >&6; }
25176UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000025177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
25178$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025179
25180
cristy8b350f62009-11-15 23:12:43 +000025181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025182$as_echo_n "checking for signed 32-bit type... " >&6; }
25183INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025184INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025185if test $ac_cv_sizeof_signed_int -eq 4; then
25186 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000025187 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000025188elif test $ac_cv_sizeof_signed_long -eq 4; then
25189 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000025190 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025191fi
cristyad38abe2012-12-23 23:03:21 +000025192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
25193$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025194
25195
cristy6d5e20f2011-04-25 13:48:54 +000025196
cristy8b350f62009-11-15 23:12:43 +000025197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025198$as_echo_n "checking for unsigned 32-bit type... " >&6; }
25199UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025200UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025201if test $ac_cv_sizeof_unsigned_int -eq 4; then
25202 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000025203 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000025204elif test $ac_cv_sizeof_unsigned_long -eq 4; then
25205 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025206 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025207fi
cristyad38abe2012-12-23 23:03:21 +000025208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
25209$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025210
25211
cristy6d5e20f2011-04-25 13:48:54 +000025212
cristy8b350f62009-11-15 23:12:43 +000025213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025214$as_echo_n "checking for signed 64-bit type... " >&6; }
25215INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025216INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025217if test $ac_cv_sizeof_signed_long -eq 8; then
25218 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000025219 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025220elif test $ac_cv_sizeof_signed_long_long -eq 8; then
25221 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000025222 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025223fi
cristy3a99dcf2011-12-17 01:29:40 +000025224case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000025225 mingw* )
25226 INT64_F='"I64"'
25227 ;;
25228esac
cristyad38abe2012-12-23 23:03:21 +000025229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
25230$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025231
25232
cristy6d5e20f2011-04-25 13:48:54 +000025233
cristy8b350f62009-11-15 23:12:43 +000025234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025235$as_echo_n "checking for unsigned 64-bit type... " >&6; }
25236UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025237UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025238if test $ac_cv_sizeof_unsigned_long -eq 8; then
25239 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025240 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025241elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
25242 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000025243 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025244fi
cristy3a99dcf2011-12-17 01:29:40 +000025245case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000025246 mingw* )
25247 UINT64_F='"I64"'
25248 ;;
25249esac
cristyad38abe2012-12-23 23:03:21 +000025250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
25251$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025252
25253
cristy6d5e20f2011-04-25 13:48:54 +000025254
cristy8b350f62009-11-15 23:12:43 +000025255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025256$as_echo_n "checking for unsigned maximum type... " >&6; }
25257UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025258UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025259if test "$UINT64_T" != 'none'; then
25260 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000025261 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000025262elif test "$UINT32_T" != 'none'; then
25263 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000025264 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000025265fi
cristyad38abe2012-12-23 23:03:21 +000025266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
25267$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025268
25269
cristy6d5e20f2011-04-25 13:48:54 +000025270
cristy8b350f62009-11-15 23:12:43 +000025271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025272$as_echo_n "checking for pointer difference type... " >&6; }
25273UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025274UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025275if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
25276 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025277 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025278elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
25279 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000025280 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025281fi
cristyad38abe2012-12-23 23:03:21 +000025282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
25283$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025284
25285
cristy6d5e20f2011-04-25 13:48:54 +000025286
cristy8b350f62009-11-15 23:12:43 +000025287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000025288$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025290/* end confdefs.h. */
25291
25292int
25293main ()
25294{
25295{ const char *func = __func__; return(func != 0 ? 0 : 1); }
25296 ;
25297 return 0;
25298}
25299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025300if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000025301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25302$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025303else
cristyad38abe2012-12-23 23:03:21 +000025304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25305$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000025307$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025309/* end confdefs.h. */
25310
25311int
25312main ()
25313{
25314{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
25315 ;
25316 return 0;
25317}
25318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025319if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000025320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25321$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025322
cristy8b350f62009-11-15 23:12:43 +000025323$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025324
25325else
cristyad38abe2012-12-23 23:03:21 +000025326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25327$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025328
cristy8b350f62009-11-15 23:12:43 +000025329$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025330
25331fi
cristy3ed852e2009-09-05 21:47:34 +000025332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25333fi
cristy3ed852e2009-09-05 21:47:34 +000025334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25335
25336########
25337#
25338# Check for functions
25339#
25340########
cristy8b350f62009-11-15 23:12:43 +000025341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000025342$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025343if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025344 $as_echo_n "(cached) " >&6
25345else
cristy8b350f62009-11-15 23:12:43 +000025346 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025347 ac_cv_func_closedir_void=yes
25348else
cristy8b350f62009-11-15 23:12:43 +000025349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025350/* end confdefs.h. */
25351$ac_includes_default
25352#include <$ac_header_dirent>
25353#ifndef __cplusplus
25354int closedir ();
25355#endif
25356
25357int
25358main ()
25359{
25360return closedir (opendir (".")) != 0;
25361 ;
25362 return 0;
25363}
25364_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025365if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025366 ac_cv_func_closedir_void=no
25367else
cristy8b350f62009-11-15 23:12:43 +000025368 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000025369fi
cristy8b350f62009-11-15 23:12:43 +000025370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25371 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025372fi
25373
cristy3ed852e2009-09-05 21:47:34 +000025374fi
cristy8b350f62009-11-15 23:12:43 +000025375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000025376$as_echo "$ac_cv_func_closedir_void" >&6; }
25377if test $ac_cv_func_closedir_void = yes; then
25378
cristy8b350f62009-11-15 23:12:43 +000025379$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025380
25381fi
25382
cristycd4c5312009-11-22 01:19:08 +000025383
25384
25385
25386 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000025387do :
25388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000025389ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25390"
cristy98dddb52010-11-04 00:30:15 +000025391if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025392 cat >>confdefs.h <<_ACEOF
25393#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25394_ACEOF
25395
25396fi
25397
25398done
25399
cristycd4c5312009-11-22 01:19:08 +000025400
25401
25402
25403
25404
25405
25406
cristy3ed852e2009-09-05 21:47:34 +000025407for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000025408do :
25409 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000025410if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025411 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025412#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000025413_ACEOF
25414
25415fi
25416done
25417
cristy8b350f62009-11-15 23:12:43 +000025418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000025419$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025420if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025421 $as_echo_n "(cached) " >&6
25422else
cristy8b350f62009-11-15 23:12:43 +000025423 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025424 ac_cv_func_mmap_fixed_mapped=no
25425else
cristy8b350f62009-11-15 23:12:43 +000025426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025427/* end confdefs.h. */
25428$ac_includes_default
25429/* malloc might have been renamed as rpl_malloc. */
25430#undef malloc
25431
25432/* Thanks to Mike Haertel and Jim Avera for this test.
25433 Here is a matrix of mmap possibilities:
25434 mmap private not fixed
25435 mmap private fixed at somewhere currently unmapped
25436 mmap private fixed at somewhere already mapped
25437 mmap shared not fixed
25438 mmap shared fixed at somewhere currently unmapped
25439 mmap shared fixed at somewhere already mapped
25440 For private mappings, we should verify that changes cannot be read()
25441 back from the file, nor mmap's back from the file at a different
25442 address. (There have been systems where private was not correctly
25443 implemented like the infamous i386 svr4.0, and systems where the
25444 VM page cache was not coherent with the file system buffer cache
25445 like early versions of FreeBSD and possibly contemporary NetBSD.)
25446 For shared mappings, we should conversely verify that changes get
25447 propagated back to all the places they're supposed to be.
25448
25449 Grep wants private fixed already mapped.
25450 The main things grep needs to know about mmap are:
25451 * does it exist and is it safe to write into the mmap'd area
25452 * how to use it (BSD variants) */
25453
25454#include <fcntl.h>
25455#include <sys/mman.h>
25456
25457#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25458char *malloc ();
25459#endif
25460
25461/* This mess was copied from the GNU getpagesize.h. */
25462#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000025463# ifdef _SC_PAGESIZE
25464# define getpagesize() sysconf(_SC_PAGESIZE)
25465# else /* no _SC_PAGESIZE */
25466# ifdef HAVE_SYS_PARAM_H
25467# include <sys/param.h>
25468# ifdef EXEC_PAGESIZE
25469# define getpagesize() EXEC_PAGESIZE
25470# else /* no EXEC_PAGESIZE */
25471# ifdef NBPG
25472# define getpagesize() NBPG * CLSIZE
25473# ifndef CLSIZE
25474# define CLSIZE 1
25475# endif /* no CLSIZE */
25476# else /* no NBPG */
25477# ifdef NBPC
25478# define getpagesize() NBPC
25479# else /* no NBPC */
25480# ifdef PAGESIZE
25481# define getpagesize() PAGESIZE
25482# endif /* PAGESIZE */
25483# endif /* no NBPC */
25484# endif /* no NBPG */
25485# endif /* no EXEC_PAGESIZE */
25486# else /* no HAVE_SYS_PARAM_H */
25487# define getpagesize() 8192 /* punt totally */
25488# endif /* no HAVE_SYS_PARAM_H */
25489# endif /* no _SC_PAGESIZE */
25490
25491#endif /* no HAVE_GETPAGESIZE */
25492
25493int
25494main ()
25495{
25496 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000025497 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000025498 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000025499 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000025500
25501 pagesize = getpagesize ();
25502
25503 /* First, make a file with some known garbage in it. */
25504 data = (char *) malloc (pagesize);
25505 if (!data)
25506 return 1;
25507 for (i = 0; i < pagesize; ++i)
25508 *(data + i) = rand ();
25509 umask (0);
25510 fd = creat ("conftest.mmap", 0600);
25511 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025512 return 2;
cristy3ed852e2009-09-05 21:47:34 +000025513 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025514 return 3;
cristy3ed852e2009-09-05 21:47:34 +000025515 close (fd);
25516
cristycd4c5312009-11-22 01:19:08 +000025517 /* Next, check that the tail of a page is zero-filled. File must have
25518 non-zero length, otherwise we risk SIGBUS for entire page. */
25519 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25520 if (fd2 < 0)
25521 return 4;
cristyc54f5d42009-11-27 21:36:31 +000025522 cdata2 = "";
25523 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000025524 return 5;
cristyc54f5d42009-11-27 21:36:31 +000025525 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000025526 if (data2 == MAP_FAILED)
25527 return 6;
25528 for (i = 0; i < pagesize; ++i)
25529 if (*(data2 + i))
25530 return 7;
25531 close (fd2);
25532 if (munmap (data2, pagesize))
25533 return 8;
25534
cristy3ed852e2009-09-05 21:47:34 +000025535 /* Next, try to mmap the file at a fixed address which already has
25536 something else allocated at it. If we can, also make sure that
25537 we see the same garbage. */
25538 fd = open ("conftest.mmap", O_RDWR);
25539 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025540 return 9;
cristy3ed852e2009-09-05 21:47:34 +000025541 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25542 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000025543 return 10;
cristy3ed852e2009-09-05 21:47:34 +000025544 for (i = 0; i < pagesize; ++i)
25545 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000025546 return 11;
cristy3ed852e2009-09-05 21:47:34 +000025547
25548 /* Finally, make sure that changes to the mapped area do not
25549 percolate back to the file as seen by read(). (This is a bug on
25550 some variants of i386 svr4.0.) */
25551 for (i = 0; i < pagesize; ++i)
25552 *(data2 + i) = *(data2 + i) + 1;
25553 data3 = (char *) malloc (pagesize);
25554 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000025555 return 12;
cristy3ed852e2009-09-05 21:47:34 +000025556 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025557 return 13;
cristy3ed852e2009-09-05 21:47:34 +000025558 for (i = 0; i < pagesize; ++i)
25559 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000025560 return 14;
cristy3ed852e2009-09-05 21:47:34 +000025561 close (fd);
25562 return 0;
25563}
25564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025565if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025566 ac_cv_func_mmap_fixed_mapped=yes
25567else
cristy8b350f62009-11-15 23:12:43 +000025568 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000025569fi
cristy8b350f62009-11-15 23:12:43 +000025570rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25571 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025572fi
25573
cristy3ed852e2009-09-05 21:47:34 +000025574fi
cristy8b350f62009-11-15 23:12:43 +000025575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000025576$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25577if test $ac_cv_func_mmap_fixed_mapped = yes; then
25578
cristy8b350f62009-11-15 23:12:43 +000025579$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025580
25581fi
cristycd4c5312009-11-22 01:19:08 +000025582rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025583
cristy3ed852e2009-09-05 21:47:34 +000025584for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025585do :
25586 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025587if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025588 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025589#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025590_ACEOF
25591
25592fi
25593
25594done
25595
cristy3ed852e2009-09-05 21:47:34 +000025596for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025597do :
25598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25599ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025600if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025601 cat >>confdefs.h <<_ACEOF
25602#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25603_ACEOF
25604
25605fi
25606done
25607
25608if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025610$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025611if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025612 $as_echo_n "(cached) " >&6
25613else
cristy8b350f62009-11-15 23:12:43 +000025614 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025615 ac_cv_func_fork_works=cross
25616else
cristy8b350f62009-11-15 23:12:43 +000025617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025618/* end confdefs.h. */
25619$ac_includes_default
25620int
25621main ()
25622{
25623
25624 /* By Ruediger Kuhlmann. */
25625 return fork () < 0;
25626
25627 ;
25628 return 0;
25629}
25630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025631if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025632 ac_cv_func_fork_works=yes
25633else
cristy8b350f62009-11-15 23:12:43 +000025634 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025635fi
cristy8b350f62009-11-15 23:12:43 +000025636rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25637 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025638fi
25639
cristy3ed852e2009-09-05 21:47:34 +000025640fi
cristy8b350f62009-11-15 23:12:43 +000025641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025642$as_echo "$ac_cv_func_fork_works" >&6; }
25643
25644else
25645 ac_cv_func_fork_works=$ac_cv_func_fork
25646fi
25647if test "x$ac_cv_func_fork_works" = xcross; then
25648 case $host in
25649 *-*-amigaos* | *-*-msdosdjgpp*)
25650 # Override, as these systems have only a dummy fork() stub
25651 ac_cv_func_fork_works=no
25652 ;;
25653 *)
25654 ac_cv_func_fork_works=yes
25655 ;;
25656 esac
cristy8b350f62009-11-15 23:12:43 +000025657 { $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 +000025658$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25659fi
25660ac_cv_func_vfork_works=$ac_cv_func_vfork
25661if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025663$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025664if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025665 $as_echo_n "(cached) " >&6
25666else
cristy8b350f62009-11-15 23:12:43 +000025667 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025668 ac_cv_func_vfork_works=cross
25669else
cristy8b350f62009-11-15 23:12:43 +000025670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025671/* end confdefs.h. */
25672/* Thanks to Paul Eggert for this test. */
25673$ac_includes_default
25674#include <sys/wait.h>
25675#ifdef HAVE_VFORK_H
25676# include <vfork.h>
25677#endif
25678/* On some sparc systems, changes by the child to local and incoming
25679 argument registers are propagated back to the parent. The compiler
25680 is told about this with #include <vfork.h>, but some compilers
25681 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25682 static variable whose address is put into a register that is
25683 clobbered by the vfork. */
25684static void
25685#ifdef __cplusplus
25686sparc_address_test (int arg)
25687# else
25688sparc_address_test (arg) int arg;
25689#endif
25690{
25691 static pid_t child;
25692 if (!child) {
25693 child = vfork ();
25694 if (child < 0) {
25695 perror ("vfork");
25696 _exit(2);
25697 }
25698 if (!child) {
25699 arg = getpid();
25700 write(-1, "", 0);
25701 _exit (arg);
25702 }
25703 }
25704}
25705
25706int
25707main ()
25708{
25709 pid_t parent = getpid ();
25710 pid_t child;
25711
25712 sparc_address_test (0);
25713
25714 child = vfork ();
25715
25716 if (child == 0) {
25717 /* Here is another test for sparc vfork register problems. This
25718 test uses lots of local variables, at least as many local
25719 variables as main has allocated so far including compiler
25720 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25721 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25722 reuse the register of parent for one of the local variables,
25723 since it will think that parent can't possibly be used any more
25724 in this routine. Assigning to the local variable will thus
25725 munge parent in the parent process. */
25726 pid_t
25727 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25728 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25729 /* Convince the compiler that p..p7 are live; otherwise, it might
25730 use the same hardware register for all 8 local variables. */
25731 if (p != p1 || p != p2 || p != p3 || p != p4
25732 || p != p5 || p != p6 || p != p7)
25733 _exit(1);
25734
25735 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25736 from child file descriptors. If the child closes a descriptor
25737 before it execs or exits, this munges the parent's descriptor
25738 as well. Test for this by closing stdout in the child. */
25739 _exit(close(fileno(stdout)) != 0);
25740 } else {
25741 int status;
25742 struct stat st;
25743
25744 while (wait(&status) != child)
25745 ;
25746 return (
25747 /* Was there some problem with vforking? */
25748 child < 0
25749
25750 /* Did the child fail? (This shouldn't happen.) */
25751 || status
25752
25753 /* Did the vfork/compiler bug occur? */
25754 || parent != getpid()
25755
25756 /* Did the file descriptor bug occur? */
25757 || fstat(fileno(stdout), &st) != 0
25758 );
25759 }
25760}
25761_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025762if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025763 ac_cv_func_vfork_works=yes
25764else
cristy8b350f62009-11-15 23:12:43 +000025765 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025766fi
cristy8b350f62009-11-15 23:12:43 +000025767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25768 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025769fi
25770
cristy3ed852e2009-09-05 21:47:34 +000025771fi
cristy8b350f62009-11-15 23:12:43 +000025772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025773$as_echo "$ac_cv_func_vfork_works" >&6; }
25774
25775fi;
25776if test "x$ac_cv_func_fork_works" = xcross; then
25777 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025778 { $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 +000025779$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25780fi
25781
25782if test "x$ac_cv_func_vfork_works" = xyes; then
25783
cristy8b350f62009-11-15 23:12:43 +000025784$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025785
25786else
25787
cristy8b350f62009-11-15 23:12:43 +000025788$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025789
25790fi
25791if test "x$ac_cv_func_fork_works" = xyes; then
25792
cristy8b350f62009-11-15 23:12:43 +000025793$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025794
25795fi
25796
cristy8b350f62009-11-15 23:12:43 +000025797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025798$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025799if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025800 $as_echo_n "(cached) " >&6
25801else
cristy8b350f62009-11-15 23:12:43 +000025802 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025803 ac_cv_func_memcmp_working=no
25804else
cristy8b350f62009-11-15 23:12:43 +000025805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025806/* end confdefs.h. */
25807$ac_includes_default
25808int
25809main ()
25810{
25811
25812 /* Some versions of memcmp are not 8-bit clean. */
25813 char c0 = '\100', c1 = '\200', c2 = '\201';
25814 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25815 return 1;
25816
25817 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25818 or more and with at least one buffer not starting on a 4-byte boundary.
25819 William Lewis provided this test program. */
25820 {
25821 char foo[21];
25822 char bar[21];
25823 int i;
25824 for (i = 0; i < 4; i++)
25825 {
25826 char *a = foo + i;
25827 char *b = bar + i;
25828 strcpy (a, "--------01111111");
25829 strcpy (b, "--------10000000");
25830 if (memcmp (a, b, 16) >= 0)
25831 return 1;
25832 }
25833 return 0;
25834 }
25835
25836 ;
25837 return 0;
25838}
25839_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025840if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025841 ac_cv_func_memcmp_working=yes
25842else
cristy8b350f62009-11-15 23:12:43 +000025843 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025844fi
cristy8b350f62009-11-15 23:12:43 +000025845rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25846 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025847fi
25848
cristy3ed852e2009-09-05 21:47:34 +000025849fi
cristy8b350f62009-11-15 23:12:43 +000025850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025851$as_echo "$ac_cv_func_memcmp_working" >&6; }
25852test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25853 *" memcmp.$ac_objext "* ) ;;
25854 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25855 ;;
25856esac
25857
25858
cristy3ed852e2009-09-05 21:47:34 +000025859for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025860do :
25861 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25862ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025863if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025864 cat >>confdefs.h <<_ACEOF
25865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25866_ACEOF
25867
25868fi
25869
25870done
25871
cristy8b350f62009-11-15 23:12:43 +000025872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025873$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025874if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025875 $as_echo_n "(cached) " >&6
25876else
25877 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25878 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25879 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025881/* end confdefs.h. */
25882$ac_includes_default
25883#ifdef HAVE_SYS_SELECT_H
25884# include <sys/select.h>
25885#endif
25886#ifdef HAVE_SYS_SOCKET_H
25887# include <sys/socket.h>
25888#endif
25889
25890int
25891main ()
25892{
25893extern int select ($ac_arg1,
25894 $ac_arg234, $ac_arg234, $ac_arg234,
25895 $ac_arg5);
25896 ;
25897 return 0;
25898}
25899_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025900if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025901 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025902fi
cristy3ed852e2009-09-05 21:47:34 +000025903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25904 done
25905 done
25906done
25907# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025908: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025909
25910fi
cristy8b350f62009-11-15 23:12:43 +000025911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025912$as_echo "$ac_cv_func_select_args" >&6; }
25913ac_save_IFS=$IFS; IFS=','
25914set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25915IFS=$ac_save_IFS
25916shift
25917
25918cat >>confdefs.h <<_ACEOF
25919#define SELECT_TYPE_ARG1 $1
25920_ACEOF
25921
25922
25923cat >>confdefs.h <<_ACEOF
25924#define SELECT_TYPE_ARG234 ($2)
25925_ACEOF
25926
25927
25928cat >>confdefs.h <<_ACEOF
25929#define SELECT_TYPE_ARG5 ($3)
25930_ACEOF
25931
25932rm -f conftest*
25933
cristyda16f162011-02-19 23:52:17 +000025934if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025935 $as_echo_n "(cached) " >&6
25936else
25937 ac_cv_func_setvbuf_reversed=no
25938fi
25939
25940
cristy8b350f62009-11-15 23:12:43 +000025941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025942$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025943if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025944 $as_echo_n "(cached) " >&6
25945else
cristy8b350f62009-11-15 23:12:43 +000025946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025947/* end confdefs.h. */
25948#include <sys/types.h>
25949#include <signal.h>
25950
25951int
25952main ()
25953{
25954return *(signal (0, 0)) (0) == 1;
25955 ;
25956 return 0;
25957}
25958_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025959if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025960 ac_cv_type_signal=int
25961else
cristy8b350f62009-11-15 23:12:43 +000025962 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025963fi
cristy3ed852e2009-09-05 21:47:34 +000025964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25965fi
cristy8b350f62009-11-15 23:12:43 +000025966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo "$ac_cv_type_signal" >&6; }
25968
25969cat >>confdefs.h <<_ACEOF
25970#define RETSIGTYPE $ac_cv_type_signal
25971_ACEOF
25972
25973
cristy8b350f62009-11-15 23:12:43 +000025974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025975$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025976if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025977 $as_echo_n "(cached) " >&6
25978else
cristy8b350f62009-11-15 23:12:43 +000025979 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025980 ac_cv_func_strtod=no
25981else
cristy8b350f62009-11-15 23:12:43 +000025982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025983/* end confdefs.h. */
25984
25985$ac_includes_default
25986#ifndef strtod
25987double strtod ();
25988#endif
25989int
25990main()
25991{
25992 {
25993 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25994 char *string = " +69";
25995 char *term;
25996 double value;
25997 value = strtod (string, &term);
25998 if (value != 69 || term != (string + 4))
25999 return 1;
26000 }
26001
26002 {
26003 /* Under Solaris 2.4, strtod returns the wrong value for the
26004 terminating character under some conditions. */
26005 char *string = "NaN";
26006 char *term;
26007 strtod (string, &term);
26008 if (term != string && *(term - 1) == 0)
26009 return 1;
26010 }
26011 return 0;
26012}
26013
26014_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026015if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026016 ac_cv_func_strtod=yes
26017else
cristy8b350f62009-11-15 23:12:43 +000026018 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000026019fi
cristy8b350f62009-11-15 23:12:43 +000026020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26021 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026022fi
26023
cristy3ed852e2009-09-05 21:47:34 +000026024fi
cristy8b350f62009-11-15 23:12:43 +000026025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo "$ac_cv_func_strtod" >&6; }
26027if test $ac_cv_func_strtod = no; then
26028 case " $LIBOBJS " in
26029 *" strtod.$ac_objext "* ) ;;
26030 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
26031 ;;
26032esac
26033
cristy8b350f62009-11-15 23:12:43 +000026034ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000026035if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026036
cristy3ed852e2009-09-05 21:47:34 +000026037fi
26038
cristy3ed852e2009-09-05 21:47:34 +000026039if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000026040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000026041$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026042if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026043 $as_echo_n "(cached) " >&6
26044else
26045 ac_check_lib_save_LIBS=$LIBS
26046LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026048/* end confdefs.h. */
26049
26050/* Override any GCC internal prototype to avoid an error.
26051 Use char because int might match the return type of a GCC
26052 builtin and then its argument prototype would still apply. */
26053#ifdef __cplusplus
26054extern "C"
26055#endif
26056char pow ();
26057int
26058main ()
26059{
26060return pow ();
26061 ;
26062 return 0;
26063}
26064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026065if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026066 ac_cv_lib_m_pow=yes
26067else
cristy8b350f62009-11-15 23:12:43 +000026068 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000026069fi
cristy8b350f62009-11-15 23:12:43 +000026070rm -f core conftest.err conftest.$ac_objext \
26071 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026072LIBS=$ac_check_lib_save_LIBS
26073fi
cristy8b350f62009-11-15 23:12:43 +000026074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000026075$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000026076if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026077 POW_LIB=-lm
26078else
cristy8b350f62009-11-15 23:12:43 +000026079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000026080$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
26081fi
26082
26083fi
26084
26085fi
26086
cristy7d4a1d62011-10-13 15:54:12 +000026087ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26088if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26089 ac_have_decl=1
26090else
26091 ac_have_decl=0
26092fi
26093
26094cat >>confdefs.h <<_ACEOF
26095#define HAVE_DECL_STRERROR_R $ac_have_decl
26096_ACEOF
26097
26098for ac_func in strerror_r
26099do :
26100 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26101if test "x$ac_cv_func_strerror_r" = xyes; then :
26102 cat >>confdefs.h <<_ACEOF
26103#define HAVE_STRERROR_R 1
26104_ACEOF
26105
26106fi
26107done
26108
26109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26110$as_echo_n "checking whether strerror_r returns char *... " >&6; }
26111if ${ac_cv_func_strerror_r_char_p+:} false; then :
26112 $as_echo_n "(cached) " >&6
26113else
26114
26115 ac_cv_func_strerror_r_char_p=no
26116 if test $ac_cv_have_decl_strerror_r = yes; then
26117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26118/* end confdefs.h. */
26119$ac_includes_default
26120int
26121main ()
26122{
26123
26124 char buf[100];
26125 char x = *strerror_r (0, buf, sizeof buf);
26126 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000026127 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000026128
26129 ;
26130 return 0;
26131}
26132_ACEOF
26133if ac_fn_c_try_compile "$LINENO"; then :
26134 ac_cv_func_strerror_r_char_p=yes
26135fi
26136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26137 else
26138 # strerror_r is not declared. Choose between
26139 # systems that have relatively inaccessible declarations for the
26140 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
26141 # former has a strerror_r that returns char*, while the latter
26142 # has a strerror_r that returns `int'.
26143 # This test should segfault on the DEC system.
26144 if test "$cross_compiling" = yes; then :
26145 :
26146else
26147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26148/* end confdefs.h. */
26149$ac_includes_default
26150 extern char *strerror_r ();
26151int
26152main ()
26153{
26154char buf[100];
26155 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000026156 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000026157 ;
26158 return 0;
26159}
26160_ACEOF
26161if ac_fn_c_try_run "$LINENO"; then :
26162 ac_cv_func_strerror_r_char_p=yes
26163fi
26164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26165 conftest.$ac_objext conftest.beam conftest.$ac_ext
26166fi
26167
26168 fi
26169
26170fi
26171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26172$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26173if test $ac_cv_func_strerror_r_char_p = yes; then
26174
26175$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26176
26177fi
26178
cristy3ed852e2009-09-05 21:47:34 +000026179for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000026180do :
26181 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000026182if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026183 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026184#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000026185_ACEOF
26186
cristy8b350f62009-11-15 23:12:43 +000026187ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000026188if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026189
cristy8b350f62009-11-15 23:12:43 +000026190$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026191
26192fi
26193
26194fi
26195done
26196
26197
26198
cristy161b9262010-03-20 19:34:32 +000026199#
26200# Find math library
26201#
26202MATH_LIBS=''
26203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
26204$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026205if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000026206 $as_echo_n "(cached) " >&6
26207else
26208 ac_check_lib_save_LIBS=$LIBS
26209LIBS="-lm $LIBS"
26210cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26211/* end confdefs.h. */
26212
26213/* Override any GCC internal prototype to avoid an error.
26214 Use char because int might match the return type of a GCC
26215 builtin and then its argument prototype would still apply. */
26216#ifdef __cplusplus
26217extern "C"
26218#endif
26219char sqrt ();
26220int
26221main ()
26222{
26223return sqrt ();
26224 ;
26225 return 0;
26226}
26227_ACEOF
26228if ac_fn_c_try_link "$LINENO"; then :
26229 ac_cv_lib_m_sqrt=yes
26230else
26231 ac_cv_lib_m_sqrt=no
26232fi
26233rm -f core conftest.err conftest.$ac_objext \
26234 conftest$ac_exeext conftest.$ac_ext
26235LIBS=$ac_check_lib_save_LIBS
26236fi
26237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
26238$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000026239if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000026240 MATH_LIBS="-lm"
26241fi
26242
26243LIBS="$MATH_LIBS $LIBS"
26244
26245
cristy85572162013-01-04 19:19:32 +000026246#
26247# Find socket library
26248#
cristy8a5d7f42013-01-06 15:24:33 +000026249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26250$as_echo_n "checking for library containing gethostbyname... " >&6; }
26251if ${ac_cv_search_gethostbyname+:} false; then :
26252 $as_echo_n "(cached) " >&6
26253else
26254 ac_func_search_save_LIBS=$LIBS
26255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26256/* end confdefs.h. */
26257
26258/* Override any GCC internal prototype to avoid an error.
26259 Use char because int might match the return type of a GCC
26260 builtin and then its argument prototype would still apply. */
26261#ifdef __cplusplus
26262extern "C"
26263#endif
26264char gethostbyname ();
26265int
26266main ()
26267{
26268return gethostbyname ();
26269 ;
26270 return 0;
26271}
26272_ACEOF
26273for ac_lib in '' resolv nsl; do
26274 if test -z "$ac_lib"; then
26275 ac_res="none required"
26276 else
26277 ac_res=-l$ac_lib
26278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26279 fi
26280 if ac_fn_c_try_link "$LINENO"; then :
26281 ac_cv_search_gethostbyname=$ac_res
26282fi
26283rm -f core conftest.err conftest.$ac_objext \
26284 conftest$ac_exeext
26285 if ${ac_cv_search_gethostbyname+:} false; then :
26286 break
26287fi
26288done
26289if ${ac_cv_search_gethostbyname+:} false; then :
26290
26291else
26292 ac_cv_search_gethostbyname=no
26293fi
26294rm conftest.$ac_ext
26295LIBS=$ac_func_search_save_LIBS
26296fi
26297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26298$as_echo "$ac_cv_search_gethostbyname" >&6; }
26299ac_res=$ac_cv_search_gethostbyname
26300if test "$ac_res" != no; then :
26301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26302
26303fi
26304
cristy85572162013-01-04 19:19:32 +000026305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
26306$as_echo_n "checking for library containing socket... " >&6; }
26307if ${ac_cv_search_socket+:} false; then :
26308 $as_echo_n "(cached) " >&6
26309else
26310 ac_func_search_save_LIBS=$LIBS
26311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312/* end confdefs.h. */
26313
26314/* Override any GCC internal prototype to avoid an error.
26315 Use char because int might match the return type of a GCC
26316 builtin and then its argument prototype would still apply. */
26317#ifdef __cplusplus
26318extern "C"
26319#endif
26320char socket ();
26321int
26322main ()
26323{
26324return socket ();
26325 ;
26326 return 0;
26327}
26328_ACEOF
26329for ac_lib in '' socket; do
26330 if test -z "$ac_lib"; then
26331 ac_res="none required"
26332 else
26333 ac_res=-l$ac_lib
26334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26335 fi
26336 if ac_fn_c_try_link "$LINENO"; then :
26337 ac_cv_search_socket=$ac_res
26338fi
26339rm -f core conftest.err conftest.$ac_objext \
26340 conftest$ac_exeext
26341 if ${ac_cv_search_socket+:} false; then :
26342 break
26343fi
26344done
26345if ${ac_cv_search_socket+:} false; then :
26346
26347else
26348 ac_cv_search_socket=no
26349fi
26350rm conftest.$ac_ext
26351LIBS=$ac_func_search_save_LIBS
26352fi
26353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
26354$as_echo "$ac_cv_search_socket" >&6; }
26355ac_res=$ac_cv_search_socket
26356if test "$ac_res" != no; then :
26357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26358
cristy85572162013-01-04 19:19:32 +000026359
cristy8a5d7f42013-01-06 15:24:33 +000026360$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000026361
cristy03f187e2013-01-24 00:22:19 +000026362 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000026363
26364fi
26365
26366
cristya29f2b82015-05-30 14:10:30 +000026367for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000026368do :
26369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000026371if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000026372 cat >>confdefs.h <<_ACEOF
26373#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26374_ACEOF
26375
26376fi
26377done
26378
26379
cristye43a45e2009-09-28 14:49:00 +000026380#
26381# Check for clock_gettime().
26382#
cristy8b350f62009-11-15 23:12:43 +000026383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000026384$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026385if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000026386 $as_echo_n "(cached) " >&6
26387else
26388 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000026389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000026390/* end confdefs.h. */
26391
26392/* Override any GCC internal prototype to avoid an error.
26393 Use char because int might match the return type of a GCC
26394 builtin and then its argument prototype would still apply. */
26395#ifdef __cplusplus
26396extern "C"
26397#endif
26398char clock_gettime ();
26399int
26400main ()
26401{
26402return clock_gettime ();
26403 ;
26404 return 0;
26405}
26406_ACEOF
26407for ac_lib in '' rt; do
26408 if test -z "$ac_lib"; then
26409 ac_res="none required"
26410 else
26411 ac_res=-l$ac_lib
26412 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26413 fi
cristy8b350f62009-11-15 23:12:43 +000026414 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000026415 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000026416fi
cristy8b350f62009-11-15 23:12:43 +000026417rm -f core conftest.err conftest.$ac_objext \
26418 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000026419 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000026420 break
26421fi
26422done
cristyda16f162011-02-19 23:52:17 +000026423if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000026424
cristye43a45e2009-09-28 14:49:00 +000026425else
26426 ac_cv_search_clock_gettime=no
26427fi
26428rm conftest.$ac_ext
26429LIBS=$ac_func_search_save_LIBS
26430fi
cristy8b350f62009-11-15 23:12:43 +000026431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000026432$as_echo "$ac_cv_search_clock_gettime" >&6; }
26433ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000026434if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000026435 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26436
26437
cristy8b350f62009-11-15 23:12:43 +000026438$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000026439
cristy8b350f62009-11-15 23:12:43 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000026441$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000026443/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000026444
26445 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000026446int
26447main ()
26448{
26449clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000026450 ;
26451 return 0;
26452}
26453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026454if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000026455
cristyad38abe2012-12-23 23:03:21 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26457$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000026458
cristy8b350f62009-11-15 23:12:43 +000026459$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000026460
26461
26462else
cristyad38abe2012-12-23 23:03:21 +000026463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26464$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000026465
26466fi
cristye43a45e2009-09-28 14:49:00 +000026467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468
26469else
26470
cristy8b350f62009-11-15 23:12:43 +000026471 for ac_func in gettimeofday ftime
26472do :
26473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000026475if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000026476 cat >>confdefs.h <<_ACEOF
26477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26478_ACEOF
26479 break
26480fi
26481done
26482
26483
26484
26485fi
26486
26487
cristy3ed852e2009-09-05 21:47:34 +000026488########
26489#
26490# Check for function prototypes
26491#
26492########
26493
cristy8b350f62009-11-15 23:12:43 +000026494ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000026495#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000026496"
cristyda16f162011-02-19 23:52:17 +000026497if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026498 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026499else
cristy8b350f62009-11-15 23:12:43 +000026500 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026501fi
26502
cristy3ed852e2009-09-05 21:47:34 +000026503cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026504#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026505_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026506ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000026507#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000026508"
cristyda16f162011-02-19 23:52:17 +000026509if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026510 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026511else
cristy8b350f62009-11-15 23:12:43 +000026512 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026513fi
26514
cristy3ed852e2009-09-05 21:47:34 +000026515cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026516#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026517_ACEOF
26518
26519
cristy8b350f62009-11-15 23:12:43 +000026520ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000026521#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000026522"
cristyda16f162011-02-19 23:52:17 +000026523if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026524 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026525else
cristy8b350f62009-11-15 23:12:43 +000026526 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026527fi
26528
cristy3ed852e2009-09-05 21:47:34 +000026529cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026530#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026531_ACEOF
26532
26533
cristy8b350f62009-11-15 23:12:43 +000026534ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000026535#include <stdio.h>
26536#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000026537"
cristyda16f162011-02-19 23:52:17 +000026538if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026539 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026540else
cristy8b350f62009-11-15 23:12:43 +000026541 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026542fi
26543
cristy3ed852e2009-09-05 21:47:34 +000026544cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026545#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026546_ACEOF
26547
26548
cristy3ed852e2009-09-05 21:47:34 +000026549########
26550#
26551# C++ Support Tests (For Magick++)
26552#
26553########
26554have_magick_plus_plus='no'
26555if test "$with_magick_plus_plus" = 'yes'; then
26556 OLIBS="$LIBS"
26557 LIBS=''
26558 ac_ext=cpp
26559ac_cpp='$CXXCPP $CPPFLAGS'
26560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26563
26564
26565 # Full set of headers used...
26566 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
26567 # functional iomanip iosfwd iostream iterator list string strstream utility
26568 ac_ext=cpp
26569ac_cpp='$CXXCPP $CPPFLAGS'
26570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26573
26574 ac_ext=cpp
26575ac_cpp='$CXXCPP $CPPFLAGS'
26576ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26577ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26578ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26579if test -z "$CXX"; then
26580 if test -n "$CCC"; then
26581 CXX=$CCC
26582 else
26583 if test -n "$ac_tool_prefix"; then
26584 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26585 do
26586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26587set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026590if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026591 $as_echo_n "(cached) " >&6
26592else
26593 if test -n "$CXX"; then
26594 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26595else
26596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26597for as_dir in $PATH
26598do
26599 IFS=$as_save_IFS
26600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026603 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026605 break 2
26606 fi
26607done
cristy8b350f62009-11-15 23:12:43 +000026608 done
cristy3ed852e2009-09-05 21:47:34 +000026609IFS=$as_save_IFS
26610
26611fi
26612fi
26613CXX=$ac_cv_prog_CXX
26614if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026616$as_echo "$CXX" >&6; }
26617else
cristy8b350f62009-11-15 23:12:43 +000026618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026619$as_echo "no" >&6; }
26620fi
26621
26622
26623 test -n "$CXX" && break
26624 done
26625fi
26626if test -z "$CXX"; then
26627 ac_ct_CXX=$CXX
26628 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26629do
26630 # Extract the first word of "$ac_prog", so it can be a program name with args.
26631set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026633$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026634if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026635 $as_echo_n "(cached) " >&6
26636else
26637 if test -n "$ac_ct_CXX"; then
26638 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26639else
26640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26641for as_dir in $PATH
26642do
26643 IFS=$as_save_IFS
26644 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026645 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026647 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026649 break 2
26650 fi
26651done
cristy8b350f62009-11-15 23:12:43 +000026652 done
cristy3ed852e2009-09-05 21:47:34 +000026653IFS=$as_save_IFS
26654
26655fi
26656fi
26657ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26658if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026660$as_echo "$ac_ct_CXX" >&6; }
26661else
cristy8b350f62009-11-15 23:12:43 +000026662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo "no" >&6; }
26664fi
26665
26666
26667 test -n "$ac_ct_CXX" && break
26668done
26669
26670 if test "x$ac_ct_CXX" = x; then
26671 CXX="g++"
26672 else
26673 case $cross_compiling:$ac_tool_warned in
26674yes:)
cristy8b350f62009-11-15 23:12:43 +000026675{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026676$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26677ac_tool_warned=yes ;;
26678esac
26679 CXX=$ac_ct_CXX
26680 fi
26681fi
26682
26683 fi
26684fi
26685# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026686$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026687set X $ac_compile
26688ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026689for ac_option in --version -v -V -qversion; do
26690 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026691case "(($ac_try" in
26692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26693 *) ac_try_echo=$ac_try;;
26694esac
cristy8b350f62009-11-15 23:12:43 +000026695eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26696$as_echo "$ac_try_echo"; } >&5
26697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026698 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026699 if test -s conftest.err; then
26700 sed '10a\
26701... rest of stderr output deleted ...
26702 10q' conftest.err >conftest.er1
26703 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026704 fi
cristycd4c5312009-11-22 01:19:08 +000026705 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26707 test $ac_status = 0; }
26708done
cristy3ed852e2009-09-05 21:47:34 +000026709
cristy8b350f62009-11-15 23:12:43 +000026710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026712if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 $as_echo_n "(cached) " >&6
26714else
cristy8b350f62009-11-15 23:12:43 +000026715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026716/* end confdefs.h. */
26717
26718int
26719main ()
26720{
26721#ifndef __GNUC__
26722 choke me
26723#endif
26724
26725 ;
26726 return 0;
26727}
26728_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026729if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026730 ac_compiler_gnu=yes
26731else
cristy8b350f62009-11-15 23:12:43 +000026732 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026733fi
cristy3ed852e2009-09-05 21:47:34 +000026734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26736
26737fi
cristy8b350f62009-11-15 23:12:43 +000026738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026739$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26740if test $ac_compiler_gnu = yes; then
26741 GXX=yes
26742else
26743 GXX=
26744fi
26745ac_test_CXXFLAGS=${CXXFLAGS+set}
26746ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026748$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026749if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026750 $as_echo_n "(cached) " >&6
26751else
26752 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26753 ac_cxx_werror_flag=yes
26754 ac_cv_prog_cxx_g=no
26755 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026757/* end confdefs.h. */
26758
26759int
26760main ()
26761{
26762
26763 ;
26764 return 0;
26765}
26766_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026767if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026768 ac_cv_prog_cxx_g=yes
26769else
cristy8b350f62009-11-15 23:12:43 +000026770 CXXFLAGS=""
26771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026772/* end confdefs.h. */
26773
26774int
26775main ()
26776{
26777
26778 ;
26779 return 0;
26780}
26781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026782if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026783
cristy8b350f62009-11-15 23:12:43 +000026784else
26785 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026786 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026788/* end confdefs.h. */
26789
26790int
26791main ()
26792{
26793
26794 ;
26795 return 0;
26796}
26797_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026798if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026799 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026800fi
cristy3ed852e2009-09-05 21:47:34 +000026801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802fi
cristy3ed852e2009-09-05 21:47:34 +000026803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804fi
cristy3ed852e2009-09-05 21:47:34 +000026805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26806 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26807fi
cristy8b350f62009-11-15 23:12:43 +000026808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026809$as_echo "$ac_cv_prog_cxx_g" >&6; }
26810if test "$ac_test_CXXFLAGS" = set; then
26811 CXXFLAGS=$ac_save_CXXFLAGS
26812elif test $ac_cv_prog_cxx_g = yes; then
26813 if test "$GXX" = yes; then
26814 CXXFLAGS="-g -O2"
26815 else
26816 CXXFLAGS="-g"
26817 fi
26818else
26819 if test "$GXX" = yes; then
26820 CXXFLAGS="-O2"
26821 else
26822 CXXFLAGS=
26823 fi
26824fi
26825ac_ext=cpp
26826ac_cpp='$CXXCPP $CPPFLAGS'
26827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26830
cristy73bd4a52010-10-05 11:24:23 +000026831depcc="$CXX" am_compiler_list=
26832
26833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26834$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026835if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026836 $as_echo_n "(cached) " >&6
26837else
26838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26839 # We make a subdir and do the tests there. Otherwise we can end up
26840 # making bogus files that we don't know about and never remove. For
26841 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026842 # making a dummy file named 'D' -- because '-MD' means "put the output
26843 # in D".
cristy7247bba2012-02-05 16:37:27 +000026844 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026845 mkdir conftest.dir
26846 # Copy depcomp to subdir because otherwise we won't find it if we're
26847 # using a relative directory.
26848 cp "$am_depcomp" conftest.dir
26849 cd conftest.dir
26850 # We will build objects and dependencies in a subdirectory because
26851 # it helps to detect inapplicable dependency modes. For instance
26852 # both Tru64's cc and ICC support -MD to output dependencies as a
26853 # side effect of compilation, but ICC will put the dependencies in
26854 # the current directory while Tru64 will put them in the object
26855 # directory.
26856 mkdir sub
26857
26858 am_cv_CXX_dependencies_compiler_type=none
26859 if test "$am_compiler_list" = ""; then
26860 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26861 fi
26862 am__universal=false
26863 case " $depcc " in #(
26864 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26865 esac
26866
26867 for depmode in $am_compiler_list; do
26868 # Setup a source with many dependencies, because some compilers
26869 # like to wrap large dependency lists on column 80 (with \), and
26870 # we should not choose a depcomp mode which is confused by this.
26871 #
26872 # We need to recreate these files for each test, as the compiler may
26873 # overwrite some of them when testing with obscure command lines.
26874 # This happens at least with the AIX C compiler.
26875 : > sub/conftest.c
26876 for i in 1 2 3 4 5 6; do
26877 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026878 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26879 # Solaris 10 /bin/sh.
26880 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026881 done
26882 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26883
cristyc0890a62012-07-19 00:18:20 +000026884 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026885 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026886 # handle '-M -o', and we need to detect this. Also, some Intel
26887 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026888 am__obj=sub/conftest.${OBJEXT-o}
26889 am__minus_obj="-o $am__obj"
26890 case $depmode in
26891 gcc)
26892 # This depmode causes a compiler race in universal mode.
26893 test "$am__universal" = false || continue
26894 ;;
26895 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026896 # After this tag, mechanisms are not by side-effect, so they'll
26897 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026898 if test "x$enable_dependency_tracking" = xyes; then
26899 continue
26900 else
26901 break
26902 fi
26903 ;;
cristy7247bba2012-02-05 16:37:27 +000026904 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026905 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026906 # not run yet. These depmodes are late enough in the game, and
26907 # so weak that their functioning should not be impacted.
26908 am__obj=conftest.${OBJEXT-o}
26909 am__minus_obj=
26910 ;;
26911 none) break ;;
26912 esac
26913 if depmode=$depmode \
26914 source=sub/conftest.c object=$am__obj \
26915 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26916 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26917 >/dev/null 2>conftest.err &&
26918 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26919 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26920 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26921 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26922 # icc doesn't choke on unknown options, it will just issue warnings
26923 # or remarks (even with -Werror). So we grep stderr for any message
26924 # that says an option was ignored or not supported.
26925 # When given -MP, icc 7.0 and 7.1 complain thusly:
26926 # icc: Command line warning: ignoring option '-M'; no argument required
26927 # The diagnosis changed in icc 8.0:
26928 # icc: Command line remark: option '-MP' not supported
26929 if (grep 'ignoring option' conftest.err ||
26930 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26931 am_cv_CXX_dependencies_compiler_type=$depmode
26932 break
26933 fi
26934 fi
26935 done
26936
26937 cd ..
26938 rm -rf conftest.dir
26939else
26940 am_cv_CXX_dependencies_compiler_type=none
26941fi
26942
26943fi
26944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26945$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26946CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26947
26948 if
26949 test "x$enable_dependency_tracking" != xno \
26950 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26951 am__fastdepCXX_TRUE=
26952 am__fastdepCXX_FALSE='#'
26953else
26954 am__fastdepCXX_TRUE='#'
26955 am__fastdepCXX_FALSE=
26956fi
26957
26958
cristy146497a2015-05-17 22:46:16 +000026959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
cristy73bd4a52010-10-05 11:24:23 +000026960$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026961if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026962 $as_echo_n "(cached) " >&6
26963else
cristy146497a2015-05-17 22:46:16 +000026964 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026965ac_cpp='$CXXCPP $CPPFLAGS'
26966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26969
cristy146497a2015-05-17 22:46:16 +000026970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000026971/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000026972 int f(int x){return 1;}
26973 int f(char x){return 1;}
26974 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000026975int
26976main ()
26977{
26978bool b = true; return f(b);
26979 ;
26980 return 0;
26981}
26982_ACEOF
26983if ac_fn_cxx_try_compile "$LINENO"; then :
26984 ax_cv_cxx_bool=yes
26985else
26986 ax_cv_cxx_bool=no
26987fi
26988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000026989 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000026990ac_cpp='$CXXCPP $CPPFLAGS'
26991ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26992ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26993ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26994
26995
26996fi
26997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26998$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000026999 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000027000
27001$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
27002
27003fi
27004
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
27006$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027007if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027008 $as_echo_n "(cached) " >&6
27009else
cristy17491be2014-06-24 01:10:53 +000027010 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000027011ac_cpp='$CXXCPP $CPPFLAGS'
27012ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27013ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27014ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27015
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017/* end confdefs.h. */
27018namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000027019 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000027020_ACEOF
27021if ac_fn_cxx_try_compile "$LINENO"; then :
27022 ax_cv_cxx_namespaces=yes
27023else
27024 ax_cv_cxx_namespaces=no
27025fi
27026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 ac_ext=cpp
27028ac_cpp='$CXXCPP $CPPFLAGS'
27029ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27030ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27031ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27032
27033
27034fi
27035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
27036$as_echo "$ax_cv_cxx_namespaces" >&6; }
27037if test "$ax_cv_cxx_namespaces" = yes; then
27038
27039$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
27040
27041fi
27042
27043
27044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
27045$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027046if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027047 $as_echo_n "(cached) " >&6
27048else
27049
27050 ac_ext=cpp
27051ac_cpp='$CXXCPP $CPPFLAGS'
27052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27055
27056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27057/* end confdefs.h. */
27058#include <iostream>
27059 std::istream& is = std::cin;
27060int
27061main ()
27062{
27063
27064 ;
27065 return 0;
27066}
27067_ACEOF
27068if ac_fn_cxx_try_compile "$LINENO"; then :
27069 ax_cv_cxx_have_std_namespace=yes
27070else
27071 ax_cv_cxx_have_std_namespace=no
27072fi
27073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27074 ac_ext=cpp
27075ac_cpp='$CXXCPP $CPPFLAGS'
27076ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27077ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27078ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27079
27080
27081fi
27082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
27083$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
27084 if test "$ax_cv_cxx_have_std_namespace" = yes; then
27085
27086$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
27087
27088 fi
27089
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
27091$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027092if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027093 $as_echo_n "(cached) " >&6
27094else
27095
27096
27097 ac_ext=cpp
27098ac_cpp='$CXXCPP $CPPFLAGS'
27099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27102
27103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27104/* end confdefs.h. */
27105#include <iostream>
27106#include <map>
27107#include <iomanip>
27108#include <cmath>
27109#ifdef HAVE_NAMESPACES
27110using namespace std;
27111#endif
27112int
27113main ()
27114{
27115return 0;
27116 ;
27117 return 0;
27118}
27119_ACEOF
27120if ac_fn_cxx_try_compile "$LINENO"; then :
27121 ac_cv_cxx_have_std_libs=yes
27122else
27123 ac_cv_cxx_have_std_libs=no
27124fi
27125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27126 ac_ext=cpp
27127ac_cpp='$CXXCPP $CPPFLAGS'
27128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27131
27132
27133fi
27134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
27135$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
27136if test "$ac_cv_cxx_have_std_libs" = yes; then
27137
27138$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
27139
27140fi
27141
cristy3ed852e2009-09-05 21:47:34 +000027142
27143 OPENMP_CXXFLAGS=
27144 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000027145if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027146 enableval=$enable_openmp;
27147fi
27148
27149 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000027150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
27151$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027152if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 $as_echo_n "(cached) " >&6
27154else
cristy8b350f62009-11-15 23:12:43 +000027155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27156/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000027157
27158#ifndef _OPENMP
27159 choke me
27160#endif
27161#include <omp.h>
27162int main () { return omp_get_num_threads (); }
27163
27164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027165if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027166 ac_cv_prog_cxx_openmp='none needed'
27167else
cristy8b350f62009-11-15 23:12:43 +000027168 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000027169 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
27170 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000027171 ac_save_CXXFLAGS=$CXXFLAGS
27172 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000027173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27174/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000027175
27176#ifndef _OPENMP
27177 choke me
27178#endif
27179#include <omp.h>
27180int main () { return omp_get_num_threads (); }
27181
27182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027183if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000027185fi
cristy8b350f62009-11-15 23:12:43 +000027186rm -f core conftest.err conftest.$ac_objext \
27187 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027188 CXXFLAGS=$ac_save_CXXFLAGS
27189 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
27190 break
27191 fi
27192 done
27193fi
cristy8b350f62009-11-15 23:12:43 +000027194rm -f core conftest.err conftest.$ac_objext \
27195 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027196fi
cristy8b350f62009-11-15 23:12:43 +000027197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027198$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
27199 case $ac_cv_prog_cxx_openmp in #(
27200 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000027201 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000027202 *)
cristy8b350f62009-11-15 23:12:43 +000027203 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000027204 esac
27205 fi
27206
27207
27208 ac_ext=c
27209ac_cpp='$CPP $CPPFLAGS'
27210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27212ac_compiler_gnu=$ac_cv_c_compiler_gnu
27213
27214
cristy8b350f62009-11-15 23:12:43 +000027215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000027216$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
27217 if \
cristy964cb7f2010-04-25 23:18:00 +000027218 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000027219 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000027220 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000027221 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027222 have_magick_plus_plus='yes'
27223 else
27224 have_magick_plus_plus='no (failed tests)'
27225 fi
cristyad38abe2012-12-23 23:03:21 +000027226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
27227$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027228 LIBS="$OLIBS"
27229fi
cristy73bd4a52010-10-05 11:24:23 +000027230 if test "$have_magick_plus_plus" = 'yes'; then
27231 WITH_MAGICK_PLUS_PLUS_TRUE=
27232 WITH_MAGICK_PLUS_PLUS_FALSE='#'
27233else
27234 WITH_MAGICK_PLUS_PLUS_TRUE='#'
27235 WITH_MAGICK_PLUS_PLUS_FALSE=
27236fi
27237
cristy3ed852e2009-09-05 21:47:34 +000027238
27239# Only check for delegate libraries in subdirectories if requested.
27240if test "$enable_delegate_build" != 'no'; then
27241 # Check for delegate sub-directories and add -I & -L options as required.
27242 # This presumes that delegates are installed as detailed in the ImageMagick
27243 # README. If delegates are installed in a standard location where the
27244 # compiler will automatically find them then these options should not be
27245 # required.
27246
27247 #
27248 # Most delegates have includes in the same directory as the library, but not all...
27249 #
27250 # Includes
cristy834307f2015-01-25 00:43:41 +000027251 for dir in bzlib fftw fpx gslib/src jp2 jbig/libjbig jpeg lcms/include lzma magick openjp2/include png tiff/libtiff ttf/include wand webp/src wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000027252 if test -d "$builddir/$dir"; then
27253 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
27254 else
27255 if test -d "$srcdirfull/$dir"; then
27256 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
27257 fi
27258 fi
27259 done
27260
27261 # Libraries
cristy834307f2015-01-25 00:43:41 +000027262 for dir in bzlib fftw fpx gslib/src jbig/libjbig jpeg lcms/src lzma magick openjp2 png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000027263 if test -d "$builddir/$dir/.libs"; then
27264 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
27265 else
27266 if test -d "$srcdirfull/$dir/.libs"; then
27267 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
27268 fi
27269 fi
27270 if test -d "$builddir/$dir"; then
27271 LDFLAGS="$LDFLAGS -L$builddir/$dir"
27272 else
27273 if test -d "$srcdirfull/$dir"; then
27274 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
27275 fi
27276 fi
27277 done
27278fi
27279
27280# Assume that delegate headers reside under same directory as ImageMagick
27281# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000027282MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000027283
27284#
27285# Find the X11 RGB database
27286#
cristy8b350f62009-11-15 23:12:43 +000027287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000027288$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027289if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027290 $as_echo_n "(cached) " >&6
27291else
27292 # Look for the header file in a standard set of common directories.
27293# Check X11 before X11Rn because it is often a symlink to the current release.
27294 for ac_dir in \
27295 /lib/usr/lib/X11 \
27296 /usr/X11/lib \
27297 /usr/X11R4/lib \
27298 /usr/X11R5/lib \
27299 /usr/X11R6/lib \
27300 /usr/X11R7/lib \
27301 /usr/X386/lib \
27302 /usr/XFree86/lib/X11 \
27303 /usr/athena/lib \
27304 /usr/lib \
27305 /usr/lib/X11 \
27306 /usr/lib/X11R4 \
27307 /usr/lib/X11R5 \
27308 /usr/lib/X11R6 \
27309 /usr/lib/X11R7 \
27310 /usr/local/X11/lib \
27311 /usr/local/X11R4/lib \
27312 /usr/local/X11R5/lib \
27313 /usr/local/X11R6/lib \
27314 /usr/local/lib \
27315 /usr/local/lib/X11 \
27316 /usr/local/lib/X11R4 \
27317 /usr/local/lib/X11R5 \
27318 /usr/local/lib/X11R6 \
27319 /usr/local/lib/X11R7 \
27320 /usr/local/x11r5/lib \
27321 /usr/lpp/Xamples/lib \
27322 /usr/openwin/lib \
27323 /usr/openwin/share/lib \
27324 /usr/unsupported/lib \
27325 /usr/x386/lib \
27326 ; do
27327 if test -f "$ac_dir/X11/rgb.txt"; then
27328 im_cv_x_configure="$ac_dir/X11/"
27329 break
27330 elif test -f "$ac_dir/rgb.txt"; then
27331 im_cv_x_configure="$ac_dir/"
27332 break
27333 fi
27334
27335 done
27336fi
cristy8b350f62009-11-15 23:12:43 +000027337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000027338$as_echo "$im_cv_x_configure" >&6; }
27339X11_CONFIGURE_PATH="$im_cv_x_configure"
27340case "${build_os}" in
27341 mingw* )
27342 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
27343 ;;
27344esac
27345
27346cat >>confdefs.h <<_ACEOF
27347#define X11_CONFIGURE_PATH "$X11ConfigurePath"
27348_ACEOF
27349
27350
27351#
27352# Find OpenMP library
27353#
27354GOMP_LIBS=''
27355if test "$enable_openmp" != 'no'; then
27356 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000027357 # Open64 (passes for GCC but uses different OpenMP implementation)
27358 if test "x$GOMP_LIBS" = x ; then
27359 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
27361$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
27362if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
27363 $as_echo_n "(cached) " >&6
27364else
27365 ac_check_lib_save_LIBS=$LIBS
27366LIBS="-lopenmp $LIBS"
27367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27368/* end confdefs.h. */
27369
27370/* Override any GCC internal prototype to avoid an error.
27371 Use char because int might match the return type of a GCC
27372 builtin and then its argument prototype would still apply. */
27373#ifdef __cplusplus
27374extern "C"
27375#endif
27376char omp_get_num_procs ();
27377int
27378main ()
27379{
27380return omp_get_num_procs ();
27381 ;
27382 return 0;
27383}
27384_ACEOF
27385if ac_fn_c_try_link "$LINENO"; then :
27386 ac_cv_lib_openmp_omp_get_num_procs=yes
27387else
27388 ac_cv_lib_openmp_omp_get_num_procs=no
27389fi
27390rm -f core conftest.err conftest.$ac_objext \
27391 conftest$ac_exeext conftest.$ac_ext
27392LIBS=$ac_check_lib_save_LIBS
27393fi
27394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
27395$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
27396if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
27397 GOMP_LIBS="-lopenmp"
27398fi
27399
27400 fi
27401 fi
27402 # GCC
27403 if test "x$GOMP_LIBS" = x ; then
27404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027405$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027406if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027407 $as_echo_n "(cached) " >&6
27408else
27409 ac_check_lib_save_LIBS=$LIBS
27410LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027412/* end confdefs.h. */
27413
27414/* Override any GCC internal prototype to avoid an error.
27415 Use char because int might match the return type of a GCC
27416 builtin and then its argument prototype would still apply. */
27417#ifdef __cplusplus
27418extern "C"
27419#endif
27420char GOMP_parallel_start ();
27421int
27422main ()
27423{
27424return GOMP_parallel_start ();
27425 ;
27426 return 0;
27427}
27428_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027429if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027430 ac_cv_lib_gomp_GOMP_parallel_start=yes
27431else
cristy8b350f62009-11-15 23:12:43 +000027432 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000027433fi
cristy8b350f62009-11-15 23:12:43 +000027434rm -f core conftest.err conftest.$ac_objext \
27435 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027436LIBS=$ac_check_lib_save_LIBS
27437fi
cristy8b350f62009-11-15 23:12:43 +000027438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000027439$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000027440if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027441 GOMP_LIBS="-lgomp"
27442fi
cristy18307f12011-12-30 01:20:16 +000027443
27444 fi
cristy3ed852e2009-09-05 21:47:34 +000027445 else
cristy18307f12011-12-30 01:20:16 +000027446 # Sun CC
27447 if test "x$GOMP_LIBS" = x ; then
27448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027449$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027450if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027451 $as_echo_n "(cached) " >&6
27452else
27453 ac_check_lib_save_LIBS=$LIBS
27454LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027456/* end confdefs.h. */
27457
27458/* Override any GCC internal prototype to avoid an error.
27459 Use char because int might match the return type of a GCC
27460 builtin and then its argument prototype would still apply. */
27461#ifdef __cplusplus
27462extern "C"
27463#endif
27464char sunw_mp_register_warn ();
27465int
27466main ()
27467{
27468return sunw_mp_register_warn ();
27469 ;
27470 return 0;
27471}
27472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027474 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
27475else
cristy8b350f62009-11-15 23:12:43 +000027476 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000027477fi
cristy8b350f62009-11-15 23:12:43 +000027478rm -f core conftest.err conftest.$ac_objext \
27479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027480LIBS=$ac_check_lib_save_LIBS
27481fi
cristy8b350f62009-11-15 23:12:43 +000027482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000027483$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000027484if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027485 GOMP_LIBS="-lmtsk"
27486fi
cristy18307f12011-12-30 01:20:16 +000027487
27488 fi
27489 # AIX xlc
27490 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000027491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027492$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027493if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027494 $as_echo_n "(cached) " >&6
27495else
27496 ac_check_lib_save_LIBS=$LIBS
27497LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027499/* end confdefs.h. */
27500
27501/* Override any GCC internal prototype to avoid an error.
27502 Use char because int might match the return type of a GCC
27503 builtin and then its argument prototype would still apply. */
27504#ifdef __cplusplus
27505extern "C"
27506#endif
27507char _xlsmpFlush ();
27508int
27509main ()
27510{
27511return _xlsmpFlush ();
27512 ;
27513 return 0;
27514}
27515_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027516if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027517 ac_cv_lib_xlsmp__xlsmpFlush=yes
27518else
cristy8b350f62009-11-15 23:12:43 +000027519 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000027520fi
cristy8b350f62009-11-15 23:12:43 +000027521rm -f core conftest.err conftest.$ac_objext \
27522 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027523LIBS=$ac_check_lib_save_LIBS
27524fi
cristy8b350f62009-11-15 23:12:43 +000027525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000027526$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000027527if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027528 GOMP_LIBS="-lxlsmp"
27529fi
cristy18307f12011-12-30 01:20:16 +000027530
27531 fi
27532 # SGI IRIX 6.5 MIPSpro C/C++
27533 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000027534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027535$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027536if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027537 $as_echo_n "(cached) " >&6
27538else
27539 ac_check_lib_save_LIBS=$LIBS
27540LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027542/* end confdefs.h. */
27543
27544/* Override any GCC internal prototype to avoid an error.
27545 Use char because int might match the return type of a GCC
27546 builtin and then its argument prototype would still apply. */
27547#ifdef __cplusplus
27548extern "C"
27549#endif
27550char mp_destroy ();
27551int
27552main ()
27553{
27554return mp_destroy ();
27555 ;
27556 return 0;
27557}
27558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027559if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027560 ac_cv_lib_mp_mp_destroy=yes
27561else
cristy8b350f62009-11-15 23:12:43 +000027562 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000027563fi
cristy8b350f62009-11-15 23:12:43 +000027564rm -f core conftest.err conftest.$ac_objext \
27565 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027566LIBS=$ac_check_lib_save_LIBS
27567fi
cristy8b350f62009-11-15 23:12:43 +000027568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000027569$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000027570if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027571 GOMP_LIBS="-lmp"
27572fi
cristy18307f12011-12-30 01:20:16 +000027573
27574 fi
cristy3ed852e2009-09-05 21:47:34 +000027575 fi
27576 LIBS="$GOMP_LIBS $LIBS"
27577fi
27578
27579
cristy12ac8192014-11-04 13:59:13 +000027580#
cristy3b0097d2014-11-04 15:34:47 +000027581# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000027582#
cristy3b0097d2014-11-04 15:34:47 +000027583have_jemalloc='no'
27584JEMALLOC_LIBS=''
27585if test "$with_jemalloc" != 'no'; then
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
27587$as_echo_n "checking for JEMALLOC support ... " >&6; }
27588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27589$as_echo "" >&6; }
27590 failed=0
27591 passed=0
27592 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
27593if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027594 passed=`expr $passed + 1`
27595else
27596 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027597fi
27598
27599
cristy3b0097d2014-11-04 15:34:47 +000027600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
27601$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
27602if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000027603 $as_echo_n "(cached) " >&6
27604else
27605 ac_check_lib_save_LIBS=$LIBS
27606LIBS="-ljemalloc $LIBS"
27607cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27608/* end confdefs.h. */
27609
27610/* Override any GCC internal prototype to avoid an error.
27611 Use char because int might match the return type of a GCC
27612 builtin and then its argument prototype would still apply. */
27613#ifdef __cplusplus
27614extern "C"
27615#endif
cristy3b0097d2014-11-04 15:34:47 +000027616char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027617int
27618main ()
27619{
cristy3b0097d2014-11-04 15:34:47 +000027620return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027621 ;
27622 return 0;
27623}
27624_ACEOF
27625if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027626 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027627else
cristy3b0097d2014-11-04 15:34:47 +000027628 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027629fi
27630rm -f core conftest.err conftest.$ac_objext \
27631 conftest$ac_exeext conftest.$ac_ext
27632LIBS=$ac_check_lib_save_LIBS
27633fi
cristy3b0097d2014-11-04 15:34:47 +000027634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27635$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27636if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027637 passed=`expr $passed + 1`
27638else
27639 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027640fi
27641
cristy3b0097d2014-11-04 15:34:47 +000027642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27643$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27644 if test $passed -gt 0; then
27645 if test $failed -gt 0; then
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27647$as_echo "no -- some components failed test" >&6; }
27648 have_jemalloc='no (failed tests)'
27649 else
27650 JEMALLOC_LIBS='-ljemalloc'
27651 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027652
cristy3b0097d2014-11-04 15:34:47 +000027653$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027654
cristy3b0097d2014-11-04 15:34:47 +000027655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27656$as_echo "yes" >&6; }
27657 have_jemalloc='yes'
27658 fi
cristy12ac8192014-11-04 13:59:13 +000027659 else
cristy3b0097d2014-11-04 15:34:47 +000027660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27661$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027662 fi
27663fi
cristy3b0097d2014-11-04 15:34:47 +000027664 if test "$have_jemalloc" = 'yes'; then
27665 HasJEMALLOC_TRUE=
27666 HasJEMALLOC_FALSE='#'
27667else
27668 HasJEMALLOC_TRUE='#'
27669 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027670fi
27671
cristy3b0097d2014-11-04 15:34:47 +000027672
27673
cristy3ed852e2009-09-05 21:47:34 +000027674#
27675# Check for umem.
27676#
27677have_umem='no'
27678UMEM_LIBS=''
27679if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027681$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27683$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027684 failed=0
27685 passed=0
cristy8b350f62009-11-15 23:12:43 +000027686 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027687if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027688 passed=`expr $passed + 1`
27689else
27690 failed=`expr $failed + 1`
27691fi
27692
27693
cristy8b350f62009-11-15 23:12:43 +000027694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027695$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027696if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027697 $as_echo_n "(cached) " >&6
27698else
27699 ac_check_lib_save_LIBS=$LIBS
27700LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027702/* end confdefs.h. */
27703
27704/* Override any GCC internal prototype to avoid an error.
27705 Use char because int might match the return type of a GCC
27706 builtin and then its argument prototype would still apply. */
27707#ifdef __cplusplus
27708extern "C"
27709#endif
27710char umem_alloc ();
27711int
27712main ()
27713{
27714return umem_alloc ();
27715 ;
27716 return 0;
27717}
27718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027719if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027720 ac_cv_lib_umem_umem_alloc=yes
27721else
cristy8b350f62009-11-15 23:12:43 +000027722 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027723fi
cristy8b350f62009-11-15 23:12:43 +000027724rm -f core conftest.err conftest.$ac_objext \
27725 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027726LIBS=$ac_check_lib_save_LIBS
27727fi
cristy8b350f62009-11-15 23:12:43 +000027728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027729$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027730if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027731 passed=`expr $passed + 1`
27732else
27733 failed=`expr $failed + 1`
27734fi
27735
cristy8b350f62009-11-15 23:12:43 +000027736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027737$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027738if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027739 $as_echo_n "(cached) " >&6
27740else
27741 ac_check_lib_save_LIBS=$LIBS
27742LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027744/* end confdefs.h. */
27745
27746/* Override any GCC internal prototype to avoid an error.
27747 Use char because int might match the return type of a GCC
27748 builtin and then its argument prototype would still apply. */
27749#ifdef __cplusplus
27750extern "C"
27751#endif
27752char umem_free ();
27753int
27754main ()
27755{
27756return umem_free ();
27757 ;
27758 return 0;
27759}
27760_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027761if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027762 ac_cv_lib_umem_umem_free=yes
27763else
cristy8b350f62009-11-15 23:12:43 +000027764 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027765fi
cristy8b350f62009-11-15 23:12:43 +000027766rm -f core conftest.err conftest.$ac_objext \
27767 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027768LIBS=$ac_check_lib_save_LIBS
27769fi
cristy8b350f62009-11-15 23:12:43 +000027770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027771$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027772if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027773 passed=`expr $passed + 1`
27774else
27775 failed=`expr $failed + 1`
27776fi
27777
cristy8b350f62009-11-15 23:12:43 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027779$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27780 if test $passed -gt 0; then
27781 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27783$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027784 have_umem='no (failed tests)'
27785 else
27786 UMEM_LIBS='-lumem'
27787 LIBS="$UMEM_LIBS $LIBS"
27788
cristy8b350f62009-11-15 23:12:43 +000027789$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027790
cristyad38abe2012-12-23 23:03:21 +000027791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27792$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027793 have_umem='yes'
27794 fi
27795 else
cristyad38abe2012-12-23 23:03:21 +000027796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27797$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027798 fi
27799fi
cristy73bd4a52010-10-05 11:24:23 +000027800 if test "$have_umem" = 'yes'; then
27801 HasUMEM_TRUE=
27802 HasUMEM_FALSE='#'
27803else
27804 HasUMEM_TRUE='#'
27805 HasUMEM_FALSE=
27806fi
27807
cristy3ed852e2009-09-05 21:47:34 +000027808
27809
27810#
27811# Add support for ccmalloc memory debugging library if requested
27812#
27813have_ccmalloc='no'
27814CCMALLOC_LIBS=''
27815if test "$enable_ccmalloc" = 'yes'; then
27816 # Extract the first word of "ccmalloc", so it can be a program name with args.
27817set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027819$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027820if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027821 $as_echo_n "(cached) " >&6
27822else
27823 case $CCMALLOCDelegate in
27824 [\\/]* | ?:[\\/]*)
27825 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27826 ;;
27827 *)
27828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27829for as_dir in $PATH
27830do
27831 IFS=$as_save_IFS
27832 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027833 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027835 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027837 break 2
27838 fi
27839done
cristy8b350f62009-11-15 23:12:43 +000027840 done
cristy3ed852e2009-09-05 21:47:34 +000027841IFS=$as_save_IFS
27842
27843 ;;
27844esac
27845fi
27846CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27847if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027849$as_echo "$CCMALLOCDelegate" >&6; }
27850else
cristy8b350f62009-11-15 23:12:43 +000027851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027852$as_echo "no" >&6; }
27853fi
27854
27855
27856 if test -n "$CCMALLOCDelegate"; then
27857 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27858 OLIBS="$LIBS"
27859 # Assume that gcc is used with ccmalloc.
27860 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027863if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 $as_echo_n "(cached) " >&6
27865else
27866 ac_check_lib_save_LIBS=$LIBS
27867LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869/* end confdefs.h. */
27870
27871/* Override any GCC internal prototype to avoid an error.
27872 Use char because int might match the return type of a GCC
27873 builtin and then its argument prototype would still apply. */
27874#ifdef __cplusplus
27875extern "C"
27876#endif
27877char ccmalloc_malloc ();
27878int
27879main ()
27880{
27881return ccmalloc_malloc ();
27882 ;
27883 return 0;
27884}
27885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027887 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27888else
cristy8b350f62009-11-15 23:12:43 +000027889 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027890fi
cristy8b350f62009-11-15 23:12:43 +000027891rm -f core conftest.err conftest.$ac_objext \
27892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027893LIBS=$ac_check_lib_save_LIBS
27894fi
cristy8b350f62009-11-15 23:12:43 +000027895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027896$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027897if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027898 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27899fi
27900
27901 if test -n "$CCMALLOC_LIBS"; then
27902 LIBS="$OLIBS"
27903 LIBS="$LIBS $CCMALLOC_LIBS"
27904 have_ccmalloc='yes'
27905 else
27906 LIBS="$OLIBS"
27907 fi
27908 fi
27909fi
27910
27911#
cristy944e51f2013-04-16 18:45:02 +000027912# Add support for 'huge pages' if requested
27913#
27914if test "x$enable_hugepages" != "xno"; then :
27915
27916
27917$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
27918
27919
27920fi
27921
27922#
cristy3ed852e2009-09-05 21:47:34 +000027923# Add support for efence memory debugging library if requested
27924#
27925if test "$enable_efence" = 'yes'; then
27926 EFENCE_LIBS='-lefence'
27927 LIBS="$EFENCE_LIBS $LIBS"
27928fi
27929
cristy3ed852e2009-09-05 21:47:34 +000027930
27931#
27932# Check for BZLIB
27933#
27934
27935
27936# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027937if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027938 withval=$with_bzlib; with_bzlib=$withval
27939else
27940 with_bzlib='yes'
27941fi
27942
27943
27944if test "$with_bzlib" != 'yes'; then
27945 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27946fi
27947
27948have_bzlib='no'
27949if test "$with_bzlib" != 'no'; then
27950 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000027951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27952$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000027953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027954$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27956$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027957 failed=0
27958 passed=0
27959 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027960 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027961if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027962 passed=`expr $passed + 1`
27963else
27964 failed=`expr $failed + 1`
27965fi
27966
27967
cristy8b350f62009-11-15 23:12:43 +000027968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027969$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027970if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027971 $as_echo_n "(cached) " >&6
27972else
27973 ac_check_lib_save_LIBS=$LIBS
27974LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027976/* end confdefs.h. */
27977
27978/* Override any GCC internal prototype to avoid an error.
27979 Use char because int might match the return type of a GCC
27980 builtin and then its argument prototype would still apply. */
27981#ifdef __cplusplus
27982extern "C"
27983#endif
27984char BZ2_bzDecompress ();
27985int
27986main ()
27987{
27988return BZ2_bzDecompress ();
27989 ;
27990 return 0;
27991}
27992_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027993if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027994 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27995else
cristy8b350f62009-11-15 23:12:43 +000027996 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027997fi
cristy8b350f62009-11-15 23:12:43 +000027998rm -f core conftest.err conftest.$ac_objext \
27999 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028000LIBS=$ac_check_lib_save_LIBS
28001fi
cristy8b350f62009-11-15 23:12:43 +000028002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028003$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028004if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028005 found_libbz=`expr $found_libbz + 1`
28006fi
28007
28008 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028010$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028011if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028012 $as_echo_n "(cached) " >&6
28013else
28014 ac_check_lib_save_LIBS=$LIBS
28015LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028017/* end confdefs.h. */
28018
28019/* Override any GCC internal prototype to avoid an error.
28020 Use char because int might match the return type of a GCC
28021 builtin and then its argument prototype would still apply. */
28022#ifdef __cplusplus
28023extern "C"
28024#endif
28025char _imp__BZ2_decompress ();
28026int
28027main ()
28028{
28029return _imp__BZ2_decompress ();
28030 ;
28031 return 0;
28032}
28033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028034if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028035 ac_cv_lib_bz2__imp__BZ2_decompress=yes
28036else
cristy8b350f62009-11-15 23:12:43 +000028037 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000028038fi
cristy8b350f62009-11-15 23:12:43 +000028039rm -f core conftest.err conftest.$ac_objext \
28040 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028041LIBS=$ac_check_lib_save_LIBS
28042fi
cristy8b350f62009-11-15 23:12:43 +000028043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028045if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 found_libbz=`expr $found_libbz + 1`
28047fi
28048
28049 fi
28050 if test $found_libbz -gt 0; then
28051 passed=`expr $passed + 1`
28052 else
28053 failed=`expr $failed + 1`
28054 fi
cristy8b350f62009-11-15 23:12:43 +000028055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028056$as_echo_n "checking if BZLIB package is complete... " >&6; }
28057 if test $passed -gt 0; then
28058 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28060$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028061 have_bzlib='no (failed tests)'
28062 else
28063 BZLIB_LIBS='-lbz2'
28064 LIBS="$BZLIB_LIBS $LIBS"
28065
cristy8b350f62009-11-15 23:12:43 +000028066$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028067
cristyad38abe2012-12-23 23:03:21 +000028068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28069$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028070 have_bzlib='yes'
28071 fi
28072 else
cristyad38abe2012-12-23 23:03:21 +000028073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28074$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028075 fi
28076fi
cristy73bd4a52010-10-05 11:24:23 +000028077 if test "$have_bzlib" = 'yes'; then
28078 BZLIB_DELEGATE_TRUE=
28079 BZLIB_DELEGATE_FALSE='#'
28080else
28081 BZLIB_DELEGATE_TRUE='#'
28082 BZLIB_DELEGATE_FALSE=
28083fi
28084
cristy3ed852e2009-09-05 21:47:34 +000028085
28086
28087#
28088# Find the X11 include and library directories.
28089#
28090IPC_LIBS=''
28091X11_LIBS=''
28092XEXT_LIBS=''
28093XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000028095$as_echo_n "checking for X... " >&6; }
28096
28097
28098# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000028099if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000028100 withval=$with_x;
28101fi
28102
28103# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28104if test "x$with_x" = xno; then
28105 # The user explicitly disabled X.
28106 have_x=disabled
28107else
28108 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000028109 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000028110 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000028111 $as_echo_n "(cached) " >&6
28112else
28113 # One or both of the vars are not set, and there is no cached value.
28114ac_x_includes=no ac_x_libraries=no
28115rm -f -r conftest.dir
28116if mkdir conftest.dir; then
28117 cd conftest.dir
28118 cat >Imakefile <<'_ACEOF'
28119incroot:
28120 @echo incroot='${INCROOT}'
28121usrlibdir:
28122 @echo usrlibdir='${USRLIBDIR}'
28123libdir:
28124 @echo libdir='${LIBDIR}'
28125_ACEOF
28126 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000028127 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000028128 for ac_var in incroot usrlibdir libdir; do
28129 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28130 done
28131 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28132 for ac_extension in a so sl dylib la dll; do
28133 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28134 test -f "$ac_im_libdir/libX11.$ac_extension"; then
28135 ac_im_usrlibdir=$ac_im_libdir; break
28136 fi
28137 done
28138 # Screen out bogus values from the imake configuration. They are
28139 # bogus both because they are the default anyway, and because
28140 # using them would break gcc on systems where it needs fixed includes.
28141 case $ac_im_incroot in
28142 /usr/include) ac_x_includes= ;;
28143 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28144 esac
28145 case $ac_im_usrlibdir in
28146 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
28147 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28148 esac
28149 fi
28150 cd ..
28151 rm -f -r conftest.dir
28152fi
28153
28154# Standard set of common directories for X headers.
28155# Check X11 before X11Rn because it is often a symlink to the current release.
28156ac_x_header_dirs='
28157/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000028158/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000028159/usr/X11R6/include
28160/usr/X11R5/include
28161/usr/X11R4/include
28162
28163/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000028164/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000028165/usr/include/X11R6
28166/usr/include/X11R5
28167/usr/include/X11R4
28168
28169/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000028170/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000028171/usr/local/X11R6/include
28172/usr/local/X11R5/include
28173/usr/local/X11R4/include
28174
28175/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000028176/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000028177/usr/local/include/X11R6
28178/usr/local/include/X11R5
28179/usr/local/include/X11R4
28180
28181/usr/X386/include
28182/usr/x386/include
28183/usr/XFree86/include/X11
28184
28185/usr/include
28186/usr/local/include
28187/usr/unsupported/include
28188/usr/athena/include
28189/usr/local/x11r5/include
28190/usr/lpp/Xamples/include
28191
28192/usr/openwin/include
28193/usr/openwin/share/include'
28194
28195if test "$ac_x_includes" = no; then
28196 # Guess where to find include files, by looking for Xlib.h.
28197 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000028198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028199/* end confdefs.h. */
28200#include <X11/Xlib.h>
28201_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028202if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000028203 # We can compile using X headers with no special include directory.
28204ac_x_includes=
28205else
cristyc7083c12009-10-14 03:16:55 +000028206 for ac_dir in $ac_x_header_dirs; do
28207 if test -r "$ac_dir/X11/Xlib.h"; then
28208 ac_x_includes=$ac_dir
28209 break
28210 fi
28211done
28212fi
cristyda16f162011-02-19 23:52:17 +000028213rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028214fi # $ac_x_includes = no
28215
28216if test "$ac_x_libraries" = no; then
28217 # Check for the libraries.
28218 # See if we find them without any special options.
28219 # Don't add to $LIBS permanently.
28220 ac_save_LIBS=$LIBS
28221 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028223/* end confdefs.h. */
28224#include <X11/Xlib.h>
28225int
28226main ()
28227{
28228XrmInitialize ()
28229 ;
28230 return 0;
28231}
28232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028233if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000028234 LIBS=$ac_save_LIBS
28235# We can link X programs with no special library path.
28236ac_x_libraries=
28237else
cristy8b350f62009-11-15 23:12:43 +000028238 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000028239for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28240do
28241 # Don't even attempt the hair of trying to link an X program!
28242 for ac_extension in a so sl dylib la dll; do
28243 if test -r "$ac_dir/libX11.$ac_extension"; then
28244 ac_x_libraries=$ac_dir
28245 break 2
28246 fi
28247 done
28248done
28249fi
cristy8b350f62009-11-15 23:12:43 +000028250rm -f core conftest.err conftest.$ac_objext \
28251 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028252fi # $ac_x_libraries = no
28253
28254case $ac_x_includes,$ac_x_libraries in #(
28255 no,* | *,no | *\'*)
28256 # Didn't find X, or a directory has "'" in its name.
28257 ac_cv_have_x="have_x=no";; #(
28258 *)
28259 # Record where we found X for the cache.
28260 ac_cv_have_x="have_x=yes\
28261 ac_x_includes='$ac_x_includes'\
28262 ac_x_libraries='$ac_x_libraries'"
28263esac
28264fi
28265;; #(
28266 *) have_x=yes;;
28267 esac
28268 eval "$ac_cv_have_x"
28269fi # $with_x != no
28270
28271if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000028272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000028273$as_echo "$have_x" >&6; }
28274 no_x=yes
28275else
28276 # If each of the values was on the command line, it overrides each guess.
28277 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28278 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28279 # Update the cache value to reflect the command line values.
28280 ac_cv_have_x="have_x=yes\
28281 ac_x_includes='$x_includes'\
28282 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000028283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000028284$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
28285fi
28286
cristy3ed852e2009-09-05 21:47:34 +000028287if test "$no_x" = yes; then
28288 # Not all programs may use this symbol, but it does not hurt to define it.
28289
cristy8b350f62009-11-15 23:12:43 +000028290$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028291
28292 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28293else
28294 if test -n "$x_includes"; then
28295 X_CFLAGS="$X_CFLAGS -I$x_includes"
28296 fi
28297
28298 # It would also be nice to do this for all -L options, not just this one.
28299 if test -n "$x_libraries"; then
28300 X_LIBS="$X_LIBS -L$x_libraries"
28301 # For Solaris; some versions of Sun CC require a space after -R and
28302 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000028303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo_n "checking whether -R must be followed by a space... " >&6; }
28305 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28306 ac_xsave_c_werror_flag=$ac_c_werror_flag
28307 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000028308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028309/* end confdefs.h. */
28310
28311int
28312main ()
28313{
28314
28315 ;
28316 return 0;
28317}
28318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028319if ac_fn_c_try_link "$LINENO"; then :
28320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028321$as_echo "no" >&6; }
28322 X_LIBS="$X_LIBS -R$x_libraries"
28323else
cristy8b350f62009-11-15 23:12:43 +000028324 LIBS="$ac_xsave_LIBS -R $x_libraries"
28325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028326/* end confdefs.h. */
28327
28328int
28329main ()
28330{
28331
28332 ;
28333 return 0;
28334}
28335_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028336if ac_fn_c_try_link "$LINENO"; then :
28337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028338$as_echo "yes" >&6; }
28339 X_LIBS="$X_LIBS -R $x_libraries"
28340else
cristy8b350f62009-11-15 23:12:43 +000028341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo "neither works" >&6; }
28343fi
cristy8b350f62009-11-15 23:12:43 +000028344rm -f core conftest.err conftest.$ac_objext \
28345 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028346fi
cristy8b350f62009-11-15 23:12:43 +000028347rm -f core conftest.err conftest.$ac_objext \
28348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028349 ac_c_werror_flag=$ac_xsave_c_werror_flag
28350 LIBS=$ac_xsave_LIBS
28351 fi
28352
28353 # Check for system-dependent libraries X programs must link with.
28354 # Do this before checking for the system-independent R6 libraries
28355 # (-lICE), since we may need -lsocket or whatever for X linking.
28356
28357 if test "$ISC" = yes; then
28358 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28359 else
28360 # Martyn Johnson says this is needed for Ultrix, if the X
28361 # libraries were built with DECnet support. And Karl Berry says
28362 # the Alpha needs dnet_stub (dnet does not exist).
28363 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000028364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028365/* end confdefs.h. */
28366
28367/* Override any GCC internal prototype to avoid an error.
28368 Use char because int might match the return type of a GCC
28369 builtin and then its argument prototype would still apply. */
28370#ifdef __cplusplus
28371extern "C"
28372#endif
28373char XOpenDisplay ();
28374int
28375main ()
28376{
28377return XOpenDisplay ();
28378 ;
28379 return 0;
28380}
28381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028382if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028383
cristy8b350f62009-11-15 23:12:43 +000028384else
28385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000028386$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028387if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028388 $as_echo_n "(cached) " >&6
28389else
28390 ac_check_lib_save_LIBS=$LIBS
28391LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028393/* end confdefs.h. */
28394
28395/* Override any GCC internal prototype to avoid an error.
28396 Use char because int might match the return type of a GCC
28397 builtin and then its argument prototype would still apply. */
28398#ifdef __cplusplus
28399extern "C"
28400#endif
28401char dnet_ntoa ();
28402int
28403main ()
28404{
28405return dnet_ntoa ();
28406 ;
28407 return 0;
28408}
28409_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028410if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028411 ac_cv_lib_dnet_dnet_ntoa=yes
28412else
cristy8b350f62009-11-15 23:12:43 +000028413 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000028414fi
cristy8b350f62009-11-15 23:12:43 +000028415rm -f core conftest.err conftest.$ac_objext \
28416 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028417LIBS=$ac_check_lib_save_LIBS
28418fi
cristy8b350f62009-11-15 23:12:43 +000028419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000028420$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000028421if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028422 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28423fi
28424
28425 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000028426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000028427$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028428if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028429 $as_echo_n "(cached) " >&6
28430else
28431 ac_check_lib_save_LIBS=$LIBS
28432LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028434/* end confdefs.h. */
28435
28436/* Override any GCC internal prototype to avoid an error.
28437 Use char because int might match the return type of a GCC
28438 builtin and then its argument prototype would still apply. */
28439#ifdef __cplusplus
28440extern "C"
28441#endif
28442char dnet_ntoa ();
28443int
28444main ()
28445{
28446return dnet_ntoa ();
28447 ;
28448 return 0;
28449}
28450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028451if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028452 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28453else
cristy8b350f62009-11-15 23:12:43 +000028454 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000028455fi
cristy8b350f62009-11-15 23:12:43 +000028456rm -f core conftest.err conftest.$ac_objext \
28457 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028458LIBS=$ac_check_lib_save_LIBS
28459fi
cristy8b350f62009-11-15 23:12:43 +000028460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000028461$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000028462if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028463 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28464fi
28465
28466 fi
28467fi
cristy8b350f62009-11-15 23:12:43 +000028468rm -f core conftest.err conftest.$ac_objext \
28469 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028470 LIBS="$ac_xsave_LIBS"
28471
28472 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28473 # to get the SysV transport functions.
28474 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28475 # needs -lnsl.
28476 # The nsl library prevents programs from opening the X display
28477 # on Irix 5.2, according to T.E. Dickey.
28478 # The functions gethostbyname, getservbyname, and inet_addr are
28479 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000028480 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000028481if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028482
cristy3ed852e2009-09-05 21:47:34 +000028483fi
28484
cristy3ed852e2009-09-05 21:47:34 +000028485 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000028486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028487$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028488if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028489 $as_echo_n "(cached) " >&6
28490else
28491 ac_check_lib_save_LIBS=$LIBS
28492LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028494/* end confdefs.h. */
28495
28496/* Override any GCC internal prototype to avoid an error.
28497 Use char because int might match the return type of a GCC
28498 builtin and then its argument prototype would still apply. */
28499#ifdef __cplusplus
28500extern "C"
28501#endif
28502char gethostbyname ();
28503int
28504main ()
28505{
28506return gethostbyname ();
28507 ;
28508 return 0;
28509}
28510_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028511if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028512 ac_cv_lib_nsl_gethostbyname=yes
28513else
cristy8b350f62009-11-15 23:12:43 +000028514 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000028515fi
cristy8b350f62009-11-15 23:12:43 +000028516rm -f core conftest.err conftest.$ac_objext \
28517 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028518LIBS=$ac_check_lib_save_LIBS
28519fi
cristy8b350f62009-11-15 23:12:43 +000028520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000028521$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000028522if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028523 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28524fi
28525
28526 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000028527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000028528$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028529if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028530 $as_echo_n "(cached) " >&6
28531else
28532 ac_check_lib_save_LIBS=$LIBS
28533LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028535/* end confdefs.h. */
28536
28537/* Override any GCC internal prototype to avoid an error.
28538 Use char because int might match the return type of a GCC
28539 builtin and then its argument prototype would still apply. */
28540#ifdef __cplusplus
28541extern "C"
28542#endif
28543char gethostbyname ();
28544int
28545main ()
28546{
28547return gethostbyname ();
28548 ;
28549 return 0;
28550}
28551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028553 ac_cv_lib_bsd_gethostbyname=yes
28554else
cristy8b350f62009-11-15 23:12:43 +000028555 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000028556fi
cristy8b350f62009-11-15 23:12:43 +000028557rm -f core conftest.err conftest.$ac_objext \
28558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028559LIBS=$ac_check_lib_save_LIBS
28560fi
cristy8b350f62009-11-15 23:12:43 +000028561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000028562$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000028563if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028564 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28565fi
28566
28567 fi
28568 fi
28569
28570 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28571 # socket/setsockopt and other routines are undefined under SCO ODT
28572 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28573 # on later versions), says Simon Leinen: it contains gethostby*
28574 # variants that don't use the name server (or something). -lsocket
28575 # must be given before -lnsl if both are needed. We assume that
28576 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000028577 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000028578if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028579
cristy3ed852e2009-09-05 21:47:34 +000028580fi
28581
cristy3ed852e2009-09-05 21:47:34 +000028582 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000028583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000028584$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028585if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028586 $as_echo_n "(cached) " >&6
28587else
28588 ac_check_lib_save_LIBS=$LIBS
28589LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028591/* end confdefs.h. */
28592
28593/* Override any GCC internal prototype to avoid an error.
28594 Use char because int might match the return type of a GCC
28595 builtin and then its argument prototype would still apply. */
28596#ifdef __cplusplus
28597extern "C"
28598#endif
28599char connect ();
28600int
28601main ()
28602{
28603return connect ();
28604 ;
28605 return 0;
28606}
28607_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028608if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028609 ac_cv_lib_socket_connect=yes
28610else
cristy8b350f62009-11-15 23:12:43 +000028611 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028612fi
cristy8b350f62009-11-15 23:12:43 +000028613rm -f core conftest.err conftest.$ac_objext \
28614 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028615LIBS=$ac_check_lib_save_LIBS
28616fi
cristy8b350f62009-11-15 23:12:43 +000028617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028618$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028619if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028620 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28621fi
28622
28623 fi
28624
28625 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028626 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028627if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028628
cristy3ed852e2009-09-05 21:47:34 +000028629fi
28630
cristy3ed852e2009-09-05 21:47:34 +000028631 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028633$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028634if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028635 $as_echo_n "(cached) " >&6
28636else
28637 ac_check_lib_save_LIBS=$LIBS
28638LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028640/* end confdefs.h. */
28641
28642/* Override any GCC internal prototype to avoid an error.
28643 Use char because int might match the return type of a GCC
28644 builtin and then its argument prototype would still apply. */
28645#ifdef __cplusplus
28646extern "C"
28647#endif
28648char remove ();
28649int
28650main ()
28651{
28652return remove ();
28653 ;
28654 return 0;
28655}
28656_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028657if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028658 ac_cv_lib_posix_remove=yes
28659else
cristy8b350f62009-11-15 23:12:43 +000028660 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028661fi
cristy8b350f62009-11-15 23:12:43 +000028662rm -f core conftest.err conftest.$ac_objext \
28663 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028664LIBS=$ac_check_lib_save_LIBS
28665fi
cristy8b350f62009-11-15 23:12:43 +000028666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028667$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028668if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28670fi
28671
28672 fi
28673
28674 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028675 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028676if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028677
cristy3ed852e2009-09-05 21:47:34 +000028678fi
28679
cristy3ed852e2009-09-05 21:47:34 +000028680 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028682$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028683if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028684 $as_echo_n "(cached) " >&6
28685else
28686 ac_check_lib_save_LIBS=$LIBS
28687LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028689/* end confdefs.h. */
28690
28691/* Override any GCC internal prototype to avoid an error.
28692 Use char because int might match the return type of a GCC
28693 builtin and then its argument prototype would still apply. */
28694#ifdef __cplusplus
28695extern "C"
28696#endif
28697char shmat ();
28698int
28699main ()
28700{
28701return shmat ();
28702 ;
28703 return 0;
28704}
28705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028707 ac_cv_lib_ipc_shmat=yes
28708else
cristy8b350f62009-11-15 23:12:43 +000028709 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028710fi
cristy8b350f62009-11-15 23:12:43 +000028711rm -f core conftest.err conftest.$ac_objext \
28712 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028713LIBS=$ac_check_lib_save_LIBS
28714fi
cristy8b350f62009-11-15 23:12:43 +000028715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028716$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028717if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028718 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28719fi
28720
28721 fi
28722 fi
28723
28724 # Check for libraries that X11R6 Xt/Xaw programs need.
28725 ac_save_LDFLAGS=$LDFLAGS
28726 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28727 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28728 # check for ICE first), but we must link in the order -lSM -lICE or
28729 # we get undefined symbols. So assume we have SM if we have ICE.
28730 # These have to be linked with before -lX11, unlike the other
28731 # libraries we check for below, so use a different variable.
28732 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028734$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028735if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028736 $as_echo_n "(cached) " >&6
28737else
28738 ac_check_lib_save_LIBS=$LIBS
28739LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028741/* end confdefs.h. */
28742
28743/* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28746#ifdef __cplusplus
28747extern "C"
28748#endif
28749char IceConnectionNumber ();
28750int
28751main ()
28752{
28753return IceConnectionNumber ();
28754 ;
28755 return 0;
28756}
28757_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028758if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028759 ac_cv_lib_ICE_IceConnectionNumber=yes
28760else
cristy8b350f62009-11-15 23:12:43 +000028761 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028762fi
cristy8b350f62009-11-15 23:12:43 +000028763rm -f core conftest.err conftest.$ac_objext \
28764 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028765LIBS=$ac_check_lib_save_LIBS
28766fi
cristy8b350f62009-11-15 23:12:43 +000028767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028768$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028769if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028770 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28771fi
28772
28773 LDFLAGS=$ac_save_LDFLAGS
28774
28775fi
28776
28777if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28779$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028781$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28783$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028784 LDFLAGS="$LDFLAGS $X_LIBS"
28785 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28786 LIBS="$X11_LIBS $LIBS"
28787 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28788
28789
cristy8b350f62009-11-15 23:12:43 +000028790$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028791
28792 #
28793 # Check for X11 shared memory extension
28794 #
28795 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028796 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028797if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028798 have_shmctl='yes'
28799fi
28800
28801 if test "$have_shmctl" != 'yes'; then
28802 PERSIST_LIBS=$LIBS
28803 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028805/* end confdefs.h. */
28806
28807/* Override any GCC internal prototype to avoid an error.
28808 Use char because int might match the return type of a GCC
28809 builtin and then its argument prototype would still apply. */
28810#ifdef __cplusplus
28811extern "C"
28812#endif
28813char shmctl ();
28814int
28815main ()
28816{
28817return shmctl ();
28818 ;
28819 return 0;
28820}
28821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028823 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028824fi
cristy8b350f62009-11-15 23:12:43 +000028825rm -f core conftest.err conftest.$ac_objext \
28826 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028827 LIBS=$PERSIST_LIBS
28828 fi
28829
28830 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028833if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028834 $as_echo_n "(cached) " >&6
28835else
28836 ac_check_lib_save_LIBS=$LIBS
28837LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028839/* end confdefs.h. */
28840
28841/* Override any GCC internal prototype to avoid an error.
28842 Use char because int might match the return type of a GCC
28843 builtin and then its argument prototype would still apply. */
28844#ifdef __cplusplus
28845extern "C"
28846#endif
28847char XShmAttach ();
28848int
28849main ()
28850{
28851return XShmAttach ();
28852 ;
28853 return 0;
28854}
28855_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028856if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028857 ac_cv_lib_Xext_XShmAttach=yes
28858else
cristy8b350f62009-11-15 23:12:43 +000028859 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028860fi
cristy8b350f62009-11-15 23:12:43 +000028861rm -f core conftest.err conftest.$ac_objext \
28862 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028863LIBS=$ac_check_lib_save_LIBS
28864fi
cristy8b350f62009-11-15 23:12:43 +000028865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028866$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028867if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028868 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028869$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028870
28871fi
28872
28873 fi
28874
28875 #
28876 # Check for X11 shape extension
28877 #
cristy8b350f62009-11-15 23:12:43 +000028878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028879$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028880if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028881 $as_echo_n "(cached) " >&6
28882else
28883 ac_check_lib_save_LIBS=$LIBS
28884LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028886/* end confdefs.h. */
28887
28888/* Override any GCC internal prototype to avoid an error.
28889 Use char because int might match the return type of a GCC
28890 builtin and then its argument prototype would still apply. */
28891#ifdef __cplusplus
28892extern "C"
28893#endif
28894char XShapeCombineMask ();
28895int
28896main ()
28897{
28898return XShapeCombineMask ();
28899 ;
28900 return 0;
28901}
28902_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028903if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028904 ac_cv_lib_Xext_XShapeCombineMask=yes
28905else
cristy8b350f62009-11-15 23:12:43 +000028906 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028907fi
cristy8b350f62009-11-15 23:12:43 +000028908rm -f core conftest.err conftest.$ac_objext \
28909 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028910LIBS=$ac_check_lib_save_LIBS
28911fi
cristy8b350f62009-11-15 23:12:43 +000028912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028913$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028914if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028916$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028917
28918fi
28919
cristy8b350f62009-11-15 23:12:43 +000028920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028921$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028922if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028923 $as_echo_n "(cached) " >&6
28924else
28925 ac_check_lib_save_LIBS=$LIBS
28926LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028928/* end confdefs.h. */
28929
28930/* Override any GCC internal prototype to avoid an error.
28931 Use char because int might match the return type of a GCC
28932 builtin and then its argument prototype would still apply. */
28933#ifdef __cplusplus
28934extern "C"
28935#endif
28936char XtSetEventDispatcher ();
28937int
28938main ()
28939{
28940return XtSetEventDispatcher ();
28941 ;
28942 return 0;
28943}
28944_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028945if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028946 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28947else
cristy8b350f62009-11-15 23:12:43 +000028948 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028949fi
cristy8b350f62009-11-15 23:12:43 +000028950rm -f core conftest.err conftest.$ac_objext \
28951 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028952LIBS=$ac_check_lib_save_LIBS
28953fi
cristy8b350f62009-11-15 23:12:43 +000028954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028956if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 XT_LIBS='-lXt'
28958fi
28959
28960 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28961fi
28962if test "$no_x" != 'yes'; then
28963 have_x='yes'
28964else
28965 have_x='no'
28966fi
cristy73bd4a52010-10-05 11:24:23 +000028967 if test "$have_x" = 'yes'; then
28968 X11_DELEGATE_TRUE=
28969 X11_DELEGATE_FALSE='#'
28970else
28971 X11_DELEGATE_TRUE='#'
28972 X11_DELEGATE_FALSE=
28973fi
28974
cristy3ed852e2009-09-05 21:47:34 +000028975
28976
28977
28978
28979#
28980# Check for ZLIB
28981#
28982
28983# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028984if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028985 withval=$with_zlib; with_zlib=$withval
28986else
28987 with_zlib='yes'
28988fi
28989
28990
28991if test "$with_zlib" != 'yes'; then
28992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28993fi
28994
28995have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000028996ZLIB_CFLAGS=""
28997ZLIB_LIBS=""
28998ZLIB_PKG=""
28999if test "x$with_zlib" = "xyes"; then
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029001$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029002
29003pkg_failed=no
29004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000029005$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000029006
29007if test -n "$ZLIB_CFLAGS"; then
29008 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
29009 elif test -n "$PKG_CONFIG"; then
29010 if test -n "$PKG_CONFIG" && \
29011 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
29012 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
29013 ac_status=$?
29014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29015 test $ac_status = 0; }; then
29016 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
29017 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000029018else
cristy32f75d42015-06-05 18:46:23 +000029019 pkg_failed=yes
29020fi
29021 else
29022 pkg_failed=untried
29023fi
29024if test -n "$ZLIB_LIBS"; then
29025 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
29026 elif test -n "$PKG_CONFIG"; then
29027 if test -n "$PKG_CONFIG" && \
29028 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
29029 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
29030 ac_status=$?
29031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29032 test $ac_status = 0; }; then
29033 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
29034 test "x$?" != "x0" && pkg_failed=yes
29035else
29036 pkg_failed=yes
29037fi
29038 else
29039 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029040fi
29041
29042
cristy3ed852e2009-09-05 21:47:34 +000029043
cristy32f75d42015-06-05 18:46:23 +000029044if test $pkg_failed = yes; then
29045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29046$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029047
cristy32f75d42015-06-05 18:46:23 +000029048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29049 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000029050else
cristy32f75d42015-06-05 18:46:23 +000029051 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000029052fi
cristy32f75d42015-06-05 18:46:23 +000029053 if test $_pkg_short_errors_supported = yes; then
29054 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000029055 else
cristy32f75d42015-06-05 18:46:23 +000029056 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
29057 fi
29058 # Put the nasty error message in config.log where it belongs
29059 echo "$ZLIB_PKG_ERRORS" >&5
29060
29061 have_zlib=no
29062elif test $pkg_failed = untried; then
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29064$as_echo "no" >&6; }
29065 have_zlib=no
29066else
29067 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
29068 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29070$as_echo "yes" >&6; }
29071 have_zlib=yes
29072fi
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29074$as_echo "" >&6; }
29075fi
29076
29077if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029078
cristy8b350f62009-11-15 23:12:43 +000029079$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029080
cristy32f75d42015-06-05 18:46:23 +000029081 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029082fi
cristy32f75d42015-06-05 18:46:23 +000029083
cristy73bd4a52010-10-05 11:24:23 +000029084 if test "$have_zlib" = 'yes'; then
29085 ZLIB_DELEGATE_TRUE=
29086 ZLIB_DELEGATE_FALSE='#'
29087else
29088 ZLIB_DELEGATE_TRUE='#'
29089 ZLIB_DELEGATE_FALSE=
29090fi
29091
cristy3ed852e2009-09-05 21:47:34 +000029092
29093
cristy32f75d42015-06-05 18:46:23 +000029094
29095
cristy5eef09f2012-10-16 12:08:28 +000029096# whether modules are built or not.
29097with_ltdl='yes'
29098have_ltdl='no'
29099LTDL_LIBS=''
29100if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000029101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29102$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
29104$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29106$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000029107 failed=0
29108 passed=0
29109 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
29110if test "x$ac_cv_header_ltdl_h" = xyes; then :
29111 passed=`expr $passed + 1`
29112else
29113 failed=`expr $failed + 1`
29114fi
29115
29116
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
29118$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
29119if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
29120 $as_echo_n "(cached) " >&6
29121else
29122 ac_check_lib_save_LIBS=$LIBS
29123LIBS="-lltdl $LIBS"
29124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29125/* end confdefs.h. */
29126
29127/* Override any GCC internal prototype to avoid an error.
29128 Use char because int might match the return type of a GCC
29129 builtin and then its argument prototype would still apply. */
29130#ifdef __cplusplus
29131extern "C"
29132#endif
29133char lt_dlinit ();
29134int
29135main ()
29136{
29137return lt_dlinit ();
29138 ;
29139 return 0;
29140}
29141_ACEOF
29142if ac_fn_c_try_link "$LINENO"; then :
29143 ac_cv_lib_ltdl_lt_dlinit=yes
29144else
29145 ac_cv_lib_ltdl_lt_dlinit=no
29146fi
29147rm -f core conftest.err conftest.$ac_objext \
29148 conftest$ac_exeext conftest.$ac_ext
29149LIBS=$ac_check_lib_save_LIBS
29150fi
29151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
29152$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
29153if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
29154 passed=`expr $passed + 1`
29155else
29156 failed=`expr $failed + 1`
29157fi
29158
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
29160$as_echo_n "checking if libltdl package is complete... " >&6; }
29161 if test $passed -gt 0 ; then
29162 if test $failed -gt 0 ; then
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29164$as_echo "no -- some components failed test" >&6; }
29165 have_ltdl='no (failed tests)'
29166 else
29167 LTDL_LIBS='-lltdl'
29168 LIBS="$LTDL_LIBS $LIBS"
29169
29170$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
29171
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29173$as_echo "yes" >&6; }
29174 have_ltdl='yes'
29175 fi
29176 else
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29178$as_echo "no" >&6; }
29179 fi
cristyaf4cbf32012-10-16 23:47:41 +000029180 if test "$have_ltdl" != 'yes' ; then
29181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29183as_fn_error 1 "libltdl is required for modules build
29184See \`config.log' for more details" "$LINENO" 5; }
29185 fi
cristy5eef09f2012-10-16 12:08:28 +000029186fi
29187 if test "$have_ltdl" != 'no'; then
29188 WITH_LTDL_TRUE=
29189 WITH_LTDL_FALSE='#'
29190else
29191 WITH_LTDL_TRUE='#'
29192 WITH_LTDL_FALSE=
29193fi
29194
29195
cristy3ed852e2009-09-05 21:47:34 +000029196#
29197# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
29198#
29199LIB_DL=''
29200if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000029202$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029203if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029204 $as_echo_n "(cached) " >&6
29205else
29206 ac_check_lib_save_LIBS=$LIBS
29207LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029209/* end confdefs.h. */
29210
29211/* Override any GCC internal prototype to avoid an error.
29212 Use char because int might match the return type of a GCC
29213 builtin and then its argument prototype would still apply. */
29214#ifdef __cplusplus
29215extern "C"
29216#endif
29217char dlopen ();
29218int
29219main ()
29220{
29221return dlopen ();
29222 ;
29223 return 0;
29224}
29225_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029226if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029227 ac_cv_lib_dl_dlopen=yes
29228else
cristy8b350f62009-11-15 23:12:43 +000029229 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000029230fi
cristy8b350f62009-11-15 23:12:43 +000029231rm -f core conftest.err conftest.$ac_objext \
29232 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029233LIBS=$ac_check_lib_save_LIBS
29234fi
cristy8b350f62009-11-15 23:12:43 +000029235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029236$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029237if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029238 LIB_DL='-ldl'
29239fi
29240
29241 LIBS="$LIB_DL $LIBS"
29242fi
29243
29244
29245
29246#
cristy5a3dc992014-12-05 19:50:04 +000029247# Set Apple font directory.
29248#
29249
29250# Check whether --with-apple-font-dir was given.
29251if test "${with_apple_font_dir+set}" = set; then :
29252 withval=$with_apple_font_dir; with_apple_font_dir=$withval
29253else
29254 with_apple_font_dir='default'
29255fi
29256
29257
29258if test "$with_apple_font_dir" != 'default'; then
29259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
29260fi
29261
29262
29263#
cristy3ed852e2009-09-05 21:47:34 +000029264# Check for Autotrace delegate library.
29265#
29266
29267# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000029268if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029269 withval=$with_autotrace; with_autotrace=$withval
29270else
29271 with_autotrace='no'
29272fi
29273
29274
29275if test "$with_autotrace" != 'yes'; then
29276 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
29277fi
29278
29279have_autotrace='no'
29280AUTOTRACE_CFLAGS=""
29281AUTOTRACE_LIBS=""
29282AUTOTRACE_PKG=""
29283if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029285$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029286
29287pkg_failed=no
29288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
29289$as_echo_n "checking for AUTOTRACE... " >&6; }
29290
29291if test -n "$AUTOTRACE_CFLAGS"; then
29292 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
29293 elif test -n "$PKG_CONFIG"; then
29294 if test -n "$PKG_CONFIG" && \
29295 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29296 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29297 ac_status=$?
29298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29299 test $ac_status = 0; }; then
29300 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029301 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029302else
29303 pkg_failed=yes
29304fi
29305 else
29306 pkg_failed=untried
29307fi
29308if test -n "$AUTOTRACE_LIBS"; then
29309 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
29310 elif test -n "$PKG_CONFIG"; then
29311 if test -n "$PKG_CONFIG" && \
29312 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29313 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29314 ac_status=$?
29315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29316 test $ac_status = 0; }; then
29317 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029318 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029319else
29320 pkg_failed=yes
29321fi
29322 else
29323 pkg_failed=untried
29324fi
29325
29326
29327
29328if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29330$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029331
29332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29333 _pkg_short_errors_supported=yes
29334else
29335 _pkg_short_errors_supported=no
29336fi
29337 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029338 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029339 else
cristy146497a2015-05-17 22:46:16 +000029340 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029341 fi
29342 # Put the nasty error message in config.log where it belongs
29343 echo "$AUTOTRACE_PKG_ERRORS" >&5
29344
cristy146497a2015-05-17 22:46:16 +000029345 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000029346elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29348$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029349 have_autotrace=no
29350else
29351 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
29352 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
29353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29354$as_echo "yes" >&6; }
29355 have_autotrace=yes
29356fi
cristy32f75d42015-06-05 18:46:23 +000029357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029358$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029359fi
29360
29361if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029362
cristy8b350f62009-11-15 23:12:43 +000029363$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029364
cristy32f75d42015-06-05 18:46:23 +000029365 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029366fi
29367
cristy73bd4a52010-10-05 11:24:23 +000029368 if test "$have_autotrace" = 'yes'; then
29369 AUTOTRACE_DELEGATE_TRUE=
29370 AUTOTRACE_DELEGATE_FALSE='#'
29371else
29372 AUTOTRACE_DELEGATE_TRUE='#'
29373 AUTOTRACE_DELEGATE_FALSE=
29374fi
29375
cristy3ed852e2009-09-05 21:47:34 +000029376
29377
29378
29379
29380#
29381# Check for Display Postscript delegate library.
29382#
29383
29384# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000029385if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029386 withval=$with_dps; with_dps=$withval
29387else
29388 with_dps='yes'
29389fi
29390
29391
29392if test "$with_dps" != 'yes'; then
29393 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
29394fi
29395
29396have_dps='no'
29397DPS_LIBS=''
29398if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29400$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000029402$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29404$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029405 failed=0
29406 passed=0
29407 PERSIST_CPPFLAGS="$CPPFLAGS"
29408 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000029409 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 +000029410if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029411 passed=`expr $passed + 1`
29412else
29413 failed=`expr $failed + 1`
29414fi
29415
29416
29417 # DPS issues:
29418 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
29419 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
29420 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
29421 # ImageMagick itself doesn't use -lXt.
29422 have_libdps='no'
29423 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000029424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029425$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029426if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 $as_echo_n "(cached) " >&6
29428else
29429 ac_check_lib_save_LIBS=$LIBS
29430LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029432/* end confdefs.h. */
29433
29434/* Override any GCC internal prototype to avoid an error.
29435 Use char because int might match the return type of a GCC
29436 builtin and then its argument prototype would still apply. */
29437#ifdef __cplusplus
29438extern "C"
29439#endif
29440char DPSInitialize ();
29441int
29442main ()
29443{
29444return DPSInitialize ();
29445 ;
29446 return 0;
29447}
29448_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029449if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029450 ac_cv_lib_dps_DPSInitialize=yes
29451else
cristy8b350f62009-11-15 23:12:43 +000029452 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029453fi
cristy8b350f62009-11-15 23:12:43 +000029454rm -f core conftest.err conftest.$ac_objext \
29455 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029456LIBS=$ac_check_lib_save_LIBS
29457fi
cristy8b350f62009-11-15 23:12:43 +000029458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029459$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029460if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029461 have_libdps='yes'
29462else
29463 have_libdps='no'
29464fi
29465
29466 if test "$have_libdps" != 'yes'; then
29467 # Unset cache variable so we can try again.
29468 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000029469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029470$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029471if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029472 $as_echo_n "(cached) " >&6
29473else
29474 ac_check_lib_save_LIBS=$LIBS
29475LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029477/* end confdefs.h. */
29478
29479/* Override any GCC internal prototype to avoid an error.
29480 Use char because int might match the return type of a GCC
29481 builtin and then its argument prototype would still apply. */
29482#ifdef __cplusplus
29483extern "C"
29484#endif
29485char DPSInitialize ();
29486int
29487main ()
29488{
29489return DPSInitialize ();
29490 ;
29491 return 0;
29492}
29493_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029494if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029495 ac_cv_lib_dps_DPSInitialize=yes
29496else
cristy8b350f62009-11-15 23:12:43 +000029497 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029498fi
cristy8b350f62009-11-15 23:12:43 +000029499rm -f core conftest.err conftest.$ac_objext \
29500 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029501LIBS=$ac_check_lib_save_LIBS
29502fi
cristy8b350f62009-11-15 23:12:43 +000029503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029504$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029505if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029506 have_libdps='yes'
29507else
29508 have_libdps='no'
29509fi
29510
29511 if test "$have_libdps" = 'yes'; then
29512 LIBDPS_XT='-lXt'
29513 fi
29514 fi
29515 if test "$have_libdps" = 'yes'; then
29516 passed=`expr $passed + 1`
29517 else
29518 failed=`expr $failed + 1`
29519 fi
cristy8b350f62009-11-15 23:12:43 +000029520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029521$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029522if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029523 $as_echo_n "(cached) " >&6
29524else
29525 ac_check_lib_save_LIBS=$LIBS
29526LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029528/* end confdefs.h. */
29529
29530/* Override any GCC internal prototype to avoid an error.
29531 Use char because int might match the return type of a GCC
29532 builtin and then its argument prototype would still apply. */
29533#ifdef __cplusplus
29534extern "C"
29535#endif
29536char XDPSPixelsPerPoint ();
29537int
29538main ()
29539{
29540return XDPSPixelsPerPoint ();
29541 ;
29542 return 0;
29543}
29544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029546 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29547else
cristy8b350f62009-11-15 23:12:43 +000029548 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029549fi
cristy8b350f62009-11-15 23:12:43 +000029550rm -f core conftest.err conftest.$ac_objext \
29551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029552LIBS=$ac_check_lib_save_LIBS
29553fi
cristy8b350f62009-11-15 23:12:43 +000029554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029555$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029556if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029557 passed=`expr $passed + 1`
29558else
29559 failed=`expr $failed + 1`
29560fi
29561
cristy8b350f62009-11-15 23:12:43 +000029562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029563$as_echo_n "checking if DPS package is complete... " >&6; }
29564 if test $passed -gt 0; then
29565 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29567$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029568 have_dps='no (failed tests)'
29569 CPPFLAGS="$PERSIST_CPPFLAGS"
29570 else
29571 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29572 LIBS="$DPS_LIBS $LIBS"
29573
cristy8b350f62009-11-15 23:12:43 +000029574$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029575
cristyad38abe2012-12-23 23:03:21 +000029576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29577$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029578 have_dps='yes'
29579 fi
29580 else
cristyad38abe2012-12-23 23:03:21 +000029581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29582$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029583 CPPFLAGS=$PERSIST_CPPFLAGS
29584 fi
29585fi
cristy73bd4a52010-10-05 11:24:23 +000029586 if test "$have_dps" = 'yes'; then
29587 DPS_DELEGATE_TRUE=
29588 DPS_DELEGATE_FALSE='#'
29589else
29590 DPS_DELEGATE_TRUE='#'
29591 DPS_DELEGATE_FALSE=
29592fi
29593
cristy3ed852e2009-09-05 21:47:34 +000029594
29595
29596
29597#
cristy430a7312010-01-21 20:44:04 +000029598# Set DejaVu font directory.
29599#
29600
29601# Check whether --with-dejavu-font-dir was given.
29602if test "${with_dejavu_font_dir+set}" = set; then :
29603 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29604else
29605 with_dejavu_font_dir='default'
29606fi
29607
29608
29609if test "$with_dejavu_font_dir" != 'default'; then
29610 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29611fi
29612
29613
29614#
cristy3ed852e2009-09-05 21:47:34 +000029615# Check for FFTW delegate library.
29616#
29617
29618# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029619if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029620 withval=$with_fftw; with_fftw=$withval
29621else
29622 with_fftw='yes'
29623fi
29624
29625
29626if test "$with_fftw" != 'yes'; then
29627 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29628fi
29629
cristy81beccd2011-10-03 18:17:24 +000029630have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029631FFTW_CFLAGS=""
29632FFTW_LIBS=""
29633FFTW_PKG=""
29634if test "x$with_fftw" = "xyes"; then
29635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029636$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029637
29638pkg_failed=no
29639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29640$as_echo_n "checking for fftw3... " >&6; }
29641
29642if test -n "$fftw3_CFLAGS"; then
29643 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29644 elif test -n "$PKG_CONFIG"; then
29645 if test -n "$PKG_CONFIG" && \
29646 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29647 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29648 ac_status=$?
29649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29650 test $ac_status = 0; }; then
29651 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29652 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029653else
cristy32f75d42015-06-05 18:46:23 +000029654 pkg_failed=yes
29655fi
29656 else
29657 pkg_failed=untried
29658fi
29659if test -n "$fftw3_LIBS"; then
29660 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29661 elif test -n "$PKG_CONFIG"; then
29662 if test -n "$PKG_CONFIG" && \
29663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29664 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29665 ac_status=$?
29666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29667 test $ac_status = 0; }; then
29668 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29669 test "x$?" != "x0" && pkg_failed=yes
29670else
29671 pkg_failed=yes
29672fi
29673 else
29674 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029675fi
29676
cristy81beccd2011-10-03 18:17:24 +000029677
cristy81beccd2011-10-03 18:17:24 +000029678
cristy32f75d42015-06-05 18:46:23 +000029679if test $pkg_failed = yes; then
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29681$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029682
cristy32f75d42015-06-05 18:46:23 +000029683if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29684 _pkg_short_errors_supported=yes
29685else
29686 _pkg_short_errors_supported=no
29687fi
29688 if test $_pkg_short_errors_supported = yes; then
29689 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029690 else
cristy32f75d42015-06-05 18:46:23 +000029691 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29692 fi
29693 # Put the nasty error message in config.log where it belongs
29694 echo "$fftw3_PKG_ERRORS" >&5
29695
29696 have_fftw=no
29697elif test $pkg_failed = untried; then
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29699$as_echo "no" >&6; }
29700 have_fftw=no
29701else
29702 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29703 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29705$as_echo "yes" >&6; }
29706 have_fftw=yes
29707fi
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29709$as_echo "" >&6; }
29710fi
29711
29712if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029713
cristy8b350f62009-11-15 23:12:43 +000029714$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029715
cristyb74ab6e2015-06-06 12:39:54 +000029716 FFTW_CFLAGS="$fftw3_CFLAGS"
29717 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000029718 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029719fi
cristy32f75d42015-06-05 18:46:23 +000029720
cristy73bd4a52010-10-05 11:24:23 +000029721 if test "$have_fftw" = 'yes'; then
29722 FFTW_DELEGATE_TRUE=
29723 FFTW_DELEGATE_FALSE='#'
29724else
29725 FFTW_DELEGATE_TRUE='#'
29726 FFTW_DELEGATE_FALSE=
29727fi
29728
cristy3ed852e2009-09-05 21:47:34 +000029729
29730
29731
cristy32f75d42015-06-05 18:46:23 +000029732
cristy3ed852e2009-09-05 21:47:34 +000029733#
29734# Check for FlashPIX delegate library.
29735#
29736
29737# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029738if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029739 withval=$with_fpx; with_fpx=$withval
29740else
29741 with_fpx='yes'
29742fi
29743
29744
29745if test "$with_fpx" != 'yes'; then
29746 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29747fi
29748
29749have_fpx='no'
29750FPX_LIBS=''
29751if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29753$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029755$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29757$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029758 failed=0
29759 passed=0
29760 ac_ext=cpp
29761ac_cpp='$CXXCPP $CPPFLAGS'
29762ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29763ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29764ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29765
29766
cristy8b350f62009-11-15 23:12:43 +000029767ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029768if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029769 passed=`expr $passed + 1`
29770else
29771 failed=`expr $failed + 1`
29772fi
29773
29774
cristy8b350f62009-11-15 23:12:43 +000029775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029776$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029777if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029778 $as_echo_n "(cached) " >&6
29779else
29780 ac_check_lib_save_LIBS=$LIBS
29781LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029782cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029783/* end confdefs.h. */
29784
29785/* Override any GCC internal prototype to avoid an error.
29786 Use char because int might match the return type of a GCC
29787 builtin and then its argument prototype would still apply. */
29788#ifdef __cplusplus
29789extern "C"
29790#endif
29791char FPX_OpenImageByFilename ();
29792int
29793main ()
29794{
29795return FPX_OpenImageByFilename ();
29796 ;
29797 return 0;
29798}
29799_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029800if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029801 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29802else
cristy8b350f62009-11-15 23:12:43 +000029803 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029804fi
cristy8b350f62009-11-15 23:12:43 +000029805rm -f core conftest.err conftest.$ac_objext \
29806 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029807LIBS=$ac_check_lib_save_LIBS
29808fi
cristy8b350f62009-11-15 23:12:43 +000029809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029810$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029811if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029812 passed=`expr $passed + 1`
29813else
29814 failed=`expr $failed + 1`
29815fi
29816
29817 ac_ext=c
29818ac_cpp='$CPP $CPPFLAGS'
29819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29821ac_compiler_gnu=$ac_cv_c_compiler_gnu
29822
cristy8b350f62009-11-15 23:12:43 +000029823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029824$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29825 if test $passed -gt 0; then
29826 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29828$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029829 have_fpx='no (failed tests)'
29830 else
29831 FPX_LIBS='-lfpx'
29832
cristy8b350f62009-11-15 23:12:43 +000029833$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029834
cristyad38abe2012-12-23 23:03:21 +000029835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29836$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029837 have_fpx='yes'
29838 PERLMAINCC="$CXX"
29839 fi
29840 else
cristyad38abe2012-12-23 23:03:21 +000029841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29842$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029843 fi
29844fi
cristy73bd4a52010-10-05 11:24:23 +000029845 if test "$have_fpx" = 'yes'; then
29846 FPX_DELEGATE_TRUE=
29847 FPX_DELEGATE_FALSE='#'
29848else
29849 FPX_DELEGATE_TRUE='#'
29850 FPX_DELEGATE_FALSE=
29851fi
29852
cristy3ed852e2009-09-05 21:47:34 +000029853
cristy853d9902014-08-21 18:50:43 +000029854
29855
29856#
29857# Check for DJVU delegate library.
29858#
29859
29860# Check whether --with-djvu was given.
29861if test "${with_djvu+set}" = set; then :
29862 withval=$with_djvu; with_djvu=$withval
29863else
29864 with_djvu='yes'
29865fi
29866
29867
29868if test "$with_djvu" != 'yes'; then
29869 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29870fi
29871
29872have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029873DJVU_CFLAGS=""
29874DJVU_LIBS=""
29875DJVU_PKG=""
29876if test "x$with_djvu" = "xyes"; then
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029878$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029879
29880pkg_failed=no
29881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29882$as_echo_n "checking for ddjvuapi... " >&6; }
29883
29884if test -n "$ddjvuapi_CFLAGS"; then
29885 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
29886 elif test -n "$PKG_CONFIG"; then
29887 if test -n "$PKG_CONFIG" && \
29888 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29889 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29890 ac_status=$?
29891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29892 test $ac_status = 0; }; then
29893 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
29894 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000029895else
cristy32f75d42015-06-05 18:46:23 +000029896 pkg_failed=yes
29897fi
29898 else
29899 pkg_failed=untried
29900fi
29901if test -n "$ddjvuapi_LIBS"; then
29902 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
29903 elif test -n "$PKG_CONFIG"; then
29904 if test -n "$PKG_CONFIG" && \
29905 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
29906 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
29907 ac_status=$?
29908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29909 test $ac_status = 0; }; then
29910 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
29911 test "x$?" != "x0" && pkg_failed=yes
29912else
29913 pkg_failed=yes
29914fi
29915 else
29916 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000029917fi
29918
29919
cristy853d9902014-08-21 18:50:43 +000029920
cristy32f75d42015-06-05 18:46:23 +000029921if test $pkg_failed = yes; then
29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000029924
cristy32f75d42015-06-05 18:46:23 +000029925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29926 _pkg_short_errors_supported=yes
29927else
29928 _pkg_short_errors_supported=no
29929fi
29930 if test $_pkg_short_errors_supported = yes; then
29931 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000029932 else
cristy32f75d42015-06-05 18:46:23 +000029933 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
29934 fi
29935 # Put the nasty error message in config.log where it belongs
29936 echo "$ddjvuapi_PKG_ERRORS" >&5
29937
29938 have_djvu=no
29939elif test $pkg_failed = untried; then
29940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29941$as_echo "no" >&6; }
29942 have_djvu=no
29943else
29944 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
29945 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29947$as_echo "yes" >&6; }
29948 have_djvu=yes
29949fi
29950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29951$as_echo "" >&6; }
29952fi
29953
29954if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000029955
29956$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
29957
cristyc83c2cc2015-06-06 16:35:26 +000029958 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
29959 DJVU_LIBS="$ddjvuapi_LIBS"
29960 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000029961fi
cristy32f75d42015-06-05 18:46:23 +000029962
cristy853d9902014-08-21 18:50:43 +000029963 if test "$have_djvu" = 'yes'; then
29964 DJVU_DELEGATE_TRUE=
29965 DJVU_DELEGATE_FALSE='#'
29966else
29967 DJVU_DELEGATE_TRUE='#'
29968 DJVU_DELEGATE_FALSE=
29969fi
29970
29971
cristy3ed852e2009-09-05 21:47:34 +000029972
29973
cristy32f75d42015-06-05 18:46:23 +000029974
cristy3ed852e2009-09-05 21:47:34 +000029975#
29976# Check for fontconfig delegate library.
29977#
29978
29979# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029980if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029981 withval=$with_fontconfig; with_fontconfig=$withval
29982else
cristyfc3d0222012-02-07 15:05:57 +000029983 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029984fi
29985
29986
29987if test "$with_fontconfig" != 'yes'; then
29988 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29989fi
29990
29991have_fontconfig='no'
29992FONTCONFIG_CFLAGS=""
29993FONTCONFIG_LIBS=""
29994FONTCONFIG_PKG=""
29995if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029997$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029998
29999pkg_failed=no
30000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
30001$as_echo_n "checking for FONTCONFIG... " >&6; }
30002
30003if test -n "$FONTCONFIG_CFLAGS"; then
30004 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
30005 elif test -n "$PKG_CONFIG"; then
30006 if test -n "$PKG_CONFIG" && \
30007 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30008 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30009 ac_status=$?
30010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30011 test $ac_status = 0; }; then
30012 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030013 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030014else
30015 pkg_failed=yes
30016fi
30017 else
30018 pkg_failed=untried
30019fi
30020if test -n "$FONTCONFIG_LIBS"; then
30021 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
30022 elif test -n "$PKG_CONFIG"; then
30023 if test -n "$PKG_CONFIG" && \
30024 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30025 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30026 ac_status=$?
30027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30028 test $ac_status = 0; }; then
30029 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030030 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030031else
30032 pkg_failed=yes
30033fi
30034 else
30035 pkg_failed=untried
30036fi
30037
30038
30039
30040if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30042$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030043
30044if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30045 _pkg_short_errors_supported=yes
30046else
30047 _pkg_short_errors_supported=no
30048fi
30049 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030050 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030051 else
cristy146497a2015-05-17 22:46:16 +000030052 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030053 fi
30054 # Put the nasty error message in config.log where it belongs
30055 echo "$FONTCONFIG_PKG_ERRORS" >&5
30056
cristy146497a2015-05-17 22:46:16 +000030057 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000030058elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30060$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030061 have_fontconfig=no
30062else
30063 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
30064 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066$as_echo "yes" >&6; }
30067 have_fontconfig=yes
30068fi
cristy32f75d42015-06-05 18:46:23 +000030069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030070$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030071fi
30072
30073if test "$have_fontconfig" = 'yes'; then
30074
cristy8b350f62009-11-15 23:12:43 +000030075$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030076
cristy32f75d42015-06-05 18:46:23 +000030077 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030078fi
30079
cristy73bd4a52010-10-05 11:24:23 +000030080 if test "$have_fontconfig" = 'yes'; then
30081 FONTCONFIG_DELEGATE_TRUE=
30082 FONTCONFIG_DELEGATE_FALSE='#'
30083else
30084 FONTCONFIG_DELEGATE_TRUE='#'
30085 FONTCONFIG_DELEGATE_FALSE=
30086fi
30087
cristy3ed852e2009-09-05 21:47:34 +000030088
30089
30090
30091
30092#
cristy03f187e2013-01-24 00:22:19 +000030093# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000030094#
30095
30096# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000030097if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030098 withval=$with_freetype; with_freetype=$withval
30099else
30100 with_freetype='yes'
30101fi
30102
30103
cristy3ed852e2009-09-05 21:47:34 +000030104if test "$with_freetype" != 'yes'; then
30105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
30106fi
30107
cristy81beccd2011-10-03 18:17:24 +000030108have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000030109FREETYPE_CFLAGS=""
30110FREETYPE_LIBS=""
30111FREETYPE_PKG=""
30112if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030114$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000030115
30116pkg_failed=no
30117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
30118$as_echo_n "checking for FREETYPE... " >&6; }
30119
30120if test -n "$FREETYPE_CFLAGS"; then
30121 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
30122 elif test -n "$PKG_CONFIG"; then
30123 if test -n "$PKG_CONFIG" && \
30124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30125 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30126 ac_status=$?
30127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30128 test $ac_status = 0; }; then
30129 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030130 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000030131else
30132 pkg_failed=yes
30133fi
30134 else
30135 pkg_failed=untried
30136fi
30137if test -n "$FREETYPE_LIBS"; then
30138 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
30139 elif test -n "$PKG_CONFIG"; then
30140 if test -n "$PKG_CONFIG" && \
30141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30142 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30143 ac_status=$?
30144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30145 test $ac_status = 0; }; then
30146 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030147 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000030148else
30149 pkg_failed=yes
30150fi
30151 else
30152 pkg_failed=untried
30153fi
30154
30155
30156
30157if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30159$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000030160
30161if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30162 _pkg_short_errors_supported=yes
30163else
30164 _pkg_short_errors_supported=no
30165fi
30166 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030167 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000030168 else
cristy146497a2015-05-17 22:46:16 +000030169 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000030170 fi
30171 # Put the nasty error message in config.log where it belongs
30172 echo "$FREETYPE_PKG_ERRORS" >&5
30173
cristy146497a2015-05-17 22:46:16 +000030174 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000030175elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30177$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000030178 have_freetype=no
30179else
30180 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
30181 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
30182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30183$as_echo "yes" >&6; }
30184 have_freetype=yes
30185fi
cristy32f75d42015-06-05 18:46:23 +000030186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030187$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030188fi
30189
cristy03f187e2013-01-24 00:22:19 +000030190if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030191
cristy8b350f62009-11-15 23:12:43 +000030192$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030193
cristy32f75d42015-06-05 18:46:23 +000030194 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030195fi
cristy03f187e2013-01-24 00:22:19 +000030196
cristy73bd4a52010-10-05 11:24:23 +000030197 if test "$have_freetype" = 'yes'; then
30198 FREETYPE_DELEGATE_TRUE=
30199 FREETYPE_DELEGATE_FALSE='#'
30200else
30201 FREETYPE_DELEGATE_TRUE='#'
30202 FREETYPE_DELEGATE_FALSE=
30203fi
30204
cristy3ed852e2009-09-05 21:47:34 +000030205
30206
30207
cristy03f187e2013-01-24 00:22:19 +000030208
cristy3ed852e2009-09-05 21:47:34 +000030209#
30210# Check for Ghostscript library or framework.
30211#
30212# Test for iapi.h & test for gsapi_new_instance in -lgs
30213# or -framework Ghostscript
30214
30215
30216# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000030217if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030218 withval=$with_gslib; with_gslib=$withval
30219else
30220 with_gslib='no'
30221fi
30222
30223
cristyb7931f12009-09-25 10:22:21 +000030224gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000030225if test "$with_gslib" != 'yes'; then
30226 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
30227fi
30228
30229have_gslib='no'
30230GS_LIBS=''
30231if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30233$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30237$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000030238 framework=0
cristy3ed852e2009-09-05 21:47:34 +000030239 failed=0
30240 passed=0
cristy8b350f62009-11-15 23:12:43 +000030241 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 +000030242if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030243 passed=`expr $passed + 1`
30244else
30245 failed=`expr $failed + 1`
30246fi
30247
30248
cristy8b350f62009-11-15 23:12:43 +000030249 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 +000030250if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030251 passed=`expr $passed + 1`
30252else
30253 failed=`expr $failed + 1`
30254fi
30255
30256
cristy73bd4a52010-10-05 11:24:23 +000030257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
30258$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030259if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000030260 $as_echo_n "(cached) " >&6
30261else
30262 ac_check_framework_save_LIBS=$LIBS
30263LIBS="-framework Ghostscript $LIBS"
30264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30265/* end confdefs.h. */
30266
30267/* Override any GCC internal prototype to avoid an error.
30268 Use char because int might match the return type of a GCC
30269 builtin and then its argument prototype would still apply. */
30270#ifdef __cplusplus
30271extern "C"
30272#endif
30273char gsapi_new_instance ();
30274int
30275main ()
30276{
30277return gsapi_new_instance ();
30278 ;
30279 return 0;
30280}
30281_ACEOF
30282if ac_fn_c_try_link "$LINENO"; then :
30283 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
30284else
30285 ac_cv_framework_Ghostscript_gsapi_new_instance=no
30286fi
30287rm -f core conftest.err conftest.$ac_objext \
30288 conftest$ac_exeext conftest.$ac_ext
30289LIBS=$ac_check_framework_save_LIBS
30290fi
30291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
30292$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
30293if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
30294 framework=`expr $framework + 1`
30295else
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030297$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030298if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030299 $as_echo_n "(cached) " >&6
30300else
30301 ac_check_lib_save_LIBS=$LIBS
30302LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030304/* end confdefs.h. */
30305
30306/* Override any GCC internal prototype to avoid an error.
30307 Use char because int might match the return type of a GCC
30308 builtin and then its argument prototype would still apply. */
30309#ifdef __cplusplus
30310extern "C"
30311#endif
30312char gsapi_new_instance ();
30313int
30314main ()
30315{
30316return gsapi_new_instance ();
30317 ;
30318 return 0;
30319}
30320_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030321if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030322 ac_cv_lib_gs_gsapi_new_instance=yes
30323else
cristy8b350f62009-11-15 23:12:43 +000030324 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000030325fi
cristy8b350f62009-11-15 23:12:43 +000030326rm -f core conftest.err conftest.$ac_objext \
30327 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030328LIBS=$ac_check_lib_save_LIBS
30329fi
cristy8b350f62009-11-15 23:12:43 +000030330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000030331$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000030332if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030333 passed=`expr $passed + 1`
30334else
30335 failed=`expr $failed + 1`
30336fi
cristy73bd4a52010-10-05 11:24:23 +000030337
30338fi
cristy8b350f62009-11-15 23:12:43 +000030339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030340$as_echo_n "checking if Ghostscript package is complete... " >&6; }
30341 if test $passed -gt 0; then
30342 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30344$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030345 have_gslib='no (failed tests)'
30346 else
30347 if test $framework -gt 0; then
30348 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000030349 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
30351$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030352 else
cristyad38abe2012-12-23 23:03:21 +000030353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
30354$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030355 GS_LIBS='-lgs'
30356 fi
30357 LIBS="$GS_LIBS $LIBS"
30358
cristy8b350f62009-11-15 23:12:43 +000030359$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030360
30361 have_gslib='yes'
30362 fi
30363 else
cristyad38abe2012-12-23 23:03:21 +000030364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30365$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030366 fi
30367fi
cristy73bd4a52010-10-05 11:24:23 +000030368 if test "$have_gslib" = 'yes'; then
30369 GS_DELEGATE_TRUE=
30370 GS_DELEGATE_FALSE='#'
30371else
30372 GS_DELEGATE_TRUE='#'
30373 GS_DELEGATE_FALSE=
30374fi
30375
cristy3ed852e2009-09-05 21:47:34 +000030376
30377
30378# Set default font search path
30379
30380# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000030381if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030382 withval=$with_fontpath; with_fontpath=$withval
30383else
30384 with_fontpath=''
30385fi
30386
30387
30388if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
30389 with_fontpath=''
30390else
30391
30392cat >>confdefs.h <<_ACEOF
30393#define MAGICK_FONT_PATH "$with_fontpath"
30394_ACEOF
30395
30396fi
30397if test "$with_fontpath=" != ''; then
30398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
30399fi
30400
30401# Set Ghostscript font directory
30402
30403# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030404if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030405 withval=$with_gs_font_dir; with_gs_font_dir=$withval
30406else
30407 with_gs_font_dir='default'
30408fi
30409
30410
30411if test "$with_gs_font_dir" != 'default'; then
30412 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
30413fi
30414
30415
30416#
30417# Check for GVC delegate library.
30418#
30419
30420# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000030421if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030422 withval=$with_gvc; with_gvc=$withval
30423else
cristy86e31f32015-06-06 15:47:32 +000030424 with_gvc='yes'
cristy3ed852e2009-09-05 21:47:34 +000030425fi
30426
30427
30428if test "$with_gvc" != 'yes'; then
30429 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
30430fi
30431
30432GVC_PKG=""
30433if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030435$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030436
30437pkg_failed=no
30438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
30439$as_echo_n "checking for GVC... " >&6; }
30440
30441if test -n "$GVC_CFLAGS"; then
30442 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30443 elif test -n "$PKG_CONFIG"; then
30444 if test -n "$PKG_CONFIG" && \
30445 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30446 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30447 ac_status=$?
30448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30449 test $ac_status = 0; }; then
30450 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030451 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030452else
30453 pkg_failed=yes
30454fi
30455 else
30456 pkg_failed=untried
30457fi
30458if test -n "$GVC_LIBS"; then
30459 pkg_cv_GVC_LIBS="$GVC_LIBS"
30460 elif test -n "$PKG_CONFIG"; then
30461 if test -n "$PKG_CONFIG" && \
30462 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30463 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30464 ac_status=$?
30465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30466 test $ac_status = 0; }; then
30467 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030468 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030469else
30470 pkg_failed=yes
30471fi
30472 else
30473 pkg_failed=untried
30474fi
30475
30476
30477
30478if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30480$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030481
30482if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30483 _pkg_short_errors_supported=yes
30484else
30485 _pkg_short_errors_supported=no
30486fi
30487 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030488 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030489 else
cristy146497a2015-05-17 22:46:16 +000030490 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030491 fi
30492 # Put the nasty error message in config.log where it belongs
30493 echo "$GVC_PKG_ERRORS" >&5
30494
cristy146497a2015-05-17 22:46:16 +000030495 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000030496elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30498$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030499 have_gvc=no
30500else
30501 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30502 GVC_LIBS=$pkg_cv_GVC_LIBS
30503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30504$as_echo "yes" >&6; }
30505 have_gvc=yes
30506fi
cristy32f75d42015-06-05 18:46:23 +000030507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030508$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030509fi
30510
30511if test "$have_gvc" = 'yes'; then
30512
cristy8b350f62009-11-15 23:12:43 +000030513$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030514
cristy32f75d42015-06-05 18:46:23 +000030515 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030516fi
30517
cristy73bd4a52010-10-05 11:24:23 +000030518 if test "$have_gvc" = 'yes'; then
30519 GVC_DELEGATE_TRUE=
30520 GVC_DELEGATE_FALSE='#'
30521else
30522 GVC_DELEGATE_TRUE='#'
30523 GVC_DELEGATE_FALSE=
30524fi
30525
cristy3ed852e2009-09-05 21:47:34 +000030526
30527
30528
30529
30530#
30531# Check for JBIG delegate library.
30532#
30533
30534
30535# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030536if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030537 withval=$with_jbig; with_jbig=$withval
30538else
30539 with_jbig='yes'
30540fi
30541
30542
30543have_jbig='no'
30544JBIG_LIBS=''
30545if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30547$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030549$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30551$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030552 failed=0
30553 passed=0
cristy8b350f62009-11-15 23:12:43 +000030554 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030555if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030556 passed=`expr $passed + 1`
30557else
30558 failed=`expr $failed + 1`
30559fi
30560
30561
cristy8b350f62009-11-15 23:12:43 +000030562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030563$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030564if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030565 $as_echo_n "(cached) " >&6
30566else
30567 ac_check_lib_save_LIBS=$LIBS
30568LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030570/* end confdefs.h. */
30571
30572/* Override any GCC internal prototype to avoid an error.
30573 Use char because int might match the return type of a GCC
30574 builtin and then its argument prototype would still apply. */
30575#ifdef __cplusplus
30576extern "C"
30577#endif
30578char jbg_dec_init ();
30579int
30580main ()
30581{
30582return jbg_dec_init ();
30583 ;
30584 return 0;
30585}
30586_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030587if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030588 ac_cv_lib_jbig_jbg_dec_init=yes
30589else
cristy8b350f62009-11-15 23:12:43 +000030590 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030591fi
cristy8b350f62009-11-15 23:12:43 +000030592rm -f core conftest.err conftest.$ac_objext \
30593 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030594LIBS=$ac_check_lib_save_LIBS
30595fi
cristy8b350f62009-11-15 23:12:43 +000030596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030597$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030598if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030599 passed=`expr $passed + 1`
30600else
30601 failed=`expr $failed + 1`
30602fi
30603
cristy8b350f62009-11-15 23:12:43 +000030604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030605$as_echo_n "checking if JBIG 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_jbig='no (failed tests)'
30611 else
30612 JBIG_LIBS='-ljbig'
30613 LIBS="$JBIG_LIBS $LIBS"
30614
cristy8b350f62009-11-15 23:12:43 +000030615$as_echo "#define JBIG_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_jbig='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_jbig" = 'yes'; then
30627 JBIG_DELEGATE_TRUE=
30628 JBIG_DELEGATE_FALSE='#'
30629else
30630 JBIG_DELEGATE_TRUE='#'
30631 JBIG_DELEGATE_FALSE=
30632fi
30633
cristy3ed852e2009-09-05 21:47:34 +000030634
30635
30636
30637#
30638# Check for JPEG delegate library.
30639#
30640
30641# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030642if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030643 withval=$with_jpeg; with_jpeg=$withval
30644else
30645 with_jpeg='yes'
30646fi
30647
30648
30649if test "$with_jpeg" != 'yes'; then
30650 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30651fi
30652
30653have_jpeg='no'
30654JPEG_LIBS=''
30655if test "$with_jpeg" != '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" >&5
cristy3ed852e2009-09-05 21:47:34 +000030659$as_echo_n "checking for JPEG... " >&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" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030665if test "x$ac_cv_header_jconfig_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 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030673if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030674 passed=`expr $passed + 1`
30675else
30676 failed=`expr $failed + 1`
30677fi
30678
30679
cristy8b350f62009-11-15 23:12:43 +000030680 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030681if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030682 passed=`expr $passed + 1`
30683else
30684 failed=`expr $failed + 1`
30685fi
30686
30687
cristy8b350f62009-11-15 23:12:43 +000030688 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030689if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030690 passed=`expr $passed + 1`
30691else
30692 failed=`expr $failed + 1`
30693fi
30694
30695
cristy8b350f62009-11-15 23:12:43 +000030696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030697$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030698if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030699 $as_echo_n "(cached) " >&6
30700else
30701 ac_check_lib_save_LIBS=$LIBS
30702LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030704/* end confdefs.h. */
30705
30706/* Override any GCC internal prototype to avoid an error.
30707 Use char because int might match the return type of a GCC
30708 builtin and then its argument prototype would still apply. */
30709#ifdef __cplusplus
30710extern "C"
30711#endif
30712char jpeg_read_header ();
30713int
30714main ()
30715{
30716return jpeg_read_header ();
30717 ;
30718 return 0;
30719}
30720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030722 ac_cv_lib_jpeg_jpeg_read_header=yes
30723else
cristy8b350f62009-11-15 23:12:43 +000030724 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030725fi
cristy8b350f62009-11-15 23:12:43 +000030726rm -f core conftest.err conftest.$ac_objext \
30727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030728LIBS=$ac_check_lib_save_LIBS
30729fi
cristy8b350f62009-11-15 23:12:43 +000030730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030731$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030732if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030733 passed=`expr $passed + 1`
30734else
30735 failed=`expr $failed + 1`
30736fi
30737
30738
30739# Test for compatible JPEG library
30740if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030742$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030743if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030744 $as_echo_n "(cached) " >&6
30745else
cristy8b350f62009-11-15 23:12:43 +000030746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030747/* end confdefs.h. */
30748#include <stdio.h>
30749#include <stdlib.h>
30750#include <jpeglib.h>
30751
30752int
30753main ()
30754{
30755
30756#if JPEG_LIB_VERSION < 62
30757#error IJG JPEG library must be version 6b or newer!
30758#endif
30759return 0;
30760
30761 ;
30762 return 0;
30763}
30764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030765if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030766 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30767else
cristy8b350f62009-11-15 23:12:43 +000030768 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030769fi
cristy3ed852e2009-09-05 21:47:34 +000030770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30771fi
cristy8b350f62009-11-15 23:12:43 +000030772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030773$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30774fi
cristy8b350f62009-11-15 23:12:43 +000030775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030776$as_echo_n "checking if JPEG package is complete... " >&6; }
30777 if test $passed -gt 0; then
30778 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30780$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030781 have_jpeg='no (failed tests)'
30782 else
30783 JPEG_LIBS='-ljpeg'
30784 LIBS="$JPEG_LIBS $LIBS"
30785
cristy8b350f62009-11-15 23:12:43 +000030786$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030787
cristyad38abe2012-12-23 23:03:21 +000030788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30789$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030790 have_jpeg='yes'
30791 fi
30792 else
cristyad38abe2012-12-23 23:03:21 +000030793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30794$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030795 fi
30796fi
cristy73bd4a52010-10-05 11:24:23 +000030797 if test "$have_jpeg" = 'yes'; then
30798 JPEG_DELEGATE_TRUE=
30799 JPEG_DELEGATE_FALSE='#'
30800else
30801 JPEG_DELEGATE_TRUE='#'
30802 JPEG_DELEGATE_FALSE=
30803fi
30804
cristy3ed852e2009-09-05 21:47:34 +000030805
30806
30807
30808#
cristy3ed852e2009-09-05 21:47:34 +000030809# Check for LCMS delegate library.
30810#
30811
30812# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030813if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030814 withval=$with_lcms; with_lcms=$withval
30815else
30816 with_lcms='yes'
30817fi
30818
cristy71203402010-06-18 13:12:03 +000030819if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030820 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30821fi
30822
cristy71203402010-06-18 13:12:03 +000030823have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030824LCMS_CFLAGS=""
30825LCMS_LIBS=""
30826LCMS_PKG=""
30827if test "x$with_lcms" = "xyes"; then
30828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030829$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030830
cristy32f75d42015-06-05 18:46:23 +000030831pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000030832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
30833$as_echo_n "checking for LCMS2... " >&6; }
30834
30835if test -n "$LCMS2_CFLAGS"; then
30836 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30837 elif test -n "$PKG_CONFIG"; then
30838 if test -n "$PKG_CONFIG" && \
30839 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30840 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30841 ac_status=$?
30842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30843 test $ac_status = 0; }; then
30844 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30845 test "x$?" != "x0" && pkg_failed=yes
30846else
30847 pkg_failed=yes
30848fi
30849 else
30850 pkg_failed=untried
30851fi
30852if test -n "$LCMS2_LIBS"; then
30853 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
30854 elif test -n "$PKG_CONFIG"; then
30855 if test -n "$PKG_CONFIG" && \
30856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30857 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30858 ac_status=$?
30859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30860 test $ac_status = 0; }; then
30861 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
30862 test "x$?" != "x0" && pkg_failed=yes
30863else
30864 pkg_failed=yes
30865fi
30866 else
30867 pkg_failed=untried
30868fi
30869
30870
30871
30872if test $pkg_failed = yes; then
30873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30874$as_echo "no" >&6; }
30875
30876if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30877 _pkg_short_errors_supported=yes
30878else
30879 _pkg_short_errors_supported=no
30880fi
30881 if test $_pkg_short_errors_supported = yes; then
30882 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30883 else
30884 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30885 fi
30886 # Put the nasty error message in config.log where it belongs
30887 echo "$LCMS2_PKG_ERRORS" >&5
30888
30889 have_lcms=no
30890elif test $pkg_failed = untried; then
30891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30892$as_echo "no" >&6; }
30893 have_lcms=no
30894else
30895 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
30896 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30898$as_echo "yes" >&6; }
30899 have_lcms=yes
30900fi
30901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30902$as_echo "" >&6; }
30903fi
30904
30905if test "$have_lcms" = 'yes'; then
30906
30907$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30908
cristyb74ab6e2015-06-06 12:39:54 +000030909 LCMS_CFLAGS="$LCMS2_CFLAGS"
30910 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000030911 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000030912 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
30913if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
30914 have_lcms_header='yes'
30915fi
30916
30917
30918 if test "$have_lcms_header" = 'yes'; then
30919
30920$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
30921
cristybc8ef1c2015-06-06 14:32:21 +000030922 else
30923
30924$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30925
cristyd6ac47f2015-06-06 13:46:55 +000030926 fi
cristy32f75d42015-06-05 18:46:23 +000030927fi
30928
30929 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000030930 LCMS_DELEGATE_TRUE=
30931 LCMS_DELEGATE_FALSE='#'
30932else
30933 LCMS_DELEGATE_TRUE='#'
30934 LCMS_DELEGATE_FALSE=
30935fi
30936
cristy71203402010-06-18 13:12:03 +000030937
cristy3ed852e2009-09-05 21:47:34 +000030938
30939
30940
30941#
cristy99db3872014-01-01 15:11:34 +000030942# Check for the OpenJP2 delegate library.
30943#
30944
30945# Check whether --with-openjp2 was given.
30946if test "${with_openjp2+set}" = set; then :
30947 withval=$with_openjp2; with_openjp2=$withval
30948else
30949 with_openjp2='yes'
30950fi
30951
30952
30953if test "$with_openjp2" != 'yes'; then
30954 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
30955fi
30956
30957have_openjp2='no'
30958LIBOPENJP2_CFLAGS=""
30959LIBOPENJP2_LIBS=""
30960LIBOPENJP2_PKG=""
30961if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000030963$as_echo "-------------------------------------------------------------" >&6; }
30964
30965pkg_failed=no
30966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
30967$as_echo_n "checking for LIBOPENJP2... " >&6; }
30968
30969if test -n "$LIBOPENJP2_CFLAGS"; then
30970 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
30971 elif test -n "$PKG_CONFIG"; then
30972 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30974 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030975 ac_status=$?
30976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30977 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030978 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030979 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030980else
30981 pkg_failed=yes
30982fi
30983 else
30984 pkg_failed=untried
30985fi
30986if test -n "$LIBOPENJP2_LIBS"; then
30987 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
30988 elif test -n "$PKG_CONFIG"; then
30989 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000030990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
30991 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000030992 ac_status=$?
30993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30994 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000030995 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030996 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000030997else
30998 pkg_failed=yes
30999fi
31000 else
31001 pkg_failed=untried
31002fi
31003
31004
31005
31006if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31008$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000031009
31010if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31011 _pkg_short_errors_supported=yes
31012else
31013 _pkg_short_errors_supported=no
31014fi
31015 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031016 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000031017 else
cristy146497a2015-05-17 22:46:16 +000031018 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000031019 fi
31020 # Put the nasty error message in config.log where it belongs
31021 echo "$LIBOPENJP2_PKG_ERRORS" >&5
31022
cristy146497a2015-05-17 22:46:16 +000031023 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000031024elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31026$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000031027 have_openjp2=no
31028else
31029 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
31030 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
31031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31032$as_echo "yes" >&6; }
31033 have_openjp2=yes
31034fi
cristy32f75d42015-06-05 18:46:23 +000031035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000031036$as_echo "" >&6; }
31037fi
31038
31039if test "$have_openjp2" = 'yes'; then
31040
31041$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
31042
cristy32f75d42015-06-05 18:46:23 +000031043 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000031044fi
31045
31046 if test "$have_openjp2" = 'yes'; then
31047 LIBOPENJP2_DELEGATE_TRUE=
31048 LIBOPENJP2_DELEGATE_FALSE='#'
31049else
31050 LIBOPENJP2_DELEGATE_TRUE='#'
31051 LIBOPENJP2_DELEGATE_FALSE=
31052fi
31053
31054
31055
31056
31057
31058
31059#
cristy3ed852e2009-09-05 21:47:34 +000031060# Check for the LQR (Liquid Rescale) delegate library.
31061#
31062
31063# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000031064if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031065 withval=$with_lqr; with_lqr=$withval
31066else
31067 with_lqr='yes'
31068fi
31069
31070
31071if test "$with_lqr" != 'yes'; then
31072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
31073fi
31074
31075have_lqr='no'
31076LQR_CFLAGS=""
31077LQR_LIBS=""
31078LQR_PKG=""
31079if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031081$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031082
31083pkg_failed=no
31084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
31085$as_echo_n "checking for LQR... " >&6; }
31086
31087if test -n "$LQR_CFLAGS"; then
31088 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
31089 elif test -n "$PKG_CONFIG"; then
31090 if test -n "$PKG_CONFIG" && \
31091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31092 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31093 ac_status=$?
31094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31095 test $ac_status = 0; }; then
31096 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031097 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031098else
31099 pkg_failed=yes
31100fi
31101 else
31102 pkg_failed=untried
31103fi
31104if test -n "$LQR_LIBS"; then
31105 pkg_cv_LQR_LIBS="$LQR_LIBS"
31106 elif test -n "$PKG_CONFIG"; then
31107 if test -n "$PKG_CONFIG" && \
31108 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31109 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31110 ac_status=$?
31111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31112 test $ac_status = 0; }; then
31113 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031114 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031115else
31116 pkg_failed=yes
31117fi
31118 else
31119 pkg_failed=untried
31120fi
31121
31122
31123
31124if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31126$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031127
31128if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31129 _pkg_short_errors_supported=yes
31130else
31131 _pkg_short_errors_supported=no
31132fi
31133 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031134 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031135 else
cristy146497a2015-05-17 22:46:16 +000031136 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031137 fi
31138 # Put the nasty error message in config.log where it belongs
31139 echo "$LQR_PKG_ERRORS" >&5
31140
cristy146497a2015-05-17 22:46:16 +000031141 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000031142elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31144$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031145 have_lqr=no
31146else
31147 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
31148 LQR_LIBS=$pkg_cv_LQR_LIBS
31149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31150$as_echo "yes" >&6; }
31151 have_lqr=yes
31152fi
cristy32f75d42015-06-05 18:46:23 +000031153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031154$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031155fi
31156
31157if test "$have_lqr" = 'yes'; then
31158
cristy8b350f62009-11-15 23:12:43 +000031159$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031160
cristy32f75d42015-06-05 18:46:23 +000031161 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031162fi
31163
cristy73bd4a52010-10-05 11:24:23 +000031164 if test "$have_lqr" = 'yes'; then
31165 LQR_DELEGATE_TRUE=
31166 LQR_DELEGATE_FALSE='#'
31167else
31168 LQR_DELEGATE_TRUE='#'
31169 LQR_DELEGATE_FALSE=
31170fi
31171
cristy3ed852e2009-09-05 21:47:34 +000031172
31173
31174
31175
cristy81beccd2011-10-03 18:17:24 +000031176# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000031177
31178# Check whether --with-lzma was given.
31179if test "${with_lzma+set}" = set; then :
31180 withval=$with_lzma; with_lzma=$withval
31181else
31182 with_lzma='yes'
31183fi
31184
cristy81beccd2011-10-03 18:17:24 +000031185if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000031186 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
31187fi
31188
cristyb94e5002011-11-14 13:20:10 +000031189LZMA_PKG=""
31190if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031192$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031193
31194pkg_failed=no
31195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000031196$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000031197
31198if test -n "$LZMA_CFLAGS"; then
31199 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
31200 elif test -n "$PKG_CONFIG"; then
31201 if test -n "$PKG_CONFIG" && \
31202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31203 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31204 ac_status=$?
31205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31206 test $ac_status = 0; }; then
31207 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031208 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000031209else
31210 pkg_failed=yes
31211fi
31212 else
31213 pkg_failed=untried
31214fi
31215if test -n "$LZMA_LIBS"; then
31216 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
31217 elif test -n "$PKG_CONFIG"; then
31218 if test -n "$PKG_CONFIG" && \
31219 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31220 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31221 ac_status=$?
31222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31223 test $ac_status = 0; }; then
31224 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031225 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000031226else
31227 pkg_failed=yes
31228fi
31229 else
31230 pkg_failed=untried
31231fi
31232
31233
31234
31235if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31237$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031238
31239if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31240 _pkg_short_errors_supported=yes
31241else
31242 _pkg_short_errors_supported=no
31243fi
31244 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031245 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000031246 else
cristy146497a2015-05-17 22:46:16 +000031247 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000031248 fi
31249 # Put the nasty error message in config.log where it belongs
31250 echo "$LZMA_PKG_ERRORS" >&5
31251
cristy146497a2015-05-17 22:46:16 +000031252 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000031253elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31255$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031256 have_lzma=no
31257else
31258 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
31259 LZMA_LIBS=$pkg_cv_LZMA_LIBS
31260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31261$as_echo "yes" >&6; }
31262 have_lzma=yes
31263fi
cristy32f75d42015-06-05 18:46:23 +000031264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031265$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000031266fi
31267
cristyb94e5002011-11-14 13:20:10 +000031268if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000031269
31270$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
31271
cristy32f75d42015-06-05 18:46:23 +000031272 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000031273fi
cristyb94e5002011-11-14 13:20:10 +000031274
cristyfbb0ef02010-12-19 02:32:11 +000031275 if test "$have_lzma" = 'yes'; then
31276 LZMA_DELEGATE_TRUE=
31277 LZMA_DELEGATE_FALSE='#'
31278else
31279 LZMA_DELEGATE_TRUE='#'
31280 LZMA_DELEGATE_FALSE=
31281fi
31282
31283
31284
31285
cristyb94e5002011-11-14 13:20:10 +000031286
cristy3ed852e2009-09-05 21:47:34 +000031287#
31288# Check for the OpenEXR delegate library.
31289#
31290
31291# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000031292if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031293 withval=$with_openexr; with_openexr=$withval
31294else
31295 with_openexr='yes'
31296fi
31297
31298
31299if test "$with_openexr" != 'yes'; then
31300 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31301fi
31302
31303have_openexr='no'
31304OPENEXR_CFLAGS=""
31305OPENEXR_LIBS=""
31306OPENEXR_PKG=""
31307if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031309$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031310
31311pkg_failed=no
31312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31313$as_echo_n "checking for OPENEXR... " >&6; }
31314
31315if test -n "$OPENEXR_CFLAGS"; then
31316 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31317 elif test -n "$PKG_CONFIG"; then
31318 if test -n "$PKG_CONFIG" && \
31319 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31320 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31321 ac_status=$?
31322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31323 test $ac_status = 0; }; then
31324 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031325 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031326else
31327 pkg_failed=yes
31328fi
31329 else
31330 pkg_failed=untried
31331fi
31332if test -n "$OPENEXR_LIBS"; then
31333 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31334 elif test -n "$PKG_CONFIG"; then
31335 if test -n "$PKG_CONFIG" && \
31336 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31337 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31338 ac_status=$?
31339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31340 test $ac_status = 0; }; then
31341 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031342 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031343else
31344 pkg_failed=yes
31345fi
31346 else
31347 pkg_failed=untried
31348fi
31349
31350
31351
31352if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31354$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031355
31356if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31357 _pkg_short_errors_supported=yes
31358else
31359 _pkg_short_errors_supported=no
31360fi
31361 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031362 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031363 else
cristy146497a2015-05-17 22:46:16 +000031364 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031365 fi
31366 # Put the nasty error message in config.log where it belongs
31367 echo "$OPENEXR_PKG_ERRORS" >&5
31368
cristy146497a2015-05-17 22:46:16 +000031369 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000031370elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31372$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031373 have_openexr=no
31374else
31375 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31376 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31378$as_echo "yes" >&6; }
31379 have_openexr=yes
31380fi
cristy32f75d42015-06-05 18:46:23 +000031381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031382$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031383fi
31384
31385if test "$have_openexr" = 'yes'; then
31386
cristy8b350f62009-11-15 23:12:43 +000031387$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031388
cristy32f75d42015-06-05 18:46:23 +000031389 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031390fi
31391
cristy73bd4a52010-10-05 11:24:23 +000031392 if test "$have_openexr" = 'yes'; then
31393 OPENEXR_DELEGATE_TRUE=
31394 OPENEXR_DELEGATE_FALSE='#'
31395else
31396 OPENEXR_DELEGATE_TRUE='#'
31397 OPENEXR_DELEGATE_FALSE=
31398fi
31399
cristy3ed852e2009-09-05 21:47:34 +000031400
31401
31402
31403
31404#
cristy41cbe8a2011-10-27 01:35:18 +000031405# Check for PANGO delegate library.
31406#
31407
31408# Check whether --with-pango was given.
31409if test "${with_pango+set}" = set; then :
31410 withval=$with_pango; with_pango=$withval
31411else
cristyfc3d0222012-02-07 15:05:57 +000031412 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031413fi
31414
31415
31416if test "$with_pango" != 'yes'; then
31417 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31418fi
31419
31420have_pango='no'
cristya054b762012-03-26 23:16:00 +000031421have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031422PANGO_CFLAGS=""
31423PANGO_LIBS=""
31424PANGO_PKG=""
31425if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000031427$as_echo "-------------------------------------------------------------" >&6; }
31428
31429pkg_failed=no
31430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31431$as_echo_n "checking for PANGO... " >&6; }
31432
31433if test -n "$PANGO_CFLAGS"; then
31434 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31435 elif test -n "$PKG_CONFIG"; then
31436 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031437 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31438 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031439 ac_status=$?
31440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31441 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031442 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031443 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031444else
31445 pkg_failed=yes
31446fi
31447 else
31448 pkg_failed=untried
31449fi
31450if test -n "$PANGO_LIBS"; then
31451 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31452 elif test -n "$PKG_CONFIG"; then
31453 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31455 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031456 ac_status=$?
31457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31458 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031459 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031460 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031461else
31462 pkg_failed=yes
31463fi
31464 else
31465 pkg_failed=untried
31466fi
31467
31468
31469
31470if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031473
31474if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31475 _pkg_short_errors_supported=yes
31476else
31477 _pkg_short_errors_supported=no
31478fi
31479 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031480 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031481 else
cristy146497a2015-05-17 22:46:16 +000031482 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031483 fi
31484 # Put the nasty error message in config.log where it belongs
31485 echo "$PANGO_PKG_ERRORS" >&5
31486
cristy146497a2015-05-17 22:46:16 +000031487 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031488elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31490$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031491 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031492else
31493 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31494 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31496$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031497 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031498fi
cristy32f75d42015-06-05 18:46:23 +000031499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000031500$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031501
31502pkg_failed=no
31503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31504$as_echo_n "checking for PANGO... " >&6; }
31505
31506if test -n "$PANGO_CFLAGS"; then
31507 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31508 elif test -n "$PKG_CONFIG"; then
31509 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31511 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031512 ac_status=$?
31513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31514 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031515 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031516 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031517else
31518 pkg_failed=yes
31519fi
31520 else
31521 pkg_failed=untried
31522fi
31523if test -n "$PANGO_LIBS"; then
31524 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31525 elif test -n "$PKG_CONFIG"; then
31526 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31528 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031529 ac_status=$?
31530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31531 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031532 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031533 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031534else
31535 pkg_failed=yes
31536fi
31537 else
31538 pkg_failed=untried
31539fi
31540
31541
31542
31543if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31545$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031546
31547if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31548 _pkg_short_errors_supported=yes
31549else
31550 _pkg_short_errors_supported=no
31551fi
31552 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031553 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031554 else
cristy146497a2015-05-17 22:46:16 +000031555 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031556 fi
31557 # Put the nasty error message in config.log where it belongs
31558 echo "$PANGO_PKG_ERRORS" >&5
31559
cristy146497a2015-05-17 22:46:16 +000031560 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031561elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31563$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031564 have_pango=no
31565else
31566 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31567 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31569$as_echo "yes" >&6; }
31570 have_pango=yes
31571fi
cristy32f75d42015-06-05 18:46:23 +000031572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000031573$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031574fi
31575
31576if test "$have_pango" = 'yes'; then
31577
31578$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31579
cristy32f75d42015-06-05 18:46:23 +000031580 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031581fi
31582
cristya054b762012-03-26 23:16:00 +000031583if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031584
cristya054b762012-03-26 23:16:00 +000031585$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031586
cristy32f75d42015-06-05 18:46:23 +000031587 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031588fi
31589
31590 if test "$have_pango" = 'yes'; then
31591 PANGO_DELEGATE_TRUE=
31592 PANGO_DELEGATE_FALSE='#'
31593else
31594 PANGO_DELEGATE_TRUE='#'
31595 PANGO_DELEGATE_FALSE=
31596fi
31597
cristya054b762012-03-26 23:16:00 +000031598 if test "$have_pangocairo" = 'yes'; then
31599 PANGOCAIRO_DELEGATE_TRUE=
31600 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031601else
cristya054b762012-03-26 23:16:00 +000031602 PANGOCAIRO_DELEGATE_TRUE='#'
31603 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031604fi
31605
31606
31607
31608
31609
31610#
cristy3ed852e2009-09-05 21:47:34 +000031611# Check for PNG delegate library.
31612#
31613
31614# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031615if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031616 withval=$with_png; with_png=$withval
31617else
31618 with_png='yes'
31619fi
31620
31621
31622if test "$with_png" != 'yes'; then
31623 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31624fi
31625
cristy81beccd2011-10-03 18:17:24 +000031626have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031627PNG_CFLAGS=""
31628PNG_LIBS=""
31629PNG_PKG=""
31630if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31632$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031633
31634pkg_failed=no
31635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31636$as_echo_n "checking for PNG... " >&6; }
31637
31638if test -n "$PNG_CFLAGS"; then
31639 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31640 elif test -n "$PKG_CONFIG"; then
31641 if test -n "$PKG_CONFIG" && \
31642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31643 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31644 ac_status=$?
31645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31646 test $ac_status = 0; }; then
31647 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31648 test "x$?" != "x0" && pkg_failed=yes
31649else
31650 pkg_failed=yes
31651fi
31652 else
31653 pkg_failed=untried
31654fi
31655if test -n "$PNG_LIBS"; then
31656 pkg_cv_PNG_LIBS="$PNG_LIBS"
31657 elif test -n "$PKG_CONFIG"; then
31658 if test -n "$PKG_CONFIG" && \
31659 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31660 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31661 ac_status=$?
31662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31663 test $ac_status = 0; }; then
31664 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31665 test "x$?" != "x0" && pkg_failed=yes
31666else
31667 pkg_failed=yes
31668fi
31669 else
31670 pkg_failed=untried
31671fi
31672
31673
31674
31675if test $pkg_failed = yes; then
31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31677$as_echo "no" >&6; }
31678
31679if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31680 _pkg_short_errors_supported=yes
31681else
31682 _pkg_short_errors_supported=no
31683fi
31684 if test $_pkg_short_errors_supported = yes; then
31685 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31686 else
31687 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31688 fi
31689 # Put the nasty error message in config.log where it belongs
31690 echo "$PNG_PKG_ERRORS" >&5
31691
31692 have_png=no
31693elif test $pkg_failed = untried; then
31694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31695$as_echo "no" >&6; }
31696 have_png=no
31697else
31698 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31699 PNG_LIBS=$pkg_cv_PNG_LIBS
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31701$as_echo "yes" >&6; }
31702 have_png=yes
31703fi
cristyad38abe2012-12-23 23:03:21 +000031704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31705$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031706fi
31707
cristy32f75d42015-06-05 18:46:23 +000031708if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031709
cristy8b350f62009-11-15 23:12:43 +000031710$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031711
cristy32f75d42015-06-05 18:46:23 +000031712 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031713fi
cristy64877302011-08-23 19:10:31 +000031714
cristy73bd4a52010-10-05 11:24:23 +000031715 if test "$have_png" = 'yes'; then
31716 PNG_DELEGATE_TRUE=
31717 PNG_DELEGATE_FALSE='#'
31718else
31719 PNG_DELEGATE_TRUE='#'
31720 PNG_DELEGATE_FALSE=
31721fi
31722
cristy3ed852e2009-09-05 21:47:34 +000031723
cristy50d3f5c2011-09-10 20:09:06 +000031724
cristy3ed852e2009-09-05 21:47:34 +000031725
31726
31727#
31728# Check for RSVG delegate library.
31729#
31730
31731# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031732if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031733 withval=$with_rsvg; with_rsvg=$withval
31734else
cristy1164d5f2012-08-15 00:58:25 +000031735 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031736fi
31737
31738
31739if test "$with_rsvg" != 'yes'; then
31740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31741fi
31742
31743have_rsvg='no'
31744have_cairo='no'
31745RSVG_CFLAGS=""
31746RSVG_LIBS=""
31747RSVG_PKG=""
31748if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031750$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031751
31752pkg_failed=no
31753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31754$as_echo_n "checking for RSVG... " >&6; }
31755
31756if test -n "$RSVG_CFLAGS"; then
31757 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31758 elif test -n "$PKG_CONFIG"; then
31759 if test -n "$PKG_CONFIG" && \
31760 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31761 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31762 ac_status=$?
31763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31764 test $ac_status = 0; }; then
31765 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031766 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031767else
31768 pkg_failed=yes
31769fi
31770 else
31771 pkg_failed=untried
31772fi
31773if test -n "$RSVG_LIBS"; then
31774 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31775 elif test -n "$PKG_CONFIG"; then
31776 if test -n "$PKG_CONFIG" && \
31777 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31778 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31779 ac_status=$?
31780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31781 test $ac_status = 0; }; then
31782 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031783 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031784else
31785 pkg_failed=yes
31786fi
31787 else
31788 pkg_failed=untried
31789fi
31790
31791
31792
31793if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31795$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031796
31797if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31798 _pkg_short_errors_supported=yes
31799else
31800 _pkg_short_errors_supported=no
31801fi
31802 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031803 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031804 else
cristy146497a2015-05-17 22:46:16 +000031805 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031806 fi
31807 # Put the nasty error message in config.log where it belongs
31808 echo "$RSVG_PKG_ERRORS" >&5
31809
cristy146497a2015-05-17 22:46:16 +000031810 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031811elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31813$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031814 have_rsvg=no
31815else
31816 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31817 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31819$as_echo "yes" >&6; }
31820 have_rsvg=yes
31821fi
cristy32f75d42015-06-05 18:46:23 +000031822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031823$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031824
31825pkg_failed=no
31826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31827$as_echo_n "checking for CAIRO_SVG... " >&6; }
31828
31829if test -n "$CAIRO_SVG_CFLAGS"; then
31830 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31831 elif test -n "$PKG_CONFIG"; then
31832 if test -n "$PKG_CONFIG" && \
31833 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31834 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31835 ac_status=$?
31836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31837 test $ac_status = 0; }; then
31838 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031839 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031840else
31841 pkg_failed=yes
31842fi
31843 else
31844 pkg_failed=untried
31845fi
31846if test -n "$CAIRO_SVG_LIBS"; then
31847 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31848 elif test -n "$PKG_CONFIG"; then
31849 if test -n "$PKG_CONFIG" && \
31850 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31851 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31852 ac_status=$?
31853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31854 test $ac_status = 0; }; then
31855 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031856 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031857else
31858 pkg_failed=yes
31859fi
31860 else
31861 pkg_failed=untried
31862fi
31863
31864
31865
31866if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31868$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031869
31870if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31871 _pkg_short_errors_supported=yes
31872else
31873 _pkg_short_errors_supported=no
31874fi
31875 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031876 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031877 else
cristy146497a2015-05-17 22:46:16 +000031878 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031879 fi
31880 # Put the nasty error message in config.log where it belongs
31881 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31882
cristy146497a2015-05-17 22:46:16 +000031883 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000031884elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31886$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031887 have_cairo=no
31888else
31889 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31890 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31892$as_echo "yes" >&6; }
31893 have_cairo=yes
31894fi
cristy32f75d42015-06-05 18:46:23 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031896$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031897fi
31898
31899if test "$have_rsvg" = 'yes'; then
31900
cristy8b350f62009-11-15 23:12:43 +000031901$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031902
cristy32f75d42015-06-05 18:46:23 +000031903 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031904fi
31905
31906if test "$have_cairo" = 'yes'; then
31907
cristy8b350f62009-11-15 23:12:43 +000031908$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031909
cristy32f75d42015-06-05 18:46:23 +000031910 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031911fi
31912
cristy73bd4a52010-10-05 11:24:23 +000031913 if test "$have_rsvg" = 'yes'; then
31914 RSVG_DELEGATE_TRUE=
31915 RSVG_DELEGATE_FALSE='#'
31916else
31917 RSVG_DELEGATE_TRUE='#'
31918 RSVG_DELEGATE_FALSE=
31919fi
31920
31921 if test "$have_cairo" = 'yes'; then
31922 CAIRO_DELEGATE_TRUE=
31923 CAIRO_DELEGATE_FALSE='#'
31924else
31925 CAIRO_DELEGATE_TRUE='#'
31926 CAIRO_DELEGATE_FALSE=
31927fi
31928
cristy3ed852e2009-09-05 21:47:34 +000031929
31930
31931
31932
31933#
31934# Check for TIFF delegate library.
31935#
31936
31937# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031938if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031939 withval=$with_tiff; with_tiff=$withval
31940else
31941 with_tiff='yes'
31942fi
31943
31944
31945if test "$with_tiff" != 'yes'; then
31946 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31947fi
31948
31949have_tiff='no'
31950TIFF_LIBS=''
31951if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31953$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031955$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31957$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031958 failed=0
31959 passed=0
cristy8b350f62009-11-15 23:12:43 +000031960 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031961if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031962 passed=`expr $passed + 1`
31963else
31964 failed=`expr $failed + 1`
31965fi
31966
31967
cristy8b350f62009-11-15 23:12:43 +000031968 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031969if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031970 passed=`expr $passed + 1`
31971else
31972 failed=`expr $failed + 1`
31973fi
31974
31975
cristy8b350f62009-11-15 23:12:43 +000031976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031977$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031978if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031979 $as_echo_n "(cached) " >&6
31980else
31981 ac_check_lib_save_LIBS=$LIBS
31982LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031983cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031984/* end confdefs.h. */
31985
31986/* Override any GCC internal prototype to avoid an error.
31987 Use char because int might match the return type of a GCC
31988 builtin and then its argument prototype would still apply. */
31989#ifdef __cplusplus
31990extern "C"
31991#endif
31992char TIFFOpen ();
31993int
31994main ()
31995{
31996return TIFFOpen ();
31997 ;
31998 return 0;
31999}
32000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032001if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032002 ac_cv_lib_tiff_TIFFOpen=yes
32003else
cristy8b350f62009-11-15 23:12:43 +000032004 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032005fi
cristy8b350f62009-11-15 23:12:43 +000032006rm -f core conftest.err conftest.$ac_objext \
32007 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032008LIBS=$ac_check_lib_save_LIBS
32009fi
cristy8b350f62009-11-15 23:12:43 +000032010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032011$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032012if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032013 passed=`expr $passed + 1`
32014else
32015 failed=`expr $failed + 1`
32016fi
32017
cristy8b350f62009-11-15 23:12:43 +000032018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032020if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032021 $as_echo_n "(cached) " >&6
32022else
32023 ac_check_lib_save_LIBS=$LIBS
32024LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032026/* end confdefs.h. */
32027
32028/* Override any GCC internal prototype to avoid an error.
32029 Use char because int might match the return type of a GCC
32030 builtin and then its argument prototype would still apply. */
32031#ifdef __cplusplus
32032extern "C"
32033#endif
32034char TIFFClientOpen ();
32035int
32036main ()
32037{
32038return TIFFClientOpen ();
32039 ;
32040 return 0;
32041}
32042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032044 ac_cv_lib_tiff_TIFFClientOpen=yes
32045else
cristy8b350f62009-11-15 23:12:43 +000032046 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032047fi
cristy8b350f62009-11-15 23:12:43 +000032048rm -f core conftest.err conftest.$ac_objext \
32049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032050LIBS=$ac_check_lib_save_LIBS
32051fi
cristy8b350f62009-11-15 23:12:43 +000032052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032053$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032054if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032055 passed=`expr $passed + 1`
32056else
32057 failed=`expr $failed + 1`
32058fi
32059
cristy8b350f62009-11-15 23:12:43 +000032060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032061$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032062if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032063 $as_echo_n "(cached) " >&6
32064else
32065 ac_check_lib_save_LIBS=$LIBS
32066LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032068/* end confdefs.h. */
32069
32070/* Override any GCC internal prototype to avoid an error.
32071 Use char because int might match the return type of a GCC
32072 builtin and then its argument prototype would still apply. */
32073#ifdef __cplusplus
32074extern "C"
32075#endif
32076char TIFFIsByteSwapped ();
32077int
32078main ()
32079{
32080return TIFFIsByteSwapped ();
32081 ;
32082 return 0;
32083}
32084_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032085if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032086 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32087else
cristy8b350f62009-11-15 23:12:43 +000032088 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032089fi
cristy8b350f62009-11-15 23:12:43 +000032090rm -f core conftest.err conftest.$ac_objext \
32091 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032092LIBS=$ac_check_lib_save_LIBS
32093fi
cristy8b350f62009-11-15 23:12:43 +000032094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032095$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032096if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032097 passed=`expr $passed + 1`
32098else
32099 failed=`expr $failed + 1`
32100fi
32101
cristy8b350f62009-11-15 23:12:43 +000032102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032103$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032104if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032105 $as_echo_n "(cached) " >&6
32106else
32107 ac_check_lib_save_LIBS=$LIBS
32108LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032110/* end confdefs.h. */
32111
32112/* Override any GCC internal prototype to avoid an error.
32113 Use char because int might match the return type of a GCC
32114 builtin and then its argument prototype would still apply. */
32115#ifdef __cplusplus
32116extern "C"
32117#endif
32118char TIFFReadRGBATile ();
32119int
32120main ()
32121{
32122return TIFFReadRGBATile ();
32123 ;
32124 return 0;
32125}
32126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032128 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32129else
cristy8b350f62009-11-15 23:12:43 +000032130 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032131fi
cristy8b350f62009-11-15 23:12:43 +000032132rm -f core conftest.err conftest.$ac_objext \
32133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032134LIBS=$ac_check_lib_save_LIBS
32135fi
cristy8b350f62009-11-15 23:12:43 +000032136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032137$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032138if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032139 passed=`expr $passed + 1`
32140else
32141 failed=`expr $failed + 1`
32142fi
32143
cristy8b350f62009-11-15 23:12:43 +000032144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032145$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032146if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032147 $as_echo_n "(cached) " >&6
32148else
32149 ac_check_lib_save_LIBS=$LIBS
32150LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032152/* end confdefs.h. */
32153
32154/* Override any GCC internal prototype to avoid an error.
32155 Use char because int might match the return type of a GCC
32156 builtin and then its argument prototype would still apply. */
32157#ifdef __cplusplus
32158extern "C"
32159#endif
32160char TIFFReadRGBAStrip ();
32161int
32162main ()
32163{
32164return TIFFReadRGBAStrip ();
32165 ;
32166 return 0;
32167}
32168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032170 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32171else
cristy8b350f62009-11-15 23:12:43 +000032172 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032173fi
cristy8b350f62009-11-15 23:12:43 +000032174rm -f core conftest.err conftest.$ac_objext \
32175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032176LIBS=$ac_check_lib_save_LIBS
32177fi
cristy8b350f62009-11-15 23:12:43 +000032178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032179$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032180if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032181 passed=`expr $passed + 1`
32182else
32183 failed=`expr $failed + 1`
32184fi
32185
cristy8b350f62009-11-15 23:12:43 +000032186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032187$as_echo_n "checking if TIFF package is complete... " >&6; }
32188 if test $passed -gt 0; then
32189 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32191$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032192 have_tiff='no (failed tests)'
32193 else
32194 TIFF_LIBS='-ltiff'
32195 LIBS="$TIFF_LIBS $LIBS"
32196
cristy8b350f62009-11-15 23:12:43 +000032197$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032198
cristyad38abe2012-12-23 23:03:21 +000032199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32200$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032201 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032202 for ac_header in tiffconf.h
32203do :
32204 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032205if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032206 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032207#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032208_ACEOF
32209
32210fi
32211
32212done
32213
cristy8b350f62009-11-15 23:12:43 +000032214 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032215 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32216 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32217 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032218do :
32219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032221if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032222 cat >>confdefs.h <<_ACEOF
32223#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32224_ACEOF
32225
32226fi
32227done
32228
32229 fi
32230 else
cristyad38abe2012-12-23 23:03:21 +000032231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32232$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032233 fi
32234fi
cristy73bd4a52010-10-05 11:24:23 +000032235 if test "$have_tiff" = 'yes'; then
32236 TIFF_DELEGATE_TRUE=
32237 TIFF_DELEGATE_FALSE='#'
32238else
32239 TIFF_DELEGATE_TRUE='#'
32240 TIFF_DELEGATE_FALSE=
32241fi
32242
cristy3ed852e2009-09-05 21:47:34 +000032243
32244
32245
32246#
cristyb1860752011-03-14 00:27:46 +000032247# Check for WEBP delegate library.
32248#
32249
32250# Check whether --with-webp was given.
32251if test "${with_webp+set}" = set; then :
32252 withval=$with_webp; with_webp=$withval
32253else
32254 with_webp='yes'
32255fi
32256
32257
32258if test "$with_webp" != 'yes'; then
32259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32260fi
32261
32262have_webp='no'
32263WEBP_LIBS=''
32264if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32266$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32268$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32270$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032271 failed=0
32272 passed=0
32273 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32274if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32275 passed=`expr $passed + 1`
32276else
32277 failed=`expr $failed + 1`
32278fi
32279
32280
cristy6d670312013-03-22 23:23:01 +000032281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32282$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32283if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032284 $as_echo_n "(cached) " >&6
32285else
32286 ac_check_lib_save_LIBS=$LIBS
32287LIBS="-lwebp $LIBS"
32288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32289/* end confdefs.h. */
32290
32291/* Override any GCC internal prototype to avoid an error.
32292 Use char because int might match the return type of a GCC
32293 builtin and then its argument prototype would still apply. */
32294#ifdef __cplusplus
32295extern "C"
32296#endif
cristy6d670312013-03-22 23:23:01 +000032297char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032298int
32299main ()
32300{
cristy6d670312013-03-22 23:23:01 +000032301return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032302 ;
32303 return 0;
32304}
32305_ACEOF
32306if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032307 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032308else
cristy6d670312013-03-22 23:23:01 +000032309 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032310fi
32311rm -f core conftest.err conftest.$ac_objext \
32312 conftest$ac_exeext conftest.$ac_ext
32313LIBS=$ac_check_lib_save_LIBS
32314fi
cristy6d670312013-03-22 23:23:01 +000032315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32316$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32317if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032318 passed=`expr $passed + 1`
32319else
32320 failed=`expr $failed + 1`
32321fi
32322
32323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32324$as_echo_n "checking if WEBP package is complete... " >&6; }
32325 if test $passed -gt 0; then
32326 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32328$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032329 have_webp='no (failed tests)'
32330 else
32331 WEBP_LIBS='-lwebp'
32332 LIBS="$WEBP_LIBS $LIBS"
32333
32334$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32335
cristyad38abe2012-12-23 23:03:21 +000032336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32337$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032338 have_webp='yes'
32339 fi
32340 else
cristyad38abe2012-12-23 23:03:21 +000032341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32342$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032343 fi
32344fi
32345 if test "$have_webp" = 'yes'; then
32346 WEBP_DELEGATE_TRUE=
32347 WEBP_DELEGATE_FALSE='#'
32348else
32349 WEBP_DELEGATE_TRUE='#'
32350 WEBP_DELEGATE_FALSE=
32351fi
32352
32353
32354
32355
32356#
cristy3ed852e2009-09-05 21:47:34 +000032357# Set Windows font directory.
32358#
32359
32360# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032361if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032362 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32363else
cristy5a3dc992014-12-05 19:50:04 +000032364 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032365fi
32366
cristy5a3dc992014-12-05 19:50:04 +000032367
32368if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32370fi
32371
32372
32373#
32374# Check for WMF delegate library.
32375#
32376
32377# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032378if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032379 withval=$with_wmf; with_wmf=$withval
32380else
cristy32f75d42015-06-05 18:46:23 +000032381 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000032382fi
32383
32384
32385if test "$with_wmf" != 'yes'; then
32386 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32387fi
32388
32389have_wmf='no'
cristyebc8f692015-06-16 10:36:30 +000032390WMF_LIBS=''
32391WMF_CFLAGS=''
32392OLIBS="$LIBS"
32393if test "$with_wmf" != 'no'; then
32394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
32395$as_echo_n "checking for WMF support ... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000032396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32397$as_echo "" >&6; }
cristyebc8f692015-06-16 10:36:30 +000032398
32399 have_libwmflite='no'
32400 have_libwmf_ipa_h='no'
32401
32402 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32403"
32404if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32405 have_libwmf_ipa_h='yes'
cristy03f7cf92011-12-15 01:40:41 +000032406fi
32407
cristyebc8f692015-06-16 10:36:30 +000032408
32409 if test "$have_libwmf_ipa_h" = 'yes'; then
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32411$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32412if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32413 $as_echo_n "(cached) " >&6
32414else
32415 ac_check_lib_save_LIBS=$LIBS
32416LIBS="-lwmflite $LIBS"
32417cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32418/* end confdefs.h. */
32419
32420/* Override any GCC internal prototype to avoid an error.
32421 Use char because int might match the return type of a GCC
32422 builtin and then its argument prototype would still apply. */
32423#ifdef __cplusplus
32424extern "C"
32425#endif
32426char wmf_lite_create ();
32427int
32428main ()
32429{
32430return wmf_lite_create ();
32431 ;
32432 return 0;
32433}
32434_ACEOF
32435if ac_fn_c_try_link "$LINENO"; then :
32436 ac_cv_lib_wmflite_wmf_lite_create=yes
32437else
32438 ac_cv_lib_wmflite_wmf_lite_create=no
32439fi
32440rm -f core conftest.err conftest.$ac_objext \
32441 conftest$ac_exeext conftest.$ac_ext
32442LIBS=$ac_check_lib_save_LIBS
32443fi
32444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32445$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32446if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32447 have_libwmflite='yes'
32448fi
32449
32450 if test "$have_libwmflite" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032451
cristy8b350f62009-11-15 23:12:43 +000032452$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032453
cristyebc8f692015-06-16 10:36:30 +000032454 WMF_LIBS='-lwmflite'
32455 LIBS="$WMF_LIBS $LIBS"
32456 have_wmf='yes'
32457 else
32458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32459$as_echo "no -- some components failed test" >&6; }
32460 have_wmf='no (failed tests)'
32461 have_wmflite='no (failed tests)'
32462 LIBS="$OLIBS"
32463 WMF_LIBS=''
32464 fi
32465 fi
cristy3ed852e2009-09-05 21:47:34 +000032466fi
cristyebc8f692015-06-16 10:36:30 +000032467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
32468$as_echo_n "checking if WMF package is complete ... " >&6; }
32469if test "$have_wmf" = 'yes'; then
32470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32471$as_echo "yes" >&6; }
32472else
32473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32474$as_echo "no" >&6; }
32475fi
cristy73bd4a52010-10-05 11:24:23 +000032476 if test "$have_wmf" = 'yes'; then
32477 WMF_DELEGATE_TRUE=
32478 WMF_DELEGATE_FALSE='#'
32479else
32480 WMF_DELEGATE_TRUE='#'
32481 WMF_DELEGATE_FALSE=
32482fi
32483
cristy3ed852e2009-09-05 21:47:34 +000032484
32485
32486
cristy81beccd2011-10-03 18:17:24 +000032487
cristy3ed852e2009-09-05 21:47:34 +000032488#
32489# Check for XML delegate library.
32490#
32491
32492# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032493if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032494 withval=$with_xml; with_xml=$withval
32495else
cristyfc3d0222012-02-07 15:05:57 +000032496 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032497fi
32498
32499
cristy81beccd2011-10-03 18:17:24 +000032500if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032501 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32502fi
32503
cristy81beccd2011-10-03 18:17:24 +000032504have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000032505XML_CFLAGS=""
32506XML_LIBS=""
32507XML_PKG=""
32508if test "x$with_xml" = "xyes"; then
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032510$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000032511
32512pkg_failed=no
32513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000032514$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000032515
cristy32f75d42015-06-05 18:46:23 +000032516if test -n "$XML_CFLAGS"; then
32517 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
32518 elif test -n "$PKG_CONFIG"; then
32519 if test -n "$PKG_CONFIG" && \
32520 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32521 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32522 ac_status=$?
32523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32524 test $ac_status = 0; }; then
32525 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
32526 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000032527else
cristy32f75d42015-06-05 18:46:23 +000032528 pkg_failed=yes
32529fi
32530 else
32531 pkg_failed=untried
32532fi
32533if test -n "$XML_LIBS"; then
32534 pkg_cv_XML_LIBS="$XML_LIBS"
32535 elif test -n "$PKG_CONFIG"; then
32536 if test -n "$PKG_CONFIG" && \
32537 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32538 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32539 ac_status=$?
32540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32541 test $ac_status = 0; }; then
32542 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
32543 test "x$?" != "x0" && pkg_failed=yes
32544else
32545 pkg_failed=yes
32546fi
32547 else
32548 pkg_failed=untried
32549fi
32550
32551
32552
32553if test $pkg_failed = yes; then
32554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000032555$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032556
cristy32f75d42015-06-05 18:46:23 +000032557if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32558 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000032559else
cristy32f75d42015-06-05 18:46:23 +000032560 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000032561fi
cristy32f75d42015-06-05 18:46:23 +000032562 if test $_pkg_short_errors_supported = yes; then
32563 XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000032564 else
cristy32f75d42015-06-05 18:46:23 +000032565 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
32566 fi
32567 # Put the nasty error message in config.log where it belongs
32568 echo "$XML_PKG_ERRORS" >&5
32569
32570 have_xml=no
32571elif test $pkg_failed = untried; then
32572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32573$as_echo "no" >&6; }
32574 have_xml=no
32575else
32576 XML_CFLAGS=$pkg_cv_XML_CFLAGS
32577 XML_LIBS=$pkg_cv_XML_LIBS
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32579$as_echo "yes" >&6; }
32580 have_xml=yes
32581fi
32582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32583$as_echo "" >&6; }
32584fi
32585
32586if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032587
cristy8b350f62009-11-15 23:12:43 +000032588$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032589
cristy32f75d42015-06-05 18:46:23 +000032590 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032591fi
cristy32f75d42015-06-05 18:46:23 +000032592
cristy73bd4a52010-10-05 11:24:23 +000032593 if test "$have_xml" = 'yes'; then
32594 XML_DELEGATE_TRUE=
32595 XML_DELEGATE_FALSE='#'
32596else
32597 XML_DELEGATE_TRUE='#'
32598 XML_DELEGATE_FALSE=
32599fi
32600
cristy3ed852e2009-09-05 21:47:34 +000032601
32602
32603
cristy32f75d42015-06-05 18:46:23 +000032604
cristy3ed852e2009-09-05 21:47:34 +000032605# Substitute compiler name to build/link PerlMagick
32606#
32607
32608
32609#
32610# Configure install Paths
32611#
cristy7def36a2011-10-28 19:04:41 +000032612
cristy2a11bef2011-10-28 18:33:11 +000032613# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032614INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032615INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32616DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032617case "${build_os}" in
32618 mingw* )
32619 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32620 ;;
32621esac
32622
32623cat >>confdefs.h <<_ACEOF
32624#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32625_ACEOF
32626
32627
cristy3ed852e2009-09-05 21:47:34 +000032628
cristye52f12f2012-12-31 15:32:36 +000032629# Path to ImageMagick header files (arch part)
32630INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32631DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32632case "${build_os}" in
32633 mingw* )
32634 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32635 ;;
32636esac
32637
32638cat >>confdefs.h <<_ACEOF
32639#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32640_ACEOF
32641
32642
32643
cristy3ed852e2009-09-05 21:47:34 +000032644# Subdirectory under lib to place ImageMagick lib files
32645LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32646
32647cat >>confdefs.h <<_ACEOF
32648#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32649_ACEOF
32650
32651
32652# Path to ImageMagick bin directory
32653EXECUTABLE_PATH="${BIN_DIR}"
32654DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32655case "${build_os}" in
32656 mingw* )
32657 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32658 ;;
32659esac
32660
32661cat >>confdefs.h <<_ACEOF
32662#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32663_ACEOF
32664
32665
32666
32667# Path to ImageMagick lib
32668LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32669DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32670case "${build_os}" in
32671 mingw* )
32672 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32673 ;;
32674esac
32675
32676cat >>confdefs.h <<_ACEOF
32677#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32678_ACEOF
32679
32680
32681
cristy3ed852e2009-09-05 21:47:34 +000032682#
cristy8d0ff762013-03-10 20:33:28 +000032683# path to local binaries
32684if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32685 LIB_BIN_BASEDIRNAME="bin"
32686fi
32687
32688cat >>confdefs.h <<_ACEOF
32689#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32690_ACEOF
32691
32692
32693
32694if test "x$LIB_BIN_DIR" = "x"; then
32695 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32696fi
32697
32698
32699LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32700
32701LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32702
32703
32704#
cristy01ff9f32012-12-01 18:15:29 +000032705# path to modules lib
32706if test "x$MODULES_BASEDIRNAME" = "x"; then
32707 MODULES_BASEDIRNAME="modules"
32708fi
cristy3ed852e2009-09-05 21:47:34 +000032709
32710cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032711#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032712_ACEOF
32713
cristy01ff9f32012-12-01 18:15:29 +000032714
32715
32716if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032717 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32718else
cristy3ed852e2009-09-05 21:47:34 +000032719
32720cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032721#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032722_ACEOF
32723
cristycf4a3c22012-12-02 21:47:25 +000032724fi
cristy01ff9f32012-12-01 18:15:29 +000032725
32726
cristy371d4812012-12-01 19:48:10 +000032727MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032728
32729MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32730
32731
32732#
32733# path to coders lib
32734if test "x$CODER_DIRNAME" = "x"; then
32735 CODER_DIRNAME="coders"
32736fi
32737
32738cat >>confdefs.h <<_ACEOF
32739#define CODER_DIRNAME "$CODER_DIRNAME"
32740_ACEOF
32741
32742
32743
cristy371d4812012-12-01 19:48:10 +000032744CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032745CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032746
32747
32748#
32749# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032750#
32751# path to coders lib
32752if test "x$FILTER_DIRNAME" = "x"; then
32753 FILTER_DIRNAME="filters"
32754fi
cristy3ed852e2009-09-05 21:47:34 +000032755
32756cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032757#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032758_ACEOF
32759
cristy3ed852e2009-09-05 21:47:34 +000032760
cristy3ed852e2009-09-05 21:47:34 +000032761
cristy371d4812012-12-01 19:48:10 +000032762FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032763FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032764
32765
32766#
32767# Path to ImageMagick documentation files
Cristye35bdc62015-09-19 18:29:00 -040032768DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32769DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32770DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032771case "${build_os}" in
32772 mingw* )
32773 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32774 ;;
32775esac
32776
32777cat >>confdefs.h <<_ACEOF
32778#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32779_ACEOF
32780
32781
32782
cristydd17feb2014-03-05 02:06:32 +000032783#
32784# Enable/Disable documentation
32785# Check whether --enable-docs was given.
32786if test "${enable_docs+set}" = set; then :
32787 enableval=$enable_docs; wantdocs=$enableval
32788else
cristy02272312014-03-07 00:55:25 +000032789 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032790fi
32791
cristy02272312014-03-07 00:55:25 +000032792 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032793 INSTALL_DOC_TRUE=
32794 INSTALL_DOC_FALSE='#'
32795else
32796 INSTALL_DOC_TRUE='#'
32797 INSTALL_DOC_FALSE=
32798fi
32799
32800
cristy2a11bef2011-10-28 18:33:11 +000032801# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032802CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032803
32804cat >>confdefs.h <<_ACEOF
32805#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32806_ACEOF
32807
cristy7def36a2011-10-28 19:04:41 +000032808CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032809DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32810case "${build_os}" in
32811 mingw* )
32812 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32813 ;;
32814esac
32815
32816cat >>confdefs.h <<_ACEOF
32817#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32818_ACEOF
32819
32820
32821
cristy2a11bef2011-10-28 18:33:11 +000032822# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032823SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032824
32825cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032826#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032827_ACEOF
32828
cristy670aa3c2011-11-03 00:54:00 +000032829SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032830DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032831case "${build_os}" in
32832 mingw* )
cristy4f820712011-04-01 12:35:43 +000032833 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032834 ;;
32835esac
32836
32837cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032838#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032839_ACEOF
32840
32841
32842
cristy54378032012-12-04 15:52:20 +000032843#
32844# Subdirectory to place architecture-dependent configuration files.
32845if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32846 SHAREARCH_BASEDIRNAME="config"
32847fi
cristy670aa3c2011-11-03 00:54:00 +000032848
32849cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032850#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032851_ACEOF
32852
cristy54378032012-12-04 15:52:20 +000032853
32854
32855if test "x$SHAREARCH_DIRNAME" = "x"; then
32856 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32857else
cristy670aa3c2011-11-03 00:54:00 +000032858
32859cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032860#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032861_ACEOF
32862
cristy54378032012-12-04 15:52:20 +000032863fi
32864
32865
32866SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32867
32868SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032869
32870
cristy3ed852e2009-09-05 21:47:34 +000032871#
32872# program_transform_name is formed for use in a Makefile, so create a
32873# modified version for use in a shell script.
32874configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32875
32876# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32878$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32882$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032883AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000032884BPGDecodeDelegateDefault='bpgdec'
32885BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000032886BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032887BZIPDelegateDefault='bzip2'
32888BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000032889CatDelegateDefault='cat'
32890DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000032891DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000032892GVCDecodeDelegateDefault='dot'
32893DVIDecodeDelegateDefault='dvips'
32894EchoDelegateDefault='echo'
32895EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000032896ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32897DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32898MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32899GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032900HPGLDecodeDelegateDefault='hp2xx'
32901HTMLDecodeDelegateDefault='html2ps'
32902ILBMDecodeDelegateDefault='ilbmtoppm'
32903ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000032904JXRDecodeDelegateDefault='JxrDecApp'
32905JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000032906LPDelegateDefault='lp'
32907LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032908LaunchDelegateDefault='gimp'
32909MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000032910MPEGDecodeDelegateDefault='avconv'
32911MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000032912MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032913MVDelegateDefault='mv'
32914PCLDelegateDefault='pcl6'
32915PGPDecodeDelegateDefault='pgpv'
32916POVDelegateDefault='povray'
32917if test "$native_win32_build" = 'yes'; then
32918 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032919elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032920 PSDelegateDefault='gsc'
32921else
32922 PSDelegateDefault='gs'
32923fi
32924RLEEncodeDelegateDefault='rawtorle'
32925RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032926RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032927SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032928SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032929TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032930UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000032931WebPDecodeDelegateDefault='dwebp'
32932WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000032933WMFDecodeDelegateDefault='wmf2eps'
32934WWWDecodeDelegateDefault='curl'
32935XPSDelegateDefault='gxps'
32936ZipDelegateDefault='gzip'
32937
32938# Search for delegates
32939# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32940set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032943if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032944 $as_echo_n "(cached) " >&6
32945else
32946 case $AutotraceDecodeDelegate in
32947 [\\/]* | ?:[\\/]*)
32948 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32949 ;;
32950 *)
32951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32952for as_dir in $PATH
32953do
32954 IFS=$as_save_IFS
32955 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032956 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032958 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032960 break 2
32961 fi
32962done
cristy8b350f62009-11-15 23:12:43 +000032963 done
cristy3ed852e2009-09-05 21:47:34 +000032964IFS=$as_save_IFS
32965
32966 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32967 ;;
32968esac
32969fi
32970AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32971if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032973$as_echo "$AutotraceDecodeDelegate" >&6; }
32974else
cristy8b350f62009-11-15 23:12:43 +000032975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032976$as_echo "no" >&6; }
32977fi
32978
32979
cristy16b412d2014-12-15 11:09:48 +000032980# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
32981set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
32982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32983$as_echo_n "checking for $ac_word... " >&6; }
32984if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
32985 $as_echo_n "(cached) " >&6
32986else
32987 case $BGPDecodeDelegate in
32988 [\\/]* | ?:[\\/]*)
32989 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
32990 ;;
32991 *)
32992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32993for as_dir in $PATH
32994do
32995 IFS=$as_save_IFS
32996 test -z "$as_dir" && as_dir=.
32997 for ac_exec_ext in '' $ac_executable_extensions; do
32998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32999 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33001 break 2
33002 fi
33003done
33004 done
33005IFS=$as_save_IFS
33006
33007 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33008 ;;
33009esac
33010fi
33011BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33012if test -n "$BGPDecodeDelegate"; then
33013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33014$as_echo "$BGPDecodeDelegate" >&6; }
33015else
33016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33017$as_echo "no" >&6; }
33018fi
33019
33020
33021# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33022set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33024$as_echo_n "checking for $ac_word... " >&6; }
33025if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33026 $as_echo_n "(cached) " >&6
33027else
33028 case $BGPEncodeDelegate in
33029 [\\/]* | ?:[\\/]*)
33030 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33031 ;;
33032 *)
33033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33034for as_dir in $PATH
33035do
33036 IFS=$as_save_IFS
33037 test -z "$as_dir" && as_dir=.
33038 for ac_exec_ext in '' $ac_executable_extensions; do
33039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33040 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33042 break 2
33043 fi
33044done
33045 done
33046IFS=$as_save_IFS
33047
33048 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33049 ;;
33050esac
33051fi
33052BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33053if test -n "$BGPEncodeDelegate"; then
33054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33055$as_echo "$BGPEncodeDelegate" >&6; }
33056else
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33058$as_echo "no" >&6; }
33059fi
33060
33061
cristy3ed852e2009-09-05 21:47:34 +000033062# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33063set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033065$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033066if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033067 $as_echo_n "(cached) " >&6
33068else
33069 case $BlenderDecodeDelegate in
33070 [\\/]* | ?:[\\/]*)
33071 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33072 ;;
33073 *)
33074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33075for as_dir in $PATH
33076do
33077 IFS=$as_save_IFS
33078 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033079 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033081 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033083 break 2
33084 fi
33085done
cristy8b350f62009-11-15 23:12:43 +000033086 done
cristy3ed852e2009-09-05 21:47:34 +000033087IFS=$as_save_IFS
33088
33089 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33090 ;;
33091esac
33092fi
33093BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33094if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033096$as_echo "$BlenderDecodeDelegate" >&6; }
33097else
cristy8b350f62009-11-15 23:12:43 +000033098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033099$as_echo "no" >&6; }
33100fi
33101
33102
33103# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33104set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033106$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033107if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033108 $as_echo_n "(cached) " >&6
33109else
33110 case $BZIPDelegate in
33111 [\\/]* | ?:[\\/]*)
33112 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33113 ;;
33114 *)
33115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33116for as_dir in $PATH
33117do
33118 IFS=$as_save_IFS
33119 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033120 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033122 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033124 break 2
33125 fi
33126done
cristy8b350f62009-11-15 23:12:43 +000033127 done
cristy3ed852e2009-09-05 21:47:34 +000033128IFS=$as_save_IFS
33129
33130 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33131 ;;
33132esac
33133fi
33134BZIPDelegate=$ac_cv_path_BZIPDelegate
33135if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "$BZIPDelegate" >&6; }
33138else
cristy8b350f62009-11-15 23:12:43 +000033139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033140$as_echo "no" >&6; }
33141fi
33142
33143
cristyc59f0e72012-08-27 12:59:33 +000033144for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33145do
33146 # Extract the first word of "$ac_prog", so it can be a program name with args.
33147set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033149$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033150if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033151 $as_echo_n "(cached) " >&6
33152else
33153 case $BrowseDelegate in
33154 [\\/]* | ?:[\\/]*)
33155 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33156 ;;
33157 *)
33158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33159for as_dir in $PATH
33160do
33161 IFS=$as_save_IFS
33162 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033165 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167 break 2
33168 fi
33169done
cristy8b350f62009-11-15 23:12:43 +000033170 done
cristy3ed852e2009-09-05 21:47:34 +000033171IFS=$as_save_IFS
33172
cristy3ed852e2009-09-05 21:47:34 +000033173 ;;
33174esac
33175fi
33176BrowseDelegate=$ac_cv_path_BrowseDelegate
33177if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033179$as_echo "$BrowseDelegate" >&6; }
33180else
cristy8b350f62009-11-15 23:12:43 +000033181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033182$as_echo "no" >&6; }
33183fi
33184
33185
cristyc59f0e72012-08-27 12:59:33 +000033186 test -n "$BrowseDelegate" && break
33187done
33188test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33189
cristy3ed852e2009-09-05 21:47:34 +000033190# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33191set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033193$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033194if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033195 $as_echo_n "(cached) " >&6
33196else
33197 case $CatDelegate in
33198 [\\/]* | ?:[\\/]*)
33199 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33200 ;;
33201 *)
33202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33203for as_dir in $PATH
33204do
33205 IFS=$as_save_IFS
33206 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033209 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033211 break 2
33212 fi
33213done
cristy8b350f62009-11-15 23:12:43 +000033214 done
cristy3ed852e2009-09-05 21:47:34 +000033215IFS=$as_save_IFS
33216
33217 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33218 ;;
33219esac
33220fi
33221CatDelegate=$ac_cv_path_CatDelegate
33222if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033224$as_echo "$CatDelegate" >&6; }
33225else
cristy8b350f62009-11-15 23:12:43 +000033226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033227$as_echo "no" >&6; }
33228fi
33229
33230
33231# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33232set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033234$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033235if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033236 $as_echo_n "(cached) " >&6
33237else
33238 case $DNGDecodeDelegate in
33239 [\\/]* | ?:[\\/]*)
33240 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33241 ;;
33242 *)
33243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33244for as_dir in $PATH
33245do
33246 IFS=$as_save_IFS
33247 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033248 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033250 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033252 break 2
33253 fi
33254done
cristy8b350f62009-11-15 23:12:43 +000033255 done
cristy3ed852e2009-09-05 21:47:34 +000033256IFS=$as_save_IFS
33257
33258 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33259 ;;
33260esac
33261fi
33262DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33263if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033265$as_echo "$DNGDecodeDelegate" >&6; }
33266else
cristy8b350f62009-11-15 23:12:43 +000033267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033268$as_echo "no" >&6; }
33269fi
33270
33271
cristy66f238e2014-05-16 12:21:48 +000033272# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33273set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033275$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033276if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033277 $as_echo_n "(cached) " >&6
33278else
cristy66f238e2014-05-16 12:21:48 +000033279 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033280 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033281 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033282 ;;
33283 *)
33284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33285for as_dir in $PATH
33286do
33287 IFS=$as_save_IFS
33288 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033289 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033291 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033293 break 2
33294 fi
33295done
cristy8b350f62009-11-15 23:12:43 +000033296 done
cristy3ed852e2009-09-05 21:47:34 +000033297IFS=$as_save_IFS
33298
cristy66f238e2014-05-16 12:21:48 +000033299 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033300 ;;
33301esac
33302fi
cristy66f238e2014-05-16 12:21:48 +000033303DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33304if test -n "$DOCDecodeDelegate"; then
33305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33306$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033307else
cristy8b350f62009-11-15 23:12:43 +000033308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309$as_echo "no" >&6; }
33310fi
33311
33312
33313# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33314set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033316$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033317if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033318 $as_echo_n "(cached) " >&6
33319else
33320 case $DVIDecodeDelegate in
33321 [\\/]* | ?:[\\/]*)
33322 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33323 ;;
33324 *)
33325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33326for as_dir in $PATH
33327do
33328 IFS=$as_save_IFS
33329 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033330 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033332 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033334 break 2
33335 fi
33336done
cristy8b350f62009-11-15 23:12:43 +000033337 done
cristy3ed852e2009-09-05 21:47:34 +000033338IFS=$as_save_IFS
33339
33340 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33341 ;;
33342esac
33343fi
33344DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33345if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033347$as_echo "$DVIDecodeDelegate" >&6; }
33348else
cristy8b350f62009-11-15 23:12:43 +000033349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo "no" >&6; }
33351fi
33352
33353
cristy3ed852e2009-09-05 21:47:34 +000033354# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33355set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033357$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033358if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033359 $as_echo_n "(cached) " >&6
33360else
33361 case $ConvertDelegate in
33362 [\\/]* | ?:[\\/]*)
33363 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33364 ;;
33365 *)
33366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33367for as_dir in $PATH
33368do
33369 IFS=$as_save_IFS
33370 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033373 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033375 break 2
33376 fi
33377done
cristy8b350f62009-11-15 23:12:43 +000033378 done
cristy3ed852e2009-09-05 21:47:34 +000033379IFS=$as_save_IFS
33380
33381 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33382 ;;
33383esac
33384fi
33385ConvertDelegate=$ac_cv_path_ConvertDelegate
33386if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033388$as_echo "$ConvertDelegate" >&6; }
33389else
cristy8b350f62009-11-15 23:12:43 +000033390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo "no" >&6; }
33392fi
33393
33394
33395# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33396set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033398$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033399if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033400 $as_echo_n "(cached) " >&6
33401else
33402 case $DisplayDelegate in
33403 [\\/]* | ?:[\\/]*)
33404 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33405 ;;
33406 *)
33407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33408for as_dir in $PATH
33409do
33410 IFS=$as_save_IFS
33411 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033412 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033414 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033416 break 2
33417 fi
33418done
cristy8b350f62009-11-15 23:12:43 +000033419 done
cristy3ed852e2009-09-05 21:47:34 +000033420IFS=$as_save_IFS
33421
33422 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33423 ;;
33424esac
33425fi
33426DisplayDelegate=$ac_cv_path_DisplayDelegate
33427if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033429$as_echo "$DisplayDelegate" >&6; }
33430else
cristy8b350f62009-11-15 23:12:43 +000033431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo "no" >&6; }
33433fi
33434
33435
cristy66f238e2014-05-16 12:21:48 +000033436# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33437set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033439$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033440if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033441 $as_echo_n "(cached) " >&6
33442else
cristy66f238e2014-05-16 12:21:48 +000033443 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033444 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033445 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033446 ;;
33447 *)
33448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33449for as_dir in $PATH
33450do
33451 IFS=$as_save_IFS
33452 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033453 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033455 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033457 break 2
33458 fi
33459done
cristy8b350f62009-11-15 23:12:43 +000033460 done
cristy3ed852e2009-09-05 21:47:34 +000033461IFS=$as_save_IFS
33462
cristy66f238e2014-05-16 12:21:48 +000033463 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033464 ;;
33465esac
33466fi
cristy66f238e2014-05-16 12:21:48 +000033467EchoDelegate=$ac_cv_path_EchoDelegate
33468if test -n "$EchoDelegate"; then
33469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33470$as_echo "$EchoDelegate" >&6; }
33471else
33472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33473$as_echo "no" >&6; }
33474fi
33475
33476
33477# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33478set dummy "$EditorDelegateDefault"; ac_word=$2
33479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33480$as_echo_n "checking for $ac_word... " >&6; }
33481if ${ac_cv_path_EditorDelegate+:} false; then :
33482 $as_echo_n "(cached) " >&6
33483else
33484 case $EditorDelegate in
33485 [\\/]* | ?:[\\/]*)
33486 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33487 ;;
33488 *)
33489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33490for as_dir in $PATH
33491do
33492 IFS=$as_save_IFS
33493 test -z "$as_dir" && as_dir=.
33494 for ac_exec_ext in '' $ac_executable_extensions; do
33495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33496 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33498 break 2
33499 fi
33500done
33501 done
33502IFS=$as_save_IFS
33503
33504 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33505 ;;
33506esac
33507fi
33508EditorDelegate=$ac_cv_path_EditorDelegate
33509if test -n "$EditorDelegate"; then
33510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33511$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033512else
cristy8b350f62009-11-15 23:12:43 +000033513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo "no" >&6; }
33515fi
33516
33517
33518# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33519set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033521$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033522if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033523 $as_echo_n "(cached) " >&6
33524else
33525 case $GnuplotDecodeDelegate in
33526 [\\/]* | ?:[\\/]*)
33527 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33528 ;;
33529 *)
33530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33531for as_dir in $PATH
33532do
33533 IFS=$as_save_IFS
33534 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033535 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033537 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033539 break 2
33540 fi
33541done
cristy8b350f62009-11-15 23:12:43 +000033542 done
cristy3ed852e2009-09-05 21:47:34 +000033543IFS=$as_save_IFS
33544
33545 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33546 ;;
33547esac
33548fi
33549GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33550if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033552$as_echo "$GnuplotDecodeDelegate" >&6; }
33553else
cristy8b350f62009-11-15 23:12:43 +000033554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo "no" >&6; }
33556fi
33557
33558
cristy66f238e2014-05-16 12:21:48 +000033559# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33560set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33562$as_echo_n "checking for $ac_word... " >&6; }
33563if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33564 $as_echo_n "(cached) " >&6
33565else
33566 case $GVCDecodeDelegate in
33567 [\\/]* | ?:[\\/]*)
33568 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33569 ;;
33570 *)
33571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33572for as_dir in $PATH
33573do
33574 IFS=$as_save_IFS
33575 test -z "$as_dir" && as_dir=.
33576 for ac_exec_ext in '' $ac_executable_extensions; do
33577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33578 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33580 break 2
33581 fi
33582done
33583 done
33584IFS=$as_save_IFS
33585
33586 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33587 ;;
33588esac
33589fi
33590GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33591if test -n "$GVCDecodeDelegate"; then
33592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33593$as_echo "$GVCDecodeDelegate" >&6; }
33594else
33595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33596$as_echo "no" >&6; }
33597fi
33598
33599
cristy3ed852e2009-09-05 21:47:34 +000033600# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33601set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033603$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033604if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033605 $as_echo_n "(cached) " >&6
33606else
33607 case $HPGLDecodeDelegate in
33608 [\\/]* | ?:[\\/]*)
33609 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33610 ;;
33611 *)
33612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33613for as_dir in $PATH
33614do
33615 IFS=$as_save_IFS
33616 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033617 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033619 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033621 break 2
33622 fi
33623done
cristy8b350f62009-11-15 23:12:43 +000033624 done
cristy3ed852e2009-09-05 21:47:34 +000033625IFS=$as_save_IFS
33626
33627 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33628 ;;
33629esac
33630fi
33631HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33632if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033634$as_echo "$HPGLDecodeDelegate" >&6; }
33635else
cristy8b350f62009-11-15 23:12:43 +000033636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo "no" >&6; }
33638fi
33639
33640
33641# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33642set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033644$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033645if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033646 $as_echo_n "(cached) " >&6
33647else
33648 case $HTMLDecodeDelegate in
33649 [\\/]* | ?:[\\/]*)
33650 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33651 ;;
33652 *)
33653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33654for as_dir in $PATH
33655do
33656 IFS=$as_save_IFS
33657 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033658 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033660 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033662 break 2
33663 fi
33664done
cristy8b350f62009-11-15 23:12:43 +000033665 done
cristy3ed852e2009-09-05 21:47:34 +000033666IFS=$as_save_IFS
33667
33668 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33669 ;;
33670esac
33671fi
33672HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33673if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033675$as_echo "$HTMLDecodeDelegate" >&6; }
33676else
cristy8b350f62009-11-15 23:12:43 +000033677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033678$as_echo "no" >&6; }
33679fi
33680
33681
33682# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33683set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033685$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033686if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033687 $as_echo_n "(cached) " >&6
33688else
33689 case $ILBMDecodeDelegate in
33690 [\\/]* | ?:[\\/]*)
33691 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33692 ;;
33693 *)
33694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33695for as_dir in $PATH
33696do
33697 IFS=$as_save_IFS
33698 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033699 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033701 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033703 break 2
33704 fi
33705done
cristy8b350f62009-11-15 23:12:43 +000033706 done
cristy3ed852e2009-09-05 21:47:34 +000033707IFS=$as_save_IFS
33708
33709 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33710 ;;
33711esac
33712fi
33713ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33714if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033716$as_echo "$ILBMDecodeDelegate" >&6; }
33717else
cristy8b350f62009-11-15 23:12:43 +000033718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo "no" >&6; }
33720fi
33721
33722
33723# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33724set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033726$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033727if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033728 $as_echo_n "(cached) " >&6
33729else
33730 case $ILBMEncodeDelegate in
33731 [\\/]* | ?:[\\/]*)
33732 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33733 ;;
33734 *)
33735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33736for as_dir in $PATH
33737do
33738 IFS=$as_save_IFS
33739 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033742 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033744 break 2
33745 fi
33746done
cristy8b350f62009-11-15 23:12:43 +000033747 done
cristy3ed852e2009-09-05 21:47:34 +000033748IFS=$as_save_IFS
33749
33750 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33751 ;;
33752esac
33753fi
33754ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33755if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033757$as_echo "$ILBMEncodeDelegate" >&6; }
33758else
cristy8b350f62009-11-15 23:12:43 +000033759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo "no" >&6; }
33761fi
33762
33763
cristy71f53d52013-04-27 13:33:59 +000033764# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33765set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33767$as_echo_n "checking for $ac_word... " >&6; }
33768if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33769 $as_echo_n "(cached) " >&6
33770else
33771 case $JXRDecodeDelegate in
33772 [\\/]* | ?:[\\/]*)
33773 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33774 ;;
33775 *)
33776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33777for as_dir in $PATH
33778do
33779 IFS=$as_save_IFS
33780 test -z "$as_dir" && as_dir=.
33781 for ac_exec_ext in '' $ac_executable_extensions; do
33782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33783 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33785 break 2
33786 fi
33787done
33788 done
33789IFS=$as_save_IFS
33790
33791 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33792 ;;
33793esac
33794fi
33795JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33796if test -n "$JXRDecodeDelegate"; then
33797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33798$as_echo "$JXRDecodeDelegate" >&6; }
33799else
33800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33801$as_echo "no" >&6; }
33802fi
33803
33804
33805# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33806set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33808$as_echo_n "checking for $ac_word... " >&6; }
33809if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33810 $as_echo_n "(cached) " >&6
33811else
33812 case $JXREncodeDelegate in
33813 [\\/]* | ?:[\\/]*)
33814 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33815 ;;
33816 *)
33817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33818for as_dir in $PATH
33819do
33820 IFS=$as_save_IFS
33821 test -z "$as_dir" && as_dir=.
33822 for ac_exec_ext in '' $ac_executable_extensions; do
33823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33824 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33826 break 2
33827 fi
33828done
33829 done
33830IFS=$as_save_IFS
33831
33832 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33833 ;;
33834esac
33835fi
33836JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33837if test -n "$JXREncodeDelegate"; then
33838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33839$as_echo "$JXREncodeDelegate" >&6; }
33840else
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33842$as_echo "no" >&6; }
33843fi
33844
33845
cristy3ed852e2009-09-05 21:47:34 +000033846# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33847set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033850if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033851 $as_echo_n "(cached) " >&6
33852else
33853 case $LPDelegate in
33854 [\\/]* | ?:[\\/]*)
33855 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33856 ;;
33857 *)
33858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33859for as_dir in $PATH
33860do
33861 IFS=$as_save_IFS
33862 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033863 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033865 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033867 break 2
33868 fi
33869done
cristy8b350f62009-11-15 23:12:43 +000033870 done
cristy3ed852e2009-09-05 21:47:34 +000033871IFS=$as_save_IFS
33872
33873 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33874 ;;
33875esac
33876fi
33877LPDelegate=$ac_cv_path_LPDelegate
33878if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033880$as_echo "$LPDelegate" >&6; }
33881else
cristy8b350f62009-11-15 23:12:43 +000033882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033883$as_echo "no" >&6; }
33884fi
33885
33886
33887# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33888set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033890$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033891if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033892 $as_echo_n "(cached) " >&6
33893else
33894 case $LPRDelegate in
33895 [\\/]* | ?:[\\/]*)
33896 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33897 ;;
33898 *)
33899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33900for as_dir in $PATH
33901do
33902 IFS=$as_save_IFS
33903 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033904 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033906 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033908 break 2
33909 fi
33910done
cristy8b350f62009-11-15 23:12:43 +000033911 done
cristy3ed852e2009-09-05 21:47:34 +000033912IFS=$as_save_IFS
33913
33914 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33915 ;;
33916esac
33917fi
33918LPRDelegate=$ac_cv_path_LPRDelegate
33919if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033921$as_echo "$LPRDelegate" >&6; }
33922else
cristy8b350f62009-11-15 23:12:43 +000033923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033924$as_echo "no" >&6; }
33925fi
33926
33927
cristy3ed852e2009-09-05 21:47:34 +000033928# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33929set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033931$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033932if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033933 $as_echo_n "(cached) " >&6
33934else
33935 case $LaunchDelegate in
33936 [\\/]* | ?:[\\/]*)
33937 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33938 ;;
33939 *)
33940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33941for as_dir in $PATH
33942do
33943 IFS=$as_save_IFS
33944 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033945 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033947 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033949 break 2
33950 fi
33951done
cristy8b350f62009-11-15 23:12:43 +000033952 done
cristy3ed852e2009-09-05 21:47:34 +000033953IFS=$as_save_IFS
33954
33955 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33956 ;;
33957esac
33958fi
33959LaunchDelegate=$ac_cv_path_LaunchDelegate
33960if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033962$as_echo "$LaunchDelegate" >&6; }
33963else
cristy8b350f62009-11-15 23:12:43 +000033964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965$as_echo "no" >&6; }
33966fi
33967
33968
33969# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33970set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033972$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033973if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033974 $as_echo_n "(cached) " >&6
33975else
33976 case $MANDelegate in
33977 [\\/]* | ?:[\\/]*)
33978 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33979 ;;
33980 *)
33981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33982for as_dir in $PATH
33983do
33984 IFS=$as_save_IFS
33985 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033986 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033988 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033990 break 2
33991 fi
33992done
cristy8b350f62009-11-15 23:12:43 +000033993 done
cristy3ed852e2009-09-05 21:47:34 +000033994IFS=$as_save_IFS
33995
33996 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33997 ;;
33998esac
33999fi
34000MANDelegate=$ac_cv_path_MANDelegate
34001if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034003$as_echo "$MANDelegate" >&6; }
34004else
cristy8b350f62009-11-15 23:12:43 +000034005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034006$as_echo "no" >&6; }
34007fi
34008
34009
cristy66f238e2014-05-16 12:21:48 +000034010# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34011set dummy "$MogrifyDelegateDefault"; ac_word=$2
34012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34013$as_echo_n "checking for $ac_word... " >&6; }
34014if ${ac_cv_path_MogrifyDelegate+:} false; then :
34015 $as_echo_n "(cached) " >&6
34016else
34017 case $MogrifyDelegate in
34018 [\\/]* | ?:[\\/]*)
34019 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34020 ;;
34021 *)
34022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34023for as_dir in $PATH
34024do
34025 IFS=$as_save_IFS
34026 test -z "$as_dir" && as_dir=.
34027 for ac_exec_ext in '' $ac_executable_extensions; do
34028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34029 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34031 break 2
34032 fi
34033done
34034 done
34035IFS=$as_save_IFS
34036
34037 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34038 ;;
34039esac
34040fi
34041MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34042if test -n "$MogrifyDelegate"; then
34043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34044$as_echo "$MogrifyDelegate" >&6; }
34045else
34046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34047$as_echo "no" >&6; }
34048fi
34049
34050
cristy3ed852e2009-09-05 21:47:34 +000034051# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34052set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034055if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034056 $as_echo_n "(cached) " >&6
34057else
34058 case $MPEGDecodeDelegate in
34059 [\\/]* | ?:[\\/]*)
34060 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34061 ;;
34062 *)
34063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34064for as_dir in $PATH
34065do
34066 IFS=$as_save_IFS
34067 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034068 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034070 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034072 break 2
34073 fi
34074done
cristy8b350f62009-11-15 23:12:43 +000034075 done
cristy3ed852e2009-09-05 21:47:34 +000034076IFS=$as_save_IFS
34077
34078 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34079 ;;
34080esac
34081fi
34082MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34083if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034085$as_echo "$MPEGDecodeDelegate" >&6; }
34086else
cristy8b350f62009-11-15 23:12:43 +000034087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088$as_echo "no" >&6; }
34089fi
34090
34091
cristy058d15f2014-08-21 18:53:03 +000034092if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034093 MPEGDecodeDelegateDefault='ffmpeg'
34094 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34095set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34097$as_echo_n "checking for $ac_word... " >&6; }
34098if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34099 $as_echo_n "(cached) " >&6
34100else
34101 case $MPEGDecodeDelegate in
34102 [\\/]* | ?:[\\/]*)
34103 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34104 ;;
34105 *)
34106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34107for as_dir in $PATH
34108do
34109 IFS=$as_save_IFS
34110 test -z "$as_dir" && as_dir=.
34111 for ac_exec_ext in '' $ac_executable_extensions; do
34112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34113 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34115 break 2
34116 fi
34117done
34118 done
34119IFS=$as_save_IFS
34120
34121 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34122 ;;
34123esac
34124fi
34125MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34126if test -n "$MPEGDecodeDelegate"; then
34127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34128$as_echo "$MPEGDecodeDelegate" >&6; }
34129else
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34131$as_echo "no" >&6; }
34132fi
34133
34134
34135fi;
cristy3ed852e2009-09-05 21:47:34 +000034136# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34137set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034139$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034140if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034141 $as_echo_n "(cached) " >&6
34142else
34143 case $MPEGEncodeDelegate in
34144 [\\/]* | ?:[\\/]*)
34145 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34146 ;;
34147 *)
34148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34149for as_dir in $PATH
34150do
34151 IFS=$as_save_IFS
34152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034153 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034155 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157 break 2
34158 fi
34159done
cristy8b350f62009-11-15 23:12:43 +000034160 done
cristy3ed852e2009-09-05 21:47:34 +000034161IFS=$as_save_IFS
34162
34163 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34164 ;;
34165esac
34166fi
34167MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34168if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo "$MPEGEncodeDelegate" >&6; }
34171else
cristy8b350f62009-11-15 23:12:43 +000034172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034173$as_echo "no" >&6; }
34174fi
34175
34176
cristy058d15f2014-08-21 18:53:03 +000034177if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034178 MPEGEncodeDelegateDefault='ffmpeg'
34179 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34180set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34182$as_echo_n "checking for $ac_word... " >&6; }
34183if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34184 $as_echo_n "(cached) " >&6
34185else
34186 case $MPEGEncodeDelegate in
34187 [\\/]* | ?:[\\/]*)
34188 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34189 ;;
34190 *)
34191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34192for as_dir in $PATH
34193do
34194 IFS=$as_save_IFS
34195 test -z "$as_dir" && as_dir=.
34196 for ac_exec_ext in '' $ac_executable_extensions; do
34197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34198 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34200 break 2
34201 fi
34202done
34203 done
34204IFS=$as_save_IFS
34205
34206 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34207 ;;
34208esac
34209fi
34210MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34211if test -n "$MPEGEncodeDelegate"; then
34212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34213$as_echo "$MPEGEncodeDelegate" >&6; }
34214else
34215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34216$as_echo "no" >&6; }
34217fi
34218
34219
34220fi;
cristy935c86e2010-06-05 23:50:07 +000034221# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34222set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34224$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034225if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034226 $as_echo_n "(cached) " >&6
34227else
34228 case $MrSIDDecodeDelegate in
34229 [\\/]* | ?:[\\/]*)
34230 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34231 ;;
34232 *)
34233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34234for as_dir in $PATH
34235do
34236 IFS=$as_save_IFS
34237 test -z "$as_dir" && as_dir=.
34238 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034240 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34242 break 2
34243 fi
34244done
34245 done
34246IFS=$as_save_IFS
34247
34248 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34249 ;;
34250esac
34251fi
34252MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34253if test -n "$MrSIDDecodeDelegate"; then
34254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34255$as_echo "$MrSIDDecodeDelegate" >&6; }
34256else
34257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34258$as_echo "no" >&6; }
34259fi
34260
34261
cristy3ed852e2009-09-05 21:47:34 +000034262# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34263set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034266if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034267 $as_echo_n "(cached) " >&6
34268else
34269 case $MVDelegate in
34270 [\\/]* | ?:[\\/]*)
34271 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34272 ;;
34273 *)
34274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34275for as_dir in $PATH
34276do
34277 IFS=$as_save_IFS
34278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034281 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283 break 2
34284 fi
34285done
cristy8b350f62009-11-15 23:12:43 +000034286 done
cristy3ed852e2009-09-05 21:47:34 +000034287IFS=$as_save_IFS
34288
34289 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34290 ;;
34291esac
34292fi
34293MVDelegate=$ac_cv_path_MVDelegate
34294if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034296$as_echo "$MVDelegate" >&6; }
34297else
cristy8b350f62009-11-15 23:12:43 +000034298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034299$as_echo "no" >&6; }
34300fi
34301
34302
34303# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34304set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034306$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034307if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034308 $as_echo_n "(cached) " >&6
34309else
34310 case $PCLDelegate in
34311 [\\/]* | ?:[\\/]*)
34312 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34313 ;;
34314 *)
34315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34316for as_dir in $PATH
34317do
34318 IFS=$as_save_IFS
34319 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034320 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034322 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034324 break 2
34325 fi
34326done
cristy8b350f62009-11-15 23:12:43 +000034327 done
cristy3ed852e2009-09-05 21:47:34 +000034328IFS=$as_save_IFS
34329
34330 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34331 ;;
34332esac
34333fi
34334PCLDelegate=$ac_cv_path_PCLDelegate
34335if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034337$as_echo "$PCLDelegate" >&6; }
34338else
cristy8b350f62009-11-15 23:12:43 +000034339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340$as_echo "no" >&6; }
34341fi
34342
34343
34344# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34345set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034348if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034349 $as_echo_n "(cached) " >&6
34350else
34351 case $PGPDecodeDelegate in
34352 [\\/]* | ?:[\\/]*)
34353 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34354 ;;
34355 *)
34356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34357for as_dir in $PATH
34358do
34359 IFS=$as_save_IFS
34360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034363 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034365 break 2
34366 fi
34367done
cristy8b350f62009-11-15 23:12:43 +000034368 done
cristy3ed852e2009-09-05 21:47:34 +000034369IFS=$as_save_IFS
34370
34371 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34372 ;;
34373esac
34374fi
34375PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34376if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034378$as_echo "$PGPDecodeDelegate" >&6; }
34379else
cristy8b350f62009-11-15 23:12:43 +000034380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo "no" >&6; }
34382fi
34383
34384
34385# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34386set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034389if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034390 $as_echo_n "(cached) " >&6
34391else
34392 case $POVDelegate in
34393 [\\/]* | ?:[\\/]*)
34394 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34395 ;;
34396 *)
34397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34398for as_dir in $PATH
34399do
34400 IFS=$as_save_IFS
34401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034404 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034406 break 2
34407 fi
34408done
cristy8b350f62009-11-15 23:12:43 +000034409 done
cristy3ed852e2009-09-05 21:47:34 +000034410IFS=$as_save_IFS
34411
34412 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34413 ;;
34414esac
34415fi
34416POVDelegate=$ac_cv_path_POVDelegate
34417if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034419$as_echo "$POVDelegate" >&6; }
34420else
cristy8b350f62009-11-15 23:12:43 +000034421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo "no" >&6; }
34423fi
34424
34425
34426for ac_prog in gsx gsc "$PSDelegateDefault"
34427do
34428 # Extract the first word of "$ac_prog", so it can be a program name with args.
34429set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034432if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034433 $as_echo_n "(cached) " >&6
34434else
34435 case $PSDelegate in
34436 [\\/]* | ?:[\\/]*)
34437 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34438 ;;
34439 *)
34440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34441for as_dir in $PATH
34442do
34443 IFS=$as_save_IFS
34444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034447 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034449 break 2
34450 fi
34451done
cristy8b350f62009-11-15 23:12:43 +000034452 done
cristy3ed852e2009-09-05 21:47:34 +000034453IFS=$as_save_IFS
34454
34455 ;;
34456esac
34457fi
34458PSDelegate=$ac_cv_path_PSDelegate
34459if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461$as_echo "$PSDelegate" >&6; }
34462else
cristy8b350f62009-11-15 23:12:43 +000034463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034464$as_echo "no" >&6; }
34465fi
34466
34467
34468 test -n "$PSDelegate" && break
34469done
34470test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34471
34472# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34473set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034475$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034476if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034477 $as_echo_n "(cached) " >&6
34478else
34479 case $RLEEncodeDelegate in
34480 [\\/]* | ?:[\\/]*)
34481 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34482 ;;
34483 *)
34484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34485for as_dir in $PATH
34486do
34487 IFS=$as_save_IFS
34488 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034489 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034491 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034493 break 2
34494 fi
34495done
cristy8b350f62009-11-15 23:12:43 +000034496 done
cristy3ed852e2009-09-05 21:47:34 +000034497IFS=$as_save_IFS
34498
34499 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34500 ;;
34501esac
34502fi
34503RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34504if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034506$as_echo "$RLEEncodeDelegate" >&6; }
34507else
cristy8b350f62009-11-15 23:12:43 +000034508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034509$as_echo "no" >&6; }
34510fi
34511
34512
34513# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34514set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034516$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034517if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034518 $as_echo_n "(cached) " >&6
34519else
34520 case $RMDelegate in
34521 [\\/]* | ?:[\\/]*)
34522 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34523 ;;
34524 *)
34525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34526for as_dir in $PATH
34527do
34528 IFS=$as_save_IFS
34529 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034530 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034532 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034534 break 2
34535 fi
34536done
cristy8b350f62009-11-15 23:12:43 +000034537 done
cristy3ed852e2009-09-05 21:47:34 +000034538IFS=$as_save_IFS
34539
34540 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34541 ;;
34542esac
34543fi
34544RMDelegate=$ac_cv_path_RMDelegate
34545if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547$as_echo "$RMDelegate" >&6; }
34548else
cristy8b350f62009-11-15 23:12:43 +000034549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034550$as_echo "no" >&6; }
34551fi
34552
34553
cristy4689cf02010-02-17 21:15:45 +000034554# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34555set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34557$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034558if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034559 $as_echo_n "(cached) " >&6
34560else
34561 case $RSVGDecodeDelegate in
34562 [\\/]* | ?:[\\/]*)
34563 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34564 ;;
34565 *)
34566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34567for as_dir in $PATH
34568do
34569 IFS=$as_save_IFS
34570 test -z "$as_dir" && as_dir=.
34571 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034573 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34575 break 2
34576 fi
34577done
34578 done
34579IFS=$as_save_IFS
34580
34581 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34582 ;;
34583esac
34584fi
34585RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34586if test -n "$RSVGDecodeDelegate"; then
34587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34588$as_echo "$RSVGDecodeDelegate" >&6; }
34589else
34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34591$as_echo "no" >&6; }
34592fi
34593
34594
cristy3ed852e2009-09-05 21:47:34 +000034595# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34596set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034598$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034599if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034600 $as_echo_n "(cached) " >&6
34601else
34602 case $SCANDecodeDelegate in
34603 [\\/]* | ?:[\\/]*)
34604 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34605 ;;
34606 *)
34607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34608for as_dir in $PATH
34609do
34610 IFS=$as_save_IFS
34611 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034612 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034614 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034616 break 2
34617 fi
34618done
cristy8b350f62009-11-15 23:12:43 +000034619 done
cristy3ed852e2009-09-05 21:47:34 +000034620IFS=$as_save_IFS
34621
34622 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34623 ;;
34624esac
34625fi
34626SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34627if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034629$as_echo "$SCANDecodeDelegate" >&6; }
34630else
cristy8b350f62009-11-15 23:12:43 +000034631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034632$as_echo "no" >&6; }
34633fi
34634
34635
cristyec6934f2012-08-14 18:38:40 +000034636# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34637set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34639$as_echo_n "checking for $ac_word... " >&6; }
34640if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34641 $as_echo_n "(cached) " >&6
34642else
34643 case $SVGDecodeDelegate in
34644 [\\/]* | ?:[\\/]*)
34645 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34646 ;;
34647 *)
34648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34649for as_dir in $PATH
34650do
34651 IFS=$as_save_IFS
34652 test -z "$as_dir" && as_dir=.
34653 for ac_exec_ext in '' $ac_executable_extensions; do
34654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34655 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34657 break 2
34658 fi
34659done
34660 done
34661IFS=$as_save_IFS
34662
34663 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34664 ;;
34665esac
34666fi
34667SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34668if test -n "$SVGDecodeDelegate"; then
34669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34670$as_echo "$SVGDecodeDelegate" >&6; }
34671else
34672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34673$as_echo "no" >&6; }
34674fi
34675
34676
cristy3ed852e2009-09-05 21:47:34 +000034677# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34678set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034680$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034681if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034682 $as_echo_n "(cached) " >&6
34683else
34684 case $TXTDelegate in
34685 [\\/]* | ?:[\\/]*)
34686 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34687 ;;
34688 *)
34689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34690for as_dir in $PATH
34691do
34692 IFS=$as_save_IFS
34693 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034696 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034698 break 2
34699 fi
34700done
cristy8b350f62009-11-15 23:12:43 +000034701 done
cristy3ed852e2009-09-05 21:47:34 +000034702IFS=$as_save_IFS
34703
34704 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34705 ;;
34706esac
34707fi
34708TXTDelegate=$ac_cv_path_TXTDelegate
34709if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034711$as_echo "$TXTDelegate" >&6; }
34712else
cristy8b350f62009-11-15 23:12:43 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo "no" >&6; }
34715fi
34716
34717
cristy5ac9ac82010-07-29 13:24:24 +000034718# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34719set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034722if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034723 $as_echo_n "(cached) " >&6
34724else
34725 case $UniconvertorDelegate in
34726 [\\/]* | ?:[\\/]*)
34727 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34728 ;;
34729 *)
34730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34731for as_dir in $PATH
34732do
34733 IFS=$as_save_IFS
34734 test -z "$as_dir" && as_dir=.
34735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034737 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34739 break 2
34740 fi
34741done
34742 done
34743IFS=$as_save_IFS
34744
34745 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34746 ;;
34747esac
34748fi
34749UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34750if test -n "$UniconvertorDelegate"; then
34751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34752$as_echo "$UniconvertorDelegate" >&6; }
34753else
34754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34755$as_echo "no" >&6; }
34756fi
34757
34758
cristy86e86092013-08-04 17:43:57 +000034759# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34760set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34762$as_echo_n "checking for $ac_word... " >&6; }
34763if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34764 $as_echo_n "(cached) " >&6
34765else
34766 case $WebPDecodeDelegate in
34767 [\\/]* | ?:[\\/]*)
34768 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34769 ;;
34770 *)
34771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34772for as_dir in $PATH
34773do
34774 IFS=$as_save_IFS
34775 test -z "$as_dir" && as_dir=.
34776 for ac_exec_ext in '' $ac_executable_extensions; do
34777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34778 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34780 break 2
34781 fi
34782done
34783 done
34784IFS=$as_save_IFS
34785
34786 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34787 ;;
34788esac
34789fi
34790WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34791if test -n "$WebPDecodeDelegate"; then
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34793$as_echo "$WebPDecodeDelegate" >&6; }
34794else
34795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34796$as_echo "no" >&6; }
34797fi
34798
34799
34800# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34801set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34803$as_echo_n "checking for $ac_word... " >&6; }
34804if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34805 $as_echo_n "(cached) " >&6
34806else
34807 case $WebPEncodeDelegate in
34808 [\\/]* | ?:[\\/]*)
34809 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34810 ;;
34811 *)
34812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34813for as_dir in $PATH
34814do
34815 IFS=$as_save_IFS
34816 test -z "$as_dir" && as_dir=.
34817 for ac_exec_ext in '' $ac_executable_extensions; do
34818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34819 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34821 break 2
34822 fi
34823done
34824 done
34825IFS=$as_save_IFS
34826
34827 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34828 ;;
34829esac
34830fi
34831WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34832if test -n "$WebPEncodeDelegate"; then
34833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34834$as_echo "$WebPEncodeDelegate" >&6; }
34835else
34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34837$as_echo "no" >&6; }
34838fi
34839
34840
cristy3ed852e2009-09-05 21:47:34 +000034841# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34842set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034844$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034845if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034846 $as_echo_n "(cached) " >&6
34847else
34848 case $WMFDecodeDelegate in
34849 [\\/]* | ?:[\\/]*)
34850 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34851 ;;
34852 *)
34853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34854for as_dir in $PATH
34855do
34856 IFS=$as_save_IFS
34857 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034858 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034860 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034862 break 2
34863 fi
34864done
cristy8b350f62009-11-15 23:12:43 +000034865 done
cristy3ed852e2009-09-05 21:47:34 +000034866IFS=$as_save_IFS
34867
34868 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34869 ;;
34870esac
34871fi
34872WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34873if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034875$as_echo "$WMFDecodeDelegate" >&6; }
34876else
cristy8b350f62009-11-15 23:12:43 +000034877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034878$as_echo "no" >&6; }
34879fi
34880
34881
34882# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34883set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034886if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034887 $as_echo_n "(cached) " >&6
34888else
34889 case $WWWDecodeDelegate in
34890 [\\/]* | ?:[\\/]*)
34891 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34892 ;;
34893 *)
34894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34895for as_dir in $PATH
34896do
34897 IFS=$as_save_IFS
34898 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034899 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034901 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034903 break 2
34904 fi
34905done
cristy8b350f62009-11-15 23:12:43 +000034906 done
cristy3ed852e2009-09-05 21:47:34 +000034907IFS=$as_save_IFS
34908
34909 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34910 ;;
34911esac
34912fi
34913WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34914if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034916$as_echo "$WWWDecodeDelegate" >&6; }
34917else
cristy8b350f62009-11-15 23:12:43 +000034918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034919$as_echo "no" >&6; }
34920fi
34921
34922
34923# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34924set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034926$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034927if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034928 $as_echo_n "(cached) " >&6
34929else
34930 case $XPSDelegate in
34931 [\\/]* | ?:[\\/]*)
34932 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34933 ;;
34934 *)
34935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34936for as_dir in $PATH
34937do
34938 IFS=$as_save_IFS
34939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034942 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944 break 2
34945 fi
34946done
cristy8b350f62009-11-15 23:12:43 +000034947 done
cristy3ed852e2009-09-05 21:47:34 +000034948IFS=$as_save_IFS
34949
34950 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34951 ;;
34952esac
34953fi
34954XPSDelegate=$ac_cv_path_XPSDelegate
34955if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034957$as_echo "$XPSDelegate" >&6; }
34958else
cristy8b350f62009-11-15 23:12:43 +000034959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960$as_echo "no" >&6; }
34961fi
34962
34963
34964# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34965set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034967$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034968if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034969 $as_echo_n "(cached) " >&6
34970else
34971 case $ZipDelegate in
34972 [\\/]* | ?:[\\/]*)
34973 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34974 ;;
34975 *)
34976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34977for as_dir in $PATH
34978do
34979 IFS=$as_save_IFS
34980 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034981 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034983 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034985 break 2
34986 fi
34987done
cristy8b350f62009-11-15 23:12:43 +000034988 done
cristy3ed852e2009-09-05 21:47:34 +000034989IFS=$as_save_IFS
34990
34991 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34992 ;;
34993esac
34994fi
34995ZipDelegate=$ac_cv_path_ZipDelegate
34996if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034998$as_echo "$ZipDelegate" >&6; }
34999else
cristy8b350f62009-11-15 23:12:43 +000035000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo "no" >&6; }
35002fi
35003
35004
35005
35006# Prefer lpr to lp; lp needs options tacked on.
35007if test "$LPRDelegate" != no; then
35008 PrintDelegate="$LPRDelegate"
35009else
35010 PrintDelegate="$LPDelegate -c -s"
35011fi
35012
35013
35014# Installed ImageMagick utiltity paths
35015ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35016DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35017MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35018
35019# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035020have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035021have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35022have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35023have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035024have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035025have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35026have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035027have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35028
35029#
35030# Test for font directories
35031#
35032type_include_files=''
35033
cristy5a3dc992014-12-05 19:50:04 +000035034 Apple fonts.
35035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35036$as_echo_n "checking for Apple fonts directory... " >&6; }
35037apple_font_dir=''
35038if test "${with_apple_font_dir}" != 'default'; then
35039 apple_font_dir="${with_apple_font_dir}/"
35040else
35041 for font_dir in '/Library/Fonts/'; do
35042 if test -f "${font_dir}Arial.ttf"; then
35043 apple_font_dir="${font_dir}"
35044 break 1
35045 fi
35046 done
35047fi
35048if test "${apple_font_dir}x" != 'x'; then
35049 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35051$as_echo "$apple_font_dir" >&6; }
35052else
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35054$as_echo "not found!" >&6; };
35055fi
35056
35057
cristy430a7312010-01-21 20:44:04 +000035058# Dejavu fonts.
35059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35060$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35061dejavu_font_dir=''
35062if test "${with_dejavu_font_dir}" != 'default'; then
35063 dejavu_font_dir="${with_dejavu_font_dir}/"
35064else
35065 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35066 if test -f "${font_dir}DejaVuSerif.ttf"; then
35067 dejavu_font_dir="${font_dir}"
35068 break 1
35069 fi
35070 done
35071fi
35072if test "${dejavu_font_dir}x" != 'x'; then
35073 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35075$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035076else
cristyad38abe2012-12-23 23:03:21 +000035077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35078$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035079fi
35080
35081
cristy3ed852e2009-09-05 21:47:34 +000035082# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035084$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35085ghostscript_font_dir=''
35086if test "${with_gs_font_dir}" != 'default'; then
35087 ghostscript_font_dir="${with_gs_font_dir}/"
35088else
35089 if test "${native_win32_build}" = 'yes'; then
35090 # Native Windows Build
35091 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35092 if test -f "${font_dir}a010013l.pfb"; then
35093 ghostscript_font_dir="$font_dir"
35094 break 1
35095 fi
35096 done
35097 if test "${PSDelegate}" != 'gswin32c'; then
35098 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35099 fi
35100 else
35101 # Linux / Mac OS X / Unix Build
35102 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
35103 if test -f "${font_dir}a010013l.pfb"; then
35104 ghostscript_font_dir="${font_dir}"
35105 break 1
35106 fi
35107 done
35108 if test "${ghostscript_font_dir}x" = 'x'; then
35109 if test "$PSDelegate" != 'gs'; then
35110 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35111 fi
35112 fi
35113 fi
35114fi
35115if test "${ghostscript_font_dir}x" != 'x'; then
35116 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35118$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035119else
cristyad38abe2012-12-23 23:03:21 +000035120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35121$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035122fi
35123
35124case "${build_os}" in
35125 mingw* )
35126 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35127 ;;
35128esac
35129
cristy5a3dc992014-12-05 19:50:04 +000035130# Windows fonts.
35131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35132$as_echo_n "checking for Windows fonts directory... " >&6; }
35133windows_font_dir=''
35134if test "${with_windows_font_dir}" != 'default'; then
35135 windows_font_dir="${with_windows_font_dir}/"
35136else
35137 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35138 if test -f "${font_dir}arial.ttf"; then
35139 windows_font_dir="${font_dir}"
35140 break 1
35141 fi
35142 done
35143fi
35144if test "${windows_font_dir}x" != 'x'; then
35145 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35147$as_echo "$windows_font_dir" >&6; }
35148else
35149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35150$as_echo "not found!" >&6; };
35151fi
35152
35153
cristy3ed852e2009-09-05 21:47:34 +000035154
35155
35156#
35157# Handle case where user doesn't want frozen paths
35158#
35159if test "$with_frozenpaths" != 'yes'; then
35160 # Re-set delegate definitions to default (no paths)
35161 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035162 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35163 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035164 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35165 BZIPDelegate="$BZIPDelegateDefault"
35166 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035167 CatDelegate="$CatDelegateDefault"
35168 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035169 DisplayDelegate="$DisplayDelegateDefault"
35170 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035171 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035172 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35173 EchoDelegate="$EchoDelegateDefault"
35174 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035175 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035176 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035177 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35178 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35179 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35180 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035181 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35182 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035183 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035184 LaunchDelegate="$LaunchDelegateDefault"
35185 MANDelegate="$MANDelegateDefault"
35186 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35187 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035188 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035189 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35190 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035191 PCLDelegate="$PCLDelegateDefault"
35192 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35193 POVDelegate="$POVDelegateDefault"
35194 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035195 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35196 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035197 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035198 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035199 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035200 ShowImageDelegate="$ShowImageDelegateDefault"
35201 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035202 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035203 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35204 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035205 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35206 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35207 XPSDelegate="$XPSDelegateDefault"
35208 ZipDelegate="$ZipDelegateDefault"
35209fi
35210
35211# Delegate substitutions
35212
35213
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223
35224
35225
35226
35227
35228
35229
35230
35231
35232
35233
35234
35235
35236
35237
35238
35239
35240
35241
35242
35243
35244
35245
35246
35247
35248
35249
35250
35251
cristy71f53d52013-04-27 13:33:59 +000035252
35253
cristy16b412d2014-12-15 11:09:48 +000035254
35255
cristy3ed852e2009-09-05 21:47:34 +000035256#
35257# RPM support.
35258#
35259RPM=''
35260for ac_prog in gnutar gtar tar
35261do
35262 # Extract the first word of "$ac_prog", so it can be a program name with args.
35263set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035266if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035267 $as_echo_n "(cached) " >&6
35268else
35269 if test -n "$TAR"; then
35270 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35271else
35272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35273for as_dir in $PATH
35274do
35275 IFS=$as_save_IFS
35276 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035277 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035279 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035281 break 2
35282 fi
35283done
cristy8b350f62009-11-15 23:12:43 +000035284 done
cristy3ed852e2009-09-05 21:47:34 +000035285IFS=$as_save_IFS
35286
35287fi
35288fi
35289TAR=$ac_cv_prog_TAR
35290if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035292$as_echo "$TAR" >&6; }
35293else
cristy8b350f62009-11-15 23:12:43 +000035294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035295$as_echo "no" >&6; }
35296fi
35297
35298
35299 test -n "$TAR" && break
35300done
35301
35302for ac_prog in perl
35303do
35304 # Extract the first word of "$ac_prog", so it can be a program name with args.
35305set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035307$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035308if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035309 $as_echo_n "(cached) " >&6
35310else
35311 if test -n "$PERL"; then
35312 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35313else
35314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35315for as_dir in $PATH
35316do
35317 IFS=$as_save_IFS
35318 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035319 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035321 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323 break 2
35324 fi
35325done
cristy8b350f62009-11-15 23:12:43 +000035326 done
cristy3ed852e2009-09-05 21:47:34 +000035327IFS=$as_save_IFS
35328
35329fi
35330fi
35331PERL=$ac_cv_prog_PERL
35332if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035334$as_echo "$PERL" >&6; }
35335else
cristy8b350f62009-11-15 23:12:43 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo "no" >&6; }
35338fi
35339
35340
35341 test -n "$PERL" && break
35342done
35343
35344for ac_prog in rpmbuild rpm
35345do
35346 # Extract the first word of "$ac_prog", so it can be a program name with args.
35347set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035350if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035351 $as_echo_n "(cached) " >&6
35352else
35353 if test -n "$RPM"; then
35354 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35355else
35356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35357for as_dir in $PATH
35358do
35359 IFS=$as_save_IFS
35360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035363 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035365 break 2
35366 fi
35367done
cristy8b350f62009-11-15 23:12:43 +000035368 done
cristy3ed852e2009-09-05 21:47:34 +000035369IFS=$as_save_IFS
35370
35371fi
35372fi
35373RPM=$ac_cv_prog_RPM
35374if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035376$as_echo "$RPM" >&6; }
35377else
cristy8b350f62009-11-15 23:12:43 +000035378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035379$as_echo "no" >&6; }
35380fi
35381
35382
35383 test -n "$RPM" && break
35384done
35385
35386
cristy73bd4a52010-10-05 11:24:23 +000035387ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35388
35389
35390AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35391
35392
35393AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35394
35395
35396AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35397
35398
35399 if test "x$RPM" != "x" ; then
35400 RPM_DELEGATE_TRUE=
35401 RPM_DELEGATE_FALSE='#'
35402else
35403 RPM_DELEGATE_TRUE='#'
35404 RPM_DELEGATE_FALSE=
35405fi
35406
cristy3ed852e2009-09-05 21:47:34 +000035407
35408#
35409# 7ZIP support (http://p7zip.sourceforge.net/)
35410#
35411P7ZIP=''
35412for ac_prog in 7za
35413do
35414 # Extract the first word of "$ac_prog", so it can be a program name with args.
35415set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035417$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035418if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035419 $as_echo_n "(cached) " >&6
35420else
35421 if test -n "$P7ZIP"; then
35422 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35423else
35424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35425for as_dir in $PATH
35426do
35427 IFS=$as_save_IFS
35428 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035431 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035433 break 2
35434 fi
35435done
cristy8b350f62009-11-15 23:12:43 +000035436 done
cristy3ed852e2009-09-05 21:47:34 +000035437IFS=$as_save_IFS
35438
35439fi
35440fi
35441P7ZIP=$ac_cv_prog_P7ZIP
35442if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035444$as_echo "$P7ZIP" >&6; }
35445else
cristy8b350f62009-11-15 23:12:43 +000035446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035447$as_echo "no" >&6; }
35448fi
35449
35450
35451 test -n "$P7ZIP" && break
35452done
35453
35454
cristy73bd4a52010-10-05 11:24:23 +000035455 if test "x$P7ZIP" != "x" ; then
35456 P7ZIP_DELEGATE_TRUE=
35457 P7ZIP_DELEGATE_FALSE='#'
35458else
35459 P7ZIP_DELEGATE_TRUE='#'
35460 P7ZIP_DELEGATE_FALSE=
35461fi
35462
cristy3ed852e2009-09-05 21:47:34 +000035463
35464#
35465# ZIP support (http://www.info-zip.org/Zip.html)
35466#
35467ZIP=''
35468for ac_prog in zip
35469do
35470 # Extract the first word of "$ac_prog", so it can be a program name with args.
35471set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035474if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035475 $as_echo_n "(cached) " >&6
35476else
35477 if test -n "$ZIP"; then
35478 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35479else
35480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35481for as_dir in $PATH
35482do
35483 IFS=$as_save_IFS
35484 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035487 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489 break 2
35490 fi
35491done
cristy8b350f62009-11-15 23:12:43 +000035492 done
cristy3ed852e2009-09-05 21:47:34 +000035493IFS=$as_save_IFS
35494
35495fi
35496fi
35497ZIP=$ac_cv_prog_ZIP
35498if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035500$as_echo "$ZIP" >&6; }
35501else
cristy8b350f62009-11-15 23:12:43 +000035502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035503$as_echo "no" >&6; }
35504fi
35505
35506
35507 test -n "$ZIP" && break
35508done
35509
35510
cristy73bd4a52010-10-05 11:24:23 +000035511 if test "x$ZIP" != "x" ; then
35512 ZIP_DELEGATE_TRUE=
35513 ZIP_DELEGATE_FALSE='#'
35514else
35515 ZIP_DELEGATE_TRUE='#'
35516 ZIP_DELEGATE_FALSE=
35517fi
35518
cristy3ed852e2009-09-05 21:47:34 +000035519
35520#
35521# GhostPCL related configuration.
35522#
35523PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035524PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035525PCLMonoDevice=pbmraw
35526if test -z "$PCLVersion"; then
35527 PCLVersion='unknown'
35528fi
35529if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35531$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035533$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35535$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035536 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035538$as_echo_n "checking for pcl color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035539 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035540 :
35541 else
35542 PCLColorDevice=ppmraw
35543 fi
cristyad38abe2012-12-23 23:03:21 +000035544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35545$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035546
35547 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549$as_echo_n "checking for pcl CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035550 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035551 :
35552 else
35553 PCLCMYKDevice=$PCLColorDevice
35554 fi
cristyad38abe2012-12-23 23:03:21 +000035555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35556$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035557
35558 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035560$as_echo_n "checking for pcl mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035561 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035562 :
35563 else
35564 PCLMonoDevice=$PCLColorDevice
35565 fi
cristyad38abe2012-12-23 23:03:21 +000035566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35567$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035568fi
35569
35570
35571
35572
35573
35574
35575#
35576# GhostXPS related configuration.
35577#
35578XPSColorDevice=ppmraw
35579XPSCMYKDevice=bmpsep8
35580XPSMonoDevice=pbmraw
35581if test -z "$XPSVersion"; then
35582 XPSVersion='unknown'
35583fi
35584if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35586$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035588$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35590$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035591 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035593$as_echo_n "checking for xps color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035594 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035595 :
35596 else
35597 XPSColorDevice=ppmraw
35598 fi
cristyad38abe2012-12-23 23:03:21 +000035599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35600$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035601
35602 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035604$as_echo_n "checking for xps CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035605 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035606 :
35607 else
35608 XPSCMYKDevice=$XPSColorDevice
35609 fi
cristyad38abe2012-12-23 23:03:21 +000035610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35611$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035612
35613 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035615$as_echo_n "checking for xps mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035616 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035617 :
35618 else
35619 XPSMonoDevice=$XPSColorDevice
35620 fi
cristyad38abe2012-12-23 23:03:21 +000035621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35622$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035623fi
35624
35625
35626
35627
35628
35629
35630#
35631# Ghostscript related configuration.
35632#
cristya97426c2011-02-04 01:41:27 +000035633GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035634GSColorDevice=pnmraw
cristy63970c52015-06-06 16:09:04 +000035635GSCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035636GSMonoDevice=pbmraw
35637GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035638GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035639GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035640GSVersion='unknown'
35641if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35643$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035645$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35647$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035649$as_echo_n "checking for Ghostscript version... " >&6; }
35650 if GSVersion=`$PSDelegate --version`; then
35651 :
35652 else
35653 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35654 fi
cristyad38abe2012-12-23 23:03:21 +000035655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35656$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035657
cristy3ed852e2009-09-05 21:47:34 +000035658 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035660$as_echo_n "checking for gs color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035661 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035662 :
35663 else
cristy63970c52015-06-06 16:09:04 +000035664 GSColorDevice=ppmraw
cristy3ed852e2009-09-05 21:47:34 +000035665 fi
cristyad38abe2012-12-23 23:03:21 +000035666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35667$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035668
cristy63970c52015-06-06 16:09:04 +000035669 # GSAlphaDevice
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35671$as_echo_n "checking for gs alpha device... " >&6; }
35672 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35673 :
35674 else
35675 GSAlphaDevice=$GSColorDevice
35676 fi
35677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35678$as_echo "$GSAlphaDevice" >&6; }
35679
cristy3ed852e2009-09-05 21:47:34 +000035680 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035682$as_echo_n "checking for gs CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035683 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035684 :
35685 else
cristy63970c52015-06-06 16:09:04 +000035686 GSCMYKDevice=pam
cristy3ed852e2009-09-05 21:47:34 +000035687 fi
cristyad38abe2012-12-23 23:03:21 +000035688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35689$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035690
35691 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035693$as_echo_n "checking for gs mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035694 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035695 :
35696 else
35697 GSMonoDevice=$GSColorDevice
35698 fi
cristyad38abe2012-12-23 23:03:21 +000035699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35700$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035701
35702 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035704$as_echo_n "checking for gs PDF writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035705 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035706 :
35707 else
35708 GSPDFDevice=nodevice
35709 fi
cristy63970c52015-06-06 16:09:04 +000035710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristyad38abe2012-12-23 23:03:21 +000035711$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035712
35713 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035715$as_echo_n "checking for gs PS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035716 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035717 :
35718 else
cristy15308162015-01-09 23:43:12 +000035719 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035720 fi
cristyad38abe2012-12-23 23:03:21 +000035721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35722$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035723
35724 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035726$as_echo_n "checking for gs EPS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035727 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035728 :
35729 else
cristy15308162015-01-09 23:43:12 +000035730 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035731 fi
cristyad38abe2012-12-23 23:03:21 +000035732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35733$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035734fi
35735
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745#
35746# PerlMagick-related configuration
35747#
35748
35749# Look for PERL if PerlMagick requested
35750# If name/path of desired PERL interpreter is specified, look for that one first
35751have_perl='no'
35752if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35754$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035756$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35758$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035759 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035761$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035762if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035763 $as_echo_n "(cached) " >&6
35764else
35765 ac_cv_path_PERL="$with_perl"
35766fi
cristy8b350f62009-11-15 23:12:43 +000035767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035768$as_echo "$ac_cv_path_PERL" >&6; };
35769 PERL=$ac_cv_path_PERL
35770 have_perl="$ac_cv_path_PERL"
35771 else
35772 for ac_prog in perl perl5
35773do
35774 # Extract the first word of "$ac_prog", so it can be a program name with args.
35775set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035778if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035779 $as_echo_n "(cached) " >&6
35780else
35781 case $PERL in
35782 [\\/]* | ?:[\\/]*)
35783 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35784 ;;
35785 *)
35786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35787for as_dir in $PATH
35788do
35789 IFS=$as_save_IFS
35790 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035791 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035793 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035795 break 2
35796 fi
35797done
cristy8b350f62009-11-15 23:12:43 +000035798 done
cristy3ed852e2009-09-05 21:47:34 +000035799IFS=$as_save_IFS
35800
35801 ;;
35802esac
35803fi
35804PERL=$ac_cv_path_PERL
35805if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035807$as_echo "$PERL" >&6; }
35808else
cristy8b350f62009-11-15 23:12:43 +000035809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035810$as_echo "no" >&6; }
35811fi
35812
35813
35814 test -n "$PERL" && break
35815done
35816 if test "$ac_cv_path_PERL"; then
35817 have_perl="$ac_cv_path_PERL"
35818 fi
35819 fi
35820fi
35821
cristy949301e2010-01-06 01:38:40 +000035822if test "$with_perl" != 'yes' ; then
35823 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35824fi
35825
35826PERL_SUPPORTS_DESTDIR='no'
35827
cristy3ed852e2009-09-05 21:47:34 +000035828with_perl_static='no'
35829with_perl_dynamic='no'
35830if test "$have_perl" != 'no'; then
35831 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35832 with_perl_static='yes'
35833 fi
35834 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35835 with_perl_dynamic='yes'
35836 fi
35837 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035838
35839
35840
35841
35842 if test -n "$PERL"; then :
35843
35844 ax_perl_version="5.8.1"
35845
35846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35847$as_echo_n "checking for perl version... " >&6; }
35848
cristy17491be2014-06-24 01:10:53 +000035849 perl_version=`$PERL --version 2>&1 \
35850 | $SED -n -e '/This is perl/b inspect
35851b
35852: inspect
35853s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035854
35855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35856$as_echo "$perl_version" >&6; }
35857
35858 PERL_VERSION=$perl_version
35859
35860
35861
35862
35863
35864 # Used to indicate true or false condition
35865 ax_compare_version=false
35866
35867 # Convert the two version strings to be compared into a format that
35868 # allows a simple string comparison. The end result is that a version
35869 # string of the form 1.12.5-r617 will be converted to the form
35870 # 0001001200050617. In other words, each number is zero padded to four
35871 # digits, and non digits are removed.
35872
35873 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35874 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35875 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35876 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35877 -e 's/[^0-9]//g'`
35878
35879
35880 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35881 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35882 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35883 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35884 -e 's/[^0-9]//g'`
35885
35886
35887 ax_compare_version=`echo "x$ax_compare_version_A
35888x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35889
35890
35891
35892 if test "$ax_compare_version" = "true" ; then
35893
35894 :
35895 PERL_SUPPORTS_DESTDIR='yes'
35896
35897 else
35898 :
35899 PERL_SUPPORTS_DESTDIR='no'
35900
35901 fi
35902
35903
35904else
35905
35906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35907$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35908 PERL_SUPPORTS_DESTDIR='no'
35909
cristy3ed852e2009-09-05 21:47:34 +000035910fi
cristy73bd4a52010-10-05 11:24:23 +000035911
35912fi
35913 if test "$have_perl" != 'no'; then
35914 WITH_PERL_TRUE=
35915 WITH_PERL_FALSE='#'
35916else
35917 WITH_PERL_TRUE='#'
35918 WITH_PERL_FALSE=
35919fi
35920
35921 if test $with_perl_static = 'yes'; then
35922 WITH_PERL_STATIC_TRUE=
35923 WITH_PERL_STATIC_FALSE='#'
35924else
35925 WITH_PERL_STATIC_TRUE='#'
35926 WITH_PERL_STATIC_FALSE=
35927fi
35928
35929 if test $with_perl_dynamic = 'yes'; then
35930 WITH_PERL_DYNAMIC_TRUE=
35931 WITH_PERL_DYNAMIC_FALSE='#'
35932else
35933 WITH_PERL_DYNAMIC_TRUE='#'
35934 WITH_PERL_DYNAMIC_FALSE=
35935fi
35936
cristy3ed852e2009-09-05 21:47:34 +000035937
35938
35939# Determine path to pick up MagickCore library from for use with building PerlMagick
35940MAGICKCORE_PATH="${LIB_DIR}"
35941if test $with_perl_static = 'yes'; then
35942 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35943 libtool_objdir=$objdir
35944
35945 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035946 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035947fi
35948
35949
cristy2a3eb392012-12-17 13:39:20 +000035950# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000035951MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000035952if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035953 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000035954fi
cristy2a3eb392012-12-17 13:39:20 +000035955if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035956 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000035957fi
35958if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035959 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000035960fi
35961if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035962 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000035963fi
cristy81ab5af2013-10-06 18:28:39 +000035964if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035965 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000035966fi
35967if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035968 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000035969fi
cristy2a3eb392012-12-17 13:39:20 +000035970if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035971 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000035972fi
35973if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035974 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000035975fi
35976if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035977 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000035978fi
35979if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035980 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000035981fi
35982if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035983 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000035984fi
35985if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000035986 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000035987fi
cristy2a3eb392012-12-17 13:39:20 +000035988if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035989 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000035990fi
35991if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035992 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000035993fi
35994if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035995 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000035996fi
35997if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000035998 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000035999fi
36000if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036001 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036002fi
cristy99db3872014-01-01 15:11:34 +000036003if test "$have_openjp2" = 'yes' ; then
36004 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036005fi
cristy2a3eb392012-12-17 13:39:20 +000036006if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036007 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036008fi
36009if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036010 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036011fi
36012have_ps='no'
36013if test "$have_dps" = 'yes' || \
36014 test "$have_gs" = 'yes' || \
36015 test "${native_win32_build}" = 'yes' ; then
36016 have_ps='yes'
36017fi
36018if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036019 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036020fi
cristy2a3eb392012-12-17 13:39:20 +000036021if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036022 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036023fi
36024if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036025 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036026fi
36027if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036028 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036029fi
36030if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036031 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036032fi
cristy3b640ed2013-07-29 00:27:59 +000036033if test "$have_webp" = 'yes' ; then
36034 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36035fi
cristy2a3eb392012-12-17 13:39:20 +000036036if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036037 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036038fi
36039if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036040 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036041fi
36042if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036043 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036044fi
36045if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036046 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036047fi
cristyead532a2015-06-05 00:49:30 +000036048
cristy2a3eb392012-12-17 13:39:20 +000036049# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036050MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036051MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036052
36053
cristyfa161182012-12-19 15:45:28 +000036054
cristy3ed852e2009-09-05 21:47:34 +000036055#
36056# Handle special compiler flags
36057#
36058
36059# Add '-p' if prof source profiling support enabled
36060if test "$enable_prof" = 'yes'; then
36061 CFLAGS="-p $CFLAGS"
36062 CXXFLAGS="-p $CXXFLAGS"
36063 LDFLAGS="-p $LDFLAGS"
36064fi
36065
36066# Add '-pg' if gprof source profiling support enabled
36067if test "$enable_gprof" = 'yes'; then
36068 CFLAGS="-pg $CFLAGS"
36069 CXXFLAGS="-pg $CXXFLAGS"
36070 LDFLAGS="-pg $LDFLAGS"
36071fi
36072
36073# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36074# This is a gcc-specific feature
36075if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036077$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036078if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036079 $as_echo_n "(cached) " >&6
36080else
36081 ac_check_lib_save_LIBS=$LIBS
36082LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036084/* end confdefs.h. */
36085
36086/* Override any GCC internal prototype to avoid an error.
36087 Use char because int might match the return type of a GCC
36088 builtin and then its argument prototype would still apply. */
36089#ifdef __cplusplus
36090extern "C"
36091#endif
36092char _gcov_init ();
36093int
36094main ()
36095{
36096return _gcov_init ();
36097 ;
36098 return 0;
36099}
36100_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036101if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036102 ac_cv_lib_gcov__gcov_init=yes
36103else
cristy8b350f62009-11-15 23:12:43 +000036104 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036105fi
cristy8b350f62009-11-15 23:12:43 +000036106rm -f core conftest.err conftest.$ac_objext \
36107 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036108LIBS=$ac_check_lib_save_LIBS
36109fi
cristy8b350f62009-11-15 23:12:43 +000036110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036111$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036112if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036113 cat >>confdefs.h <<_ACEOF
36114#define HAVE_LIBGCOV 1
36115_ACEOF
36116
36117 LIBS="-lgcov $LIBS"
36118
36119fi
36120
cristy8b350f62009-11-15 23:12:43 +000036121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036122$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036123if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036124 $as_echo_n "(cached) " >&6
36125else
36126 ac_check_lib_save_LIBS=$LIBS
36127LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036129/* end confdefs.h. */
36130
36131/* Override any GCC internal prototype to avoid an error.
36132 Use char because int might match the return type of a GCC
36133 builtin and then its argument prototype would still apply. */
36134#ifdef __cplusplus
36135extern "C"
36136#endif
36137char __gcov_init ();
36138int
36139main ()
36140{
36141return __gcov_init ();
36142 ;
36143 return 0;
36144}
36145_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036146if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036147 ac_cv_lib_gcov___gcov_init=yes
36148else
cristy8b350f62009-11-15 23:12:43 +000036149 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036150fi
cristy8b350f62009-11-15 23:12:43 +000036151rm -f core conftest.err conftest.$ac_objext \
36152 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036153LIBS=$ac_check_lib_save_LIBS
36154fi
cristy8b350f62009-11-15 23:12:43 +000036155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036156$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036157if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036158 cat >>confdefs.h <<_ACEOF
36159#define HAVE_LIBGCOV 1
36160_ACEOF
36161
36162 LIBS="-lgcov $LIBS"
36163
36164fi
36165
36166 case "$target_os" in
36167 darwin*)
36168 OSX_GCOV_LDFLAG="-Wl,-single_module"
36169 ;;
36170 *)
36171 OSX_GCOV_LDFLAG=""
36172 ;;
36173 esac
36174
36175 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36176 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36177 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36178fi
36179
36180#
36181# Build library dependency list for libMagickCore
36182#
36183
cristyc6722092012-10-14 00:19:31 +000036184if test "$build_modules" != 'no'; then
cristybc8ef1c2015-06-06 14:32:21 +000036185 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036186else
cristy70870272015-06-06 15:54:14 +000036187 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036188fi
36189
36190
cristy3ed852e2009-09-05 21:47:34 +000036191# Pass only user-provided LIBS as "global" libraries
36192LIBS=$USER_LIBS
36193
36194#AC_SUBST(CPPFLAGS)
36195
36196#AC_SUBST(LDFLAGS)
36197#AC_SUBST(X_PRE_LIBS)
36198#AC_SUBST(X_LIBS)
36199#AC_SUBST(X_EXTRA_LIBS)
36200
36201MAGICK_CFLAGS=$CFLAGS
36202MAGICK_CXXFLAGS="$CXXFLAGS"
36203MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36204MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36205MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036206MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036207
36208
36209
36210
36211
36212
36213
36214
36215# Set configured scripts to executable.
36216ac_config_commands="$ac_config_commands default"
36217
cristy2bd4b6e2012-07-22 15:29:11 +000036218ac_config_commands="$ac_config_commands magick.sh.in"
36219
cristy3ed852e2009-09-05 21:47:34 +000036220ac_config_commands="$ac_config_commands MagickCore-config.in"
36221
cristy3ed852e2009-09-05 21:47:34 +000036222ac_config_commands="$ac_config_commands MagickWand-config.in"
36223
cristy3ed852e2009-09-05 21:47:34 +000036224ac_config_commands="$ac_config_commands Magick++-config.in"
36225
36226ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36227
36228
cristyad38abe2012-12-23 23:03:21 +000036229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36230$as_echo "-------------------------------------------------------------" >&6; }
36231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36232$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036233
36234rm -f magick-version
36235
36236result_dejavu_font_dir='none'
36237if test "${dejavu_font_dir}x" != 'x'; then
36238 result_dejavu_font_dir=$dejavu_font_dir
36239fi
36240
36241result_ghostscript_font_dir='none'
36242if test "${ghostscript_font_dir}x" != 'x'; then
36243 result_ghostscript_font_dir=$ghostscript_font_dir
36244fi
36245
36246result_windows_font_dir='none'
36247if test "${windows_font_dir}x" != 'x'; then
36248 result_windows_font_dir=${windows_font_dir}
36249fi
36250
36251# ==============================================================================
36252# Generate build environment
36253# ==============================================================================
36254ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
36255
cristy3ed852e2009-09-05 21:47:34 +000036256cat >confcache <<\_ACEOF
36257# This file is a shell script that caches the results of configure
36258# tests run on this system so they can be shared between configure
36259# scripts and configure runs, see configure's option --config-cache.
36260# It is not useful on other systems. If it contains results you don't
36261# want to keep, you may remove or edit it.
36262#
36263# config.status only pays attention to the cache file if you give it
36264# the --recheck option to rerun configure.
36265#
36266# `ac_cv_env_foo' variables (set or unset) will be overridden when
36267# loading this file, other *unset* `ac_cv_foo' will be assigned the
36268# following values.
36269
36270_ACEOF
36271
36272# The following way of writing the cache mishandles newlines in values,
36273# but we know of no workaround that is simple, portable, and efficient.
36274# So, we kill variables containing newlines.
36275# Ultrix sh set writes to stderr and can't be redirected directly,
36276# and sets the high bit in the cache file unless we assign to the vars.
36277(
36278 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36279 eval ac_val=\$$ac_var
36280 case $ac_val in #(
36281 *${as_nl}*)
36282 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036283 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036284$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36285 esac
36286 case $ac_var in #(
36287 _ | IFS | as_nl) ;; #(
36288 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036289 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036290 esac ;;
36291 esac
36292 done
36293
36294 (set) 2>&1 |
36295 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36296 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036297 # `set' does not quote correctly, so add quotes: double-quote
36298 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036299 sed -n \
36300 "s/'/'\\\\''/g;
36301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36302 ;; #(
36303 *)
36304 # `set' quotes correctly as required by POSIX, so do not add quotes.
36305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36306 ;;
36307 esac |
36308 sort
36309) |
36310 sed '
36311 /^ac_cv_env_/b end
36312 t clear
36313 :clear
36314 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36315 t end
36316 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36317 :end' >>confcache
36318if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36319 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036320 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036321 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036322$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036323 if test ! -f "$cache_file" || test -h "$cache_file"; then
36324 cat confcache >"$cache_file"
36325 else
36326 case $cache_file in #(
36327 */* | ?:*)
36328 mv -f confcache "$cache_file"$$ &&
36329 mv -f "$cache_file"$$ "$cache_file" ;; #(
36330 *)
36331 mv -f confcache "$cache_file" ;;
36332 esac
36333 fi
36334 fi
cristy3ed852e2009-09-05 21:47:34 +000036335 else
cristy8b350f62009-11-15 23:12:43 +000036336 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036337$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36338 fi
36339fi
36340rm -f confcache
36341
36342test "x$prefix" = xNONE && prefix=$ac_default_prefix
36343# Let make expand exec_prefix.
36344test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36345
36346DEFS=-DHAVE_CONFIG_H
36347
36348ac_libobjs=
36349ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036350U=
cristy3ed852e2009-09-05 21:47:34 +000036351for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36352 # 1. Remove the extension, and $U if already installed.
36353 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36354 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36355 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36356 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036357 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36358 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036359done
36360LIBOBJS=$ac_libobjs
36361
36362LTLIBOBJS=$ac_ltlibobjs
36363
36364
cristyc0890a62012-07-19 00:18:20 +000036365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36366$as_echo_n "checking that generated files are newer than configure... " >&6; }
36367 if test -n "$am_sleep_pid"; then
36368 # Hide warnings about reused PIDs.
36369 wait $am_sleep_pid 2>/dev/null
36370 fi
36371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36372$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036373 if test -n "$EXEEXT"; then
36374 am__EXEEXT_TRUE=
36375 am__EXEEXT_FALSE='#'
36376else
36377 am__EXEEXT_TRUE='#'
36378 am__EXEEXT_FALSE=
36379fi
cristy3ed852e2009-09-05 21:47:34 +000036380
cristy9af1cbf2014-12-28 22:03:09 +000036381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36382$as_echo_n "checking that generated files are newer than configure... " >&6; }
36383 if test -n "$am_sleep_pid"; then
36384 # Hide warnings about reused PIDs.
36385 wait $am_sleep_pid 2>/dev/null
36386 fi
36387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36388$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036389if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036390 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036391Usually this means the macro was only invoked conditionally." "$LINENO" 5
36392fi
36393if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036394 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036395Usually this means the macro was only invoked conditionally." "$LINENO" 5
36396fi
36397if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036398 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036399Usually this means the macro was only invoked conditionally." "$LINENO" 5
36400fi
36401if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036402 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036403Usually this means the macro was only invoked conditionally." "$LINENO" 5
36404fi
cristy9b86f202012-11-28 21:55:35 +000036405if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36406 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36407Usually this means the macro was only invoked conditionally." "$LINENO" 5
36408fi
cristy73bd4a52010-10-05 11:24:23 +000036409if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036410 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036411Usually this means the macro was only invoked conditionally." "$LINENO" 5
36412fi
36413if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036414 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036415Usually this means the macro was only invoked conditionally." "$LINENO" 5
36416fi
36417if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036418 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036419Usually this means the macro was only invoked conditionally." "$LINENO" 5
36420fi
36421if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036422 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036423Usually this means the macro was only invoked conditionally." "$LINENO" 5
36424fi
cristy73bd4a52010-10-05 11:24:23 +000036425if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036426 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036427Usually this means the macro was only invoked conditionally." "$LINENO" 5
36428fi
36429if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036430 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036431Usually this means the macro was only invoked conditionally." "$LINENO" 5
36432fi
cristy73bd4a52010-10-05 11:24:23 +000036433if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036434 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036435Usually this means the macro was only invoked conditionally." "$LINENO" 5
36436fi
cristy71d8c202012-03-20 17:05:01 +000036437if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36438 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36439Usually this means the macro was only invoked conditionally." "$LINENO" 5
36440fi
cristy73bd4a52010-10-05 11:24:23 +000036441
36442if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036443 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036444Usually this means the macro was only invoked conditionally." "$LINENO" 5
36445fi
36446if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036447 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036448Usually this means the macro was only invoked conditionally." "$LINENO" 5
36449fi
cristy3b0097d2014-11-04 15:34:47 +000036450if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36451 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36452Usually this means the macro was only invoked conditionally." "$LINENO" 5
36453fi
cristy73bd4a52010-10-05 11:24:23 +000036454if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036455 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036456Usually this means the macro was only invoked conditionally." "$LINENO" 5
36457fi
36458if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036459 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036460Usually this means the macro was only invoked conditionally." "$LINENO" 5
36461fi
36462if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036463 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036464Usually this means the macro was only invoked conditionally." "$LINENO" 5
36465fi
36466if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036467 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036468Usually this means the macro was only invoked conditionally." "$LINENO" 5
36469fi
cristy5eef09f2012-10-16 12:08:28 +000036470if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36471 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36472Usually this means the macro was only invoked conditionally." "$LINENO" 5
36473fi
cristy73bd4a52010-10-05 11:24:23 +000036474if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036475 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036476Usually this means the macro was only invoked conditionally." "$LINENO" 5
36477fi
36478if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036479 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036480Usually this means the macro was only invoked conditionally." "$LINENO" 5
36481fi
cristy73bd4a52010-10-05 11:24:23 +000036482if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036483 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036484Usually this means the macro was only invoked conditionally." "$LINENO" 5
36485fi
36486if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036487 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036488Usually this means the macro was only invoked conditionally." "$LINENO" 5
36489fi
cristy853d9902014-08-21 18:50:43 +000036490if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36491 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36492Usually this means the macro was only invoked conditionally." "$LINENO" 5
36493fi
cristy73bd4a52010-10-05 11:24:23 +000036494if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036495 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036496Usually this means the macro was only invoked conditionally." "$LINENO" 5
36497fi
36498if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036499 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036500Usually this means the macro was only invoked conditionally." "$LINENO" 5
36501fi
36502if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036503 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036504Usually this means the macro was only invoked conditionally." "$LINENO" 5
36505fi
36506if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036507 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036508Usually this means the macro was only invoked conditionally." "$LINENO" 5
36509fi
36510if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036511 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036512Usually this means the macro was only invoked conditionally." "$LINENO" 5
36513fi
36514if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036515 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036516Usually this means the macro was only invoked conditionally." "$LINENO" 5
36517fi
cristy73bd4a52010-10-05 11:24:23 +000036518if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036519 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036520Usually this means the macro was only invoked conditionally." "$LINENO" 5
36521fi
cristy99db3872014-01-01 15:11:34 +000036522if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36523 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36524Usually this means the macro was only invoked conditionally." "$LINENO" 5
36525fi
cristy73bd4a52010-10-05 11:24:23 +000036526if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036527 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036528Usually this means the macro was only invoked conditionally." "$LINENO" 5
36529fi
cristyfbb0ef02010-12-19 02:32:11 +000036530if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36531 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36532Usually this means the macro was only invoked conditionally." "$LINENO" 5
36533fi
cristy73bd4a52010-10-05 11:24:23 +000036534if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036535 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036536Usually this means the macro was only invoked conditionally." "$LINENO" 5
36537fi
cristy41cbe8a2011-10-27 01:35:18 +000036538if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36539 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36540Usually this means the macro was only invoked conditionally." "$LINENO" 5
36541fi
cristya054b762012-03-26 23:16:00 +000036542if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36543 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036544Usually this means the macro was only invoked conditionally." "$LINENO" 5
36545fi
cristy73bd4a52010-10-05 11:24:23 +000036546if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036547 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036548Usually this means the macro was only invoked conditionally." "$LINENO" 5
36549fi
36550if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036551 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036552Usually this means the macro was only invoked conditionally." "$LINENO" 5
36553fi
36554if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036555 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036556Usually this means the macro was only invoked conditionally." "$LINENO" 5
36557fi
36558if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036559 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036560Usually this means the macro was only invoked conditionally." "$LINENO" 5
36561fi
cristyb1860752011-03-14 00:27:46 +000036562if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36563 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36564Usually this means the macro was only invoked conditionally." "$LINENO" 5
36565fi
cristy73bd4a52010-10-05 11:24:23 +000036566if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036567 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036568Usually this means the macro was only invoked conditionally." "$LINENO" 5
36569fi
36570if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036571 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036572Usually this means the macro was only invoked conditionally." "$LINENO" 5
36573fi
cristydd17feb2014-03-05 02:06:32 +000036574if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36575 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36576Usually this means the macro was only invoked conditionally." "$LINENO" 5
36577fi
cristy73bd4a52010-10-05 11:24:23 +000036578if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036579 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036580Usually this means the macro was only invoked conditionally." "$LINENO" 5
36581fi
36582if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036583 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036584Usually this means the macro was only invoked conditionally." "$LINENO" 5
36585fi
36586if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036587 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036588Usually this means the macro was only invoked conditionally." "$LINENO" 5
36589fi
36590if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036591 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036592Usually this means the macro was only invoked conditionally." "$LINENO" 5
36593fi
36594if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036595 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036596Usually this means the macro was only invoked conditionally." "$LINENO" 5
36597fi
36598if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036599 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036600Usually this means the macro was only invoked conditionally." "$LINENO" 5
36601fi
cristy3ed852e2009-09-05 21:47:34 +000036602
cristyda16f162011-02-19 23:52:17 +000036603: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036604ac_write_fail=0
36605ac_clean_files_save=$ac_clean_files
36606ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036607{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036608$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036609as_write_fail=0
36610cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036611#! $SHELL
36612# Generated by $as_me.
36613# Run this file to recreate the current configuration.
36614# Compiler output produced by configure, useful for debugging
36615# configure, is in config.log if it exists.
36616
36617debug=false
36618ac_cs_recheck=false
36619ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036620
cristy8b350f62009-11-15 23:12:43 +000036621SHELL=\${CONFIG_SHELL-$SHELL}
36622export SHELL
36623_ASEOF
36624cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36625## -------------------- ##
36626## M4sh Initialization. ##
36627## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036628
36629# Be more Bourne compatible
36630DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036631if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036632 emulate sh
36633 NULLCMD=:
36634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36635 # is contrary to our usage. Disable this feature.
36636 alias -g '${1+"$@"}'='"$@"'
36637 setopt NO_GLOB_SUBST
36638else
cristy8b350f62009-11-15 23:12:43 +000036639 case `(set -o) 2>/dev/null` in #(
36640 *posix*) :
36641 set -o posix ;; #(
36642 *) :
36643 ;;
cristy3ed852e2009-09-05 21:47:34 +000036644esac
cristy3ed852e2009-09-05 21:47:34 +000036645fi
36646
36647
cristy3ed852e2009-09-05 21:47:34 +000036648as_nl='
36649'
36650export as_nl
36651# Printing a long string crashes Solaris 7 /usr/bin/printf.
36652as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36653as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36654as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036655# Prefer a ksh shell builtin over an external printf program on Solaris,
36656# but without wasting forks for bash or zsh.
36657if test -z "$BASH_VERSION$ZSH_VERSION" \
36658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36659 as_echo='print -r --'
36660 as_echo_n='print -rn --'
36661elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036662 as_echo='printf %s\n'
36663 as_echo_n='printf %s'
36664else
36665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36667 as_echo_n='/usr/ucb/echo -n'
36668 else
36669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36670 as_echo_n_body='eval
36671 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036672 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036673 *"$as_nl"*)
36674 expr "X$arg" : "X\\(.*\\)$as_nl";
36675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36676 esac;
36677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36678 '
36679 export as_echo_n_body
36680 as_echo_n='sh -c $as_echo_n_body as_echo'
36681 fi
36682 export as_echo_body
36683 as_echo='sh -c $as_echo_body as_echo'
36684fi
36685
36686# The user is always right.
36687if test "${PATH_SEPARATOR+set}" != set; then
36688 PATH_SEPARATOR=:
36689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36691 PATH_SEPARATOR=';'
36692 }
36693fi
36694
cristy3ed852e2009-09-05 21:47:34 +000036695
36696# IFS
36697# We need space, tab and new line, in precisely that order. Quoting is
36698# there to prevent editors from complaining about space-tab.
36699# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36700# splitting by setting IFS to empty value.)
36701IFS=" "" $as_nl"
36702
36703# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036704as_myself=
cristy8b350f62009-11-15 23:12:43 +000036705case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036706 *[\\/]* ) as_myself=$0 ;;
36707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36708for as_dir in $PATH
36709do
36710 IFS=$as_save_IFS
36711 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36713 done
cristy3ed852e2009-09-05 21:47:34 +000036714IFS=$as_save_IFS
36715
36716 ;;
36717esac
36718# We did not find ourselves, most probably we were run as `sh COMMAND'
36719# in which case we are not to be found in the path.
36720if test "x$as_myself" = x; then
36721 as_myself=$0
36722fi
36723if test ! -f "$as_myself"; then
36724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036725 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036726fi
36727
cristy8b350f62009-11-15 23:12:43 +000036728# Unset variables that we do not need and which cause bugs (e.g. in
36729# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36730# suppresses any "Segmentation fault" message there. '((' could
36731# trigger a bug in pdksh 5.2.14.
36732for as_var in BASH_ENV ENV MAIL MAILPATH
36733do eval test x\${$as_var+set} = xset \
36734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036735done
36736PS1='$ '
36737PS2='> '
36738PS4='+ '
36739
36740# NLS nuisances.
36741LC_ALL=C
36742export LC_ALL
36743LANGUAGE=C
36744export LANGUAGE
36745
cristy8b350f62009-11-15 23:12:43 +000036746# CDPATH.
36747(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36748
36749
cristy98dddb52010-11-04 00:30:15 +000036750# as_fn_error STATUS ERROR [LINENO LOG_FD]
36751# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036752# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36753# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036754# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036755as_fn_error ()
36756{
cristy98dddb52010-11-04 00:30:15 +000036757 as_status=$1; test $as_status -eq 0 && as_status=1
36758 if test "$4"; then
36759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036761 fi
cristy98dddb52010-11-04 00:30:15 +000036762 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036763 as_fn_exit $as_status
36764} # as_fn_error
36765
36766
36767# as_fn_set_status STATUS
36768# -----------------------
36769# Set $? to STATUS, without forking.
36770as_fn_set_status ()
36771{
36772 return $1
36773} # as_fn_set_status
36774
36775# as_fn_exit STATUS
36776# -----------------
36777# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36778as_fn_exit ()
36779{
36780 set +e
36781 as_fn_set_status $1
36782 exit $1
36783} # as_fn_exit
36784
36785# as_fn_unset VAR
36786# ---------------
36787# Portably unset VAR.
36788as_fn_unset ()
36789{
36790 { eval $1=; unset $1;}
36791}
36792as_unset=as_fn_unset
36793# as_fn_append VAR VALUE
36794# ----------------------
36795# Append the text in VALUE to the end of the definition contained in VAR. Take
36796# advantage of any shell optimizations that allow amortized linear growth over
36797# repeated appends, instead of the typical quadratic growth present in naive
36798# implementations.
36799if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36800 eval 'as_fn_append ()
36801 {
36802 eval $1+=\$2
36803 }'
36804else
36805 as_fn_append ()
36806 {
36807 eval $1=\$$1\$2
36808 }
36809fi # as_fn_append
36810
36811# as_fn_arith ARG...
36812# ------------------
36813# Perform arithmetic evaluation on the ARGs, and store the result in the
36814# global $as_val. Take advantage of shells that can avoid forks. The arguments
36815# must be portable across $(()) and expr.
36816if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36817 eval 'as_fn_arith ()
36818 {
36819 as_val=$(( $* ))
36820 }'
36821else
36822 as_fn_arith ()
36823 {
36824 as_val=`expr "$@" || test $? -eq 1`
36825 }
36826fi # as_fn_arith
36827
36828
cristy3ed852e2009-09-05 21:47:34 +000036829if expr a : '\(a\)' >/dev/null 2>&1 &&
36830 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36831 as_expr=expr
36832else
36833 as_expr=false
36834fi
36835
36836if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36837 as_basename=basename
36838else
36839 as_basename=false
36840fi
36841
cristy8b350f62009-11-15 23:12:43 +000036842if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36843 as_dirname=dirname
36844else
36845 as_dirname=false
36846fi
cristy3ed852e2009-09-05 21:47:34 +000036847
cristy3ed852e2009-09-05 21:47:34 +000036848as_me=`$as_basename -- "$0" ||
36849$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36850 X"$0" : 'X\(//\)$' \| \
36851 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36852$as_echo X/"$0" |
36853 sed '/^.*\/\([^/][^/]*\)\/*$/{
36854 s//\1/
36855 q
36856 }
36857 /^X\/\(\/\/\)$/{
36858 s//\1/
36859 q
36860 }
36861 /^X\/\(\/\).*/{
36862 s//\1/
36863 q
36864 }
36865 s/.*/./; q'`
36866
cristy8b350f62009-11-15 23:12:43 +000036867# Avoid depending upon Character Ranges.
36868as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36869as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36870as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36871as_cr_digits='0123456789'
36872as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036873
36874ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036875case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036876-n*)
cristy8b350f62009-11-15 23:12:43 +000036877 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036878 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036879 xy) ECHO_C='\c';;
36880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36881 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036882 esac;;
36883*)
36884 ECHO_N='-n';;
36885esac
cristy3ed852e2009-09-05 21:47:34 +000036886
36887rm -f conf$$ conf$$.exe conf$$.file
36888if test -d conf$$.dir; then
36889 rm -f conf$$.dir/conf$$.file
36890else
36891 rm -f conf$$.dir
36892 mkdir conf$$.dir 2>/dev/null
36893fi
36894if (echo >conf$$.file) 2>/dev/null; then
36895 if ln -s conf$$.file conf$$ 2>/dev/null; then
36896 as_ln_s='ln -s'
36897 # ... but there are two gotchas:
36898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036900 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036902 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036903 elif ln conf$$.file conf$$ 2>/dev/null; then
36904 as_ln_s=ln
36905 else
cristy14fefe52012-05-21 00:59:18 +000036906 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036907 fi
36908else
cristy14fefe52012-05-21 00:59:18 +000036909 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036910fi
36911rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36912rmdir conf$$.dir 2>/dev/null
36913
cristy8b350f62009-11-15 23:12:43 +000036914
36915# as_fn_mkdir_p
36916# -------------
36917# Create "$as_dir" as a directory, including parents if necessary.
36918as_fn_mkdir_p ()
36919{
36920
36921 case $as_dir in #(
36922 -*) as_dir=./$as_dir;;
36923 esac
36924 test -d "$as_dir" || eval $as_mkdir_p || {
36925 as_dirs=
36926 while :; do
36927 case $as_dir in #(
36928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36929 *) as_qdir=$as_dir;;
36930 esac
36931 as_dirs="'$as_qdir' $as_dirs"
36932 as_dir=`$as_dirname -- "$as_dir" ||
36933$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36934 X"$as_dir" : 'X\(//\)[^/]' \| \
36935 X"$as_dir" : 'X\(//\)$' \| \
36936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36937$as_echo X"$as_dir" |
36938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36939 s//\1/
36940 q
36941 }
36942 /^X\(\/\/\)[^/].*/{
36943 s//\1/
36944 q
36945 }
36946 /^X\(\/\/\)$/{
36947 s//\1/
36948 q
36949 }
36950 /^X\(\/\).*/{
36951 s//\1/
36952 q
36953 }
36954 s/.*/./; q'`
36955 test -d "$as_dir" && break
36956 done
36957 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036959
36960
36961} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036962if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036963 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036964else
36965 test -d ./-p && rmdir ./-p
36966 as_mkdir_p=false
36967fi
36968
cristy14fefe52012-05-21 00:59:18 +000036969
36970# as_fn_executable_p FILE
36971# -----------------------
36972# Test if FILE is an executable regular file.
36973as_fn_executable_p ()
36974{
36975 test -f "$1" && test -x "$1"
36976} # as_fn_executable_p
36977as_test_x='test -x'
36978as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036979
36980# Sed expression to map a string onto a valid CPP name.
36981as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36982
36983# Sed expression to map a string onto a valid variable name.
36984as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36985
36986
36987exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036988## ----------------------------------- ##
36989## Main body of $CONFIG_STATUS script. ##
36990## ----------------------------------- ##
36991_ASEOF
36992test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036993
cristy8b350f62009-11-15 23:12:43 +000036994cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36995# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036996# report actual input values of CONFIG_FILES etc. instead of their
36997# values after options handling.
36998ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036999This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037000generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037001
37002 CONFIG_FILES = $CONFIG_FILES
37003 CONFIG_HEADERS = $CONFIG_HEADERS
37004 CONFIG_LINKS = $CONFIG_LINKS
37005 CONFIG_COMMANDS = $CONFIG_COMMANDS
37006 $ $0 $@
37007
37008on `(hostname || uname -n) 2>/dev/null | sed 1q`
37009"
37010
37011_ACEOF
37012
37013case $ac_config_files in *"
37014"*) set x $ac_config_files; shift; ac_config_files=$*;;
37015esac
37016
37017case $ac_config_headers in *"
37018"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37019esac
37020
37021
37022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37023# Files that config.status was made for.
37024config_files="$ac_config_files"
37025config_headers="$ac_config_headers"
37026config_commands="$ac_config_commands"
37027
37028_ACEOF
37029
37030cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37031ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037032\`$as_me' instantiates files and other configuration actions
37033from templates according to the current configuration. Unless the files
37034and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037035
cristy8b350f62009-11-15 23:12:43 +000037036Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037037
37038 -h, --help print this help, then exit
37039 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037040 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037041 -q, --quiet, --silent
37042 do not print progress messages
37043 -d, --debug don't remove temporary files
37044 --recheck update $as_me by reconfiguring in the same conditions
37045 --file=FILE[:TEMPLATE]
37046 instantiate the configuration file FILE
37047 --header=FILE[:TEMPLATE]
37048 instantiate the configuration header FILE
37049
37050Configuration files:
37051$config_files
37052
37053Configuration headers:
37054$config_headers
37055
37056Configuration commands:
37057$config_commands
37058
cristy8b350f62009-11-15 23:12:43 +000037059Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037060
37061_ACEOF
37062cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037063ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037064ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037065ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037066configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037067 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037068
cristy14fefe52012-05-21 00:59:18 +000037069Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037070This config.status script is free software; the Free Software Foundation
37071gives unlimited permission to copy, distribute and modify it."
37072
37073ac_pwd='$ac_pwd'
37074srcdir='$srcdir'
37075INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037076MKDIR_P='$MKDIR_P'
37077AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037078test -n "\$AWK" || AWK=awk
37079_ACEOF
37080
37081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37082# The default lists apply if the user does not specify any file.
37083ac_need_defaults=:
37084while test $# != 0
37085do
37086 case $1 in
cristyda16f162011-02-19 23:52:17 +000037087 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037088 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37089 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37090 ac_shift=:
37091 ;;
cristyda16f162011-02-19 23:52:17 +000037092 --*=)
37093 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37094 ac_optarg=
37095 ac_shift=:
37096 ;;
cristy3ed852e2009-09-05 21:47:34 +000037097 *)
37098 ac_option=$1
37099 ac_optarg=$2
37100 ac_shift=shift
37101 ;;
37102 esac
37103
37104 case $ac_option in
37105 # Handling of the options.
37106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37107 ac_cs_recheck=: ;;
37108 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37109 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037110 --config | --confi | --conf | --con | --co | --c )
37111 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037112 --debug | --debu | --deb | --de | --d | -d )
37113 debug=: ;;
37114 --file | --fil | --fi | --f )
37115 $ac_shift
37116 case $ac_optarg in
37117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037118 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037119 esac
cristy8b350f62009-11-15 23:12:43 +000037120 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037121 ac_need_defaults=false;;
37122 --header | --heade | --head | --hea )
37123 $ac_shift
37124 case $ac_optarg in
37125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37126 esac
cristy8b350f62009-11-15 23:12:43 +000037127 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037128 ac_need_defaults=false;;
37129 --he | --h)
37130 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037131 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037132Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037133 --help | --hel | -h )
37134 $as_echo "$ac_cs_usage"; exit ;;
37135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37137 ac_cs_silent=: ;;
37138
37139 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037140 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037141Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037142
cristy8b350f62009-11-15 23:12:43 +000037143 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037144 ac_need_defaults=false ;;
37145
37146 esac
37147 shift
37148done
37149
37150ac_configure_extra_args=
37151
37152if $ac_cs_silent; then
37153 exec 6>/dev/null
37154 ac_configure_extra_args="$ac_configure_extra_args --silent"
37155fi
37156
37157_ACEOF
37158cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37159if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037160 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037161 shift
37162 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37163 CONFIG_SHELL='$SHELL'
37164 export CONFIG_SHELL
37165 exec "\$@"
37166fi
37167
37168_ACEOF
37169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37170exec 5>>config.log
37171{
37172 echo
37173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37174## Running $as_me. ##
37175_ASBOX
37176 $as_echo "$ac_log"
37177} >&5
37178
37179_ACEOF
37180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037181#
37182# INIT-COMMANDS
37183#
37184PACKAGE="$PACKAGE"
37185AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37186
37187
37188# The HP-UX ksh and POSIX shell print the target directory to stdout
37189# if CDPATH is set.
37190(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37191
37192sed_quote_subst='$sed_quote_subst'
37193double_quote_subst='$double_quote_subst'
37194delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037195SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37196Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37197GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37198EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37199FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37200SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37201ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37202LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37203macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37204macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37205AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37206DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37207OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37208enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37209enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37210pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37211enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037212shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037213PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037214host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37215host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37216host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37217build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37218build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37219build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37220NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37221LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37222max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37223ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37224exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37225lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37226lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37227lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037228lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37229lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037230reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37231reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37232deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37233file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037234file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37235want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37236sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037237AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37238AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037239archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037240STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37241RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37242old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37243old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37244old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37245lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37246CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37247CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37248compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37249GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37250lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37251lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037252lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037253lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37254lt_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"`'
Cristy15f22012015-11-14 17:51:30 -050037255lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037256nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37257lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037258lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037259objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37260MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37261lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037262lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037263lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037264lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37265lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37266need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037267MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037268DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37269NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37270LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37271OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37272OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37273libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37274shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37275extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37276archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37277enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37278export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37279whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37280compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37281old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37282old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37283archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37284archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37285module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37286module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37287with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37288allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37289no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37290hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037291hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37292hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37293hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37294hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37295hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37296hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37297inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37298link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037299always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37300export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37301exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37302include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37303prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037304postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037305file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37306variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37307need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37308need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37309version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37310runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37311shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37312shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37313libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37314library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37315soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37316install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37317postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37318postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37319finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37320finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37321hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37322sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037323configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37324configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037325hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37326enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37327enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37328enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37329old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37330striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37331compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37332predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37333postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37334predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37335postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37336compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37337LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37338reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37339reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37340old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37341compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37342GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37343lt_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 +000037344lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037345lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037346lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37347lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37348archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37349enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37350export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37351whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37352compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37353old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37354old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37355archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37356archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37357module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37358module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37359with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37360allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37361no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37362hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037363hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37364hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37365hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37366hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37367hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37368hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37369inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37370link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037371always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37372export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37373exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37374include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37375prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037376postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037377file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37378hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37379compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37380predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37381postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37382predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37383postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37384compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037385
37386LTCC='$LTCC'
37387LTCFLAGS='$LTCFLAGS'
37388compiler='$compiler_DEFAULT'
37389
cristy0c60a692010-11-04 01:09:47 +000037390# A function that is used when there is no print builtin or printf.
37391func_fallback_echo ()
37392{
37393 eval 'cat <<_LTECHO_EOF
37394\$1
37395_LTECHO_EOF'
37396}
37397
cristy73bd4a52010-10-05 11:24:23 +000037398# Quote evaled strings.
37399for var in SED \
37400GREP \
37401EGREP \
37402FGREP \
cristy0c60a692010-11-04 01:09:47 +000037403SHELL \
37404ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037405LD \
cristy0c60a692010-11-04 01:09:47 +000037406AS \
37407DLLTOOL \
37408OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037409PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037410NM \
37411LN_S \
37412lt_SP2NL \
37413lt_NL2SP \
37414reload_flag \
37415deplibs_check_method \
37416file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037417file_magic_glob \
37418want_nocaseglob \
37419sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037420AR \
37421AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037422archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037423STRIP \
37424RANLIB \
37425CC \
37426CFLAGS \
37427compiler \
37428lt_cv_sys_global_symbol_pipe \
37429lt_cv_sys_global_symbol_to_cdecl \
Cristy15f22012015-11-14 17:51:30 -050037430lt_cv_sys_global_symbol_to_import \
cristy73bd4a52010-10-05 11:24:23 +000037431lt_cv_sys_global_symbol_to_c_name_address \
37432lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Cristy15f22012015-11-14 17:51:30 -050037433lt_cv_nm_interface \
cristyda16f162011-02-19 23:52:17 +000037434nm_file_list_spec \
Cristy15f22012015-11-14 17:51:30 -050037435lt_cv_truncate_bin \
cristy73bd4a52010-10-05 11:24:23 +000037436lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037437lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037438lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037439lt_prog_compiler_static \
37440lt_cv_prog_compiler_c_o \
37441need_locks \
cristyda16f162011-02-19 23:52:17 +000037442MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037443DSYMUTIL \
37444NMEDIT \
37445LIPO \
37446OTOOL \
37447OTOOL64 \
37448shrext_cmds \
37449export_dynamic_flag_spec \
37450whole_archive_flag_spec \
37451compiler_needs_object \
37452with_gnu_ld \
37453allow_undefined_flag \
37454no_undefined_flag \
37455hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037456hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037457exclude_expsyms \
37458include_expsyms \
37459file_list_spec \
37460variables_saved_for_relink \
37461libname_spec \
37462library_names_spec \
37463soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037464install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037465finish_eval \
37466old_striplib \
37467striplib \
37468compiler_lib_search_dirs \
37469predep_objects \
37470postdep_objects \
37471predeps \
37472postdeps \
37473compiler_lib_search_path \
37474LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037475reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037476compiler_CXX \
37477lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037478lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037479lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037480lt_prog_compiler_static_CXX \
37481lt_cv_prog_compiler_c_o_CXX \
37482export_dynamic_flag_spec_CXX \
37483whole_archive_flag_spec_CXX \
37484compiler_needs_object_CXX \
37485with_gnu_ld_CXX \
37486allow_undefined_flag_CXX \
37487no_undefined_flag_CXX \
37488hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037489hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037490exclude_expsyms_CXX \
37491include_expsyms_CXX \
37492file_list_spec_CXX \
37493compiler_lib_search_dirs_CXX \
37494predep_objects_CXX \
37495postdep_objects_CXX \
37496predeps_CXX \
37497postdeps_CXX \
37498compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037500 *[\\\\\\\`\\"\\\$]*)
Cristy15f22012015-11-14 17:51:30 -050037501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cristy73bd4a52010-10-05 11:24:23 +000037502 ;;
37503 *)
37504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37505 ;;
37506 esac
37507done
37508
37509# Double-quote double-evaled strings.
37510for var in reload_cmds \
37511old_postinstall_cmds \
37512old_postuninstall_cmds \
37513old_archive_cmds \
37514extract_expsyms_cmds \
37515old_archive_from_new_cmds \
37516old_archive_from_expsyms_cmds \
37517archive_cmds \
37518archive_expsym_cmds \
37519module_cmds \
37520module_expsym_cmds \
37521export_symbols_cmds \
37522prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037523postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037524postinstall_cmds \
37525postuninstall_cmds \
37526finish_cmds \
37527sys_lib_search_path_spec \
Cristy15f22012015-11-14 17:51:30 -050037528configure_time_dlsearch_path \
37529configure_time_lt_sys_library_path \
cristy0c60a692010-11-04 01:09:47 +000037530reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037531old_archive_cmds_CXX \
37532old_archive_from_new_cmds_CXX \
37533old_archive_from_expsyms_cmds_CXX \
37534archive_cmds_CXX \
37535archive_expsym_cmds_CXX \
37536module_cmds_CXX \
37537module_expsym_cmds_CXX \
37538export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037539prelink_cmds_CXX \
37540postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037542 *[\\\\\\\`\\"\\\$]*)
Cristy15f22012015-11-14 17:51:30 -050037543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cristy73bd4a52010-10-05 11:24:23 +000037544 ;;
37545 *)
37546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37547 ;;
37548 esac
37549done
37550
cristy73bd4a52010-10-05 11:24:23 +000037551ac_aux_dir='$ac_aux_dir'
cristy73bd4a52010-10-05 11:24:23 +000037552
Cristy15f22012015-11-14 17:51:30 -050037553# See if we are running on zsh, and set the options that allow our
cristy73bd4a52010-10-05 11:24:23 +000037554# commands through without removal of \ escapes INIT.
Cristy15f22012015-11-14 17:51:30 -050037555if test -n "\${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000037556 setopt NO_GLOB_SUBST
37557fi
37558
37559
37560 PACKAGE='$PACKAGE'
37561 VERSION='$VERSION'
cristy73bd4a52010-10-05 11:24:23 +000037562 RM='$RM'
37563 ofile='$ofile'
37564
37565
37566
37567
37568
37569
cristy3ed852e2009-09-05 21:47:34 +000037570_ACEOF
37571
37572cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37573
37574# Handling of arguments.
37575for ac_config_target in $ac_config_targets
37576do
37577 case $ac_config_target in
37578 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037579 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037580 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37581 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37582 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37583 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37584 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37585 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37586 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37587 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037588 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037589 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37590 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37591 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37592 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37593 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037594 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037595 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037596 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037597 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37598 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37599 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37600 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37601 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037602 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037603 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037604 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37605 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37606 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037607 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37608 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037609 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037610 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037611 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037612 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037613 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37614 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37615 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37616 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037617 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37618 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37619 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37620 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37621 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37622 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37623 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37624 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37625 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37626 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37627 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37628 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037629 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37630 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037631
cristy98dddb52010-11-04 00:30:15 +000037632 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037633 esac
37634done
37635
37636
37637# If the user did not use the arguments to specify the items to instantiate,
37638# then the envvar interface is used. Set only those that are not.
37639# We use the long form for the default assignment because of an extremely
37640# bizarre bug on SunOS 4.1.3.
37641if $ac_need_defaults; then
37642 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37643 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37644 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37645fi
37646
37647# Have a temporary directory for convenience. Make it in the build tree
37648# simply because there is no reason against having it here, and in addition,
37649# creating and moving files from /tmp can sometimes cause problems.
37650# Hook for its removal unless debugging.
37651# Note that there is a small window in which the directory will not be cleaned:
37652# after its creation but before its name has been assigned to `$tmp'.
37653$debug ||
37654{
cristyda16f162011-02-19 23:52:17 +000037655 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037656 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037657 : "${ac_tmp:=$tmp}"
37658 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037659' 0
cristy8b350f62009-11-15 23:12:43 +000037660 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037661}
37662# Create a (secure) tmp directory for tmp files.
37663
37664{
37665 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037666 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037667} ||
37668{
37669 tmp=./conf$$-$RANDOM
37670 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037671} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037672ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037673
37674# Set up the scripts for CONFIG_FILES section.
37675# No need to generate them if there are no CONFIG_FILES.
37676# This happens for instance with `./config.status config.h'.
37677if test -n "$CONFIG_FILES"; then
37678
37679
cristy8b350f62009-11-15 23:12:43 +000037680ac_cr=`echo X | tr X '\015'`
37681# On cygwin, bash can eat \r inside `` if the user requested igncr.
37682# But we know of no other shell where ac_cr would be empty at this
37683# point, so we can use a bashism as a fallback.
37684if test "x$ac_cr" = x; then
37685 eval ac_cr=\$\'\\r\'
37686fi
cristy3ed852e2009-09-05 21:47:34 +000037687ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37688if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037689 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037690else
37691 ac_cs_awk_cr=$ac_cr
37692fi
37693
cristyda16f162011-02-19 23:52:17 +000037694echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037695_ACEOF
37696
37697
37698{
37699 echo "cat >conf$$subs.awk <<_ACEOF" &&
37700 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37701 echo "_ACEOF"
37702} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37704ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037705ac_delim='%!_!# '
37706for ac_last_try in false false false false false :; do
37707 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037708 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037709
37710 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37711 if test $ac_delim_n = $ac_delim_num; then
37712 break
37713 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037714 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037715 else
37716 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37717 fi
37718done
37719rm -f conf$$subs.sh
37720
37721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037722cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037723_ACEOF
37724sed -n '
37725h
37726s/^/S["/; s/!.*/"]=/
37727p
37728g
37729s/^[^!]*!//
37730:repl
37731t repl
37732s/'"$ac_delim"'$//
37733t delim
37734:nl
37735h
cristycd4c5312009-11-22 01:19:08 +000037736s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037737t more1
37738s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37739p
37740n
37741b repl
37742:more1
37743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37744p
37745g
37746s/.\{148\}//
37747t nl
37748:delim
37749h
cristycd4c5312009-11-22 01:19:08 +000037750s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037751t more2
37752s/["\\]/\\&/g; s/^/"/; s/$/"/
37753p
37754b
37755:more2
37756s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37757p
37758g
37759s/.\{148\}//
37760t delim
37761' <conf$$subs.awk | sed '
37762/^[^""]/{
37763 N
37764 s/\n//
37765}
37766' >>$CONFIG_STATUS || ac_write_fail=1
37767rm -f conf$$subs.awk
37768cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37769_ACAWK
cristyda16f162011-02-19 23:52:17 +000037770cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037771 for (key in S) S_is_set[key] = 1
37772 FS = ""
37773
37774}
37775{
37776 line = $ 0
37777 nfields = split(line, field, "@")
37778 substed = 0
37779 len = length(field[1])
37780 for (i = 2; i < nfields; i++) {
37781 key = field[i]
37782 keylen = length(key)
37783 if (S_is_set[key]) {
37784 value = S[key]
37785 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37786 len += length(value) + length(field[++i])
37787 substed = 1
37788 } else
37789 len += 1 + keylen
37790 }
37791
37792 print line
37793}
37794
37795_ACAWK
37796_ACEOF
37797cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37798if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37799 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37800else
37801 cat
cristyda16f162011-02-19 23:52:17 +000037802fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037803 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037804_ACEOF
37805
cristy98dddb52010-11-04 00:30:15 +000037806# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37807# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037808# trailing colons and then remove the whole line if VPATH becomes empty
37809# (actually we leave an empty line to preserve line numbers).
37810if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037811 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37812h
37813s///
37814s/^/:/
37815s/[ ]*$/:/
37816s/:\$(srcdir):/:/g
37817s/:\${srcdir}:/:/g
37818s/:@srcdir@:/:/g
37819s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037820s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037821x
37822s/\(=[ ]*\).*/\1/
37823G
37824s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037825s/^[^=]*=[ ]*$//
37826}'
37827fi
37828
37829cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37830fi # test -n "$CONFIG_FILES"
37831
37832# Set up the scripts for CONFIG_HEADERS section.
37833# No need to generate them if there are no CONFIG_HEADERS.
37834# This happens for instance with `./config.status Makefile'.
37835if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037836cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037837BEGIN {
37838_ACEOF
37839
37840# Transform confdefs.h into an awk script `defines.awk', embedded as
37841# here-document in config.status, that substitutes the proper values into
37842# config.h.in to produce config.h.
37843
37844# Create a delimiter string that does not exist in confdefs.h, to ease
37845# handling of long lines.
37846ac_delim='%!_!# '
37847for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037848 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37849 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037850 break
37851 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037852 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037853 else
37854 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37855 fi
37856done
37857
37858# For the awk script, D is an array of macro values keyed by name,
37859# likewise P contains macro parameters if any. Preserve backslash
37860# newline sequences.
37861
37862ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37863sed -n '
37864s/.\{148\}/&'"$ac_delim"'/g
37865t rset
37866:rset
37867s/^[ ]*#[ ]*define[ ][ ]*/ /
37868t def
37869d
37870:def
37871s/\\$//
37872t bsnl
37873s/["\\]/\\&/g
37874s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37875D["\1"]=" \3"/p
37876s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37877d
37878:bsnl
37879s/["\\]/\\&/g
37880s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37881D["\1"]=" \3\\\\\\n"\\/p
37882t cont
37883s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37884t cont
37885d
37886:cont
37887n
37888s/.\{148\}/&'"$ac_delim"'/g
37889t clear
37890:clear
37891s/\\$//
37892t bsnlc
37893s/["\\]/\\&/g; s/^/"/; s/$/"/p
37894d
37895:bsnlc
37896s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37897b cont
37898' <confdefs.h | sed '
37899s/'"$ac_delim"'/"\\\
37900"/g' >>$CONFIG_STATUS || ac_write_fail=1
37901
37902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37903 for (key in D) D_is_set[key] = 1
37904 FS = ""
37905}
37906/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37907 line = \$ 0
37908 split(line, arg, " ")
37909 if (arg[1] == "#") {
37910 defundef = arg[2]
37911 mac1 = arg[3]
37912 } else {
37913 defundef = substr(arg[1], 2)
37914 mac1 = arg[2]
37915 }
37916 split(mac1, mac2, "(") #)
37917 macro = mac2[1]
37918 prefix = substr(line, 1, index(line, defundef) - 1)
37919 if (D_is_set[macro]) {
37920 # Preserve the white space surrounding the "#".
37921 print prefix "define", macro P[macro] D[macro]
37922 next
37923 } else {
37924 # Replace #undef with comments. This is necessary, for example,
37925 # in the case of _POSIX_SOURCE, which is predefined and required
37926 # on some systems where configure will not decide to define it.
37927 if (defundef == "undef") {
37928 print "/*", prefix defundef, macro, "*/"
37929 next
37930 }
37931 }
37932}
37933{ print }
37934_ACAWK
37935_ACEOF
37936cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037937 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037938fi # test -n "$CONFIG_HEADERS"
37939
37940
37941eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37942shift
37943for ac_tag
37944do
37945 case $ac_tag in
37946 :[FHLC]) ac_mode=$ac_tag; continue;;
37947 esac
37948 case $ac_mode$ac_tag in
37949 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037950 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037951 :[FH]-) ac_tag=-:-;;
37952 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37953 esac
37954 ac_save_IFS=$IFS
37955 IFS=:
37956 set x $ac_tag
37957 IFS=$ac_save_IFS
37958 shift
37959 ac_file=$1
37960 shift
37961
37962 case $ac_mode in
37963 :L) ac_source=$1;;
37964 :[FH])
37965 ac_file_inputs=
37966 for ac_f
37967 do
37968 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037969 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037970 *) # Look for the file first in the build tree, then in the source tree
37971 # (if the path is not absolute). The absolute path cannot be DOS-style,
37972 # because $ac_f cannot contain `:'.
37973 test -f "$ac_f" ||
37974 case $ac_f in
37975 [\\/$]*) false;;
37976 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37977 esac ||
cristy98dddb52010-11-04 00:30:15 +000037978 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037979 esac
37980 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037981 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037982 done
37983
37984 # Let's still pretend it is `configure' which instantiates (i.e., don't
37985 # use $as_me), people would be surprised to read:
37986 # /* config.h. Generated by config.status. */
37987 configure_input='Generated from '`
37988 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37989 `' by configure.'
37990 if test x"$ac_file" != x-; then
37991 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037992 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037993$as_echo "$as_me: creating $ac_file" >&6;}
37994 fi
37995 # Neutralize special characters interpreted by sed in replacement strings.
37996 case $configure_input in #(
37997 *\&* | *\|* | *\\* )
37998 ac_sed_conf_input=`$as_echo "$configure_input" |
37999 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38000 *) ac_sed_conf_input=$configure_input;;
38001 esac
38002
38003 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038004 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038005 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038006 esac
38007 ;;
38008 esac
38009
38010 ac_dir=`$as_dirname -- "$ac_file" ||
38011$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38012 X"$ac_file" : 'X\(//\)[^/]' \| \
38013 X"$ac_file" : 'X\(//\)$' \| \
38014 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38015$as_echo X"$ac_file" |
38016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38017 s//\1/
38018 q
38019 }
38020 /^X\(\/\/\)[^/].*/{
38021 s//\1/
38022 q
38023 }
38024 /^X\(\/\/\)$/{
38025 s//\1/
38026 q
38027 }
38028 /^X\(\/\).*/{
38029 s//\1/
38030 q
38031 }
38032 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038033 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038034 ac_builddir=.
38035
38036case "$ac_dir" in
38037.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38038*)
38039 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38040 # A ".." for each directory in $ac_dir_suffix.
38041 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38042 case $ac_top_builddir_sub in
38043 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38044 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38045 esac ;;
38046esac
38047ac_abs_top_builddir=$ac_pwd
38048ac_abs_builddir=$ac_pwd$ac_dir_suffix
38049# for backward compatibility:
38050ac_top_builddir=$ac_top_build_prefix
38051
38052case $srcdir in
38053 .) # We are building in place.
38054 ac_srcdir=.
38055 ac_top_srcdir=$ac_top_builddir_sub
38056 ac_abs_top_srcdir=$ac_pwd ;;
38057 [\\/]* | ?:[\\/]* ) # Absolute name.
38058 ac_srcdir=$srcdir$ac_dir_suffix;
38059 ac_top_srcdir=$srcdir
38060 ac_abs_top_srcdir=$srcdir ;;
38061 *) # Relative name.
38062 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38063 ac_top_srcdir=$ac_top_build_prefix$srcdir
38064 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38065esac
38066ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38067
38068
38069 case $ac_mode in
38070 :F)
38071 #
38072 # CONFIG_FILE
38073 #
38074
38075 case $INSTALL in
38076 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38077 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38078 esac
cristy73bd4a52010-10-05 11:24:23 +000038079 ac_MKDIR_P=$MKDIR_P
38080 case $MKDIR_P in
38081 [\\/$]* | ?:[\\/]* ) ;;
38082 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38083 esac
cristy3ed852e2009-09-05 21:47:34 +000038084_ACEOF
38085
38086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38087# If the template does not know about datarootdir, expand it.
38088# FIXME: This hack should be removed a few years after 2.60.
38089ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038090ac_sed_dataroot='
38091/datarootdir/ {
38092 p
38093 q
38094}
38095/@datadir@/p
38096/@docdir@/p
38097/@infodir@/p
38098/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038099/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038100case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38101*datarootdir*) ac_datarootdir_seen=yes;;
38102*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038104$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38105_ACEOF
38106cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38107 ac_datarootdir_hack='
38108 s&@datadir@&$datadir&g
38109 s&@docdir@&$docdir&g
38110 s&@infodir@&$infodir&g
38111 s&@localedir@&$localedir&g
38112 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038113 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038114esac
38115_ACEOF
38116
38117# Neutralize VPATH when `$srcdir' = `.'.
38118# Shell code in configure.ac might set extrasub.
38119# FIXME: do we really want to maintain this feature?
38120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38121ac_sed_extra="$ac_vpsub
38122$extrasub
38123_ACEOF
38124cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38125:t
38126/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38127s|@configure_input@|$ac_sed_conf_input|;t t
38128s&@top_builddir@&$ac_top_builddir_sub&;t t
38129s&@top_build_prefix@&$ac_top_build_prefix&;t t
38130s&@srcdir@&$ac_srcdir&;t t
38131s&@abs_srcdir@&$ac_abs_srcdir&;t t
38132s&@top_srcdir@&$ac_top_srcdir&;t t
38133s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38134s&@builddir@&$ac_builddir&;t t
38135s&@abs_builddir@&$ac_abs_builddir&;t t
38136s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38137s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038138s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038139$ac_datarootdir_hack
38140"
cristyda16f162011-02-19 23:52:17 +000038141eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038143
38144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038149which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038151which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038152
cristyda16f162011-02-19 23:52:17 +000038153 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038154 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038157 esac \
cristy98dddb52010-11-04 00:30:15 +000038158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038159 ;;
38160 :H)
38161 #
38162 # CONFIG_HEADER
38163 #
38164 if test x"$ac_file" != x-; then
38165 {
38166 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38168 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038172$as_echo "$as_me: $ac_file is unchanged" >&6;}
38173 else
38174 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038175 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038177 fi
38178 else
38179 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038181 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038182 fi
cristy73bd4a52010-10-05 11:24:23 +000038183# Compute "$ac_file"'s index in $config_headers.
38184_am_arg="$ac_file"
38185_am_stamp_count=1
38186for _am_header in $config_headers :; do
38187 case $_am_header in
38188 $_am_arg | $_am_arg:* )
38189 break ;;
38190 * )
38191 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38192 esac
38193done
38194echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38195$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38196 X"$_am_arg" : 'X\(//\)[^/]' \| \
38197 X"$_am_arg" : 'X\(//\)$' \| \
38198 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38199$as_echo X"$_am_arg" |
38200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38201 s//\1/
38202 q
38203 }
38204 /^X\(\/\/\)[^/].*/{
38205 s//\1/
38206 q
38207 }
38208 /^X\(\/\/\)$/{
38209 s//\1/
38210 q
38211 }
38212 /^X\(\/\).*/{
38213 s//\1/
38214 q
38215 }
38216 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038217 ;;
38218
cristy8b350f62009-11-15 23:12:43 +000038219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038220$as_echo "$as_me: executing $ac_file commands" >&6;}
38221 ;;
38222 esac
38223
38224
38225 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038226 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038227ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38228ac_prefix_conf_PKG=`echo MagickCore`
38229ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38230ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38231ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38232if test ".$ac_prefix_conf_INP" = "."; then
38233 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38234 case "$ac_file" in
38235 *.h) ac_prefix_conf_INP=$ac_file ;;
38236 *)
38237 esac
38238 test ".$ac_prefix_conf_INP" != "." && break
38239 done
38240fi
38241if test ".$ac_prefix_conf_INP" = "."; then
38242 case "$ac_prefix_conf_OUT" in
38243 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38244 ;;
38245 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38246 ;;
38247 *) ac_prefix_conf_INP=config.h
38248 ;;
38249 esac
38250fi
38251if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038252 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038253else
38254 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38255 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38256 fi fi
38257 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38258$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38259 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038260 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38261 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38262 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38263 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38264 $as_echo "#endif/" >> conftest.prefix
38265 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38266 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38267 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038268 # now executing _script on _DEF input to create _OUT output file
38269 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38270 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38271 echo ' ' >>$tmp/pconfig.h
38272 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38273
38274 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38275 echo ' ' >>$tmp/pconfig.h
38276 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38277 echo "#endif" >>$tmp/pconfig.h
38278 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38279 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38280$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38281 else
38282 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38283$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38284 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38285 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38286 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38287$as_echo X"$ac_prefix_conf_OUT" |
38288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38289 s//\1/
38290 q
38291 }
38292 /^X\(\/\/\)[^/].*/{
38293 s//\1/
38294 q
38295 }
38296 /^X\(\/\/\)$/{
38297 s//\1/
38298 q
38299 }
38300 /^X\(\/\).*/{
38301 s//\1/
38302 q
38303 }
38304 s/.*/./; q'`
38305 as_dir="$ac_dir"; as_fn_mkdir_p
38306 rm -f "$ac_prefix_conf_OUT"
38307 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38308 fi
cristy73bd4a52010-10-05 11:24:23 +000038309 else
cristy98dddb52010-11-04 00:30:15 +000038310 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 +000038311 fi
38312 rm -f conftest.*
38313fi
38314 ;;
38315 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038316 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038317 # are listed without --file. Let's play safe and only enable the eval
38318 # if we detect the quoting.
38319 case $CONFIG_FILES in
38320 *\'*) eval set x "$CONFIG_FILES" ;;
38321 *) set x $CONFIG_FILES ;;
38322 esac
38323 shift
38324 for mf
38325 do
38326 # Strip MF so we end up with the name of the file.
38327 mf=`echo "$mf" | sed -e 's/:.*$//'`
38328 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038329 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038330 # some people rename them; so instead we look at the file content.
38331 # Grep'ing the first line is not enough: some people post-process
38332 # each Makefile.in and add a new line on top of each file to say so.
38333 # Grep'ing the whole file is not good either: AIX grep has a line
38334 # limit of 2048, but all sed's we know have understand at least 4000.
38335 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38336 dirpart=`$as_dirname -- "$mf" ||
38337$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38338 X"$mf" : 'X\(//\)[^/]' \| \
38339 X"$mf" : 'X\(//\)$' \| \
38340 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38341$as_echo X"$mf" |
38342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38343 s//\1/
38344 q
38345 }
38346 /^X\(\/\/\)[^/].*/{
38347 s//\1/
38348 q
38349 }
38350 /^X\(\/\/\)$/{
38351 s//\1/
38352 q
38353 }
38354 /^X\(\/\).*/{
38355 s//\1/
38356 q
38357 }
38358 s/.*/./; q'`
38359 else
38360 continue
38361 fi
38362 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038363 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038364 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38365 test -z "$DEPDIR" && continue
38366 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038367 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038368 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038369 # Find all dependency output files, they are included files with
38370 # $(DEPDIR) in their names. We invoke sed twice because it is the
38371 # simplest approach to changing $(DEPDIR) to its actual value in the
38372 # expansion.
38373 for file in `sed -n "
38374 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038375 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038376 # Make sure the directory exists.
38377 test -f "$dirpart/$file" && continue
38378 fdir=`$as_dirname -- "$file" ||
38379$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38380 X"$file" : 'X\(//\)[^/]' \| \
38381 X"$file" : 'X\(//\)$' \| \
38382 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38383$as_echo X"$file" |
38384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38385 s//\1/
38386 q
38387 }
38388 /^X\(\/\/\)[^/].*/{
38389 s//\1/
38390 q
38391 }
38392 /^X\(\/\/\)$/{
38393 s//\1/
38394 q
38395 }
38396 /^X\(\/\).*/{
38397 s//\1/
38398 q
38399 }
38400 s/.*/./; q'`
38401 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38402 # echo "creating $dirpart/$file"
38403 echo '# dummy' > "$dirpart/$file"
38404 done
38405 done
38406}
38407 ;;
38408 "libtool":C)
38409
Cristy15f22012015-11-14 17:51:30 -050038410 # See if we are running on zsh, and set the options that allow our
cristy73bd4a52010-10-05 11:24:23 +000038411 # commands through without removal of \ escapes.
Cristy15f22012015-11-14 17:51:30 -050038412 if test -n "${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000038413 setopt NO_GLOB_SUBST
38414 fi
38415
Cristy15f22012015-11-14 17:51:30 -050038416 cfgfile=${ofile}T
cristy73bd4a52010-10-05 11:24:23 +000038417 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38418 $RM "$cfgfile"
38419
38420 cat <<_LT_EOF >> "$cfgfile"
38421#! $SHELL
Cristy15f22012015-11-14 17:51:30 -050038422# Generated automatically by $as_me ($PACKAGE) $VERSION
cristy73bd4a52010-10-05 11:24:23 +000038423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38424# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Cristy15f22012015-11-14 17:51:30 -050038425
38426# Provide generalized library-building support services.
38427# Written by Gordon Matzigkeit, 1996
38428
38429# Copyright (C) 2014 Free Software Foundation, Inc.
38430# This is free software; see the source for copying conditions. There is NO
38431# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38432
38433# GNU Libtool is free software; you can redistribute it and/or modify
38434# it under the terms of the GNU General Public License as published by
38435# the Free Software Foundation; either version 2 of of the License, or
38436# (at your option) any later version.
cristy73bd4a52010-10-05 11:24:23 +000038437#
Cristy15f22012015-11-14 17:51:30 -050038438# As a special exception to the GNU General Public License, if you
38439# distribute this file as part of a program or library that is built
38440# using GNU Libtool, you may include this file under the same
38441# distribution terms that you use for the rest of that program.
cristy73bd4a52010-10-05 11:24:23 +000038442#
Cristy15f22012015-11-14 17:51:30 -050038443# GNU Libtool is distributed in the hope that it will be useful, but
38444# WITHOUT ANY WARRANTY; without even the implied warranty of
cristy73bd4a52010-10-05 11:24:23 +000038445# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38446# GNU General Public License for more details.
38447#
38448# You should have received a copy of the GNU General Public License
Cristy15f22012015-11-14 17:51:30 -050038449# along with this program. If not, see <http://www.gnu.org/licenses/>.
cristy73bd4a52010-10-05 11:24:23 +000038450
38451
38452# The names of the tagged configurations supported by this script.
Cristy15f22012015-11-14 17:51:30 -050038453available_tags='CXX '
38454
38455# Configured defaults for sys_lib_dlsearch_path munging.
38456: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
cristy73bd4a52010-10-05 11:24:23 +000038457
38458# ### BEGIN LIBTOOL CONFIG
38459
38460# A sed program that does not truncate output.
38461SED=$lt_SED
38462
38463# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38464Xsed="\$SED -e 1s/^X//"
38465
38466# A grep program that handles long lines.
38467GREP=$lt_GREP
38468
38469# An ERE matcher.
38470EGREP=$lt_EGREP
38471
38472# A literal string matcher.
38473FGREP=$lt_FGREP
38474
cristy0c60a692010-11-04 01:09:47 +000038475# Shell to use when invoking shell scripts.
38476SHELL=$lt_SHELL
38477
38478# An echo program that protects backslashes.
38479ECHO=$lt_ECHO
38480
cristy73bd4a52010-10-05 11:24:23 +000038481# Which release of libtool.m4 was used?
38482macro_version=$macro_version
38483macro_revision=$macro_revision
38484
38485# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038486AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038487
38488# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038489DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038490
38491# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038492OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038493
38494# Whether or not to build shared libraries.
38495build_libtool_libs=$enable_shared
38496
38497# Whether or not to build static libraries.
38498build_old_libs=$enable_static
38499
38500# What type of objects to build.
38501pic_mode=$pic_mode
38502
38503# Whether or not to optimize for fast installation.
38504fast_install=$enable_fast_install
38505
Cristy15f22012015-11-14 17:51:30 -050038506# Shared archive member basename,for filename based shared library versioning on AIX.
38507shared_archive_member_spec=$shared_archive_member_spec
38508
cristy99bd5232011-12-07 14:38:20 +000038509# The PATH separator for the build system.
38510PATH_SEPARATOR=$lt_PATH_SEPARATOR
38511
cristy73bd4a52010-10-05 11:24:23 +000038512# The host system.
38513host_alias=$host_alias
38514host=$host
38515host_os=$host_os
38516
38517# The build system.
38518build_alias=$build_alias
38519build=$build
38520build_os=$build_os
38521
38522# A BSD- or MS-compatible name lister.
38523NM=$lt_NM
38524
38525# Whether we need soft or hard links.
38526LN_S=$lt_LN_S
38527
38528# What is the maximum length of a command?
38529max_cmd_len=$max_cmd_len
38530
38531# Object file suffix (normally "o").
38532objext=$ac_objext
38533
38534# Executable file suffix (normally "").
38535exeext=$exeext
38536
38537# whether the shell understands "unset".
38538lt_unset=$lt_unset
38539
38540# turn spaces into newlines.
38541SP2NL=$lt_lt_SP2NL
38542
38543# turn newlines into spaces.
38544NL2SP=$lt_lt_NL2SP
38545
cristyda16f162011-02-19 23:52:17 +000038546# convert \$build file names to \$host format.
38547to_host_file_cmd=$lt_cv_to_host_file_cmd
38548
38549# convert \$build files to toolchain format.
38550to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38551
cristy73bd4a52010-10-05 11:24:23 +000038552# Method to check whether dependent libraries are shared objects.
38553deplibs_check_method=$lt_deplibs_check_method
38554
cristyda16f162011-02-19 23:52:17 +000038555# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038556file_magic_cmd=$lt_file_magic_cmd
38557
cristyda16f162011-02-19 23:52:17 +000038558# How to find potential files when deplibs_check_method = "file_magic".
38559file_magic_glob=$lt_file_magic_glob
38560
38561# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38562want_nocaseglob=$lt_want_nocaseglob
38563
38564# Command to associate shared and link libraries.
38565sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38566
cristy73bd4a52010-10-05 11:24:23 +000038567# The archiver.
38568AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038569
38570# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038571AR_FLAGS=$lt_AR_FLAGS
38572
cristyda16f162011-02-19 23:52:17 +000038573# How to feed a file listing to the archiver.
38574archiver_list_spec=$lt_archiver_list_spec
38575
cristy73bd4a52010-10-05 11:24:23 +000038576# A symbol stripping program.
38577STRIP=$lt_STRIP
38578
38579# Commands used to install an old-style archive.
38580RANLIB=$lt_RANLIB
38581old_postinstall_cmds=$lt_old_postinstall_cmds
38582old_postuninstall_cmds=$lt_old_postuninstall_cmds
38583
cristy0c60a692010-11-04 01:09:47 +000038584# Whether to use a lock for old archive extraction.
38585lock_old_archive_extraction=$lock_old_archive_extraction
38586
cristy73bd4a52010-10-05 11:24:23 +000038587# A C compiler.
38588LTCC=$lt_CC
38589
38590# LTCC compiler flags.
38591LTCFLAGS=$lt_CFLAGS
38592
38593# Take the output of nm and produce a listing of raw symbols and C names.
38594global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38595
38596# Transform the output of nm in a proper C declaration.
38597global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38598
Cristy15f22012015-11-14 17:51:30 -050038599# Transform the output of nm into a list of symbols to manually relocate.
38600global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38601
cristy73bd4a52010-10-05 11:24:23 +000038602# Transform the output of nm in a C name address pair.
38603global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38604
38605# Transform the output of nm in a C name address pair when lib prefix is needed.
38606global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38607
Cristy15f22012015-11-14 17:51:30 -050038608# The name lister interface.
38609nm_interface=$lt_lt_cv_nm_interface
38610
cristyda16f162011-02-19 23:52:17 +000038611# Specify filename containing input files for \$NM.
38612nm_file_list_spec=$lt_nm_file_list_spec
38613
Cristy15f22012015-11-14 17:51:30 -050038614# The root where to search for dependent libraries,and where our libraries should be installed.
cristyda16f162011-02-19 23:52:17 +000038615lt_sysroot=$lt_sysroot
38616
Cristy15f22012015-11-14 17:51:30 -050038617# Command to truncate a binary pipe.
38618lt_truncate_bin=$lt_lt_cv_truncate_bin
38619
cristy73bd4a52010-10-05 11:24:23 +000038620# The name of the directory that contains temporary libtool files.
38621objdir=$objdir
38622
cristy73bd4a52010-10-05 11:24:23 +000038623# Used to examine libraries when file_magic_cmd begins with "file".
38624MAGIC_CMD=$MAGIC_CMD
38625
38626# Must we lock files when doing compilation?
38627need_locks=$lt_need_locks
38628
cristyda16f162011-02-19 23:52:17 +000038629# Manifest tool.
38630MANIFEST_TOOL=$lt_MANIFEST_TOOL
38631
cristy73bd4a52010-10-05 11:24:23 +000038632# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38633DSYMUTIL=$lt_DSYMUTIL
38634
38635# Tool to change global to local symbols on Mac OS X.
38636NMEDIT=$lt_NMEDIT
38637
38638# Tool to manipulate fat objects and archives on Mac OS X.
38639LIPO=$lt_LIPO
38640
38641# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38642OTOOL=$lt_OTOOL
38643
38644# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38645OTOOL64=$lt_OTOOL64
38646
38647# Old archive suffix (normally "a").
38648libext=$libext
38649
38650# Shared library suffix (normally ".so").
38651shrext_cmds=$lt_shrext_cmds
38652
38653# The commands to extract the exported symbol list from a shared archive.
38654extract_expsyms_cmds=$lt_extract_expsyms_cmds
38655
38656# Variables whose values should be saved in libtool wrapper scripts and
38657# restored at link time.
38658variables_saved_for_relink=$lt_variables_saved_for_relink
38659
38660# Do we need the "lib" prefix for modules?
38661need_lib_prefix=$need_lib_prefix
38662
38663# Do we need a version for libraries?
38664need_version=$need_version
38665
38666# Library versioning type.
38667version_type=$version_type
38668
38669# Shared library runtime path variable.
38670runpath_var=$runpath_var
38671
38672# Shared library path variable.
38673shlibpath_var=$shlibpath_var
38674
38675# Is shlibpath searched before the hard-coded library search path?
38676shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38677
38678# Format of library name prefix.
38679libname_spec=$lt_libname_spec
38680
38681# List of archive names. First name is the real one, the rest are links.
38682# The last name is the one that the linker finds with -lNAME
38683library_names_spec=$lt_library_names_spec
38684
38685# The coded name of the library, if different from the real name.
38686soname_spec=$lt_soname_spec
38687
cristy0c60a692010-11-04 01:09:47 +000038688# Permission mode override for installation of shared libraries.
38689install_override_mode=$lt_install_override_mode
38690
cristy73bd4a52010-10-05 11:24:23 +000038691# Command to use after installation of a shared archive.
38692postinstall_cmds=$lt_postinstall_cmds
38693
38694# Command to use after uninstallation of a shared archive.
38695postuninstall_cmds=$lt_postuninstall_cmds
38696
38697# Commands used to finish a libtool library installation in a directory.
38698finish_cmds=$lt_finish_cmds
38699
38700# As "finish_cmds", except a single script fragment to be evaled but
38701# not shown.
38702finish_eval=$lt_finish_eval
38703
38704# Whether we should hardcode library paths into libraries.
38705hardcode_into_libs=$hardcode_into_libs
38706
38707# Compile-time system search path for libraries.
38708sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38709
Cristy15f22012015-11-14 17:51:30 -050038710# Detected run-time system search path for libraries.
38711sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38712
38713# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38714configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
cristy73bd4a52010-10-05 11:24:23 +000038715
38716# Whether dlopen is supported.
38717dlopen_support=$enable_dlopen
38718
38719# Whether dlopen of programs is supported.
38720dlopen_self=$enable_dlopen_self
38721
38722# Whether dlopen of statically linked programs is supported.
38723dlopen_self_static=$enable_dlopen_self_static
38724
38725# Commands to strip libraries.
38726old_striplib=$lt_old_striplib
38727striplib=$lt_striplib
38728
38729
38730# The linker used to build libraries.
38731LD=$lt_LD
38732
cristy0c60a692010-11-04 01:09:47 +000038733# How to create reloadable object files.
38734reload_flag=$lt_reload_flag
38735reload_cmds=$lt_reload_cmds
38736
cristy73bd4a52010-10-05 11:24:23 +000038737# Commands used to build an old-style archive.
38738old_archive_cmds=$lt_old_archive_cmds
38739
38740# A language specific compiler.
38741CC=$lt_compiler
38742
38743# Is the compiler the GNU compiler?
38744with_gcc=$GCC
38745
38746# Compiler flag to turn off builtin functions.
38747no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38748
cristy73bd4a52010-10-05 11:24:23 +000038749# Additional compiler flags for building library objects.
38750pic_flag=$lt_lt_prog_compiler_pic
38751
cristyda16f162011-02-19 23:52:17 +000038752# How to pass a linker flag through the compiler.
38753wl=$lt_lt_prog_compiler_wl
38754
cristy73bd4a52010-10-05 11:24:23 +000038755# Compiler flag to prevent dynamic linking.
38756link_static_flag=$lt_lt_prog_compiler_static
38757
38758# Does compiler simultaneously support -c and -o options?
38759compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38760
38761# Whether or not to add -lc for building shared libraries.
38762build_libtool_need_lc=$archive_cmds_need_lc
38763
38764# Whether or not to disallow shared libs when runtime libs are static.
38765allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38766
38767# Compiler flag to allow reflexive dlopens.
38768export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38769
38770# Compiler flag to generate shared objects directly from archives.
38771whole_archive_flag_spec=$lt_whole_archive_flag_spec
38772
38773# Whether the compiler copes with passing no objects directly.
38774compiler_needs_object=$lt_compiler_needs_object
38775
38776# Create an old-style archive from a shared archive.
38777old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38778
38779# Create a temporary old-style archive to link instead of a shared archive.
38780old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38781
38782# Commands used to build a shared archive.
38783archive_cmds=$lt_archive_cmds
38784archive_expsym_cmds=$lt_archive_expsym_cmds
38785
38786# Commands used to build a loadable module if different from building
38787# a shared archive.
38788module_cmds=$lt_module_cmds
38789module_expsym_cmds=$lt_module_expsym_cmds
38790
38791# Whether we are building with GNU ld or not.
38792with_gnu_ld=$lt_with_gnu_ld
38793
38794# Flag that allows shared libraries with undefined symbols to be built.
38795allow_undefined_flag=$lt_allow_undefined_flag
38796
38797# Flag that enforces no undefined symbols.
38798no_undefined_flag=$lt_no_undefined_flag
38799
38800# Flag to hardcode \$libdir into a binary during linking.
38801# This must work even if \$libdir does not exist
38802hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38803
cristy73bd4a52010-10-05 11:24:23 +000038804# Whether we need a single "-rpath" flag with a separated argument.
38805hardcode_libdir_separator=$lt_hardcode_libdir_separator
38806
Cristy15f22012015-11-14 17:51:30 -050038807# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000038808# DIR into the resulting binary.
38809hardcode_direct=$hardcode_direct
38810
Cristy15f22012015-11-14 17:51:30 -050038811# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000038812# DIR into the resulting binary and the resulting library dependency is
Cristy15f22012015-11-14 17:51:30 -050038813# "absolute",i.e impossible to change by setting \$shlibpath_var if the
cristy73bd4a52010-10-05 11:24:23 +000038814# library is relocated.
38815hardcode_direct_absolute=$hardcode_direct_absolute
38816
38817# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38818# into the resulting binary.
38819hardcode_minus_L=$hardcode_minus_L
38820
38821# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38822# into the resulting binary.
38823hardcode_shlibpath_var=$hardcode_shlibpath_var
38824
38825# Set to "yes" if building a shared library automatically hardcodes DIR
38826# into the library and all subsequent libraries and executables linked
38827# against it.
38828hardcode_automatic=$hardcode_automatic
38829
38830# Set to yes if linker adds runtime paths of dependent libraries
38831# to runtime path list.
38832inherit_rpath=$inherit_rpath
38833
38834# Whether libtool must link a program against all its dependency libraries.
38835link_all_deplibs=$link_all_deplibs
38836
cristy73bd4a52010-10-05 11:24:23 +000038837# Set to "yes" if exported symbols are required.
38838always_export_symbols=$always_export_symbols
38839
38840# The commands to list exported symbols.
38841export_symbols_cmds=$lt_export_symbols_cmds
38842
38843# Symbols that should not be listed in the preloaded symbols.
38844exclude_expsyms=$lt_exclude_expsyms
38845
38846# Symbols that must always be exported.
38847include_expsyms=$lt_include_expsyms
38848
38849# Commands necessary for linking programs (against libraries) with templates.
38850prelink_cmds=$lt_prelink_cmds
38851
cristyda16f162011-02-19 23:52:17 +000038852# Commands necessary for finishing linking programs.
38853postlink_cmds=$lt_postlink_cmds
38854
cristy73bd4a52010-10-05 11:24:23 +000038855# Specify filename containing input files.
38856file_list_spec=$lt_file_list_spec
38857
38858# How to hardcode a shared library path into an executable.
38859hardcode_action=$hardcode_action
38860
38861# The directories searched by this compiler when creating a shared library.
38862compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38863
38864# Dependencies to place before and after the objects being linked to
38865# create a shared library.
38866predep_objects=$lt_predep_objects
38867postdep_objects=$lt_postdep_objects
38868predeps=$lt_predeps
38869postdeps=$lt_postdeps
38870
38871# The library search path used internally by the compiler when linking
38872# a shared library.
38873compiler_lib_search_path=$lt_compiler_lib_search_path
38874
38875# ### END LIBTOOL CONFIG
38876
38877_LT_EOF
38878
Cristy15f22012015-11-14 17:51:30 -050038879 cat <<'_LT_EOF' >> "$cfgfile"
38880
38881# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38882
38883# func_munge_path_list VARIABLE PATH
38884# -----------------------------------
38885# VARIABLE is name of variable containing _space_ separated list of
38886# directories to be munged by the contents of PATH, which is string
38887# having a format:
38888# "DIR[:DIR]:"
38889# string "DIR[ DIR]" will be prepended to VARIABLE
38890# ":DIR[:DIR]"
38891# string "DIR[ DIR]" will be appended to VARIABLE
38892# "DIRP[:DIRP]::[DIRA:]DIRA"
38893# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38894# "DIRA[ DIRA]" will be appended to VARIABLE
38895# "DIR[:DIR]"
38896# VARIABLE will be replaced by "DIR[ DIR]"
38897func_munge_path_list ()
38898{
38899 case x$2 in
38900 x)
38901 ;;
38902 *:)
38903 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38904 ;;
38905 x:*)
38906 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38907 ;;
38908 *::*)
38909 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38910 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38911 ;;
38912 *)
38913 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38914 ;;
38915 esac
38916}
38917
38918
38919# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38920func_cc_basename ()
38921{
38922 for cc_temp in $*""; do
38923 case $cc_temp in
38924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38926 \-*) ;;
38927 *) break;;
38928 esac
38929 done
38930 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38931}
38932
38933
38934# ### END FUNCTIONS SHARED WITH CONFIGURE
38935
38936_LT_EOF
38937
cristy73bd4a52010-10-05 11:24:23 +000038938 case $host_os in
38939 aix3*)
38940 cat <<\_LT_EOF >> "$cfgfile"
38941# AIX sometimes has problems with the GCC collect2 program. For some
38942# reason, if we set the COLLECT_NAMES environment variable, the problems
38943# vanish in a puff of smoke.
Cristy15f22012015-11-14 17:51:30 -050038944if test set != "${COLLECT_NAMES+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000038945 COLLECT_NAMES=
38946 export COLLECT_NAMES
38947fi
38948_LT_EOF
38949 ;;
38950 esac
38951
38952
Cristy15f22012015-11-14 17:51:30 -050038953ltmain=$ac_aux_dir/ltmain.sh
cristy73bd4a52010-10-05 11:24:23 +000038954
38955
38956 # We use sed instead of cat because bash on DJGPP gets confused if
38957 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38958 # text mode, it properly converts lines to CR/LF. This bash problem
38959 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038960 sed '$q' "$ltmain" >> "$cfgfile" \
38961 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038962
cristyda16f162011-02-19 23:52:17 +000038963 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038964 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38965 chmod +x "$ofile"
38966
38967
38968 cat <<_LT_EOF >> "$ofile"
38969
38970# ### BEGIN LIBTOOL TAG CONFIG: CXX
38971
38972# The linker used to build libraries.
38973LD=$lt_LD_CXX
38974
cristy0c60a692010-11-04 01:09:47 +000038975# How to create reloadable object files.
38976reload_flag=$lt_reload_flag_CXX
38977reload_cmds=$lt_reload_cmds_CXX
38978
cristy73bd4a52010-10-05 11:24:23 +000038979# Commands used to build an old-style archive.
38980old_archive_cmds=$lt_old_archive_cmds_CXX
38981
38982# A language specific compiler.
38983CC=$lt_compiler_CXX
38984
38985# Is the compiler the GNU compiler?
38986with_gcc=$GCC_CXX
38987
38988# Compiler flag to turn off builtin functions.
38989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38990
cristy73bd4a52010-10-05 11:24:23 +000038991# Additional compiler flags for building library objects.
38992pic_flag=$lt_lt_prog_compiler_pic_CXX
38993
cristyda16f162011-02-19 23:52:17 +000038994# How to pass a linker flag through the compiler.
38995wl=$lt_lt_prog_compiler_wl_CXX
38996
cristy73bd4a52010-10-05 11:24:23 +000038997# Compiler flag to prevent dynamic linking.
38998link_static_flag=$lt_lt_prog_compiler_static_CXX
38999
39000# Does compiler simultaneously support -c and -o options?
39001compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39002
39003# Whether or not to add -lc for building shared libraries.
39004build_libtool_need_lc=$archive_cmds_need_lc_CXX
39005
39006# Whether or not to disallow shared libs when runtime libs are static.
39007allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39008
39009# Compiler flag to allow reflexive dlopens.
39010export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39011
39012# Compiler flag to generate shared objects directly from archives.
39013whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39014
39015# Whether the compiler copes with passing no objects directly.
39016compiler_needs_object=$lt_compiler_needs_object_CXX
39017
39018# Create an old-style archive from a shared archive.
39019old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39020
39021# Create a temporary old-style archive to link instead of a shared archive.
39022old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39023
39024# Commands used to build a shared archive.
39025archive_cmds=$lt_archive_cmds_CXX
39026archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39027
39028# Commands used to build a loadable module if different from building
39029# a shared archive.
39030module_cmds=$lt_module_cmds_CXX
39031module_expsym_cmds=$lt_module_expsym_cmds_CXX
39032
39033# Whether we are building with GNU ld or not.
39034with_gnu_ld=$lt_with_gnu_ld_CXX
39035
39036# Flag that allows shared libraries with undefined symbols to be built.
39037allow_undefined_flag=$lt_allow_undefined_flag_CXX
39038
39039# Flag that enforces no undefined symbols.
39040no_undefined_flag=$lt_no_undefined_flag_CXX
39041
39042# Flag to hardcode \$libdir into a binary during linking.
39043# This must work even if \$libdir does not exist
39044hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39045
cristy73bd4a52010-10-05 11:24:23 +000039046# Whether we need a single "-rpath" flag with a separated argument.
39047hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39048
Cristy15f22012015-11-14 17:51:30 -050039049# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000039050# DIR into the resulting binary.
39051hardcode_direct=$hardcode_direct_CXX
39052
Cristy15f22012015-11-14 17:51:30 -050039053# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000039054# DIR into the resulting binary and the resulting library dependency is
Cristy15f22012015-11-14 17:51:30 -050039055# "absolute",i.e impossible to change by setting \$shlibpath_var if the
cristy73bd4a52010-10-05 11:24:23 +000039056# library is relocated.
39057hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39058
39059# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39060# into the resulting binary.
39061hardcode_minus_L=$hardcode_minus_L_CXX
39062
39063# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39064# into the resulting binary.
39065hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39066
39067# Set to "yes" if building a shared library automatically hardcodes DIR
39068# into the library and all subsequent libraries and executables linked
39069# against it.
39070hardcode_automatic=$hardcode_automatic_CXX
39071
39072# Set to yes if linker adds runtime paths of dependent libraries
39073# to runtime path list.
39074inherit_rpath=$inherit_rpath_CXX
39075
39076# Whether libtool must link a program against all its dependency libraries.
39077link_all_deplibs=$link_all_deplibs_CXX
39078
cristy73bd4a52010-10-05 11:24:23 +000039079# Set to "yes" if exported symbols are required.
39080always_export_symbols=$always_export_symbols_CXX
39081
39082# The commands to list exported symbols.
39083export_symbols_cmds=$lt_export_symbols_cmds_CXX
39084
39085# Symbols that should not be listed in the preloaded symbols.
39086exclude_expsyms=$lt_exclude_expsyms_CXX
39087
39088# Symbols that must always be exported.
39089include_expsyms=$lt_include_expsyms_CXX
39090
39091# Commands necessary for linking programs (against libraries) with templates.
39092prelink_cmds=$lt_prelink_cmds_CXX
39093
cristyda16f162011-02-19 23:52:17 +000039094# Commands necessary for finishing linking programs.
39095postlink_cmds=$lt_postlink_cmds_CXX
39096
cristy73bd4a52010-10-05 11:24:23 +000039097# Specify filename containing input files.
39098file_list_spec=$lt_file_list_spec_CXX
39099
39100# How to hardcode a shared library path into an executable.
39101hardcode_action=$hardcode_action_CXX
39102
39103# The directories searched by this compiler when creating a shared library.
39104compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39105
39106# Dependencies to place before and after the objects being linked to
39107# create a shared library.
39108predep_objects=$lt_predep_objects_CXX
39109postdep_objects=$lt_postdep_objects_CXX
39110predeps=$lt_predeps_CXX
39111postdeps=$lt_postdeps_CXX
39112
39113# The library search path used internally by the compiler when linking
39114# a shared library.
39115compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39116
39117# ### END LIBTOOL TAG CONFIG: CXX
39118_LT_EOF
39119
39120 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039121 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039122 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039123 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039124 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39125 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39126
39127 esac
39128done # for ac_tag
39129
39130
cristy8b350f62009-11-15 23:12:43 +000039131as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039132_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039133ac_clean_files=$ac_clean_files_save
39134
39135test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039136 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039137
39138
39139# configure is writing to config.log, and then calls config.status.
39140# config.status does its own redirection, appending to config.log.
39141# Unfortunately, on DOS this fails, as config.log is still kept open
39142# by configure, so config.status won't be able to write to it; its
39143# output is simply discarded. So we exec the FD to /dev/null,
39144# effectively closing config.log, so it can be properly (re)opened and
39145# appended to by config.status. When coming back to configure, we
39146# need to make the FD available again.
39147if test "$no_create" != yes; then
39148 ac_cs_success=:
39149 ac_config_status_args=
39150 test "$silent" = yes &&
39151 ac_config_status_args="$ac_config_status_args --quiet"
39152 exec 5>/dev/null
39153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39154 exec 5>>config.log
39155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39156 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039157 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039158fi
39159if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039161$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39162fi
39163
39164
cristy9af1cbf2014-12-28 22:03:09 +000039165# ==============================================================================
39166# ImageMagick Configuration
39167# ==============================================================================
39168{ $as_echo "$as_me:${as_lineno-$LINENO}:
39169==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039170ImageMagick is configured as follows. Please verify that this configuration
39171matches your expectations.
39172
cristy9af1cbf2014-12-28 22:03:09 +000039173 Host system type: $host
39174 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039175
Cristy15f22012015-11-14 17:51:30 -050039176 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039177 ------------------------------------------------------------------------------
39178 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39179 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39180 Module support --with-modules=$build_modules $build_modules
39181 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39182 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39183 High Dynamic Range Imagery
39184 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039185
Cristy15f22012015-11-14 17:51:30 -050039186 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039187
cristy9af1cbf2014-12-28 22:03:09 +000039188 Delegate Library Configuration:
39189 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39190 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39191 DJVU --with-djvu=$with_djvu $have_djvu
39192 DPS --with-dps=$with_dps $have_dps
39193 FFTW --with-fftw=$with_fftw $have_fftw
39194 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000039195 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000039196 FreeType --with-freetype=$with_freetype $have_freetype
39197 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39198 Graphviz --with-gvc=$with_gvc $have_gvc
39199 JBIG --with-jbig=$with_jbig $have_jbig
39200 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000039201 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000039202 LQR --with-lqr=$with_lqr $have_lqr
39203 LTDL --with-ltdl=$with_ltdl $have_ltdl
39204 LZMA --with-lzma=$with_lzma $have_lzma
39205 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39206 OpenEXR --with-openexr=$with_openexr $have_openexr
Cristy15f22012015-11-14 17:51:30 -050039207 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000039208 PANGO --with-pango=$with_pango $have_pango
39209 PERL --with-perl=$with_perl $have_perl
39210 PNG --with-png=$with_png $have_png
39211 RSVG --with-rsvg=$with_rsvg $have_rsvg
39212 TIFF --with-tiff=$with_tiff $have_tiff
39213 WEBP --with-webp=$with_webp $have_webp
39214 WMF --with-wmf=$with_wmf $have_wmf
39215 X11 --with-x=$with_x $have_x
39216 XML --with-xml=$with_xml $have_xml
39217 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039218
cristy9af1cbf2014-12-28 22:03:09 +000039219 Delegate Program Configuration:
39220 GhostPCL None $PCLDelegate ($PCLVersion)
39221 GhostXPS None $XPSDelegate ($XPSVersion)
39222 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039223
cristy9af1cbf2014-12-28 22:03:09 +000039224 Font Configuration:
39225 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39226 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39227 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39228 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039229
cristy9af1cbf2014-12-28 22:03:09 +000039230 X11 Configuration:
39231 X_CFLAGS = $X_CFLAGS
39232 X_PRE_LIBS = $X_PRE_LIBS
39233 X_LIBS = $X_LIBS
39234 X_EXTRA_LIBS = $X_EXTRA_LIBS
39235
39236 Options used to compile and link:
39237 PREFIX = $PREFIX_DIR
39238 EXEC-PREFIX = $EXEC_PREFIX_DIR
39239 VERSION = $PACKAGE_VERSION
39240 CC = $CC
39241 CFLAGS = $CFLAGS
39242 CPPFLAGS = $CPPFLAGS
39243 PCFLAGS = $PCFLAGS
39244 DEFS = $DEFS
39245 LDFLAGS = $LDFLAGS
39246 LIBS = $LIBS
39247 CXX = $CXX
39248 CXXFLAGS = $CXXFLAGS
39249 FEATURES = $MAGICK_FEATURES
39250 DELEGATES = $MAGICK_DELEGATES
39251==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039252" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039253$as_echo "$as_me:
39254==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039255ImageMagick is configured as follows. Please verify that this configuration
39256matches your expectations.
39257
cristy9af1cbf2014-12-28 22:03:09 +000039258 Host system type: $host
39259 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039260
Cristy15f22012015-11-14 17:51:30 -050039261 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039262 ------------------------------------------------------------------------------
39263 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39264 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39265 Module support --with-modules=$build_modules $build_modules
39266 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39267 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39268 High Dynamic Range Imagery
39269 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039270
Cristy15f22012015-11-14 17:51:30 -050039271 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039272
cristy9af1cbf2014-12-28 22:03:09 +000039273 Delegate Library Configuration:
39274 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39275 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39276 DJVU --with-djvu=$with_djvu $have_djvu
39277 DPS --with-dps=$with_dps $have_dps
39278 FFTW --with-fftw=$with_fftw $have_fftw
39279 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000039280 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000039281 FreeType --with-freetype=$with_freetype $have_freetype
39282 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39283 Graphviz --with-gvc=$with_gvc $have_gvc
39284 JBIG --with-jbig=$with_jbig $have_jbig
39285 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000039286 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000039287 LQR --with-lqr=$with_lqr $have_lqr
39288 LTDL --with-ltdl=$with_ltdl $have_ltdl
39289 LZMA --with-lzma=$with_lzma $have_lzma
39290 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39291 OpenEXR --with-openexr=$with_openexr $have_openexr
Cristy15f22012015-11-14 17:51:30 -050039292 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000039293 PANGO --with-pango=$with_pango $have_pango
39294 PERL --with-perl=$with_perl $have_perl
39295 PNG --with-png=$with_png $have_png
39296 RSVG --with-rsvg=$with_rsvg $have_rsvg
39297 TIFF --with-tiff=$with_tiff $have_tiff
39298 WEBP --with-webp=$with_webp $have_webp
39299 WMF --with-wmf=$with_wmf $have_wmf
39300 X11 --with-x=$with_x $have_x
39301 XML --with-xml=$with_xml $have_xml
39302 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039303
cristy9af1cbf2014-12-28 22:03:09 +000039304 Delegate Program Configuration:
39305 GhostPCL None $PCLDelegate ($PCLVersion)
39306 GhostXPS None $XPSDelegate ($XPSVersion)
39307 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039308
cristy9af1cbf2014-12-28 22:03:09 +000039309 Font Configuration:
39310 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39311 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39312 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39313 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039314
cristy9af1cbf2014-12-28 22:03:09 +000039315 X11 Configuration:
39316 X_CFLAGS = $X_CFLAGS
39317 X_PRE_LIBS = $X_PRE_LIBS
39318 X_LIBS = $X_LIBS
39319 X_EXTRA_LIBS = $X_EXTRA_LIBS
39320
39321 Options used to compile and link:
39322 PREFIX = $PREFIX_DIR
39323 EXEC-PREFIX = $EXEC_PREFIX_DIR
39324 VERSION = $PACKAGE_VERSION
39325 CC = $CC
39326 CFLAGS = $CFLAGS
39327 CPPFLAGS = $CPPFLAGS
39328 PCFLAGS = $PCFLAGS
39329 DEFS = $DEFS
39330 LDFLAGS = $LDFLAGS
39331 LIBS = $LIBS
39332 CXX = $CXX
39333 CXXFLAGS = $CXXFLAGS
39334 FEATURES = $MAGICK_FEATURES
39335 DELEGATES = $MAGICK_DELEGATES
39336==============================================================================
39337" >&6;}