blob: d257bd1303fcad21a89e947ad6e1f7675ff056c1 [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.
Cristy91b705b2016-01-11 07:27:48 -05004234_am_tools='gnutar plaintar pax cpio none'
cristye69bdbe2013-05-03 21:40:44 +00004235
Cristy91b705b2016-01-11 07:27:48 -05004236# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4237 # There is notably a 21 bits limit for the UID and the GID. In fact,
4238 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4239 # and bug#13588).
4240 am_max_uid=2097151 # 2^21 - 1
4241 am_max_gid=$am_max_uid
4242 # The $UID and $GID variables are not portable, so we need to resort
4243 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4244 # below are definitely unexpected, so allow the users to see them
4245 # (that is, avoid stderr redirection).
4246 am_uid=`id -u || echo unknown`
4247 am_gid=`id -g || echo unknown`
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4249$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4250 if test $am_uid -le $am_max_uid; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4252$as_echo "yes" >&6; }
4253 else
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255$as_echo "no" >&6; }
4256 _am_tools=none
4257 fi
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4259$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4260 if test $am_gid -le $am_max_gid; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4262$as_echo "yes" >&6; }
4263 else
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4265$as_echo "no" >&6; }
4266 _am_tools=none
4267 fi
4268
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4270$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4271
4272 # Go ahead even if we have the value already cached. We do so because we
4273 # need to set the values for the 'am__tar' and 'am__untar' variables.
4274 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4275
4276 for _am_tool in $_am_tools; do
4277 case $_am_tool in
4278 gnutar)
4279 for _am_tar in tar gnutar gtar; do
4280 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4281 ($_am_tar --version) >&5 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); } && break
4285 done
4286 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4287 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4288 am__untar="$_am_tar -xf -"
4289 ;;
4290 plaintar)
4291 # Must skip GNU tar: if it does not support --format= it doesn't create
4292 # ustar tarball either.
4293 (tar --version) >/dev/null 2>&1 && continue
4294 am__tar='tar chf - "$$tardir"'
4295 am__tar_='tar chf - "$tardir"'
4296 am__untar='tar xf -'
4297 ;;
4298 pax)
4299 am__tar='pax -L -x ustar -w "$$tardir"'
4300 am__tar_='pax -L -x ustar -w "$tardir"'
4301 am__untar='pax -r'
4302 ;;
4303 cpio)
4304 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4305 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4306 am__untar='cpio -i -H ustar -d'
4307 ;;
4308 none)
4309 am__tar=false
4310 am__tar_=false
4311 am__untar=false
4312 ;;
4313 esac
4314
4315 # If the value was cached, stop now. We just wanted to have am__tar
4316 # and am__untar set.
4317 test -n "${am_cv_prog_tar_ustar}" && break
4318
4319 # tar/untar a dummy directory, and stop if the command works.
4320 rm -rf conftest.dir
4321 mkdir conftest.dir
4322 echo GrepMe > conftest.dir/file
4323 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4324 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4325 ac_status=$?
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); }
4328 rm -rf conftest.dir
4329 if test -s conftest.tar; then
4330 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4331 ($am__untar <conftest.tar) >&5 2>&5
4332 ac_status=$?
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }
4335 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4336 (cat conftest.dir/file) >&5 2>&5
4337 ac_status=$?
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }
4340 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4341 fi
4342 done
4343 rm -rf conftest.dir
4344
4345 if ${am_cv_prog_tar_ustar+:} false; then :
4346 $as_echo_n "(cached) " >&6
4347else
4348 am_cv_prog_tar_ustar=$_am_tool
4349fi
4350
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4352$as_echo "$am_cv_prog_tar_ustar" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00004353
4354
4355
4356
4357
cristy3ed852e2009-09-05 21:47:34 +00004358
cristya5bda012013-11-03 18:05:38 +00004359# POSIX will say in a future version that running "rm -f" with no argument
4360# is OK; and we want to be able to make that assumption in our Makefile
4361# recipes. So use an aggressive probe to check that the usage we want is
4362# actually supported "in the wild" to an acceptable degree.
4363# See automake bug#10828.
4364# To make any issue more visible, cause the running configure to be aborted
4365# by default if the 'rm' program in use doesn't match our expectations; the
4366# user can still override this though.
4367if rm -f && rm -fr && rm -rf; then : OK; else
4368 cat >&2 <<'END'
4369Oops!
4370
4371Your 'rm' program seems unable to run without file operands specified
4372on the command line, even when the '-f' option is present. This is contrary
4373to the behaviour of most rm programs out there, and not conforming with
4374the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4375
4376Please tell bug-automake@gnu.org about your system, including the value
4377of your $PATH and any error possibly output before this message. This
4378can help us improve future automake versions.
4379
4380END
4381 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4382 echo 'Configuration will proceed anyway, since you have set the' >&2
4383 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4384 echo >&2
4385 else
4386 cat >&2 <<'END'
4387Aborting the configuration process, to ensure you take notice of the issue.
4388
4389You can download and install GNU coreutils to get an 'rm' implementation
4390that behaves properly: <http://www.gnu.org/software/coreutils/>.
4391
4392If you want to complete the configuration process using your problematic
4393'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4394to "yes", and re-run configure.
4395
4396END
4397 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4398 fi
4399fi
cristyead532a2015-06-05 00:49:30 +00004400
cristy73bd4a52010-10-05 11:24:23 +00004401# Check whether --enable-silent-rules was given.
4402if test "${enable_silent_rules+set}" = set; then :
4403 enableval=$enable_silent_rules;
4404fi
4405
cristyc0890a62012-07-19 00:18:20 +00004406case $enable_silent_rules in # (((
4407 yes) AM_DEFAULT_VERBOSITY=0;;
4408 no) AM_DEFAULT_VERBOSITY=1;;
4409 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004410esac
cristyc3fb77b2012-02-06 01:49:41 +00004411am_make=${MAKE-make}
4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4413$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4414if ${am_cv_make_support_nested_variables+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416else
4417 if $as_echo 'TRUE=$(BAR$(V))
4418BAR0=false
4419BAR1=true
4420V=1
4421am__doit:
4422 @$(TRUE)
4423.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4424 am_cv_make_support_nested_variables=yes
4425else
4426 am_cv_make_support_nested_variables=no
4427fi
4428fi
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4430$as_echo "$am_cv_make_support_nested_variables" >&6; }
4431if test $am_cv_make_support_nested_variables = yes; then
4432 AM_V='$(V)'
4433 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4434else
4435 AM_V=$AM_DEFAULT_VERBOSITY
4436 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4437fi
cristy73bd4a52010-10-05 11:24:23 +00004438AM_BACKSLASH='\'
4439
cristy3ed852e2009-09-05 21:47:34 +00004440
cristy9af1cbf2014-12-28 22:03:09 +00004441#
4442# Save initial user-tunable values
4443#
4444USER_LIBS=$LIBS
4445for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4446 eval isset=\${$var+set}
4447 if test "$isset" = 'set'; then
4448 eval val=$`echo $var`
4449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4450 fi
4451done
4452
4453
4454CONFIGURE_ARGS="$0 ${ac_configure_args}"
4455
4456
cristy187791c2015-05-03 22:17:00 +00004457# Check whether --enable-reproducible-build was given.
4458if test "${enable_reproducible_build+set}" = set; then :
4459 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4460else
4461 enable_reproducible_build='no'
4462fi
4463
4464
cristy9af1cbf2014-12-28 22:03:09 +00004465# Source file containing package/library versioning information.
4466. ${srcdir}/version.sh
4467
4468echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4469
4470MAGICK_TARGET_CPU=$host_cpu
4471
4472
4473cat >>confdefs.h <<_ACEOF
4474#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4475_ACEOF
4476
4477
4478MAGICK_TARGET_VENDOR=$host_vendor
4479
4480
4481cat >>confdefs.h <<_ACEOF
4482#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4483_ACEOF
4484
4485
4486MAGICK_TARGET_OS=$host_os
4487
4488
4489cat >>confdefs.h <<_ACEOF
4490#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4491_ACEOF
4492
4493
4494
4495# Substitute versioning
4496MAGICK_MAJOR_VERSION=7
4497
4498MAGICK_MINOR_VERSION=0
4499
4500MAGICK_MICRO_VERSION=0
4501
4502MAGICK_PATCHLEVEL_VERSION=0
4503
4504MAGICK_VERSION=7.0.0-0
4505
Cristy653fae52016-01-15 16:57:13 -05004506MAGICK_GIT_REVISION=17520:5d5208d:20160115
cristy9af1cbf2014-12-28 22:03:09 +00004507
4508
4509# Substitute library versioning
4510MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4511
4512MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4513
4514
4515MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4516
4517MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4518
4519
cristy187791c2015-05-03 22:17:00 +00004520if test X$enable_reproducible_build = Xyes; then :
4521 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4522elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4523
4524fi
4525
cristy9af1cbf2014-12-28 22:03:09 +00004526
4527# Ensure that make can run correctly
4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4529$as_echo_n "checking whether build environment is sane... " >&6; }
4530# Reject unsafe characters in $srcdir or the absolute working directory
4531# name. Accept space and tab only in the latter.
4532am_lf='
4533'
4534case `pwd` in
4535 *[\\\"\#\$\&\'\`$am_lf]*)
4536 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4537esac
4538case $srcdir in
4539 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4540 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4541esac
4542
4543# Do 'set' in a subshell so we don't clobber the current shell's
4544# arguments. Must try -L first in case configure is actually a
4545# symlink; some systems play weird games with the mod time of symlinks
4546# (eg FreeBSD returns the mod time of the symlink's containing
4547# directory).
4548if (
4549 am_has_slept=no
4550 for am_try in 1 2; do
4551 echo "timestamp, slept: $am_has_slept" > conftest.file
4552 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4553 if test "$*" = "X"; then
4554 # -L didn't work.
4555 set X `ls -t "$srcdir/configure" conftest.file`
4556 fi
4557 if test "$*" != "X $srcdir/configure conftest.file" \
4558 && test "$*" != "X conftest.file $srcdir/configure"; then
4559
4560 # If neither matched, then we have a broken ls. This can happen
4561 # if, for instance, CONFIG_SHELL is bash and it inherits a
4562 # broken ls alias from the environment. This has actually
4563 # happened. Such a system could not be considered "sane".
4564 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4565 alias in your environment" "$LINENO" 5
4566 fi
4567 if test "$2" = conftest.file || test $am_try -eq 2; then
4568 break
4569 fi
4570 # Just in case.
4571 sleep 1
4572 am_has_slept=yes
4573 done
4574 test "$2" = conftest.file
4575 )
4576then
4577 # Ok.
4578 :
4579else
4580 as_fn_error $? "newly created file is older than distributed files!
4581Check your system clock" "$LINENO" 5
4582fi
4583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4584$as_echo "yes" >&6; }
4585# If we didn't sleep, we still need to ensure time stamps of config.status and
4586# generated files are strictly newer.
4587am_sleep_pid=
4588if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4589 ( sleep 1 ) &
4590 am_sleep_pid=$!
4591fi
4592
4593rm -f conftest.file
4594
4595
cristyf279b692014-08-13 12:01:27 +00004596# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004597MAGICK_LIB_VERSION="0x"
4598if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4599 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4600fi
4601MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4602if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4603 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4604fi
4605MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4606if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4607 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4608fi
4609MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4610
4611
4612# Definition used to define MagickLibVersionText in version.h
4613MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4614
4615
4616# Definition used to define MagickLibVersionNumber in version.h
4617MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4618
4619
cristy5ed9c6e2013-07-14 21:20:31 +00004620MAGICKPP_LIB_VERSION="0x"
4621if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4622 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4623fi
4624MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4625if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4626 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4627fi
4628MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4629if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4630 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4631fi
4632MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4633
4634
4635# Definition used to define MagickLibVersionText in version.h
4636MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4637
4638
4639# Definition used to define MagickLibVersionNumber in version.h
4640MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4641
4642
4643
4644
cristy3ed852e2009-09-05 21:47:34 +00004645# Regenerate config.status if ChangeLog or version.sh is updated.
4646CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4647
4648
4649PERLMAINCC=$CC
4650
4651MAGICK_CFLAGS=''
4652MAGICK_CPPFLAGS=$CPPFLAGS_USER
4653MAGICK_PCFLAGS=$CPPFLAGS_USER
4654MAGICK_LDFLAGS=''
4655MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004656MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004657
4658#
4659# Evaluate shell variable equivalents to Makefile directory variables
4660#
4661if test "x$prefix" = xNONE; then
4662 prefix=$ac_default_prefix
4663fi
4664# Let make expand exec_prefix.
4665if test "x$exec_prefix" = xNONE; then
4666 exec_prefix='${prefix}'
4667fi
4668
4669#
4670eval "eval PREFIX_DIR=${prefix}"
4671
4672eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4673
4674eval "eval BIN_DIR=$bindir"
4675
4676eval "eval SBIN_DIR=$sbindir"
4677
4678eval "eval LIBEXEC_DIR=$libexecdir"
4679
4680eval "eval DATA_DIR=$datadir"
4681
Cristye35bdc62015-09-19 18:29:00 -04004682eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004683
cristy3ed852e2009-09-05 21:47:34 +00004684eval "eval SYSCONF_DIR=$sysconfdir"
4685
4686eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4687
4688eval "eval LOCALSTATE_DIR=$localstatedir"
4689
4690eval "eval LIB_DIR=$libdir"
4691
4692eval "eval INCLUDE_DIR=$includedir"
4693
4694eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4695
4696eval "eval INFO_DIR=$infodir"
4697
4698eval "eval MAN_DIR=$mandir"
4699
4700
4701# Get full paths to source and build directories
4702srcdirfull="`cd $srcdir && pwd`"
4703builddir="`pwd`"
4704
4705#
4706# Compute variables useful for running uninstalled software.
4707#
4708MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4709MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4710MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4711MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4712DIRSEP=':'
4713case "${build_os}" in
4714 mingw* )
4715 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4716 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4717 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4718 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4719 DIRSEP=';'
4720 ;;
4721esac
4722case "${host_os}" in
4723 mingw* )
4724 DIRSEP=';'
4725 ;;
4726esac
4727
4728
4729
4730
4731
4732
cristya0b81c32010-01-22 02:54:33 +00004733
4734#
4735# Enable OS features.
4736#
cristy73bd4a52010-10-05 11:24:23 +00004737DEPDIR="${am__leading_dot}deps"
4738
4739ac_config_commands="$ac_config_commands depfiles"
4740
4741
4742am_make=${MAKE-make}
4743cat > confinc << 'END'
4744am__doit:
4745 @echo this is the am__doit target
4746.PHONY: am__doit
4747END
4748# If we don't find an include directive, just comment out the code.
4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4750$as_echo_n "checking for style of include used by $am_make... " >&6; }
4751am__include="#"
4752am__quote=
4753_am_result=none
4754# First try GNU make style include.
4755echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004756# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004757case `$am_make -s -f confmf 2> /dev/null` in #(
4758*the\ am__doit\ target*)
4759 am__include=include
4760 am__quote=
4761 _am_result=GNU
4762 ;;
4763esac
4764# Now try BSD make style include.
4765if test "$am__include" = "#"; then
4766 echo '.include "confinc"' > confmf
4767 case `$am_make -s -f confmf 2> /dev/null` in #(
4768 *the\ am__doit\ target*)
4769 am__include=.include
4770 am__quote="\""
4771 _am_result=BSD
4772 ;;
4773 esac
4774fi
4775
4776
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4778$as_echo "$_am_result" >&6; }
4779rm -f confinc confmf
4780
4781# Check whether --enable-dependency-tracking was given.
4782if test "${enable_dependency_tracking+set}" = set; then :
4783 enableval=$enable_dependency_tracking;
4784fi
4785
4786if test "x$enable_dependency_tracking" != xno; then
4787 am_depcomp="$ac_aux_dir/depcomp"
4788 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004789 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004790fi
4791 if test "x$enable_dependency_tracking" != xno; then
4792 AMDEP_TRUE=
4793 AMDEP_FALSE='#'
4794else
4795 AMDEP_TRUE='#'
4796 AMDEP_FALSE=
4797fi
4798
4799
cristy3ed852e2009-09-05 21:47:34 +00004800ac_ext=c
4801ac_cpp='$CPP $CPPFLAGS'
4802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4804ac_compiler_gnu=$ac_cv_c_compiler_gnu
4805if test -n "$ac_tool_prefix"; then
4806 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4807set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004809$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004810if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004811 $as_echo_n "(cached) " >&6
4812else
4813 if test -n "$CC"; then
4814 ac_cv_prog_CC="$CC" # Let the user override the test.
4815else
4816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817for as_dir in $PATH
4818do
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004821 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004823 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004825 break 2
4826 fi
4827done
cristy8b350f62009-11-15 23:12:43 +00004828 done
cristy3ed852e2009-09-05 21:47:34 +00004829IFS=$as_save_IFS
4830
4831fi
4832fi
4833CC=$ac_cv_prog_CC
4834if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004836$as_echo "$CC" >&6; }
4837else
cristy8b350f62009-11-15 23:12:43 +00004838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839$as_echo "no" >&6; }
4840fi
4841
4842
4843fi
4844if test -z "$ac_cv_prog_CC"; then
4845 ac_ct_CC=$CC
4846 # Extract the first word of "gcc", so it can be a program name with args.
4847set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004849$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004850if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004851 $as_echo_n "(cached) " >&6
4852else
4853 if test -n "$ac_ct_CC"; then
4854 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4855else
4856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004861 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004863 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004865 break 2
4866 fi
4867done
cristy8b350f62009-11-15 23:12:43 +00004868 done
cristy3ed852e2009-09-05 21:47:34 +00004869IFS=$as_save_IFS
4870
4871fi
4872fi
4873ac_ct_CC=$ac_cv_prog_ac_ct_CC
4874if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004876$as_echo "$ac_ct_CC" >&6; }
4877else
cristy8b350f62009-11-15 23:12:43 +00004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004879$as_echo "no" >&6; }
4880fi
4881
4882 if test "x$ac_ct_CC" = x; then
4883 CC=""
4884 else
4885 case $cross_compiling:$ac_tool_warned in
4886yes:)
cristy8b350f62009-11-15 23:12:43 +00004887{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4889ac_tool_warned=yes ;;
4890esac
4891 CC=$ac_ct_CC
4892 fi
4893else
4894 CC="$ac_cv_prog_CC"
4895fi
4896
4897if test -z "$CC"; then
4898 if test -n "$ac_tool_prefix"; then
4899 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4900set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004903if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004904 $as_echo_n "(cached) " >&6
4905else
4906 if test -n "$CC"; then
4907 ac_cv_prog_CC="$CC" # Let the user override the test.
4908else
4909as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004914 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004916 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004918 break 2
4919 fi
4920done
cristy8b350f62009-11-15 23:12:43 +00004921 done
cristy3ed852e2009-09-05 21:47:34 +00004922IFS=$as_save_IFS
4923
4924fi
4925fi
4926CC=$ac_cv_prog_CC
4927if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004929$as_echo "$CC" >&6; }
4930else
cristy8b350f62009-11-15 23:12:43 +00004931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004932$as_echo "no" >&6; }
4933fi
4934
4935
4936 fi
4937fi
4938if test -z "$CC"; then
4939 # Extract the first word of "cc", so it can be a program name with args.
4940set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004942$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004943if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004944 $as_echo_n "(cached) " >&6
4945else
4946 if test -n "$CC"; then
4947 ac_cv_prog_CC="$CC" # Let the user override the test.
4948else
4949 ac_prog_rejected=no
4950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4951for as_dir in $PATH
4952do
4953 IFS=$as_save_IFS
4954 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004955 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004957 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4958 ac_prog_rejected=yes
4959 continue
4960 fi
4961 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004963 break 2
4964 fi
4965done
cristy8b350f62009-11-15 23:12:43 +00004966 done
cristy3ed852e2009-09-05 21:47:34 +00004967IFS=$as_save_IFS
4968
4969if test $ac_prog_rejected = yes; then
4970 # We found a bogon in the path, so make sure we never use it.
4971 set dummy $ac_cv_prog_CC
4972 shift
4973 if test $# != 0; then
4974 # We chose a different compiler from the bogus one.
4975 # However, it has the same basename, so the bogon will be chosen
4976 # first if we set CC to just the basename; use the full file name.
4977 shift
4978 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4979 fi
4980fi
4981fi
4982fi
4983CC=$ac_cv_prog_CC
4984if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004986$as_echo "$CC" >&6; }
4987else
cristy8b350f62009-11-15 23:12:43 +00004988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004989$as_echo "no" >&6; }
4990fi
4991
4992
4993fi
4994if test -z "$CC"; then
4995 if test -n "$ac_tool_prefix"; then
4996 for ac_prog in cl.exe
4997 do
4998 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4999set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005002if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005003 $as_echo_n "(cached) " >&6
5004else
5005 if test -n "$CC"; then
5006 ac_cv_prog_CC="$CC" # Let the user override the test.
5007else
5008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009for as_dir in $PATH
5010do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005013 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00005015 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00005016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005017 break 2
5018 fi
5019done
cristy8b350f62009-11-15 23:12:43 +00005020 done
cristy3ed852e2009-09-05 21:47:34 +00005021IFS=$as_save_IFS
5022
5023fi
5024fi
5025CC=$ac_cv_prog_CC
5026if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00005027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005028$as_echo "$CC" >&6; }
5029else
cristy8b350f62009-11-15 23:12:43 +00005030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031$as_echo "no" >&6; }
5032fi
5033
5034
5035 test -n "$CC" && break
5036 done
5037fi
5038if test -z "$CC"; then
5039 ac_ct_CC=$CC
5040 for ac_prog in cl.exe
5041do
5042 # Extract the first word of "$ac_prog", so it can be a program name with args.
5043set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005046if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005047 $as_echo_n "(cached) " >&6
5048else
5049 if test -n "$ac_ct_CC"; then
5050 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5051else
5052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053for as_dir in $PATH
5054do
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005057 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00005059 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00005060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005061 break 2
5062 fi
5063done
cristy8b350f62009-11-15 23:12:43 +00005064 done
cristy3ed852e2009-09-05 21:47:34 +00005065IFS=$as_save_IFS
5066
5067fi
5068fi
5069ac_ct_CC=$ac_cv_prog_ac_ct_CC
5070if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005072$as_echo "$ac_ct_CC" >&6; }
5073else
cristy8b350f62009-11-15 23:12:43 +00005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075$as_echo "no" >&6; }
5076fi
5077
5078
5079 test -n "$ac_ct_CC" && break
5080done
5081
5082 if test "x$ac_ct_CC" = x; then
5083 CC=""
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086yes:)
cristy8b350f62009-11-15 23:12:43 +00005087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00005088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5089ac_tool_warned=yes ;;
5090esac
5091 CC=$ac_ct_CC
5092 fi
5093fi
5094
5095fi
5096
5097
cristy8b350f62009-11-15 23:12:43 +00005098test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005100as_fn_error $? "no acceptable C compiler found in \$PATH
5101See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005102
5103# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00005104$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00005105set X $ac_compile
5106ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00005107for ac_option in --version -v -V -qversion; do
5108 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00005109case "(($ac_try" in
5110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5111 *) ac_try_echo=$ac_try;;
5112esac
cristy8b350f62009-11-15 23:12:43 +00005113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5114$as_echo "$ac_try_echo"; } >&5
5115 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00005116 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005117 if test -s conftest.err; then
5118 sed '10a\
5119... rest of stderr output deleted ...
5120 10q' conftest.err >conftest.er1
5121 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00005122 fi
cristycd4c5312009-11-22 01:19:08 +00005123 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5125 test $ac_status = 0; }
5126done
cristy3ed852e2009-09-05 21:47:34 +00005127
cristy8b350f62009-11-15 23:12:43 +00005128cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005129/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005130
cristy3ed852e2009-09-05 21:47:34 +00005131int
5132main ()
5133{
5134
5135 ;
5136 return 0;
5137}
5138_ACEOF
5139ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005140ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005141# Try to create an executable without -o first, disregard a.out.
5142# It will help us diagnose broken compilers, and finding out an intuition
5143# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5145$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005146ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5147
5148# The possible output files:
5149ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5150
5151ac_rmfiles=
5152for ac_file in $ac_files
5153do
5154 case $ac_file in
5155 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5156 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5157 esac
5158done
5159rm -f $ac_rmfiles
5160
cristy8b350f62009-11-15 23:12:43 +00005161if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005162case "(($ac_try" in
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5165esac
cristy8b350f62009-11-15 23:12:43 +00005166eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005168 (eval "$ac_link_default") 2>&5
5169 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5171 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005172 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5173# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5174# in a Makefile. We should not override ac_cv_exeext if it was cached,
5175# so that the user can short-circuit this test for compilers unknown to
5176# Autoconf.
5177for ac_file in $ac_files ''
5178do
5179 test -f "$ac_file" || continue
5180 case $ac_file in
5181 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5182 ;;
5183 [ab].out )
5184 # We found the default executable, but exeext='' is most
5185 # certainly right.
5186 break;;
5187 *.* )
cristy8b350f62009-11-15 23:12:43 +00005188 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005189 then :; else
5190 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5191 fi
5192 # We set ac_cv_exeext here because the later test for it is not
5193 # safe: cross compilers may not add the suffix if given an `-o'
5194 # argument, so we may need to know it at that point already.
5195 # Even if this section looks crufty: it has the advantage of
5196 # actually working.
5197 break;;
5198 * )
5199 break;;
5200 esac
5201done
5202test "$ac_cv_exeext" = no && ac_cv_exeext=
5203
5204else
5205 ac_file=''
5206fi
cristy8b350f62009-11-15 23:12:43 +00005207if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209$as_echo "no" >&6; }
5210$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005211sed 's/^/| /' conftest.$ac_ext >&5
5212
cristy8b350f62009-11-15 23:12:43 +00005213{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005215as_fn_error 77 "C compiler cannot create executables
5216See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005217else
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5219$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005220fi
cristycd4c5312009-11-22 01:19:08 +00005221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5222$as_echo_n "checking for C compiler default output file name... " >&6; }
5223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5224$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005225ac_exeext=$ac_cv_exeext
5226
cristycd4c5312009-11-22 01:19:08 +00005227rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005228ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005230$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005231if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005232case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235esac
cristy8b350f62009-11-15 23:12:43 +00005236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5237$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005238 (eval "$ac_link") 2>&5
5239 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5241 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5243# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5244# work properly (i.e., refer to `conftest.exe'), while it won't with
5245# `rm'.
5246for ac_file in conftest.exe conftest conftest.*; do
5247 test -f "$ac_file" || continue
5248 case $ac_file in
5249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5251 break;;
5252 * ) break;;
5253 esac
5254done
5255else
cristy8b350f62009-11-15 23:12:43 +00005256 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005258as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5259See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005260fi
cristycd4c5312009-11-22 01:19:08 +00005261rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005263$as_echo "$ac_cv_exeext" >&6; }
5264
5265rm -f conftest.$ac_ext
5266EXEEXT=$ac_cv_exeext
5267ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5269/* end confdefs.h. */
5270#include <stdio.h>
5271int
5272main ()
5273{
5274FILE *f = fopen ("conftest.out", "w");
5275 return ferror (f) || fclose (f) != 0;
5276
5277 ;
5278 return 0;
5279}
5280_ACEOF
5281ac_clean_files="$ac_clean_files conftest.out"
5282# Check that the compiler produces executables we can run. If not, either
5283# the compiler is broken, or we cross compile.
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5285$as_echo_n "checking whether we are cross compiling... " >&6; }
5286if test "$cross_compiling" != yes; then
5287 { { ac_try="$ac_link"
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5293$as_echo "$ac_try_echo"; } >&5
5294 (eval "$ac_link") 2>&5
5295 ac_status=$?
5296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5297 test $ac_status = 0; }
5298 if { ac_try='./conftest$ac_cv_exeext'
5299 { { case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302esac
5303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5304$as_echo "$ac_try_echo"; } >&5
5305 (eval "$ac_try") 2>&5
5306 ac_status=$?
5307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308 test $ac_status = 0; }; }; then
5309 cross_compiling=no
5310 else
5311 if test "$cross_compiling" = maybe; then
5312 cross_compiling=yes
5313 else
5314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005316as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005317If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005318See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005319 fi
5320 fi
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5323$as_echo "$cross_compiling" >&6; }
5324
5325rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5326ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005328$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005329if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005330 $as_echo_n "(cached) " >&6
5331else
cristy8b350f62009-11-15 23:12:43 +00005332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005333/* end confdefs.h. */
5334
5335int
5336main ()
5337{
5338
5339 ;
5340 return 0;
5341}
5342_ACEOF
5343rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005344if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005345case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348esac
cristy8b350f62009-11-15 23:12:43 +00005349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5350$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005351 (eval "$ac_compile") 2>&5
5352 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5354 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005355 for ac_file in conftest.o conftest.obj conftest.*; do
5356 test -f "$ac_file" || continue;
5357 case $ac_file in
5358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5360 break;;
5361 esac
5362done
5363else
5364 $as_echo "$as_me: failed program was:" >&5
5365sed 's/^/| /' conftest.$ac_ext >&5
5366
cristy8b350f62009-11-15 23:12:43 +00005367{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005368$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005369as_fn_error $? "cannot compute suffix of object files: cannot compile
5370See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005371fi
cristy3ed852e2009-09-05 21:47:34 +00005372rm -f conftest.$ac_cv_objext conftest.$ac_ext
5373fi
cristy8b350f62009-11-15 23:12:43 +00005374{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005375$as_echo "$ac_cv_objext" >&6; }
5376OBJEXT=$ac_cv_objext
5377ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005379$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005380if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005381 $as_echo_n "(cached) " >&6
5382else
cristy8b350f62009-11-15 23:12:43 +00005383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005384/* end confdefs.h. */
5385
5386int
5387main ()
5388{
5389#ifndef __GNUC__
5390 choke me
5391#endif
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005397if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005398 ac_compiler_gnu=yes
5399else
cristy8b350f62009-11-15 23:12:43 +00005400 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005401fi
cristy3ed852e2009-09-05 21:47:34 +00005402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5403ac_cv_c_compiler_gnu=$ac_compiler_gnu
5404
5405fi
cristy8b350f62009-11-15 23:12:43 +00005406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005407$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5408if test $ac_compiler_gnu = yes; then
5409 GCC=yes
5410else
5411 GCC=
5412fi
5413ac_test_CFLAGS=${CFLAGS+set}
5414ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005416$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005417if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005418 $as_echo_n "(cached) " >&6
5419else
5420 ac_save_c_werror_flag=$ac_c_werror_flag
5421 ac_c_werror_flag=yes
5422 ac_cv_prog_cc_g=no
5423 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005425/* end confdefs.h. */
5426
5427int
5428main ()
5429{
5430
5431 ;
5432 return 0;
5433}
5434_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005435if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005436 ac_cv_prog_cc_g=yes
5437else
cristy8b350f62009-11-15 23:12:43 +00005438 CFLAGS=""
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005440/* end confdefs.h. */
5441
5442int
5443main ()
5444{
5445
5446 ;
5447 return 0;
5448}
5449_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005450if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005451
cristy8b350f62009-11-15 23:12:43 +00005452else
5453 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005454 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005456/* end confdefs.h. */
5457
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005466if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005467 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005468fi
cristy3ed852e2009-09-05 21:47:34 +00005469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470fi
cristy3ed852e2009-09-05 21:47:34 +00005471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5472fi
cristy3ed852e2009-09-05 21:47:34 +00005473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 ac_c_werror_flag=$ac_save_c_werror_flag
5475fi
cristy8b350f62009-11-15 23:12:43 +00005476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005477$as_echo "$ac_cv_prog_cc_g" >&6; }
5478if test "$ac_test_CFLAGS" = set; then
5479 CFLAGS=$ac_save_CFLAGS
5480elif test $ac_cv_prog_cc_g = yes; then
5481 if test "$GCC" = yes; then
5482 CFLAGS="-g -O2"
5483 else
5484 CFLAGS="-g"
5485 fi
5486else
5487 if test "$GCC" = yes; then
5488 CFLAGS="-O2"
5489 else
5490 CFLAGS=
5491 fi
5492fi
cristy8b350f62009-11-15 23:12:43 +00005493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005494$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005495if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005496 $as_echo_n "(cached) " >&6
5497else
5498 ac_cv_prog_cc_c89=no
5499ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005501/* end confdefs.h. */
5502#include <stdarg.h>
5503#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005504struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005505/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5506struct buf { int x; };
5507FILE * (*rcsopen) (struct buf *, struct stat *, int);
5508static char *e (p, i)
5509 char **p;
5510 int i;
5511{
5512 return p[i];
5513}
5514static char *f (char * (*g) (char **, int), char **p, ...)
5515{
5516 char *s;
5517 va_list v;
5518 va_start (v,p);
5519 s = g (p, va_arg (v,int));
5520 va_end (v);
5521 return s;
5522}
5523
5524/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5525 function prototypes and stuff, but not '\xHH' hex character constants.
5526 These don't provoke an error unfortunately, instead are silently treated
5527 as 'x'. The following induces an error, until -std is added to get
5528 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5529 array size at least. It's necessary to write '\x00'==0 to get something
5530 that's true only with -std. */
5531int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5532
5533/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5534 inside strings and character constants. */
5535#define FOO(x) 'x'
5536int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5537
5538int test (int i, double x);
5539struct s1 {int (*f) (int a);};
5540struct s2 {int (*f) (double a);};
5541int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5542int argc;
5543char **argv;
5544int
5545main ()
5546{
5547return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5548 ;
5549 return 0;
5550}
5551_ACEOF
5552for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5553 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5554do
5555 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005556 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005557 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005558fi
cristy3ed852e2009-09-05 21:47:34 +00005559rm -f core conftest.err conftest.$ac_objext
5560 test "x$ac_cv_prog_cc_c89" != "xno" && break
5561done
5562rm -f conftest.$ac_ext
5563CC=$ac_save_CC
5564
5565fi
5566# AC_CACHE_VAL
5567case "x$ac_cv_prog_cc_c89" in
5568 x)
cristy8b350f62009-11-15 23:12:43 +00005569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005570$as_echo "none needed" >&6; } ;;
5571 xno)
cristy8b350f62009-11-15 23:12:43 +00005572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005573$as_echo "unsupported" >&6; } ;;
5574 *)
5575 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005577$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5578esac
cristy8b350f62009-11-15 23:12:43 +00005579if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005580
cristy8b350f62009-11-15 23:12:43 +00005581fi
cristy3ed852e2009-09-05 21:47:34 +00005582
5583ac_ext=c
5584ac_cpp='$CPP $CPPFLAGS'
5585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005588
cristya5bda012013-11-03 18:05:38 +00005589ac_ext=c
5590ac_cpp='$CPP $CPPFLAGS'
5591ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593ac_compiler_gnu=$ac_cv_c_compiler_gnu
5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5595$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5596if ${am_cv_prog_cc_c_o+:} false; then :
5597 $as_echo_n "(cached) " >&6
5598else
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600/* end confdefs.h. */
5601
5602int
5603main ()
5604{
5605
5606 ;
5607 return 0;
5608}
5609_ACEOF
5610 # Make sure it works both with $CC and with simple cc.
5611 # Following AC_PROG_CC_C_O, we do the test twice because some
5612 # compilers refuse to overwrite an existing .o file with -o,
5613 # though they will create one.
5614 am_cv_prog_cc_c_o=yes
5615 for am_i in 1 2; do
5616 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5617 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5618 ac_status=$?
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } \
5621 && test -f conftest2.$ac_objext; then
5622 : OK
5623 else
5624 am_cv_prog_cc_c_o=no
5625 break
5626 fi
5627 done
5628 rm -f core conftest*
5629 unset am_i
5630fi
5631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5632$as_echo "$am_cv_prog_cc_c_o" >&6; }
5633if test "$am_cv_prog_cc_c_o" != yes; then
5634 # Losing compiler, so override with the script.
5635 # FIXME: It is wrong to rewrite CC.
5636 # But if we don't then we get into trouble of one sort or another.
5637 # A longer-term fix would be to have automake use am__CC in this case,
5638 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5639 CC="$am_aux_dir/compile $CC"
5640fi
5641ac_ext=c
5642ac_cpp='$CPP $CPPFLAGS'
5643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646
5647
cristy73bd4a52010-10-05 11:24:23 +00005648depcc="$CC" am_compiler_list=
5649
5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5651$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005652if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005653 $as_echo_n "(cached) " >&6
5654else
5655 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5656 # We make a subdir and do the tests there. Otherwise we can end up
5657 # making bogus files that we don't know about and never remove. For
5658 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005659 # making a dummy file named 'D' -- because '-MD' means "put the output
5660 # in D".
cristy7247bba2012-02-05 16:37:27 +00005661 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005662 mkdir conftest.dir
5663 # Copy depcomp to subdir because otherwise we won't find it if we're
5664 # using a relative directory.
5665 cp "$am_depcomp" conftest.dir
5666 cd conftest.dir
5667 # We will build objects and dependencies in a subdirectory because
5668 # it helps to detect inapplicable dependency modes. For instance
5669 # both Tru64's cc and ICC support -MD to output dependencies as a
5670 # side effect of compilation, but ICC will put the dependencies in
5671 # the current directory while Tru64 will put them in the object
5672 # directory.
5673 mkdir sub
5674
5675 am_cv_CC_dependencies_compiler_type=none
5676 if test "$am_compiler_list" = ""; then
5677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5678 fi
5679 am__universal=false
5680 case " $depcc " in #(
5681 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5682 esac
5683
5684 for depmode in $am_compiler_list; do
5685 # Setup a source with many dependencies, because some compilers
5686 # like to wrap large dependency lists on column 80 (with \), and
5687 # we should not choose a depcomp mode which is confused by this.
5688 #
5689 # We need to recreate these files for each test, as the compiler may
5690 # overwrite some of them when testing with obscure command lines.
5691 # This happens at least with the AIX C compiler.
5692 : > sub/conftest.c
5693 for i in 1 2 3 4 5 6; do
5694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005695 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5696 # Solaris 10 /bin/sh.
5697 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005698 done
5699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5700
cristyc0890a62012-07-19 00:18:20 +00005701 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005702 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005703 # handle '-M -o', and we need to detect this. Also, some Intel
5704 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005705 am__obj=sub/conftest.${OBJEXT-o}
5706 am__minus_obj="-o $am__obj"
5707 case $depmode in
5708 gcc)
5709 # This depmode causes a compiler race in universal mode.
5710 test "$am__universal" = false || continue
5711 ;;
5712 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005713 # After this tag, mechanisms are not by side-effect, so they'll
5714 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005715 if test "x$enable_dependency_tracking" = xyes; then
5716 continue
5717 else
5718 break
5719 fi
5720 ;;
cristy7247bba2012-02-05 16:37:27 +00005721 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005722 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005723 # not run yet. These depmodes are late enough in the game, and
5724 # so weak that their functioning should not be impacted.
5725 am__obj=conftest.${OBJEXT-o}
5726 am__minus_obj=
5727 ;;
5728 none) break ;;
5729 esac
5730 if depmode=$depmode \
5731 source=sub/conftest.c object=$am__obj \
5732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5734 >/dev/null 2>conftest.err &&
5735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5739 # icc doesn't choke on unknown options, it will just issue warnings
5740 # or remarks (even with -Werror). So we grep stderr for any message
5741 # that says an option was ignored or not supported.
5742 # When given -MP, icc 7.0 and 7.1 complain thusly:
5743 # icc: Command line warning: ignoring option '-M'; no argument required
5744 # The diagnosis changed in icc 8.0:
5745 # icc: Command line remark: option '-MP' not supported
5746 if (grep 'ignoring option' conftest.err ||
5747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5748 am_cv_CC_dependencies_compiler_type=$depmode
5749 break
5750 fi
5751 fi
5752 done
5753
5754 cd ..
5755 rm -rf conftest.dir
5756else
5757 am_cv_CC_dependencies_compiler_type=none
5758fi
5759
5760fi
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5762$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5763CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5764
5765 if
5766 test "x$enable_dependency_tracking" != xno \
5767 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5768 am__fastdepCC_TRUE=
5769 am__fastdepCC_FALSE='#'
5770else
5771 am__fastdepCC_TRUE='#'
5772 am__fastdepCC_FALSE=
5773fi
5774
5775
cristy3ed852e2009-09-05 21:47:34 +00005776
cristya0b81c32010-01-22 02:54:33 +00005777ac_ext=c
5778ac_cpp='$CPP $CPPFLAGS'
5779ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781ac_compiler_gnu=$ac_cv_c_compiler_gnu
5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5783$as_echo_n "checking how to run the C preprocessor... " >&6; }
5784# On Suns, sometimes $CPP names a directory.
5785if test -n "$CPP" && test -d "$CPP"; then
5786 CPP=
5787fi
5788if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005789 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005790 $as_echo_n "(cached) " >&6
5791else
5792 # Double quotes because CPP needs to be expanded
5793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5794 do
5795 ac_preproc_ok=false
5796for ac_c_preproc_warn_flag in '' yes
5797do
5798 # Use a header file that comes with gcc, so configuring glibc
5799 # with a fresh cross-compiler works.
5800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801 # <limits.h> exists even on freestanding compilers.
5802 # On the NeXT, cc -E runs the code through the compiler's parser,
5803 # not just through cpp. "Syntax error" is here to catch this case.
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805/* end confdefs.h. */
5806#ifdef __STDC__
5807# include <limits.h>
5808#else
5809# include <assert.h>
5810#endif
5811 Syntax error
5812_ACEOF
5813if ac_fn_c_try_cpp "$LINENO"; then :
5814
5815else
5816 # Broken: fails on valid input.
5817continue
5818fi
cristyda16f162011-02-19 23:52:17 +00005819rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005820
5821 # OK, works on sane cases. Now check whether nonexistent headers
5822 # can be detected and how.
5823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5824/* end confdefs.h. */
5825#include <ac_nonexistent.h>
5826_ACEOF
5827if ac_fn_c_try_cpp "$LINENO"; then :
5828 # Broken: success on invalid input.
5829continue
5830else
5831 # Passes both tests.
5832ac_preproc_ok=:
5833break
5834fi
cristyda16f162011-02-19 23:52:17 +00005835rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005836
5837done
5838# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005839rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005840if $ac_preproc_ok; then :
5841 break
5842fi
5843
5844 done
5845 ac_cv_prog_CPP=$CPP
5846
5847fi
5848 CPP=$ac_cv_prog_CPP
5849else
5850 ac_cv_prog_CPP=$CPP
5851fi
5852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5853$as_echo "$CPP" >&6; }
5854ac_preproc_ok=false
5855for ac_c_preproc_warn_flag in '' yes
5856do
5857 # Use a header file that comes with gcc, so configuring glibc
5858 # with a fresh cross-compiler works.
5859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5860 # <limits.h> exists even on freestanding compilers.
5861 # On the NeXT, cc -E runs the code through the compiler's parser,
5862 # not just through cpp. "Syntax error" is here to catch this case.
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5864/* end confdefs.h. */
5865#ifdef __STDC__
5866# include <limits.h>
5867#else
5868# include <assert.h>
5869#endif
5870 Syntax error
5871_ACEOF
5872if ac_fn_c_try_cpp "$LINENO"; then :
5873
5874else
5875 # Broken: fails on valid input.
5876continue
5877fi
cristyda16f162011-02-19 23:52:17 +00005878rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005879
5880 # OK, works on sane cases. Now check whether nonexistent headers
5881 # can be detected and how.
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883/* end confdefs.h. */
5884#include <ac_nonexistent.h>
5885_ACEOF
5886if ac_fn_c_try_cpp "$LINENO"; then :
5887 # Broken: success on invalid input.
5888continue
5889else
5890 # Passes both tests.
5891ac_preproc_ok=:
5892break
5893fi
cristyda16f162011-02-19 23:52:17 +00005894rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005895
5896done
5897# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005898rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005899if $ac_preproc_ok; then :
5900
5901else
5902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005904as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5905See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005906fi
5907
5908ac_ext=c
5909ac_cpp='$CPP $CPPFLAGS'
5910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912ac_compiler_gnu=$ac_cv_c_compiler_gnu
5913
5914
5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5916$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005917if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005918 $as_echo_n "(cached) " >&6
5919else
5920 if test -z "$GREP"; then
5921 ac_path_GREP_found=false
5922 # Loop through the user's path and test for each of PROGNAME-LIST
5923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5925do
5926 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=.
5928 for ac_prog in grep ggrep; do
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005931 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005932# Check for GNU ac_path_GREP and select it if it is found.
5933 # Check for GNU $ac_path_GREP
5934case `"$ac_path_GREP" --version 2>&1` in
5935*GNU*)
5936 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5937*)
5938 ac_count=0
5939 $as_echo_n 0123456789 >"conftest.in"
5940 while :
5941 do
5942 cat "conftest.in" "conftest.in" >"conftest.tmp"
5943 mv "conftest.tmp" "conftest.in"
5944 cp "conftest.in" "conftest.nl"
5945 $as_echo 'GREP' >> "conftest.nl"
5946 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5948 as_fn_arith $ac_count + 1 && ac_count=$as_val
5949 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5950 # Best one so far, save it but keep looking for a better one
5951 ac_cv_path_GREP="$ac_path_GREP"
5952 ac_path_GREP_max=$ac_count
5953 fi
5954 # 10*(2^10) chars as input seems more than enough
5955 test $ac_count -gt 10 && break
5956 done
5957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5958esac
5959
5960 $ac_path_GREP_found && break 3
5961 done
5962 done
5963 done
5964IFS=$as_save_IFS
5965 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005966 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005967 fi
5968else
5969 ac_cv_path_GREP=$GREP
5970fi
5971
5972fi
5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5974$as_echo "$ac_cv_path_GREP" >&6; }
5975 GREP="$ac_cv_path_GREP"
5976
5977
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5979$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005980if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005981 $as_echo_n "(cached) " >&6
5982else
5983 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5984 then ac_cv_path_EGREP="$GREP -E"
5985 else
5986 if test -z "$EGREP"; then
5987 ac_path_EGREP_found=false
5988 # Loop through the user's path and test for each of PROGNAME-LIST
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5991do
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_prog in egrep; do
5995 for ac_exec_ext in '' $ac_executable_extensions; do
5996 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005997 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005998# Check for GNU ac_path_EGREP and select it if it is found.
5999 # Check for GNU $ac_path_EGREP
6000case `"$ac_path_EGREP" --version 2>&1` in
6001*GNU*)
6002 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6003*)
6004 ac_count=0
6005 $as_echo_n 0123456789 >"conftest.in"
6006 while :
6007 do
6008 cat "conftest.in" "conftest.in" >"conftest.tmp"
6009 mv "conftest.tmp" "conftest.in"
6010 cp "conftest.in" "conftest.nl"
6011 $as_echo 'EGREP' >> "conftest.nl"
6012 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6014 as_fn_arith $ac_count + 1 && ac_count=$as_val
6015 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6016 # Best one so far, save it but keep looking for a better one
6017 ac_cv_path_EGREP="$ac_path_EGREP"
6018 ac_path_EGREP_max=$ac_count
6019 fi
6020 # 10*(2^10) chars as input seems more than enough
6021 test $ac_count -gt 10 && break
6022 done
6023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6024esac
6025
6026 $ac_path_EGREP_found && break 3
6027 done
6028 done
6029 done
6030IFS=$as_save_IFS
6031 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00006032 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00006033 fi
6034else
6035 ac_cv_path_EGREP=$EGREP
6036fi
6037
6038 fi
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6041$as_echo "$ac_cv_path_EGREP" >&6; }
6042 EGREP="$ac_cv_path_EGREP"
6043
6044
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6046$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006047if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006048 $as_echo_n "(cached) " >&6
6049else
6050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6051/* end confdefs.h. */
6052#include <stdlib.h>
6053#include <stdarg.h>
6054#include <string.h>
6055#include <float.h>
6056
6057int
6058main ()
6059{
6060
6061 ;
6062 return 0;
6063}
6064_ACEOF
6065if ac_fn_c_try_compile "$LINENO"; then :
6066 ac_cv_header_stdc=yes
6067else
6068 ac_cv_header_stdc=no
6069fi
6070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071
6072if test $ac_cv_header_stdc = yes; then
6073 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6075/* end confdefs.h. */
6076#include <string.h>
6077
6078_ACEOF
6079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6080 $EGREP "memchr" >/dev/null 2>&1; then :
6081
6082else
6083 ac_cv_header_stdc=no
6084fi
6085rm -f conftest*
6086
6087fi
6088
6089if test $ac_cv_header_stdc = yes; then
6090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092/* end confdefs.h. */
6093#include <stdlib.h>
6094
6095_ACEOF
6096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6097 $EGREP "free" >/dev/null 2>&1; then :
6098
6099else
6100 ac_cv_header_stdc=no
6101fi
6102rm -f conftest*
6103
6104fi
6105
6106if test $ac_cv_header_stdc = yes; then
6107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6108 if test "$cross_compiling" = yes; then :
6109 :
6110else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113#include <ctype.h>
6114#include <stdlib.h>
6115#if ((' ' & 0x0FF) == 0x020)
6116# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6117# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6118#else
6119# define ISLOWER(c) \
6120 (('a' <= (c) && (c) <= 'i') \
6121 || ('j' <= (c) && (c) <= 'r') \
6122 || ('s' <= (c) && (c) <= 'z'))
6123# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6124#endif
6125
6126#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6127int
6128main ()
6129{
6130 int i;
6131 for (i = 0; i < 256; i++)
6132 if (XOR (islower (i), ISLOWER (i))
6133 || toupper (i) != TOUPPER (i))
6134 return 2;
6135 return 0;
6136}
6137_ACEOF
6138if ac_fn_c_try_run "$LINENO"; then :
6139
6140else
6141 ac_cv_header_stdc=no
6142fi
6143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6144 conftest.$ac_objext conftest.beam conftest.$ac_ext
6145fi
6146
6147fi
6148fi
6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6150$as_echo "$ac_cv_header_stdc" >&6; }
6151if test $ac_cv_header_stdc = yes; then
6152
6153$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6154
6155fi
6156
6157# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6158for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6159 inttypes.h stdint.h unistd.h
6160do :
6161 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6162ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6163"
cristy98dddb52010-11-04 00:30:15 +00006164if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006165 cat >>confdefs.h <<_ACEOF
6166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6167_ACEOF
6168
6169fi
6170
6171done
6172
6173
6174
6175 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 +00006176if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006177 MINIX=yes
6178else
6179 MINIX=
6180fi
6181
6182
6183 if test "$MINIX" = yes; then
6184
6185$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6186
6187
6188$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6189
6190
6191$as_echo "#define _MINIX 1" >>confdefs.h
6192
6193 fi
6194
6195
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6197$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006198if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006199 $as_echo_n "(cached) " >&6
6200else
6201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6202/* end confdefs.h. */
6203
cristy14fefe52012-05-21 00:59:18 +00006204# define __EXTENSIONS__ 1
6205 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006206int
6207main ()
6208{
6209
6210 ;
6211 return 0;
6212}
6213_ACEOF
6214if ac_fn_c_try_compile "$LINENO"; then :
6215 ac_cv_safe_to_define___extensions__=yes
6216else
6217 ac_cv_safe_to_define___extensions__=no
6218fi
6219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6222$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6223 test $ac_cv_safe_to_define___extensions__ = yes &&
6224 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6225
6226 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6227
6228 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6229
6230 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6231
6232 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6233
6234
6235
cristy9af1cbf2014-12-28 22:03:09 +00006236# ==============================================================================
6237# Find required base packages
6238# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006239if test -n "$ac_tool_prefix"; then
6240 for ac_prog in ar lib "link -lib"
6241 do
6242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245$as_echo_n "checking for $ac_word... " >&6; }
6246if ${ac_cv_prog_AR+:} false; then :
6247 $as_echo_n "(cached) " >&6
6248else
6249 if test -n "$AR"; then
6250 ac_cv_prog_AR="$AR" # Let the user override the test.
6251else
6252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253for as_dir in $PATH
6254do
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6262 fi
6263done
6264 done
6265IFS=$as_save_IFS
6266
6267fi
6268fi
6269AR=$ac_cv_prog_AR
6270if test -n "$AR"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6272$as_echo "$AR" >&6; }
6273else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275$as_echo "no" >&6; }
6276fi
6277
6278
6279 test -n "$AR" && break
6280 done
6281fi
6282if test -z "$AR"; then
6283 ac_ct_AR=$AR
6284 for ac_prog in ar lib "link -lib"
6285do
6286 # Extract the first word of "$ac_prog", so it can be a program name with args.
6287set dummy $ac_prog; ac_word=$2
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6289$as_echo_n "checking for $ac_word... " >&6; }
6290if ${ac_cv_prog_ac_ct_AR+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292else
6293 if test -n "$ac_ct_AR"; then
6294 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6295else
6296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297for as_dir in $PATH
6298do
6299 IFS=$as_save_IFS
6300 test -z "$as_dir" && as_dir=.
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_AR="$ac_prog"
6304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307done
6308 done
6309IFS=$as_save_IFS
6310
6311fi
6312fi
6313ac_ct_AR=$ac_cv_prog_ac_ct_AR
6314if test -n "$ac_ct_AR"; then
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6316$as_echo "$ac_ct_AR" >&6; }
6317else
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6319$as_echo "no" >&6; }
6320fi
6321
6322
6323 test -n "$ac_ct_AR" && break
6324done
6325
6326 if test "x$ac_ct_AR" = x; then
6327 AR="false"
6328 else
6329 case $cross_compiling:$ac_tool_warned in
6330yes:)
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6333ac_tool_warned=yes ;;
6334esac
6335 AR=$ac_ct_AR
6336 fi
6337fi
6338
6339: ${AR=ar}
6340
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6342$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6343if ${am_cv_ar_interface+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345else
6346 ac_ext=c
6347ac_cpp='$CPP $CPPFLAGS'
6348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6350ac_compiler_gnu=$ac_cv_c_compiler_gnu
6351
6352 am_cv_ar_interface=ar
6353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6354/* end confdefs.h. */
6355int some_variable = 0;
6356_ACEOF
6357if ac_fn_c_try_compile "$LINENO"; then :
6358 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6360 (eval $am_ar_try) 2>&5
6361 ac_status=$?
6362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6363 test $ac_status = 0; }
6364 if test "$ac_status" -eq 0; then
6365 am_cv_ar_interface=ar
6366 else
6367 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6369 (eval $am_ar_try) 2>&5
6370 ac_status=$?
6371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6372 test $ac_status = 0; }
6373 if test "$ac_status" -eq 0; then
6374 am_cv_ar_interface=lib
6375 else
6376 am_cv_ar_interface=unknown
6377 fi
6378 fi
6379 rm -f conftest.lib libconftest.a
6380
6381fi
6382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6383 ac_ext=c
6384ac_cpp='$CPP $CPPFLAGS'
6385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6387ac_compiler_gnu=$ac_cv_c_compiler_gnu
6388
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6391$as_echo "$am_cv_ar_interface" >&6; }
6392
6393case $am_cv_ar_interface in
6394ar)
6395 ;;
6396lib)
6397 # Microsoft lib, so override with the ar-lib wrapper script.
6398 # FIXME: It is wrong to rewrite AR.
6399 # But if we don't then we get into trouble of one sort or another.
6400 # A longer-term fix would be to have automake use am__AR in this case,
6401 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6402 # similar.
6403 AR="$am_aux_dir/ar-lib $AR"
6404 ;;
6405unknown)
6406 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6407 ;;
6408esac
cristy9af1cbf2014-12-28 22:03:09 +00006409
cristya0b81c32010-01-22 02:54:33 +00006410ac_ext=c
6411ac_cpp='$CPP $CPPFLAGS'
6412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6414ac_compiler_gnu=$ac_cv_c_compiler_gnu
6415if test -n "$ac_tool_prefix"; then
6416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6417set dummy ${ac_tool_prefix}gcc; ac_word=$2
6418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006420if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006421 $as_echo_n "(cached) " >&6
6422else
6423 if test -n "$CC"; then
6424 ac_cv_prog_CC="$CC" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6435 break 2
6436 fi
6437done
6438 done
6439IFS=$as_save_IFS
6440
6441fi
6442fi
6443CC=$ac_cv_prog_CC
6444if test -n "$CC"; then
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6446$as_echo "$CC" >&6; }
6447else
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6449$as_echo "no" >&6; }
6450fi
6451
6452
6453fi
6454if test -z "$ac_cv_prog_CC"; then
6455 ac_ct_CC=$CC
6456 # Extract the first word of "gcc", so it can be a program name with args.
6457set dummy gcc; ac_word=$2
6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6459$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006460if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006461 $as_echo_n "(cached) " >&6
6462else
6463 if test -n "$ac_ct_CC"; then
6464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6465else
6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6467for as_dir in $PATH
6468do
6469 IFS=$as_save_IFS
6470 test -z "$as_dir" && as_dir=.
6471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006473 ac_cv_prog_ac_ct_CC="gcc"
6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477done
6478 done
6479IFS=$as_save_IFS
6480
6481fi
6482fi
6483ac_ct_CC=$ac_cv_prog_ac_ct_CC
6484if test -n "$ac_ct_CC"; then
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6486$as_echo "$ac_ct_CC" >&6; }
6487else
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6489$as_echo "no" >&6; }
6490fi
6491
6492 if test "x$ac_ct_CC" = x; then
6493 CC=""
6494 else
6495 case $cross_compiling:$ac_tool_warned in
6496yes:)
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6499ac_tool_warned=yes ;;
6500esac
6501 CC=$ac_ct_CC
6502 fi
6503else
6504 CC="$ac_cv_prog_CC"
6505fi
6506
6507if test -z "$CC"; then
6508 if test -n "$ac_tool_prefix"; then
6509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6510set dummy ${ac_tool_prefix}cc; ac_word=$2
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6512$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006513if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006514 $as_echo_n "(cached) " >&6
6515else
6516 if test -n "$CC"; then
6517 ac_cv_prog_CC="$CC" # Let the user override the test.
6518else
6519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6520for as_dir in $PATH
6521do
6522 IFS=$as_save_IFS
6523 test -z "$as_dir" && as_dir=.
6524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006526 ac_cv_prog_CC="${ac_tool_prefix}cc"
6527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 break 2
6529 fi
6530done
6531 done
6532IFS=$as_save_IFS
6533
6534fi
6535fi
6536CC=$ac_cv_prog_CC
6537if test -n "$CC"; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6539$as_echo "$CC" >&6; }
6540else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6542$as_echo "no" >&6; }
6543fi
6544
6545
6546 fi
6547fi
6548if test -z "$CC"; then
6549 # Extract the first word of "cc", so it can be a program name with args.
6550set dummy cc; ac_word=$2
6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006553if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006554 $as_echo_n "(cached) " >&6
6555else
6556 if test -n "$CC"; then
6557 ac_cv_prog_CC="$CC" # Let the user override the test.
6558else
6559 ac_prog_rejected=no
6560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6561for as_dir in $PATH
6562do
6563 IFS=$as_save_IFS
6564 test -z "$as_dir" && as_dir=.
6565 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6568 ac_prog_rejected=yes
6569 continue
6570 fi
6571 ac_cv_prog_CC="cc"
6572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6573 break 2
6574 fi
6575done
6576 done
6577IFS=$as_save_IFS
6578
6579if test $ac_prog_rejected = yes; then
6580 # We found a bogon in the path, so make sure we never use it.
6581 set dummy $ac_cv_prog_CC
6582 shift
6583 if test $# != 0; then
6584 # We chose a different compiler from the bogus one.
6585 # However, it has the same basename, so the bogon will be chosen
6586 # first if we set CC to just the basename; use the full file name.
6587 shift
6588 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6589 fi
6590fi
6591fi
6592fi
6593CC=$ac_cv_prog_CC
6594if test -n "$CC"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6596$as_echo "$CC" >&6; }
6597else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599$as_echo "no" >&6; }
6600fi
6601
6602
6603fi
6604if test -z "$CC"; then
6605 if test -n "$ac_tool_prefix"; then
6606 for ac_prog in cl.exe
6607 do
6608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6611$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006612if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006613 $as_echo_n "(cached) " >&6
6614else
6615 if test -n "$CC"; then
6616 ac_cv_prog_CC="$CC" # Let the user override the test.
6617else
6618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
6623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6627 break 2
6628 fi
6629done
6630 done
6631IFS=$as_save_IFS
6632
6633fi
6634fi
6635CC=$ac_cv_prog_CC
6636if test -n "$CC"; then
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6638$as_echo "$CC" >&6; }
6639else
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6641$as_echo "no" >&6; }
6642fi
6643
6644
6645 test -n "$CC" && break
6646 done
6647fi
6648if test -z "$CC"; then
6649 ac_ct_CC=$CC
6650 for ac_prog in cl.exe
6651do
6652 # Extract the first word of "$ac_prog", so it can be a program name with args.
6653set dummy $ac_prog; ac_word=$2
6654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6655$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006656if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006657 $as_echo_n "(cached) " >&6
6658else
6659 if test -n "$ac_ct_CC"; then
6660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6661else
6662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663for as_dir in $PATH
6664do
6665 IFS=$as_save_IFS
6666 test -z "$as_dir" && as_dir=.
6667 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006669 ac_cv_prog_ac_ct_CC="$ac_prog"
6670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6671 break 2
6672 fi
6673done
6674 done
6675IFS=$as_save_IFS
6676
6677fi
6678fi
6679ac_ct_CC=$ac_cv_prog_ac_ct_CC
6680if test -n "$ac_ct_CC"; then
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6682$as_echo "$ac_ct_CC" >&6; }
6683else
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685$as_echo "no" >&6; }
6686fi
6687
6688
6689 test -n "$ac_ct_CC" && break
6690done
6691
6692 if test "x$ac_ct_CC" = x; then
6693 CC=""
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696yes:)
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699ac_tool_warned=yes ;;
6700esac
6701 CC=$ac_ct_CC
6702 fi
6703fi
6704
6705fi
6706
6707
6708test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006710as_fn_error $? "no acceptable C compiler found in \$PATH
6711See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006712
6713# Provide some information about the compiler.
6714$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6715set X $ac_compile
6716ac_compiler=$2
6717for ac_option in --version -v -V -qversion; do
6718 { { ac_try="$ac_compiler $ac_option >&5"
6719case "(($ac_try" in
6720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6721 *) ac_try_echo=$ac_try;;
6722esac
6723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6724$as_echo "$ac_try_echo"; } >&5
6725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6726 ac_status=$?
6727 if test -s conftest.err; then
6728 sed '10a\
6729... rest of stderr output deleted ...
6730 10q' conftest.err >conftest.er1
6731 cat conftest.er1 >&5
6732 fi
6733 rm -f conftest.er1 conftest.err
6734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6735 test $ac_status = 0; }
6736done
6737
6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6739$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006740if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006741 $as_echo_n "(cached) " >&6
6742else
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744/* end confdefs.h. */
6745
6746int
6747main ()
6748{
6749#ifndef __GNUC__
6750 choke me
6751#endif
6752
6753 ;
6754 return 0;
6755}
6756_ACEOF
6757if ac_fn_c_try_compile "$LINENO"; then :
6758 ac_compiler_gnu=yes
6759else
6760 ac_compiler_gnu=no
6761fi
6762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763ac_cv_c_compiler_gnu=$ac_compiler_gnu
6764
6765fi
6766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6767$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6768if test $ac_compiler_gnu = yes; then
6769 GCC=yes
6770else
6771 GCC=
6772fi
6773ac_test_CFLAGS=${CFLAGS+set}
6774ac_save_CFLAGS=$CFLAGS
6775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6776$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006777if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006778 $as_echo_n "(cached) " >&6
6779else
6780 ac_save_c_werror_flag=$ac_c_werror_flag
6781 ac_c_werror_flag=yes
6782 ac_cv_prog_cc_g=no
6783 CFLAGS="-g"
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h. */
6786
6787int
6788main ()
6789{
6790
6791 ;
6792 return 0;
6793}
6794_ACEOF
6795if ac_fn_c_try_compile "$LINENO"; then :
6796 ac_cv_prog_cc_g=yes
6797else
6798 CFLAGS=""
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6800/* end confdefs.h. */
6801
6802int
6803main ()
6804{
6805
6806 ;
6807 return 0;
6808}
6809_ACEOF
6810if ac_fn_c_try_compile "$LINENO"; then :
6811
6812else
6813 ac_c_werror_flag=$ac_save_c_werror_flag
6814 CFLAGS="-g"
6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6816/* end confdefs.h. */
6817
6818int
6819main ()
6820{
6821
6822 ;
6823 return 0;
6824}
6825_ACEOF
6826if ac_fn_c_try_compile "$LINENO"; then :
6827 ac_cv_prog_cc_g=yes
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830fi
6831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832fi
6833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6834 ac_c_werror_flag=$ac_save_c_werror_flag
6835fi
6836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6837$as_echo "$ac_cv_prog_cc_g" >&6; }
6838if test "$ac_test_CFLAGS" = set; then
6839 CFLAGS=$ac_save_CFLAGS
6840elif test $ac_cv_prog_cc_g = yes; then
6841 if test "$GCC" = yes; then
6842 CFLAGS="-g -O2"
6843 else
6844 CFLAGS="-g"
6845 fi
6846else
6847 if test "$GCC" = yes; then
6848 CFLAGS="-O2"
6849 else
6850 CFLAGS=
6851 fi
6852fi
6853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6854$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006855if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006856 $as_echo_n "(cached) " >&6
6857else
6858 ac_cv_prog_cc_c89=no
6859ac_save_CC=$CC
6860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861/* end confdefs.h. */
6862#include <stdarg.h>
6863#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006864struct stat;
cristya0b81c32010-01-22 02:54:33 +00006865/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6866struct buf { int x; };
6867FILE * (*rcsopen) (struct buf *, struct stat *, int);
6868static char *e (p, i)
6869 char **p;
6870 int i;
6871{
6872 return p[i];
6873}
6874static char *f (char * (*g) (char **, int), char **p, ...)
6875{
6876 char *s;
6877 va_list v;
6878 va_start (v,p);
6879 s = g (p, va_arg (v,int));
6880 va_end (v);
6881 return s;
6882}
6883
6884/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6885 function prototypes and stuff, but not '\xHH' hex character constants.
6886 These don't provoke an error unfortunately, instead are silently treated
6887 as 'x'. The following induces an error, until -std is added to get
6888 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6889 array size at least. It's necessary to write '\x00'==0 to get something
6890 that's true only with -std. */
6891int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6892
6893/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6894 inside strings and character constants. */
6895#define FOO(x) 'x'
6896int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6897
6898int test (int i, double x);
6899struct s1 {int (*f) (int a);};
6900struct s2 {int (*f) (double a);};
6901int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6902int argc;
6903char **argv;
6904int
6905main ()
6906{
6907return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6908 ;
6909 return 0;
6910}
6911_ACEOF
6912for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6913 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6914do
6915 CC="$ac_save_CC $ac_arg"
6916 if ac_fn_c_try_compile "$LINENO"; then :
6917 ac_cv_prog_cc_c89=$ac_arg
6918fi
6919rm -f core conftest.err conftest.$ac_objext
6920 test "x$ac_cv_prog_cc_c89" != "xno" && break
6921done
6922rm -f conftest.$ac_ext
6923CC=$ac_save_CC
6924
6925fi
6926# AC_CACHE_VAL
6927case "x$ac_cv_prog_cc_c89" in
6928 x)
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6930$as_echo "none needed" >&6; } ;;
6931 xno)
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6933$as_echo "unsupported" >&6; } ;;
6934 *)
6935 CC="$CC $ac_cv_prog_cc_c89"
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6937$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6938esac
6939if test "x$ac_cv_prog_cc_c89" != xno; then :
6940
6941fi
6942
6943ac_ext=c
6944ac_cpp='$CPP $CPPFLAGS'
6945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6947ac_compiler_gnu=$ac_cv_c_compiler_gnu
6948
cristya5bda012013-11-03 18:05:38 +00006949ac_ext=c
6950ac_cpp='$CPP $CPPFLAGS'
6951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6953ac_compiler_gnu=$ac_cv_c_compiler_gnu
6954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6955$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6956if ${am_cv_prog_cc_c_o+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6960/* end confdefs.h. */
6961
6962int
6963main ()
6964{
6965
6966 ;
6967 return 0;
6968}
6969_ACEOF
6970 # Make sure it works both with $CC and with simple cc.
6971 # Following AC_PROG_CC_C_O, we do the test twice because some
6972 # compilers refuse to overwrite an existing .o file with -o,
6973 # though they will create one.
6974 am_cv_prog_cc_c_o=yes
6975 for am_i in 1 2; do
6976 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6977 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6978 ac_status=$?
6979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6980 (exit $ac_status); } \
6981 && test -f conftest2.$ac_objext; then
6982 : OK
6983 else
6984 am_cv_prog_cc_c_o=no
6985 break
6986 fi
6987 done
6988 rm -f core conftest*
6989 unset am_i
6990fi
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6992$as_echo "$am_cv_prog_cc_c_o" >&6; }
6993if test "$am_cv_prog_cc_c_o" != yes; then
6994 # Losing compiler, so override with the script.
6995 # FIXME: It is wrong to rewrite CC.
6996 # But if we don't then we get into trouble of one sort or another.
6997 # A longer-term fix would be to have automake use am__CC in this case,
6998 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6999 CC="$am_aux_dir/compile $CC"
7000fi
7001ac_ext=c
7002ac_cpp='$CPP $CPPFLAGS'
7003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7005ac_compiler_gnu=$ac_cv_c_compiler_gnu
7006
7007
cristy73bd4a52010-10-05 11:24:23 +00007008depcc="$CC" am_compiler_list=
7009
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7011$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007012if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007013 $as_echo_n "(cached) " >&6
7014else
7015 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7016 # We make a subdir and do the tests there. Otherwise we can end up
7017 # making bogus files that we don't know about and never remove. For
7018 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007019 # making a dummy file named 'D' -- because '-MD' means "put the output
7020 # in D".
cristy7247bba2012-02-05 16:37:27 +00007021 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007022 mkdir conftest.dir
7023 # Copy depcomp to subdir because otherwise we won't find it if we're
7024 # using a relative directory.
7025 cp "$am_depcomp" conftest.dir
7026 cd conftest.dir
7027 # We will build objects and dependencies in a subdirectory because
7028 # it helps to detect inapplicable dependency modes. For instance
7029 # both Tru64's cc and ICC support -MD to output dependencies as a
7030 # side effect of compilation, but ICC will put the dependencies in
7031 # the current directory while Tru64 will put them in the object
7032 # directory.
7033 mkdir sub
7034
7035 am_cv_CC_dependencies_compiler_type=none
7036 if test "$am_compiler_list" = ""; then
7037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7038 fi
7039 am__universal=false
7040 case " $depcc " in #(
7041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7042 esac
7043
7044 for depmode in $am_compiler_list; do
7045 # Setup a source with many dependencies, because some compilers
7046 # like to wrap large dependency lists on column 80 (with \), and
7047 # we should not choose a depcomp mode which is confused by this.
7048 #
7049 # We need to recreate these files for each test, as the compiler may
7050 # overwrite some of them when testing with obscure command lines.
7051 # This happens at least with the AIX C compiler.
7052 : > sub/conftest.c
7053 for i in 1 2 3 4 5 6; do
7054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007055 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7056 # Solaris 10 /bin/sh.
7057 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007058 done
7059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7060
cristyc0890a62012-07-19 00:18:20 +00007061 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007062 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007063 # handle '-M -o', and we need to detect this. Also, some Intel
7064 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007065 am__obj=sub/conftest.${OBJEXT-o}
7066 am__minus_obj="-o $am__obj"
7067 case $depmode in
7068 gcc)
7069 # This depmode causes a compiler race in universal mode.
7070 test "$am__universal" = false || continue
7071 ;;
7072 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007073 # After this tag, mechanisms are not by side-effect, so they'll
7074 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007075 if test "x$enable_dependency_tracking" = xyes; then
7076 continue
7077 else
7078 break
7079 fi
7080 ;;
cristy7247bba2012-02-05 16:37:27 +00007081 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007082 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007083 # not run yet. These depmodes are late enough in the game, and
7084 # so weak that their functioning should not be impacted.
7085 am__obj=conftest.${OBJEXT-o}
7086 am__minus_obj=
7087 ;;
7088 none) break ;;
7089 esac
7090 if depmode=$depmode \
7091 source=sub/conftest.c object=$am__obj \
7092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7094 >/dev/null 2>conftest.err &&
7095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7099 # icc doesn't choke on unknown options, it will just issue warnings
7100 # or remarks (even with -Werror). So we grep stderr for any message
7101 # that says an option was ignored or not supported.
7102 # When given -MP, icc 7.0 and 7.1 complain thusly:
7103 # icc: Command line warning: ignoring option '-M'; no argument required
7104 # The diagnosis changed in icc 8.0:
7105 # icc: Command line remark: option '-MP' not supported
7106 if (grep 'ignoring option' conftest.err ||
7107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7108 am_cv_CC_dependencies_compiler_type=$depmode
7109 break
7110 fi
7111 fi
7112 done
7113
7114 cd ..
7115 rm -rf conftest.dir
7116else
7117 am_cv_CC_dependencies_compiler_type=none
7118fi
7119
7120fi
7121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7122$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7123CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7124
7125 if
7126 test "x$enable_dependency_tracking" != xno \
7127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7128 am__fastdepCC_TRUE=
7129 am__fastdepCC_FALSE='#'
7130else
7131 am__fastdepCC_TRUE='#'
7132 am__fastdepCC_FALSE=
7133fi
7134
7135
cristy95646052009-11-28 23:05:30 +00007136ac_ext=cpp
7137ac_cpp='$CXXCPP $CPPFLAGS'
7138ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7139ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7140ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7141if test -z "$CXX"; then
7142 if test -n "$CCC"; then
7143 CXX=$CCC
7144 else
7145 if test -n "$ac_tool_prefix"; then
7146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7147 do
7148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7149set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007152if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007153 $as_echo_n "(cached) " >&6
7154else
7155 if test -n "$CXX"; then
7156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7157else
7158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159for as_dir in $PATH
7160do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169done
7170 done
7171IFS=$as_save_IFS
7172
7173fi
7174fi
7175CXX=$ac_cv_prog_CXX
7176if test -n "$CXX"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7178$as_echo "$CXX" >&6; }
7179else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181$as_echo "no" >&6; }
7182fi
7183
7184
7185 test -n "$CXX" && break
7186 done
7187fi
7188if test -z "$CXX"; then
7189 ac_ct_CXX=$CXX
7190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7191do
7192 # Extract the first word of "$ac_prog", so it can be a program name with args.
7193set dummy $ac_prog; ac_word=$2
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007196if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007197 $as_echo_n "(cached) " >&6
7198else
7199 if test -n "$ac_ct_CXX"; then
7200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7201else
7202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7203for as_dir in $PATH
7204do
7205 IFS=$as_save_IFS
7206 test -z "$as_dir" && as_dir=.
7207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007209 ac_cv_prog_ac_ct_CXX="$ac_prog"
7210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 break 2
7212 fi
7213done
7214 done
7215IFS=$as_save_IFS
7216
7217fi
7218fi
7219ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7220if test -n "$ac_ct_CXX"; then
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7222$as_echo "$ac_ct_CXX" >&6; }
7223else
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7225$as_echo "no" >&6; }
7226fi
7227
7228
7229 test -n "$ac_ct_CXX" && break
7230done
7231
7232 if test "x$ac_ct_CXX" = x; then
7233 CXX="g++"
7234 else
7235 case $cross_compiling:$ac_tool_warned in
7236yes:)
7237{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7238$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7239ac_tool_warned=yes ;;
7240esac
7241 CXX=$ac_ct_CXX
7242 fi
7243fi
7244
7245 fi
7246fi
7247# Provide some information about the compiler.
7248$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7249set X $ac_compile
7250ac_compiler=$2
7251for ac_option in --version -v -V -qversion; do
7252 { { ac_try="$ac_compiler $ac_option >&5"
7253case "(($ac_try" in
7254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255 *) ac_try_echo=$ac_try;;
7256esac
7257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7258$as_echo "$ac_try_echo"; } >&5
7259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7260 ac_status=$?
7261 if test -s conftest.err; then
7262 sed '10a\
7263... rest of stderr output deleted ...
7264 10q' conftest.err >conftest.er1
7265 cat conftest.er1 >&5
7266 fi
7267 rm -f conftest.er1 conftest.err
7268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269 test $ac_status = 0; }
7270done
7271
7272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7273$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007274if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007275 $as_echo_n "(cached) " >&6
7276else
7277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7278/* end confdefs.h. */
7279
7280int
7281main ()
7282{
7283#ifndef __GNUC__
7284 choke me
7285#endif
7286
7287 ;
7288 return 0;
7289}
7290_ACEOF
7291if ac_fn_cxx_try_compile "$LINENO"; then :
7292 ac_compiler_gnu=yes
7293else
7294 ac_compiler_gnu=no
7295fi
7296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7297ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7298
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7301$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7302if test $ac_compiler_gnu = yes; then
7303 GXX=yes
7304else
7305 GXX=
7306fi
7307ac_test_CXXFLAGS=${CXXFLAGS+set}
7308ac_save_CXXFLAGS=$CXXFLAGS
7309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7310$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007311if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007312 $as_echo_n "(cached) " >&6
7313else
7314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7315 ac_cxx_werror_flag=yes
7316 ac_cv_prog_cxx_g=no
7317 CXXFLAGS="-g"
7318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319/* end confdefs.h. */
7320
7321int
7322main ()
7323{
7324
7325 ;
7326 return 0;
7327}
7328_ACEOF
7329if ac_fn_cxx_try_compile "$LINENO"; then :
7330 ac_cv_prog_cxx_g=yes
7331else
7332 CXXFLAGS=""
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7334/* end confdefs.h. */
7335
7336int
7337main ()
7338{
7339
7340 ;
7341 return 0;
7342}
7343_ACEOF
7344if ac_fn_cxx_try_compile "$LINENO"; then :
7345
7346else
7347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7348 CXXFLAGS="-g"
7349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7350/* end confdefs.h. */
7351
7352int
7353main ()
7354{
7355
7356 ;
7357 return 0;
7358}
7359_ACEOF
7360if ac_fn_cxx_try_compile "$LINENO"; then :
7361 ac_cv_prog_cxx_g=yes
7362fi
7363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364fi
7365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7366fi
7367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7369fi
7370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7371$as_echo "$ac_cv_prog_cxx_g" >&6; }
7372if test "$ac_test_CXXFLAGS" = set; then
7373 CXXFLAGS=$ac_save_CXXFLAGS
7374elif test $ac_cv_prog_cxx_g = yes; then
7375 if test "$GXX" = yes; then
7376 CXXFLAGS="-g -O2"
7377 else
7378 CXXFLAGS="-g"
7379 fi
7380else
7381 if test "$GXX" = yes; then
7382 CXXFLAGS="-O2"
7383 else
7384 CXXFLAGS=
7385 fi
7386fi
7387ac_ext=c
7388ac_cpp='$CPP $CPPFLAGS'
7389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7391ac_compiler_gnu=$ac_cv_c_compiler_gnu
7392
cristy73bd4a52010-10-05 11:24:23 +00007393depcc="$CXX" am_compiler_list=
7394
7395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7396$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007397if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007398 $as_echo_n "(cached) " >&6
7399else
7400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7401 # We make a subdir and do the tests there. Otherwise we can end up
7402 # making bogus files that we don't know about and never remove. For
7403 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007404 # making a dummy file named 'D' -- because '-MD' means "put the output
7405 # in D".
cristy7247bba2012-02-05 16:37:27 +00007406 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007407 mkdir conftest.dir
7408 # Copy depcomp to subdir because otherwise we won't find it if we're
7409 # using a relative directory.
7410 cp "$am_depcomp" conftest.dir
7411 cd conftest.dir
7412 # We will build objects and dependencies in a subdirectory because
7413 # it helps to detect inapplicable dependency modes. For instance
7414 # both Tru64's cc and ICC support -MD to output dependencies as a
7415 # side effect of compilation, but ICC will put the dependencies in
7416 # the current directory while Tru64 will put them in the object
7417 # directory.
7418 mkdir sub
7419
7420 am_cv_CXX_dependencies_compiler_type=none
7421 if test "$am_compiler_list" = ""; then
7422 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7423 fi
7424 am__universal=false
7425 case " $depcc " in #(
7426 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7427 esac
7428
7429 for depmode in $am_compiler_list; do
7430 # Setup a source with many dependencies, because some compilers
7431 # like to wrap large dependency lists on column 80 (with \), and
7432 # we should not choose a depcomp mode which is confused by this.
7433 #
7434 # We need to recreate these files for each test, as the compiler may
7435 # overwrite some of them when testing with obscure command lines.
7436 # This happens at least with the AIX C compiler.
7437 : > sub/conftest.c
7438 for i in 1 2 3 4 5 6; do
7439 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007440 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7441 # Solaris 10 /bin/sh.
7442 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007443 done
7444 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7445
cristyc0890a62012-07-19 00:18:20 +00007446 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007447 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007448 # handle '-M -o', and we need to detect this. Also, some Intel
7449 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007450 am__obj=sub/conftest.${OBJEXT-o}
7451 am__minus_obj="-o $am__obj"
7452 case $depmode in
7453 gcc)
7454 # This depmode causes a compiler race in universal mode.
7455 test "$am__universal" = false || continue
7456 ;;
7457 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007458 # After this tag, mechanisms are not by side-effect, so they'll
7459 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007460 if test "x$enable_dependency_tracking" = xyes; then
7461 continue
7462 else
7463 break
7464 fi
7465 ;;
cristy7247bba2012-02-05 16:37:27 +00007466 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007467 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007468 # not run yet. These depmodes are late enough in the game, and
7469 # so weak that their functioning should not be impacted.
7470 am__obj=conftest.${OBJEXT-o}
7471 am__minus_obj=
7472 ;;
7473 none) break ;;
7474 esac
7475 if depmode=$depmode \
7476 source=sub/conftest.c object=$am__obj \
7477 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7478 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7479 >/dev/null 2>conftest.err &&
7480 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7481 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7482 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7483 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7484 # icc doesn't choke on unknown options, it will just issue warnings
7485 # or remarks (even with -Werror). So we grep stderr for any message
7486 # that says an option was ignored or not supported.
7487 # When given -MP, icc 7.0 and 7.1 complain thusly:
7488 # icc: Command line warning: ignoring option '-M'; no argument required
7489 # The diagnosis changed in icc 8.0:
7490 # icc: Command line remark: option '-MP' not supported
7491 if (grep 'ignoring option' conftest.err ||
7492 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7493 am_cv_CXX_dependencies_compiler_type=$depmode
7494 break
7495 fi
7496 fi
7497 done
7498
7499 cd ..
7500 rm -rf conftest.dir
7501else
7502 am_cv_CXX_dependencies_compiler_type=none
7503fi
7504
7505fi
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7507$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7508CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7509
7510 if
7511 test "x$enable_dependency_tracking" != xno \
7512 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7513 am__fastdepCXX_TRUE=
7514 am__fastdepCXX_FALSE='#'
7515else
7516 am__fastdepCXX_TRUE='#'
7517 am__fastdepCXX_FALSE=
7518fi
7519
7520
cristy8b350f62009-11-15 23:12:43 +00007521 case $ac_cv_prog_cc_stdc in #(
7522 no) :
7523 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7524 *) :
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007526$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007527if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007528 $as_echo_n "(cached) " >&6
7529else
7530 ac_cv_prog_cc_c99=no
7531ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007532cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007533/* end confdefs.h. */
7534#include <stdarg.h>
7535#include <stdbool.h>
7536#include <stdlib.h>
7537#include <wchar.h>
7538#include <stdio.h>
7539
7540// Check varargs macros. These examples are taken from C99 6.10.3.5.
7541#define debug(...) fprintf (stderr, __VA_ARGS__)
7542#define showlist(...) puts (#__VA_ARGS__)
7543#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7544static void
7545test_varargs_macros (void)
7546{
7547 int x = 1234;
7548 int y = 5678;
7549 debug ("Flag");
7550 debug ("X = %d\n", x);
7551 showlist (The first, second, and third items.);
7552 report (x>y, "x is %d but y is %d", x, y);
7553}
7554
7555// Check long long types.
7556#define BIG64 18446744073709551615ull
7557#define BIG32 4294967295ul
7558#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7559#if !BIG_OK
7560 your preprocessor is broken;
7561#endif
7562#if BIG_OK
7563#else
7564 your preprocessor is broken;
7565#endif
7566static long long int bignum = -9223372036854775807LL;
7567static unsigned long long int ubignum = BIG64;
7568
7569struct incomplete_array
7570{
7571 int datasize;
7572 double data[];
7573};
7574
7575struct named_init {
7576 int number;
7577 const wchar_t *name;
7578 double average;
7579};
7580
7581typedef const char *ccp;
7582
7583static inline int
7584test_restrict (ccp restrict text)
7585{
7586 // See if C++-style comments work.
7587 // Iterate through items via the restricted pointer.
7588 // Also check for declarations in for loops.
7589 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7590 continue;
7591 return 0;
7592}
7593
7594// Check varargs and va_copy.
7595static void
7596test_varargs (const char *format, ...)
7597{
7598 va_list args;
7599 va_start (args, format);
7600 va_list args_copy;
7601 va_copy (args_copy, args);
7602
7603 const char *str;
7604 int number;
7605 float fnumber;
7606
7607 while (*format)
7608 {
7609 switch (*format++)
7610 {
7611 case 's': // string
7612 str = va_arg (args_copy, const char *);
7613 break;
7614 case 'd': // int
7615 number = va_arg (args_copy, int);
7616 break;
7617 case 'f': // float
7618 fnumber = va_arg (args_copy, double);
7619 break;
7620 default:
7621 break;
7622 }
7623 }
7624 va_end (args_copy);
7625 va_end (args);
7626}
7627
7628int
7629main ()
7630{
7631
7632 // Check bool.
7633 _Bool success = false;
7634
7635 // Check restrict.
7636 if (test_restrict ("String literal") == 0)
7637 success = true;
7638 char *restrict newvar = "Another string";
7639
7640 // Check varargs.
7641 test_varargs ("s, d' f .", "string", 65, 34.234);
7642 test_varargs_macros ();
7643
7644 // Check flexible array members.
7645 struct incomplete_array *ia =
7646 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7647 ia->datasize = 10;
7648 for (int i = 0; i < ia->datasize; ++i)
7649 ia->data[i] = i * 1.234;
7650
7651 // Check named initializers.
7652 struct named_init ni = {
7653 .number = 34,
7654 .name = L"Test wide string",
7655 .average = 543.34343,
7656 };
7657
7658 ni.number = 58;
7659
7660 int dynamic_array[ni.number];
7661 dynamic_array[ni.number - 1] = 543;
7662
7663 // work around unused variable warnings
7664 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7665 || dynamic_array[ni.number - 1] != 543);
7666
7667 ;
7668 return 0;
7669}
7670_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007671for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007672do
7673 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007674 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007675 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007676fi
cristy3ed852e2009-09-05 21:47:34 +00007677rm -f core conftest.err conftest.$ac_objext
7678 test "x$ac_cv_prog_cc_c99" != "xno" && break
7679done
7680rm -f conftest.$ac_ext
7681CC=$ac_save_CC
7682
7683fi
7684# AC_CACHE_VAL
7685case "x$ac_cv_prog_cc_c99" in
7686 x)
cristy8b350f62009-11-15 23:12:43 +00007687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007688$as_echo "none needed" >&6; } ;;
7689 xno)
cristy8b350f62009-11-15 23:12:43 +00007690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007691$as_echo "unsupported" >&6; } ;;
7692 *)
7693 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007695$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7696esac
cristy8b350f62009-11-15 23:12:43 +00007697if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7699else
cristy8b350f62009-11-15 23:12:43 +00007700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007701$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007702if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007703 $as_echo_n "(cached) " >&6
7704else
7705 ac_cv_prog_cc_c89=no
7706ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007708/* end confdefs.h. */
7709#include <stdarg.h>
7710#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007711struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007712/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7713struct buf { int x; };
7714FILE * (*rcsopen) (struct buf *, struct stat *, int);
7715static char *e (p, i)
7716 char **p;
7717 int i;
7718{
7719 return p[i];
7720}
7721static char *f (char * (*g) (char **, int), char **p, ...)
7722{
7723 char *s;
7724 va_list v;
7725 va_start (v,p);
7726 s = g (p, va_arg (v,int));
7727 va_end (v);
7728 return s;
7729}
7730
7731/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7732 function prototypes and stuff, but not '\xHH' hex character constants.
7733 These don't provoke an error unfortunately, instead are silently treated
7734 as 'x'. The following induces an error, until -std is added to get
7735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7736 array size at least. It's necessary to write '\x00'==0 to get something
7737 that's true only with -std. */
7738int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7739
7740/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7741 inside strings and character constants. */
7742#define FOO(x) 'x'
7743int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7744
7745int test (int i, double x);
7746struct s1 {int (*f) (int a);};
7747struct s2 {int (*f) (double a);};
7748int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7749int argc;
7750char **argv;
7751int
7752main ()
7753{
7754return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7755 ;
7756 return 0;
7757}
7758_ACEOF
7759for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7761do
7762 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007763 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007764 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007765fi
cristy3ed852e2009-09-05 21:47:34 +00007766rm -f core conftest.err conftest.$ac_objext
7767 test "x$ac_cv_prog_cc_c89" != "xno" && break
7768done
7769rm -f conftest.$ac_ext
7770CC=$ac_save_CC
7771
7772fi
7773# AC_CACHE_VAL
7774case "x$ac_cv_prog_cc_c89" in
7775 x)
cristy8b350f62009-11-15 23:12:43 +00007776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007777$as_echo "none needed" >&6; } ;;
7778 xno)
cristy8b350f62009-11-15 23:12:43 +00007779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007780$as_echo "unsupported" >&6; } ;;
7781 *)
7782 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007784$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7785esac
cristy8b350f62009-11-15 23:12:43 +00007786if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7788else
7789 ac_cv_prog_cc_stdc=no
7790fi
7791
cristy3ed852e2009-09-05 21:47:34 +00007792fi
cristy3ed852e2009-09-05 21:47:34 +00007793 ;;
7794esac
cristy8b350f62009-11-15 23:12:43 +00007795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007796$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007797 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007798 $as_echo_n "(cached) " >&6
7799fi
7800
cristy8b350f62009-11-15 23:12:43 +00007801 case $ac_cv_prog_cc_stdc in #(
7802 no) :
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7804$as_echo "unsupported" >&6; } ;; #(
7805 '') :
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7807$as_echo "none needed" >&6; } ;; #(
7808 *) :
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007810$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7811esac
7812
cristy3ed852e2009-09-05 21:47:34 +00007813ac_ext=c
7814ac_cpp='$CPP $CPPFLAGS'
7815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7817ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007819$as_echo_n "checking how to run the C preprocessor... " >&6; }
7820# On Suns, sometimes $CPP names a directory.
7821if test -n "$CPP" && test -d "$CPP"; then
7822 CPP=
7823fi
7824if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007825 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007826 $as_echo_n "(cached) " >&6
7827else
7828 # Double quotes because CPP needs to be expanded
7829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7830 do
7831 ac_preproc_ok=false
7832for ac_c_preproc_warn_flag in '' yes
7833do
7834 # Use a header file that comes with gcc, so configuring glibc
7835 # with a fresh cross-compiler works.
7836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7837 # <limits.h> exists even on freestanding compilers.
7838 # On the NeXT, cc -E runs the code through the compiler's parser,
7839 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007841/* end confdefs.h. */
7842#ifdef __STDC__
7843# include <limits.h>
7844#else
7845# include <assert.h>
7846#endif
7847 Syntax error
7848_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007849if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007850
cristy8b350f62009-11-15 23:12:43 +00007851else
cristy3ed852e2009-09-05 21:47:34 +00007852 # Broken: fails on valid input.
7853continue
7854fi
cristyda16f162011-02-19 23:52:17 +00007855rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007856
7857 # OK, works on sane cases. Now check whether nonexistent headers
7858 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007860/* end confdefs.h. */
7861#include <ac_nonexistent.h>
7862_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007863if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007864 # Broken: success on invalid input.
7865continue
7866else
cristy3ed852e2009-09-05 21:47:34 +00007867 # Passes both tests.
7868ac_preproc_ok=:
7869break
7870fi
cristyda16f162011-02-19 23:52:17 +00007871rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007872
7873done
7874# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007875rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007876if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007877 break
7878fi
7879
7880 done
7881 ac_cv_prog_CPP=$CPP
7882
7883fi
7884 CPP=$ac_cv_prog_CPP
7885else
7886 ac_cv_prog_CPP=$CPP
7887fi
cristy8b350f62009-11-15 23:12:43 +00007888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007889$as_echo "$CPP" >&6; }
7890ac_preproc_ok=false
7891for ac_c_preproc_warn_flag in '' yes
7892do
7893 # Use a header file that comes with gcc, so configuring glibc
7894 # with a fresh cross-compiler works.
7895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7896 # <limits.h> exists even on freestanding compilers.
7897 # On the NeXT, cc -E runs the code through the compiler's parser,
7898 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007900/* end confdefs.h. */
7901#ifdef __STDC__
7902# include <limits.h>
7903#else
7904# include <assert.h>
7905#endif
7906 Syntax error
7907_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007908if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007909
cristy8b350f62009-11-15 23:12:43 +00007910else
cristy3ed852e2009-09-05 21:47:34 +00007911 # Broken: fails on valid input.
7912continue
7913fi
cristyda16f162011-02-19 23:52:17 +00007914rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007915
7916 # OK, works on sane cases. Now check whether nonexistent headers
7917 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007919/* end confdefs.h. */
7920#include <ac_nonexistent.h>
7921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007923 # Broken: success on invalid input.
7924continue
7925else
cristy3ed852e2009-09-05 21:47:34 +00007926 # Passes both tests.
7927ac_preproc_ok=:
7928break
7929fi
cristyda16f162011-02-19 23:52:17 +00007930rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007931
7932done
7933# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007934rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007935if $ac_preproc_ok; then :
7936
cristy3ed852e2009-09-05 21:47:34 +00007937else
cristy8b350f62009-11-15 23:12:43 +00007938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007940as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7941See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007942fi
7943
7944ac_ext=c
7945ac_cpp='$CPP $CPPFLAGS'
7946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7948ac_compiler_gnu=$ac_cv_c_compiler_gnu
7949
cristy73bd4a52010-10-05 11:24:23 +00007950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7951$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007952if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007953 $as_echo_n "(cached) " >&6
7954else
7955 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7956 for ac_i in 1 2 3 4 5 6 7; do
7957 ac_script="$ac_script$as_nl$ac_script"
7958 done
7959 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7960 { ac_script=; unset ac_script;}
7961 if test -z "$SED"; then
7962 ac_path_SED_found=false
7963 # Loop through the user's path and test for each of PROGNAME-LIST
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965for as_dir in $PATH
7966do
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_prog in sed gsed; do
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007972 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007973# Check for GNU ac_path_SED and select it if it is found.
7974 # Check for GNU $ac_path_SED
7975case `"$ac_path_SED" --version 2>&1` in
7976*GNU*)
7977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7978*)
7979 ac_count=0
7980 $as_echo_n 0123456789 >"conftest.in"
7981 while :
7982 do
7983 cat "conftest.in" "conftest.in" >"conftest.tmp"
7984 mv "conftest.tmp" "conftest.in"
7985 cp "conftest.in" "conftest.nl"
7986 $as_echo '' >> "conftest.nl"
7987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7989 as_fn_arith $ac_count + 1 && ac_count=$as_val
7990 if test $ac_count -gt ${ac_path_SED_max-0}; then
7991 # Best one so far, save it but keep looking for a better one
7992 ac_cv_path_SED="$ac_path_SED"
7993 ac_path_SED_max=$ac_count
7994 fi
7995 # 10*(2^10) chars as input seems more than enough
7996 test $ac_count -gt 10 && break
7997 done
7998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7999esac
8000
8001 $ac_path_SED_found && break 3
8002 done
8003 done
8004 done
8005IFS=$as_save_IFS
8006 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00008007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008008 fi
8009else
8010 ac_cv_path_SED=$SED
8011fi
8012
8013fi
8014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8015$as_echo "$ac_cv_path_SED" >&6; }
8016 SED="$ac_cv_path_SED"
8017 rm -f conftest.sed
8018
8019test -z "$SED" && SED=sed
8020Xsed="$SED -e 1s/^X//"
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8033$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008034if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008035 $as_echo_n "(cached) " >&6
8036else
8037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8038 then ac_cv_path_FGREP="$GREP -F"
8039 else
8040 if test -z "$FGREP"; then
8041 ac_path_FGREP_found=false
8042 # Loop through the user's path and test for each of PROGNAME-LIST
8043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8044for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8045do
8046 IFS=$as_save_IFS
8047 test -z "$as_dir" && as_dir=.
8048 for ac_prog in fgrep; do
8049 for ac_exec_ext in '' $ac_executable_extensions; do
8050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00008051 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00008052# Check for GNU ac_path_FGREP and select it if it is found.
8053 # Check for GNU $ac_path_FGREP
8054case `"$ac_path_FGREP" --version 2>&1` in
8055*GNU*)
8056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8057*)
8058 ac_count=0
8059 $as_echo_n 0123456789 >"conftest.in"
8060 while :
8061 do
8062 cat "conftest.in" "conftest.in" >"conftest.tmp"
8063 mv "conftest.tmp" "conftest.in"
8064 cp "conftest.in" "conftest.nl"
8065 $as_echo 'FGREP' >> "conftest.nl"
8066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8068 as_fn_arith $ac_count + 1 && ac_count=$as_val
8069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8070 # Best one so far, save it but keep looking for a better one
8071 ac_cv_path_FGREP="$ac_path_FGREP"
8072 ac_path_FGREP_max=$ac_count
8073 fi
8074 # 10*(2^10) chars as input seems more than enough
8075 test $ac_count -gt 10 && break
8076 done
8077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8078esac
8079
8080 $ac_path_FGREP_found && break 3
8081 done
8082 done
8083 done
8084IFS=$as_save_IFS
8085 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00008086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008087 fi
8088else
8089 ac_cv_path_FGREP=$FGREP
8090fi
8091
8092 fi
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8095$as_echo "$ac_cv_path_FGREP" >&6; }
8096 FGREP="$ac_cv_path_FGREP"
8097
8098
8099test -z "$GREP" && GREP=grep
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
cristy0c60a692010-11-04 01:09:47 +00008117ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8118ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8119ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8120
8121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8122$as_echo_n "checking how to print strings... " >&6; }
8123# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008124if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8126 ECHO='print -r --'
8127elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8128 ECHO='printf %s\n'
8129else
8130 # Use this function as a fallback that always works.
8131 func_fallback_echo ()
8132 {
8133 eval 'cat <<_LTECHO_EOF
8134$1
8135_LTECHO_EOF'
8136 }
8137 ECHO='func_fallback_echo'
8138fi
8139
8140# func_echo_all arg...
8141# Invoke $ECHO with all args, space-separated.
8142func_echo_all ()
8143{
8144 $ECHO ""
8145}
8146
Cristy15f22012015-11-14 17:51:30 -05008147case $ECHO in
cristy0c60a692010-11-04 01:09:47 +00008148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8149$as_echo "printf" >&6; } ;;
8150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8151$as_echo "print -r" >&6; } ;;
8152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8153$as_echo "cat" >&6; } ;;
8154esac
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
cristy73bd4a52010-10-05 11:24:23 +00008169
8170
8171# Check whether --with-gnu-ld was given.
8172if test "${with_gnu_ld+set}" = set; then :
Cristy15f22012015-11-14 17:51:30 -05008173 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cristy73bd4a52010-10-05 11:24:23 +00008174else
8175 with_gnu_ld=no
8176fi
8177
8178ac_prog=ld
Cristy15f22012015-11-14 17:51:30 -05008179if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +00008180 # Check if gcc -print-prog-name=ld gives a path.
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8182$as_echo_n "checking for ld used by $CC... " >&6; }
8183 case $host in
8184 *-*-mingw*)
Cristy15f22012015-11-14 17:51:30 -05008185 # gcc leaves a trailing carriage return, which upsets mingw
cristy73bd4a52010-10-05 11:24:23 +00008186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8187 *)
8188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8189 esac
8190 case $ac_prog in
8191 # Accept absolute paths.
8192 [\\/]* | ?:[\\/]*)
8193 re_direlt='/[^/][^/]*/\.\./'
8194 # Canonicalize the pathname of ld
8195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8198 done
Cristy15f22012015-11-14 17:51:30 -05008199 test -z "$LD" && LD=$ac_prog
cristy73bd4a52010-10-05 11:24:23 +00008200 ;;
8201 "")
8202 # If it fails, then pretend we aren't using GCC.
8203 ac_prog=ld
8204 ;;
8205 *)
8206 # If it is relative, then search for the first ld in PATH.
8207 with_gnu_ld=unknown
8208 ;;
8209 esac
Cristy15f22012015-11-14 17:51:30 -05008210elif test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +00008211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8212$as_echo_n "checking for GNU ld... " >&6; }
8213else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8215$as_echo_n "checking for non-GNU ld... " >&6; }
8216fi
cristyda16f162011-02-19 23:52:17 +00008217if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008218 $as_echo_n "(cached) " >&6
8219else
8220 if test -z "$LD"; then
Cristy15f22012015-11-14 17:51:30 -05008221 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +00008222 for ac_dir in $PATH; do
Cristy15f22012015-11-14 17:51:30 -05008223 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +00008224 test -z "$ac_dir" && ac_dir=.
8225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Cristy15f22012015-11-14 17:51:30 -05008226 lt_cv_path_LD=$ac_dir/$ac_prog
cristy73bd4a52010-10-05 11:24:23 +00008227 # Check to see if the program is GNU ld. I'd rather use --version,
8228 # but apparently some variants of GNU ld only accept -v.
8229 # Break only if it was the GNU/non-GNU ld that we prefer.
8230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8231 *GNU* | *'with BFD'*)
Cristy15f22012015-11-14 17:51:30 -05008232 test no != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +00008233 ;;
8234 *)
Cristy15f22012015-11-14 17:51:30 -05008235 test yes != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +00008236 ;;
8237 esac
8238 fi
8239 done
Cristy15f22012015-11-14 17:51:30 -05008240 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +00008241else
Cristy15f22012015-11-14 17:51:30 -05008242 lt_cv_path_LD=$LD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +00008243fi
8244fi
8245
Cristy15f22012015-11-14 17:51:30 -05008246LD=$lt_cv_path_LD
cristy73bd4a52010-10-05 11:24:23 +00008247if test -n "$LD"; then
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8249$as_echo "$LD" >&6; }
8250else
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8252$as_echo "no" >&6; }
8253fi
cristy98dddb52010-11-04 00:30:15 +00008254test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8256$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008257if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008258 $as_echo_n "(cached) " >&6
8259else
8260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8261case `$LD -v 2>&1 </dev/null` in
8262*GNU* | *'with BFD'*)
8263 lt_cv_prog_gnu_ld=yes
8264 ;;
8265*)
8266 lt_cv_prog_gnu_ld=no
8267 ;;
8268esac
8269fi
8270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8271$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8272with_gnu_ld=$lt_cv_prog_gnu_ld
8273
8274
8275
8276
8277
8278
8279
8280
8281
cristy3ed852e2009-09-05 21:47:34 +00008282
cristy837d6dc2010-02-27 01:16:57 +00008283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8284$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008285if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008286 $as_echo_n "(cached) " >&6
8287else
8288 ac_cv_prog_cc_c99=no
8289ac_save_CC=$CC
8290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8291/* end confdefs.h. */
8292#include <stdarg.h>
8293#include <stdbool.h>
8294#include <stdlib.h>
8295#include <wchar.h>
8296#include <stdio.h>
8297
8298// Check varargs macros. These examples are taken from C99 6.10.3.5.
8299#define debug(...) fprintf (stderr, __VA_ARGS__)
8300#define showlist(...) puts (#__VA_ARGS__)
8301#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8302static void
8303test_varargs_macros (void)
8304{
8305 int x = 1234;
8306 int y = 5678;
8307 debug ("Flag");
8308 debug ("X = %d\n", x);
8309 showlist (The first, second, and third items.);
8310 report (x>y, "x is %d but y is %d", x, y);
8311}
8312
8313// Check long long types.
8314#define BIG64 18446744073709551615ull
8315#define BIG32 4294967295ul
8316#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8317#if !BIG_OK
8318 your preprocessor is broken;
8319#endif
8320#if BIG_OK
8321#else
8322 your preprocessor is broken;
8323#endif
8324static long long int bignum = -9223372036854775807LL;
8325static unsigned long long int ubignum = BIG64;
8326
8327struct incomplete_array
8328{
8329 int datasize;
8330 double data[];
8331};
8332
8333struct named_init {
8334 int number;
8335 const wchar_t *name;
8336 double average;
8337};
8338
8339typedef const char *ccp;
8340
8341static inline int
8342test_restrict (ccp restrict text)
8343{
8344 // See if C++-style comments work.
8345 // Iterate through items via the restricted pointer.
8346 // Also check for declarations in for loops.
8347 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8348 continue;
8349 return 0;
8350}
8351
8352// Check varargs and va_copy.
8353static void
8354test_varargs (const char *format, ...)
8355{
8356 va_list args;
8357 va_start (args, format);
8358 va_list args_copy;
8359 va_copy (args_copy, args);
8360
8361 const char *str;
8362 int number;
8363 float fnumber;
8364
8365 while (*format)
8366 {
8367 switch (*format++)
8368 {
8369 case 's': // string
8370 str = va_arg (args_copy, const char *);
8371 break;
8372 case 'd': // int
8373 number = va_arg (args_copy, int);
8374 break;
8375 case 'f': // float
8376 fnumber = va_arg (args_copy, double);
8377 break;
8378 default:
8379 break;
8380 }
8381 }
8382 va_end (args_copy);
8383 va_end (args);
8384}
8385
8386int
8387main ()
8388{
8389
8390 // Check bool.
8391 _Bool success = false;
8392
8393 // Check restrict.
8394 if (test_restrict ("String literal") == 0)
8395 success = true;
8396 char *restrict newvar = "Another string";
8397
8398 // Check varargs.
8399 test_varargs ("s, d' f .", "string", 65, 34.234);
8400 test_varargs_macros ();
8401
8402 // Check flexible array members.
8403 struct incomplete_array *ia =
8404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8405 ia->datasize = 10;
8406 for (int i = 0; i < ia->datasize; ++i)
8407 ia->data[i] = i * 1.234;
8408
8409 // Check named initializers.
8410 struct named_init ni = {
8411 .number = 34,
8412 .name = L"Test wide string",
8413 .average = 543.34343,
8414 };
8415
8416 ni.number = 58;
8417
8418 int dynamic_array[ni.number];
8419 dynamic_array[ni.number - 1] = 543;
8420
8421 // work around unused variable warnings
8422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8423 || dynamic_array[ni.number - 1] != 543);
8424
8425 ;
8426 return 0;
8427}
8428_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008429for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008430do
8431 CC="$ac_save_CC $ac_arg"
8432 if ac_fn_c_try_compile "$LINENO"; then :
8433 ac_cv_prog_cc_c99=$ac_arg
8434fi
8435rm -f core conftest.err conftest.$ac_objext
8436 test "x$ac_cv_prog_cc_c99" != "xno" && break
8437done
8438rm -f conftest.$ac_ext
8439CC=$ac_save_CC
8440
8441fi
8442# AC_CACHE_VAL
8443case "x$ac_cv_prog_cc_c99" in
8444 x)
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8446$as_echo "none needed" >&6; } ;;
8447 xno)
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8449$as_echo "unsupported" >&6; } ;;
8450 *)
8451 CC="$CC $ac_cv_prog_cc_c99"
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8453$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8454esac
8455if test "x$ac_cv_prog_cc_c99" != xno; then :
8456
8457fi
8458
8459
cristy73bd4a52010-10-05 11:24:23 +00008460
cristy17491be2014-06-24 01:10:53 +00008461ac_ext=c
8462ac_cpp='$CPP $CPPFLAGS'
8463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
cristy73bd4a52010-10-05 11:24:23 +00008467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8468$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008469if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008470 $as_echo_n "(cached) " >&6
8471else
8472 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008473ac_save_CFLAGS="$CFLAGS"
8474for 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 +00008475do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8477/* end confdefs.h. */
8478
8479int
8480main ()
8481{
cristy24fc1fe2010-10-23 21:13:01 +00008482
cristy73bd4a52010-10-05 11:24:23 +00008483 ;
8484 return 0;
8485}
8486_ACEOF
8487if ac_fn_c_try_compile "$LINENO"; then :
8488 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8489fi
8490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491done
cristy17491be2014-06-24 01:10:53 +00008492CFLAGS="$ac_save_CFLAGS"
8493
8494fi
8495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8496$as_echo "$ac_cv_cflags_warn_all" >&6; }
8497
8498
8499case ".$ac_cv_cflags_warn_all" in
8500 .ok|.ok,*) ;;
8501 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008502 *)
8503if ${CFLAGS+:} false; then :
8504
8505 case " $CFLAGS " in #(
8506 *" $ac_cv_cflags_warn_all "*) :
8507 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008508 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8509 ac_status=$?
8510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008511 test $ac_status = 0; } ;; #(
8512 *) :
8513
8514 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8515 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8516 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008517 ac_status=$?
8518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8519 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008520 ;;
8521esac
8522
cristy17491be2014-06-24 01:10:53 +00008523else
cristy146497a2015-05-17 22:46:16 +00008524
8525 CFLAGS=$ac_cv_cflags_warn_all
8526 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8527 (: CFLAGS="$CFLAGS") 2>&5
8528 ac_status=$?
8529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8530 test $ac_status = 0; }
8531
cristy17491be2014-06-24 01:10:53 +00008532fi
8533 ;;
8534esac
8535
8536ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008537ac_cpp='$CPP $CPPFLAGS'
8538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8540ac_compiler_gnu=$ac_cv_c_compiler_gnu
8541
8542
cristya0b81c32010-01-22 02:54:33 +00008543
8544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8545$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8546set x ${MAKE-make}
8547ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008548if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008549 $as_echo_n "(cached) " >&6
8550else
8551 cat >conftest.make <<\_ACEOF
8552SHELL = /bin/sh
8553all:
8554 @echo '@@@%%%=$(MAKE)=@@@%%%'
8555_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008556# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008557case `${MAKE-make} -f conftest.make 2>/dev/null` in
8558 *@@@%%%=?*=@@@%%%*)
8559 eval ac_cv_prog_make_${ac_make}_set=yes;;
8560 *)
8561 eval ac_cv_prog_make_${ac_make}_set=no;;
8562esac
8563rm -f conftest.make
8564fi
8565if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8567$as_echo "yes" >&6; }
8568 SET_MAKE=
8569else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571$as_echo "no" >&6; }
8572 SET_MAKE="MAKE=${MAKE-make}"
8573fi
8574
cristy8b350f62009-11-15 23:12:43 +00008575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008576$as_echo_n "checking whether ln -s works... " >&6; }
8577LN_S=$as_ln_s
8578if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008580$as_echo "yes" >&6; }
8581else
cristy8b350f62009-11-15 23:12:43 +00008582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008583$as_echo "no, using $LN_S" >&6; }
8584fi
8585
cristy8d0ff762013-03-10 20:33:28 +00008586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8587$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8588if ${ac_cv_path_SED+:} false; then :
8589 $as_echo_n "(cached) " >&6
8590else
8591 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8592 for ac_i in 1 2 3 4 5 6 7; do
8593 ac_script="$ac_script$as_nl$ac_script"
8594 done
8595 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8596 { ac_script=; unset ac_script;}
8597 if test -z "$SED"; then
8598 ac_path_SED_found=false
8599 # Loop through the user's path and test for each of PROGNAME-LIST
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601for as_dir in $PATH
8602do
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_prog in sed gsed; do
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8608 as_fn_executable_p "$ac_path_SED" || continue
8609# Check for GNU ac_path_SED and select it if it is found.
8610 # Check for GNU $ac_path_SED
8611case `"$ac_path_SED" --version 2>&1` in
8612*GNU*)
8613 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8614*)
8615 ac_count=0
8616 $as_echo_n 0123456789 >"conftest.in"
8617 while :
8618 do
8619 cat "conftest.in" "conftest.in" >"conftest.tmp"
8620 mv "conftest.tmp" "conftest.in"
8621 cp "conftest.in" "conftest.nl"
8622 $as_echo '' >> "conftest.nl"
8623 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8624 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8625 as_fn_arith $ac_count + 1 && ac_count=$as_val
8626 if test $ac_count -gt ${ac_path_SED_max-0}; then
8627 # Best one so far, save it but keep looking for a better one
8628 ac_cv_path_SED="$ac_path_SED"
8629 ac_path_SED_max=$ac_count
8630 fi
8631 # 10*(2^10) chars as input seems more than enough
8632 test $ac_count -gt 10 && break
8633 done
8634 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8635esac
8636
8637 $ac_path_SED_found && break 3
8638 done
8639 done
8640 done
8641IFS=$as_save_IFS
8642 if test -z "$ac_cv_path_SED"; then
8643 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8644 fi
8645else
8646 ac_cv_path_SED=$SED
8647fi
8648
8649fi
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8651$as_echo "$ac_cv_path_SED" >&6; }
8652 SED="$ac_cv_path_SED"
8653 rm -f conftest.sed
8654
cristybc556452012-08-17 19:44:03 +00008655for ac_prog in gawk mawk nawk awk
8656do
8657 # Extract the first word of "$ac_prog", so it can be a program name with args.
8658set dummy $ac_prog; ac_word=$2
8659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8660$as_echo_n "checking for $ac_word... " >&6; }
8661if ${ac_cv_prog_AWK+:} false; then :
8662 $as_echo_n "(cached) " >&6
8663else
8664 if test -n "$AWK"; then
8665 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8666else
8667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670 IFS=$as_save_IFS
8671 test -z "$as_dir" && as_dir=.
8672 for ac_exec_ext in '' $ac_executable_extensions; do
8673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8674 ac_cv_prog_AWK="$ac_prog"
8675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8676 break 2
8677 fi
8678done
8679 done
8680IFS=$as_save_IFS
8681
8682fi
8683fi
8684AWK=$ac_cv_prog_AWK
8685if test -n "$AWK"; then
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8687$as_echo "$AWK" >&6; }
8688else
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8690$as_echo "no" >&6; }
8691fi
8692
8693
8694 test -n "$AWK" && break
8695done
8696
cristy73bd4a52010-10-05 11:24:23 +00008697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8698$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8699
8700# Check whether --with-dmalloc was given.
8701if test "${with_dmalloc+set}" = set; then :
8702 withval=$with_dmalloc; if test "$withval" = yes; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8704$as_echo "yes" >&6; }
8705
8706$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8707
8708 LIBS="$LIBS -ldmalloc"
8709 LDFLAGS="$LDFLAGS -g"
8710else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
8713fi
8714else
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716$as_echo "no" >&6; }
8717fi
8718
8719
8720
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8722$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008723if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008724 $as_echo_n "(cached) " >&6
8725else
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
8728#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008729 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008730 static void
8731 foo(void) {
8732 exit(1);
8733 }
8734
8735int
8736main ()
8737{
8738
8739 ;
8740 return 0;
8741}
8742_ACEOF
8743if ac_fn_c_try_compile "$LINENO"; then :
8744 ax_cv___attribute__=yes
8745else
8746 ax_cv___attribute__=no
8747
8748fi
8749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750
8751fi
8752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8753$as_echo "$ax_cv___attribute__" >&6; }
8754 if test "$ax_cv___attribute__" = "yes"; then
8755
8756$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8757
8758 fi
8759
cristy146497a2015-05-17 22:46:16 +00008760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8761$as_echo_n "checking for C compiler vendor... " >&6; }
8762if ${ax_cv_c_compiler_vendor+:} false; then :
8763 $as_echo_n "(cached) " >&6
8764else
8765 # note: don't check for gcc first since some other compilers define __GNUC__
8766 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8767 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8768 pathscale: __PATHCC__,__PATHSCALE__
8769 clang: __clang__
8770 cray: _CRAYC
8771 fujitsu: __FUJITSU
8772 gnu: __GNUC__
8773 sun: __SUNPRO_C,__SUNPRO_CC
8774 hp: __HP_cc,__HP_aCC
8775 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8776 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8777 comeau: __COMO__
8778 kai: __KCC
8779 lcc: __LCC__
8780 sgi: __sgi,sgi
8781 microsoft: _MSC_VER
8782 metrowerks: __MWERKS__
8783 watcom: __WATCOMC__
8784 portland: __PGI
8785 tcc: __TINYC__
8786 unknown: UNKNOWN"
8787 for ventest in $vendors; do
8788 case $ventest in
8789 *:) vendor=$ventest; continue ;;
8790 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8791 esac
8792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8793/* end confdefs.h. */
8794
8795int
8796main ()
8797{
8798
8799 #if !($vencpp)
8800 thisisanerror;
8801 #endif
8802
8803 ;
8804 return 0;
8805}
8806_ACEOF
8807if ac_fn_c_try_compile "$LINENO"; then :
8808 break
8809fi
8810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8811 done
8812 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8813
8814fi
8815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8816$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8817
8818
cristy73bd4a52010-10-05 11:24:23 +00008819
8820
cristya0459972013-11-03 18:09:35 +00008821
8822
cristy17491be2014-06-24 01:10:53 +00008823
cristya0459972013-11-03 18:09:35 +00008824# Check whether --with-gcc-arch was given.
8825if test "${with_gcc_arch+set}" = set; then :
8826 withval=$with_gcc_arch; ax_gcc_arch=$withval
8827else
cristy17491be2014-06-24 01:10:53 +00008828 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008829fi
8830
8831
8832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8833$as_echo_n "checking for gcc architecture flag... " >&6; }
8834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8835$as_echo "" >&6; }
8836if ${ax_cv_gcc_archflag+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838else
8839
8840ax_cv_gcc_archflag="unknown"
8841
8842if test "$GCC" = yes; then
8843
8844if test "x$ax_gcc_arch" = xyes; then
8845ax_gcc_arch=""
8846if test "$cross_compiling" = no; then
8847case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008848 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008849
8850ac_ext=c
8851ac_cpp='$CPP $CPPFLAGS'
8852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8854ac_compiler_gnu=$ac_cv_c_compiler_gnu
8855
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8857$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8858if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860else
8861 if test "$cross_compiling" = yes; then :
8862 ax_cv_gcc_x86_cpuid_0=unknown
8863else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h. */
8866#include <stdio.h>
8867int
8868main ()
8869{
8870
Cristy66387d22015-11-02 07:41:25 -05008871 int op = 0, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008872 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008873 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008874 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008875 : "a" (op), "2" (level));
8876
cristya0459972013-11-03 18:09:35 +00008877 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8878 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8879 fclose(f);
8880 return 0;
8881
8882 ;
8883 return 0;
8884}
8885_ACEOF
8886if ac_fn_c_try_run "$LINENO"; then :
8887 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8888else
8889 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8890fi
8891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8892 conftest.$ac_objext conftest.beam conftest.$ac_ext
8893fi
8894
8895fi
8896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8897$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8898ac_ext=c
8899ac_cpp='$CPP $CPPFLAGS'
8900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8902ac_compiler_gnu=$ac_cv_c_compiler_gnu
8903
8904
8905
Cristy66387d22015-11-02 07:41:25 -05008906
cristya0459972013-11-03 18:09:35 +00008907ac_ext=c
8908ac_cpp='$CPP $CPPFLAGS'
8909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8911ac_compiler_gnu=$ac_cv_c_compiler_gnu
8912
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8914$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8915if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917else
8918 if test "$cross_compiling" = yes; then :
8919 ax_cv_gcc_x86_cpuid_1=unknown
8920else
8921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8922/* end confdefs.h. */
8923#include <stdio.h>
8924int
8925main ()
8926{
8927
Cristy66387d22015-11-02 07:41:25 -05008928 int op = 1, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008929 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008930 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008931 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008932 : "a" (op), "2" (level));
8933
cristya0459972013-11-03 18:09:35 +00008934 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8935 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8936 fclose(f);
8937 return 0;
8938
8939 ;
8940 return 0;
8941}
8942_ACEOF
8943if ac_fn_c_try_run "$LINENO"; then :
8944 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8945else
8946 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8947fi
8948rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8949 conftest.$ac_objext conftest.beam conftest.$ac_ext
8950fi
8951
8952fi
8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8954$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8955ac_ext=c
8956ac_cpp='$CPP $CPPFLAGS'
8957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8959ac_compiler_gnu=$ac_cv_c_compiler_gnu
8960
8961
Cristy66387d22015-11-02 07:41:25 -05008962
cristya0459972013-11-03 18:09:35 +00008963 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008964 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008965 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008966 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8967 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8968 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8969 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8970 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8971 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8972 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8973 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008974 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008975 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8976 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8977 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8978 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8979 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8980 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8981 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8982 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8983 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8984 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8985 # fallback
8986 *5??:*:*:*) ax_gcc_arch=pentium ;;
8987 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00008988 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00008989 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008990 esac ;;
cristy146497a2015-05-17 22:46:16 +00008991 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00008992 case $ax_cv_gcc_x86_cpuid_1 in
8993 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00008994 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8995 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00008996 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8997 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00008998 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8999 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
9000 *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" ;;
9001 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9002 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9003 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9004 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9005 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9006 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9007 # fallback
9008 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9009 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9010 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9011 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9012 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9013 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9014 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9015 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00009016 esac ;;
cristy146497a2015-05-17 22:46:16 +00009017 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00009018 case $ax_cv_gcc_x86_cpuid_1 in
9019 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00009020 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
9021 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00009022 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00009023 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00009024 esac ;;
9025 esac
9026 if test x"$ax_gcc_arch" = x; then # fallback
9027 case $host_cpu in
9028 i586*) ax_gcc_arch=pentium ;;
9029 i686*) ax_gcc_arch=pentiumpro ;;
9030 esac
9031 fi
9032 ;;
9033
9034 sparc*)
9035 # Extract the first word of "prtdiag", so it can be a program name with args.
9036set dummy prtdiag; ac_word=$2
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038$as_echo_n "checking for $ac_word... " >&6; }
9039if ${ac_cv_path_PRTDIAG+:} false; then :
9040 $as_echo_n "(cached) " >&6
9041else
9042 case $PRTDIAG in
9043 [\\/]* | ?:[\\/]*)
9044 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
9045 ;;
9046 *)
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
9049for as_dir in $as_dummy
9050do
9051 IFS=$as_save_IFS
9052 test -z "$as_dir" && as_dir=.
9053 for ac_exec_ext in '' $ac_executable_extensions; do
9054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9055 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
9056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057 break 2
9058 fi
9059done
9060 done
9061IFS=$as_save_IFS
9062
9063 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
9064 ;;
9065esac
9066fi
9067PRTDIAG=$ac_cv_path_PRTDIAG
9068if test -n "$PRTDIAG"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
9070$as_echo "$PRTDIAG" >&6; }
9071else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076
9077 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 +00009078 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00009079 case $cputype in
9080 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
9081 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
9082 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
9083 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
9084 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
9085 *cypress*) ax_gcc_arch=cypress ;;
9086 esac ;;
9087
9088 alphaev5) ax_gcc_arch=ev5 ;;
9089 alphaev56) ax_gcc_arch=ev56 ;;
9090 alphapca56) ax_gcc_arch="pca56 ev56" ;;
9091 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
9092 alphaev6) ax_gcc_arch=ev6 ;;
9093 alphaev67) ax_gcc_arch=ev67 ;;
9094 alphaev68) ax_gcc_arch="ev68 ev67" ;;
9095 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
9096 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
9097 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
9098
9099 powerpc*)
cristy17491be2014-06-24 01:10:53 +00009100 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`
9101 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00009102 case $cputype in
9103 *750*) ax_gcc_arch="750 G3" ;;
9104 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
9105 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
9106 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
9107 *970*) ax_gcc_arch="970 G5 power4";;
9108 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
9109 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
9110 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
9111 *) ax_gcc_arch=$cputype ;;
9112 esac
9113 ax_gcc_arch="$ax_gcc_arch powerpc"
9114 ;;
9115esac
9116fi # not cross-compiling
9117fi # guess arch
9118
9119if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00009120if test "xyes" = xyes; then # if we require portable code
9121 flag_prefixes="-mtune="
9122 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9123 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9124 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9125 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9126else
9127 flag_prefixes="-march= -mcpu= -m"
9128fi
9129for flag_prefix in $flag_prefixes; do
9130 for arch in $ax_gcc_arch; do
9131 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009132 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9134$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9135if eval \${$as_CACHEVAR+:} false; then :
9136 $as_echo_n "(cached) " >&6
9137else
9138
9139 ax_check_save_flags=$CFLAGS
9140 CFLAGS="$CFLAGS $flag"
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142/* end confdefs.h. */
9143
9144int
9145main ()
9146{
9147
9148 ;
9149 return 0;
9150}
9151_ACEOF
9152if ac_fn_c_try_compile "$LINENO"; then :
9153 eval "$as_CACHEVAR=yes"
9154else
9155 eval "$as_CACHEVAR=no"
9156fi
9157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9158 CFLAGS=$ax_check_save_flags
9159fi
9160eval ac_res=\$$as_CACHEVAR
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9162$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009163if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9164 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9165 if test "xyes" = xyes; then
9166 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9167 fi
9168 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009169else
9170 :
9171fi
9172
9173 done
9174 test "x$ax_cv_gcc_archflag" = xunknown || break
9175done
9176fi
9177
9178fi # $GCC=yes
9179
9180fi
9181
9182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9183$as_echo_n "checking for gcc architecture flag... " >&6; }
9184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9185$as_echo "$ax_cv_gcc_archflag" >&6; }
9186if test "x$ax_cv_gcc_archflag" = xunknown; then
9187 :
9188else
9189 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9190fi
9191
9192
9193
cristy146497a2015-05-17 22:46:16 +00009194
9195
9196
9197
9198
cristy73bd4a52010-10-05 11:24:23 +00009199if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9200 if test -n "$ac_tool_prefix"; then
9201 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9202set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009205if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009206 $as_echo_n "(cached) " >&6
9207else
9208 case $PKG_CONFIG in
9209 [\\/]* | ?:[\\/]*)
9210 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9211 ;;
9212 *)
9213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9214for as_dir in $PATH
9215do
9216 IFS=$as_save_IFS
9217 test -z "$as_dir" && as_dir=.
9218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009220 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9222 break 2
9223 fi
9224done
9225 done
9226IFS=$as_save_IFS
9227
9228 ;;
9229esac
9230fi
9231PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9232if test -n "$PKG_CONFIG"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9234$as_echo "$PKG_CONFIG" >&6; }
9235else
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9237$as_echo "no" >&6; }
9238fi
9239
9240
9241fi
9242if test -z "$ac_cv_path_PKG_CONFIG"; then
9243 ac_pt_PKG_CONFIG=$PKG_CONFIG
9244 # Extract the first word of "pkg-config", so it can be a program name with args.
9245set dummy pkg-config; ac_word=$2
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9247$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009248if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009249 $as_echo_n "(cached) " >&6
9250else
9251 case $ac_pt_PKG_CONFIG in
9252 [\\/]* | ?:[\\/]*)
9253 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9254 ;;
9255 *)
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9257for as_dir in $PATH
9258do
9259 IFS=$as_save_IFS
9260 test -z "$as_dir" && as_dir=.
9261 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009263 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9265 break 2
9266 fi
9267done
9268 done
9269IFS=$as_save_IFS
9270
9271 ;;
9272esac
9273fi
9274ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9275if test -n "$ac_pt_PKG_CONFIG"; then
9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9277$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9278else
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9280$as_echo "no" >&6; }
9281fi
9282
9283 if test "x$ac_pt_PKG_CONFIG" = x; then
9284 PKG_CONFIG=""
9285 else
9286 case $cross_compiling:$ac_tool_warned in
9287yes:)
9288{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9289$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9290ac_tool_warned=yes ;;
9291esac
9292 PKG_CONFIG=$ac_pt_PKG_CONFIG
9293 fi
9294else
9295 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9296fi
9297
9298fi
9299if test -n "$PKG_CONFIG"; then
9300 _pkg_min_version=0.9.0
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9302$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9303 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9305$as_echo "yes" >&6; }
9306 else
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9308$as_echo "no" >&6; }
9309 PKG_CONFIG=""
9310 fi
cristy73bd4a52010-10-05 11:24:23 +00009311fi
cristy3ed852e2009-09-05 21:47:34 +00009312
cristy9af1cbf2014-12-28 22:03:09 +00009313
9314
cristyd95b7a52013-10-23 13:12:53 +00009315# Test for 64-bit build.
9316# The cast to long int works around a bug in the HP C Compiler
9317# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9318# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9319# This bug is HP SR number 8606223364.
9320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9321$as_echo_n "checking size of size_t... " >&6; }
9322if ${ac_cv_sizeof_size_t+:} false; then :
9323 $as_echo_n "(cached) " >&6
9324else
9325 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9326
9327else
9328 if test "$ac_cv_type_size_t" = yes; then
9329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9331as_fn_error 77 "cannot compute sizeof (size_t)
9332See \`config.log' for more details" "$LINENO" 5; }
9333 else
9334 ac_cv_sizeof_size_t=0
9335 fi
9336fi
9337
9338fi
9339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9340$as_echo "$ac_cv_sizeof_size_t" >&6; }
9341
9342
9343
9344cat >>confdefs.h <<_ACEOF
9345#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9346_ACEOF
9347
9348
9349
9350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9351$as_echo_n "checking for C compiler vendor... " >&6; }
9352if ${ax_cv_c_compiler_vendor+:} false; then :
9353 $as_echo_n "(cached) " >&6
9354else
cristy146497a2015-05-17 22:46:16 +00009355 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009356 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9357 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9358 pathscale: __PATHCC__,__PATHSCALE__
9359 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009360 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009361 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009362 gnu: __GNUC__
9363 sun: __SUNPRO_C,__SUNPRO_CC
9364 hp: __HP_cc,__HP_aCC
9365 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009366 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009367 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009368 kai: __KCC
9369 lcc: __LCC__
9370 sgi: __sgi,sgi
9371 microsoft: _MSC_VER
9372 metrowerks: __MWERKS__
9373 watcom: __WATCOMC__
9374 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009375 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009376 unknown: UNKNOWN"
9377 for ventest in $vendors; do
9378 case $ventest in
9379 *:) vendor=$ventest; continue ;;
9380 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9381 esac
9382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9383/* end confdefs.h. */
9384
9385int
9386main ()
9387{
9388
9389 #if !($vencpp)
9390 thisisanerror;
9391 #endif
9392
9393 ;
9394 return 0;
9395}
9396_ACEOF
9397if ac_fn_c_try_compile "$LINENO"; then :
9398 break
9399fi
9400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9401 done
9402 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9403
9404fi
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9406$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9407
cristyd95b7a52013-10-23 13:12:53 +00009408# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
9409# compiler.
9410if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +00009411 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009412ac_cpp='$CPP $CPPFLAGS'
9413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9415ac_compiler_gnu=$ac_cv_c_compiler_gnu
9416
cristy17491be2014-06-24 01:10:53 +00009417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
9418$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
9419if ${ac_cv_cflags_warn_all+:} false; then :
9420 $as_echo_n "(cached) " >&6
9421else
9422 ac_cv_cflags_warn_all="no, unknown"
9423ac_save_CFLAGS="$CFLAGS"
9424for 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 +00009425do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9427/* end confdefs.h. */
9428
9429int
9430main ()
9431{
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437if ac_fn_c_try_compile "$LINENO"; then :
9438 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
9439fi
9440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9441done
cristy17491be2014-06-24 01:10:53 +00009442CFLAGS="$ac_save_CFLAGS"
9443
9444fi
9445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
9446$as_echo "$ac_cv_cflags_warn_all" >&6; }
9447
9448
9449case ".$ac_cv_cflags_warn_all" in
9450 .ok|.ok,*) ;;
9451 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00009452 *)
9453if ${CFLAGS+:} false; then :
9454
9455 case " $CFLAGS " in #(
9456 *" $ac_cv_cflags_warn_all "*) :
9457 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00009458 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
9459 ac_status=$?
9460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00009461 test $ac_status = 0; } ;; #(
9462 *) :
9463
9464 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
9465 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9466 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00009467 ac_status=$?
9468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9469 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00009470 ;;
9471esac
9472
cristy17491be2014-06-24 01:10:53 +00009473else
cristy146497a2015-05-17 22:46:16 +00009474
9475 CFLAGS=$ac_cv_cflags_warn_all
9476 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
9477 (: CFLAGS="$CFLAGS") 2>&5
9478 ac_status=$?
9479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9480 test $ac_status = 0; }
9481
cristy17491be2014-06-24 01:10:53 +00009482fi
9483 ;;
9484esac
9485
9486ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +00009487ac_cpp='$CPP $CPPFLAGS'
9488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9490ac_compiler_gnu=$ac_cv_c_compiler_gnu
9491
9492
9493fi
cristyd95b7a52013-10-23 13:12:53 +00009494
9495if test "x$GCC" = "xyes"; then
9496 CFLAGS="$CFLAGS -fexceptions"
9497 touch local.exp
9498else
9499 cat > local.exp <<EOF
9500set CC_FOR_TARGET "$CC"
9501EOF
9502fi
9503
cristy9b86f202012-11-28 21:55:35 +00009504# Check for linker script support
9505
9506 # Check whether --enable-ld-version-script was given.
9507if test "${enable_ld_version_script+set}" = set; then :
9508 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9509fi
9510
9511 if test -z "$have_ld_version_script"; then
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9513$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9514 save_LDFLAGS="$LDFLAGS"
9515 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9516 cat > conftest.map <<EOF
9517foo
9518EOF
9519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9520/* end confdefs.h. */
9521
9522int
9523main ()
9524{
9525
9526 ;
9527 return 0;
9528}
9529_ACEOF
9530if ac_fn_c_try_link "$LINENO"; then :
9531 accepts_syntax_errors=yes
9532else
9533 accepts_syntax_errors=no
9534fi
9535rm -f core conftest.err conftest.$ac_objext \
9536 conftest$ac_exeext conftest.$ac_ext
9537 if test "$accepts_syntax_errors" = no; then
9538 cat > conftest.map <<EOF
9539VERS_1 {
9540 global: sym;
9541};
9542
9543VERS_2 {
9544 global: sym;
9545} VERS_1;
9546EOF
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h. */
9549
9550int
9551main ()
9552{
9553
9554 ;
9555 return 0;
9556}
9557_ACEOF
9558if ac_fn_c_try_link "$LINENO"; then :
9559 have_ld_version_script=yes
9560else
9561 have_ld_version_script=no
9562fi
9563rm -f core conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 else
9566 have_ld_version_script=no
9567 fi
9568 rm -f conftest.map
9569 LDFLAGS="$save_LDFLAGS"
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
9571$as_echo "$have_ld_version_script" >&6; }
9572 fi
9573 if test "$have_ld_version_script" = "yes"; then
9574 HAVE_LD_VERSION_SCRIPT_TRUE=
9575 HAVE_LD_VERSION_SCRIPT_FALSE='#'
9576else
9577 HAVE_LD_VERSION_SCRIPT_TRUE='#'
9578 HAVE_LD_VERSION_SCRIPT_FALSE=
9579fi
9580
9581
9582
cristy3ed852e2009-09-05 21:47:34 +00009583#
cristy3ed852e2009-09-05 21:47:34 +00009584# Enable run-time checking.
9585#
9586# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00009587if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009588 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9589else
9590 enable_bounds_checking='no'
9591fi
9592
9593
9594if test "$enable_bounds_checking" = yes; then
9595
cristy8b350f62009-11-15 23:12:43 +00009596$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009597
9598fi
9599
9600#
9601# Tests for Windows
9602#
9603
9604
9605
9606GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009607native_win32_build='no'
9608cygwin_build='no'
9609case "${host_os}" in
9610 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00009611 cygwin_build='yes'
9612 GDI32_LIBS='-lgdi32'
9613 ;;
9614 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00009615 native_win32_build='yes'
9616 GDI32_LIBS='-lgdi32'
9617 ;;
9618esac
9619if test "${GDI32_LIBS}x" != 'x'; then
9620
cristy8b350f62009-11-15 23:12:43 +00009621$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00009622
9623fi
9624
cristy73bd4a52010-10-05 11:24:23 +00009625 if test "${GDI32_LIBS}x" != 'x' ; then
9626 WINGDI32_DELEGATE_TRUE=
9627 WINGDI32_DELEGATE_FALSE='#'
9628else
9629 WINGDI32_DELEGATE_TRUE='#'
9630 WINGDI32_DELEGATE_FALSE=
9631fi
9632
9633 if test "${native_win32_build}" = 'yes' ; then
9634 WIN32_NATIVE_BUILD_TRUE=
9635 WIN32_NATIVE_BUILD_FALSE='#'
9636else
9637 WIN32_NATIVE_BUILD_TRUE='#'
9638 WIN32_NATIVE_BUILD_FALSE=
9639fi
9640
9641 if test "${cygwin_build}" = 'yes' ; then
9642 CYGWIN_BUILD_TRUE=
9643 CYGWIN_BUILD_FALSE='#'
9644else
9645 CYGWIN_BUILD_TRUE='#'
9646 CYGWIN_BUILD_FALSE=
9647fi
9648
9649 if test "x${CC}" = 'xcl.exe' ; then
9650 USING_CL_TRUE=
9651 USING_CL_FALSE='#'
9652else
9653 USING_CL_TRUE='#'
9654 USING_CL_FALSE=
9655fi
9656
cristy3ed852e2009-09-05 21:47:34 +00009657
9658WinPathScript="${srcdirfull}/winpath.sh"
9659
9660
9661#
9662# Compiler flags tweaks
9663#
9664if test "${GCC}" != "yes"; then
9665 case "${host}" in
9666 *-*-hpux* )
9667 # aCC: HP ANSI C++ B3910B A.03.34
9668 CFLAGS="${CFLAGS} -Wp,-H30000"
9669 if test -n "${CXXFLAGS}"; then
9670 CXXFLAGS='-AA'
9671 else
9672 CXXFLAGS="${CXXFLAGS} -AA"
9673 fi
9674 ;;
9675 *-dec-osf5.* )
9676 # Compaq alphaev68-dec-osf5.1 compiler
9677 if test -n "${CXXFLAGS}"; then
9678 CXXFLAGS='-std strict_ansi -noimplicit_include'
9679 else
9680 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9681 fi
9682 esac
9683fi
9684
9685# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00009686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00009687$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009688if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009689 $as_echo_n "(cached) " >&6
9690else
9691
9692im_cv_ld_lazyload='none'
9693case "${host}" in
9694 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9695 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9696 im_cv_ld_lazyload='-Wl,-zlazyload'
9697 fi
9698 ;;
9699esac
9700
9701fi
cristy8b350f62009-11-15 23:12:43 +00009702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00009703$as_echo "$im_cv_ld_lazyload" >&6; }
9704if test "${im_cv_ld_lazyload}" != 'none' ; then
9705 if test -z "${LDFLAGS}" ; then
9706 LDFLAGS="${im_cv_ld_lazyload}"
9707 else
9708 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9709 fi
9710fi
9711
9712case "$host" in
cristyc37574e2013-02-16 01:04:55 +00009713 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +00009714 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +00009715 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00009716if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009717 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9718else
9719 build_osxuniversal=no
9720fi
9721
9722
cristyc37574e2013-02-16 01:04:55 +00009723 if test "${build_osxuniversal}" != no ; then
9724 if test "$enable_dependency_tracking" != no ; then
9725 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00009726Please re-run configure with these options:
9727 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00009728 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +00009729 fi
9730 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9731 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9732 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +00009733 fi
9734 ;;
9735esac
9736
cristy0151ae12011-10-28 16:32:29 +00009737#
9738# ARCH specific include directory
9739#
9740
cristy670aa3c2011-11-03 00:54:00 +00009741# Check whether --with-includearch-dir was given.
9742if test "${with_includearch_dir+set}" = set; then :
9743 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009744else
cristy670aa3c2011-11-03 00:54:00 +00009745 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00009746fi
9747
9748
cristyd286fd72013-02-24 19:25:33 +00009749eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009750
cristy0151ae12011-10-28 16:32:29 +00009751
9752#
9753# ARCH specific configuration directory
9754#
9755
cristy670aa3c2011-11-03 00:54:00 +00009756# Check whether --with-sharearch-dir was given.
9757if test "${with_sharearch_dir+set}" = set; then :
9758 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00009759else
cristy408ebcd2011-11-14 01:36:57 +00009760 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00009761fi
9762
9763
cristy670aa3c2011-11-03 00:54:00 +00009764eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00009765
cristy0151ae12011-10-28 16:32:29 +00009766
cristy2ec87cc2013-02-18 17:46:50 +00009767# Path to the pkgconfig folder
9768
9769# Check whether --with-pkgconfigdir was given.
9770if test "${with_pkgconfigdir+set}" = set; then :
9771 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9772else
9773 pkgconfigdir='${libdir}/pkgconfig'
9774fi
9775
9776
9777
cristy0151ae12011-10-28 16:32:29 +00009778#
cristy3ed852e2009-09-05 21:47:34 +00009779# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +00009780#
9781# Find Posix threads library
9782#
cristy3ed852e2009-09-05 21:47:34 +00009783
9784# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00009785if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009786 withval=$with_threads; with_threads=$withval
9787else
9788 with_threads='yes'
9789fi
9790
9791
cristy1ae5c992013-07-30 14:55:07 +00009792THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00009793have_threads=no
9794if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00009795
9796
cristy73bd4a52010-10-05 11:24:23 +00009797ac_ext=c
9798ac_cpp='$CPP $CPPFLAGS'
9799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9801ac_compiler_gnu=$ac_cv_c_compiler_gnu
9802
9803ax_pthread_ok=no
9804
9805# We used to check for pthread.h first, but this fails if pthread.h
9806# requires special compiler flags (e.g. on True64 or Sequent).
9807# It gets checked for in the link test anyway.
9808
9809# First of all, check if the user has set any of the PTHREAD_LIBS,
9810# etcetera environment variables, and if threads linking works using
9811# them:
9812if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9813 save_CFLAGS="$CFLAGS"
9814 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9815 save_LIBS="$LIBS"
9816 LIBS="$PTHREAD_LIBS $LIBS"
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9818$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h. */
9821
9822/* Override any GCC internal prototype to avoid an error.
9823 Use char because int might match the return type of a GCC
9824 builtin and then its argument prototype would still apply. */
9825#ifdef __cplusplus
9826extern "C"
9827#endif
9828char pthread_join ();
9829int
9830main ()
9831{
9832return pthread_join ();
9833 ;
9834 return 0;
9835}
9836_ACEOF
9837if ac_fn_c_try_link "$LINENO"; then :
9838 ax_pthread_ok=yes
9839fi
9840rm -f core conftest.err conftest.$ac_objext \
9841 conftest$ac_exeext conftest.$ac_ext
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9843$as_echo "$ax_pthread_ok" >&6; }
9844 if test x"$ax_pthread_ok" = xno; then
9845 PTHREAD_LIBS=""
9846 PTHREAD_CFLAGS=""
9847 fi
9848 LIBS="$save_LIBS"
9849 CFLAGS="$save_CFLAGS"
9850fi
9851
9852# We must check for the threads library under a number of different
9853# names; the ordering is very important because some systems
9854# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9855# libraries is broken (non-POSIX).
9856
9857# Create a list of thread flags to try. Items starting with a "-" are
9858# C compiler flags, and other items are library names, except for "none"
9859# which indicates that we try without any flags at all, and "pthread-config"
9860# which is a program returning the flags for the Pth emulation library.
9861
cristy2ec87cc2013-02-18 17:46:50 +00009862ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009863
9864# The ordering *is* (sometimes) important. Some notes on the
9865# individual items follow:
9866
9867# pthreads: AIX (must check this before -lpthread)
9868# none: in case threads are in libc; should be tried before -Kthread and
9869# other compiler flags to prevent continual compiler warnings
9870# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9871# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9872# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9873# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9874# -pthreads: Solaris/gcc
9875# -mthreads: Mingw32/gcc, Lynx/gcc
9876# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9877# doesn't hurt to check since this sometimes defines pthreads too;
9878# also defines -D_REENTRANT)
9879# ... -mt is also the pthreads flag for HP/aCC
9880# pthread: Linux, etcetera
9881# --thread-safe: KAI C++
9882# pthread-config: use pthread-config program (for GNU Pth library)
9883
cristy2ec87cc2013-02-18 17:46:50 +00009884case ${host_os} in
9885 solaris*)
cristy73bd4a52010-10-05 11:24:23 +00009886
9887 # On Solaris (at least, for some versions), libc contains stubbed
9888 # (non-functional) versions of the pthreads routines, so link-based
9889 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9890 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9891 # a function called by this macro, so we could check for that, but
9892 # who knows whether they'll stub that too in a future libc.) So,
9893 # we'll just look for -pthreads and -lpthread first:
9894
9895 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9896 ;;
9897
cristy2ec87cc2013-02-18 17:46:50 +00009898 darwin*)
cristya316db12011-10-24 00:49:45 +00009899 ax_pthread_flags="-pthread $ax_pthread_flags"
9900 ;;
cristy73bd4a52010-10-05 11:24:23 +00009901esac
9902
cristy17491be2014-06-24 01:10:53 +00009903# Clang doesn't consider unrecognized options an error unless we specify
9904# -Werror. We throw in some extra Clang-specific options to ensure that
9905# this doesn't happen for GCC, which also accepts -Werror.
9906
9907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
9908$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
9909save_CFLAGS="$CFLAGS"
9910ax_pthread_extra_flags="-Werror"
9911CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
9912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h. */
9914int foo(void);
9915int
9916main ()
9917{
9918foo()
9919 ;
9920 return 0;
9921}
9922_ACEOF
9923if ac_fn_c_try_compile "$LINENO"; then :
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9925$as_echo "yes" >&6; }
9926else
9927 ax_pthread_extra_flags=
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929$as_echo "no" >&6; }
9930fi
9931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9932CFLAGS="$save_CFLAGS"
9933
cristy73bd4a52010-10-05 11:24:23 +00009934if test x"$ax_pthread_ok" = xno; then
9935for flag in $ax_pthread_flags; do
9936
9937 case $flag in
9938 none)
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9940$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9941 ;;
9942
9943 -*)
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9945$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9946 PTHREAD_CFLAGS="$flag"
9947 ;;
9948
cristya316db12011-10-24 00:49:45 +00009949 pthread-config)
9950 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009951set dummy pthread-config; ac_word=$2
9952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9953$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009954if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009955 $as_echo_n "(cached) " >&6
9956else
9957 if test -n "$ax_pthread_config"; then
9958 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9959else
9960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9961for as_dir in $PATH
9962do
9963 IFS=$as_save_IFS
9964 test -z "$as_dir" && as_dir=.
9965 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009967 ac_cv_prog_ax_pthread_config="yes"
9968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9969 break 2
9970 fi
9971done
9972 done
9973IFS=$as_save_IFS
9974
9975 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9976fi
9977fi
9978ax_pthread_config=$ac_cv_prog_ax_pthread_config
9979if test -n "$ax_pthread_config"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9981$as_echo "$ax_pthread_config" >&6; }
9982else
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9984$as_echo "no" >&6; }
9985fi
9986
9987
cristya316db12011-10-24 00:49:45 +00009988 if test x"$ax_pthread_config" = xno; then continue; fi
9989 PTHREAD_CFLAGS="`pthread-config --cflags`"
9990 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9991 ;;
cristy73bd4a52010-10-05 11:24:23 +00009992
9993 *)
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9995$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9996 PTHREAD_LIBS="-l$flag"
9997 ;;
9998 esac
9999
10000 save_LIBS="$LIBS"
10001 save_CFLAGS="$CFLAGS"
10002 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010003 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010004
10005 # Check for various functions. We must include pthread.h,
10006 # since some functions may be macros. (On the Sequent, we
10007 # need a special flag -Kthread to make this header compile.)
10008 # We check for pthread_join because it is in -lpthread on IRIX
10009 # while pthread_create is in libc. We check for pthread_attr_init
10010 # due to DEC craziness with -lpthreads. We check for
10011 # pthread_cleanup_push because it is one of the few pthread
10012 # functions on Solaris that doesn't have a non-functional libc stub.
10013 # We try pthread_create on general principles.
10014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10015/* end confdefs.h. */
10016#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010017 static void routine(void *a) { a = 0; }
10018 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010019int
10020main ()
10021{
10022pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010023 pthread_create(&th, 0, start_routine, 0);
10024 pthread_join(th, 0);
10025 pthread_attr_init(&attr);
10026 pthread_cleanup_push(routine, 0);
10027 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010028 ;
10029 return 0;
10030}
10031_ACEOF
10032if ac_fn_c_try_link "$LINENO"; then :
10033 ax_pthread_ok=yes
10034fi
10035rm -f core conftest.err conftest.$ac_objext \
10036 conftest$ac_exeext conftest.$ac_ext
10037
10038 LIBS="$save_LIBS"
10039 CFLAGS="$save_CFLAGS"
10040
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10042$as_echo "$ax_pthread_ok" >&6; }
10043 if test "x$ax_pthread_ok" = xyes; then
10044 break;
10045 fi
10046
10047 PTHREAD_LIBS=""
10048 PTHREAD_CFLAGS=""
10049done
10050fi
10051
10052# Various other checks:
10053if test "x$ax_pthread_ok" = xyes; then
10054 save_LIBS="$LIBS"
10055 LIBS="$PTHREAD_LIBS $LIBS"
10056 save_CFLAGS="$CFLAGS"
10057 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10058
10059 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010061$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010062 attr_name=unknown
10063 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010065/* end confdefs.h. */
10066#include <pthread.h>
10067int
10068main ()
10069{
cristya316db12011-10-24 00:49:45 +000010070int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010071 ;
10072 return 0;
10073}
10074_ACEOF
10075if ac_fn_c_try_link "$LINENO"; then :
10076 attr_name=$attr; break
10077fi
10078rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010080 done
cristy73bd4a52010-10-05 11:24:23 +000010081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10082$as_echo "$attr_name" >&6; }
10083 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10084
10085cat >>confdefs.h <<_ACEOF
10086#define PTHREAD_CREATE_JOINABLE $attr_name
10087_ACEOF
10088
10089 fi
10090
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10092$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10093 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010094 case ${host_os} in
10095 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10096 osf* | hpux*) flag="-D_REENTRANT";;
10097 solaris*)
10098 if test "$GCC" = "yes"; then
10099 flag="-D_REENTRANT"
10100 else
cristy17491be2014-06-24 01:10:53 +000010101 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010102 flag="-mt -D_REENTRANT"
10103 fi
10104 ;;
cristy73bd4a52010-10-05 11:24:23 +000010105 esac
cristy17491be2014-06-24 01:10:53 +000010106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10107$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010108 if test "x$flag" != xno; then
10109 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10110 fi
10111
cristya316db12011-10-24 00:49:45 +000010112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10113$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10114if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116else
10117
10118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10119/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010120#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010121int
10122main ()
10123{
10124int i = PTHREAD_PRIO_INHERIT;
10125 ;
10126 return 0;
10127}
10128_ACEOF
10129if ac_fn_c_try_link "$LINENO"; then :
10130 ax_cv_PTHREAD_PRIO_INHERIT=yes
10131else
10132 ax_cv_PTHREAD_PRIO_INHERIT=no
10133fi
10134rm -f core conftest.err conftest.$ac_objext \
10135 conftest$ac_exeext conftest.$ac_ext
10136
10137fi
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10139$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10140 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10141
10142$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10143
10144fi
10145
cristy73bd4a52010-10-05 11:24:23 +000010146 LIBS="$save_LIBS"
10147 CFLAGS="$save_CFLAGS"
10148
cristy23493c42013-04-11 16:04:59 +000010149 # More AIX lossage: compile with *_r variant
10150 if test "x$GCC" != xyes; then
10151 case $host_os in
10152 aix*)
10153 case "x/$CC" in #(
10154 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10155 #handle absolute path differently from PATH based program lookup
10156 case "x$CC" in #(
10157 x/*) :
10158 if as_fn_executable_p ${CC}_r; then :
10159 PTHREAD_CC="${CC}_r"
10160fi ;; #(
10161 *) :
10162 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010163do
10164 # Extract the first word of "$ac_prog", so it can be a program name with args.
10165set dummy $ac_prog; ac_word=$2
10166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010168if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010169 $as_echo_n "(cached) " >&6
10170else
10171 if test -n "$PTHREAD_CC"; then
10172 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10173else
10174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10175for as_dir in $PATH
10176do
10177 IFS=$as_save_IFS
10178 test -z "$as_dir" && as_dir=.
10179 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010181 ac_cv_prog_PTHREAD_CC="$ac_prog"
10182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10183 break 2
10184 fi
10185done
10186 done
10187IFS=$as_save_IFS
10188
10189fi
10190fi
10191PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10192if test -n "$PTHREAD_CC"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10194$as_echo "$PTHREAD_CC" >&6; }
10195else
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197$as_echo "no" >&6; }
10198fi
10199
10200
10201 test -n "$PTHREAD_CC" && break
10202done
cristy23493c42013-04-11 16:04:59 +000010203test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10204 ;;
10205esac ;; #(
10206 *) :
10207 ;;
10208esac
10209 ;;
10210 esac
cristya316db12011-10-24 00:49:45 +000010211 fi
cristy73bd4a52010-10-05 11:24:23 +000010212fi
10213
cristy23493c42013-04-11 16:04:59 +000010214test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10215
cristy73bd4a52010-10-05 11:24:23 +000010216
10217
10218
10219
10220# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10221if test x"$ax_pthread_ok" = xyes; then
10222
10223$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10224
10225 :
10226else
10227 ax_pthread_ok=no
10228
10229fi
10230ac_ext=c
10231ac_cpp='$CPP $CPPFLAGS'
10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10234ac_compiler_gnu=$ac_cv_c_compiler_gnu
10235
10236
cristy7acf8fb2010-09-23 19:58:53 +000010237 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000010238 have_threads=yes
10239 DEF_THREAD="$PTHREAD_CFLAGS"
10240 CFLAGS="$CFLAGS $DEF_THREAD"
10241 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000010242 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000010243 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000010244 { $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 +000010245$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10246 CC="$PTHREAD_CC"
10247 fi
cristy55bf91c2010-09-24 00:29:41 +000010248
10249$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10250
cristy3ed852e2009-09-05 21:47:34 +000010251 fi
10252fi
cristy1ae5c992013-07-30 14:55:07 +000010253LIBS="$LIBS $THREAD_LIBS"
10254
cristy3ed852e2009-09-05 21:47:34 +000010255
10256# Enable support for OpenMP
10257if test "$have_threads" != 'yes'; then
10258 ac_cv_prog_c_openmp=unsupported
10259fi
10260
10261 OPENMP_CFLAGS=
10262 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000010263if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010264 enableval=$enable_openmp;
10265fi
10266
10267 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000010268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000010269$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010270if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010271 $as_echo_n "(cached) " >&6
10272else
cristy8b350f62009-11-15 23:12:43 +000010273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010275
10276#ifndef _OPENMP
10277 choke me
10278#endif
10279#include <omp.h>
10280int main () { return omp_get_num_threads (); }
10281
10282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010284 ac_cv_prog_c_openmp='none needed'
10285else
cristy8b350f62009-11-15 23:12:43 +000010286 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000010287 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10288 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000010289 ac_save_CFLAGS=$CFLAGS
10290 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000010291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10292/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010293
10294#ifndef _OPENMP
10295 choke me
10296#endif
10297#include <omp.h>
10298int main () { return omp_get_num_threads (); }
10299
10300_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010301if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010302 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000010303fi
cristy8b350f62009-11-15 23:12:43 +000010304rm -f core conftest.err conftest.$ac_objext \
10305 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010306 CFLAGS=$ac_save_CFLAGS
10307 if test "$ac_cv_prog_c_openmp" != unsupported; then
10308 break
10309 fi
10310 done
10311fi
cristy8b350f62009-11-15 23:12:43 +000010312rm -f core conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010314fi
cristy8b350f62009-11-15 23:12:43 +000010315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000010316$as_echo "$ac_cv_prog_c_openmp" >&6; }
10317 case $ac_cv_prog_c_openmp in #(
10318 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000010319 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000010320 *)
cristy8b350f62009-11-15 23:12:43 +000010321 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000010322 esac
10323 fi
10324
10325
10326CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10327MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10328
cristy391f1ce2010-09-09 17:23:28 +000010329if test "$enable_openmp" != no; then
10330 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10331 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10332 fi
10333fi
cristy3ed852e2009-09-05 21:47:34 +000010334
cristy736173a2009-09-20 21:18:22 +000010335# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000010336
10337
cristy73bd4a52010-10-05 11:24:23 +000010338ac_ext=c
10339ac_cpp='$CPP $CPPFLAGS'
10340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343
10344ax_pthread_ok=no
10345
10346# We used to check for pthread.h first, but this fails if pthread.h
10347# requires special compiler flags (e.g. on True64 or Sequent).
10348# It gets checked for in the link test anyway.
10349
10350# First of all, check if the user has set any of the PTHREAD_LIBS,
10351# etcetera environment variables, and if threads linking works using
10352# them:
10353if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
10354 save_CFLAGS="$CFLAGS"
10355 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10356 save_LIBS="$LIBS"
10357 LIBS="$PTHREAD_LIBS $LIBS"
10358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
10359$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
10360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10361/* end confdefs.h. */
10362
10363/* Override any GCC internal prototype to avoid an error.
10364 Use char because int might match the return type of a GCC
10365 builtin and then its argument prototype would still apply. */
10366#ifdef __cplusplus
10367extern "C"
10368#endif
10369char pthread_join ();
10370int
10371main ()
10372{
10373return pthread_join ();
10374 ;
10375 return 0;
10376}
10377_ACEOF
10378if ac_fn_c_try_link "$LINENO"; then :
10379 ax_pthread_ok=yes
10380fi
10381rm -f core conftest.err conftest.$ac_objext \
10382 conftest$ac_exeext conftest.$ac_ext
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10384$as_echo "$ax_pthread_ok" >&6; }
10385 if test x"$ax_pthread_ok" = xno; then
10386 PTHREAD_LIBS=""
10387 PTHREAD_CFLAGS=""
10388 fi
10389 LIBS="$save_LIBS"
10390 CFLAGS="$save_CFLAGS"
10391fi
10392
10393# We must check for the threads library under a number of different
10394# names; the ordering is very important because some systems
10395# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10396# libraries is broken (non-POSIX).
10397
10398# Create a list of thread flags to try. Items starting with a "-" are
10399# C compiler flags, and other items are library names, except for "none"
10400# which indicates that we try without any flags at all, and "pthread-config"
10401# which is a program returning the flags for the Pth emulation library.
10402
cristy2ec87cc2013-02-18 17:46:50 +000010403ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000010404
10405# The ordering *is* (sometimes) important. Some notes on the
10406# individual items follow:
10407
10408# pthreads: AIX (must check this before -lpthread)
10409# none: in case threads are in libc; should be tried before -Kthread and
10410# other compiler flags to prevent continual compiler warnings
10411# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10412# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10413# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10414# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
10415# -pthreads: Solaris/gcc
10416# -mthreads: Mingw32/gcc, Lynx/gcc
10417# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10418# doesn't hurt to check since this sometimes defines pthreads too;
10419# also defines -D_REENTRANT)
10420# ... -mt is also the pthreads flag for HP/aCC
10421# pthread: Linux, etcetera
10422# --thread-safe: KAI C++
10423# pthread-config: use pthread-config program (for GNU Pth library)
10424
cristy2ec87cc2013-02-18 17:46:50 +000010425case ${host_os} in
10426 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000010427
10428 # On Solaris (at least, for some versions), libc contains stubbed
10429 # (non-functional) versions of the pthreads routines, so link-based
10430 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
10431 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
10432 # a function called by this macro, so we could check for that, but
10433 # who knows whether they'll stub that too in a future libc.) So,
10434 # we'll just look for -pthreads and -lpthread first:
10435
10436 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
10437 ;;
10438
cristy2ec87cc2013-02-18 17:46:50 +000010439 darwin*)
cristya316db12011-10-24 00:49:45 +000010440 ax_pthread_flags="-pthread $ax_pthread_flags"
10441 ;;
cristy73bd4a52010-10-05 11:24:23 +000010442esac
10443
cristy17491be2014-06-24 01:10:53 +000010444# Clang doesn't consider unrecognized options an error unless we specify
10445# -Werror. We throw in some extra Clang-specific options to ensure that
10446# this doesn't happen for GCC, which also accepts -Werror.
10447
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
10449$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
10450save_CFLAGS="$CFLAGS"
10451ax_pthread_extra_flags="-Werror"
10452CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
10453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454/* end confdefs.h. */
10455int foo(void);
10456int
10457main ()
10458{
10459foo()
10460 ;
10461 return 0;
10462}
10463_ACEOF
10464if ac_fn_c_try_compile "$LINENO"; then :
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10466$as_echo "yes" >&6; }
10467else
10468 ax_pthread_extra_flags=
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10470$as_echo "no" >&6; }
10471fi
10472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10473CFLAGS="$save_CFLAGS"
10474
cristy73bd4a52010-10-05 11:24:23 +000010475if test x"$ax_pthread_ok" = xno; then
10476for flag in $ax_pthread_flags; do
10477
10478 case $flag in
10479 none)
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10481$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10482 ;;
10483
10484 -*)
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
10486$as_echo_n "checking whether pthreads work with $flag... " >&6; }
10487 PTHREAD_CFLAGS="$flag"
10488 ;;
10489
cristya316db12011-10-24 00:49:45 +000010490 pthread-config)
10491 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000010492set dummy pthread-config; ac_word=$2
10493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10494$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010495if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010496 $as_echo_n "(cached) " >&6
10497else
10498 if test -n "$ax_pthread_config"; then
10499 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10500else
10501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10502for as_dir in $PATH
10503do
10504 IFS=$as_save_IFS
10505 test -z "$as_dir" && as_dir=.
10506 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010508 ac_cv_prog_ax_pthread_config="yes"
10509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10510 break 2
10511 fi
10512done
10513 done
10514IFS=$as_save_IFS
10515
10516 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10517fi
10518fi
10519ax_pthread_config=$ac_cv_prog_ax_pthread_config
10520if test -n "$ax_pthread_config"; then
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10522$as_echo "$ax_pthread_config" >&6; }
10523else
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10525$as_echo "no" >&6; }
10526fi
10527
10528
cristya316db12011-10-24 00:49:45 +000010529 if test x"$ax_pthread_config" = xno; then continue; fi
10530 PTHREAD_CFLAGS="`pthread-config --cflags`"
10531 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10532 ;;
cristy73bd4a52010-10-05 11:24:23 +000010533
10534 *)
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
10536$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
10537 PTHREAD_LIBS="-l$flag"
10538 ;;
10539 esac
10540
10541 save_LIBS="$LIBS"
10542 save_CFLAGS="$CFLAGS"
10543 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000010544 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000010545
10546 # Check for various functions. We must include pthread.h,
10547 # since some functions may be macros. (On the Sequent, we
10548 # need a special flag -Kthread to make this header compile.)
10549 # We check for pthread_join because it is in -lpthread on IRIX
10550 # while pthread_create is in libc. We check for pthread_attr_init
10551 # due to DEC craziness with -lpthreads. We check for
10552 # pthread_cleanup_push because it is one of the few pthread
10553 # functions on Solaris that doesn't have a non-functional libc stub.
10554 # We try pthread_create on general principles.
10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10556/* end confdefs.h. */
10557#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010558 static void routine(void *a) { a = 0; }
10559 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000010560int
10561main ()
10562{
10563pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000010564 pthread_create(&th, 0, start_routine, 0);
10565 pthread_join(th, 0);
10566 pthread_attr_init(&attr);
10567 pthread_cleanup_push(routine, 0);
10568 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010569 ;
10570 return 0;
10571}
10572_ACEOF
10573if ac_fn_c_try_link "$LINENO"; then :
10574 ax_pthread_ok=yes
10575fi
10576rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578
10579 LIBS="$save_LIBS"
10580 CFLAGS="$save_CFLAGS"
10581
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10583$as_echo "$ax_pthread_ok" >&6; }
10584 if test "x$ax_pthread_ok" = xyes; then
10585 break;
10586 fi
10587
10588 PTHREAD_LIBS=""
10589 PTHREAD_CFLAGS=""
10590done
10591fi
10592
10593# Various other checks:
10594if test "x$ax_pthread_ok" = xyes; then
10595 save_LIBS="$LIBS"
10596 LIBS="$PTHREAD_LIBS $LIBS"
10597 save_CFLAGS="$CFLAGS"
10598 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10599
10600 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000010601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000010602$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000010603 attr_name=unknown
10604 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000010606/* end confdefs.h. */
10607#include <pthread.h>
10608int
10609main ()
10610{
cristya316db12011-10-24 00:49:45 +000010611int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000010612 ;
10613 return 0;
10614}
10615_ACEOF
10616if ac_fn_c_try_link "$LINENO"; then :
10617 attr_name=$attr; break
10618fi
10619rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000010621 done
cristy73bd4a52010-10-05 11:24:23 +000010622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
10623$as_echo "$attr_name" >&6; }
10624 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
10625
10626cat >>confdefs.h <<_ACEOF
10627#define PTHREAD_CREATE_JOINABLE $attr_name
10628_ACEOF
10629
10630 fi
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
10633$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
10634 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000010635 case ${host_os} in
10636 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
10637 osf* | hpux*) flag="-D_REENTRANT";;
10638 solaris*)
10639 if test "$GCC" = "yes"; then
10640 flag="-D_REENTRANT"
10641 else
cristy17491be2014-06-24 01:10:53 +000010642 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000010643 flag="-mt -D_REENTRANT"
10644 fi
10645 ;;
cristy73bd4a52010-10-05 11:24:23 +000010646 esac
cristy17491be2014-06-24 01:10:53 +000010647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
10648$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010649 if test "x$flag" != xno; then
10650 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
10651 fi
10652
cristya316db12011-10-24 00:49:45 +000010653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10654$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10655if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657else
10658
10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10660/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000010661#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000010662int
10663main ()
10664{
10665int i = PTHREAD_PRIO_INHERIT;
10666 ;
10667 return 0;
10668}
10669_ACEOF
10670if ac_fn_c_try_link "$LINENO"; then :
10671 ax_cv_PTHREAD_PRIO_INHERIT=yes
10672else
10673 ax_cv_PTHREAD_PRIO_INHERIT=no
10674fi
10675rm -f core conftest.err conftest.$ac_objext \
10676 conftest$ac_exeext conftest.$ac_ext
10677
10678fi
10679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10680$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10681 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
10682
10683$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10684
10685fi
10686
cristy73bd4a52010-10-05 11:24:23 +000010687 LIBS="$save_LIBS"
10688 CFLAGS="$save_CFLAGS"
10689
cristy23493c42013-04-11 16:04:59 +000010690 # More AIX lossage: compile with *_r variant
10691 if test "x$GCC" != xyes; then
10692 case $host_os in
10693 aix*)
10694 case "x/$CC" in #(
10695 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10696 #handle absolute path differently from PATH based program lookup
10697 case "x$CC" in #(
10698 x/*) :
10699 if as_fn_executable_p ${CC}_r; then :
10700 PTHREAD_CC="${CC}_r"
10701fi ;; #(
10702 *) :
10703 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000010704do
10705 # Extract the first word of "$ac_prog", so it can be a program name with args.
10706set dummy $ac_prog; ac_word=$2
10707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10708$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010709if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010710 $as_echo_n "(cached) " >&6
10711else
10712 if test -n "$PTHREAD_CC"; then
10713 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10714else
10715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716for as_dir in $PATH
10717do
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010722 ac_cv_prog_PTHREAD_CC="$ac_prog"
10723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10725 fi
10726done
10727 done
10728IFS=$as_save_IFS
10729
10730fi
10731fi
10732PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10733if test -n "$PTHREAD_CC"; then
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10735$as_echo "$PTHREAD_CC" >&6; }
10736else
10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10738$as_echo "no" >&6; }
10739fi
10740
10741
10742 test -n "$PTHREAD_CC" && break
10743done
cristy23493c42013-04-11 16:04:59 +000010744test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10745 ;;
10746esac ;; #(
10747 *) :
10748 ;;
10749esac
10750 ;;
10751 esac
cristya316db12011-10-24 00:49:45 +000010752 fi
cristy73bd4a52010-10-05 11:24:23 +000010753fi
10754
cristy23493c42013-04-11 16:04:59 +000010755test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10756
cristy73bd4a52010-10-05 11:24:23 +000010757
10758
10759
10760
10761# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10762if test x"$ax_pthread_ok" = xyes; then
10763
10764$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10765
10766 :
10767else
10768 ax_pthread_ok=no
10769
10770fi
10771ac_ext=c
10772ac_cpp='$CPP $CPPFLAGS'
10773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10775ac_compiler_gnu=$ac_cv_c_compiler_gnu
10776
10777
10778
10779# Check whether --enable-opencl was given.
10780if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000010781 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000010782else
cristy48794642012-09-02 15:19:08 +000010783 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000010784fi
10785
10786
cristy48794642012-09-02 15:19:08 +000010787if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000010788 ac_ext=c
10789ac_cpp='$CPP $CPPFLAGS'
10790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10792ac_compiler_gnu=$ac_cv_c_compiler_gnu
10793
cristy75314cc2012-09-15 23:08:29 +000010794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
10795$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
10796if ${ax_cv_c_compiler_ms+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798else
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800/* end confdefs.h. */
10801
10802int
10803main ()
10804{
10805#ifndef _MSC_VER
10806 choke me
10807#endif
10808
10809 ;
10810 return 0;
10811}
10812_ACEOF
10813if ac_fn_c_try_compile "$LINENO"; then :
10814 ax_compiler_ms=yes
10815else
10816 ax_compiler_ms=no
10817fi
10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819ax_cv_c_compiler_ms=$ax_compiler_ms
10820
10821fi
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
10823$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000010824 if test X$ax_compiler_ms = Xno; then :
10825 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
10826fi
10827
10828 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000010829 ax_save_CL_CFLAGS=$CL_CFLAGS
10830
10831 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010832 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10833 for ac_header in CL/cl.h OpenCL/cl.h
10834do :
10835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000010837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000010838 cat >>confdefs.h <<_ACEOF
10839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10840_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000010841 found_opencl_header='yes'
10842 break;
10843else
10844 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000010845fi
10846
10847done
10848
cristyfdc7d122013-08-17 20:46:45 +000010849
10850 if test X$found_opencl_header = Xno; then :
10851 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
10852 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
10853 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
10854 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
10855 for ac_header in CL/cl.h OpenCL/cl.h
10856do :
10857 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10858ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10859if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10860 cat >>confdefs.h <<_ACEOF
10861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10862_ACEOF
10863 found_opencl_header='yes'
10864 break;
10865else
10866 found_opencl_header='no'
10867fi
10868
10869done
10870
10871
10872fi
10873
10874 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000010875
10876 for ac_header in windows.h
10877do :
10878 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000010879if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000010880 cat >>confdefs.h <<_ACEOF
10881#define HAVE_WINDOWS_H 1
10882_ACEOF
10883
10884fi
10885
10886done
10887
10888
10889
10890
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
10892$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010893if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010894 $as_echo_n "(cached) " >&6
10895else
10896 ax_cv_check_cl_libcl=no
10897 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000010898 x86_64) ax_check_cl_libdir=lib64
10899 ax_check_cl_amd_libdir=x86_64
10900 ;;
10901 *) ax_check_cl_libdir=lib
10902 ax_check_cl_amd_libdir=x86
10903 ;;
cristy73bd4a52010-10-05 11:24:23 +000010904 esac
10905 ax_save_CPPFLAGS=$CPPFLAGS
10906 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
10907 ax_save_LIBS=$LIBS
10908 LIBS=""
10909 ax_check_libs="-lOpenCL -lCL -lclparser"
10910 for ax_lib in $ax_check_libs; do
10911 if test X$ax_compiler_ms = Xyes; then :
10912 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
10913else
10914 ax_try_lib=$ax_lib
10915fi
10916 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
10917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918/* end confdefs.h. */
10919
10920 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10921 # include <windows.h>
10922 # endif
10923 # ifdef HAVE_CL_CL_H
10924 # include <CL/cl.h>
10925 # elif defined(HAVE_OPENCL_CL_H)
10926 # include <OpenCL/cl.h>
10927 # else
10928 # error no CL.h
10929 # endif
10930int
10931main ()
10932{
10933clCreateContextFromType(0,0,0,0,0)
10934 ;
10935 return 0;
10936}
10937_ACEOF
10938if ac_fn_c_try_link "$LINENO"; then :
10939 ax_cv_check_cl_libcl=$ax_try_lib; break
10940else
10941 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"
10942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943/* end confdefs.h. */
10944
10945 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10946 # include <windows.h>
10947 # endif
10948 # ifdef HAVE_CL_CL_H
10949 # include <CL/cl.h>
10950 # elif defined(HAVE_OPENCL_CL_H)
10951 # include <OpenCL/cl.h>
10952 # else
10953 # error no CL.h
10954 # endif
10955int
10956main ()
10957{
10958clCreateContextFromType(0,0,0,0,0)
10959 ;
10960 return 0;
10961}
10962_ACEOF
10963if ac_fn_c_try_link "$LINENO"; then :
10964 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
10965else
cristy78c5a0c2010-12-04 20:00:59 +000010966 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 +000010967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968/* end confdefs.h. */
10969
10970 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10971 # include <windows.h>
10972 # endif
10973 # ifdef HAVE_CL_CL_H
10974 # include <CL/cl.h>
10975 # elif defined(HAVE_OPENCL_CL_H)
10976 # include <OpenCL/cl.h>
10977 # else
10978 # error no CL.h
10979 # endif
10980int
10981main ()
10982{
10983clCreateContextFromType(0,0,0,0,0)
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988if ac_fn_c_try_link "$LINENO"; then :
10989 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000010990else
10991 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"
10992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10993/* end confdefs.h. */
10994
10995 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10996 # include <windows.h>
10997 # endif
10998 # ifdef HAVE_CL_CL_H
10999 # include <CL/cl.h>
11000 # elif defined(HAVE_OPENCL_CL_H)
11001 # include <OpenCL/cl.h>
11002 # else
11003 # error no CL.h
11004 # endif
11005int
11006main ()
11007{
11008clCreateContextFromType(0,0,0,0,0)
11009 ;
11010 return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"; then :
11014 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
11015
11016fi
11017rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019
11020
cristy73bd4a52010-10-05 11:24:23 +000011021fi
11022rm -f core conftest.err conftest.$ac_objext \
11023 conftest$ac_exeext conftest.$ac_ext
11024fi
11025rm -f core conftest.err conftest.$ac_objext \
11026 conftest$ac_exeext conftest.$ac_ext
11027fi
11028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
11030 done
11031
cristyc3f8b8e2011-12-22 14:55:16 +000011032 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000011033 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000011034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11035/* end confdefs.h. */
11036
11037 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11038 # include <windows.h>
11039 # endif
11040 # ifdef HAVE_CL_CL_H
11041 # include <CL/cl.h>
11042 # elif defined(HAVE_OPENCL_CL_H)
11043 # include <OpenCL/cl.h>
11044 # else
11045 # error no CL.h
11046 # endif
11047int
11048main ()
11049{
11050clCreateContextFromType(0,0,0,0,0)
11051 ;
11052 return 0;
11053}
11054_ACEOF
11055if ac_fn_c_try_link "$LINENO"; then :
11056 ax_cv_check_cl_libcl=$LIBS
11057fi
11058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060fi
11061
11062 LIBS=$ax_save_LIBS
11063 CPPFLAGS=$ax_save_CPPFLAGS
11064fi
11065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
11066$as_echo "$ax_cv_check_cl_libcl" >&6; }
11067
11068 if test "X$ax_cv_check_cl_libcl" = Xno; then :
11069 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
11070else
11071 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
11072$as_echo "#define _OPENCL 1" >>confdefs.h
11073
11074fi
11075 ac_ext=c
11076ac_cpp='$CPP $CPPFLAGS'
11077ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11078ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11079ac_compiler_gnu=$ac_cv_c_compiler_gnu
11080
11081fi
11082
11083
11084
cristy0c832c62014-03-07 22:21:04 +000011085#remove static link on Linux
11086CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
11087
cristy73bd4a52010-10-05 11:24:23 +000011088
cristyc7083c12009-10-14 03:16:55 +000011089CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000011090CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000011091LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000011092
cristy391f1ce2010-09-09 17:23:28 +000011093if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000011094 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000011095 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
11096 fi
cristyfd9dcd42010-08-08 18:07:02 +000011097fi
cristy2e8b51d2009-10-17 18:26:15 +000011098
cristy3ed852e2009-09-05 21:47:34 +000011099########
11100#
11101# Check for large file support
11102#
11103########
11104# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000011105if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011106 enableval=$enable_largefile;
11107fi
11108
11109if test "$enable_largefile" != no; then
11110
cristy8b350f62009-11-15 23:12:43 +000011111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011112$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011113if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011114 $as_echo_n "(cached) " >&6
11115else
11116 ac_cv_sys_largefile_CC=no
11117 if test "$GCC" != yes; then
11118 ac_save_CC=$CC
11119 while :; do
11120 # IRIX 6.2 and later do not support large files by default,
11121 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000011122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011123/* end confdefs.h. */
11124#include <sys/types.h>
11125 /* Check that off_t can represent 2**63 - 1 correctly.
11126 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11127 since some C++ compilers masquerading as C compilers
11128 incorrectly reject 9223372036854775807. */
11129#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11131 && LARGE_OFF_T % 2147483647 == 1)
11132 ? 1 : -1];
11133int
11134main ()
11135{
11136
11137 ;
11138 return 0;
11139}
11140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011141 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011142 break
cristy3ed852e2009-09-05 21:47:34 +000011143fi
cristy3ed852e2009-09-05 21:47:34 +000011144rm -f core conftest.err conftest.$ac_objext
11145 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000011146 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011147 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000011148fi
cristy3ed852e2009-09-05 21:47:34 +000011149rm -f core conftest.err conftest.$ac_objext
11150 break
11151 done
11152 CC=$ac_save_CC
11153 rm -f conftest.$ac_ext
11154 fi
11155fi
cristy8b350f62009-11-15 23:12:43 +000011156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000011157$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11158 if test "$ac_cv_sys_largefile_CC" != no; then
11159 CC=$CC$ac_cv_sys_largefile_CC
11160 fi
11161
cristy8b350f62009-11-15 23:12:43 +000011162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011163$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011164if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011165 $as_echo_n "(cached) " >&6
11166else
11167 while :; do
cristy8b350f62009-11-15 23:12:43 +000011168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011169/* end confdefs.h. */
11170#include <sys/types.h>
11171 /* Check that off_t can represent 2**63 - 1 correctly.
11172 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11173 since some C++ compilers masquerading as C compilers
11174 incorrectly reject 9223372036854775807. */
11175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11177 && LARGE_OFF_T % 2147483647 == 1)
11178 ? 1 : -1];
11179int
11180main ()
11181{
11182
11183 ;
11184 return 0;
11185}
11186_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011187if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011188 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000011189fi
cristy3ed852e2009-09-05 21:47:34 +000011190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011192/* end confdefs.h. */
11193#define _FILE_OFFSET_BITS 64
11194#include <sys/types.h>
11195 /* Check that off_t can represent 2**63 - 1 correctly.
11196 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11197 since some C++ compilers masquerading as C compilers
11198 incorrectly reject 9223372036854775807. */
11199#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11201 && LARGE_OFF_T % 2147483647 == 1)
11202 ? 1 : -1];
11203int
11204main ()
11205{
11206
11207 ;
11208 return 0;
11209}
11210_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011211if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011212 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000011213fi
cristy3ed852e2009-09-05 21:47:34 +000011214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11215 ac_cv_sys_file_offset_bits=unknown
11216 break
11217done
11218fi
cristy8b350f62009-11-15 23:12:43 +000011219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000011220$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11221case $ac_cv_sys_file_offset_bits in #(
11222 no | unknown) ;;
11223 *)
11224cat >>confdefs.h <<_ACEOF
11225#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11226_ACEOF
11227;;
11228esac
11229rm -rf conftest*
11230 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000011231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011232$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011233if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011234 $as_echo_n "(cached) " >&6
11235else
11236 while :; do
cristy8b350f62009-11-15 23:12:43 +000011237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011238/* end confdefs.h. */
11239#include <sys/types.h>
11240 /* Check that off_t can represent 2**63 - 1 correctly.
11241 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11242 since some C++ compilers masquerading as C compilers
11243 incorrectly reject 9223372036854775807. */
11244#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11246 && LARGE_OFF_T % 2147483647 == 1)
11247 ? 1 : -1];
11248int
11249main ()
11250{
11251
11252 ;
11253 return 0;
11254}
11255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011256if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011257 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000011258fi
cristy3ed852e2009-09-05 21:47:34 +000011259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000011260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011261/* end confdefs.h. */
11262#define _LARGE_FILES 1
11263#include <sys/types.h>
11264 /* Check that off_t can represent 2**63 - 1 correctly.
11265 We can't simply define LARGE_OFF_T to be 9223372036854775807,
11266 since some C++ compilers masquerading as C compilers
11267 incorrectly reject 9223372036854775807. */
11268#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11270 && LARGE_OFF_T % 2147483647 == 1)
11271 ? 1 : -1];
11272int
11273main ()
11274{
11275
11276 ;
11277 return 0;
11278}
11279_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011280if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011281 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000011282fi
cristy3ed852e2009-09-05 21:47:34 +000011283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11284 ac_cv_sys_large_files=unknown
11285 break
11286done
11287fi
cristy8b350f62009-11-15 23:12:43 +000011288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011289$as_echo "$ac_cv_sys_large_files" >&6; }
11290case $ac_cv_sys_large_files in #(
11291 no | unknown) ;;
11292 *)
11293cat >>confdefs.h <<_ACEOF
11294#define _LARGE_FILES $ac_cv_sys_large_files
11295_ACEOF
11296;;
11297esac
11298rm -rf conftest*
11299 fi
cristy14fefe52012-05-21 00:59:18 +000011300
11301
cristy3ed852e2009-09-05 21:47:34 +000011302fi
11303
cristy8b350f62009-11-15 23:12:43 +000011304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000011305$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011306if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011307 $as_echo_n "(cached) " >&6
11308else
11309 while :; do
cristy8b350f62009-11-15 23:12:43 +000011310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011311/* end confdefs.h. */
11312#include <sys/types.h> /* for off_t */
11313 #include <stdio.h>
11314int
11315main ()
11316{
11317int (*fp) (FILE *, off_t, int) = fseeko;
11318 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11319 ;
11320 return 0;
11321}
11322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011323if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011324 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000011325fi
cristy8b350f62009-11-15 23:12:43 +000011326rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext conftest.$ac_ext
11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011329/* end confdefs.h. */
11330#define _LARGEFILE_SOURCE 1
11331#include <sys/types.h> /* for off_t */
11332 #include <stdio.h>
11333int
11334main ()
11335{
11336int (*fp) (FILE *, off_t, int) = fseeko;
11337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11338 ;
11339 return 0;
11340}
11341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011343 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000011344fi
cristy8b350f62009-11-15 23:12:43 +000011345rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011347 ac_cv_sys_largefile_source=unknown
11348 break
11349done
11350fi
cristy8b350f62009-11-15 23:12:43 +000011351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000011352$as_echo "$ac_cv_sys_largefile_source" >&6; }
11353case $ac_cv_sys_largefile_source in #(
11354 no | unknown) ;;
11355 *)
11356cat >>confdefs.h <<_ACEOF
11357#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11358_ACEOF
11359;;
11360esac
11361rm -rf conftest*
11362
11363# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11364# in glibc 2.1.3, but that breaks too many other things.
11365# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11366if test $ac_cv_sys_largefile_source != unknown; then
11367
cristy8b350f62009-11-15 23:12:43 +000011368$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011369
11370fi
11371
11372LFS_CPPFLAGS=''
11373if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000011374 case $ac_cv_sys_file_offset_bits in
11375 no)
11376 # nothing to do here as the host supports LFS fine
11377 ;;
11378 unknown)
cristy8b350f62009-11-15 23:12:43 +000011379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000011380$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000011381 if test "$cross_compiling" = yes; then :
11382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000011383$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000011384as_fn_error $? "cannot run test program while cross compiling
11385See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000011386else
cristy8b350f62009-11-15 23:12:43 +000011387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011389#include <unistd.h>
11390 main () {
11391 exit(!(sizeof(off_t) == 8));
11392 }
cristyda16f162011-02-19 23:52:17 +000011393int
11394main ()
11395{
11396
11397 ;
11398 return 0;
11399}
cristy3ed852e2009-09-05 21:47:34 +000011400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011401if ac_fn_c_try_run "$LINENO"; then :
11402 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000011403
cristyad38abe2012-12-23 23:03:21 +000011404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11405$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011406else
cristyad38abe2012-12-23 23:03:21 +000011407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11408$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000011409fi
cristy8b350f62009-11-15 23:12:43 +000011410rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11411 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011412fi
11413
cristyc1e0cc12011-09-21 16:41:16 +000011414 ;;
11415 *)
11416 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11417 ;;
11418 esac
cristy3ed852e2009-09-05 21:47:34 +000011419 if test "$ac_cv_sys_large_files" != 'no'; then
11420 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11421 fi
11422 if test "$ac_cv_sys_largefile_source" != 'no'; then
11423 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11424 fi
11425fi
11426
11427
cristy3ed852e2009-09-05 21:47:34 +000011428# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000011429enable_dlopen=yes
11430
11431
11432
11433case `pwd` in
11434 *\ * | *\ *)
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11436$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11437esac
11438
11439
11440
Cristy15f22012015-11-14 17:51:30 -050011441macro_version='2.4.6'
11442macro_revision='2.4.6'
cristy73bd4a52010-10-05 11:24:23 +000011443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
Cristy15f22012015-11-14 17:51:30 -050011456ltmain=$ac_aux_dir/ltmain.sh
cristy73bd4a52010-10-05 11:24:23 +000011457
cristy0c60a692010-11-04 01:09:47 +000011458# Backslashify metacharacters that are still active within
11459# double-quoted strings.
11460sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11461
11462# Same as above, but do not quote variable references.
11463double_quote_subst='s/\(["`\\]\)/\\\1/g'
11464
11465# Sed substitution to delay expansion of an escaped shell variable in a
11466# double_quote_subst'ed string.
11467delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11468
11469# Sed substitution to delay expansion of an escaped single quote.
11470delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11471
11472# Sed substitution to avoid accidental globbing in evaled expressions
11473no_glob_subst='s/\*/\\\*/g'
11474
cristy73bd4a52010-10-05 11:24:23 +000011475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11476$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011477if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011478 $as_echo_n "(cached) " >&6
11479else
11480 if test -n "$NM"; then
11481 # Let the user override the test.
Cristy15f22012015-11-14 17:51:30 -050011482 lt_cv_path_NM=$NM
cristy73bd4a52010-10-05 11:24:23 +000011483else
Cristy15f22012015-11-14 17:51:30 -050011484 lt_nm_to_check=${ac_tool_prefix}nm
cristy73bd4a52010-10-05 11:24:23 +000011485 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11486 lt_nm_to_check="$lt_nm_to_check nm"
11487 fi
11488 for lt_tmp_nm in $lt_nm_to_check; do
Cristy15f22012015-11-14 17:51:30 -050011489 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000011490 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Cristy15f22012015-11-14 17:51:30 -050011491 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000011492 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050011493 tmp_nm=$ac_dir/$lt_tmp_nm
11494 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
cristy73bd4a52010-10-05 11:24:23 +000011495 # Check to see if the nm accepts a BSD-compat flag.
Cristy15f22012015-11-14 17:51:30 -050011496 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
cristy73bd4a52010-10-05 11:24:23 +000011497 # nm: unknown option "B" ignored
11498 # Tru64's nm complains that /dev/null is an invalid object file
Cristy15f22012015-11-14 17:51:30 -050011499 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11500 case $build_os in
11501 mingw*) lt_bad_file=conftest.nm/nofile ;;
11502 *) lt_bad_file=/dev/null ;;
11503 esac
11504 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11505 *$lt_bad_file* | *'Invalid file or object type'*)
cristy73bd4a52010-10-05 11:24:23 +000011506 lt_cv_path_NM="$tmp_nm -B"
Cristy15f22012015-11-14 17:51:30 -050011507 break 2
cristy73bd4a52010-10-05 11:24:23 +000011508 ;;
11509 *)
11510 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11511 */dev/null*)
11512 lt_cv_path_NM="$tmp_nm -p"
Cristy15f22012015-11-14 17:51:30 -050011513 break 2
cristy73bd4a52010-10-05 11:24:23 +000011514 ;;
11515 *)
11516 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11517 continue # so that we can try to find one that supports BSD flags
11518 ;;
11519 esac
11520 ;;
11521 esac
11522 fi
11523 done
Cristy15f22012015-11-14 17:51:30 -050011524 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000011525 done
11526 : ${lt_cv_path_NM=no}
11527fi
11528fi
11529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11530$as_echo "$lt_cv_path_NM" >&6; }
Cristy15f22012015-11-14 17:51:30 -050011531if test no != "$lt_cv_path_NM"; then
11532 NM=$lt_cv_path_NM
cristy73bd4a52010-10-05 11:24:23 +000011533else
11534 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000011535 if test -n "$DUMPBIN"; then :
11536 # Let the user override the test.
11537 else
11538 if test -n "$ac_tool_prefix"; then
11539 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011540 do
11541 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11542set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11544$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011545if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011546 $as_echo_n "(cached) " >&6
11547else
11548 if test -n "$DUMPBIN"; then
11549 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11550else
11551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552for as_dir in $PATH
11553do
11554 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011558 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2
11561 fi
11562done
11563 done
11564IFS=$as_save_IFS
11565
11566fi
11567fi
11568DUMPBIN=$ac_cv_prog_DUMPBIN
11569if test -n "$DUMPBIN"; then
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11571$as_echo "$DUMPBIN" >&6; }
11572else
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11574$as_echo "no" >&6; }
11575fi
11576
11577
11578 test -n "$DUMPBIN" && break
11579 done
11580fi
11581if test -z "$DUMPBIN"; then
11582 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000011583 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000011584do
11585 # Extract the first word of "$ac_prog", so it can be a program name with args.
11586set dummy $ac_prog; ac_word=$2
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11588$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011589if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011590 $as_echo_n "(cached) " >&6
11591else
11592 if test -n "$ac_ct_DUMPBIN"; then
11593 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11594else
11595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11596for as_dir in $PATH
11597do
11598 IFS=$as_save_IFS
11599 test -z "$as_dir" && as_dir=.
11600 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011602 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11604 break 2
11605 fi
11606done
11607 done
11608IFS=$as_save_IFS
11609
11610fi
11611fi
11612ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11613if test -n "$ac_ct_DUMPBIN"; then
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11615$as_echo "$ac_ct_DUMPBIN" >&6; }
11616else
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11618$as_echo "no" >&6; }
11619fi
11620
11621
11622 test -n "$ac_ct_DUMPBIN" && break
11623done
11624
11625 if test "x$ac_ct_DUMPBIN" = x; then
11626 DUMPBIN=":"
11627 else
11628 case $cross_compiling:$ac_tool_warned in
11629yes:)
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11631$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11632ac_tool_warned=yes ;;
11633esac
11634 DUMPBIN=$ac_ct_DUMPBIN
11635 fi
11636fi
11637
Cristy15f22012015-11-14 17:51:30 -050011638 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
cristy0c60a692010-11-04 01:09:47 +000011639 *COFF*)
Cristy15f22012015-11-14 17:51:30 -050011640 DUMPBIN="$DUMPBIN -symbols -headers"
cristy0c60a692010-11-04 01:09:47 +000011641 ;;
11642 *)
11643 DUMPBIN=:
11644 ;;
11645 esac
11646 fi
cristy73bd4a52010-10-05 11:24:23 +000011647
Cristy15f22012015-11-14 17:51:30 -050011648 if test : != "$DUMPBIN"; then
11649 NM=$DUMPBIN
cristy73bd4a52010-10-05 11:24:23 +000011650 fi
11651fi
11652test -z "$NM" && NM=nm
11653
11654
11655
11656
11657
11658
11659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11660$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011661if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011662 $as_echo_n "(cached) " >&6
11663else
11664 lt_cv_nm_interface="BSD nm"
11665 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000011666 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011667 (eval "$ac_compile" 2>conftest.err)
11668 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011669 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011670 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11671 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000011672 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000011673 cat conftest.out >&5
11674 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11675 lt_cv_nm_interface="MS dumpbin"
11676 fi
11677 rm -f conftest*
11678fi
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11680$as_echo "$lt_cv_nm_interface" >&6; }
11681
11682# find the maximum length of command line arguments
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
11684$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011685if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011686 $as_echo_n "(cached) " >&6
11687else
11688 i=0
Cristy15f22012015-11-14 17:51:30 -050011689 teststring=ABCD
cristy73bd4a52010-10-05 11:24:23 +000011690
11691 case $build_os in
11692 msdosdjgpp*)
11693 # On DJGPP, this test can blow up pretty badly due to problems in libc
11694 # (any single argument exceeding 2000 bytes causes a buffer overrun
11695 # during glob expansion). Even if it were fixed, the result of this
11696 # check would be larger than it should be.
11697 lt_cv_sys_max_cmd_len=12288; # 12K is about right
11698 ;;
11699
11700 gnu*)
11701 # Under GNU Hurd, this test is not required because there is
11702 # no limit to the length of command line arguments.
11703 # Libtool will interpret -1 as no limit whatsoever
11704 lt_cv_sys_max_cmd_len=-1;
11705 ;;
11706
11707 cygwin* | mingw* | cegcc*)
11708 # On Win9x/ME, this test blows up -- it succeeds, but takes
11709 # about 5 minutes as the teststring grows exponentially.
11710 # Worse, since 9x/ME are not pre-emptively multitasking,
11711 # you end up with a "frozen" computer, even though with patience
11712 # the test eventually succeeds (with a max line length of 256k).
11713 # Instead, let's just punt: use the minimum linelength reported by
11714 # all of the supported platforms: 8192 (on NT/2K/XP).
11715 lt_cv_sys_max_cmd_len=8192;
11716 ;;
11717
cristy0c60a692010-11-04 01:09:47 +000011718 mint*)
11719 # On MiNT this can take a long time and run out of memory.
11720 lt_cv_sys_max_cmd_len=8192;
11721 ;;
11722
cristy73bd4a52010-10-05 11:24:23 +000011723 amigaos*)
11724 # On AmigaOS with pdksh, this test takes hours, literally.
11725 # So we just punt and use a minimum line length of 8192.
11726 lt_cv_sys_max_cmd_len=8192;
11727 ;;
11728
Cristy15f22012015-11-14 17:51:30 -050011729 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
cristy73bd4a52010-10-05 11:24:23 +000011730 # This has been around since 386BSD, at least. Likely further.
11731 if test -x /sbin/sysctl; then
11732 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
11733 elif test -x /usr/sbin/sysctl; then
11734 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
11735 else
11736 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
11737 fi
11738 # And add a safety zone
11739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11741 ;;
11742
11743 interix*)
11744 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11745 lt_cv_sys_max_cmd_len=196608
11746 ;;
11747
cristy99bd5232011-12-07 14:38:20 +000011748 os2*)
11749 # The test takes a long time on OS/2.
11750 lt_cv_sys_max_cmd_len=8192
11751 ;;
11752
cristy73bd4a52010-10-05 11:24:23 +000011753 osf*)
11754 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11755 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11756 # nice to cause kernel panics so lets avoid the loop below.
11757 # First set a reasonable default.
11758 lt_cv_sys_max_cmd_len=16384
11759 #
11760 if test -x /sbin/sysconfig; then
11761 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11762 *1*) lt_cv_sys_max_cmd_len=-1 ;;
11763 esac
11764 fi
11765 ;;
11766 sco3.2v5*)
11767 lt_cv_sys_max_cmd_len=102400
11768 ;;
11769 sysv5* | sco5v6* | sysv4.2uw2*)
11770 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11771 if test -n "$kargmax"; then
11772 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
11773 else
11774 lt_cv_sys_max_cmd_len=32768
11775 fi
11776 ;;
11777 *)
11778 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Cristy15f22012015-11-14 17:51:30 -050011779 if test -n "$lt_cv_sys_max_cmd_len" && \
11780 test undefined != "$lt_cv_sys_max_cmd_len"; then
cristy73bd4a52010-10-05 11:24:23 +000011781 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
11782 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
11783 else
11784 # Make teststring a little bigger before we do anything with it.
11785 # a 1K string should be a reasonable start.
Cristy15f22012015-11-14 17:51:30 -050011786 for i in 1 2 3 4 5 6 7 8; do
cristy73bd4a52010-10-05 11:24:23 +000011787 teststring=$teststring$teststring
11788 done
11789 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
11790 # If test is not a shell built-in, we'll probably end up computing a
11791 # maximum length that is only half of the actual maximum length, but
11792 # we can't tell.
Cristy15f22012015-11-14 17:51:30 -050011793 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000011794 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Cristy15f22012015-11-14 17:51:30 -050011795 test 17 != "$i" # 1/2 MB should be enough
cristy73bd4a52010-10-05 11:24:23 +000011796 do
11797 i=`expr $i + 1`
11798 teststring=$teststring$teststring
11799 done
11800 # Only check the string length outside the loop.
11801 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
11802 teststring=
11803 # Add a significant safety factor because C++ compilers can tack on
11804 # massive amounts of additional arguments before passing them to the
11805 # linker. It appears as though 1/2 is a usable value.
11806 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
11807 fi
11808 ;;
11809 esac
11810
11811fi
11812
Cristy15f22012015-11-14 17:51:30 -050011813if test -n "$lt_cv_sys_max_cmd_len"; then
cristy73bd4a52010-10-05 11:24:23 +000011814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
11815$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
11816else
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
11818$as_echo "none" >&6; }
11819fi
11820max_cmd_len=$lt_cv_sys_max_cmd_len
11821
11822
11823
11824
11825
11826
11827: ${CP="cp -f"}
11828: ${MV="mv -f"}
11829: ${RM="rm -f"}
11830
cristy73bd4a52010-10-05 11:24:23 +000011831if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11832 lt_unset=unset
11833else
11834 lt_unset=false
11835fi
11836
11837
11838
11839
11840
11841# test EBCDIC or ASCII
11842case `echo X|tr X '\101'` in
11843 A) # ASCII based system
11844 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
11845 lt_SP2NL='tr \040 \012'
11846 lt_NL2SP='tr \015\012 \040\040'
11847 ;;
11848 *) # EBCDIC based system
11849 lt_SP2NL='tr \100 \n'
11850 lt_NL2SP='tr \r\n \100\100'
11851 ;;
11852esac
11853
11854
11855
11856
11857
11858
11859
11860
11861
cristyda16f162011-02-19 23:52:17 +000011862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
11863$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
11864if ${lt_cv_to_host_file_cmd+:} false; then :
11865 $as_echo_n "(cached) " >&6
11866else
11867 case $host in
11868 *-*-mingw* )
11869 case $build in
11870 *-*-mingw* ) # actually msys
11871 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
11872 ;;
11873 *-*-cygwin* )
11874 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
11875 ;;
11876 * ) # otherwise, assume *nix
11877 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
11878 ;;
11879 esac
11880 ;;
11881 *-*-cygwin* )
11882 case $build in
11883 *-*-mingw* ) # actually msys
11884 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
11885 ;;
11886 *-*-cygwin* )
11887 lt_cv_to_host_file_cmd=func_convert_file_noop
11888 ;;
11889 * ) # otherwise, assume *nix
11890 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
11891 ;;
11892 esac
11893 ;;
11894 * ) # unhandled hosts (and "normal" native builds)
11895 lt_cv_to_host_file_cmd=func_convert_file_noop
11896 ;;
11897esac
11898
11899fi
11900
11901to_host_file_cmd=$lt_cv_to_host_file_cmd
11902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
11903$as_echo "$lt_cv_to_host_file_cmd" >&6; }
11904
11905
11906
11907
11908
11909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
11910$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
11911if ${lt_cv_to_tool_file_cmd+:} false; then :
11912 $as_echo_n "(cached) " >&6
11913else
11914 #assume ordinary cross tools, or native build.
11915lt_cv_to_tool_file_cmd=func_convert_file_noop
11916case $host in
11917 *-*-mingw* )
11918 case $build in
11919 *-*-mingw* ) # actually msys
11920 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
11921 ;;
11922 esac
11923 ;;
11924esac
11925
11926fi
11927
11928to_tool_file_cmd=$lt_cv_to_tool_file_cmd
11929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
11930$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
11931
11932
11933
11934
11935
cristy73bd4a52010-10-05 11:24:23 +000011936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
11937$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011938if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011939 $as_echo_n "(cached) " >&6
11940else
11941 lt_cv_ld_reload_flag='-r'
11942fi
11943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
11944$as_echo "$lt_cv_ld_reload_flag" >&6; }
11945reload_flag=$lt_cv_ld_reload_flag
11946case $reload_flag in
11947"" | " "*) ;;
11948*) reload_flag=" $reload_flag" ;;
11949esac
11950reload_cmds='$LD$reload_flag -o $output$reload_objs'
11951case $host_os in
cristyda16f162011-02-19 23:52:17 +000011952 cygwin* | mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050011953 if test yes != "$GCC"; then
cristyda16f162011-02-19 23:52:17 +000011954 reload_cmds=false
11955 fi
11956 ;;
cristy73bd4a52010-10-05 11:24:23 +000011957 darwin*)
Cristy15f22012015-11-14 17:51:30 -050011958 if test yes = "$GCC"; then
11959 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
cristy73bd4a52010-10-05 11:24:23 +000011960 else
11961 reload_cmds='$LD$reload_flag -o $output$reload_objs'
11962 fi
11963 ;;
11964esac
11965
11966
11967
11968
11969
11970
11971
11972
11973
11974if test -n "$ac_tool_prefix"; then
11975 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11976set dummy ${ac_tool_prefix}objdump; ac_word=$2
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011979if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011980 $as_echo_n "(cached) " >&6
11981else
11982 if test -n "$OBJDUMP"; then
11983 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11984else
11985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11986for as_dir in $PATH
11987do
11988 IFS=$as_save_IFS
11989 test -z "$as_dir" && as_dir=.
11990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011992 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11994 break 2
11995 fi
11996done
11997 done
11998IFS=$as_save_IFS
11999
12000fi
12001fi
12002OBJDUMP=$ac_cv_prog_OBJDUMP
12003if test -n "$OBJDUMP"; then
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12005$as_echo "$OBJDUMP" >&6; }
12006else
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12008$as_echo "no" >&6; }
12009fi
12010
12011
12012fi
12013if test -z "$ac_cv_prog_OBJDUMP"; then
12014 ac_ct_OBJDUMP=$OBJDUMP
12015 # Extract the first word of "objdump", so it can be a program name with args.
12016set dummy objdump; ac_word=$2
12017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12018$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012019if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012020 $as_echo_n "(cached) " >&6
12021else
12022 if test -n "$ac_ct_OBJDUMP"; then
12023 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12024else
12025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026for as_dir in $PATH
12027do
12028 IFS=$as_save_IFS
12029 test -z "$as_dir" && as_dir=.
12030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012032 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 break 2
12035 fi
12036done
12037 done
12038IFS=$as_save_IFS
12039
12040fi
12041fi
12042ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12043if test -n "$ac_ct_OBJDUMP"; then
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12045$as_echo "$ac_ct_OBJDUMP" >&6; }
12046else
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12048$as_echo "no" >&6; }
12049fi
12050
12051 if test "x$ac_ct_OBJDUMP" = x; then
12052 OBJDUMP="false"
12053 else
12054 case $cross_compiling:$ac_tool_warned in
12055yes:)
12056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12058ac_tool_warned=yes ;;
12059esac
12060 OBJDUMP=$ac_ct_OBJDUMP
12061 fi
12062else
12063 OBJDUMP="$ac_cv_prog_OBJDUMP"
12064fi
12065
12066test -z "$OBJDUMP" && OBJDUMP=objdump
12067
12068
12069
12070
12071
12072
12073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12074$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012075if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012076 $as_echo_n "(cached) " >&6
12077else
12078 lt_cv_file_magic_cmd='$MAGIC_CMD'
12079lt_cv_file_magic_test_file=
12080lt_cv_deplibs_check_method='unknown'
12081# Need to set the preceding variable on all platforms that support
12082# interlibrary dependencies.
12083# 'none' -- dependencies not supported.
Cristy15f22012015-11-14 17:51:30 -050012084# 'unknown' -- same as none, but documents that we really don't know.
cristy73bd4a52010-10-05 11:24:23 +000012085# 'pass_all' -- all dependencies passed with no checks.
12086# 'test_compile' -- check by making test program.
12087# 'file_magic [[regex]]' -- check by looking for files in library path
Cristy15f22012015-11-14 17:51:30 -050012088# that responds to the $file_magic_cmd with a given extended regex.
12089# If you have 'file' or equivalent on your system and you're not sure
12090# whether 'pass_all' will *always* work, you probably want this one.
cristy73bd4a52010-10-05 11:24:23 +000012091
12092case $host_os in
12093aix[4-9]*)
12094 lt_cv_deplibs_check_method=pass_all
12095 ;;
12096
12097beos*)
12098 lt_cv_deplibs_check_method=pass_all
12099 ;;
12100
12101bsdi[45]*)
12102 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12103 lt_cv_file_magic_cmd='/usr/bin/file -L'
12104 lt_cv_file_magic_test_file=/shlib/libc.so
12105 ;;
12106
12107cygwin*)
12108 # func_win32_libid is a shell function defined in ltmain.sh
12109 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12110 lt_cv_file_magic_cmd='func_win32_libid'
12111 ;;
12112
12113mingw* | pw32*)
12114 # Base MSYS/MinGW do not provide the 'file' command needed by
12115 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12116 # unless we find 'file', for example because we are cross-compiling.
Cristy15f22012015-11-14 17:51:30 -050012117 if ( file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000012118 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12119 lt_cv_file_magic_cmd='func_win32_libid'
12120 else
cristy0c60a692010-11-04 01:09:47 +000012121 # Keep this pattern in sync with the one in func_win32_libid.
12122 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 +000012123 lt_cv_file_magic_cmd='$OBJDUMP -f'
12124 fi
12125 ;;
12126
cristy0c60a692010-11-04 01:09:47 +000012127cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000012128 # use the weaker test based on 'objdump'. See mingw*.
12129 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12130 lt_cv_file_magic_cmd='$OBJDUMP -f'
12131 ;;
12132
12133darwin* | rhapsody*)
12134 lt_cv_deplibs_check_method=pass_all
12135 ;;
12136
12137freebsd* | dragonfly*)
12138 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12139 case $host_cpu in
12140 i*86 )
12141 # Not sure whether the presence of OpenBSD here was a mistake.
12142 # Let's accept both of them until this is cleared up.
12143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12144 lt_cv_file_magic_cmd=/usr/bin/file
12145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12146 ;;
12147 esac
12148 else
12149 lt_cv_deplibs_check_method=pass_all
12150 fi
12151 ;;
12152
cristy0c60a692010-11-04 01:09:47 +000012153haiku*)
12154 lt_cv_deplibs_check_method=pass_all
12155 ;;
12156
cristy73bd4a52010-10-05 11:24:23 +000012157hpux10.20* | hpux11*)
12158 lt_cv_file_magic_cmd=/usr/bin/file
12159 case $host_cpu in
12160 ia64*)
12161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12163 ;;
12164 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000012165 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 +000012166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12167 ;;
12168 *)
cristy0c60a692010-11-04 01:09:47 +000012169 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 +000012170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12171 ;;
12172 esac
12173 ;;
12174
12175interix[3-9]*)
12176 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12177 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12178 ;;
12179
12180irix5* | irix6* | nonstopux*)
12181 case $LD in
12182 *-32|*"-32 ") libmagic=32-bit;;
12183 *-n32|*"-n32 ") libmagic=N32;;
12184 *-64|*"-64 ") libmagic=64-bit;;
12185 *) libmagic=never-match;;
12186 esac
12187 lt_cv_deplibs_check_method=pass_all
12188 ;;
12189
cristy99bd5232011-12-07 14:38:20 +000012190# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050012191linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000012192 lt_cv_deplibs_check_method=pass_all
12193 ;;
12194
12195netbsd*)
12196 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12197 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12198 else
12199 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12200 fi
12201 ;;
12202
12203newos6*)
12204 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12205 lt_cv_file_magic_cmd=/usr/bin/file
12206 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12207 ;;
12208
12209*nto* | *qnx*)
12210 lt_cv_deplibs_check_method=pass_all
12211 ;;
12212
Cristy15f22012015-11-14 17:51:30 -050012213openbsd* | bitrig*)
12214 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cristy73bd4a52010-10-05 11:24:23 +000012215 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12216 else
12217 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12218 fi
12219 ;;
12220
12221osf3* | osf4* | osf5*)
12222 lt_cv_deplibs_check_method=pass_all
12223 ;;
12224
12225rdos*)
12226 lt_cv_deplibs_check_method=pass_all
12227 ;;
12228
12229solaris*)
12230 lt_cv_deplibs_check_method=pass_all
12231 ;;
12232
12233sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12234 lt_cv_deplibs_check_method=pass_all
12235 ;;
12236
12237sysv4 | sysv4.3*)
12238 case $host_vendor in
12239 motorola)
12240 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]'
12241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12242 ;;
12243 ncr)
12244 lt_cv_deplibs_check_method=pass_all
12245 ;;
12246 sequent)
12247 lt_cv_file_magic_cmd='/bin/file'
12248 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12249 ;;
12250 sni)
12251 lt_cv_file_magic_cmd='/bin/file'
12252 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12253 lt_cv_file_magic_test_file=/lib/libc.so
12254 ;;
12255 siemens)
12256 lt_cv_deplibs_check_method=pass_all
12257 ;;
12258 pc)
12259 lt_cv_deplibs_check_method=pass_all
12260 ;;
12261 esac
12262 ;;
12263
12264tpf*)
12265 lt_cv_deplibs_check_method=pass_all
12266 ;;
Cristy15f22012015-11-14 17:51:30 -050012267os2*)
12268 lt_cv_deplibs_check_method=pass_all
12269 ;;
cristy73bd4a52010-10-05 11:24:23 +000012270esac
12271
12272fi
12273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12274$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000012275
12276file_magic_glob=
12277want_nocaseglob=no
12278if test "$build" = "$host"; then
12279 case $host_os in
12280 mingw* | pw32*)
12281 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12282 want_nocaseglob=yes
12283 else
12284 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12285 fi
12286 ;;
12287 esac
12288fi
12289
cristy73bd4a52010-10-05 11:24:23 +000012290file_magic_cmd=$lt_cv_file_magic_cmd
12291deplibs_check_method=$lt_cv_deplibs_check_method
12292test -z "$deplibs_check_method" && deplibs_check_method=unknown
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
cristyda16f162011-02-19 23:52:17 +000012305
12306
12307
12308
12309
12310
12311
12312
12313
12314
cristy73bd4a52010-10-05 11:24:23 +000012315if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000012316 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12317set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012320if ${ac_cv_prog_DLLTOOL+:} false; then :
12321 $as_echo_n "(cached) " >&6
12322else
12323 if test -n "$DLLTOOL"; then
12324 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12325else
12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012333 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12336 fi
12337done
12338 done
12339IFS=$as_save_IFS
12340
12341fi
12342fi
12343DLLTOOL=$ac_cv_prog_DLLTOOL
12344if test -n "$DLLTOOL"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12346$as_echo "$DLLTOOL" >&6; }
12347else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
12350fi
12351
12352
12353fi
12354if test -z "$ac_cv_prog_DLLTOOL"; then
12355 ac_ct_DLLTOOL=$DLLTOOL
12356 # Extract the first word of "dlltool", so it can be a program name with args.
12357set dummy dlltool; ac_word=$2
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
12360if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12361 $as_echo_n "(cached) " >&6
12362else
12363 if test -n "$ac_ct_DLLTOOL"; then
12364 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12365else
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369 IFS=$as_save_IFS
12370 test -z "$as_dir" && as_dir=.
12371 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012373 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375 break 2
12376 fi
12377done
12378 done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12384if test -n "$ac_ct_DLLTOOL"; then
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12386$as_echo "$ac_ct_DLLTOOL" >&6; }
12387else
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391
12392 if test "x$ac_ct_DLLTOOL" = x; then
12393 DLLTOOL="false"
12394 else
12395 case $cross_compiling:$ac_tool_warned in
12396yes:)
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12399ac_tool_warned=yes ;;
12400esac
12401 DLLTOOL=$ac_ct_DLLTOOL
12402 fi
12403else
12404 DLLTOOL="$ac_cv_prog_DLLTOOL"
12405fi
12406
12407test -z "$DLLTOOL" && DLLTOOL=dlltool
12408
12409
12410
12411
12412
12413
12414
12415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12416$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12417if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12418 $as_echo_n "(cached) " >&6
12419else
12420 lt_cv_sharedlib_from_linklib_cmd='unknown'
12421
12422case $host_os in
12423cygwin* | mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050012424 # two different shell functions defined in ltmain.sh;
12425 # decide which one to use based on capabilities of $DLLTOOL
cristyda16f162011-02-19 23:52:17 +000012426 case `$DLLTOOL --help 2>&1` in
12427 *--identify-strict*)
12428 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12429 ;;
12430 *)
12431 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12432 ;;
12433 esac
12434 ;;
12435*)
12436 # fallback: assume linklib IS sharedlib
Cristy15f22012015-11-14 17:51:30 -050012437 lt_cv_sharedlib_from_linklib_cmd=$ECHO
cristyda16f162011-02-19 23:52:17 +000012438 ;;
12439esac
12440
12441fi
12442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12443$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12444sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12445test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12446
12447
12448
12449
12450
12451
12452
12453if test -n "$ac_tool_prefix"; then
12454 for ac_prog in ar
12455 do
12456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12457set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12459$as_echo_n "checking for $ac_word... " >&6; }
12460if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012461 $as_echo_n "(cached) " >&6
12462else
12463 if test -n "$AR"; then
12464 ac_cv_prog_AR="$AR" # Let the user override the test.
12465else
12466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467for as_dir in $PATH
12468do
12469 IFS=$as_save_IFS
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012473 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12475 break 2
12476 fi
12477done
12478 done
12479IFS=$as_save_IFS
12480
12481fi
12482fi
12483AR=$ac_cv_prog_AR
12484if test -n "$AR"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12486$as_echo "$AR" >&6; }
12487else
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12489$as_echo "no" >&6; }
12490fi
12491
12492
cristyda16f162011-02-19 23:52:17 +000012493 test -n "$AR" && break
12494 done
cristy73bd4a52010-10-05 11:24:23 +000012495fi
cristyda16f162011-02-19 23:52:17 +000012496if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000012497 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000012498 for ac_prog in ar
12499do
12500 # Extract the first word of "$ac_prog", so it can be a program name with args.
12501set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000012502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012504if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012505 $as_echo_n "(cached) " >&6
12506else
12507 if test -n "$ac_ct_AR"; then
12508 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12509else
12510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511for as_dir in $PATH
12512do
12513 IFS=$as_save_IFS
12514 test -z "$as_dir" && as_dir=.
12515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012517 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000012518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519 break 2
12520 fi
12521done
12522 done
12523IFS=$as_save_IFS
12524
12525fi
12526fi
12527ac_ct_AR=$ac_cv_prog_ac_ct_AR
12528if test -n "$ac_ct_AR"; then
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12530$as_echo "$ac_ct_AR" >&6; }
12531else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
12534fi
12535
cristyda16f162011-02-19 23:52:17 +000012536
12537 test -n "$ac_ct_AR" && break
12538done
12539
cristy73bd4a52010-10-05 11:24:23 +000012540 if test "x$ac_ct_AR" = x; then
12541 AR="false"
12542 else
12543 case $cross_compiling:$ac_tool_warned in
12544yes:)
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12547ac_tool_warned=yes ;;
12548esac
12549 AR=$ac_ct_AR
12550 fi
cristy73bd4a52010-10-05 11:24:23 +000012551fi
12552
cristyda16f162011-02-19 23:52:17 +000012553: ${AR=ar}
12554: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000012555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
cristyda16f162011-02-19 23:52:17 +000012566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12567$as_echo_n "checking for archiver @FILE support... " >&6; }
12568if ${lt_cv_ar_at_file+:} false; then :
12569 $as_echo_n "(cached) " >&6
12570else
12571 lt_cv_ar_at_file=no
12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12573/* end confdefs.h. */
12574
12575int
12576main ()
12577{
12578
12579 ;
12580 return 0;
12581}
12582_ACEOF
12583if ac_fn_c_try_compile "$LINENO"; then :
12584 echo conftest.$ac_objext > conftest.lst
12585 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12587 (eval $lt_ar_try) 2>&5
12588 ac_status=$?
12589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12590 test $ac_status = 0; }
Cristy15f22012015-11-14 17:51:30 -050012591 if test 0 -eq "$ac_status"; then
cristyda16f162011-02-19 23:52:17 +000012592 # Ensure the archiver fails upon bogus file names.
12593 rm -f conftest.$ac_objext libconftest.a
12594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12595 (eval $lt_ar_try) 2>&5
12596 ac_status=$?
12597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12598 test $ac_status = 0; }
Cristy15f22012015-11-14 17:51:30 -050012599 if test 0 -ne "$ac_status"; then
cristyda16f162011-02-19 23:52:17 +000012600 lt_cv_ar_at_file=@
12601 fi
12602 fi
12603 rm -f conftest.* libconftest.a
12604
12605fi
12606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12607
12608fi
12609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12610$as_echo "$lt_cv_ar_at_file" >&6; }
12611
Cristy15f22012015-11-14 17:51:30 -050012612if test no = "$lt_cv_ar_at_file"; then
cristyda16f162011-02-19 23:52:17 +000012613 archiver_list_spec=
12614else
12615 archiver_list_spec=$lt_cv_ar_at_file
12616fi
12617
12618
12619
12620
12621
12622
12623
cristy73bd4a52010-10-05 11:24:23 +000012624if test -n "$ac_tool_prefix"; then
12625 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12626set dummy ${ac_tool_prefix}strip; ac_word=$2
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12628$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012629if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012630 $as_echo_n "(cached) " >&6
12631else
12632 if test -n "$STRIP"; then
12633 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12634else
12635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12636for as_dir in $PATH
12637do
12638 IFS=$as_save_IFS
12639 test -z "$as_dir" && as_dir=.
12640 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012642 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12644 break 2
12645 fi
12646done
12647 done
12648IFS=$as_save_IFS
12649
12650fi
12651fi
12652STRIP=$ac_cv_prog_STRIP
12653if test -n "$STRIP"; then
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12655$as_echo "$STRIP" >&6; }
12656else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658$as_echo "no" >&6; }
12659fi
12660
12661
12662fi
12663if test -z "$ac_cv_prog_STRIP"; then
12664 ac_ct_STRIP=$STRIP
12665 # Extract the first word of "strip", so it can be a program name with args.
12666set dummy strip; ac_word=$2
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12668$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012669if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012670 $as_echo_n "(cached) " >&6
12671else
12672 if test -n "$ac_ct_STRIP"; then
12673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12674else
12675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12676for as_dir in $PATH
12677do
12678 IFS=$as_save_IFS
12679 test -z "$as_dir" && as_dir=.
12680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012682 ac_cv_prog_ac_ct_STRIP="strip"
12683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 break 2
12685 fi
12686done
12687 done
12688IFS=$as_save_IFS
12689
12690fi
12691fi
12692ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12693if test -n "$ac_ct_STRIP"; then
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12695$as_echo "$ac_ct_STRIP" >&6; }
12696else
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12698$as_echo "no" >&6; }
12699fi
12700
12701 if test "x$ac_ct_STRIP" = x; then
12702 STRIP=":"
12703 else
12704 case $cross_compiling:$ac_tool_warned in
12705yes:)
12706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12708ac_tool_warned=yes ;;
12709esac
12710 STRIP=$ac_ct_STRIP
12711 fi
12712else
12713 STRIP="$ac_cv_prog_STRIP"
12714fi
12715
12716test -z "$STRIP" && STRIP=:
12717
12718
12719
12720
12721
12722
12723if test -n "$ac_tool_prefix"; then
12724 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12725set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012728if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012729 $as_echo_n "(cached) " >&6
12730else
12731 if test -n "$RANLIB"; then
12732 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12733else
12734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735for as_dir in $PATH
12736do
12737 IFS=$as_save_IFS
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012741 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12743 break 2
12744 fi
12745done
12746 done
12747IFS=$as_save_IFS
12748
12749fi
12750fi
12751RANLIB=$ac_cv_prog_RANLIB
12752if test -n "$RANLIB"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12754$as_echo "$RANLIB" >&6; }
12755else
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757$as_echo "no" >&6; }
12758fi
12759
12760
12761fi
12762if test -z "$ac_cv_prog_RANLIB"; then
12763 ac_ct_RANLIB=$RANLIB
12764 # Extract the first word of "ranlib", so it can be a program name with args.
12765set dummy ranlib; ac_word=$2
12766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12767$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012768if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012769 $as_echo_n "(cached) " >&6
12770else
12771 if test -n "$ac_ct_RANLIB"; then
12772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12773else
12774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12775for as_dir in $PATH
12776do
12777 IFS=$as_save_IFS
12778 test -z "$as_dir" && as_dir=.
12779 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012781 ac_cv_prog_ac_ct_RANLIB="ranlib"
12782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12783 break 2
12784 fi
12785done
12786 done
12787IFS=$as_save_IFS
12788
12789fi
12790fi
12791ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12792if test -n "$ac_ct_RANLIB"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12794$as_echo "$ac_ct_RANLIB" >&6; }
12795else
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12797$as_echo "no" >&6; }
12798fi
12799
12800 if test "x$ac_ct_RANLIB" = x; then
12801 RANLIB=":"
12802 else
12803 case $cross_compiling:$ac_tool_warned in
12804yes:)
12805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12807ac_tool_warned=yes ;;
12808esac
12809 RANLIB=$ac_ct_RANLIB
12810 fi
12811else
12812 RANLIB="$ac_cv_prog_RANLIB"
12813fi
12814
12815test -z "$RANLIB" && RANLIB=:
12816
12817
12818
12819
12820
12821
12822# Determine commands to create old-style static archives.
12823old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
12824old_postinstall_cmds='chmod 644 $oldlib'
12825old_postuninstall_cmds=
12826
12827if test -n "$RANLIB"; then
12828 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050012829 bitrig* | openbsd*)
cristy99bd5232011-12-07 14:38:20 +000012830 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012831 ;;
12832 *)
cristy99bd5232011-12-07 14:38:20 +000012833 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012834 ;;
12835 esac
cristy99bd5232011-12-07 14:38:20 +000012836 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000012837fi
12838
cristy0c60a692010-11-04 01:09:47 +000012839case $host_os in
12840 darwin*)
12841 lock_old_archive_extraction=yes ;;
12842 *)
12843 lock_old_archive_extraction=no ;;
12844esac
12845
12846
12847
12848
12849
12850
cristy73bd4a52010-10-05 11:24:23 +000012851
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881
12882
12883
12884# If no C compiler was specified, use CC.
12885LTCC=${LTCC-"$CC"}
12886
12887# If no C compiler flags were specified, use CFLAGS.
12888LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12889
12890# Allow CC to be a program name with arguments.
12891compiler=$CC
12892
12893
12894# Check for command to grab the raw symbol name followed by C symbol from nm.
12895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
12896$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012897if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012898 $as_echo_n "(cached) " >&6
12899else
12900
12901# These are sane defaults that work on at least a few old systems.
12902# [They come from Ultrix. What could be older than Ultrix?!! ;)]
12903
12904# Character class describing NM global symbol codes.
12905symcode='[BCDEGRST]'
12906
12907# Regexp to match symbols that can be accessed directly from C.
12908sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
12909
12910# Define system-specific variables.
12911case $host_os in
12912aix*)
12913 symcode='[BCDT]'
12914 ;;
12915cygwin* | mingw* | pw32* | cegcc*)
12916 symcode='[ABCDGISTW]'
12917 ;;
12918hpux*)
Cristy15f22012015-11-14 17:51:30 -050012919 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000012920 symcode='[ABCDEGRST]'
12921 fi
12922 ;;
12923irix* | nonstopux*)
12924 symcode='[BCDEGRST]'
12925 ;;
12926osf*)
12927 symcode='[BCDEGQRST]'
12928 ;;
12929solaris*)
12930 symcode='[BDRT]'
12931 ;;
12932sco3.2v5*)
12933 symcode='[DT]'
12934 ;;
12935sysv4.2uw2*)
12936 symcode='[DT]'
12937 ;;
12938sysv5* | sco5v6* | unixware* | OpenUNIX*)
12939 symcode='[ABDT]'
12940 ;;
12941sysv4)
12942 symcode='[DFNSTU]'
12943 ;;
12944esac
12945
12946# If we're using GNU nm, then use its standard symbol codes.
12947case `$NM -V 2>&1` in
12948*GNU* | *'with BFD'*)
12949 symcode='[ABCDGIRSTW]' ;;
12950esac
12951
Cristy15f22012015-11-14 17:51:30 -050012952if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12953 # Gets list of data symbols to import.
12954 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
12955 # Adjust the below global symbol transforms to fixup imported variables.
12956 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
12957 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
12958 lt_c_name_lib_hook="\
12959 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
12960 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
12961else
12962 # Disable hooks by default.
12963 lt_cv_sys_global_symbol_to_import=
12964 lt_cdecl_hook=
12965 lt_c_name_hook=
12966 lt_c_name_lib_hook=
12967fi
12968
cristy73bd4a52010-10-05 11:24:23 +000012969# Transform an extracted symbol line into a proper C declaration.
12970# Some systems (esp. on ia64) link data and code symbols differently,
12971# so use this general approach.
Cristy15f22012015-11-14 17:51:30 -050012972lt_cv_sys_global_symbol_to_cdecl="sed -n"\
12973$lt_cdecl_hook\
12974" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
12975" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
cristy73bd4a52010-10-05 11:24:23 +000012976
12977# Transform an extracted symbol line into symbol name and symbol address
Cristy15f22012015-11-14 17:51:30 -050012978lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
12979$lt_c_name_hook\
12980" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12981" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
12982
12983# Transform an extracted symbol line into symbol name with lib prefix and
12984# symbol address.
12985lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
12986$lt_c_name_lib_hook\
12987" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
12988" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
12989" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
cristy73bd4a52010-10-05 11:24:23 +000012990
12991# Handle CRLF in mingw tool chain
12992opt_cr=
12993case $build_os in
12994mingw*)
12995 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
12996 ;;
12997esac
12998
12999# Try without a prefix underscore, then with it.
13000for ac_symprfx in "" "_"; do
13001
13002 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13003 symxfrm="\\1 $ac_symprfx\\2 \\2"
13004
13005 # Write the raw and C identifiers.
13006 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Cristy15f22012015-11-14 17:51:30 -050013007 # Fake it for dumpbin and say T for any non-static function,
13008 # D for any global variable and I for any imported variable.
cristy73bd4a52010-10-05 11:24:23 +000013009 # Also find C++ and __fastcall symbols from MSVC++,
13010 # which start with @ or ?.
13011 lt_cv_sys_global_symbol_pipe="$AWK '"\
13012" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000013013" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000013014" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Cristy15f22012015-11-14 17:51:30 -050013015" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13016" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13017" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
cristy73bd4a52010-10-05 11:24:23 +000013018" \$ 0!~/External *\|/{next};"\
13019" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13020" {if(hide[section]) next};"\
Cristy15f22012015-11-14 17:51:30 -050013021" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13022" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13023" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13024" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
cristy73bd4a52010-10-05 11:24:23 +000013025" ' prfx=^$ac_symprfx"
13026 else
13027 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13028 fi
cristyda16f162011-02-19 23:52:17 +000013029 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000013030
13031 # Check to see that the pipe works correctly.
13032 pipe_works=no
13033
13034 rm -f conftest*
13035 cat > conftest.$ac_ext <<_LT_EOF
13036#ifdef __cplusplus
13037extern "C" {
13038#endif
13039char nm_test_var;
13040void nm_test_func(void);
13041void nm_test_func(void){}
13042#ifdef __cplusplus
13043}
13044#endif
13045int main(){nm_test_var='a';nm_test_func();return(0);}
13046_LT_EOF
13047
13048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13049 (eval $ac_compile) 2>&5
13050 ac_status=$?
13051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052 test $ac_status = 0; }; then
13053 # Now try to grab the symbols.
13054 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000013055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13056 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000013057 ac_status=$?
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; } && test -s "$nlist"; then
13060 # Try sorting and uniquifying the output.
13061 if sort "$nlist" | uniq > "$nlist"T; then
13062 mv -f "$nlist"T "$nlist"
13063 else
13064 rm -f "$nlist"T
13065 fi
13066
13067 # Make sure that we snagged all the symbols we need.
13068 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13069 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13070 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000013071/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Cristy15f22012015-11-14 17:51:30 -050013072#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13073/* DATA imports from DLLs on WIN32 can't be const, because runtime
cristyda16f162011-02-19 23:52:17 +000013074 relocations are performed -- see ld's documentation on pseudo-relocs. */
13075# define LT_DLSYM_CONST
Cristy15f22012015-11-14 17:51:30 -050013076#elif defined __osf__
cristyda16f162011-02-19 23:52:17 +000013077/* This system does not cope well with relocations in const data. */
13078# define LT_DLSYM_CONST
13079#else
13080# define LT_DLSYM_CONST const
13081#endif
13082
cristy73bd4a52010-10-05 11:24:23 +000013083#ifdef __cplusplus
13084extern "C" {
13085#endif
13086
13087_LT_EOF
13088 # Now generate the symbol file.
13089 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13090
13091 cat <<_LT_EOF >> conftest.$ac_ext
13092
13093/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000013094LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000013095 const char *name;
13096 void *address;
13097}
13098lt__PROGRAM__LTX_preloaded_symbols[] =
13099{
13100 { "@PROGRAM@", (void *) 0 },
13101_LT_EOF
Cristy15f22012015-11-14 17:51:30 -050013102 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013103 cat <<\_LT_EOF >> conftest.$ac_ext
13104 {0, (void *) 0}
13105};
13106
13107/* This works around a problem in FreeBSD linker */
13108#ifdef FREEBSD_WORKAROUND
13109static const void *lt_preloaded_setup() {
13110 return lt__PROGRAM__LTX_preloaded_symbols;
13111}
13112#endif
13113
13114#ifdef __cplusplus
13115}
13116#endif
13117_LT_EOF
13118 # Now try linking the two files.
13119 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000013120 lt_globsym_save_LIBS=$LIBS
13121 lt_globsym_save_CFLAGS=$CFLAGS
Cristy15f22012015-11-14 17:51:30 -050013122 LIBS=conftstm.$ac_objext
cristy73bd4a52010-10-05 11:24:23 +000013123 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13124 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13125 (eval $ac_link) 2>&5
13126 ac_status=$?
13127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050013128 test $ac_status = 0; } && test -s conftest$ac_exeext; then
cristy73bd4a52010-10-05 11:24:23 +000013129 pipe_works=yes
13130 fi
cristyda16f162011-02-19 23:52:17 +000013131 LIBS=$lt_globsym_save_LIBS
13132 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013133 else
13134 echo "cannot find nm_test_func in $nlist" >&5
13135 fi
13136 else
13137 echo "cannot find nm_test_var in $nlist" >&5
13138 fi
13139 else
13140 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13141 fi
13142 else
13143 echo "$progname: failed program was:" >&5
13144 cat conftest.$ac_ext >&5
13145 fi
13146 rm -rf conftest* conftst*
13147
13148 # Do not use the global_symbol_pipe unless it works.
Cristy15f22012015-11-14 17:51:30 -050013149 if test yes = "$pipe_works"; then
cristy73bd4a52010-10-05 11:24:23 +000013150 break
13151 else
13152 lt_cv_sys_global_symbol_pipe=
13153 fi
13154done
13155
13156fi
13157
13158if test -z "$lt_cv_sys_global_symbol_pipe"; then
13159 lt_cv_sys_global_symbol_to_cdecl=
13160fi
13161if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13163$as_echo "failed" >&6; }
13164else
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13166$as_echo "ok" >&6; }
13167fi
13168
cristyda16f162011-02-19 23:52:17 +000013169# Response file support.
13170if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13171 nm_file_list_spec='@'
13172elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13173 nm_file_list_spec='@'
13174fi
cristy73bd4a52010-10-05 11:24:23 +000013175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
cristyda16f162011-02-19 23:52:17 +000013196
13197
13198
13199
13200
13201
Cristy15f22012015-11-14 17:51:30 -050013202
13203
13204
13205
13206
13207
13208
13209
13210
13211
cristyda16f162011-02-19 23:52:17 +000013212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13213$as_echo_n "checking for sysroot... " >&6; }
13214
13215# Check whether --with-sysroot was given.
13216if test "${with_sysroot+set}" = set; then :
13217 withval=$with_sysroot;
13218else
13219 with_sysroot=no
13220fi
13221
13222
13223lt_sysroot=
Cristy15f22012015-11-14 17:51:30 -050013224case $with_sysroot in #(
cristyda16f162011-02-19 23:52:17 +000013225 yes)
Cristy15f22012015-11-14 17:51:30 -050013226 if test yes = "$GCC"; then
cristyda16f162011-02-19 23:52:17 +000013227 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13228 fi
13229 ;; #(
13230 /*)
13231 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13232 ;; #(
13233 no|'')
13234 ;; #(
13235 *)
Cristy15f22012015-11-14 17:51:30 -050013236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13237$as_echo "$with_sysroot" >&6; }
cristyda16f162011-02-19 23:52:17 +000013238 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13239 ;;
13240esac
13241
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13243$as_echo "${lt_sysroot:-no}" >&6; }
13244
13245
13246
13247
13248
Cristy15f22012015-11-14 17:51:30 -050013249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13250$as_echo_n "checking for a working dd... " >&6; }
13251if ${ac_cv_path_lt_DD+:} false; then :
13252 $as_echo_n "(cached) " >&6
13253else
13254 printf 0123456789abcdef0123456789abcdef >conftest.i
13255cat conftest.i conftest.i >conftest2.i
13256: ${lt_DD:=$DD}
13257if test -z "$lt_DD"; then
13258 ac_path_lt_DD_found=false
13259 # Loop through the user's path and test for each of PROGNAME-LIST
13260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13261for as_dir in $PATH
13262do
13263 IFS=$as_save_IFS
13264 test -z "$as_dir" && as_dir=.
13265 for ac_prog in dd; do
13266 for ac_exec_ext in '' $ac_executable_extensions; do
13267 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13268 as_fn_executable_p "$ac_path_lt_DD" || continue
13269if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13270 cmp -s conftest.i conftest.out \
13271 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13272fi
13273 $ac_path_lt_DD_found && break 3
13274 done
13275 done
13276 done
13277IFS=$as_save_IFS
13278 if test -z "$ac_cv_path_lt_DD"; then
13279 :
13280 fi
13281else
13282 ac_cv_path_lt_DD=$lt_DD
13283fi
13284
13285rm -f conftest.i conftest2.i conftest.out
13286fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13288$as_echo "$ac_cv_path_lt_DD" >&6; }
13289
13290
13291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13292$as_echo_n "checking how to truncate binary pipes... " >&6; }
13293if ${lt_cv_truncate_bin+:} false; then :
13294 $as_echo_n "(cached) " >&6
13295else
13296 printf 0123456789abcdef0123456789abcdef >conftest.i
13297cat conftest.i conftest.i >conftest2.i
13298lt_cv_truncate_bin=
13299if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13300 cmp -s conftest.i conftest.out \
13301 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13302fi
13303rm -f conftest.i conftest2.i conftest.out
13304test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13305fi
13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13307$as_echo "$lt_cv_truncate_bin" >&6; }
13308
13309
13310
13311
13312
13313
13314
13315# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
13316func_cc_basename ()
13317{
13318 for cc_temp in $*""; do
13319 case $cc_temp in
13320 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13321 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13322 \-*) ;;
13323 *) break;;
13324 esac
13325 done
13326 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13327}
13328
cristy73bd4a52010-10-05 11:24:23 +000013329# Check whether --enable-libtool-lock was given.
13330if test "${enable_libtool_lock+set}" = set; then :
13331 enableval=$enable_libtool_lock;
13332fi
13333
Cristy15f22012015-11-14 17:51:30 -050013334test no = "$enable_libtool_lock" || enable_libtool_lock=yes
cristy73bd4a52010-10-05 11:24:23 +000013335
13336# Some flags need to be propagated to the compiler or linker for good
13337# libtool support.
13338case $host in
13339ia64-*-hpux*)
Cristy15f22012015-11-14 17:51:30 -050013340 # Find out what ABI is being produced by ac_compile, and set mode
13341 # options accordingly.
cristy73bd4a52010-10-05 11:24:23 +000013342 echo 'int i;' > conftest.$ac_ext
13343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13344 (eval $ac_compile) 2>&5
13345 ac_status=$?
13346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13347 test $ac_status = 0; }; then
13348 case `/usr/bin/file conftest.$ac_objext` in
13349 *ELF-32*)
Cristy15f22012015-11-14 17:51:30 -050013350 HPUX_IA64_MODE=32
cristy73bd4a52010-10-05 11:24:23 +000013351 ;;
13352 *ELF-64*)
Cristy15f22012015-11-14 17:51:30 -050013353 HPUX_IA64_MODE=64
cristy73bd4a52010-10-05 11:24:23 +000013354 ;;
13355 esac
13356 fi
13357 rm -rf conftest*
13358 ;;
13359*-*-irix6*)
Cristy15f22012015-11-14 17:51:30 -050013360 # Find out what ABI is being produced by ac_compile, and set linker
13361 # options accordingly.
cristy0c60a692010-11-04 01:09:47 +000013362 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000013363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13364 (eval $ac_compile) 2>&5
13365 ac_status=$?
13366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13367 test $ac_status = 0; }; then
Cristy15f22012015-11-14 17:51:30 -050013368 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000013369 case `/usr/bin/file conftest.$ac_objext` in
13370 *32-bit*)
13371 LD="${LD-ld} -melf32bsmip"
13372 ;;
13373 *N32*)
13374 LD="${LD-ld} -melf32bmipn32"
13375 ;;
13376 *64-bit*)
13377 LD="${LD-ld} -melf64bmip"
13378 ;;
13379 esac
13380 else
13381 case `/usr/bin/file conftest.$ac_objext` in
13382 *32-bit*)
13383 LD="${LD-ld} -32"
13384 ;;
13385 *N32*)
13386 LD="${LD-ld} -n32"
13387 ;;
13388 *64-bit*)
13389 LD="${LD-ld} -64"
13390 ;;
13391 esac
13392 fi
13393 fi
13394 rm -rf conftest*
13395 ;;
13396
Cristy15f22012015-11-14 17:51:30 -050013397mips64*-*linux*)
13398 # Find out what ABI is being produced by ac_compile, and set linker
13399 # options accordingly.
13400 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13402 (eval $ac_compile) 2>&5
13403 ac_status=$?
13404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13405 test $ac_status = 0; }; then
13406 emul=elf
13407 case `/usr/bin/file conftest.$ac_objext` in
13408 *32-bit*)
13409 emul="${emul}32"
13410 ;;
13411 *64-bit*)
13412 emul="${emul}64"
13413 ;;
13414 esac
13415 case `/usr/bin/file conftest.$ac_objext` in
13416 *MSB*)
13417 emul="${emul}btsmip"
13418 ;;
13419 *LSB*)
13420 emul="${emul}ltsmip"
13421 ;;
13422 esac
13423 case `/usr/bin/file conftest.$ac_objext` in
13424 *N32*)
13425 emul="${emul}n32"
13426 ;;
13427 esac
13428 LD="${LD-ld} -m $emul"
13429 fi
13430 rm -rf conftest*
13431 ;;
13432
cristyd95b7a52013-10-23 13:12:53 +000013433x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000013434s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Cristy15f22012015-11-14 17:51:30 -050013435 # Find out what ABI is being produced by ac_compile, and set linker
13436 # options accordingly. Note that the listed cases only cover the
13437 # situations where additional linker options are needed (such as when
13438 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13439 # vice versa); the common cases where no linker options are needed do
13440 # not appear in the list.
cristy73bd4a52010-10-05 11:24:23 +000013441 echo 'int i;' > conftest.$ac_ext
13442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13443 (eval $ac_compile) 2>&5
13444 ac_status=$?
13445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446 test $ac_status = 0; }; then
13447 case `/usr/bin/file conftest.o` in
13448 *32-bit*)
13449 case $host in
13450 x86_64-*kfreebsd*-gnu)
13451 LD="${LD-ld} -m elf_i386_fbsd"
13452 ;;
13453 x86_64-*linux*)
Cristy15f22012015-11-14 17:51:30 -050013454 case `/usr/bin/file conftest.o` in
13455 *x86-64*)
13456 LD="${LD-ld} -m elf32_x86_64"
13457 ;;
13458 *)
13459 LD="${LD-ld} -m elf_i386"
13460 ;;
13461 esac
cristy73bd4a52010-10-05 11:24:23 +000013462 ;;
cristya5bda012013-11-03 18:05:38 +000013463 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000013464 LD="${LD-ld} -m elf32lppclinux"
13465 ;;
cristya5bda012013-11-03 18:05:38 +000013466 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013467 LD="${LD-ld} -m elf32ppclinux"
13468 ;;
13469 s390x-*linux*)
13470 LD="${LD-ld} -m elf_s390"
13471 ;;
13472 sparc64-*linux*)
13473 LD="${LD-ld} -m elf32_sparc"
13474 ;;
13475 esac
13476 ;;
13477 *64-bit*)
13478 case $host in
13479 x86_64-*kfreebsd*-gnu)
13480 LD="${LD-ld} -m elf_x86_64_fbsd"
13481 ;;
13482 x86_64-*linux*)
13483 LD="${LD-ld} -m elf_x86_64"
13484 ;;
cristyd95b7a52013-10-23 13:12:53 +000013485 powerpcle-*linux*)
13486 LD="${LD-ld} -m elf64lppc"
13487 ;;
13488 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000013489 LD="${LD-ld} -m elf64ppc"
13490 ;;
13491 s390*-*linux*|s390*-*tpf*)
13492 LD="${LD-ld} -m elf64_s390"
13493 ;;
13494 sparc*-*linux*)
13495 LD="${LD-ld} -m elf64_sparc"
13496 ;;
13497 esac
13498 ;;
13499 esac
13500 fi
13501 rm -rf conftest*
13502 ;;
13503
13504*-*-sco3.2v5*)
13505 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Cristy15f22012015-11-14 17:51:30 -050013506 SAVE_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013507 CFLAGS="$CFLAGS -belf"
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13509$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013510if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013511 $as_echo_n "(cached) " >&6
13512else
13513 ac_ext=c
13514ac_cpp='$CPP $CPPFLAGS'
13515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13517ac_compiler_gnu=$ac_cv_c_compiler_gnu
13518
13519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520/* end confdefs.h. */
13521
13522int
13523main ()
13524{
13525
13526 ;
13527 return 0;
13528}
13529_ACEOF
13530if ac_fn_c_try_link "$LINENO"; then :
13531 lt_cv_cc_needs_belf=yes
13532else
13533 lt_cv_cc_needs_belf=no
13534fi
13535rm -f core conftest.err conftest.$ac_objext \
13536 conftest$ac_exeext conftest.$ac_ext
13537 ac_ext=c
13538ac_cpp='$CPP $CPPFLAGS'
13539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13541ac_compiler_gnu=$ac_cv_c_compiler_gnu
13542
13543fi
13544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13545$as_echo "$lt_cv_cc_needs_belf" >&6; }
Cristy15f22012015-11-14 17:51:30 -050013546 if test yes != "$lt_cv_cc_needs_belf"; then
cristy73bd4a52010-10-05 11:24:23 +000013547 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Cristy15f22012015-11-14 17:51:30 -050013548 CFLAGS=$SAVE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000013549 fi
13550 ;;
cristy99bd5232011-12-07 14:38:20 +000013551*-*solaris*)
Cristy15f22012015-11-14 17:51:30 -050013552 # Find out what ABI is being produced by ac_compile, and set linker
13553 # options accordingly.
cristy73bd4a52010-10-05 11:24:23 +000013554 echo 'int i;' > conftest.$ac_ext
13555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13556 (eval $ac_compile) 2>&5
13557 ac_status=$?
13558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13559 test $ac_status = 0; }; then
13560 case `/usr/bin/file conftest.o` in
13561 *64-bit*)
13562 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000013563 yes*)
13564 case $host in
Cristy15f22012015-11-14 17:51:30 -050013565 i?86-*-solaris*|x86_64-*-solaris*)
cristy99bd5232011-12-07 14:38:20 +000013566 LD="${LD-ld} -m elf_x86_64"
13567 ;;
13568 sparc*-*-solaris*)
13569 LD="${LD-ld} -m elf64_sparc"
13570 ;;
13571 esac
13572 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
13573 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Cristy15f22012015-11-14 17:51:30 -050013574 LD=${LD-ld}_sol2
cristy99bd5232011-12-07 14:38:20 +000013575 fi
13576 ;;
cristy73bd4a52010-10-05 11:24:23 +000013577 *)
13578 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13579 LD="${LD-ld} -64"
13580 fi
13581 ;;
13582 esac
13583 ;;
13584 esac
13585 fi
13586 rm -rf conftest*
13587 ;;
13588esac
13589
Cristy15f22012015-11-14 17:51:30 -050013590need_locks=$enable_libtool_lock
cristy73bd4a52010-10-05 11:24:23 +000013591
cristyda16f162011-02-19 23:52:17 +000013592if test -n "$ac_tool_prefix"; then
13593 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13594set dummy ${ac_tool_prefix}mt; ac_word=$2
13595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13596$as_echo_n "checking for $ac_word... " >&6; }
13597if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13598 $as_echo_n "(cached) " >&6
13599else
13600 if test -n "$MANIFEST_TOOL"; then
13601 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13602else
13603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13604for as_dir in $PATH
13605do
13606 IFS=$as_save_IFS
13607 test -z "$as_dir" && as_dir=.
13608 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013610 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13612 break 2
13613 fi
13614done
13615 done
13616IFS=$as_save_IFS
13617
13618fi
13619fi
13620MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13621if test -n "$MANIFEST_TOOL"; then
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13623$as_echo "$MANIFEST_TOOL" >&6; }
13624else
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13626$as_echo "no" >&6; }
13627fi
13628
13629
13630fi
13631if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13632 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13633 # Extract the first word of "mt", so it can be a program name with args.
13634set dummy mt; ac_word=$2
13635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13636$as_echo_n "checking for $ac_word... " >&6; }
13637if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13638 $as_echo_n "(cached) " >&6
13639else
13640 if test -n "$ac_ct_MANIFEST_TOOL"; then
13641 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13642else
13643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13644for as_dir in $PATH
13645do
13646 IFS=$as_save_IFS
13647 test -z "$as_dir" && as_dir=.
13648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013650 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13652 break 2
13653 fi
13654done
13655 done
13656IFS=$as_save_IFS
13657
13658fi
13659fi
13660ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
13661if test -n "$ac_ct_MANIFEST_TOOL"; then
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
13663$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
13664else
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13666$as_echo "no" >&6; }
13667fi
13668
13669 if test "x$ac_ct_MANIFEST_TOOL" = x; then
13670 MANIFEST_TOOL=":"
13671 else
13672 case $cross_compiling:$ac_tool_warned in
13673yes:)
13674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13676ac_tool_warned=yes ;;
13677esac
13678 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
13679 fi
13680else
13681 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
13682fi
13683
13684test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
13685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
13686$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
13687if ${lt_cv_path_mainfest_tool+:} false; then :
13688 $as_echo_n "(cached) " >&6
13689else
13690 lt_cv_path_mainfest_tool=no
13691 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
13692 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
13693 cat conftest.err >&5
13694 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
13695 lt_cv_path_mainfest_tool=yes
13696 fi
13697 rm -f conftest*
13698fi
13699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
13700$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Cristy15f22012015-11-14 17:51:30 -050013701if test yes != "$lt_cv_path_mainfest_tool"; then
cristyda16f162011-02-19 23:52:17 +000013702 MANIFEST_TOOL=:
13703fi
13704
13705
13706
13707
13708
cristy73bd4a52010-10-05 11:24:23 +000013709
13710 case $host_os in
13711 rhapsody* | darwin*)
13712 if test -n "$ac_tool_prefix"; then
13713 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13714set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013717if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013718 $as_echo_n "(cached) " >&6
13719else
13720 if test -n "$DSYMUTIL"; then
13721 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13722else
13723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13724for as_dir in $PATH
13725do
13726 IFS=$as_save_IFS
13727 test -z "$as_dir" && as_dir=.
13728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013730 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13732 break 2
13733 fi
13734done
13735 done
13736IFS=$as_save_IFS
13737
13738fi
13739fi
13740DSYMUTIL=$ac_cv_prog_DSYMUTIL
13741if test -n "$DSYMUTIL"; then
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13743$as_echo "$DSYMUTIL" >&6; }
13744else
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13746$as_echo "no" >&6; }
13747fi
13748
13749
13750fi
13751if test -z "$ac_cv_prog_DSYMUTIL"; then
13752 ac_ct_DSYMUTIL=$DSYMUTIL
13753 # Extract the first word of "dsymutil", so it can be a program name with args.
13754set dummy dsymutil; ac_word=$2
13755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13756$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013757if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013758 $as_echo_n "(cached) " >&6
13759else
13760 if test -n "$ac_ct_DSYMUTIL"; then
13761 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13762else
13763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13764for as_dir in $PATH
13765do
13766 IFS=$as_save_IFS
13767 test -z "$as_dir" && as_dir=.
13768 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 break 2
13773 fi
13774done
13775 done
13776IFS=$as_save_IFS
13777
13778fi
13779fi
13780ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13781if test -n "$ac_ct_DSYMUTIL"; then
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13783$as_echo "$ac_ct_DSYMUTIL" >&6; }
13784else
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13786$as_echo "no" >&6; }
13787fi
13788
13789 if test "x$ac_ct_DSYMUTIL" = x; then
13790 DSYMUTIL=":"
13791 else
13792 case $cross_compiling:$ac_tool_warned in
13793yes:)
13794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13796ac_tool_warned=yes ;;
13797esac
13798 DSYMUTIL=$ac_ct_DSYMUTIL
13799 fi
13800else
13801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13802fi
13803
13804 if test -n "$ac_tool_prefix"; then
13805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13806set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13808$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013809if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013810 $as_echo_n "(cached) " >&6
13811else
13812 if test -n "$NMEDIT"; then
13813 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13814else
13815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816for as_dir in $PATH
13817do
13818 IFS=$as_save_IFS
13819 test -z "$as_dir" && as_dir=.
13820 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013822 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13824 break 2
13825 fi
13826done
13827 done
13828IFS=$as_save_IFS
13829
13830fi
13831fi
13832NMEDIT=$ac_cv_prog_NMEDIT
13833if test -n "$NMEDIT"; then
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13835$as_echo "$NMEDIT" >&6; }
13836else
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838$as_echo "no" >&6; }
13839fi
13840
13841
13842fi
13843if test -z "$ac_cv_prog_NMEDIT"; then
13844 ac_ct_NMEDIT=$NMEDIT
13845 # Extract the first word of "nmedit", so it can be a program name with args.
13846set dummy nmedit; ac_word=$2
13847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13848$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013849if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013850 $as_echo_n "(cached) " >&6
13851else
13852 if test -n "$ac_ct_NMEDIT"; then
13853 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13854else
13855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13856for as_dir in $PATH
13857do
13858 IFS=$as_save_IFS
13859 test -z "$as_dir" && as_dir=.
13860 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013862 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13864 break 2
13865 fi
13866done
13867 done
13868IFS=$as_save_IFS
13869
13870fi
13871fi
13872ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13873if test -n "$ac_ct_NMEDIT"; then
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13875$as_echo "$ac_ct_NMEDIT" >&6; }
13876else
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13878$as_echo "no" >&6; }
13879fi
13880
13881 if test "x$ac_ct_NMEDIT" = x; then
13882 NMEDIT=":"
13883 else
13884 case $cross_compiling:$ac_tool_warned in
13885yes:)
13886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13888ac_tool_warned=yes ;;
13889esac
13890 NMEDIT=$ac_ct_NMEDIT
13891 fi
13892else
13893 NMEDIT="$ac_cv_prog_NMEDIT"
13894fi
13895
13896 if test -n "$ac_tool_prefix"; then
13897 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13898set dummy ${ac_tool_prefix}lipo; ac_word=$2
13899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13900$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013901if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013902 $as_echo_n "(cached) " >&6
13903else
13904 if test -n "$LIPO"; then
13905 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13906else
13907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908for as_dir in $PATH
13909do
13910 IFS=$as_save_IFS
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013914 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13916 break 2
13917 fi
13918done
13919 done
13920IFS=$as_save_IFS
13921
13922fi
13923fi
13924LIPO=$ac_cv_prog_LIPO
13925if test -n "$LIPO"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13927$as_echo "$LIPO" >&6; }
13928else
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13930$as_echo "no" >&6; }
13931fi
13932
13933
13934fi
13935if test -z "$ac_cv_prog_LIPO"; then
13936 ac_ct_LIPO=$LIPO
13937 # Extract the first word of "lipo", so it can be a program name with args.
13938set dummy lipo; ac_word=$2
13939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13940$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013941if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013942 $as_echo_n "(cached) " >&6
13943else
13944 if test -n "$ac_ct_LIPO"; then
13945 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13946else
13947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13948for as_dir in $PATH
13949do
13950 IFS=$as_save_IFS
13951 test -z "$as_dir" && as_dir=.
13952 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013954 ac_cv_prog_ac_ct_LIPO="lipo"
13955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13956 break 2
13957 fi
13958done
13959 done
13960IFS=$as_save_IFS
13961
13962fi
13963fi
13964ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13965if test -n "$ac_ct_LIPO"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13967$as_echo "$ac_ct_LIPO" >&6; }
13968else
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13970$as_echo "no" >&6; }
13971fi
13972
13973 if test "x$ac_ct_LIPO" = x; then
13974 LIPO=":"
13975 else
13976 case $cross_compiling:$ac_tool_warned in
13977yes:)
13978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13980ac_tool_warned=yes ;;
13981esac
13982 LIPO=$ac_ct_LIPO
13983 fi
13984else
13985 LIPO="$ac_cv_prog_LIPO"
13986fi
13987
13988 if test -n "$ac_tool_prefix"; then
13989 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13990set dummy ${ac_tool_prefix}otool; ac_word=$2
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13992$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013993if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013994 $as_echo_n "(cached) " >&6
13995else
13996 if test -n "$OTOOL"; then
13997 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13998else
13999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000for as_dir in $PATH
14001do
14002 IFS=$as_save_IFS
14003 test -z "$as_dir" && as_dir=.
14004 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014005 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014006 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14008 break 2
14009 fi
14010done
14011 done
14012IFS=$as_save_IFS
14013
14014fi
14015fi
14016OTOOL=$ac_cv_prog_OTOOL
14017if test -n "$OTOOL"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14019$as_echo "$OTOOL" >&6; }
14020else
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022$as_echo "no" >&6; }
14023fi
14024
14025
14026fi
14027if test -z "$ac_cv_prog_OTOOL"; then
14028 ac_ct_OTOOL=$OTOOL
14029 # Extract the first word of "otool", so it can be a program name with args.
14030set dummy otool; ac_word=$2
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014033if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014034 $as_echo_n "(cached) " >&6
14035else
14036 if test -n "$ac_ct_OTOOL"; then
14037 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14038else
14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040for as_dir in $PATH
14041do
14042 IFS=$as_save_IFS
14043 test -z "$as_dir" && as_dir=.
14044 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014046 ac_cv_prog_ac_ct_OTOOL="otool"
14047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14048 break 2
14049 fi
14050done
14051 done
14052IFS=$as_save_IFS
14053
14054fi
14055fi
14056ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14057if test -n "$ac_ct_OTOOL"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14059$as_echo "$ac_ct_OTOOL" >&6; }
14060else
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
14063fi
14064
14065 if test "x$ac_ct_OTOOL" = x; then
14066 OTOOL=":"
14067 else
14068 case $cross_compiling:$ac_tool_warned in
14069yes:)
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14072ac_tool_warned=yes ;;
14073esac
14074 OTOOL=$ac_ct_OTOOL
14075 fi
14076else
14077 OTOOL="$ac_cv_prog_OTOOL"
14078fi
14079
14080 if test -n "$ac_tool_prefix"; then
14081 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14082set dummy ${ac_tool_prefix}otool64; ac_word=$2
14083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014085if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014086 $as_echo_n "(cached) " >&6
14087else
14088 if test -n "$OTOOL64"; then
14089 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14090else
14091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14092for as_dir in $PATH
14093do
14094 IFS=$as_save_IFS
14095 test -z "$as_dir" && as_dir=.
14096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014098 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14100 break 2
14101 fi
14102done
14103 done
14104IFS=$as_save_IFS
14105
14106fi
14107fi
14108OTOOL64=$ac_cv_prog_OTOOL64
14109if test -n "$OTOOL64"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14111$as_echo "$OTOOL64" >&6; }
14112else
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114$as_echo "no" >&6; }
14115fi
14116
14117
14118fi
14119if test -z "$ac_cv_prog_OTOOL64"; then
14120 ac_ct_OTOOL64=$OTOOL64
14121 # Extract the first word of "otool64", so it can be a program name with args.
14122set dummy otool64; ac_word=$2
14123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14124$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014125if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014126 $as_echo_n "(cached) " >&6
14127else
14128 if test -n "$ac_ct_OTOOL64"; then
14129 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14130else
14131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14132for as_dir in $PATH
14133do
14134 IFS=$as_save_IFS
14135 test -z "$as_dir" && as_dir=.
14136 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014138 ac_cv_prog_ac_ct_OTOOL64="otool64"
14139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14140 break 2
14141 fi
14142done
14143 done
14144IFS=$as_save_IFS
14145
14146fi
14147fi
14148ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14149if test -n "$ac_ct_OTOOL64"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14151$as_echo "$ac_ct_OTOOL64" >&6; }
14152else
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14154$as_echo "no" >&6; }
14155fi
14156
14157 if test "x$ac_ct_OTOOL64" = x; then
14158 OTOOL64=":"
14159 else
14160 case $cross_compiling:$ac_tool_warned in
14161yes:)
14162{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14163$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14164ac_tool_warned=yes ;;
14165esac
14166 OTOOL64=$ac_ct_OTOOL64
14167 fi
14168else
14169 OTOOL64="$ac_cv_prog_OTOOL64"
14170fi
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14199$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014200if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014201 $as_echo_n "(cached) " >&6
14202else
14203 lt_cv_apple_cc_single_mod=no
Cristy15f22012015-11-14 17:51:30 -050014204 if test -z "$LT_MULTI_MODULE"; then
cristy73bd4a52010-10-05 11:24:23 +000014205 # By default we will add the -single_module flag. You can override
14206 # by either setting the environment variable LT_MULTI_MODULE
14207 # non-empty at configure time, or by adding -multi_module to the
14208 # link flags.
14209 rm -rf libconftest.dylib*
14210 echo "int foo(void){return 1;}" > conftest.c
14211 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14212-dynamiclib -Wl,-single_module conftest.c" >&5
14213 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14214 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14215 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014216 # If there is a non-empty error log, and "single_module"
14217 # appears in it, assume the flag caused a linker warning
14218 if test -s conftest.err && $GREP single_module conftest.err; then
14219 cat conftest.err >&5
14220 # Otherwise, if the output was created with a 0 exit code from
14221 # the compiler, it worked.
Cristy15f22012015-11-14 17:51:30 -050014222 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
cristy73bd4a52010-10-05 11:24:23 +000014223 lt_cv_apple_cc_single_mod=yes
14224 else
14225 cat conftest.err >&5
14226 fi
14227 rm -rf libconftest.dylib*
14228 rm -f conftest.*
14229 fi
14230fi
14231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14232$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000014233
cristy73bd4a52010-10-05 11:24:23 +000014234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14235$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014236if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014237 $as_echo_n "(cached) " >&6
14238else
14239 lt_cv_ld_exported_symbols_list=no
14240 save_LDFLAGS=$LDFLAGS
14241 echo "_main" > conftest.sym
14242 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244/* end confdefs.h. */
14245
14246int
14247main ()
14248{
14249
14250 ;
14251 return 0;
14252}
14253_ACEOF
14254if ac_fn_c_try_link "$LINENO"; then :
14255 lt_cv_ld_exported_symbols_list=yes
14256else
14257 lt_cv_ld_exported_symbols_list=no
14258fi
14259rm -f core conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050014261 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014262
14263fi
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14265$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000014266
cristy0c60a692010-11-04 01:09:47 +000014267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14268$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014269if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000014270 $as_echo_n "(cached) " >&6
14271else
14272 lt_cv_ld_force_load=no
14273 cat > conftest.c << _LT_EOF
14274int forced_loaded() { return 2;}
14275_LT_EOF
14276 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14277 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14278 echo "$AR cru libconftest.a conftest.o" >&5
14279 $AR cru libconftest.a conftest.o 2>&5
14280 echo "$RANLIB libconftest.a" >&5
14281 $RANLIB libconftest.a 2>&5
14282 cat > conftest.c << _LT_EOF
14283int main() { return 0;}
14284_LT_EOF
14285 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14286 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14287 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000014288 if test -s conftest.err && $GREP force_load conftest.err; then
14289 cat conftest.err >&5
Cristy15f22012015-11-14 17:51:30 -050014290 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
cristy0c60a692010-11-04 01:09:47 +000014291 lt_cv_ld_force_load=yes
14292 else
14293 cat conftest.err >&5
14294 fi
14295 rm -f conftest.err libconftest.a conftest conftest.c
14296 rm -rf conftest.dSYM
14297
14298fi
14299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14300$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000014301 case $host_os in
14302 rhapsody* | darwin1.[012])
Cristy15f22012015-11-14 17:51:30 -050014303 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000014304 darwin1.*)
Cristy15f22012015-11-14 17:51:30 -050014305 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000014306 darwin*) # darwin 5.x on
14307 # if running on 10.5 or later, the deployment target defaults
14308 # to the OS version, if on x86, and 10.4, the deployment
14309 # target defaults to 10.4. Don't you love it?
14310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Cristy15f22012015-11-14 17:51:30 -050014312 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14313 10.[012][,.]*)
14314 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000014315 10.*)
Cristy15f22012015-11-14 17:51:30 -050014316 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cristy73bd4a52010-10-05 11:24:23 +000014317 esac
14318 ;;
14319 esac
Cristy15f22012015-11-14 17:51:30 -050014320 if test yes = "$lt_cv_apple_cc_single_mod"; then
cristy73bd4a52010-10-05 11:24:23 +000014321 _lt_dar_single_mod='$single_module'
14322 fi
Cristy15f22012015-11-14 17:51:30 -050014323 if test yes = "$lt_cv_ld_exported_symbols_list"; then
14324 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
cristy73bd4a52010-10-05 11:24:23 +000014325 else
Cristy15f22012015-11-14 17:51:30 -050014326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
cristy73bd4a52010-10-05 11:24:23 +000014327 fi
Cristy15f22012015-11-14 17:51:30 -050014328 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
cristy73bd4a52010-10-05 11:24:23 +000014329 _lt_dsymutil='~$DSYMUTIL $lib || :'
14330 else
14331 _lt_dsymutil=
14332 fi
14333 ;;
14334 esac
14335
Cristy15f22012015-11-14 17:51:30 -050014336# func_munge_path_list VARIABLE PATH
14337# -----------------------------------
14338# VARIABLE is name of variable containing _space_ separated list of
14339# directories to be munged by the contents of PATH, which is string
14340# having a format:
14341# "DIR[:DIR]:"
14342# string "DIR[ DIR]" will be prepended to VARIABLE
14343# ":DIR[:DIR]"
14344# string "DIR[ DIR]" will be appended to VARIABLE
14345# "DIRP[:DIRP]::[DIRA:]DIRA"
14346# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14347# "DIRA[ DIRA]" will be appended to VARIABLE
14348# "DIR[:DIR]"
14349# VARIABLE will be replaced by "DIR[ DIR]"
14350func_munge_path_list ()
14351{
14352 case x$2 in
14353 x)
14354 ;;
14355 *:)
14356 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14357 ;;
14358 x:*)
14359 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14360 ;;
14361 *::*)
14362 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14363 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14364 ;;
14365 *)
14366 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14367 ;;
14368 esac
14369}
14370
cristy73bd4a52010-10-05 11:24:23 +000014371for ac_header in dlfcn.h
14372do :
14373 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14374"
cristyda16f162011-02-19 23:52:17 +000014375if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000014376 cat >>confdefs.h <<_ACEOF
14377#define HAVE_DLFCN_H 1
14378_ACEOF
14379
14380fi
14381
14382done
14383
14384
14385
cristy73bd4a52010-10-05 11:24:23 +000014386
cristyda16f162011-02-19 23:52:17 +000014387func_stripname_cnf ()
14388{
Cristy15f22012015-11-14 17:51:30 -050014389 case $2 in
14390 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14391 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
cristyda16f162011-02-19 23:52:17 +000014392 esac
14393} # func_stripname_cnf
14394
14395
14396
cristy73bd4a52010-10-05 11:24:23 +000014397
14398
14399# Set options
14400enable_win32_dll=yes
14401
14402case $host in
cristy0c60a692010-11-04 01:09:47 +000014403*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000014404 if test -n "$ac_tool_prefix"; then
14405 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14406set dummy ${ac_tool_prefix}as; ac_word=$2
14407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014409if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014410 $as_echo_n "(cached) " >&6
14411else
14412 if test -n "$AS"; then
14413 ac_cv_prog_AS="$AS" # Let the user override the test.
14414else
14415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14416for as_dir in $PATH
14417do
14418 IFS=$as_save_IFS
14419 test -z "$as_dir" && as_dir=.
14420 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014422 ac_cv_prog_AS="${ac_tool_prefix}as"
14423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14424 break 2
14425 fi
14426done
14427 done
14428IFS=$as_save_IFS
14429
14430fi
14431fi
14432AS=$ac_cv_prog_AS
14433if test -n "$AS"; then
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14435$as_echo "$AS" >&6; }
14436else
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438$as_echo "no" >&6; }
14439fi
14440
14441
14442fi
14443if test -z "$ac_cv_prog_AS"; then
14444 ac_ct_AS=$AS
14445 # Extract the first word of "as", so it can be a program name with args.
14446set dummy as; ac_word=$2
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014449if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014450 $as_echo_n "(cached) " >&6
14451else
14452 if test -n "$ac_ct_AS"; then
14453 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14454else
14455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14456for as_dir in $PATH
14457do
14458 IFS=$as_save_IFS
14459 test -z "$as_dir" && as_dir=.
14460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014462 ac_cv_prog_ac_ct_AS="as"
14463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14464 break 2
14465 fi
14466done
14467 done
14468IFS=$as_save_IFS
14469
14470fi
14471fi
14472ac_ct_AS=$ac_cv_prog_ac_ct_AS
14473if test -n "$ac_ct_AS"; then
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14475$as_echo "$ac_ct_AS" >&6; }
14476else
14477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478$as_echo "no" >&6; }
14479fi
14480
14481 if test "x$ac_ct_AS" = x; then
14482 AS="false"
14483 else
14484 case $cross_compiling:$ac_tool_warned in
14485yes:)
14486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14488ac_tool_warned=yes ;;
14489esac
14490 AS=$ac_ct_AS
14491 fi
14492else
14493 AS="$ac_cv_prog_AS"
14494fi
14495
14496 if test -n "$ac_tool_prefix"; then
14497 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14498set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014501if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014502 $as_echo_n "(cached) " >&6
14503else
14504 if test -n "$DLLTOOL"; then
14505 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14506else
14507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14508for as_dir in $PATH
14509do
14510 IFS=$as_save_IFS
14511 test -z "$as_dir" && as_dir=.
14512 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014514 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14516 break 2
14517 fi
14518done
14519 done
14520IFS=$as_save_IFS
14521
14522fi
14523fi
14524DLLTOOL=$ac_cv_prog_DLLTOOL
14525if test -n "$DLLTOOL"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14527$as_echo "$DLLTOOL" >&6; }
14528else
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14530$as_echo "no" >&6; }
14531fi
14532
14533
14534fi
14535if test -z "$ac_cv_prog_DLLTOOL"; then
14536 ac_ct_DLLTOOL=$DLLTOOL
14537 # Extract the first word of "dlltool", so it can be a program name with args.
14538set dummy dlltool; ac_word=$2
14539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14540$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014541if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014542 $as_echo_n "(cached) " >&6
14543else
14544 if test -n "$ac_ct_DLLTOOL"; then
14545 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14546else
14547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548for as_dir in $PATH
14549do
14550 IFS=$as_save_IFS
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014554 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14556 break 2
14557 fi
14558done
14559 done
14560IFS=$as_save_IFS
14561
14562fi
14563fi
14564ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14565if test -n "$ac_ct_DLLTOOL"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14567$as_echo "$ac_ct_DLLTOOL" >&6; }
14568else
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570$as_echo "no" >&6; }
14571fi
14572
14573 if test "x$ac_ct_DLLTOOL" = x; then
14574 DLLTOOL="false"
14575 else
14576 case $cross_compiling:$ac_tool_warned in
14577yes:)
14578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14580ac_tool_warned=yes ;;
14581esac
14582 DLLTOOL=$ac_ct_DLLTOOL
14583 fi
14584else
14585 DLLTOOL="$ac_cv_prog_DLLTOOL"
14586fi
14587
14588 if test -n "$ac_tool_prefix"; then
14589 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14590set dummy ${ac_tool_prefix}objdump; ac_word=$2
14591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14592$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014593if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014594 $as_echo_n "(cached) " >&6
14595else
14596 if test -n "$OBJDUMP"; then
14597 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14598else
14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14600for as_dir in $PATH
14601do
14602 IFS=$as_save_IFS
14603 test -z "$as_dir" && as_dir=.
14604 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014606 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14608 break 2
14609 fi
14610done
14611 done
14612IFS=$as_save_IFS
14613
14614fi
14615fi
14616OBJDUMP=$ac_cv_prog_OBJDUMP
14617if test -n "$OBJDUMP"; then
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14619$as_echo "$OBJDUMP" >&6; }
14620else
14621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14622$as_echo "no" >&6; }
14623fi
14624
14625
14626fi
14627if test -z "$ac_cv_prog_OBJDUMP"; then
14628 ac_ct_OBJDUMP=$OBJDUMP
14629 # Extract the first word of "objdump", so it can be a program name with args.
14630set dummy objdump; ac_word=$2
14631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014633if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014634 $as_echo_n "(cached) " >&6
14635else
14636 if test -n "$ac_ct_OBJDUMP"; then
14637 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14638else
14639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14640for as_dir in $PATH
14641do
14642 IFS=$as_save_IFS
14643 test -z "$as_dir" && as_dir=.
14644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014646 ac_cv_prog_ac_ct_OBJDUMP="objdump"
14647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14648 break 2
14649 fi
14650done
14651 done
14652IFS=$as_save_IFS
14653
14654fi
14655fi
14656ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14657if test -n "$ac_ct_OBJDUMP"; then
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
14659$as_echo "$ac_ct_OBJDUMP" >&6; }
14660else
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14662$as_echo "no" >&6; }
14663fi
14664
14665 if test "x$ac_ct_OBJDUMP" = x; then
14666 OBJDUMP="false"
14667 else
14668 case $cross_compiling:$ac_tool_warned in
14669yes:)
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14672ac_tool_warned=yes ;;
14673esac
14674 OBJDUMP=$ac_ct_OBJDUMP
14675 fi
14676else
14677 OBJDUMP="$ac_cv_prog_OBJDUMP"
14678fi
14679
14680 ;;
14681esac
14682
14683test -z "$AS" && AS=as
14684
14685
14686
14687
14688
14689test -z "$DLLTOOL" && DLLTOOL=dlltool
14690
14691
14692
14693
14694
14695test -z "$OBJDUMP" && OBJDUMP=objdump
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705 # Check whether --enable-shared was given.
14706if test "${enable_shared+set}" = set; then :
14707 enableval=$enable_shared; p=${PACKAGE-default}
14708 case $enableval in
14709 yes) enable_shared=yes ;;
14710 no) enable_shared=no ;;
14711 *)
14712 enable_shared=no
14713 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014714 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000014715 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050014716 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014717 if test "X$pkg" = "X$p"; then
14718 enable_shared=yes
14719 fi
14720 done
Cristy15f22012015-11-14 17:51:30 -050014721 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014722 ;;
14723 esac
14724else
14725 enable_shared=yes
14726fi
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736 # Check whether --enable-static was given.
14737if test "${enable_static+set}" = set; then :
14738 enableval=$enable_static; p=${PACKAGE-default}
14739 case $enableval in
14740 yes) enable_static=yes ;;
14741 no) enable_static=no ;;
14742 *)
14743 enable_static=no
14744 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014745 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000014746 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050014747 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014748 if test "X$pkg" = "X$p"; then
14749 enable_static=yes
14750 fi
14751 done
Cristy15f22012015-11-14 17:51:30 -050014752 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014753 ;;
14754 esac
14755else
14756 enable_static=yes
14757fi
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768# Check whether --with-pic was given.
14769if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000014770 withval=$with_pic; lt_p=${PACKAGE-default}
14771 case $withval in
14772 yes|no) pic_mode=$withval ;;
14773 *)
14774 pic_mode=default
14775 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014776 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy99bd5232011-12-07 14:38:20 +000014777 for lt_pkg in $withval; do
Cristy15f22012015-11-14 17:51:30 -050014778 IFS=$lt_save_ifs
cristy99bd5232011-12-07 14:38:20 +000014779 if test "X$lt_pkg" = "X$lt_p"; then
14780 pic_mode=yes
14781 fi
14782 done
Cristy15f22012015-11-14 17:51:30 -050014783 IFS=$lt_save_ifs
cristy99bd5232011-12-07 14:38:20 +000014784 ;;
14785 esac
cristy73bd4a52010-10-05 11:24:23 +000014786else
14787 pic_mode=default
14788fi
14789
14790
cristy73bd4a52010-10-05 11:24:23 +000014791
14792
14793
14794
14795
14796
14797 # Check whether --enable-fast-install was given.
14798if test "${enable_fast_install+set}" = set; then :
14799 enableval=$enable_fast_install; p=${PACKAGE-default}
14800 case $enableval in
14801 yes) enable_fast_install=yes ;;
14802 no) enable_fast_install=no ;;
14803 *)
14804 enable_fast_install=no
14805 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050014806 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000014807 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050014808 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014809 if test "X$pkg" = "X$p"; then
14810 enable_fast_install=yes
14811 fi
14812 done
Cristy15f22012015-11-14 17:51:30 -050014813 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000014814 ;;
14815 esac
14816else
14817 enable_fast_install=yes
14818fi
14819
14820
14821
14822
14823
14824
14825
14826
Cristy15f22012015-11-14 17:51:30 -050014827 shared_archive_member_spec=
14828case $host,$enable_shared in
14829power*-*-aix[5-9]*,yes)
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
14831$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
14832
14833# Check whether --with-aix-soname was given.
14834if test "${with_aix_soname+set}" = set; then :
14835 withval=$with_aix_soname; case $withval in
14836 aix|svr4|both)
14837 ;;
14838 *)
14839 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
14840 ;;
14841 esac
14842 lt_cv_with_aix_soname=$with_aix_soname
14843else
14844 if ${lt_cv_with_aix_soname+:} false; then :
14845 $as_echo_n "(cached) " >&6
14846else
14847 lt_cv_with_aix_soname=aix
14848fi
14849
14850 with_aix_soname=$lt_cv_with_aix_soname
14851fi
14852
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
14854$as_echo "$with_aix_soname" >&6; }
14855 if test aix != "$with_aix_soname"; then
14856 # For the AIX way of multilib, we name the shared archive member
14857 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
14858 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
14859 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
14860 # the AIX toolchain works better with OBJECT_MODE set (default 32).
14861 if test 64 = "${OBJECT_MODE-32}"; then
14862 shared_archive_member_spec=shr_64
14863 else
14864 shared_archive_member_spec=shr
14865 fi
14866 fi
14867 ;;
14868*)
14869 with_aix_soname=aix
14870 ;;
14871esac
14872
14873
14874
14875
14876
14877
14878
cristy73bd4a52010-10-05 11:24:23 +000014879
14880
14881
14882# This can be used to rebuild libtool when needed
Cristy15f22012015-11-14 17:51:30 -050014883LIBTOOL_DEPS=$ltmain
cristy73bd4a52010-10-05 11:24:23 +000014884
14885# Always use our own libtool.
14886LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900
14901
14902
14903
14904
14905
14906
14907
14908
14909
14910
14911
cristy0c60a692010-11-04 01:09:47 +000014912
cristy99bd5232011-12-07 14:38:20 +000014913
14914
14915
14916
cristy73bd4a52010-10-05 11:24:23 +000014917test -z "$LN_S" && LN_S="ln -s"
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
Cristy15f22012015-11-14 17:51:30 -050014932if test -n "${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000014933 setopt NO_GLOB_SUBST
14934fi
14935
14936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14937$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014938if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014939 $as_echo_n "(cached) " >&6
14940else
14941 rm -f .libs 2>/dev/null
14942mkdir .libs 2>/dev/null
14943if test -d .libs; then
14944 lt_cv_objdir=.libs
14945else
14946 # MS-DOS does not allow filenames that begin with a dot.
14947 lt_cv_objdir=_libs
14948fi
14949rmdir .libs 2>/dev/null
14950fi
14951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14952$as_echo "$lt_cv_objdir" >&6; }
14953objdir=$lt_cv_objdir
14954
14955
14956
14957
14958
14959cat >>confdefs.h <<_ACEOF
14960#define LT_OBJDIR "$lt_cv_objdir/"
14961_ACEOF
14962
14963
14964
14965
cristy73bd4a52010-10-05 11:24:23 +000014966case $host_os in
14967aix3*)
14968 # AIX sometimes has problems with the GCC collect2 program. For some
14969 # reason, if we set the COLLECT_NAMES environment variable, the problems
14970 # vanish in a puff of smoke.
Cristy15f22012015-11-14 17:51:30 -050014971 if test set != "${COLLECT_NAMES+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000014972 COLLECT_NAMES=
14973 export COLLECT_NAMES
14974 fi
14975 ;;
14976esac
14977
cristy73bd4a52010-10-05 11:24:23 +000014978# Global variables:
14979ofile=libtool
14980can_build_shared=yes
14981
Cristy15f22012015-11-14 17:51:30 -050014982# All known linkers require a '.a' archive for static linking (except MSVC,
cristy73bd4a52010-10-05 11:24:23 +000014983# which needs '.lib').
14984libext=a
14985
Cristy15f22012015-11-14 17:51:30 -050014986with_gnu_ld=$lt_cv_prog_gnu_ld
cristy73bd4a52010-10-05 11:24:23 +000014987
Cristy15f22012015-11-14 17:51:30 -050014988old_CC=$CC
14989old_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014990
14991# Set sane defaults for various variables
14992test -z "$CC" && CC=cc
14993test -z "$LTCC" && LTCC=$CC
14994test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14995test -z "$LD" && LD=ld
14996test -z "$ac_objext" && ac_objext=o
14997
Cristy15f22012015-11-14 17:51:30 -050014998func_cc_basename $compiler
14999cc_basename=$func_cc_basename_result
cristy73bd4a52010-10-05 11:24:23 +000015000
15001
15002# Only perform the check for file, if the check method requires it
15003test -z "$MAGIC_CMD" && MAGIC_CMD=file
15004case $deplibs_check_method in
15005file_magic*)
15006 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15008$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015009if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015010 $as_echo_n "(cached) " >&6
15011else
15012 case $MAGIC_CMD in
15013[\\/*] | ?:[\\/]*)
Cristy15f22012015-11-14 17:51:30 -050015014 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000015015 ;;
15016*)
Cristy15f22012015-11-14 17:51:30 -050015017 lt_save_MAGIC_CMD=$MAGIC_CMD
15018 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000015019 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15020 for ac_dir in $ac_dummy; do
Cristy15f22012015-11-14 17:51:30 -050015021 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000015022 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050015023 if test -f "$ac_dir/${ac_tool_prefix}file"; then
15024 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
cristy73bd4a52010-10-05 11:24:23 +000015025 if test -n "$file_magic_test_file"; then
15026 case $deplibs_check_method in
15027 "file_magic "*)
15028 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Cristy15f22012015-11-14 17:51:30 -050015029 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015030 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15031 $EGREP "$file_magic_regex" > /dev/null; then
15032 :
15033 else
15034 cat <<_LT_EOF 1>&2
15035
15036*** Warning: the command libtool uses to detect shared libraries,
15037*** $file_magic_cmd, produces output that libtool cannot recognize.
15038*** The result is that libtool may fail to recognize shared libraries
15039*** as such. This will affect the creation of libtool libraries that
15040*** depend on shared libraries, but programs linked with such libtool
15041*** libraries will work regardless of this problem. Nevertheless, you
15042*** may want to report the problem to your system manager and/or to
15043*** bug-libtool@gnu.org
15044
15045_LT_EOF
15046 fi ;;
15047 esac
15048 fi
15049 break
15050 fi
15051 done
Cristy15f22012015-11-14 17:51:30 -050015052 IFS=$lt_save_ifs
15053 MAGIC_CMD=$lt_save_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015054 ;;
15055esac
15056fi
15057
Cristy15f22012015-11-14 17:51:30 -050015058MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015059if test -n "$MAGIC_CMD"; then
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15061$as_echo "$MAGIC_CMD" >&6; }
15062else
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15064$as_echo "no" >&6; }
15065fi
15066
15067
15068
15069
15070
15071if test -z "$lt_cv_path_MAGIC_CMD"; then
15072 if test -n "$ac_tool_prefix"; then
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15074$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015075if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015076 $as_echo_n "(cached) " >&6
15077else
15078 case $MAGIC_CMD in
15079[\\/*] | ?:[\\/]*)
Cristy15f22012015-11-14 17:51:30 -050015080 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000015081 ;;
15082*)
Cristy15f22012015-11-14 17:51:30 -050015083 lt_save_MAGIC_CMD=$MAGIC_CMD
15084 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000015085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15086 for ac_dir in $ac_dummy; do
Cristy15f22012015-11-14 17:51:30 -050015087 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000015088 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050015089 if test -f "$ac_dir/file"; then
15090 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
cristy73bd4a52010-10-05 11:24:23 +000015091 if test -n "$file_magic_test_file"; then
15092 case $deplibs_check_method in
15093 "file_magic "*)
15094 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Cristy15f22012015-11-14 17:51:30 -050015095 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15097 $EGREP "$file_magic_regex" > /dev/null; then
15098 :
15099 else
15100 cat <<_LT_EOF 1>&2
15101
15102*** Warning: the command libtool uses to detect shared libraries,
15103*** $file_magic_cmd, produces output that libtool cannot recognize.
15104*** The result is that libtool may fail to recognize shared libraries
15105*** as such. This will affect the creation of libtool libraries that
15106*** depend on shared libraries, but programs linked with such libtool
15107*** libraries will work regardless of this problem. Nevertheless, you
15108*** may want to report the problem to your system manager and/or to
15109*** bug-libtool@gnu.org
15110
15111_LT_EOF
15112 fi ;;
15113 esac
15114 fi
15115 break
15116 fi
15117 done
Cristy15f22012015-11-14 17:51:30 -050015118 IFS=$lt_save_ifs
15119 MAGIC_CMD=$lt_save_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015120 ;;
15121esac
15122fi
15123
Cristy15f22012015-11-14 17:51:30 -050015124MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000015125if test -n "$MAGIC_CMD"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15127$as_echo "$MAGIC_CMD" >&6; }
15128else
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15130$as_echo "no" >&6; }
15131fi
15132
15133
15134 else
15135 MAGIC_CMD=:
15136 fi
15137fi
15138
15139 fi
15140 ;;
15141esac
15142
15143# Use C for the default configuration in the libtool script
15144
Cristy15f22012015-11-14 17:51:30 -050015145lt_save_CC=$CC
cristy73bd4a52010-10-05 11:24:23 +000015146ac_ext=c
15147ac_cpp='$CPP $CPPFLAGS'
15148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150ac_compiler_gnu=$ac_cv_c_compiler_gnu
15151
15152
15153# Source file extension for C test sources.
15154ac_ext=c
15155
15156# Object file extension for compiled C test sources.
15157objext=o
15158objext=$objext
15159
15160# Code to be used in simple compile tests
15161lt_simple_compile_test_code="int some_variable = 0;"
15162
15163# Code to be used in simple link tests
15164lt_simple_link_test_code='int main(){return(0);}'
15165
15166
15167
15168
15169
15170
15171
15172# If no C compiler was specified, use CC.
15173LTCC=${LTCC-"$CC"}
15174
15175# If no C compiler flags were specified, use CFLAGS.
15176LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15177
15178# Allow CC to be a program name with arguments.
15179compiler=$CC
15180
15181# Save the default compiler, since it gets overwritten when the other
15182# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15183compiler_DEFAULT=$CC
15184
15185# save warnings/boilerplate of simple test code
15186ac_outfile=conftest.$ac_objext
15187echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15188eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15189_lt_compiler_boilerplate=`cat conftest.err`
15190$RM conftest*
15191
15192ac_outfile=conftest.$ac_objext
15193echo "$lt_simple_link_test_code" >conftest.$ac_ext
15194eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15195_lt_linker_boilerplate=`cat conftest.err`
15196$RM -r conftest*
15197
15198
15199## CAVEAT EMPTOR:
15200## There is no encapsulation within the following macros, do not change
15201## the running order or otherwise move them around unless you know exactly
15202## what you are doing...
15203if test -n "$compiler"; then
15204
15205lt_prog_compiler_no_builtin_flag=
15206
Cristy15f22012015-11-14 17:51:30 -050015207if test yes = "$GCC"; then
cristy0c60a692010-11-04 01:09:47 +000015208 case $cc_basename in
15209 nvcc*)
15210 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15211 *)
15212 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15213 esac
cristy73bd4a52010-10-05 11:24:23 +000015214
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15216$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015217if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015218 $as_echo_n "(cached) " >&6
15219else
15220 lt_cv_prog_compiler_rtti_exceptions=no
15221 ac_outfile=conftest.$ac_objext
15222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050015223 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000015224 # Insert the option either (1) after the last *FLAGS variable, or
15225 # (2) before a word containing "conftest.", or (3) at the end.
15226 # Note that $ac_compile itself does not contain backslashes and begins
15227 # with a dollar sign (not a hyphen), so the echo should work correctly.
15228 # The option is referenced via a variable to avoid confusing sed.
15229 lt_compile=`echo "$ac_compile" | $SED \
15230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15232 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015233 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015234 (eval "$lt_compile" 2>conftest.err)
15235 ac_status=$?
15236 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015238 if (exit $ac_status) && test -s "$ac_outfile"; then
15239 # The compiler can only warn and ignore the option if not recognized
15240 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015241 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15243 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15244 lt_cv_prog_compiler_rtti_exceptions=yes
15245 fi
15246 fi
15247 $RM conftest*
15248
15249fi
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15251$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15252
Cristy15f22012015-11-14 17:51:30 -050015253if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
cristy73bd4a52010-10-05 11:24:23 +000015254 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15255else
15256 :
15257fi
15258
15259fi
15260
15261
15262
15263
15264
15265
15266 lt_prog_compiler_wl=
15267lt_prog_compiler_pic=
15268lt_prog_compiler_static=
15269
cristy73bd4a52010-10-05 11:24:23 +000015270
Cristy15f22012015-11-14 17:51:30 -050015271 if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000015272 lt_prog_compiler_wl='-Wl,'
15273 lt_prog_compiler_static='-static'
15274
15275 case $host_os in
15276 aix*)
15277 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050015278 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000015279 # AIX 5 now supports IA64 processor
15280 lt_prog_compiler_static='-Bstatic'
15281 fi
Cristy15f22012015-11-14 17:51:30 -050015282 lt_prog_compiler_pic='-fPIC'
cristy73bd4a52010-10-05 11:24:23 +000015283 ;;
15284
15285 amigaos*)
15286 case $host_cpu in
15287 powerpc)
15288 # see comment about AmigaOS4 .so support
15289 lt_prog_compiler_pic='-fPIC'
15290 ;;
15291 m68k)
15292 # FIXME: we need at least 68020 code to build shared libraries, but
Cristy15f22012015-11-14 17:51:30 -050015293 # adding the '-m68020' flag to GCC prevents building anything better,
15294 # like '-m68040'.
cristy73bd4a52010-10-05 11:24:23 +000015295 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15296 ;;
15297 esac
15298 ;;
15299
15300 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15301 # PIC is the default for these OSes.
15302 ;;
15303
15304 mingw* | cygwin* | pw32* | os2* | cegcc*)
15305 # This hack is so that the source file can tell whether it is being
15306 # built for inclusion in a dll (and should export symbols for example).
15307 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15308 # (--disable-auto-import) libraries
15309 lt_prog_compiler_pic='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050015310 case $host_os in
15311 os2*)
15312 lt_prog_compiler_static='$wl-static'
15313 ;;
15314 esac
cristy73bd4a52010-10-05 11:24:23 +000015315 ;;
15316
15317 darwin* | rhapsody*)
15318 # PIC is the default on this platform
15319 # Common symbols not allowed in MH_DYLIB files
15320 lt_prog_compiler_pic='-fno-common'
15321 ;;
15322
cristy0c60a692010-11-04 01:09:47 +000015323 haiku*)
15324 # PIC is the default for Haiku.
15325 # The "-static" flag exists, but is broken.
15326 lt_prog_compiler_static=
15327 ;;
15328
cristy73bd4a52010-10-05 11:24:23 +000015329 hpux*)
15330 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15331 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15332 # sets the default TLS model and affects inlining.
15333 case $host_cpu in
15334 hppa*64*)
15335 # +Z the default
15336 ;;
15337 *)
15338 lt_prog_compiler_pic='-fPIC'
15339 ;;
15340 esac
15341 ;;
15342
15343 interix[3-9]*)
15344 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15345 # Instead, we relocate shared libraries at runtime.
15346 ;;
15347
15348 msdosdjgpp*)
15349 # Just because we use GCC doesn't mean we suddenly get shared libraries
15350 # on systems that don't support them.
15351 lt_prog_compiler_can_build_shared=no
15352 enable_shared=no
15353 ;;
15354
15355 *nto* | *qnx*)
15356 # QNX uses GNU C++, but need to define -shared option too, otherwise
15357 # it will coredump.
15358 lt_prog_compiler_pic='-fPIC -shared'
15359 ;;
15360
15361 sysv4*MP*)
15362 if test -d /usr/nec; then
15363 lt_prog_compiler_pic=-Kconform_pic
15364 fi
15365 ;;
15366
15367 *)
15368 lt_prog_compiler_pic='-fPIC'
15369 ;;
15370 esac
cristy0c60a692010-11-04 01:09:47 +000015371
15372 case $cc_basename in
15373 nvcc*) # Cuda Compiler Driver 2.2
15374 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000015375 if test -n "$lt_prog_compiler_pic"; then
15376 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15377 fi
cristy0c60a692010-11-04 01:09:47 +000015378 ;;
15379 esac
cristy73bd4a52010-10-05 11:24:23 +000015380 else
15381 # PORTME Check for flag to pass linker flags through the system compiler.
15382 case $host_os in
15383 aix*)
15384 lt_prog_compiler_wl='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050015385 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000015386 # AIX 5 now supports IA64 processor
15387 lt_prog_compiler_static='-Bstatic'
15388 else
15389 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15390 fi
15391 ;;
15392
Cristy15f22012015-11-14 17:51:30 -050015393 darwin* | rhapsody*)
15394 # PIC is the default on this platform
15395 # Common symbols not allowed in MH_DYLIB files
15396 lt_prog_compiler_pic='-fno-common'
15397 case $cc_basename in
15398 nagfor*)
15399 # NAG Fortran compiler
15400 lt_prog_compiler_wl='-Wl,-Wl,,'
15401 lt_prog_compiler_pic='-PIC'
15402 lt_prog_compiler_static='-Bstatic'
15403 ;;
15404 esac
15405 ;;
15406
cristy73bd4a52010-10-05 11:24:23 +000015407 mingw* | cygwin* | pw32* | os2* | cegcc*)
15408 # This hack is so that the source file can tell whether it is being
15409 # built for inclusion in a dll (and should export symbols for example).
15410 lt_prog_compiler_pic='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050015411 case $host_os in
15412 os2*)
15413 lt_prog_compiler_static='$wl-static'
15414 ;;
15415 esac
cristy73bd4a52010-10-05 11:24:23 +000015416 ;;
15417
15418 hpux9* | hpux10* | hpux11*)
15419 lt_prog_compiler_wl='-Wl,'
15420 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15421 # not for PA HP-UX.
15422 case $host_cpu in
15423 hppa*64*|ia64*)
15424 # +Z the default
15425 ;;
15426 *)
15427 lt_prog_compiler_pic='+Z'
15428 ;;
15429 esac
15430 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Cristy15f22012015-11-14 17:51:30 -050015431 lt_prog_compiler_static='$wl-a ${wl}archive'
cristy73bd4a52010-10-05 11:24:23 +000015432 ;;
15433
15434 irix5* | irix6* | nonstopux*)
15435 lt_prog_compiler_wl='-Wl,'
15436 # PIC (with -KPIC) is the default.
15437 lt_prog_compiler_static='-non_shared'
15438 ;;
15439
Cristy15f22012015-11-14 17:51:30 -050015440 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000015441 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050015442 # old Intel for x86_64, which still supported -KPIC.
cristy73bd4a52010-10-05 11:24:23 +000015443 ecc*)
15444 lt_prog_compiler_wl='-Wl,'
15445 lt_prog_compiler_pic='-KPIC'
15446 lt_prog_compiler_static='-static'
15447 ;;
15448 # icc used to be incompatible with GCC.
15449 # ICC 10 doesn't accept -KPIC any more.
15450 icc* | ifort*)
15451 lt_prog_compiler_wl='-Wl,'
15452 lt_prog_compiler_pic='-fPIC'
15453 lt_prog_compiler_static='-static'
15454 ;;
15455 # Lahey Fortran 8.1.
15456 lf95*)
15457 lt_prog_compiler_wl='-Wl,'
15458 lt_prog_compiler_pic='--shared'
15459 lt_prog_compiler_static='--static'
15460 ;;
cristyda16f162011-02-19 23:52:17 +000015461 nagfor*)
15462 # NAG Fortran compiler
15463 lt_prog_compiler_wl='-Wl,-Wl,,'
15464 lt_prog_compiler_pic='-PIC'
15465 lt_prog_compiler_static='-Bstatic'
15466 ;;
Cristy15f22012015-11-14 17:51:30 -050015467 tcc*)
15468 # Fabrice Bellard et al's Tiny C Compiler
15469 lt_prog_compiler_wl='-Wl,'
15470 lt_prog_compiler_pic='-fPIC'
15471 lt_prog_compiler_static='-static'
15472 ;;
cristy0c60a692010-11-04 01:09:47 +000015473 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000015474 # Portland Group compilers (*not* the Pentium gcc compiler,
15475 # which looks to be a dead project)
15476 lt_prog_compiler_wl='-Wl,'
15477 lt_prog_compiler_pic='-fpic'
15478 lt_prog_compiler_static='-Bstatic'
15479 ;;
15480 ccc*)
15481 lt_prog_compiler_wl='-Wl,'
15482 # All Alpha code is PIC.
15483 lt_prog_compiler_static='-non_shared'
15484 ;;
cristy0c60a692010-11-04 01:09:47 +000015485 xl* | bgxl* | bgf* | mpixl*)
15486 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000015487 lt_prog_compiler_wl='-Wl,'
15488 lt_prog_compiler_pic='-qpic'
15489 lt_prog_compiler_static='-qstaticlink'
15490 ;;
15491 *)
15492 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000015493 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000015494 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15495 lt_prog_compiler_pic='-KPIC'
15496 lt_prog_compiler_static='-Bstatic'
15497 lt_prog_compiler_wl=''
15498 ;;
cristy99bd5232011-12-07 14:38:20 +000015499 *Sun\ F* | *Sun*Fortran*)
15500 lt_prog_compiler_pic='-KPIC'
15501 lt_prog_compiler_static='-Bstatic'
15502 lt_prog_compiler_wl='-Qoption ld '
15503 ;;
cristy73bd4a52010-10-05 11:24:23 +000015504 *Sun\ C*)
15505 # Sun C 5.9
15506 lt_prog_compiler_pic='-KPIC'
15507 lt_prog_compiler_static='-Bstatic'
15508 lt_prog_compiler_wl='-Wl,'
15509 ;;
cristy99bd5232011-12-07 14:38:20 +000015510 *Intel*\ [CF]*Compiler*)
15511 lt_prog_compiler_wl='-Wl,'
15512 lt_prog_compiler_pic='-fPIC'
15513 lt_prog_compiler_static='-static'
15514 ;;
15515 *Portland\ Group*)
15516 lt_prog_compiler_wl='-Wl,'
15517 lt_prog_compiler_pic='-fpic'
15518 lt_prog_compiler_static='-Bstatic'
15519 ;;
cristy73bd4a52010-10-05 11:24:23 +000015520 esac
15521 ;;
15522 esac
15523 ;;
15524
15525 newsos6)
15526 lt_prog_compiler_pic='-KPIC'
15527 lt_prog_compiler_static='-Bstatic'
15528 ;;
15529
15530 *nto* | *qnx*)
15531 # QNX uses GNU C++, but need to define -shared option too, otherwise
15532 # it will coredump.
15533 lt_prog_compiler_pic='-fPIC -shared'
15534 ;;
15535
15536 osf3* | osf4* | osf5*)
15537 lt_prog_compiler_wl='-Wl,'
15538 # All OSF/1 code is PIC.
15539 lt_prog_compiler_static='-non_shared'
15540 ;;
15541
15542 rdos*)
15543 lt_prog_compiler_static='-non_shared'
15544 ;;
15545
15546 solaris*)
15547 lt_prog_compiler_pic='-KPIC'
15548 lt_prog_compiler_static='-Bstatic'
15549 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000015550 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000015551 lt_prog_compiler_wl='-Qoption ld ';;
15552 *)
15553 lt_prog_compiler_wl='-Wl,';;
15554 esac
15555 ;;
15556
15557 sunos4*)
15558 lt_prog_compiler_wl='-Qoption ld '
15559 lt_prog_compiler_pic='-PIC'
15560 lt_prog_compiler_static='-Bstatic'
15561 ;;
15562
15563 sysv4 | sysv4.2uw2* | sysv4.3*)
15564 lt_prog_compiler_wl='-Wl,'
15565 lt_prog_compiler_pic='-KPIC'
15566 lt_prog_compiler_static='-Bstatic'
15567 ;;
15568
15569 sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050015570 if test -d /usr/nec; then
cristy73bd4a52010-10-05 11:24:23 +000015571 lt_prog_compiler_pic='-Kconform_pic'
15572 lt_prog_compiler_static='-Bstatic'
15573 fi
15574 ;;
15575
15576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15577 lt_prog_compiler_wl='-Wl,'
15578 lt_prog_compiler_pic='-KPIC'
15579 lt_prog_compiler_static='-Bstatic'
15580 ;;
15581
15582 unicos*)
15583 lt_prog_compiler_wl='-Wl,'
15584 lt_prog_compiler_can_build_shared=no
15585 ;;
15586
15587 uts4*)
15588 lt_prog_compiler_pic='-pic'
15589 lt_prog_compiler_static='-Bstatic'
15590 ;;
15591
15592 *)
15593 lt_prog_compiler_can_build_shared=no
15594 ;;
15595 esac
15596 fi
15597
15598case $host_os in
Cristy15f22012015-11-14 17:51:30 -050015599 # For platforms that do not support PIC, -DPIC is meaningless:
cristy73bd4a52010-10-05 11:24:23 +000015600 *djgpp*)
15601 lt_prog_compiler_pic=
15602 ;;
15603 *)
15604 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15605 ;;
15606esac
cristy73bd4a52010-10-05 11:24:23 +000015607
cristyda16f162011-02-19 23:52:17 +000015608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15609$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15610if ${lt_cv_prog_compiler_pic+:} false; then :
15611 $as_echo_n "(cached) " >&6
15612else
15613 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15614fi
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15616$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15617lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000015618
15619#
15620# Check to make sure the PIC flag actually works.
15621#
15622if test -n "$lt_prog_compiler_pic"; then
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15624$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015625if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015626 $as_echo_n "(cached) " >&6
15627else
15628 lt_cv_prog_compiler_pic_works=no
15629 ac_outfile=conftest.$ac_objext
15630 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050015631 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000015632 # Insert the option either (1) after the last *FLAGS variable, or
15633 # (2) before a word containing "conftest.", or (3) at the end.
15634 # Note that $ac_compile itself does not contain backslashes and begins
15635 # with a dollar sign (not a hyphen), so the echo should work correctly.
15636 # The option is referenced via a variable to avoid confusing sed.
15637 lt_compile=`echo "$ac_compile" | $SED \
15638 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15639 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15640 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015641 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015642 (eval "$lt_compile" 2>conftest.err)
15643 ac_status=$?
15644 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015646 if (exit $ac_status) && test -s "$ac_outfile"; then
15647 # The compiler can only warn and ignore the option if not recognized
15648 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000015649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015650 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15651 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15652 lt_cv_prog_compiler_pic_works=yes
15653 fi
15654 fi
15655 $RM conftest*
15656
15657fi
15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15659$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15660
Cristy15f22012015-11-14 17:51:30 -050015661if test yes = "$lt_cv_prog_compiler_pic_works"; then
cristy73bd4a52010-10-05 11:24:23 +000015662 case $lt_prog_compiler_pic in
15663 "" | " "*) ;;
15664 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15665 esac
15666else
15667 lt_prog_compiler_pic=
15668 lt_prog_compiler_can_build_shared=no
15669fi
15670
15671fi
15672
15673
15674
15675
15676
15677
cristyda16f162011-02-19 23:52:17 +000015678
15679
15680
15681
15682
cristy73bd4a52010-10-05 11:24:23 +000015683#
15684# Check to make sure the static flag actually works.
15685#
15686wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15688$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015689if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015690 $as_echo_n "(cached) " >&6
15691else
15692 lt_cv_prog_compiler_static_works=no
Cristy15f22012015-11-14 17:51:30 -050015693 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000015694 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15695 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15696 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15697 # The linker can only warn and ignore the option if not recognized
15698 # So say no if there are warnings
15699 if test -s conftest.err; then
15700 # Append any errors to the config.log.
15701 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000015702 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015703 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15704 if diff conftest.exp conftest.er2 >/dev/null; then
15705 lt_cv_prog_compiler_static_works=yes
15706 fi
15707 else
15708 lt_cv_prog_compiler_static_works=yes
15709 fi
15710 fi
15711 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050015712 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000015713
15714fi
15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15716$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15717
Cristy15f22012015-11-14 17:51:30 -050015718if test yes = "$lt_cv_prog_compiler_static_works"; then
cristy73bd4a52010-10-05 11:24:23 +000015719 :
15720else
15721 lt_prog_compiler_static=
15722fi
15723
15724
15725
15726
15727
15728
15729
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15731$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015732if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015733 $as_echo_n "(cached) " >&6
15734else
15735 lt_cv_prog_compiler_c_o=no
15736 $RM -r conftest 2>/dev/null
15737 mkdir conftest
15738 cd conftest
15739 mkdir out
15740 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15741
15742 lt_compiler_flag="-o out/conftest2.$ac_objext"
15743 # Insert the option either (1) after the last *FLAGS variable, or
15744 # (2) before a word containing "conftest.", or (3) at the end.
15745 # Note that $ac_compile itself does not contain backslashes and begins
15746 # with a dollar sign (not a hyphen), so the echo should work correctly.
15747 lt_compile=`echo "$ac_compile" | $SED \
15748 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15749 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15750 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015751 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015752 (eval "$lt_compile" 2>out/conftest.err)
15753 ac_status=$?
15754 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015756 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15757 then
15758 # The compiler can only warn and ignore the option if not recognized
15759 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015760 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015761 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15762 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15763 lt_cv_prog_compiler_c_o=yes
15764 fi
15765 fi
15766 chmod u+w . 2>&5
15767 $RM conftest*
15768 # SGI C++ compiler will create directory out/ii_files/ for
15769 # template instantiation
15770 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15771 $RM out/* && rmdir out
15772 cd ..
15773 $RM -r conftest
15774 $RM conftest*
15775
15776fi
15777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15778$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15779
15780
15781
15782
15783
15784
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15786$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015787if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015788 $as_echo_n "(cached) " >&6
15789else
15790 lt_cv_prog_compiler_c_o=no
15791 $RM -r conftest 2>/dev/null
15792 mkdir conftest
15793 cd conftest
15794 mkdir out
15795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15796
15797 lt_compiler_flag="-o out/conftest2.$ac_objext"
15798 # Insert the option either (1) after the last *FLAGS variable, or
15799 # (2) before a word containing "conftest.", or (3) at the end.
15800 # Note that $ac_compile itself does not contain backslashes and begins
15801 # with a dollar sign (not a hyphen), so the echo should work correctly.
15802 lt_compile=`echo "$ac_compile" | $SED \
15803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15805 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000015806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000015807 (eval "$lt_compile" 2>out/conftest.err)
15808 ac_status=$?
15809 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000015810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000015811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15812 then
15813 # The compiler can only warn and ignore the option if not recognized
15814 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000015815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000015816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15818 lt_cv_prog_compiler_c_o=yes
15819 fi
15820 fi
15821 chmod u+w . 2>&5
15822 $RM conftest*
15823 # SGI C++ compiler will create directory out/ii_files/ for
15824 # template instantiation
15825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15826 $RM out/* && rmdir out
15827 cd ..
15828 $RM -r conftest
15829 $RM conftest*
15830
15831fi
15832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15833$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15834
15835
15836
15837
Cristy15f22012015-11-14 17:51:30 -050015838hard_links=nottested
15839if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
cristy73bd4a52010-10-05 11:24:23 +000015840 # do not overwrite the value of need_locks provided by the user
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15842$as_echo_n "checking if we can lock with hard links... " >&6; }
15843 hard_links=yes
15844 $RM conftest*
15845 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15846 touch conftest.a
15847 ln conftest.a conftest.b 2>&5 || hard_links=no
15848 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15850$as_echo "$hard_links" >&6; }
Cristy15f22012015-11-14 17:51:30 -050015851 if test no = "$hard_links"; then
15852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15853$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cristy73bd4a52010-10-05 11:24:23 +000015854 need_locks=warn
15855 fi
15856else
15857 need_locks=no
15858fi
15859
15860
15861
15862
15863
15864
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15867
15868 runpath_var=
15869 allow_undefined_flag=
15870 always_export_symbols=no
15871 archive_cmds=
15872 archive_expsym_cmds=
15873 compiler_needs_object=no
15874 enable_shared_with_static_runtimes=no
15875 export_dynamic_flag_spec=
15876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15877 hardcode_automatic=no
15878 hardcode_direct=no
15879 hardcode_direct_absolute=no
15880 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000015881 hardcode_libdir_separator=
15882 hardcode_minus_L=no
15883 hardcode_shlibpath_var=unsupported
15884 inherit_rpath=no
15885 link_all_deplibs=unknown
15886 module_cmds=
15887 module_expsym_cmds=
15888 old_archive_from_new_cmds=
15889 old_archive_from_expsyms_cmds=
15890 thread_safe_flag_spec=
15891 whole_archive_flag_spec=
15892 # include_expsyms should be a list of space-separated symbols to be *always*
15893 # included in the symbol list
15894 include_expsyms=
15895 # exclude_expsyms can be an extended regexp of symbols to exclude
Cristy15f22012015-11-14 17:51:30 -050015896 # it will be wrapped by ' (' and ')$', so one must not match beginning or
15897 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
15898 # as well as any symbol that contains 'd'.
cristy73bd4a52010-10-05 11:24:23 +000015899 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15900 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15901 # platforms (ab)use it in PIC code, but their linkers get confused if
15902 # the symbol is explicitly referenced. Since portable code cannot
15903 # rely on this symbol name, it's probably fine to never include it in
15904 # preloaded symbol tables.
15905 # Exclude shared library initialization/finalization symbols.
15906 extract_expsyms_cmds=
15907
15908 case $host_os in
15909 cygwin* | mingw* | pw32* | cegcc*)
15910 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15911 # When not using gcc, we currently assume that we are using
15912 # Microsoft Visual C++.
Cristy15f22012015-11-14 17:51:30 -050015913 if test yes != "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000015914 with_gnu_ld=no
15915 fi
15916 ;;
15917 interix*)
15918 # we just hope/assume this is gcc and not c89 (= MSVC++)
15919 with_gnu_ld=yes
15920 ;;
Cristy15f22012015-11-14 17:51:30 -050015921 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000015922 with_gnu_ld=no
15923 ;;
15924 esac
15925
15926 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000015927
15928 # On some targets, GNU ld is compatible enough with the native linker
15929 # that we're better off using the native interface for both.
15930 lt_use_gnu_ld_interface=no
Cristy15f22012015-11-14 17:51:30 -050015931 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000015932 case $host_os in
15933 aix*)
15934 # The AIX port of GNU ld has always aspired to compatibility
15935 # with the native linker. However, as the warning in the GNU ld
15936 # block says, versions before 2.19.5* couldn't really create working
15937 # shared libraries, regardless of the interface used.
15938 case `$LD -v 2>&1` in
15939 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
15940 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
15941 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
15942 *)
15943 lt_use_gnu_ld_interface=yes
15944 ;;
15945 esac
15946 ;;
15947 *)
15948 lt_use_gnu_ld_interface=yes
15949 ;;
15950 esac
15951 fi
15952
Cristy15f22012015-11-14 17:51:30 -050015953 if test yes = "$lt_use_gnu_ld_interface"; then
cristy73bd4a52010-10-05 11:24:23 +000015954 # If archive_cmds runs LD, not CC, wlarc should be empty
Cristy15f22012015-11-14 17:51:30 -050015955 wlarc='$wl'
cristy73bd4a52010-10-05 11:24:23 +000015956
15957 # Set some defaults for GNU ld with shared library support. These
15958 # are reset later if shared libraries are not supported. Putting them
15959 # here allows them to be overridden if necessary.
15960 runpath_var=LD_RUN_PATH
Cristy15f22012015-11-14 17:51:30 -050015961 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
15962 export_dynamic_flag_spec='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000015963 # ancient GNU ld didn't support --whole-archive et. al.
15964 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050015965 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000015966 else
15967 whole_archive_flag_spec=
15968 fi
15969 supports_anon_versioning=no
Cristy15f22012015-11-14 17:51:30 -050015970 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000015971 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000015972 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15973 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15974 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15975 *\ 2.11.*) ;; # other 2.11 versions
15976 *) supports_anon_versioning=yes ;;
15977 esac
15978
15979 # See if GNU ld supports shared libraries.
15980 case $host_os in
15981 aix[3-9]*)
15982 # On AIX/PPC, the GNU linker is very broken
Cristy15f22012015-11-14 17:51:30 -050015983 if test ia64 != "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000015984 ld_shlibs=no
15985 cat <<_LT_EOF 1>&2
15986
cristy0c60a692010-11-04 01:09:47 +000015987*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000015988*** to be unable to reliably create shared libraries on AIX.
15989*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000015990*** really care for shared libraries, you may want to install binutils
15991*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
15992*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000015993
15994_LT_EOF
15995 fi
15996 ;;
15997
15998 amigaos*)
15999 case $host_cpu in
16000 powerpc)
16001 # see comment about AmigaOS4 .so support
Cristy15f22012015-11-14 17:51:30 -050016002 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016003 archive_expsym_cmds=''
16004 ;;
16005 m68k)
16006 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)'
16007 hardcode_libdir_flag_spec='-L$libdir'
16008 hardcode_minus_L=yes
16009 ;;
16010 esac
16011 ;;
16012
16013 beos*)
16014 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16015 allow_undefined_flag=unsupported
16016 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16017 # support --undefined. This deserves some investigation. FIXME
Cristy15f22012015-11-14 17:51:30 -050016018 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016019 else
16020 ld_shlibs=no
16021 fi
16022 ;;
16023
16024 cygwin* | mingw* | pw32* | cegcc*)
16025 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16026 # as there is no search path for DLLs.
16027 hardcode_libdir_flag_spec='-L$libdir'
Cristy15f22012015-11-14 17:51:30 -050016028 export_dynamic_flag_spec='$wl--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000016029 allow_undefined_flag=unsupported
16030 always_export_symbols=no
16031 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000016032 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'
16033 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 +000016034
16035 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016036 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16037 # If the export-symbols file already is a .def file, use it as
16038 # is; otherwise, prepend EXPORTS...
16039 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16040 cp $export_symbols $output_objdir/$soname.def;
16041 else
16042 echo EXPORTS > $output_objdir/$soname.def;
16043 cat $export_symbols >> $output_objdir/$soname.def;
16044 fi~
16045 $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 +000016046 else
16047 ld_shlibs=no
16048 fi
16049 ;;
16050
cristy0c60a692010-11-04 01:09:47 +000016051 haiku*)
Cristy15f22012015-11-14 17:51:30 -050016052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy0c60a692010-11-04 01:09:47 +000016053 link_all_deplibs=yes
16054 ;;
16055
Cristy15f22012015-11-14 17:51:30 -050016056 os2*)
16057 hardcode_libdir_flag_spec='-L$libdir'
16058 hardcode_minus_L=yes
16059 allow_undefined_flag=unsupported
16060 shrext_cmds=.dll
16061 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16062 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16063 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16064 $ECHO EXPORTS >> $output_objdir/$libname.def~
16065 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16066 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16067 emximp -o $lib $output_objdir/$libname.def'
16068 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16069 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16070 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16071 $ECHO EXPORTS >> $output_objdir/$libname.def~
16072 prefix_cmds="$SED"~
16073 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16074 prefix_cmds="$prefix_cmds -e 1d";
16075 fi~
16076 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16077 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16078 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16079 emximp -o $lib $output_objdir/$libname.def'
16080 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16081 enable_shared_with_static_runtimes=yes
16082 ;;
16083
cristy73bd4a52010-10-05 11:24:23 +000016084 interix[3-9]*)
16085 hardcode_direct=no
16086 hardcode_shlibpath_var=no
Cristy15f22012015-11-14 17:51:30 -050016087 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16088 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016089 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16090 # Instead, shared libraries are loaded at an image base (0x10000000 by
16091 # default) and relocated if they conflict, which is a slow very memory
16092 # consuming and fragmenting process. To avoid this, we pick a random,
16093 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16094 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Cristy15f22012015-11-14 17:51:30 -050016095 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16096 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 +000016097 ;;
16098
cristy0c60a692010-11-04 01:09:47 +000016099 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000016100 tmp_diet=no
Cristy15f22012015-11-14 17:51:30 -050016101 if test linux-dietlibc = "$host_os"; then
cristy73bd4a52010-10-05 11:24:23 +000016102 case $cc_basename in
16103 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16104 esac
16105 fi
16106 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Cristy15f22012015-11-14 17:51:30 -050016107 && test no = "$tmp_diet"
cristy73bd4a52010-10-05 11:24:23 +000016108 then
cristyda16f162011-02-19 23:52:17 +000016109 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000016110 tmp_sharedflag='-shared'
16111 case $cc_basename,$host_cpu in
16112 pgcc*) # Portland Group C compiler
Cristy15f22012015-11-14 17:51:30 -050016113 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 +000016114 tmp_addflag=' $pic_flag'
16115 ;;
cristy0c60a692010-11-04 01:09:47 +000016116 pgf77* | pgf90* | pgf95* | pgfortran*)
16117 # Portland Group f77 and f90 compilers
Cristy15f22012015-11-14 17:51:30 -050016118 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 +000016119 tmp_addflag=' $pic_flag -Mnomain' ;;
16120 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16121 tmp_addflag=' -i_dynamic' ;;
16122 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16123 tmp_addflag=' -i_dynamic -nofor_main' ;;
16124 ifc* | ifort*) # Intel Fortran compiler
16125 tmp_addflag=' -nofor_main' ;;
16126 lf95*) # Lahey Fortran 8.1
16127 whole_archive_flag_spec=
16128 tmp_sharedflag='--shared' ;;
Cristy15f22012015-11-14 17:51:30 -050016129 nagfor*) # NAGFOR 5.3
16130 tmp_sharedflag='-Wl,-shared' ;;
cristy0c60a692010-11-04 01:09:47 +000016131 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000016132 tmp_sharedflag='-qmkshrobj'
16133 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000016134 nvcc*) # Cuda Compiler Driver 2.2
Cristy15f22012015-11-14 17:51:30 -050016135 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 +000016136 compiler_needs_object=yes
16137 ;;
cristy73bd4a52010-10-05 11:24:23 +000016138 esac
16139 case `$CC -V 2>&1 | sed 5q` in
16140 *Sun\ C*) # Sun C 5.9
Cristy15f22012015-11-14 17:51:30 -050016141 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 +000016142 compiler_needs_object=yes
16143 tmp_sharedflag='-G' ;;
16144 *Sun\ F*) # Sun Fortran 8.3
16145 tmp_sharedflag='-G' ;;
16146 esac
Cristy15f22012015-11-14 17:51:30 -050016147 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016148
Cristy15f22012015-11-14 17:51:30 -050016149 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000016150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050016151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16152 echo "local: *; };" >> $output_objdir/$libname.ver~
16153 $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 +000016154 fi
16155
16156 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050016157 tcc*)
16158 export_dynamic_flag_spec='-rdynamic'
16159 ;;
cristy0c60a692010-11-04 01:09:47 +000016160 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000016161 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16162 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Cristy15f22012015-11-14 17:51:30 -050016163 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy0c60a692010-11-04 01:09:47 +000016164 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Cristy15f22012015-11-14 17:51:30 -050016165 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000016166 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050016167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16168 echo "local: *; };" >> $output_objdir/$libname.ver~
16169 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016170 fi
16171 ;;
16172 esac
16173 else
16174 ld_shlibs=no
16175 fi
16176 ;;
16177
16178 netbsd*)
16179 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16180 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16181 wlarc=
16182 else
Cristy15f22012015-11-14 17:51:30 -050016183 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16184 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 +000016185 fi
16186 ;;
16187
16188 solaris*)
16189 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16190 ld_shlibs=no
16191 cat <<_LT_EOF 1>&2
16192
16193*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16194*** create shared libraries on Solaris systems. Therefore, libtool
16195*** is disabling shared libraries support. We urge you to upgrade GNU
16196*** binutils to release 2.9.1 or newer. Another option is to modify
16197*** your PATH or compiler configuration so that the native linker is
16198*** used, and then restart.
16199
16200_LT_EOF
16201 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016202 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16203 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016204 else
16205 ld_shlibs=no
16206 fi
16207 ;;
16208
16209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16210 case `$LD -v 2>&1` in
16211 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16212 ld_shlibs=no
16213 cat <<_LT_EOF 1>&2
16214
Cristy15f22012015-11-14 17:51:30 -050016215*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
cristy73bd4a52010-10-05 11:24:23 +000016216*** reliably create shared libraries on SCO systems. Therefore, libtool
16217*** is disabling shared libraries support. We urge you to upgrade GNU
16218*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16219*** your PATH or compiler configuration so that the native linker is
16220*** used, and then restart.
16221
16222_LT_EOF
16223 ;;
16224 *)
16225 # For security reasons, it is highly recommended that you always
16226 # use absolute paths for naming shared libraries, and exclude the
16227 # DT_RUNPATH tag from executables and libraries. But doing so
16228 # requires that you compile everything twice, which is a pain.
16229 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016230 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16232 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 +000016233 else
16234 ld_shlibs=no
16235 fi
16236 ;;
16237 esac
16238 ;;
16239
16240 sunos4*)
16241 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16242 wlarc=
16243 hardcode_direct=yes
16244 hardcode_shlibpath_var=no
16245 ;;
16246
16247 *)
16248 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016249 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16250 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 +000016251 else
16252 ld_shlibs=no
16253 fi
16254 ;;
16255 esac
16256
Cristy15f22012015-11-14 17:51:30 -050016257 if test no = "$ld_shlibs"; then
cristy73bd4a52010-10-05 11:24:23 +000016258 runpath_var=
16259 hardcode_libdir_flag_spec=
16260 export_dynamic_flag_spec=
16261 whole_archive_flag_spec=
16262 fi
16263 else
16264 # PORTME fill in a description of your system's linker (not GNU ld)
16265 case $host_os in
16266 aix3*)
16267 allow_undefined_flag=unsupported
16268 always_export_symbols=yes
16269 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'
16270 # Note: this linker hardcodes the directories in LIBPATH if there
16271 # are no directories specified by -L.
16272 hardcode_minus_L=yes
Cristy15f22012015-11-14 17:51:30 -050016273 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
cristy73bd4a52010-10-05 11:24:23 +000016274 # Neither direct hardcoding nor static linking is supported with a
16275 # broken collect2.
16276 hardcode_direct=unsupported
16277 fi
16278 ;;
16279
16280 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050016281 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000016282 # On IA64, the linker does run time linking by default, so we don't
16283 # have to do anything special.
16284 aix_use_runtimelinking=no
16285 exp_sym_flag='-Bexport'
Cristy15f22012015-11-14 17:51:30 -050016286 no_entry_flag=
cristy73bd4a52010-10-05 11:24:23 +000016287 else
16288 # If we're using GNU nm, then we don't want the "-C" option.
Cristy15f22012015-11-14 17:51:30 -050016289 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
16290 # Without the "-l" option, or with the "-B" option, AIX nm treats
16291 # weak defined symbols like other global defined symbols, whereas
16292 # GNU nm marks them as "W".
16293 # While the 'weak' keyword is ignored in the Export File, we need
16294 # it in the Import File for the 'aix-soname' feature, so we have
16295 # to replace the "-B" option with "-P" for AIX nm.
cristy73bd4a52010-10-05 11:24:23 +000016296 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050016297 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 +000016298 else
Cristy15f22012015-11-14 17:51:30 -050016299 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 +000016300 fi
16301 aix_use_runtimelinking=no
16302
16303 # Test if we are trying to use run time linking or normal
16304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Cristy15f22012015-11-14 17:51:30 -050016305 # have runtime linking enabled, and use it for executables.
16306 # For shared libraries, we enable/disable runtime linking
16307 # depending on the kind of the shared library created -
16308 # when "with_aix_soname,aix_use_runtimelinking" is:
16309 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
16310 # "aix,yes" lib.so shared, rtl:yes, for executables
16311 # lib.a static archive
16312 # "both,no" lib.so.V(shr.o) shared, rtl:yes
16313 # lib.a(lib.so.V) shared, rtl:no, for executables
16314 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16315 # lib.a(lib.so.V) shared, rtl:no
16316 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
16317 # lib.a static archive
cristy73bd4a52010-10-05 11:24:23 +000016318 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16319 for ld_flag in $LDFLAGS; do
Cristy15f22012015-11-14 17:51:30 -050016320 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
cristy73bd4a52010-10-05 11:24:23 +000016321 aix_use_runtimelinking=yes
16322 break
16323 fi
16324 done
Cristy15f22012015-11-14 17:51:30 -050016325 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16326 # With aix-soname=svr4, we create the lib.so.V shared archives only,
16327 # so we don't have lib.a shared libs to link our executables.
16328 # We have to force runtime linking in this case.
16329 aix_use_runtimelinking=yes
16330 LDFLAGS="$LDFLAGS -Wl,-brtl"
16331 fi
cristy73bd4a52010-10-05 11:24:23 +000016332 ;;
16333 esac
16334
16335 exp_sym_flag='-bexport'
16336 no_entry_flag='-bnoentry'
16337 fi
16338
16339 # When large executables or shared objects are built, AIX ld can
16340 # have problems creating the table of contents. If linking a library
16341 # or program results in "error TOC overflow" add -mminimal-toc to
16342 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16343 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16344
16345 archive_cmds=''
16346 hardcode_direct=yes
16347 hardcode_direct_absolute=yes
16348 hardcode_libdir_separator=':'
16349 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050016350 file_list_spec='$wl-f,'
16351 case $with_aix_soname,$aix_use_runtimelinking in
16352 aix,*) ;; # traditional, no import file
16353 svr4,* | *,yes) # use import file
16354 # The Import File defines what to hardcode.
16355 hardcode_direct=no
16356 hardcode_direct_absolute=no
16357 ;;
16358 esac
cristy73bd4a52010-10-05 11:24:23 +000016359
Cristy15f22012015-11-14 17:51:30 -050016360 if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000016361 case $host_os in aix4.[012]|aix4.[012].*)
16362 # We only want to do this on AIX 4.2 and lower, the check
16363 # below for broken collect2 doesn't work under 4.3+
Cristy15f22012015-11-14 17:51:30 -050016364 collect2name=`$CC -print-prog-name=collect2`
cristy73bd4a52010-10-05 11:24:23 +000016365 if test -f "$collect2name" &&
16366 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16367 then
16368 # We have reworked collect2
16369 :
16370 else
16371 # We have old collect2
16372 hardcode_direct=unsupported
16373 # It fails to find uninstalled libraries when the uninstalled
16374 # path is not listed in the libpath. Setting hardcode_minus_L
16375 # to unsupported forces relinking
16376 hardcode_minus_L=yes
16377 hardcode_libdir_flag_spec='-L$libdir'
16378 hardcode_libdir_separator=
16379 fi
16380 ;;
16381 esac
16382 shared_flag='-shared'
Cristy15f22012015-11-14 17:51:30 -050016383 if test yes = "$aix_use_runtimelinking"; then
16384 shared_flag="$shared_flag "'$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016385 fi
Cristy15f22012015-11-14 17:51:30 -050016386 # Need to ensure runtime linking is disabled for the traditional
16387 # shared library, or the linker may eventually find shared libraries
16388 # /with/ Import File - we do not want to mix them.
16389 shared_flag_aix='-shared'
16390 shared_flag_svr4='-shared $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016391 else
16392 # not using gcc
Cristy15f22012015-11-14 17:51:30 -050016393 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000016394 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16395 # chokes on -Wl,-G. The following line is correct:
16396 shared_flag='-G'
16397 else
Cristy15f22012015-11-14 17:51:30 -050016398 if test yes = "$aix_use_runtimelinking"; then
16399 shared_flag='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016400 else
Cristy15f22012015-11-14 17:51:30 -050016401 shared_flag='$wl-bM:SRE'
cristy73bd4a52010-10-05 11:24:23 +000016402 fi
Cristy15f22012015-11-14 17:51:30 -050016403 shared_flag_aix='$wl-bM:SRE'
16404 shared_flag_svr4='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000016405 fi
16406 fi
16407
Cristy15f22012015-11-14 17:51:30 -050016408 export_dynamic_flag_spec='$wl-bexpall'
cristy73bd4a52010-10-05 11:24:23 +000016409 # It seems that -bexpall does not export symbols beginning with
16410 # underscore (_), so it is better to generate a list of symbols to export.
16411 always_export_symbols=yes
Cristy15f22012015-11-14 17:51:30 -050016412 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cristy73bd4a52010-10-05 11:24:23 +000016413 # Warning - without using the other runtime loading flags (-brtl),
16414 # -berok will link without error, but may produce a broken library.
16415 allow_undefined_flag='-berok'
16416 # Determine the default libpath from the value encoded in an
16417 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050016418 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000016419 aix_libpath=$lt_cv_aix_libpath
16420else
16421 if ${lt_cv_aix_libpath_+:} false; then :
16422 $as_echo_n "(cached) " >&6
16423else
16424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016425/* end confdefs.h. */
16426
16427int
16428main ()
16429{
16430
16431 ;
16432 return 0;
16433}
16434_ACEOF
16435if ac_fn_c_try_link "$LINENO"; then :
16436
cristyda16f162011-02-19 23:52:17 +000016437 lt_aix_libpath_sed='
16438 /Import File Strings/,/^$/ {
16439 /^0/ {
16440 s/^0 *\([^ ]*\) *$/\1/
16441 p
16442 }
16443 }'
16444 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16445 # Check for a 64-bit object if we didn't find anything.
16446 if test -z "$lt_cv_aix_libpath_"; then
16447 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16448 fi
cristy73bd4a52010-10-05 11:24:23 +000016449fi
16450rm -f core conftest.err conftest.$ac_objext \
16451 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016452 if test -z "$lt_cv_aix_libpath_"; then
Cristy15f22012015-11-14 17:51:30 -050016453 lt_cv_aix_libpath_=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000016454 fi
16455
16456fi
16457
16458 aix_libpath=$lt_cv_aix_libpath_
16459fi
cristy73bd4a52010-10-05 11:24:23 +000016460
Cristy15f22012015-11-14 17:51:30 -050016461 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16462 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 +000016463 else
Cristy15f22012015-11-14 17:51:30 -050016464 if test ia64 = "$host_cpu"; then
16465 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
cristy73bd4a52010-10-05 11:24:23 +000016466 allow_undefined_flag="-z nodefs"
Cristy15f22012015-11-14 17:51:30 -050016467 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 +000016468 else
16469 # Determine the default libpath from the value encoded in an
16470 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050016471 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000016472 aix_libpath=$lt_cv_aix_libpath
16473else
16474 if ${lt_cv_aix_libpath_+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476else
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016478/* end confdefs.h. */
16479
16480int
16481main ()
16482{
16483
16484 ;
16485 return 0;
16486}
16487_ACEOF
16488if ac_fn_c_try_link "$LINENO"; then :
16489
cristyda16f162011-02-19 23:52:17 +000016490 lt_aix_libpath_sed='
16491 /Import File Strings/,/^$/ {
16492 /^0/ {
16493 s/^0 *\([^ ]*\) *$/\1/
16494 p
16495 }
16496 }'
16497 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16498 # Check for a 64-bit object if we didn't find anything.
16499 if test -z "$lt_cv_aix_libpath_"; then
16500 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16501 fi
cristy73bd4a52010-10-05 11:24:23 +000016502fi
16503rm -f core conftest.err conftest.$ac_objext \
16504 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000016505 if test -z "$lt_cv_aix_libpath_"; then
Cristy15f22012015-11-14 17:51:30 -050016506 lt_cv_aix_libpath_=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000016507 fi
16508
16509fi
16510
16511 aix_libpath=$lt_cv_aix_libpath_
16512fi
cristy73bd4a52010-10-05 11:24:23 +000016513
Cristy15f22012015-11-14 17:51:30 -050016514 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000016515 # Warning - without using the other run time loading flags,
16516 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050016517 no_undefined_flag=' $wl-bernotok'
16518 allow_undefined_flag=' $wl-berok'
16519 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000016520 # We only use this code for GNU lds that support --whole-archive.
Cristy15f22012015-11-14 17:51:30 -050016521 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy0c60a692010-11-04 01:09:47 +000016522 else
16523 # Exported symbols can be pulled into shared objects from archives
16524 whole_archive_flag_spec='$convenience'
16525 fi
cristy73bd4a52010-10-05 11:24:23 +000016526 archive_cmds_need_lc=yes
Cristy15f22012015-11-14 17:51:30 -050016527 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16528 # -brtl affects multiple linker settings, -berok does not and is overridden later
16529 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16530 if test svr4 != "$with_aix_soname"; then
16531 # This is similar to how AIX traditionally builds its shared libraries.
16532 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'
16533 fi
16534 if test aix != "$with_aix_soname"; then
16535 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'
16536 else
16537 # used by -dlpreopen to get the symbols
16538 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
16539 fi
16540 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
cristy73bd4a52010-10-05 11:24:23 +000016541 fi
16542 fi
16543 ;;
16544
16545 amigaos*)
16546 case $host_cpu in
16547 powerpc)
16548 # see comment about AmigaOS4 .so support
Cristy15f22012015-11-14 17:51:30 -050016549 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000016550 archive_expsym_cmds=''
16551 ;;
16552 m68k)
16553 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)'
16554 hardcode_libdir_flag_spec='-L$libdir'
16555 hardcode_minus_L=yes
16556 ;;
16557 esac
16558 ;;
16559
16560 bsdi[45]*)
16561 export_dynamic_flag_spec=-rdynamic
16562 ;;
16563
16564 cygwin* | mingw* | pw32* | cegcc*)
16565 # When not using gcc, we currently assume that we are using
16566 # Microsoft Visual C++.
16567 # hardcode_libdir_flag_spec is actually meaningless, as there is
16568 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000016569 case $cc_basename in
16570 cl*)
16571 # Native MSVC
16572 hardcode_libdir_flag_spec=' '
16573 allow_undefined_flag=unsupported
16574 always_export_symbols=yes
16575 file_list_spec='@'
16576 # Tell ltmain to make .lib files, not .a files.
16577 libext=lib
16578 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050016579 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000016580 # FIXME: Setting linknames here is a bad hack.
Cristy15f22012015-11-14 17:51:30 -050016581 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16582 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
16583 cp "$export_symbols" "$output_objdir/$soname.def";
16584 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16585 else
16586 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16587 fi~
16588 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16589 linknames='
cristyda16f162011-02-19 23:52:17 +000016590 # The linker will not automatically build a static lib if we build a DLL.
16591 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16592 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000016593 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000016594 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16595 # Don't use ranlib
16596 old_postinstall_cmds='chmod 644 $oldlib'
16597 postlink_cmds='lt_outputfile="@OUTPUT@"~
Cristy15f22012015-11-14 17:51:30 -050016598 lt_tool_outputfile="@TOOL_OUTPUT@"~
16599 case $lt_outputfile in
16600 *.exe|*.EXE) ;;
16601 *)
16602 lt_outputfile=$lt_outputfile.exe
16603 lt_tool_outputfile=$lt_tool_outputfile.exe
16604 ;;
16605 esac~
16606 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16607 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16608 $RM "$lt_outputfile.manifest";
16609 fi'
cristyda16f162011-02-19 23:52:17 +000016610 ;;
16611 *)
16612 # Assume MSVC wrapper
16613 hardcode_libdir_flag_spec=' '
16614 allow_undefined_flag=unsupported
16615 # Tell ltmain to make .lib files, not .a files.
16616 libext=lib
16617 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050016618 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000016619 # FIXME: Setting linknames here is a bad hack.
16620 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16621 # The linker will automatically build a .lib file if we build a DLL.
16622 old_archive_from_new_cmds='true'
16623 # FIXME: Should let the user specify the lib program.
16624 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16625 enable_shared_with_static_runtimes=yes
16626 ;;
16627 esac
cristy73bd4a52010-10-05 11:24:23 +000016628 ;;
16629
16630 darwin* | rhapsody*)
16631
16632
16633 archive_cmds_need_lc=no
16634 hardcode_direct=no
16635 hardcode_automatic=yes
16636 hardcode_shlibpath_var=unsupported
Cristy15f22012015-11-14 17:51:30 -050016637 if test yes = "$lt_cv_ld_force_load"; then
16638 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 +000016639
cristy0c60a692010-11-04 01:09:47 +000016640 else
16641 whole_archive_flag_spec=''
16642 fi
cristy73bd4a52010-10-05 11:24:23 +000016643 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050016644 allow_undefined_flag=$_lt_dar_allow_undefined
cristy73bd4a52010-10-05 11:24:23 +000016645 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050016646 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000016647 *) _lt_dar_can_shared=$GCC ;;
16648 esac
Cristy15f22012015-11-14 17:51:30 -050016649 if test yes = "$_lt_dar_can_shared"; then
cristy0c60a692010-11-04 01:09:47 +000016650 output_verbose_link_cmd=func_echo_all
Cristy15f22012015-11-14 17:51:30 -050016651 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16652 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16653 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"
16654 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 +000016655
16656 else
16657 ld_shlibs=no
16658 fi
16659
16660 ;;
16661
16662 dgux*)
16663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_libdir_flag_spec='-L$libdir'
16665 hardcode_shlibpath_var=no
16666 ;;
16667
cristy73bd4a52010-10-05 11:24:23 +000016668 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16669 # support. Future versions do this automatically, but an explicit c++rt0.o
16670 # does not break anything, and helps significantly (at the cost of a little
16671 # extra space).
16672 freebsd2.2*)
16673 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16674 hardcode_libdir_flag_spec='-R$libdir'
16675 hardcode_direct=yes
16676 hardcode_shlibpath_var=no
16677 ;;
16678
16679 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000016680 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016681 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16682 hardcode_direct=yes
16683 hardcode_minus_L=yes
16684 hardcode_shlibpath_var=no
16685 ;;
16686
16687 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16688 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000016689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016690 hardcode_libdir_flag_spec='-R$libdir'
16691 hardcode_direct=yes
16692 hardcode_shlibpath_var=no
16693 ;;
16694
16695 hpux9*)
Cristy15f22012015-11-14 17:51:30 -050016696 if test yes = "$GCC"; then
16697 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 +000016698 else
Cristy15f22012015-11-14 17:51:30 -050016699 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 +000016700 fi
Cristy15f22012015-11-14 17:51:30 -050016701 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016702 hardcode_libdir_separator=:
16703 hardcode_direct=yes
16704
16705 # hardcode_minus_L: Not really in the search PATH,
16706 # but as the default location of the library.
16707 hardcode_minus_L=yes
Cristy15f22012015-11-14 17:51:30 -050016708 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016709 ;;
16710
16711 hpux10*)
Cristy15f22012015-11-14 17:51:30 -050016712 if test yes,no = "$GCC,$with_gnu_ld"; then
16713 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 +000016714 else
16715 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16716 fi
Cristy15f22012015-11-14 17:51:30 -050016717 if test no = "$with_gnu_ld"; then
16718 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016719 hardcode_libdir_separator=:
16720 hardcode_direct=yes
16721 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050016722 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016723 # hardcode_minus_L: Not really in the search PATH,
16724 # but as the default location of the library.
16725 hardcode_minus_L=yes
16726 fi
16727 ;;
16728
16729 hpux11*)
Cristy15f22012015-11-14 17:51:30 -050016730 if test yes,no = "$GCC,$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000016731 case $host_cpu in
16732 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050016733 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016734 ;;
16735 ia64*)
Cristy15f22012015-11-14 17:51:30 -050016736 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016737 ;;
16738 *)
Cristy15f22012015-11-14 17:51:30 -050016739 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 +000016740 ;;
16741 esac
16742 else
16743 case $host_cpu in
16744 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050016745 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016746 ;;
16747 ia64*)
Cristy15f22012015-11-14 17:51:30 -050016748 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016749 ;;
16750 *)
cristy0c60a692010-11-04 01:09:47 +000016751
16752 # Older versions of the 11.00 compiler do not understand -b yet
16753 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
16755$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016756if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016757 $as_echo_n "(cached) " >&6
16758else
16759 lt_cv_prog_compiler__b=no
Cristy15f22012015-11-14 17:51:30 -050016760 save_LDFLAGS=$LDFLAGS
cristy0c60a692010-11-04 01:09:47 +000016761 LDFLAGS="$LDFLAGS -b"
16762 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16764 # The linker can only warn and ignore the option if not recognized
16765 # So say no if there are warnings
16766 if test -s conftest.err; then
16767 # Append any errors to the config.log.
16768 cat conftest.err 1>&5
16769 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16771 if diff conftest.exp conftest.er2 >/dev/null; then
16772 lt_cv_prog_compiler__b=yes
16773 fi
16774 else
16775 lt_cv_prog_compiler__b=yes
16776 fi
16777 fi
16778 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050016779 LDFLAGS=$save_LDFLAGS
cristy0c60a692010-11-04 01:09:47 +000016780
16781fi
16782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
16783$as_echo "$lt_cv_prog_compiler__b" >&6; }
16784
Cristy15f22012015-11-14 17:51:30 -050016785if test yes = "$lt_cv_prog_compiler__b"; then
16786 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 +000016787else
16788 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16789fi
16790
cristy73bd4a52010-10-05 11:24:23 +000016791 ;;
16792 esac
16793 fi
Cristy15f22012015-11-14 17:51:30 -050016794 if test no = "$with_gnu_ld"; then
16795 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016796 hardcode_libdir_separator=:
16797
16798 case $host_cpu in
16799 hppa*64*|ia64*)
16800 hardcode_direct=no
16801 hardcode_shlibpath_var=no
16802 ;;
16803 *)
16804 hardcode_direct=yes
16805 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050016806 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016807
16808 # hardcode_minus_L: Not really in the search PATH,
16809 # but as the default location of the library.
16810 hardcode_minus_L=yes
16811 ;;
16812 esac
16813 fi
16814 ;;
16815
16816 irix5* | irix6* | nonstopux*)
Cristy15f22012015-11-14 17:51:30 -050016817 if test yes = "$GCC"; then
16818 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 +000016819 # Try to use the -exported_symbol ld option, if it does not
16820 # work, assume that -exports_file does not work either and
16821 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000016822 # This should be the same for all languages, so no per-tag cache variable.
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
16824$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
16825if ${lt_cv_irix_exported_symbol+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827else
Cristy15f22012015-11-14 17:51:30 -050016828 save_LDFLAGS=$LDFLAGS
16829 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
cristyda16f162011-02-19 23:52:17 +000016830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016831/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000016832int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000016833_ACEOF
16834if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000016835 lt_cv_irix_exported_symbol=yes
16836else
16837 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000016838fi
16839rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050016841 LDFLAGS=$save_LDFLAGS
cristyda16f162011-02-19 23:52:17 +000016842fi
16843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
16844$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Cristy15f22012015-11-14 17:51:30 -050016845 if test yes = "$lt_cv_irix_exported_symbol"; then
16846 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 +000016847 fi
cristy73bd4a52010-10-05 11:24:23 +000016848 else
Cristy15f22012015-11-14 17:51:30 -050016849 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'
16850 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 +000016851 fi
16852 archive_cmds_need_lc='no'
Cristy15f22012015-11-14 17:51:30 -050016853 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016854 hardcode_libdir_separator=:
16855 inherit_rpath=yes
16856 link_all_deplibs=yes
16857 ;;
16858
Cristy15f22012015-11-14 17:51:30 -050016859 linux*)
16860 case $cc_basename in
16861 tcc*)
16862 # Fabrice Bellard et al's Tiny C Compiler
16863 ld_shlibs=yes
16864 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16865 ;;
16866 esac
16867 ;;
16868
cristy73bd4a52010-10-05 11:24:23 +000016869 netbsd*)
16870 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16871 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16872 else
16873 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16874 fi
16875 hardcode_libdir_flag_spec='-R$libdir'
16876 hardcode_direct=yes
16877 hardcode_shlibpath_var=no
16878 ;;
16879
16880 newsos6)
16881 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882 hardcode_direct=yes
Cristy15f22012015-11-14 17:51:30 -050016883 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016884 hardcode_libdir_separator=:
16885 hardcode_shlibpath_var=no
16886 ;;
16887
16888 *nto* | *qnx*)
16889 ;;
16890
Cristy15f22012015-11-14 17:51:30 -050016891 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000016892 if test -f /usr/libexec/ld.so; then
16893 hardcode_direct=yes
16894 hardcode_shlibpath_var=no
16895 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050016896 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cristy73bd4a52010-10-05 11:24:23 +000016897 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Cristy15f22012015-11-14 17:51:30 -050016898 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
16899 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16900 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000016901 else
Cristy15f22012015-11-14 17:51:30 -050016902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16903 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016904 fi
16905 else
16906 ld_shlibs=no
16907 fi
16908 ;;
16909
16910 os2*)
16911 hardcode_libdir_flag_spec='-L$libdir'
16912 hardcode_minus_L=yes
16913 allow_undefined_flag=unsupported
Cristy15f22012015-11-14 17:51:30 -050016914 shrext_cmds=.dll
16915 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16916 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16917 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16918 $ECHO EXPORTS >> $output_objdir/$libname.def~
16919 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16920 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16921 emximp -o $lib $output_objdir/$libname.def'
16922 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16923 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16924 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16925 $ECHO EXPORTS >> $output_objdir/$libname.def~
16926 prefix_cmds="$SED"~
16927 if test EXPORTS = "`$SED 1q $export_symbols`"; then
16928 prefix_cmds="$prefix_cmds -e 1d";
16929 fi~
16930 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16931 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16932 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16933 emximp -o $lib $output_objdir/$libname.def'
16934 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16935 enable_shared_with_static_runtimes=yes
cristy73bd4a52010-10-05 11:24:23 +000016936 ;;
16937
16938 osf3*)
Cristy15f22012015-11-14 17:51:30 -050016939 if test yes = "$GCC"; then
16940 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16941 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 +000016942 else
16943 allow_undefined_flag=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050016944 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 +000016945 fi
16946 archive_cmds_need_lc='no'
Cristy15f22012015-11-14 17:51:30 -050016947 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016948 hardcode_libdir_separator=:
16949 ;;
16950
16951 osf4* | osf5*) # as osf3* with the addition of -msym flag
Cristy15f22012015-11-14 17:51:30 -050016952 if test yes = "$GCC"; then
16953 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
16954 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'
16955 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000016956 else
16957 allow_undefined_flag=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050016958 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 +000016959 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 -050016960 $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 +000016961
16962 # Both c and cxx compiler support -rpath directly
16963 hardcode_libdir_flag_spec='-rpath $libdir'
16964 fi
16965 archive_cmds_need_lc='no'
16966 hardcode_libdir_separator=:
16967 ;;
16968
16969 solaris*)
16970 no_undefined_flag=' -z defs'
Cristy15f22012015-11-14 17:51:30 -050016971 if test yes = "$GCC"; then
16972 wlarc='$wl'
16973 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 +000016974 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 -050016975 $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 +000016976 else
16977 case `$CC -V 2>&1` in
16978 *"Compilers 5.0"*)
16979 wlarc=''
Cristy15f22012015-11-14 17:51:30 -050016980 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
cristy73bd4a52010-10-05 11:24:23 +000016981 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 -050016982 $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 +000016983 ;;
16984 *)
Cristy15f22012015-11-14 17:51:30 -050016985 wlarc='$wl'
16986 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000016987 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 -050016988 $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 +000016989 ;;
16990 esac
16991 fi
16992 hardcode_libdir_flag_spec='-R$libdir'
16993 hardcode_shlibpath_var=no
16994 case $host_os in
16995 solaris2.[0-5] | solaris2.[0-5].*) ;;
16996 *)
16997 # The compiler driver will combine and reorder linker options,
Cristy15f22012015-11-14 17:51:30 -050016998 # but understands '-z linker_flag'. GCC discards it without '$wl',
cristy73bd4a52010-10-05 11:24:23 +000016999 # but is careful enough not to reorder.
17000 # Supported since Solaris 2.6 (maybe 2.5.1?)
Cristy15f22012015-11-14 17:51:30 -050017001 if test yes = "$GCC"; then
17002 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cristy73bd4a52010-10-05 11:24:23 +000017003 else
17004 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17005 fi
17006 ;;
17007 esac
17008 link_all_deplibs=yes
17009 ;;
17010
17011 sunos4*)
Cristy15f22012015-11-14 17:51:30 -050017012 if test sequent = "$host_vendor"; then
cristy73bd4a52010-10-05 11:24:23 +000017013 # Use $CC to link under sequent, because it throws in some extra .o
17014 # files that make .init and .fini sections work.
Cristy15f22012015-11-14 17:51:30 -050017015 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017016 else
17017 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17018 fi
17019 hardcode_libdir_flag_spec='-L$libdir'
17020 hardcode_direct=yes
17021 hardcode_minus_L=yes
17022 hardcode_shlibpath_var=no
17023 ;;
17024
17025 sysv4)
17026 case $host_vendor in
17027 sni)
17028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17029 hardcode_direct=yes # is this really true???
17030 ;;
17031 siemens)
17032 ## LD is ld it makes a PLAMLIB
17033 ## CC just makes a GrossModule.
17034 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17035 reload_cmds='$CC -r -o $output$reload_objs'
17036 hardcode_direct=no
17037 ;;
17038 motorola)
17039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17040 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17041 ;;
17042 esac
17043 runpath_var='LD_RUN_PATH'
17044 hardcode_shlibpath_var=no
17045 ;;
17046
17047 sysv4.3*)
17048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17049 hardcode_shlibpath_var=no
17050 export_dynamic_flag_spec='-Bexport'
17051 ;;
17052
17053 sysv4*MP*)
17054 if test -d /usr/nec; then
17055 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17056 hardcode_shlibpath_var=no
17057 runpath_var=LD_RUN_PATH
17058 hardcode_runpath_var=yes
17059 ld_shlibs=yes
17060 fi
17061 ;;
17062
17063 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Cristy15f22012015-11-14 17:51:30 -050017064 no_undefined_flag='$wl-z,text'
cristy73bd4a52010-10-05 11:24:23 +000017065 archive_cmds_need_lc=no
17066 hardcode_shlibpath_var=no
17067 runpath_var='LD_RUN_PATH'
17068
Cristy15f22012015-11-14 17:51:30 -050017069 if test yes = "$GCC"; then
17070 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17071 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017072 else
Cristy15f22012015-11-14 17:51:30 -050017073 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17074 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017075 fi
17076 ;;
17077
17078 sysv5* | sco3.2v5* | sco5v6*)
Cristy15f22012015-11-14 17:51:30 -050017079 # Note: We CANNOT use -z defs as we might desire, because we do not
cristy73bd4a52010-10-05 11:24:23 +000017080 # link with -lc, and that would cause any symbols used from libc to
17081 # always be unresolved, which means just about no library would
17082 # ever link correctly. If we're not using GNU ld we use -z text
17083 # though, which does catch some bad symbols but isn't as heavy-handed
17084 # as -z defs.
Cristy15f22012015-11-14 17:51:30 -050017085 no_undefined_flag='$wl-z,text'
17086 allow_undefined_flag='$wl-z,nodefs'
cristy73bd4a52010-10-05 11:24:23 +000017087 archive_cmds_need_lc=no
17088 hardcode_shlibpath_var=no
Cristy15f22012015-11-14 17:51:30 -050017089 hardcode_libdir_flag_spec='$wl-R,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000017090 hardcode_libdir_separator=':'
17091 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050017092 export_dynamic_flag_spec='$wl-Bexport'
cristy73bd4a52010-10-05 11:24:23 +000017093 runpath_var='LD_RUN_PATH'
17094
Cristy15f22012015-11-14 17:51:30 -050017095 if test yes = "$GCC"; then
17096 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17097 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017098 else
Cristy15f22012015-11-14 17:51:30 -050017099 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17100 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000017101 fi
17102 ;;
17103
17104 uts4*)
17105 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17106 hardcode_libdir_flag_spec='-L$libdir'
17107 hardcode_shlibpath_var=no
17108 ;;
17109
17110 *)
17111 ld_shlibs=no
17112 ;;
17113 esac
17114
Cristy15f22012015-11-14 17:51:30 -050017115 if test sni = "$host_vendor"; then
cristy73bd4a52010-10-05 11:24:23 +000017116 case $host in
17117 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Cristy15f22012015-11-14 17:51:30 -050017118 export_dynamic_flag_spec='$wl-Blargedynsym'
cristy73bd4a52010-10-05 11:24:23 +000017119 ;;
17120 esac
17121 fi
17122 fi
17123
17124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17125$as_echo "$ld_shlibs" >&6; }
Cristy15f22012015-11-14 17:51:30 -050017126test no = "$ld_shlibs" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000017127
17128with_gnu_ld=$with_gnu_ld
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142
17143
17144#
17145# Do we need to explicitly link libc?
17146#
17147case "x$archive_cmds_need_lc" in
17148x|xyes)
17149 # Assume -lc should be added
17150 archive_cmds_need_lc=yes
17151
Cristy15f22012015-11-14 17:51:30 -050017152 if test yes,yes = "$GCC,$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000017153 case $archive_cmds in
17154 *'~'*)
17155 # FIXME: we may have to deal with multi-command sequences.
17156 ;;
17157 '$CC '*)
17158 # Test whether the compiler implicitly links with -lc since on some
17159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17160 # to ld, don't add -lc before -lgcc.
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17162$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017163if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017164 $as_echo_n "(cached) " >&6
17165else
17166 $RM conftest*
17167 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017168
cristy0c60a692010-11-04 01:09:47 +000017169 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000017170 (eval $ac_compile) 2>&5
17171 ac_status=$?
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000017174 soname=conftest
17175 lib=conftest
17176 libobjs=conftest.$ac_objext
17177 deplibs=
17178 wl=$lt_prog_compiler_wl
17179 pic_flag=$lt_prog_compiler_pic
17180 compiler_flags=-v
17181 linker_flags=-v
17182 verstring=
17183 output_objdir=.
17184 libname=conftest
17185 lt_save_allow_undefined_flag=$allow_undefined_flag
17186 allow_undefined_flag=
17187 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 +000017188 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17189 ac_status=$?
17190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17191 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000017192 then
17193 lt_cv_archive_cmds_need_lc=no
17194 else
17195 lt_cv_archive_cmds_need_lc=yes
17196 fi
17197 allow_undefined_flag=$lt_save_allow_undefined_flag
17198 else
17199 cat conftest.err 1>&5
17200 fi
17201 $RM conftest*
17202
17203fi
17204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17205$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17206 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000017207 ;;
17208 esac
17209 fi
17210 ;;
17211esac
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
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
cristy73bd4a52010-10-05 11:24:23 +000017364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17365$as_echo_n "checking dynamic linker characteristics... " >&6; }
17366
Cristy15f22012015-11-14 17:51:30 -050017367if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000017368 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050017369 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17370 *) lt_awk_arg='/^libraries:/' ;;
cristy73bd4a52010-10-05 11:24:23 +000017371 esac
cristy0c60a692010-11-04 01:09:47 +000017372 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050017373 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17374 *) lt_sed_strip_eq='s|=/|/|g' ;;
cristy0c60a692010-11-04 01:09:47 +000017375 esac
17376 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17377 case $lt_search_path_spec in
17378 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000017379 # if the path contains ";" then we assume it to be the separator
17380 # otherwise default to the standard path separator (i.e. ":") - it is
17381 # assumed that no part of a normal pathname contains ";" but that should
17382 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000017383 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17384 ;;
17385 *)
17386 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17387 ;;
17388 esac
cristy73bd4a52010-10-05 11:24:23 +000017389 # Ok, now we have the path, separated by spaces, we can step through it
Cristy15f22012015-11-14 17:51:30 -050017390 # and add multilib dir if necessary...
cristy73bd4a52010-10-05 11:24:23 +000017391 lt_tmp_lt_search_path_spec=
Cristy15f22012015-11-14 17:51:30 -050017392 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17393 # ...but if some path component already ends with the multilib dir we assume
17394 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17395 case "$lt_multi_os_dir; $lt_search_path_spec " in
17396 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17397 lt_multi_os_dir=
17398 ;;
17399 esac
cristy73bd4a52010-10-05 11:24:23 +000017400 for lt_sys_path in $lt_search_path_spec; do
Cristy15f22012015-11-14 17:51:30 -050017401 if test -d "$lt_sys_path$lt_multi_os_dir"; then
17402 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17403 elif test -n "$lt_multi_os_dir"; then
cristy73bd4a52010-10-05 11:24:23 +000017404 test -d "$lt_sys_path" && \
17405 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17406 fi
17407 done
cristy0c60a692010-11-04 01:09:47 +000017408 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Cristy15f22012015-11-14 17:51:30 -050017409BEGIN {RS = " "; FS = "/|\n";} {
17410 lt_foo = "";
17411 lt_count = 0;
cristy73bd4a52010-10-05 11:24:23 +000017412 for (lt_i = NF; lt_i > 0; lt_i--) {
17413 if ($lt_i != "" && $lt_i != ".") {
17414 if ($lt_i == "..") {
17415 lt_count++;
17416 } else {
17417 if (lt_count == 0) {
Cristy15f22012015-11-14 17:51:30 -050017418 lt_foo = "/" $lt_i lt_foo;
cristy73bd4a52010-10-05 11:24:23 +000017419 } else {
17420 lt_count--;
17421 }
17422 }
17423 }
17424 }
17425 if (lt_foo != "") { lt_freq[lt_foo]++; }
17426 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17427}'`
cristy0c60a692010-11-04 01:09:47 +000017428 # AWK program above erroneously prepends '/' to C:/dos/paths
17429 # for these hosts.
17430 case $host_os in
17431 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Cristy15f22012015-11-14 17:51:30 -050017432 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
cristy0c60a692010-11-04 01:09:47 +000017433 esac
17434 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000017435else
17436 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17437fi
17438library_names_spec=
17439libname_spec='lib$name'
17440soname_spec=
Cristy15f22012015-11-14 17:51:30 -050017441shrext_cmds=.so
cristy73bd4a52010-10-05 11:24:23 +000017442postinstall_cmds=
17443postuninstall_cmds=
17444finish_cmds=
17445finish_eval=
17446shlibpath_var=
17447shlibpath_overrides_runpath=unknown
17448version_type=none
17449dynamic_linker="$host_os ld.so"
17450sys_lib_dlsearch_path_spec="/lib /usr/lib"
17451need_lib_prefix=unknown
17452hardcode_into_libs=no
17453
17454# when you set need_version to no, make sure it does not cause -set_version
17455# flags to be left without arguments
17456need_version=unknown
17457
Cristy15f22012015-11-14 17:51:30 -050017458
17459
cristy73bd4a52010-10-05 11:24:23 +000017460case $host_os in
17461aix3*)
cristy99bd5232011-12-07 14:38:20 +000017462 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050017463 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cristy73bd4a52010-10-05 11:24:23 +000017464 shlibpath_var=LIBPATH
17465
17466 # AIX 3 has no versioning support, so we append a major version to the name.
Cristy15f22012015-11-14 17:51:30 -050017467 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017468 ;;
17469
17470aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000017471 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017472 need_lib_prefix=no
17473 need_version=no
17474 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050017475 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000017476 # AIX 5 supports IA64
Cristy15f22012015-11-14 17:51:30 -050017477 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017478 shlibpath_var=LD_LIBRARY_PATH
17479 else
17480 # With GCC up to 2.95.x, collect2 would create an import file
17481 # for dependence libraries. The import file would start with
Cristy15f22012015-11-14 17:51:30 -050017482 # the line '#! .'. This would cause the generated library to
17483 # depend on '.', always an invalid library. This was fixed in
cristy73bd4a52010-10-05 11:24:23 +000017484 # development snapshots of GCC prior to 3.0.
17485 case $host_os in
17486 aix4 | aix4.[01] | aix4.[01].*)
17487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17488 echo ' yes '
Cristy15f22012015-11-14 17:51:30 -050017489 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000017490 :
17491 else
17492 can_build_shared=no
17493 fi
17494 ;;
17495 esac
Cristy15f22012015-11-14 17:51:30 -050017496 # Using Import Files as archive members, it is possible to support
17497 # filename-based versioning of shared library archives on AIX. While
17498 # this would work for both with and without runtime linking, it will
17499 # prevent static linking of such archives. So we do filename-based
17500 # shared library versioning with .so extension only, which is used
17501 # when both runtime linking and shared linking is enabled.
17502 # Unfortunately, runtime linking may impact performance, so we do
17503 # not want this to be the default eventually. Also, we use the
17504 # versioned .so libs for executables only if there is the -brtl
17505 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17506 # To allow for filename-based versioning support, we need to create
17507 # libNAME.so.V as an archive file, containing:
17508 # *) an Import File, referring to the versioned filename of the
17509 # archive as well as the shared archive member, telling the
17510 # bitwidth (32 or 64) of that shared object, and providing the
17511 # list of exported symbols of that shared object, eventually
17512 # decorated with the 'weak' keyword
17513 # *) the shared object with the F_LOADONLY flag set, to really avoid
17514 # it being seen by the linker.
17515 # At run time we better use the real file rather than another symlink,
17516 # but for link time we create the symlink libNAME.so -> libNAME.so.V
17517
17518 case $with_aix_soname,$aix_use_runtimelinking in
17519 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cristy73bd4a52010-10-05 11:24:23 +000017520 # soname into executable. Probably we can add versioning support to
17521 # collect2, so additional links can be useful in future.
Cristy15f22012015-11-14 17:51:30 -050017522 aix,yes) # traditional libtool
17523 dynamic_linker='AIX unversionable lib.so'
cristy73bd4a52010-10-05 11:24:23 +000017524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17525 # instead of lib<name>.a to let people know that these are not
17526 # typical AIX shared libraries.
Cristy15f22012015-11-14 17:51:30 -050017527 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17528 ;;
17529 aix,no) # traditional AIX only
17530 dynamic_linker='AIX lib.a(lib.so.V)'
cristy73bd4a52010-10-05 11:24:23 +000017531 # We preserve .a as extension for shared libraries through AIX4.2
17532 # and later when we are not doing run time linking.
Cristy15f22012015-11-14 17:51:30 -050017533 library_names_spec='$libname$release.a $libname.a'
17534 soname_spec='$libname$release$shared_ext$major'
17535 ;;
17536 svr4,*) # full svr4 only
17537 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17538 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17539 # We do not specify a path in Import Files, so LIBPATH fires.
17540 shlibpath_overrides_runpath=yes
17541 ;;
17542 *,yes) # both, prefer svr4
17543 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17544 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17545 # unpreferred sharedlib libNAME.a needs extra handling
17546 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"'
17547 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"'
17548 # We do not specify a path in Import Files, so LIBPATH fires.
17549 shlibpath_overrides_runpath=yes
17550 ;;
17551 *,no) # both, prefer aix
17552 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17553 library_names_spec='$libname$release.a $libname.a'
17554 soname_spec='$libname$release$shared_ext$major'
17555 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17556 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)'
17557 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"'
17558 ;;
17559 esac
cristy73bd4a52010-10-05 11:24:23 +000017560 shlibpath_var=LIBPATH
17561 fi
17562 ;;
17563
17564amigaos*)
17565 case $host_cpu in
17566 powerpc)
17567 # Since July 2007 AmigaOS4 officially supports .so libraries.
17568 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Cristy15f22012015-11-14 17:51:30 -050017569 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017570 ;;
17571 m68k)
17572 library_names_spec='$libname.ixlibrary $libname.a'
17573 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Cristy15f22012015-11-14 17:51:30 -050017574 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 +000017575 ;;
17576 esac
17577 ;;
17578
17579beos*)
Cristy15f22012015-11-14 17:51:30 -050017580 library_names_spec='$libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017581 dynamic_linker="$host_os ld.so"
17582 shlibpath_var=LIBRARY_PATH
17583 ;;
17584
17585bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000017586 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017587 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017588 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17589 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017590 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17591 shlibpath_var=LD_LIBRARY_PATH
17592 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17593 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17594 # the default ld.so.conf also contains /usr/contrib/lib and
17595 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17596 # libtool to hard-code these into programs
17597 ;;
17598
17599cygwin* | mingw* | pw32* | cegcc*)
17600 version_type=windows
Cristy15f22012015-11-14 17:51:30 -050017601 shrext_cmds=.dll
cristy73bd4a52010-10-05 11:24:23 +000017602 need_version=no
17603 need_lib_prefix=no
17604
cristyda16f162011-02-19 23:52:17 +000017605 case $GCC,$cc_basename in
17606 yes,*)
17607 # gcc
cristy73bd4a52010-10-05 11:24:23 +000017608 library_names_spec='$libname.dll.a'
17609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050017610 postinstall_cmds='base_file=`basename \$file`~
17611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristy73bd4a52010-10-05 11:24:23 +000017612 dldir=$destdir/`dirname \$dlpath`~
17613 test -d \$dldir || mkdir -p \$dldir~
17614 $install_prog $dir/$dlname \$dldir/$dlname~
17615 chmod a+x \$dldir/$dlname~
17616 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17617 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17618 fi'
17619 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17620 dlpath=$dir/\$dldll~
17621 $RM \$dlpath'
17622 shlibpath_overrides_runpath=yes
17623
17624 case $host_os in
17625 cygwin*)
17626 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050017627 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy0c60a692010-11-04 01:09:47 +000017628
17629 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000017630 ;;
17631 mingw* | cegcc*)
17632 # MinGW DLLs use traditional 'lib' prefix
Cristy15f22012015-11-14 17:51:30 -050017633 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017634 ;;
17635 pw32*)
17636 # pw32 DLLs use 'pw' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050017637 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 +000017638 ;;
17639 esac
cristyda16f162011-02-19 23:52:17 +000017640 dynamic_linker='Win32 ld.exe'
17641 ;;
17642
17643 *,cl*)
17644 # Native MSVC
17645 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050017646 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17647 library_names_spec='$libname.dll.lib'
cristyda16f162011-02-19 23:52:17 +000017648
17649 case $build_os in
17650 mingw*)
17651 sys_lib_search_path_spec=
17652 lt_save_ifs=$IFS
17653 IFS=';'
17654 for lt_path in $LIB
17655 do
17656 IFS=$lt_save_ifs
17657 # Let DOS variable expansion print the short 8.3 style file name.
17658 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17659 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17660 done
17661 IFS=$lt_save_ifs
17662 # Convert to MSYS style.
17663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17664 ;;
17665 cygwin*)
17666 # Convert to unix form, then to dos form, then back to unix form
17667 # but this time dos style (no spaces!) so that the unix form looks
17668 # like /cygdrive/c/PROGRA~1:/cygdr...
17669 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17670 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17671 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17672 ;;
17673 *)
Cristy15f22012015-11-14 17:51:30 -050017674 sys_lib_search_path_spec=$LIB
cristyda16f162011-02-19 23:52:17 +000017675 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17676 # It is most probably a Windows format PATH.
17677 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17678 else
17679 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17680 fi
17681 # FIXME: find the short name or the path components, as spaces are
17682 # common. (e.g. "Program Files" -> "PROGRA~1")
17683 ;;
17684 esac
17685
17686 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050017687 postinstall_cmds='base_file=`basename \$file`~
17688 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristyda16f162011-02-19 23:52:17 +000017689 dldir=$destdir/`dirname \$dlpath`~
17690 test -d \$dldir || mkdir -p \$dldir~
17691 $install_prog $dir/$dlname \$dldir/$dlname'
17692 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17693 dlpath=$dir/\$dldll~
17694 $RM \$dlpath'
17695 shlibpath_overrides_runpath=yes
17696 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000017697 ;;
17698
17699 *)
cristyda16f162011-02-19 23:52:17 +000017700 # Assume MSVC wrapper
Cristy15f22012015-11-14 17:51:30 -050017701 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cristyda16f162011-02-19 23:52:17 +000017702 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000017703 ;;
17704 esac
cristy73bd4a52010-10-05 11:24:23 +000017705 # FIXME: first we should search . and the directory the executable is in
17706 shlibpath_var=PATH
17707 ;;
17708
17709darwin* | rhapsody*)
17710 dynamic_linker="$host_os dyld"
17711 version_type=darwin
17712 need_lib_prefix=no
17713 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017714 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
17715 soname_spec='$libname$release$major$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000017716 shlibpath_overrides_runpath=yes
17717 shlibpath_var=DYLD_LIBRARY_PATH
17718 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17719
17720 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17721 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17722 ;;
17723
17724dgux*)
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 shlibpath_var=LD_LIBRARY_PATH
17731 ;;
17732
cristy73bd4a52010-10-05 11:24:23 +000017733freebsd* | dragonfly*)
17734 # DragonFly does not have aout. When/if they implement a new
17735 # versioning mechanism, adjust this.
17736 if test -x /usr/bin/objformat; then
17737 objformat=`/usr/bin/objformat`
17738 else
17739 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017740 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000017741 *) objformat=elf ;;
17742 esac
17743 fi
17744 version_type=freebsd-$objformat
17745 case $version_type in
17746 freebsd-elf*)
Cristy15f22012015-11-14 17:51:30 -050017747 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17748 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017749 need_version=no
17750 need_lib_prefix=no
17751 ;;
17752 freebsd-*)
Cristy15f22012015-11-14 17:51:30 -050017753 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000017754 need_version=yes
17755 ;;
17756 esac
17757 shlibpath_var=LD_LIBRARY_PATH
17758 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000017759 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000017760 shlibpath_overrides_runpath=yes
17761 ;;
17762 freebsd3.[01]* | freebsdelf3.[01]*)
17763 shlibpath_overrides_runpath=yes
17764 hardcode_into_libs=yes
17765 ;;
17766 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17767 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17768 shlibpath_overrides_runpath=no
17769 hardcode_into_libs=yes
17770 ;;
17771 *) # from 4.6 on, and DragonFly
17772 shlibpath_overrides_runpath=yes
17773 hardcode_into_libs=yes
17774 ;;
17775 esac
17776 ;;
17777
cristy0c60a692010-11-04 01:09:47 +000017778haiku*)
cristy99bd5232011-12-07 14:38:20 +000017779 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000017780 need_lib_prefix=no
17781 need_version=no
17782 dynamic_linker="$host_os runtime_loader"
Cristy15f22012015-11-14 17:51:30 -050017783 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17784 soname_spec='$libname$release$shared_ext$major'
cristy0c60a692010-11-04 01:09:47 +000017785 shlibpath_var=LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050017786 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017787 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17788 hardcode_into_libs=yes
17789 ;;
17790
cristy73bd4a52010-10-05 11:24:23 +000017791hpux9* | hpux10* | hpux11*)
17792 # Give a soname corresponding to the major version so that dld.sl refuses to
17793 # link against other versions.
17794 version_type=sunos
17795 need_lib_prefix=no
17796 need_version=no
17797 case $host_cpu in
17798 ia64*)
17799 shrext_cmds='.so'
17800 hardcode_into_libs=yes
17801 dynamic_linker="$host_os dld.so"
17802 shlibpath_var=LD_LIBRARY_PATH
17803 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050017804 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17805 soname_spec='$libname$release$shared_ext$major'
17806 if test 32 = "$HPUX_IA64_MODE"; then
cristy73bd4a52010-10-05 11:24:23 +000017807 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Cristy15f22012015-11-14 17:51:30 -050017808 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cristy73bd4a52010-10-05 11:24:23 +000017809 else
17810 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Cristy15f22012015-11-14 17:51:30 -050017811 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cristy73bd4a52010-10-05 11:24:23 +000017812 fi
cristy73bd4a52010-10-05 11:24:23 +000017813 ;;
17814 hppa*64*)
17815 shrext_cmds='.sl'
17816 hardcode_into_libs=yes
17817 dynamic_linker="$host_os dld.sl"
17818 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17819 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050017820 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17821 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017822 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17824 ;;
17825 *)
17826 shrext_cmds='.sl'
17827 dynamic_linker="$host_os dld.sl"
17828 shlibpath_var=SHLIB_PATH
17829 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Cristy15f22012015-11-14 17:51:30 -050017830 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17831 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017832 ;;
17833 esac
cristy0c60a692010-11-04 01:09:47 +000017834 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000017835 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000017836 # or fails outright, so override atomically:
17837 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000017838 ;;
17839
17840interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000017841 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017842 need_lib_prefix=no
17843 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017844 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17845 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017846 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17847 shlibpath_var=LD_LIBRARY_PATH
17848 shlibpath_overrides_runpath=no
17849 hardcode_into_libs=yes
17850 ;;
17851
17852irix5* | irix6* | nonstopux*)
17853 case $host_os in
17854 nonstopux*) version_type=nonstopux ;;
17855 *)
Cristy15f22012015-11-14 17:51:30 -050017856 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy99bd5232011-12-07 14:38:20 +000017857 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017858 else
17859 version_type=irix
17860 fi ;;
17861 esac
17862 need_lib_prefix=no
17863 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017864 soname_spec='$libname$release$shared_ext$major'
17865 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 +000017866 case $host_os in
17867 irix5* | nonstopux*)
17868 libsuff= shlibsuff=
17869 ;;
17870 *)
17871 case $LD in # libtool.m4 will add one of these switches to LD
17872 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17873 libsuff= shlibsuff= libmagic=32-bit;;
17874 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17875 libsuff=32 shlibsuff=N32 libmagic=N32;;
17876 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17877 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17878 *) libsuff= shlibsuff= libmagic=never-match;;
17879 esac
17880 ;;
17881 esac
17882 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17883 shlibpath_overrides_runpath=no
Cristy15f22012015-11-14 17:51:30 -050017884 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
17885 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cristy73bd4a52010-10-05 11:24:23 +000017886 hardcode_into_libs=yes
17887 ;;
17888
17889# No shared lib support for Linux oldld, aout, or coff.
17890linux*oldld* | linux*aout* | linux*coff*)
17891 dynamic_linker=no
17892 ;;
17893
Cristy15f22012015-11-14 17:51:30 -050017894linux*android*)
17895 version_type=none # Android doesn't support versioned libraries.
17896 need_lib_prefix=no
17897 need_version=no
17898 library_names_spec='$libname$release$shared_ext'
17899 soname_spec='$libname$release$shared_ext'
17900 finish_cmds=
17901 shlibpath_var=LD_LIBRARY_PATH
17902 shlibpath_overrides_runpath=yes
17903
17904 # This implies no fast_install, which is unacceptable.
17905 # Some rework will be needed to allow for fast_install
17906 # before this can be enabled.
17907 hardcode_into_libs=yes
17908
17909 dynamic_linker='Android linker'
17910 # Don't embed -rpath directories since the linker doesn't support them.
17911 hardcode_libdir_flag_spec='-L$libdir'
17912 ;;
17913
cristy99bd5232011-12-07 14:38:20 +000017914# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050017915linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy99bd5232011-12-07 14:38:20 +000017916 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000017917 need_lib_prefix=no
17918 need_version=no
Cristy15f22012015-11-14 17:51:30 -050017919 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17920 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17922 shlibpath_var=LD_LIBRARY_PATH
17923 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000017924
cristy73bd4a52010-10-05 11:24:23 +000017925 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000017926 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017927 $as_echo_n "(cached) " >&6
17928else
17929 lt_cv_shlibpath_overrides_runpath=no
17930 save_LDFLAGS=$LDFLAGS
17931 save_libdir=$libdir
17932 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17933 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017935/* end confdefs.h. */
17936
17937int
17938main ()
17939{
17940
17941 ;
17942 return 0;
17943}
17944_ACEOF
17945if ac_fn_c_try_link "$LINENO"; then :
17946 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000017947 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000017948fi
17949fi
17950rm -f core conftest.err conftest.$ac_objext \
17951 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017952 LDFLAGS=$save_LDFLAGS
17953 libdir=$save_libdir
17954
17955fi
17956
17957 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000017958
17959 # This implies no fast_install, which is unacceptable.
17960 # Some rework will be needed to allow for fast_install
17961 # before this can be enabled.
17962 hardcode_into_libs=yes
17963
17964 # Add ABI-specific directories to the system library path.
17965 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17966
Cristy15f22012015-11-14 17:51:30 -050017967 # Ideally, we could use ldconfig to report *all* directores which are
17968 # searched for libraries, however this is still not possible. Aside from not
17969 # being certain /sbin/ldconfig is available, command
17970 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
17971 # even though it is searched at run-time. Try to do the best guess by
17972 # appending ld.so.conf contents (and includes) to the search path.
cristy73bd4a52010-10-05 11:24:23 +000017973 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000017974 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 +000017975 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17976 fi
17977
17978 # We used to test for /lib/ld.so.1 and disable shared libraries on
17979 # powerpc, because MkLinux only supported shared libraries with the
17980 # GNU dynamic linker. Since this was broken with cross compilers,
17981 # most powerpc-linux boxes support dynamic linking these days and
17982 # people can always --disable-shared, the test was removed, and we
17983 # assume the GNU/Linux dynamic linker is in use.
17984 dynamic_linker='GNU/Linux ld.so'
17985 ;;
17986
17987netbsd*)
17988 version_type=sunos
17989 need_lib_prefix=no
17990 need_version=no
17991 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017992 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000017993 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17994 dynamic_linker='NetBSD (a.out) ld.so'
17995 else
Cristy15f22012015-11-14 17:51:30 -050017996 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17997 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000017998 dynamic_linker='NetBSD ld.elf_so'
17999 fi
18000 shlibpath_var=LD_LIBRARY_PATH
18001 shlibpath_overrides_runpath=yes
18002 hardcode_into_libs=yes
18003 ;;
18004
18005newsos6)
cristy99bd5232011-12-07 14:38:20 +000018006 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018008 shlibpath_var=LD_LIBRARY_PATH
18009 shlibpath_overrides_runpath=yes
18010 ;;
18011
18012*nto* | *qnx*)
18013 version_type=qnx
18014 need_lib_prefix=no
18015 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018016 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18017 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018018 shlibpath_var=LD_LIBRARY_PATH
18019 shlibpath_overrides_runpath=no
18020 hardcode_into_libs=yes
18021 dynamic_linker='ldqnx.so'
18022 ;;
18023
Cristy15f22012015-11-14 17:51:30 -050018024openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000018025 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050018026 sys_lib_dlsearch_path_spec=/usr/lib
cristy73bd4a52010-10-05 11:24:23 +000018027 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050018028 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18029 need_version=no
18030 else
18031 need_version=yes
18032 fi
18033 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000018034 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18035 shlibpath_var=LD_LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050018036 shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000018037 ;;
18038
18039os2*)
18040 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050018041 version_type=windows
18042 shrext_cmds=.dll
18043 need_version=no
cristy73bd4a52010-10-05 11:24:23 +000018044 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050018045 # OS/2 can only load a DLL with a base name of 8 characters or less.
18046 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18047 v=$($ECHO $release$versuffix | tr -d .-);
18048 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18049 $ECHO $n$v`$shared_ext'
18050 library_names_spec='${libname}_dll.$libext'
cristy73bd4a52010-10-05 11:24:23 +000018051 dynamic_linker='OS/2 ld.exe'
Cristy15f22012015-11-14 17:51:30 -050018052 shlibpath_var=BEGINLIBPATH
18053 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18055 postinstall_cmds='base_file=`basename \$file`~
18056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18057 dldir=$destdir/`dirname \$dlpath`~
18058 test -d \$dldir || mkdir -p \$dldir~
18059 $install_prog $dir/$dlname \$dldir/$dlname~
18060 chmod a+x \$dldir/$dlname~
18061 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18062 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18063 fi'
18064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18065 dlpath=$dir/\$dldll~
18066 $RM \$dlpath'
cristy73bd4a52010-10-05 11:24:23 +000018067 ;;
18068
18069osf3* | osf4* | osf5*)
18070 version_type=osf
18071 need_lib_prefix=no
18072 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018073 soname_spec='$libname$release$shared_ext$major'
18074 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018075 shlibpath_var=LD_LIBRARY_PATH
18076 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 -050018077 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000018078 ;;
18079
18080rdos*)
18081 dynamic_linker=no
18082 ;;
18083
18084solaris*)
cristy99bd5232011-12-07 14:38:20 +000018085 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000018086 need_lib_prefix=no
18087 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18089 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018090 shlibpath_var=LD_LIBRARY_PATH
18091 shlibpath_overrides_runpath=yes
18092 hardcode_into_libs=yes
18093 # ldd complains unless libraries are executable
18094 postinstall_cmds='chmod +x $lib'
18095 ;;
18096
18097sunos4*)
18098 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050018099 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000018100 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
Cristy15f22012015-11-14 17:51:30 -050018103 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000018104 need_lib_prefix=no
18105 fi
18106 need_version=yes
18107 ;;
18108
18109sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000018110 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18112 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018113 shlibpath_var=LD_LIBRARY_PATH
18114 case $host_vendor in
18115 sni)
18116 shlibpath_overrides_runpath=no
18117 need_lib_prefix=no
18118 runpath_var=LD_RUN_PATH
18119 ;;
18120 siemens)
18121 need_lib_prefix=no
18122 ;;
18123 motorola)
18124 need_lib_prefix=no
18125 need_version=no
18126 shlibpath_overrides_runpath=no
18127 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18128 ;;
18129 esac
18130 ;;
18131
18132sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050018133 if test -d /usr/nec; then
cristy99bd5232011-12-07 14:38:20 +000018134 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018135 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18136 soname_spec='$libname$shared_ext.$major'
cristy73bd4a52010-10-05 11:24:23 +000018137 shlibpath_var=LD_LIBRARY_PATH
18138 fi
18139 ;;
18140
18141sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Cristy15f22012015-11-14 17:51:30 -050018142 version_type=sco
cristy73bd4a52010-10-05 11:24:23 +000018143 need_lib_prefix=no
18144 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018145 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18146 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018147 shlibpath_var=LD_LIBRARY_PATH
18148 shlibpath_overrides_runpath=yes
18149 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050018150 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000018151 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18152 else
18153 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18154 case $host_os in
18155 sco3.2v5*)
18156 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18157 ;;
18158 esac
18159 fi
18160 sys_lib_dlsearch_path_spec='/usr/lib'
18161 ;;
18162
18163tpf*)
18164 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000018165 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000018166 need_lib_prefix=no
18167 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018168 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018169 shlibpath_var=LD_LIBRARY_PATH
18170 shlibpath_overrides_runpath=no
18171 hardcode_into_libs=yes
18172 ;;
18173
18174uts4*)
cristy99bd5232011-12-07 14:38:20 +000018175 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018176 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18177 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018178 shlibpath_var=LD_LIBRARY_PATH
18179 ;;
18180
18181*)
18182 dynamic_linker=no
18183 ;;
18184esac
18185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18186$as_echo "$dynamic_linker" >&6; }
Cristy15f22012015-11-14 17:51:30 -050018187test no = "$dynamic_linker" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000018188
18189variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Cristy15f22012015-11-14 17:51:30 -050018190if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000018191 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18192fi
18193
Cristy15f22012015-11-14 17:51:30 -050018194if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18195 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000018196fi
Cristy15f22012015-11-14 17:51:30 -050018197
18198if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18199 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cristy73bd4a52010-10-05 11:24:23 +000018200fi
18201
Cristy15f22012015-11-14 17:51:30 -050018202# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18203configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18204
18205# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18206func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18207
18208# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18209configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18210
18211
18212
18213
18214
18215
cristy73bd4a52010-10-05 11:24:23 +000018216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295
18296
18297
18298
18299
18300
18301
cristy0c60a692010-11-04 01:09:47 +000018302
18303
18304
18305
18306
cristy73bd4a52010-10-05 11:24:23 +000018307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18308$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18309hardcode_action=
18310if test -n "$hardcode_libdir_flag_spec" ||
18311 test -n "$runpath_var" ||
Cristy15f22012015-11-14 17:51:30 -050018312 test yes = "$hardcode_automatic"; then
cristy73bd4a52010-10-05 11:24:23 +000018313
18314 # We can hardcode non-existent directories.
Cristy15f22012015-11-14 17:51:30 -050018315 if test no != "$hardcode_direct" &&
cristy73bd4a52010-10-05 11:24:23 +000018316 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18317 # have to relink, otherwise we might link with an installed library
18318 # when we should be linking with a yet-to-be-installed one
Cristy15f22012015-11-14 17:51:30 -050018319 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18320 test no != "$hardcode_minus_L"; then
cristy73bd4a52010-10-05 11:24:23 +000018321 # Linking always hardcodes the temporary library directory.
18322 hardcode_action=relink
18323 else
18324 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18325 hardcode_action=immediate
18326 fi
18327else
18328 # We cannot hardcode anything, or else we can only hardcode existing
18329 # directories.
18330 hardcode_action=unsupported
18331fi
18332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18333$as_echo "$hardcode_action" >&6; }
18334
Cristy15f22012015-11-14 17:51:30 -050018335if test relink = "$hardcode_action" ||
18336 test yes = "$inherit_rpath"; then
cristy73bd4a52010-10-05 11:24:23 +000018337 # Fast installation is not supported
18338 enable_fast_install=no
Cristy15f22012015-11-14 17:51:30 -050018339elif test yes = "$shlibpath_overrides_runpath" ||
18340 test no = "$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000018341 # Fast installation is not necessary
18342 enable_fast_install=needless
18343fi
18344
18345
18346
18347
18348
18349
Cristy15f22012015-11-14 17:51:30 -050018350 if test yes != "$enable_dlopen"; then
cristy73bd4a52010-10-05 11:24:23 +000018351 enable_dlopen=unknown
18352 enable_dlopen_self=unknown
18353 enable_dlopen_self_static=unknown
18354else
18355 lt_cv_dlopen=no
18356 lt_cv_dlopen_libs=
18357
18358 case $host_os in
18359 beos*)
Cristy15f22012015-11-14 17:51:30 -050018360 lt_cv_dlopen=load_add_on
cristy73bd4a52010-10-05 11:24:23 +000018361 lt_cv_dlopen_libs=
18362 lt_cv_dlopen_self=yes
18363 ;;
18364
18365 mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050018366 lt_cv_dlopen=LoadLibrary
cristy73bd4a52010-10-05 11:24:23 +000018367 lt_cv_dlopen_libs=
18368 ;;
18369
18370 cygwin*)
Cristy15f22012015-11-14 17:51:30 -050018371 lt_cv_dlopen=dlopen
cristy73bd4a52010-10-05 11:24:23 +000018372 lt_cv_dlopen_libs=
18373 ;;
18374
18375 darwin*)
Cristy15f22012015-11-14 17:51:30 -050018376 # if libdl is installed we need to link against it
cristy73bd4a52010-10-05 11:24:23 +000018377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18378$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018379if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018380 $as_echo_n "(cached) " >&6
18381else
18382 ac_check_lib_save_LIBS=$LIBS
18383LIBS="-ldl $LIBS"
18384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18385/* end confdefs.h. */
18386
18387/* Override any GCC internal prototype to avoid an error.
18388 Use char because int might match the return type of a GCC
18389 builtin and then its argument prototype would still apply. */
18390#ifdef __cplusplus
18391extern "C"
18392#endif
18393char dlopen ();
18394int
18395main ()
18396{
18397return dlopen ();
18398 ;
18399 return 0;
18400}
18401_ACEOF
18402if ac_fn_c_try_link "$LINENO"; then :
18403 ac_cv_lib_dl_dlopen=yes
18404else
18405 ac_cv_lib_dl_dlopen=no
18406fi
18407rm -f core conftest.err conftest.$ac_objext \
18408 conftest$ac_exeext conftest.$ac_ext
18409LIBS=$ac_check_lib_save_LIBS
18410fi
18411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18412$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018413if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018414 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cristy73bd4a52010-10-05 11:24:23 +000018415else
18416
Cristy15f22012015-11-14 17:51:30 -050018417 lt_cv_dlopen=dyld
cristy73bd4a52010-10-05 11:24:23 +000018418 lt_cv_dlopen_libs=
18419 lt_cv_dlopen_self=yes
18420
18421fi
18422
18423 ;;
18424
Cristy15f22012015-11-14 17:51:30 -050018425 tpf*)
18426 # Don't try to run any link tests for TPF. We know it's impossible
18427 # because TPF is a cross-compiler, and we know how we open DSOs.
18428 lt_cv_dlopen=dlopen
18429 lt_cv_dlopen_libs=
18430 lt_cv_dlopen_self=no
18431 ;;
18432
cristy73bd4a52010-10-05 11:24:23 +000018433 *)
18434 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000018435if test "x$ac_cv_func_shl_load" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018436 lt_cv_dlopen=shl_load
cristy73bd4a52010-10-05 11:24:23 +000018437else
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18439$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018440if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018441 $as_echo_n "(cached) " >&6
18442else
18443 ac_check_lib_save_LIBS=$LIBS
18444LIBS="-ldld $LIBS"
18445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446/* end confdefs.h. */
18447
18448/* Override any GCC internal prototype to avoid an error.
18449 Use char because int might match the return type of a GCC
18450 builtin and then its argument prototype would still apply. */
18451#ifdef __cplusplus
18452extern "C"
18453#endif
18454char shl_load ();
18455int
18456main ()
18457{
18458return shl_load ();
18459 ;
18460 return 0;
18461}
18462_ACEOF
18463if ac_fn_c_try_link "$LINENO"; then :
18464 ac_cv_lib_dld_shl_load=yes
18465else
18466 ac_cv_lib_dld_shl_load=no
18467fi
18468rm -f core conftest.err conftest.$ac_objext \
18469 conftest$ac_exeext conftest.$ac_ext
18470LIBS=$ac_check_lib_save_LIBS
18471fi
18472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18473$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000018474if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018475 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
cristy73bd4a52010-10-05 11:24:23 +000018476else
18477 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000018478if test "x$ac_cv_func_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018479 lt_cv_dlopen=dlopen
cristy73bd4a52010-10-05 11:24:23 +000018480else
18481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18482$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018483if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018484 $as_echo_n "(cached) " >&6
18485else
18486 ac_check_lib_save_LIBS=$LIBS
18487LIBS="-ldl $LIBS"
18488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18489/* end confdefs.h. */
18490
18491/* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18494#ifdef __cplusplus
18495extern "C"
18496#endif
18497char dlopen ();
18498int
18499main ()
18500{
18501return dlopen ();
18502 ;
18503 return 0;
18504}
18505_ACEOF
18506if ac_fn_c_try_link "$LINENO"; then :
18507 ac_cv_lib_dl_dlopen=yes
18508else
18509 ac_cv_lib_dl_dlopen=no
18510fi
18511rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18513LIBS=$ac_check_lib_save_LIBS
18514fi
18515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18516$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018517if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018518 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cristy73bd4a52010-10-05 11:24:23 +000018519else
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18521$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018522if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018523 $as_echo_n "(cached) " >&6
18524else
18525 ac_check_lib_save_LIBS=$LIBS
18526LIBS="-lsvld $LIBS"
18527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528/* end confdefs.h. */
18529
18530/* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18533#ifdef __cplusplus
18534extern "C"
18535#endif
18536char dlopen ();
18537int
18538main ()
18539{
18540return dlopen ();
18541 ;
18542 return 0;
18543}
18544_ACEOF
18545if ac_fn_c_try_link "$LINENO"; then :
18546 ac_cv_lib_svld_dlopen=yes
18547else
18548 ac_cv_lib_svld_dlopen=no
18549fi
18550rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552LIBS=$ac_check_lib_save_LIBS
18553fi
18554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18555$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000018556if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018557 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
cristy73bd4a52010-10-05 11:24:23 +000018558else
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18560$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018561if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018562 $as_echo_n "(cached) " >&6
18563else
18564 ac_check_lib_save_LIBS=$LIBS
18565LIBS="-ldld $LIBS"
18566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18567/* end confdefs.h. */
18568
18569/* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18572#ifdef __cplusplus
18573extern "C"
18574#endif
18575char dld_link ();
18576int
18577main ()
18578{
18579return dld_link ();
18580 ;
18581 return 0;
18582}
18583_ACEOF
18584if ac_fn_c_try_link "$LINENO"; then :
18585 ac_cv_lib_dld_dld_link=yes
18586else
18587 ac_cv_lib_dld_dld_link=no
18588fi
18589rm -f core conftest.err conftest.$ac_objext \
18590 conftest$ac_exeext conftest.$ac_ext
18591LIBS=$ac_check_lib_save_LIBS
18592fi
18593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18594$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000018595if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050018596 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
cristy73bd4a52010-10-05 11:24:23 +000018597fi
18598
18599
18600fi
18601
18602
18603fi
18604
18605
18606fi
18607
18608
18609fi
18610
18611
18612fi
18613
18614 ;;
18615 esac
18616
Cristy15f22012015-11-14 17:51:30 -050018617 if test no = "$lt_cv_dlopen"; then
cristy73bd4a52010-10-05 11:24:23 +000018618 enable_dlopen=no
Cristy15f22012015-11-14 17:51:30 -050018619 else
18620 enable_dlopen=yes
cristy73bd4a52010-10-05 11:24:23 +000018621 fi
18622
18623 case $lt_cv_dlopen in
18624 dlopen)
Cristy15f22012015-11-14 17:51:30 -050018625 save_CPPFLAGS=$CPPFLAGS
18626 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cristy73bd4a52010-10-05 11:24:23 +000018627
Cristy15f22012015-11-14 17:51:30 -050018628 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018629 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18630
Cristy15f22012015-11-14 17:51:30 -050018631 save_LIBS=$LIBS
cristy73bd4a52010-10-05 11:24:23 +000018632 LIBS="$lt_cv_dlopen_libs $LIBS"
18633
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18635$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018636if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018637 $as_echo_n "(cached) " >&6
18638else
Cristy15f22012015-11-14 17:51:30 -050018639 if test yes = "$cross_compiling"; then :
cristy73bd4a52010-10-05 11:24:23 +000018640 lt_cv_dlopen_self=cross
18641else
18642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18643 lt_status=$lt_dlunknown
18644 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018645#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018646#include "confdefs.h"
18647
18648#if HAVE_DLFCN_H
18649#include <dlfcn.h>
18650#endif
18651
18652#include <stdio.h>
18653
18654#ifdef RTLD_GLOBAL
18655# define LT_DLGLOBAL RTLD_GLOBAL
18656#else
18657# ifdef DL_GLOBAL
18658# define LT_DLGLOBAL DL_GLOBAL
18659# else
18660# define LT_DLGLOBAL 0
18661# endif
18662#endif
18663
18664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18665 find out it does not work in some platform. */
18666#ifndef LT_DLLAZY_OR_NOW
18667# ifdef RTLD_LAZY
18668# define LT_DLLAZY_OR_NOW RTLD_LAZY
18669# else
18670# ifdef DL_LAZY
18671# define LT_DLLAZY_OR_NOW DL_LAZY
18672# else
18673# ifdef RTLD_NOW
18674# define LT_DLLAZY_OR_NOW RTLD_NOW
18675# else
18676# ifdef DL_NOW
18677# define LT_DLLAZY_OR_NOW DL_NOW
18678# else
18679# define LT_DLLAZY_OR_NOW 0
18680# endif
18681# endif
18682# endif
18683# endif
18684#endif
18685
Cristy15f22012015-11-14 17:51:30 -050018686/* When -fvisibility=hidden is used, assume the code has been annotated
cristy0c60a692010-11-04 01:09:47 +000018687 correspondingly for the symbols needed. */
Cristy15f22012015-11-14 17:51:30 -050018688#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018689int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018690#endif
18691
cristyda16f162011-02-19 23:52:17 +000018692int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018693int main ()
18694{
18695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18696 int status = $lt_dlunknown;
18697
18698 if (self)
18699 {
18700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018701 else
18702 {
18703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18704 else puts (dlerror ());
18705 }
cristy73bd4a52010-10-05 11:24:23 +000018706 /* dlclose (self); */
18707 }
18708 else
18709 puts (dlerror ());
18710
18711 return status;
18712}
18713_LT_EOF
18714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18715 (eval $ac_link) 2>&5
18716 ac_status=$?
18717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050018718 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000018719 (./conftest; exit; ) >&5 2>/dev/null
18720 lt_status=$?
18721 case x$lt_status in
18722 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18723 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18724 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18725 esac
18726 else :
18727 # compilation failed
18728 lt_cv_dlopen_self=no
18729 fi
18730fi
18731rm -fr conftest*
18732
18733
18734fi
18735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18736$as_echo "$lt_cv_dlopen_self" >&6; }
18737
Cristy15f22012015-11-14 17:51:30 -050018738 if test yes = "$lt_cv_dlopen_self"; then
cristy73bd4a52010-10-05 11:24:23 +000018739 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18741$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018742if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000018743 $as_echo_n "(cached) " >&6
18744else
Cristy15f22012015-11-14 17:51:30 -050018745 if test yes = "$cross_compiling"; then :
cristy73bd4a52010-10-05 11:24:23 +000018746 lt_cv_dlopen_self_static=cross
18747else
18748 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18749 lt_status=$lt_dlunknown
18750 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000018751#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000018752#include "confdefs.h"
18753
18754#if HAVE_DLFCN_H
18755#include <dlfcn.h>
18756#endif
18757
18758#include <stdio.h>
18759
18760#ifdef RTLD_GLOBAL
18761# define LT_DLGLOBAL RTLD_GLOBAL
18762#else
18763# ifdef DL_GLOBAL
18764# define LT_DLGLOBAL DL_GLOBAL
18765# else
18766# define LT_DLGLOBAL 0
18767# endif
18768#endif
18769
18770/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18771 find out it does not work in some platform. */
18772#ifndef LT_DLLAZY_OR_NOW
18773# ifdef RTLD_LAZY
18774# define LT_DLLAZY_OR_NOW RTLD_LAZY
18775# else
18776# ifdef DL_LAZY
18777# define LT_DLLAZY_OR_NOW DL_LAZY
18778# else
18779# ifdef RTLD_NOW
18780# define LT_DLLAZY_OR_NOW RTLD_NOW
18781# else
18782# ifdef DL_NOW
18783# define LT_DLLAZY_OR_NOW DL_NOW
18784# else
18785# define LT_DLLAZY_OR_NOW 0
18786# endif
18787# endif
18788# endif
18789# endif
18790#endif
18791
Cristy15f22012015-11-14 17:51:30 -050018792/* When -fvisibility=hidden is used, assume the code has been annotated
cristy0c60a692010-11-04 01:09:47 +000018793 correspondingly for the symbols needed. */
Cristy15f22012015-11-14 17:51:30 -050018794#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000018795int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000018796#endif
18797
cristyda16f162011-02-19 23:52:17 +000018798int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000018799int main ()
18800{
18801 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18802 int status = $lt_dlunknown;
18803
18804 if (self)
18805 {
18806 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000018807 else
18808 {
18809 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18810 else puts (dlerror ());
18811 }
cristy73bd4a52010-10-05 11:24:23 +000018812 /* dlclose (self); */
18813 }
18814 else
18815 puts (dlerror ());
18816
18817 return status;
18818}
18819_LT_EOF
18820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18821 (eval $ac_link) 2>&5
18822 ac_status=$?
18823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050018824 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000018825 (./conftest; exit; ) >&5 2>/dev/null
18826 lt_status=$?
18827 case x$lt_status in
18828 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18829 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18830 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18831 esac
18832 else :
18833 # compilation failed
18834 lt_cv_dlopen_self_static=no
18835 fi
18836fi
18837rm -fr conftest*
18838
18839
18840fi
18841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18842$as_echo "$lt_cv_dlopen_self_static" >&6; }
18843 fi
18844
Cristy15f22012015-11-14 17:51:30 -050018845 CPPFLAGS=$save_CPPFLAGS
18846 LDFLAGS=$save_LDFLAGS
18847 LIBS=$save_LIBS
cristy73bd4a52010-10-05 11:24:23 +000018848 ;;
18849 esac
18850
18851 case $lt_cv_dlopen_self in
18852 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18853 *) enable_dlopen_self=unknown ;;
18854 esac
18855
18856 case $lt_cv_dlopen_self_static in
18857 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18858 *) enable_dlopen_self_static=unknown ;;
18859 esac
18860fi
18861
18862
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878striplib=
18879old_striplib=
18880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18881$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18882if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18883 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18884 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18886$as_echo "yes" >&6; }
18887else
18888# FIXME - insert some real tests, host_os isn't really good enough
18889 case $host_os in
18890 darwin*)
Cristy15f22012015-11-14 17:51:30 -050018891 if test -n "$STRIP"; then
cristy73bd4a52010-10-05 11:24:23 +000018892 striplib="$STRIP -x"
18893 old_striplib="$STRIP -S"
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18895$as_echo "yes" >&6; }
18896 else
18897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18898$as_echo "no" >&6; }
18899 fi
18900 ;;
18901 *)
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18903$as_echo "no" >&6; }
18904 ;;
18905 esac
18906fi
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
Cristy15f22012015-11-14 17:51:30 -050018919 # Report what library types will actually be built
cristy73bd4a52010-10-05 11:24:23 +000018920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18921$as_echo_n "checking if libtool supports shared libraries... " >&6; }
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18923$as_echo "$can_build_shared" >&6; }
18924
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18926$as_echo_n "checking whether to build shared libraries... " >&6; }
Cristy15f22012015-11-14 17:51:30 -050018927 test no = "$can_build_shared" && enable_shared=no
cristy73bd4a52010-10-05 11:24:23 +000018928
18929 # On AIX, shared libraries and static libraries use the same namespace, and
18930 # are all built from PIC.
18931 case $host_os in
18932 aix3*)
Cristy15f22012015-11-14 17:51:30 -050018933 test yes = "$enable_shared" && enable_static=no
cristy73bd4a52010-10-05 11:24:23 +000018934 if test -n "$RANLIB"; then
18935 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18936 postinstall_cmds='$RANLIB $lib'
18937 fi
18938 ;;
18939
18940 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050018941 if test ia64 != "$host_cpu"; then
18942 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
18943 yes,aix,yes) ;; # shared object as lib.so file only
18944 yes,svr4,*) ;; # shared object as lib.so archive member only
18945 yes,*) enable_static=no ;; # shared object in lib.a archive as well
18946 esac
cristy73bd4a52010-10-05 11:24:23 +000018947 fi
18948 ;;
18949 esac
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18951$as_echo "$enable_shared" >&6; }
18952
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18954$as_echo_n "checking whether to build static libraries... " >&6; }
18955 # Make sure either enable_shared or enable_static is yes.
Cristy15f22012015-11-14 17:51:30 -050018956 test yes = "$enable_shared" || enable_static=yes
cristy73bd4a52010-10-05 11:24:23 +000018957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18958$as_echo "$enable_static" >&6; }
18959
18960
18961
18962
18963fi
18964ac_ext=c
18965ac_cpp='$CPP $CPPFLAGS'
18966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18968ac_compiler_gnu=$ac_cv_c_compiler_gnu
18969
Cristy15f22012015-11-14 17:51:30 -050018970CC=$lt_save_CC
cristy73bd4a52010-10-05 11:24:23 +000018971
Cristy15f22012015-11-14 17:51:30 -050018972 if test -n "$CXX" && ( test no != "$CXX" &&
18973 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
18974 (test g++ != "$CXX"))); then
cristy0c60a692010-11-04 01:09:47 +000018975 ac_ext=cpp
18976ac_cpp='$CXXCPP $CPPFLAGS'
18977ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18978ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18979ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
18981$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
18982if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000018983 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018984 $as_echo_n "(cached) " >&6
18985else
18986 # Double quotes because CXXCPP needs to be expanded
18987 for CXXCPP in "$CXX -E" "/lib/cpp"
18988 do
18989 ac_preproc_ok=false
18990for ac_cxx_preproc_warn_flag in '' yes
18991do
18992 # Use a header file that comes with gcc, so configuring glibc
18993 # with a fresh cross-compiler works.
18994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18995 # <limits.h> exists even on freestanding compilers.
18996 # On the NeXT, cc -E runs the code through the compiler's parser,
18997 # not just through cpp. "Syntax error" is here to catch this case.
18998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18999/* end confdefs.h. */
19000#ifdef __STDC__
19001# include <limits.h>
19002#else
19003# include <assert.h>
19004#endif
19005 Syntax error
19006_ACEOF
19007if ac_fn_cxx_try_cpp "$LINENO"; then :
19008
19009else
19010 # Broken: fails on valid input.
19011continue
19012fi
cristyda16f162011-02-19 23:52:17 +000019013rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019014
19015 # OK, works on sane cases. Now check whether nonexistent headers
19016 # can be detected and how.
19017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19018/* end confdefs.h. */
19019#include <ac_nonexistent.h>
19020_ACEOF
19021if ac_fn_cxx_try_cpp "$LINENO"; then :
19022 # Broken: success on invalid input.
19023continue
19024else
19025 # Passes both tests.
19026ac_preproc_ok=:
19027break
19028fi
cristyda16f162011-02-19 23:52:17 +000019029rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019030
19031done
19032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000019033rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019034if $ac_preproc_ok; then :
19035 break
19036fi
19037
19038 done
19039 ac_cv_prog_CXXCPP=$CXXCPP
19040
19041fi
19042 CXXCPP=$ac_cv_prog_CXXCPP
19043else
19044 ac_cv_prog_CXXCPP=$CXXCPP
19045fi
19046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19047$as_echo "$CXXCPP" >&6; }
19048ac_preproc_ok=false
19049for ac_cxx_preproc_warn_flag in '' yes
19050do
19051 # Use a header file that comes with gcc, so configuring glibc
19052 # with a fresh cross-compiler works.
19053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054 # <limits.h> exists even on freestanding compilers.
19055 # On the NeXT, cc -E runs the code through the compiler's parser,
19056 # not just through cpp. "Syntax error" is here to catch this case.
19057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19058/* end confdefs.h. */
19059#ifdef __STDC__
19060# include <limits.h>
19061#else
19062# include <assert.h>
19063#endif
19064 Syntax error
19065_ACEOF
19066if ac_fn_cxx_try_cpp "$LINENO"; then :
19067
19068else
19069 # Broken: fails on valid input.
19070continue
19071fi
cristyda16f162011-02-19 23:52:17 +000019072rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019073
19074 # OK, works on sane cases. Now check whether nonexistent headers
19075 # can be detected and how.
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077/* end confdefs.h. */
19078#include <ac_nonexistent.h>
19079_ACEOF
19080if ac_fn_cxx_try_cpp "$LINENO"; then :
19081 # Broken: success on invalid input.
19082continue
19083else
19084 # Passes both tests.
19085ac_preproc_ok=:
19086break
19087fi
cristyda16f162011-02-19 23:52:17 +000019088rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019089
19090done
19091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000019092rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019093if $ac_preproc_ok; then :
19094
19095else
19096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19098as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19099See \`config.log' for more details" "$LINENO" 5; }
19100fi
19101
19102ac_ext=c
19103ac_cpp='$CPP $CPPFLAGS'
19104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106ac_compiler_gnu=$ac_cv_c_compiler_gnu
19107
19108else
19109 _lt_caught_CXX_error=yes
19110fi
cristy73bd4a52010-10-05 11:24:23 +000019111
19112ac_ext=cpp
19113ac_cpp='$CXXCPP $CPPFLAGS'
19114ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19115ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19116ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19117
19118archive_cmds_need_lc_CXX=no
19119allow_undefined_flag_CXX=
19120always_export_symbols_CXX=no
19121archive_expsym_cmds_CXX=
19122compiler_needs_object_CXX=no
19123export_dynamic_flag_spec_CXX=
19124hardcode_direct_CXX=no
19125hardcode_direct_absolute_CXX=no
19126hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000019127hardcode_libdir_separator_CXX=
19128hardcode_minus_L_CXX=no
19129hardcode_shlibpath_var_CXX=unsupported
19130hardcode_automatic_CXX=no
19131inherit_rpath_CXX=no
19132module_cmds_CXX=
19133module_expsym_cmds_CXX=
19134link_all_deplibs_CXX=unknown
19135old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000019136reload_flag_CXX=$reload_flag
19137reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000019138no_undefined_flag_CXX=
19139whole_archive_flag_spec_CXX=
19140enable_shared_with_static_runtimes_CXX=no
19141
19142# Source file extension for C++ test sources.
19143ac_ext=cpp
19144
19145# Object file extension for compiled C++ test sources.
19146objext=o
19147objext_CXX=$objext
19148
19149# No sense in running all these tests if we already determined that
19150# the CXX compiler isn't working. Some variables (like enable_shared)
19151# are currently assumed to apply to all compilers on this platform,
19152# and will be corrupted by setting them based on a non-working compiler.
Cristy15f22012015-11-14 17:51:30 -050019153if test yes != "$_lt_caught_CXX_error"; then
cristy73bd4a52010-10-05 11:24:23 +000019154 # Code to be used in simple compile tests
19155 lt_simple_compile_test_code="int some_variable = 0;"
19156
19157 # Code to be used in simple link tests
19158 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19159
19160 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19161
19162
19163
19164
19165
19166
19167# If no C compiler was specified, use CC.
19168LTCC=${LTCC-"$CC"}
19169
19170# If no C compiler flags were specified, use CFLAGS.
19171LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19172
19173# Allow CC to be a program name with arguments.
19174compiler=$CC
19175
19176
19177 # save warnings/boilerplate of simple test code
19178 ac_outfile=conftest.$ac_objext
19179echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19180eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19181_lt_compiler_boilerplate=`cat conftest.err`
19182$RM conftest*
19183
19184 ac_outfile=conftest.$ac_objext
19185echo "$lt_simple_link_test_code" >conftest.$ac_ext
19186eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19187_lt_linker_boilerplate=`cat conftest.err`
19188$RM -r conftest*
19189
19190
19191 # Allow CC to be a program name with arguments.
19192 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000019193 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019194 lt_save_LD=$LD
19195 lt_save_GCC=$GCC
19196 GCC=$GXX
19197 lt_save_with_gnu_ld=$with_gnu_ld
19198 lt_save_path_LD=$lt_cv_path_LD
19199 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19200 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19201 else
19202 $as_unset lt_cv_prog_gnu_ld
19203 fi
19204 if test -n "${lt_cv_path_LDCXX+set}"; then
19205 lt_cv_path_LD=$lt_cv_path_LDCXX
19206 else
19207 $as_unset lt_cv_path_LD
19208 fi
19209 test -z "${LDCXX+set}" || LD=$LDCXX
19210 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000019211 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019212 compiler=$CC
19213 compiler_CXX=$CC
Cristy15f22012015-11-14 17:51:30 -050019214 func_cc_basename $compiler
19215cc_basename=$func_cc_basename_result
cristy73bd4a52010-10-05 11:24:23 +000019216
19217
19218 if test -n "$compiler"; then
19219 # We don't want -fno-exception when compiling C++ code, so set the
19220 # no_builtin_flag separately
Cristy15f22012015-11-14 17:51:30 -050019221 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000019222 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19223 else
19224 lt_prog_compiler_no_builtin_flag_CXX=
19225 fi
19226
Cristy15f22012015-11-14 17:51:30 -050019227 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000019228 # Set up default GNU C++ configuration
19229
19230
19231
19232# Check whether --with-gnu-ld was given.
19233if test "${with_gnu_ld+set}" = set; then :
Cristy15f22012015-11-14 17:51:30 -050019234 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cristy73bd4a52010-10-05 11:24:23 +000019235else
19236 with_gnu_ld=no
19237fi
19238
19239ac_prog=ld
Cristy15f22012015-11-14 17:51:30 -050019240if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000019241 # Check if gcc -print-prog-name=ld gives a path.
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19243$as_echo_n "checking for ld used by $CC... " >&6; }
19244 case $host in
19245 *-*-mingw*)
Cristy15f22012015-11-14 17:51:30 -050019246 # gcc leaves a trailing carriage return, which upsets mingw
cristy73bd4a52010-10-05 11:24:23 +000019247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19248 *)
19249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19250 esac
19251 case $ac_prog in
19252 # Accept absolute paths.
19253 [\\/]* | ?:[\\/]*)
19254 re_direlt='/[^/][^/]*/\.\./'
19255 # Canonicalize the pathname of ld
19256 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19257 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19258 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19259 done
Cristy15f22012015-11-14 17:51:30 -050019260 test -z "$LD" && LD=$ac_prog
cristy73bd4a52010-10-05 11:24:23 +000019261 ;;
19262 "")
19263 # If it fails, then pretend we aren't using GCC.
19264 ac_prog=ld
19265 ;;
19266 *)
19267 # If it is relative, then search for the first ld in PATH.
19268 with_gnu_ld=unknown
19269 ;;
19270 esac
Cristy15f22012015-11-14 17:51:30 -050019271elif test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000019272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19273$as_echo_n "checking for GNU ld... " >&6; }
19274else
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19276$as_echo_n "checking for non-GNU ld... " >&6; }
19277fi
cristyda16f162011-02-19 23:52:17 +000019278if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019279 $as_echo_n "(cached) " >&6
19280else
19281 if test -z "$LD"; then
Cristy15f22012015-11-14 17:51:30 -050019282 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000019283 for ac_dir in $PATH; do
Cristy15f22012015-11-14 17:51:30 -050019284 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000019285 test -z "$ac_dir" && ac_dir=.
19286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Cristy15f22012015-11-14 17:51:30 -050019287 lt_cv_path_LD=$ac_dir/$ac_prog
cristy73bd4a52010-10-05 11:24:23 +000019288 # Check to see if the program is GNU ld. I'd rather use --version,
19289 # but apparently some variants of GNU ld only accept -v.
19290 # Break only if it was the GNU/non-GNU ld that we prefer.
19291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19292 *GNU* | *'with BFD'*)
Cristy15f22012015-11-14 17:51:30 -050019293 test no != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +000019294 ;;
19295 *)
Cristy15f22012015-11-14 17:51:30 -050019296 test yes != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +000019297 ;;
19298 esac
19299 fi
19300 done
Cristy15f22012015-11-14 17:51:30 -050019301 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000019302else
Cristy15f22012015-11-14 17:51:30 -050019303 lt_cv_path_LD=$LD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000019304fi
19305fi
19306
Cristy15f22012015-11-14 17:51:30 -050019307LD=$lt_cv_path_LD
cristy73bd4a52010-10-05 11:24:23 +000019308if test -n "$LD"; then
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19310$as_echo "$LD" >&6; }
19311else
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19313$as_echo "no" >&6; }
19314fi
cristy98dddb52010-11-04 00:30:15 +000019315test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000019316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19317$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019318if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019319 $as_echo_n "(cached) " >&6
19320else
19321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
19322case `$LD -v 2>&1 </dev/null` in
19323*GNU* | *'with BFD'*)
19324 lt_cv_prog_gnu_ld=yes
19325 ;;
19326*)
19327 lt_cv_prog_gnu_ld=no
19328 ;;
19329esac
19330fi
19331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19332$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19333with_gnu_ld=$lt_cv_prog_gnu_ld
19334
19335
19336
19337
19338
19339
19340
19341 # Check if GNU C++ uses GNU ld as the underlying linker, since the
19342 # archiving commands below assume that GNU ld is being used.
Cristy15f22012015-11-14 17:51:30 -050019343 if test yes = "$with_gnu_ld"; then
19344 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19345 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 +000019346
Cristy15f22012015-11-14 17:51:30 -050019347 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19348 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000019349
19350 # If archive_cmds runs LD, not CC, wlarc should be empty
19351 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19352 # investigate it a little bit more. (MM)
Cristy15f22012015-11-14 17:51:30 -050019353 wlarc='$wl'
cristy73bd4a52010-10-05 11:24:23 +000019354
19355 # ancient GNU ld didn't support --whole-archive et. al.
19356 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19357 $GREP 'no-whole-archive' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050019358 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000019359 else
19360 whole_archive_flag_spec_CXX=
19361 fi
19362 else
19363 with_gnu_ld=no
19364 wlarc=
19365
19366 # A generic and very simple default shared library creation
19367 # command for GNU C++ for the case where it uses the native
19368 # linker, instead of GNU ld. If possible, this setting should
19369 # overridden to take advantage of the native linker features on
19370 # the platform it is being used on.
19371 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19372 fi
19373
19374 # Commands to make compiler produce verbose output that lists
19375 # what "hidden" libraries, object files and flags are used when
19376 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000019377 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000019378
19379 else
19380 GXX=no
19381 with_gnu_ld=no
19382 wlarc=
19383 fi
19384
19385 # PORTME: fill in a description of your system's C++ link characteristics
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19387$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19388 ld_shlibs_CXX=yes
19389 case $host_os in
19390 aix3*)
19391 # FIXME: insert proper C++ library support
19392 ld_shlibs_CXX=no
19393 ;;
19394 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050019395 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000019396 # On IA64, the linker does run time linking by default, so we don't
19397 # have to do anything special.
19398 aix_use_runtimelinking=no
19399 exp_sym_flag='-Bexport'
Cristy15f22012015-11-14 17:51:30 -050019400 no_entry_flag=
cristy73bd4a52010-10-05 11:24:23 +000019401 else
19402 aix_use_runtimelinking=no
19403
19404 # Test if we are trying to use run time linking or normal
19405 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Cristy15f22012015-11-14 17:51:30 -050019406 # have runtime linking enabled, and use it for executables.
19407 # For shared libraries, we enable/disable runtime linking
19408 # depending on the kind of the shared library created -
19409 # when "with_aix_soname,aix_use_runtimelinking" is:
19410 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
19411 # "aix,yes" lib.so shared, rtl:yes, for executables
19412 # lib.a static archive
19413 # "both,no" lib.so.V(shr.o) shared, rtl:yes
19414 # lib.a(lib.so.V) shared, rtl:no, for executables
19415 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19416 # lib.a(lib.so.V) shared, rtl:no
19417 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
19418 # lib.a static archive
cristy73bd4a52010-10-05 11:24:23 +000019419 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19420 for ld_flag in $LDFLAGS; do
19421 case $ld_flag in
19422 *-brtl*)
19423 aix_use_runtimelinking=yes
19424 break
19425 ;;
19426 esac
19427 done
Cristy15f22012015-11-14 17:51:30 -050019428 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19429 # With aix-soname=svr4, we create the lib.so.V shared archives only,
19430 # so we don't have lib.a shared libs to link our executables.
19431 # We have to force runtime linking in this case.
19432 aix_use_runtimelinking=yes
19433 LDFLAGS="$LDFLAGS -Wl,-brtl"
19434 fi
cristy73bd4a52010-10-05 11:24:23 +000019435 ;;
19436 esac
19437
19438 exp_sym_flag='-bexport'
19439 no_entry_flag='-bnoentry'
19440 fi
19441
19442 # When large executables or shared objects are built, AIX ld can
19443 # have problems creating the table of contents. If linking a library
19444 # or program results in "error TOC overflow" add -mminimal-toc to
19445 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19446 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19447
19448 archive_cmds_CXX=''
19449 hardcode_direct_CXX=yes
19450 hardcode_direct_absolute_CXX=yes
19451 hardcode_libdir_separator_CXX=':'
19452 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019453 file_list_spec_CXX='$wl-f,'
19454 case $with_aix_soname,$aix_use_runtimelinking in
19455 aix,*) ;; # no import file
19456 svr4,* | *,yes) # use import file
19457 # The Import File defines what to hardcode.
19458 hardcode_direct_CXX=no
19459 hardcode_direct_absolute_CXX=no
19460 ;;
19461 esac
cristy73bd4a52010-10-05 11:24:23 +000019462
Cristy15f22012015-11-14 17:51:30 -050019463 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000019464 case $host_os in aix4.[012]|aix4.[012].*)
19465 # We only want to do this on AIX 4.2 and lower, the check
19466 # below for broken collect2 doesn't work under 4.3+
Cristy15f22012015-11-14 17:51:30 -050019467 collect2name=`$CC -print-prog-name=collect2`
cristy73bd4a52010-10-05 11:24:23 +000019468 if test -f "$collect2name" &&
19469 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19470 then
19471 # We have reworked collect2
19472 :
19473 else
19474 # We have old collect2
19475 hardcode_direct_CXX=unsupported
19476 # It fails to find uninstalled libraries when the uninstalled
19477 # path is not listed in the libpath. Setting hardcode_minus_L
19478 # to unsupported forces relinking
19479 hardcode_minus_L_CXX=yes
19480 hardcode_libdir_flag_spec_CXX='-L$libdir'
19481 hardcode_libdir_separator_CXX=
19482 fi
19483 esac
19484 shared_flag='-shared'
Cristy15f22012015-11-14 17:51:30 -050019485 if test yes = "$aix_use_runtimelinking"; then
19486 shared_flag=$shared_flag' $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019487 fi
Cristy15f22012015-11-14 17:51:30 -050019488 # Need to ensure runtime linking is disabled for the traditional
19489 # shared library, or the linker may eventually find shared libraries
19490 # /with/ Import File - we do not want to mix them.
19491 shared_flag_aix='-shared'
19492 shared_flag_svr4='-shared $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019493 else
19494 # not using gcc
Cristy15f22012015-11-14 17:51:30 -050019495 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000019496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19497 # chokes on -Wl,-G. The following line is correct:
19498 shared_flag='-G'
19499 else
Cristy15f22012015-11-14 17:51:30 -050019500 if test yes = "$aix_use_runtimelinking"; then
19501 shared_flag='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019502 else
Cristy15f22012015-11-14 17:51:30 -050019503 shared_flag='$wl-bM:SRE'
cristy73bd4a52010-10-05 11:24:23 +000019504 fi
Cristy15f22012015-11-14 17:51:30 -050019505 shared_flag_aix='$wl-bM:SRE'
19506 shared_flag_svr4='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000019507 fi
19508 fi
19509
Cristy15f22012015-11-14 17:51:30 -050019510 export_dynamic_flag_spec_CXX='$wl-bexpall'
cristy73bd4a52010-10-05 11:24:23 +000019511 # It seems that -bexpall does not export symbols beginning with
19512 # underscore (_), so it is better to generate a list of symbols to
19513 # export.
19514 always_export_symbols_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019515 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cristy73bd4a52010-10-05 11:24:23 +000019516 # Warning - without using the other runtime loading flags (-brtl),
19517 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050019518 # The "-G" linker flag allows undefined symbols.
19519 no_undefined_flag_CXX='-bernotok'
cristy73bd4a52010-10-05 11:24:23 +000019520 # Determine the default libpath from the value encoded in an empty
19521 # executable.
Cristy15f22012015-11-14 17:51:30 -050019522 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000019523 aix_libpath=$lt_cv_aix_libpath
19524else
19525 if ${lt_cv_aix_libpath__CXX+:} false; then :
19526 $as_echo_n "(cached) " >&6
19527else
19528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019529/* end confdefs.h. */
19530
19531int
19532main ()
19533{
19534
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539if ac_fn_cxx_try_link "$LINENO"; then :
19540
cristyda16f162011-02-19 23:52:17 +000019541 lt_aix_libpath_sed='
19542 /Import File Strings/,/^$/ {
19543 /^0/ {
19544 s/^0 *\([^ ]*\) *$/\1/
19545 p
19546 }
19547 }'
19548 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19549 # Check for a 64-bit object if we didn't find anything.
19550 if test -z "$lt_cv_aix_libpath__CXX"; then
19551 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19552 fi
cristy73bd4a52010-10-05 11:24:23 +000019553fi
19554rm -f core conftest.err conftest.$ac_objext \
19555 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000019556 if test -z "$lt_cv_aix_libpath__CXX"; then
Cristy15f22012015-11-14 17:51:30 -050019557 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000019558 fi
19559
19560fi
19561
19562 aix_libpath=$lt_cv_aix_libpath__CXX
19563fi
cristy73bd4a52010-10-05 11:24:23 +000019564
Cristy15f22012015-11-14 17:51:30 -050019565 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000019566
Cristy15f22012015-11-14 17:51:30 -050019567 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 +000019568 else
Cristy15f22012015-11-14 17:51:30 -050019569 if test ia64 = "$host_cpu"; then
19570 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
cristy73bd4a52010-10-05 11:24:23 +000019571 allow_undefined_flag_CXX="-z nodefs"
Cristy15f22012015-11-14 17:51:30 -050019572 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 +000019573 else
19574 # Determine the default libpath from the value encoded in an
19575 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050019576 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000019577 aix_libpath=$lt_cv_aix_libpath
19578else
19579 if ${lt_cv_aix_libpath__CXX+:} false; then :
19580 $as_echo_n "(cached) " >&6
19581else
19582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019583/* end confdefs.h. */
19584
19585int
19586main ()
19587{
19588
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593if ac_fn_cxx_try_link "$LINENO"; then :
19594
cristyda16f162011-02-19 23:52:17 +000019595 lt_aix_libpath_sed='
19596 /Import File Strings/,/^$/ {
19597 /^0/ {
19598 s/^0 *\([^ ]*\) *$/\1/
19599 p
19600 }
19601 }'
19602 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19603 # Check for a 64-bit object if we didn't find anything.
19604 if test -z "$lt_cv_aix_libpath__CXX"; then
19605 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19606 fi
cristy73bd4a52010-10-05 11:24:23 +000019607fi
19608rm -f core conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000019610 if test -z "$lt_cv_aix_libpath__CXX"; then
Cristy15f22012015-11-14 17:51:30 -050019611 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000019612 fi
19613
19614fi
19615
19616 aix_libpath=$lt_cv_aix_libpath__CXX
19617fi
cristy73bd4a52010-10-05 11:24:23 +000019618
Cristy15f22012015-11-14 17:51:30 -050019619 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000019620 # Warning - without using the other run time loading flags,
19621 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050019622 no_undefined_flag_CXX=' $wl-bernotok'
19623 allow_undefined_flag_CXX=' $wl-berok'
19624 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000019625 # We only use this code for GNU lds that support --whole-archive.
Cristy15f22012015-11-14 17:51:30 -050019626 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy0c60a692010-11-04 01:09:47 +000019627 else
19628 # Exported symbols can be pulled into shared objects from archives
19629 whole_archive_flag_spec_CXX='$convenience'
19630 fi
cristy73bd4a52010-10-05 11:24:23 +000019631 archive_cmds_need_lc_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019632 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19633 # -brtl affects multiple linker settings, -berok does not and is overridden later
19634 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19635 if test svr4 != "$with_aix_soname"; then
19636 # This is similar to how AIX traditionally builds its shared
19637 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19638 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'
19639 fi
19640 if test aix != "$with_aix_soname"; then
19641 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'
19642 else
19643 # used by -dlpreopen to get the symbols
19644 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
19645 fi
19646 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
cristy73bd4a52010-10-05 11:24:23 +000019647 fi
19648 fi
19649 ;;
19650
19651 beos*)
19652 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19653 allow_undefined_flag_CXX=unsupported
19654 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19655 # support --undefined. This deserves some investigation. FIXME
Cristy15f22012015-11-14 17:51:30 -050019656 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000019657 else
19658 ld_shlibs_CXX=no
19659 fi
19660 ;;
19661
19662 chorus*)
19663 case $cc_basename in
19664 *)
19665 # FIXME: insert proper C++ library support
19666 ld_shlibs_CXX=no
19667 ;;
19668 esac
19669 ;;
19670
19671 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019672 case $GXX,$cc_basename in
19673 ,cl* | no,cl*)
19674 # Native MSVC
19675 # hardcode_libdir_flag_spec is actually meaningless, as there is
19676 # no search path for DLLs.
19677 hardcode_libdir_flag_spec_CXX=' '
19678 allow_undefined_flag_CXX=unsupported
19679 always_export_symbols_CXX=yes
19680 file_list_spec_CXX='@'
19681 # Tell ltmain to make .lib files, not .a files.
19682 libext=lib
19683 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050019684 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000019685 # FIXME: Setting linknames here is a bad hack.
Cristy15f22012015-11-14 17:51:30 -050019686 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
19687 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19688 cp "$export_symbols" "$output_objdir/$soname.def";
19689 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
19690 else
19691 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
19692 fi~
19693 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
19694 linknames='
cristyda16f162011-02-19 23:52:17 +000019695 # The linker will not automatically build a static lib if we build a DLL.
19696 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
19697 enable_shared_with_static_runtimes_CXX=yes
19698 # Don't use ranlib
19699 old_postinstall_cmds_CXX='chmod 644 $oldlib'
19700 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Cristy15f22012015-11-14 17:51:30 -050019701 lt_tool_outputfile="@TOOL_OUTPUT@"~
19702 case $lt_outputfile in
19703 *.exe|*.EXE) ;;
19704 *)
19705 lt_outputfile=$lt_outputfile.exe
19706 lt_tool_outputfile=$lt_tool_outputfile.exe
19707 ;;
19708 esac~
19709 func_to_tool_file "$lt_outputfile"~
19710 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
19711 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
19712 $RM "$lt_outputfile.manifest";
19713 fi'
cristyda16f162011-02-19 23:52:17 +000019714 ;;
19715 *)
19716 # g++
19717 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
19718 # as there is no search path for DLLs.
19719 hardcode_libdir_flag_spec_CXX='-L$libdir'
Cristy15f22012015-11-14 17:51:30 -050019720 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
cristyda16f162011-02-19 23:52:17 +000019721 allow_undefined_flag_CXX=unsupported
19722 always_export_symbols_CXX=no
19723 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000019724
cristyda16f162011-02-19 23:52:17 +000019725 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050019726 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'
19727 # If the export-symbols file already is a .def file, use it as
19728 # is; otherwise, prepend EXPORTS...
19729 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
19730 cp $export_symbols $output_objdir/$soname.def;
19731 else
19732 echo EXPORTS > $output_objdir/$soname.def;
19733 cat $export_symbols >> $output_objdir/$soname.def;
19734 fi~
19735 $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 +000019736 else
19737 ld_shlibs_CXX=no
19738 fi
19739 ;;
19740 esac
19741 ;;
cristy73bd4a52010-10-05 11:24:23 +000019742 darwin* | rhapsody*)
19743
19744
19745 archive_cmds_need_lc_CXX=no
19746 hardcode_direct_CXX=no
19747 hardcode_automatic_CXX=yes
19748 hardcode_shlibpath_var_CXX=unsupported
Cristy15f22012015-11-14 17:51:30 -050019749 if test yes = "$lt_cv_ld_force_load"; then
19750 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 +000019751
cristy0c60a692010-11-04 01:09:47 +000019752 else
19753 whole_archive_flag_spec_CXX=''
19754 fi
cristy73bd4a52010-10-05 11:24:23 +000019755 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050019756 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
cristy73bd4a52010-10-05 11:24:23 +000019757 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050019758 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000019759 *) _lt_dar_can_shared=$GCC ;;
19760 esac
Cristy15f22012015-11-14 17:51:30 -050019761 if test yes = "$_lt_dar_can_shared"; then
cristy0c60a692010-11-04 01:09:47 +000019762 output_verbose_link_cmd=func_echo_all
Cristy15f22012015-11-14 17:51:30 -050019763 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"
19764 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
19765 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"
19766 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"
19767 if test yes != "$lt_cv_apple_cc_single_mod"; then
19768 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"
19769 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 +000019770 fi
19771
19772 else
19773 ld_shlibs_CXX=no
19774 fi
19775
19776 ;;
19777
Cristy15f22012015-11-14 17:51:30 -050019778 os2*)
19779 hardcode_libdir_flag_spec_CXX='-L$libdir'
19780 hardcode_minus_L_CXX=yes
19781 allow_undefined_flag_CXX=unsupported
19782 shrext_cmds=.dll
19783 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19784 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19785 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19786 $ECHO EXPORTS >> $output_objdir/$libname.def~
19787 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
19788 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19789 emximp -o $lib $output_objdir/$libname.def'
19790 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
19791 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
19792 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
19793 $ECHO EXPORTS >> $output_objdir/$libname.def~
19794 prefix_cmds="$SED"~
19795 if test EXPORTS = "`$SED 1q $export_symbols`"; then
19796 prefix_cmds="$prefix_cmds -e 1d";
19797 fi~
19798 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
19799 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
19800 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
19801 emximp -o $lib $output_objdir/$libname.def'
19802 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
19803 enable_shared_with_static_runtimes_CXX=yes
19804 ;;
19805
cristy73bd4a52010-10-05 11:24:23 +000019806 dgux*)
19807 case $cc_basename in
19808 ec++*)
19809 # FIXME: insert proper C++ library support
19810 ld_shlibs_CXX=no
19811 ;;
19812 ghcx*)
19813 # Green Hills C++ Compiler
19814 # FIXME: insert proper C++ library support
19815 ld_shlibs_CXX=no
19816 ;;
19817 *)
19818 # FIXME: insert proper C++ library support
19819 ld_shlibs_CXX=no
19820 ;;
19821 esac
19822 ;;
19823
cristy99bd5232011-12-07 14:38:20 +000019824 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019825 # C++ shared libraries reported to be fairly broken before
19826 # switch to ELF
19827 ld_shlibs_CXX=no
19828 ;;
19829
19830 freebsd-elf*)
19831 archive_cmds_need_lc_CXX=no
19832 ;;
19833
19834 freebsd* | dragonfly*)
19835 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
19836 # conventions
19837 ld_shlibs_CXX=yes
19838 ;;
19839
cristy0c60a692010-11-04 01:09:47 +000019840 haiku*)
Cristy15f22012015-11-14 17:51:30 -050019841 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy0c60a692010-11-04 01:09:47 +000019842 link_all_deplibs_CXX=yes
19843 ;;
19844
cristy73bd4a52010-10-05 11:24:23 +000019845 hpux9*)
Cristy15f22012015-11-14 17:51:30 -050019846 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000019847 hardcode_libdir_separator_CXX=:
Cristy15f22012015-11-14 17:51:30 -050019848 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000019849 hardcode_direct_CXX=yes
19850 hardcode_minus_L_CXX=yes # Not in the search PATH,
19851 # but as the default
19852 # location of the library.
19853
19854 case $cc_basename in
19855 CC*)
19856 # FIXME: insert proper C++ library support
19857 ld_shlibs_CXX=no
19858 ;;
19859 aCC*)
Cristy15f22012015-11-14 17:51:30 -050019860 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 +000019861 # Commands to make compiler produce verbose output that lists
19862 # what "hidden" libraries, object files and flags are used when
19863 # linking a shared library.
19864 #
19865 # There doesn't appear to be a way to prevent this compiler from
19866 # explicitly linking system object files so we need to strip them
19867 # from the output so that they don't get included in the library
19868 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050019869 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 +000019870 ;;
19871 *)
Cristy15f22012015-11-14 17:51:30 -050019872 if test yes = "$GXX"; then
19873 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 +000019874 else
19875 # FIXME: insert proper C++ library support
19876 ld_shlibs_CXX=no
19877 fi
19878 ;;
19879 esac
19880 ;;
19881
19882 hpux10*|hpux11*)
Cristy15f22012015-11-14 17:51:30 -050019883 if test no = "$with_gnu_ld"; then
19884 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000019885 hardcode_libdir_separator_CXX=:
19886
19887 case $host_cpu in
19888 hppa*64*|ia64*)
19889 ;;
19890 *)
Cristy15f22012015-11-14 17:51:30 -050019891 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000019892 ;;
19893 esac
19894 fi
19895 case $host_cpu in
19896 hppa*64*|ia64*)
19897 hardcode_direct_CXX=no
19898 hardcode_shlibpath_var_CXX=no
19899 ;;
19900 *)
19901 hardcode_direct_CXX=yes
19902 hardcode_direct_absolute_CXX=yes
19903 hardcode_minus_L_CXX=yes # Not in the search PATH,
19904 # but as the default
19905 # location of the library.
19906 ;;
19907 esac
19908
19909 case $cc_basename in
19910 CC*)
19911 # FIXME: insert proper C++ library support
19912 ld_shlibs_CXX=no
19913 ;;
19914 aCC*)
19915 case $host_cpu in
19916 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050019917 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 +000019918 ;;
19919 ia64*)
Cristy15f22012015-11-14 17:51:30 -050019920 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 +000019921 ;;
19922 *)
Cristy15f22012015-11-14 17:51:30 -050019923 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 +000019924 ;;
19925 esac
19926 # Commands to make compiler produce verbose output that lists
19927 # what "hidden" libraries, object files and flags are used when
19928 # linking a shared library.
19929 #
19930 # There doesn't appear to be a way to prevent this compiler from
19931 # explicitly linking system object files so we need to strip them
19932 # from the output so that they don't get included in the library
19933 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050019934 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 +000019935 ;;
19936 *)
Cristy15f22012015-11-14 17:51:30 -050019937 if test yes = "$GXX"; then
19938 if test no = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000019939 case $host_cpu in
19940 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050019941 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 +000019942 ;;
19943 ia64*)
Cristy15f22012015-11-14 17:51:30 -050019944 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 +000019945 ;;
19946 *)
Cristy15f22012015-11-14 17:51:30 -050019947 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 +000019948 ;;
19949 esac
19950 fi
19951 else
19952 # FIXME: insert proper C++ library support
19953 ld_shlibs_CXX=no
19954 fi
19955 ;;
19956 esac
19957 ;;
19958
19959 interix[3-9]*)
19960 hardcode_direct_CXX=no
19961 hardcode_shlibpath_var_CXX=no
Cristy15f22012015-11-14 17:51:30 -050019962 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
19963 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000019964 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19965 # Instead, shared libraries are loaded at an image base (0x10000000 by
19966 # default) and relocated if they conflict, which is a slow very memory
19967 # consuming and fragmenting process. To avoid this, we pick a random,
19968 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19969 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Cristy15f22012015-11-14 17:51:30 -050019970 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'
19971 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 +000019972 ;;
19973 irix5* | irix6*)
19974 case $cc_basename in
19975 CC*)
19976 # SGI C++
Cristy15f22012015-11-14 17:51:30 -050019977 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 +000019978
19979 # Archives containing C++ object files must be created using
19980 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19981 # necessary to make sure instantiated templates are included
19982 # in the archive.
19983 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19984 ;;
19985 *)
Cristy15f22012015-11-14 17:51:30 -050019986 if test yes = "$GXX"; then
19987 if test no = "$with_gnu_ld"; then
19988 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 +000019989 else
Cristy15f22012015-11-14 17:51:30 -050019990 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 +000019991 fi
19992 fi
19993 link_all_deplibs_CXX=yes
19994 ;;
19995 esac
Cristy15f22012015-11-14 17:51:30 -050019996 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000019997 hardcode_libdir_separator_CXX=:
19998 inherit_rpath_CXX=yes
19999 ;;
20000
Cristy15f22012015-11-14 17:51:30 -050020001 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000020002 case $cc_basename in
20003 KCC*)
20004 # Kuck and Associates, Inc. (KAI) C++ Compiler
20005
20006 # KCC will only create a shared library if the output file
20007 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20008 # to its proper name (with version) after linking.
Cristy15f22012015-11-14 17:51:30 -050020009 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'
20010 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 +000020011 # Commands to make compiler produce verbose output that lists
20012 # what "hidden" libraries, object files and flags are used when
20013 # linking a shared library.
20014 #
20015 # There doesn't appear to be a way to prevent this compiler from
20016 # explicitly linking system object files so we need to strip them
20017 # from the output so that they don't get included in the library
20018 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050020019 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 +000020020
Cristy15f22012015-11-14 17:51:30 -050020021 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20022 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000020023
20024 # Archives containing C++ object files must be created using
20025 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20026 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20027 ;;
20028 icpc* | ecpc* )
20029 # Intel C++
20030 with_gnu_ld=yes
20031 # version 8.0 and above of icpc choke on multiply defined symbols
20032 # if we add $predep_objects and $postdep_objects, however 7.1 and
20033 # earlier do not add the objects themselves.
20034 case `$CC -V 2>&1` in
20035 *"Version 7."*)
Cristy15f22012015-11-14 17:51:30 -050020036 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20037 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 +000020038 ;;
20039 *) # Version 8.0 or newer
20040 tmp_idyn=
20041 case $host_cpu in
20042 ia64*) tmp_idyn=' -i_dynamic';;
20043 esac
Cristy15f22012015-11-14 17:51:30 -050020044 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20045 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 +000020046 ;;
20047 esac
20048 archive_cmds_need_lc_CXX=no
Cristy15f22012015-11-14 17:51:30 -050020049 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20050 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20051 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000020052 ;;
20053 pgCC* | pgcpp*)
20054 # Portland Group C++ compiler
20055 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000020056 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000020057 prelink_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050020058 rm -rf $tpldir~
20059 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20060 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000020061 old_archive_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050020062 rm -rf $tpldir~
20063 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20064 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20065 $RANLIB $oldlib'
cristy73bd4a52010-10-05 11:24:23 +000020066 archive_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050020067 rm -rf $tpldir~
20068 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20069 $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 +000020070 archive_expsym_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050020071 rm -rf $tpldir~
20072 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20073 $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 +000020074 ;;
cristy0c60a692010-11-04 01:09:47 +000020075 *) # Version 6 and above use weak symbols
Cristy15f22012015-11-14 17:51:30 -050020076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20077 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 +000020078 ;;
20079 esac
20080
Cristy15f22012015-11-14 17:51:30 -050020081 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20082 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20083 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 +000020084 ;;
20085 cxx*)
20086 # Compaq C++
Cristy15f22012015-11-14 17:51:30 -050020087 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20088 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 +000020089
20090 runpath_var=LD_RUN_PATH
20091 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20092 hardcode_libdir_separator_CXX=:
20093
20094 # Commands to make compiler produce verbose output that lists
20095 # what "hidden" libraries, object files and flags are used when
20096 # linking a shared library.
20097 #
20098 # There doesn't appear to be a way to prevent this compiler from
20099 # explicitly linking system object files so we need to strip them
20100 # from the output so that they don't get included in the library
20101 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050020102 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 +000020103 ;;
cristy0c60a692010-11-04 01:09:47 +000020104 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000020105 # IBM XL 8.0 on PPC, with GNU ld
Cristy15f22012015-11-14 17:51:30 -050020106 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20107 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20108 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20109 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000020110 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050020111 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20112 echo "local: *; };" >> $output_objdir/$libname.ver~
20113 $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 +000020114 fi
20115 ;;
20116 *)
20117 case `$CC -V 2>&1 | sed 5q` in
20118 *Sun\ C*)
20119 # Sun C++ 5.9
20120 no_undefined_flag_CXX=' -zdefs'
Cristy15f22012015-11-14 17:51:30 -050020121 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20122 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 +000020123 hardcode_libdir_flag_spec_CXX='-R$libdir'
Cristy15f22012015-11-14 17:51:30 -050020124 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 +000020125 compiler_needs_object_CXX=yes
20126
20127 # Not sure whether something based on
20128 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20129 # would be better.
cristy0c60a692010-11-04 01:09:47 +000020130 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000020131
20132 # Archives containing C++ object files must be created using
20133 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20134 # necessary to make sure instantiated templates are included
20135 # in the archive.
20136 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20137 ;;
20138 esac
20139 ;;
20140 esac
20141 ;;
20142
20143 lynxos*)
20144 # FIXME: insert proper C++ library support
20145 ld_shlibs_CXX=no
20146 ;;
20147
20148 m88k*)
20149 # FIXME: insert proper C++ library support
20150 ld_shlibs_CXX=no
20151 ;;
20152
20153 mvs*)
20154 case $cc_basename in
20155 cxx*)
20156 # FIXME: insert proper C++ library support
20157 ld_shlibs_CXX=no
20158 ;;
20159 *)
20160 # FIXME: insert proper C++ library support
20161 ld_shlibs_CXX=no
20162 ;;
20163 esac
20164 ;;
20165
20166 netbsd*)
20167 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20168 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20169 wlarc=
20170 hardcode_libdir_flag_spec_CXX='-R$libdir'
20171 hardcode_direct_CXX=yes
20172 hardcode_shlibpath_var_CXX=no
20173 fi
20174 # Workaround some broken pre-1.5 toolchains
20175 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20176 ;;
20177
20178 *nto* | *qnx*)
20179 ld_shlibs_CXX=yes
20180 ;;
20181
Cristy15f22012015-11-14 17:51:30 -050020182 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000020183 if test -f /usr/libexec/ld.so; then
20184 hardcode_direct_CXX=yes
20185 hardcode_shlibpath_var_CXX=no
20186 hardcode_direct_absolute_CXX=yes
20187 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Cristy15f22012015-11-14 17:51:30 -050020188 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20189 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20190 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20191 export_dynamic_flag_spec_CXX='$wl-E'
20192 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000020193 fi
cristy0c60a692010-11-04 01:09:47 +000020194 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000020195 else
20196 ld_shlibs_CXX=no
20197 fi
20198 ;;
20199
20200 osf3* | osf4* | osf5*)
20201 case $cc_basename in
20202 KCC*)
20203 # Kuck and Associates, Inc. (KAI) C++ Compiler
20204
20205 # KCC will only create a shared library if the output file
20206 # ends with ".so" (or ".sl" for HP-UX), so rename the library
20207 # to its proper name (with version) after linking.
Cristy15f22012015-11-14 17:51:30 -050020208 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 +000020209
Cristy15f22012015-11-14 17:51:30 -050020210 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020211 hardcode_libdir_separator_CXX=:
20212
20213 # Archives containing C++ object files must be created using
20214 # the KAI C++ compiler.
20215 case $host in
20216 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20217 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20218 esac
20219 ;;
20220 RCC*)
20221 # Rational C++ 2.4.1
20222 # FIXME: insert proper C++ library support
20223 ld_shlibs_CXX=no
20224 ;;
20225 cxx*)
20226 case $host in
20227 osf3*)
Cristy15f22012015-11-14 17:51:30 -050020228 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20229 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'
20230 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020231 ;;
20232 *)
20233 allow_undefined_flag_CXX=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050020234 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 +000020235 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 -050020236 echo "-hidden">> $lib.exp~
20237 $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~
20238 $RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000020239 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20240 ;;
20241 esac
20242
20243 hardcode_libdir_separator_CXX=:
20244
20245 # Commands to make compiler produce verbose output that lists
20246 # what "hidden" libraries, object files and flags are used when
20247 # linking a shared library.
20248 #
20249 # There doesn't appear to be a way to prevent this compiler from
20250 # explicitly linking system object files so we need to strip them
20251 # from the output so that they don't get included in the library
20252 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050020253 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 +000020254 ;;
20255 *)
Cristy15f22012015-11-14 17:51:30 -050020256 if test yes,no = "$GXX,$with_gnu_ld"; then
20257 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
cristy73bd4a52010-10-05 11:24:23 +000020258 case $host in
20259 osf3*)
Cristy15f22012015-11-14 17:51:30 -050020260 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 +000020261 ;;
20262 *)
Cristy15f22012015-11-14 17:51:30 -050020263 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 +000020264 ;;
20265 esac
20266
Cristy15f22012015-11-14 17:51:30 -050020267 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020268 hardcode_libdir_separator_CXX=:
20269
20270 # Commands to make compiler produce verbose output that lists
20271 # what "hidden" libraries, object files and flags are used when
20272 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020274
20275 else
20276 # FIXME: insert proper C++ library support
20277 ld_shlibs_CXX=no
20278 fi
20279 ;;
20280 esac
20281 ;;
20282
20283 psos*)
20284 # FIXME: insert proper C++ library support
20285 ld_shlibs_CXX=no
20286 ;;
20287
20288 sunos4*)
20289 case $cc_basename in
20290 CC*)
20291 # Sun C++ 4.x
20292 # FIXME: insert proper C++ library support
20293 ld_shlibs_CXX=no
20294 ;;
20295 lcc*)
20296 # Lucid
20297 # FIXME: insert proper C++ library support
20298 ld_shlibs_CXX=no
20299 ;;
20300 *)
20301 # FIXME: insert proper C++ library support
20302 ld_shlibs_CXX=no
20303 ;;
20304 esac
20305 ;;
20306
20307 solaris*)
20308 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020309 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020310 # Sun C++ 4.2, 5.x and Centerline C++
20311 archive_cmds_need_lc_CXX=yes
20312 no_undefined_flag_CXX=' -zdefs'
Cristy15f22012015-11-14 17:51:30 -050020313 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 +000020314 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 -050020315 $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 +000020316
20317 hardcode_libdir_flag_spec_CXX='-R$libdir'
20318 hardcode_shlibpath_var_CXX=no
20319 case $host_os in
20320 solaris2.[0-5] | solaris2.[0-5].*) ;;
20321 *)
20322 # The compiler driver will combine and reorder linker options,
Cristy15f22012015-11-14 17:51:30 -050020323 # but understands '-z linker_flag'.
cristy73bd4a52010-10-05 11:24:23 +000020324 # Supported since Solaris 2.6 (maybe 2.5.1?)
20325 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20326 ;;
20327 esac
20328 link_all_deplibs_CXX=yes
20329
cristy0c60a692010-11-04 01:09:47 +000020330 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000020331
20332 # Archives containing C++ object files must be created using
20333 # "CC -xar", where "CC" is the Sun C++ compiler. This is
20334 # necessary to make sure instantiated templates are included
20335 # in the archive.
20336 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20337 ;;
20338 gcx*)
20339 # Green Hills C++ Compiler
Cristy15f22012015-11-14 17:51:30 -050020340 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 +000020341
20342 # The C++ compiler must be used to create the archive.
20343 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20344 ;;
20345 *)
20346 # GNU C++ compiler with Solaris linker
Cristy15f22012015-11-14 17:51:30 -050020347 if test yes,no = "$GXX,$with_gnu_ld"; then
20348 no_undefined_flag_CXX=' $wl-z ${wl}defs'
cristy73bd4a52010-10-05 11:24:23 +000020349 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050020350 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 +000020351 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 -050020352 $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 +000020353
20354 # Commands to make compiler produce verbose output that lists
20355 # what "hidden" libraries, object files and flags are used when
20356 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020357 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020358 else
Cristy15f22012015-11-14 17:51:30 -050020359 # g++ 2.7 appears to require '-G' NOT '-shared' on this
cristy73bd4a52010-10-05 11:24:23 +000020360 # platform.
Cristy15f22012015-11-14 17:51:30 -050020361 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 +000020362 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 -050020363 $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 +000020364
20365 # Commands to make compiler produce verbose output that lists
20366 # what "hidden" libraries, object files and flags are used when
20367 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020368 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020369 fi
20370
Cristy15f22012015-11-14 17:51:30 -050020371 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020372 case $host_os in
20373 solaris2.[0-5] | solaris2.[0-5].*) ;;
20374 *)
Cristy15f22012015-11-14 17:51:30 -050020375 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cristy73bd4a52010-10-05 11:24:23 +000020376 ;;
20377 esac
20378 fi
20379 ;;
20380 esac
20381 ;;
20382
20383 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Cristy15f22012015-11-14 17:51:30 -050020384 no_undefined_flag_CXX='$wl-z,text'
cristy73bd4a52010-10-05 11:24:23 +000020385 archive_cmds_need_lc_CXX=no
20386 hardcode_shlibpath_var_CXX=no
20387 runpath_var='LD_RUN_PATH'
20388
20389 case $cc_basename in
20390 CC*)
Cristy15f22012015-11-14 17:51:30 -050020391 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20392 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 +000020393 ;;
20394 *)
Cristy15f22012015-11-14 17:51:30 -050020395 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20396 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 +000020397 ;;
20398 esac
20399 ;;
20400
20401 sysv5* | sco3.2v5* | sco5v6*)
Cristy15f22012015-11-14 17:51:30 -050020402 # Note: We CANNOT use -z defs as we might desire, because we do not
cristy73bd4a52010-10-05 11:24:23 +000020403 # link with -lc, and that would cause any symbols used from libc to
20404 # always be unresolved, which means just about no library would
20405 # ever link correctly. If we're not using GNU ld we use -z text
20406 # though, which does catch some bad symbols but isn't as heavy-handed
20407 # as -z defs.
Cristy15f22012015-11-14 17:51:30 -050020408 no_undefined_flag_CXX='$wl-z,text'
20409 allow_undefined_flag_CXX='$wl-z,nodefs'
cristy73bd4a52010-10-05 11:24:23 +000020410 archive_cmds_need_lc_CXX=no
20411 hardcode_shlibpath_var_CXX=no
Cristy15f22012015-11-14 17:51:30 -050020412 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000020413 hardcode_libdir_separator_CXX=':'
20414 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050020415 export_dynamic_flag_spec_CXX='$wl-Bexport'
cristy73bd4a52010-10-05 11:24:23 +000020416 runpath_var='LD_RUN_PATH'
20417
20418 case $cc_basename in
20419 CC*)
Cristy15f22012015-11-14 17:51:30 -050020420 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20421 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 +000020422 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Cristy15f22012015-11-14 17:51:30 -050020423 '"$old_archive_cmds_CXX"
cristy0c60a692010-11-04 01:09:47 +000020424 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Cristy15f22012015-11-14 17:51:30 -050020425 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000020426 ;;
20427 *)
Cristy15f22012015-11-14 17:51:30 -050020428 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20429 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 +000020430 ;;
20431 esac
20432 ;;
20433
20434 tandem*)
20435 case $cc_basename in
20436 NCC*)
20437 # NonStop-UX NCC 3.20
20438 # FIXME: insert proper C++ library support
20439 ld_shlibs_CXX=no
20440 ;;
20441 *)
20442 # FIXME: insert proper C++ library support
20443 ld_shlibs_CXX=no
20444 ;;
20445 esac
20446 ;;
20447
20448 vxworks*)
20449 # FIXME: insert proper C++ library support
20450 ld_shlibs_CXX=no
20451 ;;
20452
20453 *)
20454 # FIXME: insert proper C++ library support
20455 ld_shlibs_CXX=no
20456 ;;
20457 esac
20458
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20460$as_echo "$ld_shlibs_CXX" >&6; }
Cristy15f22012015-11-14 17:51:30 -050020461 test no = "$ld_shlibs_CXX" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000020462
Cristy15f22012015-11-14 17:51:30 -050020463 GCC_CXX=$GXX
20464 LD_CXX=$LD
cristy73bd4a52010-10-05 11:24:23 +000020465
20466 ## CAVEAT EMPTOR:
20467 ## There is no encapsulation within the following macros, do not change
20468 ## the running order or otherwise move them around unless you know exactly
20469 ## what you are doing...
20470 # Dependencies to place before and after the object being linked:
20471predep_objects_CXX=
20472postdep_objects_CXX=
20473predeps_CXX=
20474postdeps_CXX=
20475compiler_lib_search_path_CXX=
20476
20477cat > conftest.$ac_ext <<_LT_EOF
20478class Foo
20479{
20480public:
20481 Foo (void) { a = 0; }
20482private:
20483 int a;
20484};
20485_LT_EOF
20486
cristyda16f162011-02-19 23:52:17 +000020487
20488_lt_libdeps_save_CFLAGS=$CFLAGS
20489case "$CC $CFLAGS " in #(
20490*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20491*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000020492*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000020493esac
20494
cristy73bd4a52010-10-05 11:24:23 +000020495if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20496 (eval $ac_compile) 2>&5
20497 ac_status=$?
20498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20499 test $ac_status = 0; }; then
20500 # Parse the compiler output and extract the necessary
20501 # objects, libraries and library flags.
20502
20503 # Sentinel used to keep track of whether or not we are before
20504 # the conftest object file.
20505 pre_test_object_deps_done=no
20506
20507 for p in `eval "$output_verbose_link_cmd"`; do
Cristy15f22012015-11-14 17:51:30 -050020508 case $prev$p in
cristy73bd4a52010-10-05 11:24:23 +000020509
20510 -L* | -R* | -l*)
20511 # Some compilers place space between "-{L,R}" and the path.
20512 # Remove the space.
Cristy15f22012015-11-14 17:51:30 -050020513 if test x-L = "$p" ||
20514 test x-R = "$p"; then
cristy73bd4a52010-10-05 11:24:23 +000020515 prev=$p
20516 continue
cristy73bd4a52010-10-05 11:24:23 +000020517 fi
20518
cristyda16f162011-02-19 23:52:17 +000020519 # Expand the sysroot to ease extracting the directories later.
20520 if test -z "$prev"; then
20521 case $p in
20522 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20523 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20524 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20525 esac
20526 fi
20527 case $p in
20528 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20529 esac
Cristy15f22012015-11-14 17:51:30 -050020530 if test no = "$pre_test_object_deps_done"; then
20531 case $prev in
cristyda16f162011-02-19 23:52:17 +000020532 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000020533 # Internal compiler library paths should come after those
20534 # provided the user. The postdeps already come after the
20535 # user supplied libs so there is no need to process them.
20536 if test -z "$compiler_lib_search_path_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020537 compiler_lib_search_path_CXX=$prev$p
cristy73bd4a52010-10-05 11:24:23 +000020538 else
Cristy15f22012015-11-14 17:51:30 -050020539 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
cristy73bd4a52010-10-05 11:24:23 +000020540 fi
20541 ;;
20542 # The "-l" case would never come before the object being
20543 # linked, so don't bother handling this case.
20544 esac
20545 else
20546 if test -z "$postdeps_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020547 postdeps_CXX=$prev$p
cristy73bd4a52010-10-05 11:24:23 +000020548 else
Cristy15f22012015-11-14 17:51:30 -050020549 postdeps_CXX="${postdeps_CXX} $prev$p"
cristy73bd4a52010-10-05 11:24:23 +000020550 fi
20551 fi
cristyda16f162011-02-19 23:52:17 +000020552 prev=
cristy73bd4a52010-10-05 11:24:23 +000020553 ;;
20554
cristyda16f162011-02-19 23:52:17 +000020555 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000020556 *.$objext)
20557 # This assumes that the test object file only shows up
20558 # once in the compiler output.
20559 if test "$p" = "conftest.$objext"; then
20560 pre_test_object_deps_done=yes
20561 continue
20562 fi
20563
Cristy15f22012015-11-14 17:51:30 -050020564 if test no = "$pre_test_object_deps_done"; then
cristy73bd4a52010-10-05 11:24:23 +000020565 if test -z "$predep_objects_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020566 predep_objects_CXX=$p
cristy73bd4a52010-10-05 11:24:23 +000020567 else
20568 predep_objects_CXX="$predep_objects_CXX $p"
20569 fi
20570 else
20571 if test -z "$postdep_objects_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020572 postdep_objects_CXX=$p
cristy73bd4a52010-10-05 11:24:23 +000020573 else
20574 postdep_objects_CXX="$postdep_objects_CXX $p"
20575 fi
20576 fi
20577 ;;
20578
20579 *) ;; # Ignore the rest.
20580
20581 esac
20582 done
20583
20584 # Clean up.
20585 rm -f a.out a.exe
20586else
20587 echo "libtool.m4: error: problem compiling CXX test program"
20588fi
20589
20590$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000020591CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020592
20593# PORTME: override above test on systems where it is broken
20594case $host_os in
20595interix[3-9]*)
20596 # Interix 3.5 installs completely hosed .la files for C++, so rather than
20597 # hack all around it, let's just trust "g++" to DTRT.
20598 predep_objects_CXX=
20599 postdep_objects_CXX=
20600 postdeps_CXX=
20601 ;;
cristy73bd4a52010-10-05 11:24:23 +000020602esac
20603
20604
20605case " $postdeps_CXX " in
20606*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20607esac
20608 compiler_lib_search_dirs_CXX=
20609if test -n "${compiler_lib_search_path_CXX}"; then
Cristy15f22012015-11-14 17:51:30 -050020610 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
cristy73bd4a52010-10-05 11:24:23 +000020611fi
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643 lt_prog_compiler_wl_CXX=
20644lt_prog_compiler_pic_CXX=
20645lt_prog_compiler_static_CXX=
20646
cristy73bd4a52010-10-05 11:24:23 +000020647
20648 # C++ specific cases for pic, static, wl, etc.
Cristy15f22012015-11-14 17:51:30 -050020649 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020650 lt_prog_compiler_wl_CXX='-Wl,'
20651 lt_prog_compiler_static_CXX='-static'
20652
20653 case $host_os in
20654 aix*)
20655 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050020656 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020657 # AIX 5 now supports IA64 processor
20658 lt_prog_compiler_static_CXX='-Bstatic'
20659 fi
Cristy15f22012015-11-14 17:51:30 -050020660 lt_prog_compiler_pic_CXX='-fPIC'
cristy73bd4a52010-10-05 11:24:23 +000020661 ;;
20662
20663 amigaos*)
20664 case $host_cpu in
20665 powerpc)
20666 # see comment about AmigaOS4 .so support
20667 lt_prog_compiler_pic_CXX='-fPIC'
20668 ;;
20669 m68k)
20670 # FIXME: we need at least 68020 code to build shared libraries, but
Cristy15f22012015-11-14 17:51:30 -050020671 # adding the '-m68020' flag to GCC prevents building anything better,
20672 # like '-m68040'.
cristy73bd4a52010-10-05 11:24:23 +000020673 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
20674 ;;
20675 esac
20676 ;;
20677
20678 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20679 # PIC is the default for these OSes.
20680 ;;
20681 mingw* | cygwin* | os2* | pw32* | cegcc*)
20682 # This hack is so that the source file can tell whether it is being
20683 # built for inclusion in a dll (and should export symbols for example).
20684 # Although the cygwin gcc ignores -fPIC, still need this for old-style
20685 # (--disable-auto-import) libraries
20686 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050020687 case $host_os in
20688 os2*)
20689 lt_prog_compiler_static_CXX='$wl-static'
20690 ;;
20691 esac
cristy73bd4a52010-10-05 11:24:23 +000020692 ;;
20693 darwin* | rhapsody*)
20694 # PIC is the default on this platform
20695 # Common symbols not allowed in MH_DYLIB files
20696 lt_prog_compiler_pic_CXX='-fno-common'
20697 ;;
20698 *djgpp*)
20699 # DJGPP does not support shared libraries at all
20700 lt_prog_compiler_pic_CXX=
20701 ;;
cristy0c60a692010-11-04 01:09:47 +000020702 haiku*)
20703 # PIC is the default for Haiku.
20704 # The "-static" flag exists, but is broken.
20705 lt_prog_compiler_static_CXX=
20706 ;;
cristy73bd4a52010-10-05 11:24:23 +000020707 interix[3-9]*)
20708 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
20709 # Instead, we relocate shared libraries at runtime.
20710 ;;
20711 sysv4*MP*)
20712 if test -d /usr/nec; then
20713 lt_prog_compiler_pic_CXX=-Kconform_pic
20714 fi
20715 ;;
20716 hpux*)
20717 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
20718 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
20719 # sets the default TLS model and affects inlining.
20720 case $host_cpu in
20721 hppa*64*)
20722 ;;
20723 *)
20724 lt_prog_compiler_pic_CXX='-fPIC'
20725 ;;
20726 esac
20727 ;;
20728 *qnx* | *nto*)
20729 # QNX uses GNU C++, but need to define -shared option too, otherwise
20730 # it will coredump.
20731 lt_prog_compiler_pic_CXX='-fPIC -shared'
20732 ;;
20733 *)
20734 lt_prog_compiler_pic_CXX='-fPIC'
20735 ;;
20736 esac
20737 else
20738 case $host_os in
20739 aix[4-9]*)
20740 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050020741 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020742 # AIX 5 now supports IA64 processor
20743 lt_prog_compiler_static_CXX='-Bstatic'
20744 else
20745 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
20746 fi
20747 ;;
20748 chorus*)
20749 case $cc_basename in
20750 cxch68*)
20751 # Green Hills C++ Compiler
20752 # _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"
20753 ;;
20754 esac
20755 ;;
cristyda16f162011-02-19 23:52:17 +000020756 mingw* | cygwin* | os2* | pw32* | cegcc*)
20757 # This hack is so that the source file can tell whether it is being
20758 # built for inclusion in a dll (and should export symbols for example).
20759 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
20760 ;;
cristy73bd4a52010-10-05 11:24:23 +000020761 dgux*)
20762 case $cc_basename in
20763 ec++*)
20764 lt_prog_compiler_pic_CXX='-KPIC'
20765 ;;
20766 ghcx*)
20767 # Green Hills C++ Compiler
20768 lt_prog_compiler_pic_CXX='-pic'
20769 ;;
20770 *)
20771 ;;
20772 esac
20773 ;;
20774 freebsd* | dragonfly*)
20775 # FreeBSD uses GNU C++
20776 ;;
20777 hpux9* | hpux10* | hpux11*)
20778 case $cc_basename in
20779 CC*)
20780 lt_prog_compiler_wl_CXX='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050020781 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
20782 if test ia64 != "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020783 lt_prog_compiler_pic_CXX='+Z'
20784 fi
20785 ;;
20786 aCC*)
20787 lt_prog_compiler_wl_CXX='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050020788 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
cristy73bd4a52010-10-05 11:24:23 +000020789 case $host_cpu in
20790 hppa*64*|ia64*)
20791 # +Z the default
20792 ;;
20793 *)
20794 lt_prog_compiler_pic_CXX='+Z'
20795 ;;
20796 esac
20797 ;;
20798 *)
20799 ;;
20800 esac
20801 ;;
20802 interix*)
20803 # This is c89, which is MS Visual C++ (no shared libs)
20804 # Anyone wants to do a port?
20805 ;;
20806 irix5* | irix6* | nonstopux*)
20807 case $cc_basename in
20808 CC*)
20809 lt_prog_compiler_wl_CXX='-Wl,'
20810 lt_prog_compiler_static_CXX='-non_shared'
20811 # CC pic flag -KPIC is the default.
20812 ;;
20813 *)
20814 ;;
20815 esac
20816 ;;
Cristy15f22012015-11-14 17:51:30 -050020817 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000020818 case $cc_basename in
20819 KCC*)
20820 # KAI C++ Compiler
20821 lt_prog_compiler_wl_CXX='--backend -Wl,'
20822 lt_prog_compiler_pic_CXX='-fPIC'
20823 ;;
20824 ecpc* )
Cristy15f22012015-11-14 17:51:30 -050020825 # old Intel C++ for x86_64, which still supported -KPIC.
cristy73bd4a52010-10-05 11:24:23 +000020826 lt_prog_compiler_wl_CXX='-Wl,'
20827 lt_prog_compiler_pic_CXX='-KPIC'
20828 lt_prog_compiler_static_CXX='-static'
20829 ;;
20830 icpc* )
20831 # Intel C++, used to be incompatible with GCC.
20832 # ICC 10 doesn't accept -KPIC any more.
20833 lt_prog_compiler_wl_CXX='-Wl,'
20834 lt_prog_compiler_pic_CXX='-fPIC'
20835 lt_prog_compiler_static_CXX='-static'
20836 ;;
20837 pgCC* | pgcpp*)
20838 # Portland Group C++ compiler
20839 lt_prog_compiler_wl_CXX='-Wl,'
20840 lt_prog_compiler_pic_CXX='-fpic'
20841 lt_prog_compiler_static_CXX='-Bstatic'
20842 ;;
20843 cxx*)
20844 # Compaq C++
20845 # Make sure the PIC flag is empty. It appears that all Alpha
20846 # Linux and Compaq Tru64 Unix objects are PIC.
20847 lt_prog_compiler_pic_CXX=
20848 lt_prog_compiler_static_CXX='-non_shared'
20849 ;;
cristy0c60a692010-11-04 01:09:47 +000020850 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
20851 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000020852 lt_prog_compiler_wl_CXX='-Wl,'
20853 lt_prog_compiler_pic_CXX='-qpic'
20854 lt_prog_compiler_static_CXX='-qstaticlink'
20855 ;;
20856 *)
20857 case `$CC -V 2>&1 | sed 5q` in
20858 *Sun\ C*)
20859 # Sun C++ 5.9
20860 lt_prog_compiler_pic_CXX='-KPIC'
20861 lt_prog_compiler_static_CXX='-Bstatic'
20862 lt_prog_compiler_wl_CXX='-Qoption ld '
20863 ;;
20864 esac
20865 ;;
20866 esac
20867 ;;
20868 lynxos*)
20869 ;;
20870 m88k*)
20871 ;;
20872 mvs*)
20873 case $cc_basename in
20874 cxx*)
20875 lt_prog_compiler_pic_CXX='-W c,exportall'
20876 ;;
20877 *)
20878 ;;
20879 esac
20880 ;;
20881 netbsd*)
20882 ;;
20883 *qnx* | *nto*)
20884 # QNX uses GNU C++, but need to define -shared option too, otherwise
20885 # it will coredump.
20886 lt_prog_compiler_pic_CXX='-fPIC -shared'
20887 ;;
20888 osf3* | osf4* | osf5*)
20889 case $cc_basename in
20890 KCC*)
20891 lt_prog_compiler_wl_CXX='--backend -Wl,'
20892 ;;
20893 RCC*)
20894 # Rational C++ 2.4.1
20895 lt_prog_compiler_pic_CXX='-pic'
20896 ;;
20897 cxx*)
20898 # Digital/Compaq C++
20899 lt_prog_compiler_wl_CXX='-Wl,'
20900 # Make sure the PIC flag is empty. It appears that all Alpha
20901 # Linux and Compaq Tru64 Unix objects are PIC.
20902 lt_prog_compiler_pic_CXX=
20903 lt_prog_compiler_static_CXX='-non_shared'
20904 ;;
20905 *)
20906 ;;
20907 esac
20908 ;;
20909 psos*)
20910 ;;
20911 solaris*)
20912 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000020913 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000020914 # Sun C++ 4.2, 5.x and Centerline C++
20915 lt_prog_compiler_pic_CXX='-KPIC'
20916 lt_prog_compiler_static_CXX='-Bstatic'
20917 lt_prog_compiler_wl_CXX='-Qoption ld '
20918 ;;
20919 gcx*)
20920 # Green Hills C++ Compiler
20921 lt_prog_compiler_pic_CXX='-PIC'
20922 ;;
20923 *)
20924 ;;
20925 esac
20926 ;;
20927 sunos4*)
20928 case $cc_basename in
20929 CC*)
20930 # Sun C++ 4.x
20931 lt_prog_compiler_pic_CXX='-pic'
20932 lt_prog_compiler_static_CXX='-Bstatic'
20933 ;;
20934 lcc*)
20935 # Lucid
20936 lt_prog_compiler_pic_CXX='-pic'
20937 ;;
20938 *)
20939 ;;
20940 esac
20941 ;;
20942 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20943 case $cc_basename in
20944 CC*)
20945 lt_prog_compiler_wl_CXX='-Wl,'
20946 lt_prog_compiler_pic_CXX='-KPIC'
20947 lt_prog_compiler_static_CXX='-Bstatic'
20948 ;;
20949 esac
20950 ;;
20951 tandem*)
20952 case $cc_basename in
20953 NCC*)
20954 # NonStop-UX NCC 3.20
20955 lt_prog_compiler_pic_CXX='-KPIC'
20956 ;;
20957 *)
20958 ;;
20959 esac
20960 ;;
20961 vxworks*)
20962 ;;
20963 *)
20964 lt_prog_compiler_can_build_shared_CXX=no
20965 ;;
20966 esac
20967 fi
20968
20969case $host_os in
Cristy15f22012015-11-14 17:51:30 -050020970 # For platforms that do not support PIC, -DPIC is meaningless:
cristy73bd4a52010-10-05 11:24:23 +000020971 *djgpp*)
20972 lt_prog_compiler_pic_CXX=
20973 ;;
20974 *)
20975 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20976 ;;
20977esac
cristy73bd4a52010-10-05 11:24:23 +000020978
cristyda16f162011-02-19 23:52:17 +000020979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
20980$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
20981if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
20982 $as_echo_n "(cached) " >&6
20983else
20984 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
20985fi
20986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
20987$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
20988lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000020989
20990#
20991# Check to make sure the PIC flag actually works.
20992#
20993if test -n "$lt_prog_compiler_pic_CXX"; then
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20995$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020996if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020997 $as_echo_n "(cached) " >&6
20998else
20999 lt_cv_prog_compiler_pic_works_CXX=no
21000 ac_outfile=conftest.$ac_objext
21001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050021002 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000021003 # Insert the option either (1) after the last *FLAGS variable, or
21004 # (2) before a word containing "conftest.", or (3) at the end.
21005 # Note that $ac_compile itself does not contain backslashes and begins
21006 # with a dollar sign (not a hyphen), so the echo should work correctly.
21007 # The option is referenced via a variable to avoid confusing sed.
21008 lt_compile=`echo "$ac_compile" | $SED \
21009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21011 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000021012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000021013 (eval "$lt_compile" 2>conftest.err)
21014 ac_status=$?
21015 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000021016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000021017 if (exit $ac_status) && test -s "$ac_outfile"; then
21018 # The compiler can only warn and ignore the option if not recognized
21019 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000021020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000021021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21023 lt_cv_prog_compiler_pic_works_CXX=yes
21024 fi
21025 fi
21026 $RM conftest*
21027
21028fi
21029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21030$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21031
Cristy15f22012015-11-14 17:51:30 -050021032if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000021033 case $lt_prog_compiler_pic_CXX in
21034 "" | " "*) ;;
21035 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21036 esac
21037else
21038 lt_prog_compiler_pic_CXX=
21039 lt_prog_compiler_can_build_shared_CXX=no
21040fi
21041
21042fi
21043
21044
21045
cristyda16f162011-02-19 23:52:17 +000021046
21047
cristy73bd4a52010-10-05 11:24:23 +000021048#
21049# Check to make sure the static flag actually works.
21050#
21051wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021054if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021055 $as_echo_n "(cached) " >&6
21056else
21057 lt_cv_prog_compiler_static_works_CXX=no
Cristy15f22012015-11-14 17:51:30 -050021058 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21062 # The linker can only warn and ignore the option if not recognized
21063 # So say no if there are warnings
21064 if test -s conftest.err; then
21065 # Append any errors to the config.log.
21066 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000021067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000021068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21069 if diff conftest.exp conftest.er2 >/dev/null; then
21070 lt_cv_prog_compiler_static_works_CXX=yes
21071 fi
21072 else
21073 lt_cv_prog_compiler_static_works_CXX=yes
21074 fi
21075 fi
21076 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050021077 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021078
21079fi
21080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21081$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21082
Cristy15f22012015-11-14 17:51:30 -050021083if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000021084 :
21085else
21086 lt_prog_compiler_static_CXX=
21087fi
21088
21089
21090
21091
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021094if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021095 $as_echo_n "(cached) " >&6
21096else
21097 lt_cv_prog_compiler_c_o_CXX=no
21098 $RM -r conftest 2>/dev/null
21099 mkdir conftest
21100 cd conftest
21101 mkdir out
21102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21103
21104 lt_compiler_flag="-o out/conftest2.$ac_objext"
21105 # Insert the option either (1) after the last *FLAGS variable, or
21106 # (2) before a word containing "conftest.", or (3) at the end.
21107 # Note that $ac_compile itself does not contain backslashes and begins
21108 # with a dollar sign (not a hyphen), so the echo should work correctly.
21109 lt_compile=`echo "$ac_compile" | $SED \
21110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21112 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000021113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000021114 (eval "$lt_compile" 2>out/conftest.err)
21115 ac_status=$?
21116 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000021117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000021118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21119 then
21120 # The compiler can only warn and ignore the option if not recognized
21121 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000021122 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000021123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21125 lt_cv_prog_compiler_c_o_CXX=yes
21126 fi
21127 fi
21128 chmod u+w . 2>&5
21129 $RM conftest*
21130 # SGI C++ compiler will create directory out/ii_files/ for
21131 # template instantiation
21132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21133 $RM out/* && rmdir out
21134 cd ..
21135 $RM -r conftest
21136 $RM conftest*
21137
21138fi
21139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21140$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21141
21142
21143
21144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21145$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021146if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021147 $as_echo_n "(cached) " >&6
21148else
21149 lt_cv_prog_compiler_c_o_CXX=no
21150 $RM -r conftest 2>/dev/null
21151 mkdir conftest
21152 cd conftest
21153 mkdir out
21154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21155
21156 lt_compiler_flag="-o out/conftest2.$ac_objext"
21157 # Insert the option either (1) after the last *FLAGS variable, or
21158 # (2) before a word containing "conftest.", or (3) at the end.
21159 # Note that $ac_compile itself does not contain backslashes and begins
21160 # with a dollar sign (not a hyphen), so the echo should work correctly.
21161 lt_compile=`echo "$ac_compile" | $SED \
21162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21164 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000021165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000021166 (eval "$lt_compile" 2>out/conftest.err)
21167 ac_status=$?
21168 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000021169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000021170 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21171 then
21172 # The compiler can only warn and ignore the option if not recognized
21173 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000021174 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000021175 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21176 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21177 lt_cv_prog_compiler_c_o_CXX=yes
21178 fi
21179 fi
21180 chmod u+w . 2>&5
21181 $RM conftest*
21182 # SGI C++ compiler will create directory out/ii_files/ for
21183 # template instantiation
21184 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21185 $RM out/* && rmdir out
21186 cd ..
21187 $RM -r conftest
21188 $RM conftest*
21189
21190fi
21191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21192$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21193
21194
21195
21196
Cristy15f22012015-11-14 17:51:30 -050021197hard_links=nottested
21198if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
cristy73bd4a52010-10-05 11:24:23 +000021199 # do not overwrite the value of need_locks provided by the user
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21201$as_echo_n "checking if we can lock with hard links... " >&6; }
21202 hard_links=yes
21203 $RM conftest*
21204 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21205 touch conftest.a
21206 ln conftest.a conftest.b 2>&5 || hard_links=no
21207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21209$as_echo "$hard_links" >&6; }
Cristy15f22012015-11-14 17:51:30 -050021210 if test no = "$hard_links"; then
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21212$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cristy73bd4a52010-10-05 11:24:23 +000021213 need_locks=warn
21214 fi
21215else
21216 need_locks=no
21217fi
21218
21219
21220
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21222$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21223
21224 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000021225 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000021226 case $host_os in
21227 aix[4-9]*)
21228 # If we're using GNU nm, then we don't want the "-C" option.
Cristy15f22012015-11-14 17:51:30 -050021229 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21230 # Without the "-l" option, or with the "-B" option, AIX nm treats
21231 # weak defined symbols like other global defined symbols, whereas
21232 # GNU nm marks them as "W".
21233 # While the 'weak' keyword is ignored in the Export File, we need
21234 # it in the Import File for the 'aix-soname' feature, so we have
21235 # to replace the "-B" option with "-P" for AIX nm.
cristy73bd4a52010-10-05 11:24:23 +000021236 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050021237 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 +000021238 else
Cristy15f22012015-11-14 17:51:30 -050021239 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 +000021240 fi
21241 ;;
21242 pw32*)
Cristy15f22012015-11-14 17:51:30 -050021243 export_symbols_cmds_CXX=$ltdll_cmds
cristyda16f162011-02-19 23:52:17 +000021244 ;;
cristy73bd4a52010-10-05 11:24:23 +000021245 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000021246 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000021247 cl*)
21248 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21249 ;;
cristyda16f162011-02-19 23:52:17 +000021250 *)
21251 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'
21252 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21253 ;;
21254 esac
21255 ;;
cristy73bd4a52010-10-05 11:24:23 +000021256 *)
21257 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000021258 ;;
cristy73bd4a52010-10-05 11:24:23 +000021259 esac
cristy73bd4a52010-10-05 11:24:23 +000021260
21261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21262$as_echo "$ld_shlibs_CXX" >&6; }
Cristy15f22012015-11-14 17:51:30 -050021263test no = "$ld_shlibs_CXX" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000021264
21265with_gnu_ld_CXX=$with_gnu_ld
21266
21267
21268
21269
21270
21271
21272#
21273# Do we need to explicitly link libc?
21274#
21275case "x$archive_cmds_need_lc_CXX" in
21276x|xyes)
21277 # Assume -lc should be added
21278 archive_cmds_need_lc_CXX=yes
21279
Cristy15f22012015-11-14 17:51:30 -050021280 if test yes,yes = "$GCC,$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000021281 case $archive_cmds_CXX in
21282 *'~'*)
21283 # FIXME: we may have to deal with multi-command sequences.
21284 ;;
21285 '$CC '*)
21286 # Test whether the compiler implicitly links with -lc since on some
21287 # systems, -lgcc has to come before -lc. If gcc already passes -lc
21288 # to ld, don't add -lc before -lgcc.
21289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21290$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021291if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021292 $as_echo_n "(cached) " >&6
21293else
21294 $RM conftest*
21295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021296
cristy0c60a692010-11-04 01:09:47 +000021297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000021298 (eval $ac_compile) 2>&5
21299 ac_status=$?
21300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21301 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000021302 soname=conftest
21303 lib=conftest
21304 libobjs=conftest.$ac_objext
21305 deplibs=
21306 wl=$lt_prog_compiler_wl_CXX
21307 pic_flag=$lt_prog_compiler_pic_CXX
21308 compiler_flags=-v
21309 linker_flags=-v
21310 verstring=
21311 output_objdir=.
21312 libname=conftest
21313 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21314 allow_undefined_flag_CXX=
21315 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 +000021316 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21317 ac_status=$?
21318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21319 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000021320 then
21321 lt_cv_archive_cmds_need_lc_CXX=no
21322 else
21323 lt_cv_archive_cmds_need_lc_CXX=yes
21324 fi
21325 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21326 else
21327 cat conftest.err 1>&5
21328 fi
21329 $RM conftest*
21330
21331fi
21332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21333$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21334 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000021335 ;;
21336 esac
21337 fi
21338 ;;
21339esac
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351
21352
21353
21354
21355
21356
21357
21358
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377
21378
21379
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
cristy73bd4a52010-10-05 11:24:23 +000021402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21403$as_echo_n "checking dynamic linker characteristics... " >&6; }
21404
21405library_names_spec=
21406libname_spec='lib$name'
21407soname_spec=
Cristy15f22012015-11-14 17:51:30 -050021408shrext_cmds=.so
cristy73bd4a52010-10-05 11:24:23 +000021409postinstall_cmds=
21410postuninstall_cmds=
21411finish_cmds=
21412finish_eval=
21413shlibpath_var=
21414shlibpath_overrides_runpath=unknown
21415version_type=none
21416dynamic_linker="$host_os ld.so"
21417sys_lib_dlsearch_path_spec="/lib /usr/lib"
21418need_lib_prefix=unknown
21419hardcode_into_libs=no
21420
21421# when you set need_version to no, make sure it does not cause -set_version
21422# flags to be left without arguments
21423need_version=unknown
21424
Cristy15f22012015-11-14 17:51:30 -050021425
21426
cristy73bd4a52010-10-05 11:24:23 +000021427case $host_os in
21428aix3*)
cristy99bd5232011-12-07 14:38:20 +000021429 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050021430 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cristy73bd4a52010-10-05 11:24:23 +000021431 shlibpath_var=LIBPATH
21432
21433 # AIX 3 has no versioning support, so we append a major version to the name.
Cristy15f22012015-11-14 17:51:30 -050021434 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021435 ;;
21436
21437aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000021438 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021439 need_lib_prefix=no
21440 need_version=no
21441 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050021442 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000021443 # AIX 5 supports IA64
Cristy15f22012015-11-14 17:51:30 -050021444 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021445 shlibpath_var=LD_LIBRARY_PATH
21446 else
21447 # With GCC up to 2.95.x, collect2 would create an import file
21448 # for dependence libraries. The import file would start with
Cristy15f22012015-11-14 17:51:30 -050021449 # the line '#! .'. This would cause the generated library to
21450 # depend on '.', always an invalid library. This was fixed in
cristy73bd4a52010-10-05 11:24:23 +000021451 # development snapshots of GCC prior to 3.0.
21452 case $host_os in
21453 aix4 | aix4.[01] | aix4.[01].*)
21454 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21455 echo ' yes '
Cristy15f22012015-11-14 17:51:30 -050021456 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000021457 :
21458 else
21459 can_build_shared=no
21460 fi
21461 ;;
21462 esac
Cristy15f22012015-11-14 17:51:30 -050021463 # Using Import Files as archive members, it is possible to support
21464 # filename-based versioning of shared library archives on AIX. While
21465 # this would work for both with and without runtime linking, it will
21466 # prevent static linking of such archives. So we do filename-based
21467 # shared library versioning with .so extension only, which is used
21468 # when both runtime linking and shared linking is enabled.
21469 # Unfortunately, runtime linking may impact performance, so we do
21470 # not want this to be the default eventually. Also, we use the
21471 # versioned .so libs for executables only if there is the -brtl
21472 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21473 # To allow for filename-based versioning support, we need to create
21474 # libNAME.so.V as an archive file, containing:
21475 # *) an Import File, referring to the versioned filename of the
21476 # archive as well as the shared archive member, telling the
21477 # bitwidth (32 or 64) of that shared object, and providing the
21478 # list of exported symbols of that shared object, eventually
21479 # decorated with the 'weak' keyword
21480 # *) the shared object with the F_LOADONLY flag set, to really avoid
21481 # it being seen by the linker.
21482 # At run time we better use the real file rather than another symlink,
21483 # but for link time we create the symlink libNAME.so -> libNAME.so.V
21484
21485 case $with_aix_soname,$aix_use_runtimelinking in
21486 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cristy73bd4a52010-10-05 11:24:23 +000021487 # soname into executable. Probably we can add versioning support to
21488 # collect2, so additional links can be useful in future.
Cristy15f22012015-11-14 17:51:30 -050021489 aix,yes) # traditional libtool
21490 dynamic_linker='AIX unversionable lib.so'
cristy73bd4a52010-10-05 11:24:23 +000021491 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21492 # instead of lib<name>.a to let people know that these are not
21493 # typical AIX shared libraries.
Cristy15f22012015-11-14 17:51:30 -050021494 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21495 ;;
21496 aix,no) # traditional AIX only
21497 dynamic_linker='AIX lib.a(lib.so.V)'
cristy73bd4a52010-10-05 11:24:23 +000021498 # We preserve .a as extension for shared libraries through AIX4.2
21499 # and later when we are not doing run time linking.
Cristy15f22012015-11-14 17:51:30 -050021500 library_names_spec='$libname$release.a $libname.a'
21501 soname_spec='$libname$release$shared_ext$major'
21502 ;;
21503 svr4,*) # full svr4 only
21504 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21505 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21506 # We do not specify a path in Import Files, so LIBPATH fires.
21507 shlibpath_overrides_runpath=yes
21508 ;;
21509 *,yes) # both, prefer svr4
21510 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21511 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21512 # unpreferred sharedlib libNAME.a needs extra handling
21513 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"'
21514 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"'
21515 # We do not specify a path in Import Files, so LIBPATH fires.
21516 shlibpath_overrides_runpath=yes
21517 ;;
21518 *,no) # both, prefer aix
21519 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21520 library_names_spec='$libname$release.a $libname.a'
21521 soname_spec='$libname$release$shared_ext$major'
21522 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21523 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)'
21524 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"'
21525 ;;
21526 esac
cristy73bd4a52010-10-05 11:24:23 +000021527 shlibpath_var=LIBPATH
21528 fi
21529 ;;
21530
21531amigaos*)
21532 case $host_cpu in
21533 powerpc)
21534 # Since July 2007 AmigaOS4 officially supports .so libraries.
21535 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Cristy15f22012015-11-14 17:51:30 -050021536 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021537 ;;
21538 m68k)
21539 library_names_spec='$libname.ixlibrary $libname.a'
21540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Cristy15f22012015-11-14 17:51:30 -050021541 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 +000021542 ;;
21543 esac
21544 ;;
21545
21546beos*)
Cristy15f22012015-11-14 17:51:30 -050021547 library_names_spec='$libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021548 dynamic_linker="$host_os ld.so"
21549 shlibpath_var=LIBRARY_PATH
21550 ;;
21551
21552bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000021553 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021554 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21556 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021557 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21558 shlibpath_var=LD_LIBRARY_PATH
21559 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21560 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21561 # the default ld.so.conf also contains /usr/contrib/lib and
21562 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21563 # libtool to hard-code these into programs
21564 ;;
21565
21566cygwin* | mingw* | pw32* | cegcc*)
21567 version_type=windows
Cristy15f22012015-11-14 17:51:30 -050021568 shrext_cmds=.dll
cristy73bd4a52010-10-05 11:24:23 +000021569 need_version=no
21570 need_lib_prefix=no
21571
cristyda16f162011-02-19 23:52:17 +000021572 case $GCC,$cc_basename in
21573 yes,*)
21574 # gcc
cristy73bd4a52010-10-05 11:24:23 +000021575 library_names_spec='$libname.dll.a'
21576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050021577 postinstall_cmds='base_file=`basename \$file`~
21578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristy73bd4a52010-10-05 11:24:23 +000021579 dldir=$destdir/`dirname \$dlpath`~
21580 test -d \$dldir || mkdir -p \$dldir~
21581 $install_prog $dir/$dlname \$dldir/$dlname~
21582 chmod a+x \$dldir/$dlname~
21583 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21584 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21585 fi'
21586 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21587 dlpath=$dir/\$dldll~
21588 $RM \$dlpath'
21589 shlibpath_overrides_runpath=yes
21590
21591 case $host_os in
21592 cygwin*)
21593 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050021594 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy0c60a692010-11-04 01:09:47 +000021595
cristy73bd4a52010-10-05 11:24:23 +000021596 ;;
21597 mingw* | cegcc*)
21598 # MinGW DLLs use traditional 'lib' prefix
Cristy15f22012015-11-14 17:51:30 -050021599 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021600 ;;
21601 pw32*)
21602 # pw32 DLLs use 'pw' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050021603 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 +000021604 ;;
21605 esac
cristyda16f162011-02-19 23:52:17 +000021606 dynamic_linker='Win32 ld.exe'
21607 ;;
21608
21609 *,cl*)
21610 # Native MSVC
21611 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050021612 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21613 library_names_spec='$libname.dll.lib'
cristyda16f162011-02-19 23:52:17 +000021614
21615 case $build_os in
21616 mingw*)
21617 sys_lib_search_path_spec=
21618 lt_save_ifs=$IFS
21619 IFS=';'
21620 for lt_path in $LIB
21621 do
21622 IFS=$lt_save_ifs
21623 # Let DOS variable expansion print the short 8.3 style file name.
21624 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21625 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21626 done
21627 IFS=$lt_save_ifs
21628 # Convert to MSYS style.
21629 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21630 ;;
21631 cygwin*)
21632 # Convert to unix form, then to dos form, then back to unix form
21633 # but this time dos style (no spaces!) so that the unix form looks
21634 # like /cygdrive/c/PROGRA~1:/cygdr...
21635 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21636 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21637 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21638 ;;
21639 *)
Cristy15f22012015-11-14 17:51:30 -050021640 sys_lib_search_path_spec=$LIB
cristyda16f162011-02-19 23:52:17 +000021641 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21642 # It is most probably a Windows format PATH.
21643 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21644 else
21645 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21646 fi
21647 # FIXME: find the short name or the path components, as spaces are
21648 # common. (e.g. "Program Files" -> "PROGRA~1")
21649 ;;
21650 esac
21651
21652 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050021653 postinstall_cmds='base_file=`basename \$file`~
21654 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristyda16f162011-02-19 23:52:17 +000021655 dldir=$destdir/`dirname \$dlpath`~
21656 test -d \$dldir || mkdir -p \$dldir~
21657 $install_prog $dir/$dlname \$dldir/$dlname'
21658 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21659 dlpath=$dir/\$dldll~
21660 $RM \$dlpath'
21661 shlibpath_overrides_runpath=yes
21662 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000021663 ;;
21664
21665 *)
cristyda16f162011-02-19 23:52:17 +000021666 # Assume MSVC wrapper
Cristy15f22012015-11-14 17:51:30 -050021667 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cristyda16f162011-02-19 23:52:17 +000021668 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000021669 ;;
21670 esac
cristy73bd4a52010-10-05 11:24:23 +000021671 # FIXME: first we should search . and the directory the executable is in
21672 shlibpath_var=PATH
21673 ;;
21674
21675darwin* | rhapsody*)
21676 dynamic_linker="$host_os dyld"
21677 version_type=darwin
21678 need_lib_prefix=no
21679 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021680 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
21681 soname_spec='$libname$release$major$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021682 shlibpath_overrides_runpath=yes
21683 shlibpath_var=DYLD_LIBRARY_PATH
21684 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
21685
21686 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
21687 ;;
21688
21689dgux*)
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 shlibpath_var=LD_LIBRARY_PATH
21696 ;;
21697
cristy73bd4a52010-10-05 11:24:23 +000021698freebsd* | dragonfly*)
21699 # DragonFly does not have aout. When/if they implement a new
21700 # versioning mechanism, adjust this.
21701 if test -x /usr/bin/objformat; then
21702 objformat=`/usr/bin/objformat`
21703 else
21704 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021705 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000021706 *) objformat=elf ;;
21707 esac
21708 fi
21709 version_type=freebsd-$objformat
21710 case $version_type in
21711 freebsd-elf*)
Cristy15f22012015-11-14 17:51:30 -050021712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21713 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021714 need_version=no
21715 need_lib_prefix=no
21716 ;;
21717 freebsd-*)
Cristy15f22012015-11-14 17:51:30 -050021718 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021719 need_version=yes
21720 ;;
21721 esac
21722 shlibpath_var=LD_LIBRARY_PATH
21723 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000021724 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021725 shlibpath_overrides_runpath=yes
21726 ;;
21727 freebsd3.[01]* | freebsdelf3.[01]*)
21728 shlibpath_overrides_runpath=yes
21729 hardcode_into_libs=yes
21730 ;;
21731 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
21732 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
21733 shlibpath_overrides_runpath=no
21734 hardcode_into_libs=yes
21735 ;;
21736 *) # from 4.6 on, and DragonFly
21737 shlibpath_overrides_runpath=yes
21738 hardcode_into_libs=yes
21739 ;;
21740 esac
21741 ;;
21742
cristy0c60a692010-11-04 01:09:47 +000021743haiku*)
cristy99bd5232011-12-07 14:38:20 +000021744 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000021745 need_lib_prefix=no
21746 need_version=no
21747 dynamic_linker="$host_os runtime_loader"
Cristy15f22012015-11-14 17:51:30 -050021748 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21749 soname_spec='$libname$release$shared_ext$major'
cristy0c60a692010-11-04 01:09:47 +000021750 shlibpath_var=LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050021751 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021752 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
21753 hardcode_into_libs=yes
21754 ;;
21755
cristy73bd4a52010-10-05 11:24:23 +000021756hpux9* | hpux10* | hpux11*)
21757 # Give a soname corresponding to the major version so that dld.sl refuses to
21758 # link against other versions.
21759 version_type=sunos
21760 need_lib_prefix=no
21761 need_version=no
21762 case $host_cpu in
21763 ia64*)
21764 shrext_cmds='.so'
21765 hardcode_into_libs=yes
21766 dynamic_linker="$host_os dld.so"
21767 shlibpath_var=LD_LIBRARY_PATH
21768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050021769 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21770 soname_spec='$libname$release$shared_ext$major'
21771 if test 32 = "$HPUX_IA64_MODE"; then
cristy73bd4a52010-10-05 11:24:23 +000021772 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Cristy15f22012015-11-14 17:51:30 -050021773 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cristy73bd4a52010-10-05 11:24:23 +000021774 else
21775 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Cristy15f22012015-11-14 17:51:30 -050021776 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cristy73bd4a52010-10-05 11:24:23 +000021777 fi
cristy73bd4a52010-10-05 11:24:23 +000021778 ;;
21779 hppa*64*)
21780 shrext_cmds='.sl'
21781 hardcode_into_libs=yes
21782 dynamic_linker="$host_os dld.sl"
21783 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
21784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050021785 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21786 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021787 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
21788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
21789 ;;
21790 *)
21791 shrext_cmds='.sl'
21792 dynamic_linker="$host_os dld.sl"
21793 shlibpath_var=SHLIB_PATH
21794 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Cristy15f22012015-11-14 17:51:30 -050021795 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21796 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021797 ;;
21798 esac
cristy0c60a692010-11-04 01:09:47 +000021799 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000021800 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000021801 # or fails outright, so override atomically:
21802 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000021803 ;;
21804
21805interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000021806 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021807 need_lib_prefix=no
21808 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21810 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021811 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
21812 shlibpath_var=LD_LIBRARY_PATH
21813 shlibpath_overrides_runpath=no
21814 hardcode_into_libs=yes
21815 ;;
21816
21817irix5* | irix6* | nonstopux*)
21818 case $host_os in
21819 nonstopux*) version_type=nonstopux ;;
21820 *)
Cristy15f22012015-11-14 17:51:30 -050021821 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy99bd5232011-12-07 14:38:20 +000021822 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021823 else
21824 version_type=irix
21825 fi ;;
21826 esac
21827 need_lib_prefix=no
21828 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021829 soname_spec='$libname$release$shared_ext$major'
21830 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 +000021831 case $host_os in
21832 irix5* | nonstopux*)
21833 libsuff= shlibsuff=
21834 ;;
21835 *)
21836 case $LD in # libtool.m4 will add one of these switches to LD
21837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
21838 libsuff= shlibsuff= libmagic=32-bit;;
21839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
21840 libsuff=32 shlibsuff=N32 libmagic=N32;;
21841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
21842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
21843 *) libsuff= shlibsuff= libmagic=never-match;;
21844 esac
21845 ;;
21846 esac
21847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
21848 shlibpath_overrides_runpath=no
Cristy15f22012015-11-14 17:51:30 -050021849 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
21850 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cristy73bd4a52010-10-05 11:24:23 +000021851 hardcode_into_libs=yes
21852 ;;
21853
21854# No shared lib support for Linux oldld, aout, or coff.
21855linux*oldld* | linux*aout* | linux*coff*)
21856 dynamic_linker=no
21857 ;;
21858
Cristy15f22012015-11-14 17:51:30 -050021859linux*android*)
21860 version_type=none # Android doesn't support versioned libraries.
21861 need_lib_prefix=no
21862 need_version=no
21863 library_names_spec='$libname$release$shared_ext'
21864 soname_spec='$libname$release$shared_ext'
21865 finish_cmds=
21866 shlibpath_var=LD_LIBRARY_PATH
21867 shlibpath_overrides_runpath=yes
21868
21869 # This implies no fast_install, which is unacceptable.
21870 # Some rework will be needed to allow for fast_install
21871 # before this can be enabled.
21872 hardcode_into_libs=yes
21873
21874 dynamic_linker='Android linker'
21875 # Don't embed -rpath directories since the linker doesn't support them.
21876 hardcode_libdir_flag_spec_CXX='-L$libdir'
21877 ;;
21878
cristy99bd5232011-12-07 14:38:20 +000021879# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050021880linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy99bd5232011-12-07 14:38:20 +000021881 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000021882 need_lib_prefix=no
21883 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021884 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21885 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021886 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
21887 shlibpath_var=LD_LIBRARY_PATH
21888 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000021889
cristy73bd4a52010-10-05 11:24:23 +000021890 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000021891 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000021892 $as_echo_n "(cached) " >&6
21893else
21894 lt_cv_shlibpath_overrides_runpath=no
21895 save_LDFLAGS=$LDFLAGS
21896 save_libdir=$libdir
21897 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
21898 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
21899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000021900/* end confdefs.h. */
21901
21902int
21903main ()
21904{
21905
21906 ;
21907 return 0;
21908}
21909_ACEOF
21910if ac_fn_cxx_try_link "$LINENO"; then :
21911 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000021912 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000021913fi
21914fi
21915rm -f core conftest.err conftest.$ac_objext \
21916 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000021917 LDFLAGS=$save_LDFLAGS
21918 libdir=$save_libdir
21919
21920fi
21921
21922 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000021923
21924 # This implies no fast_install, which is unacceptable.
21925 # Some rework will be needed to allow for fast_install
21926 # before this can be enabled.
21927 hardcode_into_libs=yes
21928
21929 # Add ABI-specific directories to the system library path.
21930 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
21931
Cristy15f22012015-11-14 17:51:30 -050021932 # Ideally, we could use ldconfig to report *all* directores which are
21933 # searched for libraries, however this is still not possible. Aside from not
21934 # being certain /sbin/ldconfig is available, command
21935 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
21936 # even though it is searched at run-time. Try to do the best guess by
21937 # appending ld.so.conf contents (and includes) to the search path.
cristy73bd4a52010-10-05 11:24:23 +000021938 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000021939 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 +000021940 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
21941 fi
21942
21943 # We used to test for /lib/ld.so.1 and disable shared libraries on
21944 # powerpc, because MkLinux only supported shared libraries with the
21945 # GNU dynamic linker. Since this was broken with cross compilers,
21946 # most powerpc-linux boxes support dynamic linking these days and
21947 # people can always --disable-shared, the test was removed, and we
21948 # assume the GNU/Linux dynamic linker is in use.
21949 dynamic_linker='GNU/Linux ld.so'
21950 ;;
21951
21952netbsd*)
21953 version_type=sunos
21954 need_lib_prefix=no
21955 need_version=no
21956 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Cristy15f22012015-11-14 17:51:30 -050021957 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021958 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21959 dynamic_linker='NetBSD (a.out) ld.so'
21960 else
Cristy15f22012015-11-14 17:51:30 -050021961 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21962 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021963 dynamic_linker='NetBSD ld.elf_so'
21964 fi
21965 shlibpath_var=LD_LIBRARY_PATH
21966 shlibpath_overrides_runpath=yes
21967 hardcode_into_libs=yes
21968 ;;
21969
21970newsos6)
cristy99bd5232011-12-07 14:38:20 +000021971 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050021972 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000021973 shlibpath_var=LD_LIBRARY_PATH
21974 shlibpath_overrides_runpath=yes
21975 ;;
21976
21977*nto* | *qnx*)
21978 version_type=qnx
21979 need_lib_prefix=no
21980 need_version=no
Cristy15f22012015-11-14 17:51:30 -050021981 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21982 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000021983 shlibpath_var=LD_LIBRARY_PATH
21984 shlibpath_overrides_runpath=no
21985 hardcode_into_libs=yes
21986 dynamic_linker='ldqnx.so'
21987 ;;
21988
Cristy15f22012015-11-14 17:51:30 -050021989openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000021990 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050021991 sys_lib_dlsearch_path_spec=/usr/lib
cristy73bd4a52010-10-05 11:24:23 +000021992 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050021993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
21994 need_version=no
21995 else
21996 need_version=yes
21997 fi
21998 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000021999 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22000 shlibpath_var=LD_LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050022001 shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000022002 ;;
22003
22004os2*)
22005 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050022006 version_type=windows
22007 shrext_cmds=.dll
22008 need_version=no
cristy73bd4a52010-10-05 11:24:23 +000022009 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050022010 # OS/2 can only load a DLL with a base name of 8 characters or less.
22011 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22012 v=$($ECHO $release$versuffix | tr -d .-);
22013 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22014 $ECHO $n$v`$shared_ext'
22015 library_names_spec='${libname}_dll.$libext'
cristy73bd4a52010-10-05 11:24:23 +000022016 dynamic_linker='OS/2 ld.exe'
Cristy15f22012015-11-14 17:51:30 -050022017 shlibpath_var=BEGINLIBPATH
22018 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22019 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22020 postinstall_cmds='base_file=`basename \$file`~
22021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22022 dldir=$destdir/`dirname \$dlpath`~
22023 test -d \$dldir || mkdir -p \$dldir~
22024 $install_prog $dir/$dlname \$dldir/$dlname~
22025 chmod a+x \$dldir/$dlname~
22026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22028 fi'
22029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22030 dlpath=$dir/\$dldll~
22031 $RM \$dlpath'
cristy73bd4a52010-10-05 11:24:23 +000022032 ;;
22033
22034osf3* | osf4* | osf5*)
22035 version_type=osf
22036 need_lib_prefix=no
22037 need_version=no
Cristy15f22012015-11-14 17:51:30 -050022038 soname_spec='$libname$release$shared_ext$major'
22039 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022040 shlibpath_var=LD_LIBRARY_PATH
22041 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 -050022042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000022043 ;;
22044
22045rdos*)
22046 dynamic_linker=no
22047 ;;
22048
22049solaris*)
cristy99bd5232011-12-07 14:38:20 +000022050 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000022051 need_lib_prefix=no
22052 need_version=no
Cristy15f22012015-11-14 17:51:30 -050022053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22054 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022055 shlibpath_var=LD_LIBRARY_PATH
22056 shlibpath_overrides_runpath=yes
22057 hardcode_into_libs=yes
22058 # ldd complains unless libraries are executable
22059 postinstall_cmds='chmod +x $lib'
22060 ;;
22061
22062sunos4*)
22063 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050022064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000022065 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22066 shlibpath_var=LD_LIBRARY_PATH
22067 shlibpath_overrides_runpath=yes
Cristy15f22012015-11-14 17:51:30 -050022068 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000022069 need_lib_prefix=no
22070 fi
22071 need_version=yes
22072 ;;
22073
22074sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000022075 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050022076 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22077 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022078 shlibpath_var=LD_LIBRARY_PATH
22079 case $host_vendor in
22080 sni)
22081 shlibpath_overrides_runpath=no
22082 need_lib_prefix=no
22083 runpath_var=LD_RUN_PATH
22084 ;;
22085 siemens)
22086 need_lib_prefix=no
22087 ;;
22088 motorola)
22089 need_lib_prefix=no
22090 need_version=no
22091 shlibpath_overrides_runpath=no
22092 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22093 ;;
22094 esac
22095 ;;
22096
22097sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050022098 if test -d /usr/nec; then
cristy99bd5232011-12-07 14:38:20 +000022099 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050022100 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22101 soname_spec='$libname$shared_ext.$major'
cristy73bd4a52010-10-05 11:24:23 +000022102 shlibpath_var=LD_LIBRARY_PATH
22103 fi
22104 ;;
22105
22106sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Cristy15f22012015-11-14 17:51:30 -050022107 version_type=sco
cristy73bd4a52010-10-05 11:24:23 +000022108 need_lib_prefix=no
22109 need_version=no
Cristy15f22012015-11-14 17:51:30 -050022110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22111 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022112 shlibpath_var=LD_LIBRARY_PATH
22113 shlibpath_overrides_runpath=yes
22114 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050022115 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000022116 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22117 else
22118 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22119 case $host_os in
22120 sco3.2v5*)
22121 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22122 ;;
22123 esac
22124 fi
22125 sys_lib_dlsearch_path_spec='/usr/lib'
22126 ;;
22127
22128tpf*)
22129 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000022130 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000022131 need_lib_prefix=no
22132 need_version=no
Cristy15f22012015-11-14 17:51:30 -050022133 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022134 shlibpath_var=LD_LIBRARY_PATH
22135 shlibpath_overrides_runpath=no
22136 hardcode_into_libs=yes
22137 ;;
22138
22139uts4*)
cristy99bd5232011-12-07 14:38:20 +000022140 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050022141 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22142 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022143 shlibpath_var=LD_LIBRARY_PATH
22144 ;;
22145
22146*)
22147 dynamic_linker=no
22148 ;;
22149esac
22150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22151$as_echo "$dynamic_linker" >&6; }
Cristy15f22012015-11-14 17:51:30 -050022152test no = "$dynamic_linker" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000022153
22154variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Cristy15f22012015-11-14 17:51:30 -050022155if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000022156 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22157fi
22158
Cristy15f22012015-11-14 17:51:30 -050022159if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22160 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000022161fi
Cristy15f22012015-11-14 17:51:30 -050022162
22163if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22164 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cristy73bd4a52010-10-05 11:24:23 +000022165fi
22166
Cristy15f22012015-11-14 17:51:30 -050022167# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22168configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22169
22170# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22171func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22172
22173# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22174configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22175
22176
22177
cristy73bd4a52010-10-05 11:24:23 +000022178
22179
22180
22181
22182
22183
22184
22185
22186
22187
22188
22189
22190
22191
22192
22193
22194
22195
22196
22197
22198
22199
22200
22201
22202
22203
22204
22205
22206
22207
22208
22209
22210
22211
22212
cristy0c60a692010-11-04 01:09:47 +000022213
22214
cristy73bd4a52010-10-05 11:24:23 +000022215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22216$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22217hardcode_action_CXX=
22218if test -n "$hardcode_libdir_flag_spec_CXX" ||
22219 test -n "$runpath_var_CXX" ||
Cristy15f22012015-11-14 17:51:30 -050022220 test yes = "$hardcode_automatic_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022221
22222 # We can hardcode non-existent directories.
Cristy15f22012015-11-14 17:51:30 -050022223 if test no != "$hardcode_direct_CXX" &&
cristy73bd4a52010-10-05 11:24:23 +000022224 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22225 # have to relink, otherwise we might link with an installed library
22226 # when we should be linking with a yet-to-be-installed one
Cristy15f22012015-11-14 17:51:30 -050022227 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22228 test no != "$hardcode_minus_L_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022229 # Linking always hardcodes the temporary library directory.
22230 hardcode_action_CXX=relink
22231 else
22232 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22233 hardcode_action_CXX=immediate
22234 fi
22235else
22236 # We cannot hardcode anything, or else we can only hardcode existing
22237 # directories.
22238 hardcode_action_CXX=unsupported
22239fi
22240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22241$as_echo "$hardcode_action_CXX" >&6; }
22242
Cristy15f22012015-11-14 17:51:30 -050022243if test relink = "$hardcode_action_CXX" ||
22244 test yes = "$inherit_rpath_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022245 # Fast installation is not supported
22246 enable_fast_install=no
Cristy15f22012015-11-14 17:51:30 -050022247elif test yes = "$shlibpath_overrides_runpath" ||
22248 test no = "$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000022249 # Fast installation is not necessary
22250 enable_fast_install=needless
22251fi
22252
22253
22254
22255
22256
22257
22258
22259 fi # test -n "$compiler"
22260
22261 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000022262 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000022263 LDCXX=$LD
22264 LD=$lt_save_LD
22265 GCC=$lt_save_GCC
22266 with_gnu_ld=$lt_save_with_gnu_ld
22267 lt_cv_path_LDCXX=$lt_cv_path_LD
22268 lt_cv_path_LD=$lt_save_path_LD
22269 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22270 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Cristy15f22012015-11-14 17:51:30 -050022271fi # test yes != "$_lt_caught_CXX_error"
cristy73bd4a52010-10-05 11:24:23 +000022272
22273ac_ext=c
22274ac_cpp='$CPP $CPPFLAGS'
22275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22277ac_compiler_gnu=$ac_cv_c_compiler_gnu
22278
22279
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
cristy99bd5232011-12-07 14:38:20 +000022291
22292
cristy73bd4a52010-10-05 11:24:23 +000022293 ac_config_commands="$ac_config_commands libtool"
22294
22295
22296
22297
22298# Only expand once:
22299
22300
22301
cristy3ed852e2009-09-05 21:47:34 +000022302
22303
cristy3ed852e2009-09-05 21:47:34 +000022304# Check to see if building shared libraries
22305libtool_build_shared_libs='no'
22306if test "$enable_shared" = 'yes'; then
22307 libtool_build_shared_libs='yes'
22308fi
22309
22310# Check to see if building static libraries
22311libtool_build_static_libs='no'
22312if test "$enable_static" = 'yes'; then
22313 libtool_build_static_libs='yes'
22314fi
22315
cristy73bd4a52010-10-05 11:24:23 +000022316 if test "${libtool_build_shared_libs}" = 'yes'; then
22317 WITH_SHARED_LIBS_TRUE=
22318 WITH_SHARED_LIBS_FALSE='#'
22319else
22320 WITH_SHARED_LIBS_TRUE='#'
22321 WITH_SHARED_LIBS_FALSE=
22322fi
22323
cristy3ed852e2009-09-05 21:47:34 +000022324#
22325# Enable support for building loadable modules
22326#
cristyaf4cbf32012-10-16 23:47:41 +000022327build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000022328
22329# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000022330if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022331 withval=$with_modules; with_modules=$withval
22332else
cristy5a1cefd2010-01-06 20:42:35 +000022333 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000022334fi
22335
22336
22337# Only allow building loadable modules if we are building shared libraries
22338if test "$with_modules" != 'no' ; then
22339 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000022340 { $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 +000022341$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000022342 build_modules='no'
22343 else
22344 build_modules='yes'
22345 fi
cristy3ed852e2009-09-05 21:47:34 +000022346fi
cristyc6722092012-10-14 00:19:31 +000022347if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000022348
cristy8b350f62009-11-15 23:12:43 +000022349$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022350
cristyfa161182012-12-19 15:45:28 +000022351 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000022352fi
cristyc6722092012-10-14 00:19:31 +000022353 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000022354 WITH_MODULES_TRUE=
22355 WITH_MODULES_FALSE='#'
22356else
22357 WITH_MODULES_TRUE='#'
22358 WITH_MODULES_FALSE=
22359fi
22360
cristy3ed852e2009-09-05 21:47:34 +000022361
cristy3ed852e2009-09-05 21:47:34 +000022362# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000022363# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000022364# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000022365if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022366 enableval=$enable_delegate_build; enable_delegate_build=$enableval
22367else
22368 enable_delegate_build='no'
22369fi
22370
22371
22372# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000022373if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022374 enableval=$enable_deprecated; enable_deprecated=$enableval
22375else
22376 enable_deprecated='no'
22377fi
22378
22379
22380if test "$enable_deprecated" = 'yes'; then
22381
cristy8b350f62009-11-15 23:12:43 +000022382$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022383
22384else
22385 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
22386fi
22387
22388# Build a version of ImageMagick which operates uninstalled.
22389# Used to build distributions located via MAGICK_HOME / executable path
22390# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000022391if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022392 enableval=$enable_installed; enable_installed=$enableval
22393else
22394 enable_installed='yes'
22395fi
22396
22397
22398if test "$enable_installed" = 'yes'; then
22399
cristy8b350f62009-11-15 23:12:43 +000022400$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022401
22402else
22403 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
22404fi
22405
22406# Permit enciphering and deciphering image pixels.
22407# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000022408if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022409 enableval=$enable_cipher; enable_cipher=$enableval
22410else
22411 enable_cipher='yes'
22412fi
22413
22414
22415if test "$enable_cipher" = 'yes'; then
22416
cristy8b350f62009-11-15 23:12:43 +000022417$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022418
cristy0f6fc2d2015-05-30 00:49:11 +000022419 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000022420fi
22421
cristy6e3607c2011-09-13 13:59:17 +000022422# Build a zero-configuration version of ImageMagick.
22423# Check whether --enable-zero-configuration was given.
22424if test "${enable_zero_configuration+set}" = set; then :
22425 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000022426else
cristy6e3607c2011-09-13 13:59:17 +000022427 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000022428fi
22429
22430
cristy6e3607c2011-09-13 13:59:17 +000022431if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022432
cristy6e3607c2011-09-13 13:59:17 +000022433$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022434
cristy0f6fc2d2015-05-30 00:49:11 +000022435 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000022436fi
22437
22438# Build a high dynamic range version of ImageMagick.
22439# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000022440if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022441 enableval=$enable_hdri; enable_hdri=$enableval
22442else
cristy191c0b72012-08-12 16:29:52 +000022443 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000022444fi
22445
22446
22447MAGICK_HDRI=""
22448if test "$enable_hdri" = 'yes'; then
22449 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000022450 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000022451 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000022452else
22453 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000022454fi
22455
cristye52f12f2012-12-31 15:32:36 +000022456cat >>confdefs.h <<_ACEOF
22457#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
22458_ACEOF
22459
22460MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22461CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000022462CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000022463
cristy3ed852e2009-09-05 21:47:34 +000022464# Build a version of ImageMagick with assert statements.
22465# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000022466if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022467 enableval=$enable_assert; enable_assert=$enableval
22468else
22469 enable_assert='yes'
22470fi
22471
22472
22473if test "$enable_assert" = 'no'; then
22474
cristy8b350f62009-11-15 23:12:43 +000022475$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022476
22477fi
22478
cristya448bd22011-10-14 12:38:13 +000022479# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000022480
22481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22482$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22483 # Check whether --enable-maintainer-mode was given.
22484if test "${enable_maintainer_mode+set}" = set; then :
22485 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22486else
22487 USE_MAINTAINER_MODE=no
22488fi
22489
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22491$as_echo "$USE_MAINTAINER_MODE" >&6; }
22492 if test $USE_MAINTAINER_MODE = yes; then
22493 MAINTAINER_MODE_TRUE=
22494 MAINTAINER_MODE_FALSE='#'
22495else
22496 MAINTAINER_MODE_TRUE='#'
22497 MAINTAINER_MODE_FALSE=
22498fi
22499
22500 MAINT=$MAINTAINER_MODE_TRUE
22501
22502
cristy3ed852e2009-09-05 21:47:34 +000022503
cristy944e51f2013-04-16 18:45:02 +000022504# Enable hugepages support
22505# Check whether --enable-hugepages was given.
22506if test "${enable_hugepages+set}" = set; then :
22507 enableval=$enable_hugepages; enable_hugepages=$enableval
22508else
22509 enable_hugepages='no'
22510fi
22511
22512
cristy3ed852e2009-09-05 21:47:34 +000022513# Enable ccmalloc memory debugging support
22514# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000022515if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22517else
22518 enable_ccmalloc='no'
22519fi
22520
22521
22522# Enable Electric Fence memory debugging support
22523# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000022524if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022525 enableval=$enable_efence; enable_efence=$enableval
22526else
22527 enable_efence='no'
22528fi
22529
22530
22531# Enable prof-based profiling support
22532# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000022533if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022534 enableval=$enable_prof; enable_prof=$enableval
22535else
22536 enable_prof='no'
22537fi
22538
22539
22540# Enable gprof-based profiling support
22541# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000022542if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022543 enableval=$enable_gprof; enable_gprof=$enableval
22544else
22545 enable_gprof='no'
22546fi
22547
22548
22549# Enable gcov-based profiling support
22550# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000022551if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022552 enableval=$enable_gcov; enable_gcov=$enableval
22553else
22554 enable_gcov='no'
22555fi
22556
22557
22558enable_profiling='no'
22559if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22560 enable_profiling='yes'
22561 if test "$libtool_build_shared_libs" = 'yes'; then
22562 echo "Warning: Can not profile code using shared libraries"
22563 fi
22564fi
22565
22566# Magick API method prefix
22567
22568# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000022569if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000022570 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000022571else
cristyfc3d0222012-02-07 15:05:57 +000022572 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000022573fi
22574
22575
cristyfc3d0222012-02-07 15:05:57 +000022576if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000022577
22578cat >>confdefs.h <<_ACEOF
22579#define NAMESPACE_PREFIX $with_method_prefix
22580_ACEOF
22581
cristyfc3d0222012-02-07 15:05:57 +000022582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022583fi
22584
cristy71d8c202012-03-20 17:05:01 +000022585# Enable legacy support (default no)
22586# Check whether --enable-legacy-support was given.
22587if test "${enable_legacy_support+set}" = set; then :
22588 enableval=$enable_legacy_support; with_legacy_support=$enableval
22589else
22590 with_legacy_support='no'
22591fi
22592
22593 if test "$with_legacy_support" != 'no'; then
22594 LEGACY_SUPPORT_TRUE=
22595 LEGACY_SUPPORT_FALSE='#'
22596else
22597 LEGACY_SUPPORT_TRUE='#'
22598 LEGACY_SUPPORT_FALSE=
22599fi
22600
22601
cristy3ed852e2009-09-05 21:47:34 +000022602# Number of bits in a Quantum
22603
22604# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022605if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022606 withval=$with_quantum_depth; with_quantum_depth=$withval
22607else
22608 with_quantum_depth=16
22609fi
22610
22611
22612if test "$with_quantum_depth" != '8'; then
22613 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22614fi
22615
22616case "${with_quantum_depth}" in
22617 8 ) ;;
22618 16 ) ;;
22619 32 ) ;;
22620 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022621 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022622esac
22623QUANTUM_DEPTH="$with_quantum_depth"
22624
22625cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000022626#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000022627_ACEOF
22628
cristya371edf2013-02-06 13:42:17 +000022629MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000022630CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000022631CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000022632
cristy01ff9f32012-12-01 18:15:29 +000022633# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000022634MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000022635if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000022636 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000022637fi
cristy01ff9f32012-12-01 18:15:29 +000022638
22639
cristy3ed852e2009-09-05 21:47:34 +000022640# Set pixel cache threshold
22641
22642# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022643if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022644 withval=$with_cache; with_cache=$withval
22645else
22646 with_cache=''
22647fi
22648
22649
22650if test "$with_cache" != ''; then
22651
22652cat >>confdefs.h <<_ACEOF
22653#define PixelCacheThreshold $with_cache
22654_ACEOF
22655
22656 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22657fi
22658
22659# Disable/Enable support for full delegate paths
22660
22661# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022662if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022663 withval=$with_frozenpaths; with_frozenpaths=$withval
22664else
22665 with_frozenpaths='no'
22666fi
22667
22668
22669# Enable build/install of Magick++
22670
22671# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022672if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022673 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22674else
22675 with_magick_plus_plus='yes'
22676fi
22677
22678
cristy3a75f062012-09-08 23:29:40 +000022679# Encode the this name into the shared library.
22680
22681# Check whether --with-package-release-name was given.
22682if test "${with_package_release_name+set}" = set; then :
22683 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22684fi
22685
22686
22687
cristy3ed852e2009-09-05 21:47:34 +000022688# Disable build/install of PerlMagick.
22689
22690# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022691if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022692 withval=$with_perl; with_perl=$withval
22693else
cristyb5f4e2f2010-04-25 00:49:11 +000022694 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022695fi
22696
22697
22698# Options to pass when configuring PerlMagick
22699
22700# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022701if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022702 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022703fi
22704
22705
cristy3ed852e2009-09-05 21:47:34 +000022706
cristy3b0097d2014-11-04 15:34:47 +000022707# Enable jemalloc, object-caching memory allocation library.
22708
22709# Check whether --with-jemalloc was given.
22710if test "${with_jemalloc+set}" = set; then :
22711 withval=$with_jemalloc; with_jemalloc=$withval
22712else
22713 with_jemalloc='no'
22714fi
22715
22716if test "$with_jemalloc" != 'yes' ; then
22717 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
22718fi
22719
cristy3ed852e2009-09-05 21:47:34 +000022720# Enable umem, object-caching memory allocation library.
22721
22722# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022723if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022724 withval=$with_umem; with_umem=$withval
22725else
22726 with_umem='no'
22727fi
22728
22729if test "$with_umem" != 'yes' ; then
22730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22731fi
22732
22733#
22734# Specify path to shared libstdc++ if not in normal location
22735#
22736
22737# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022738if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022739 withval=$with_libstdc; with_libstdc=$withval
22740else
22741 with_libstdc=''
22742fi
22743
22744
22745if test "$with_libstdc" != ''; then
22746 if test -d "$with_libstdc"; then
22747 LIBSTDCLDFLAGS="-L$with_libstdc"
22748 fi
22749fi
22750
22751
22752# Does gcc required -traditional?
22753if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022755$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022756if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022757 $as_echo_n "(cached) " >&6
22758else
22759 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022761/* end confdefs.h. */
22762#include <sgtty.h>
22763Autoconf TIOCGETP
22764_ACEOF
22765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022766 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022767 ac_cv_prog_gcc_traditional=yes
22768else
22769 ac_cv_prog_gcc_traditional=no
22770fi
22771rm -f conftest*
22772
22773
22774 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022776/* end confdefs.h. */
22777#include <termio.h>
22778Autoconf TCGETA
22779_ACEOF
22780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022781 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022782 ac_cv_prog_gcc_traditional=yes
22783fi
22784rm -f conftest*
22785
22786 fi
22787fi
cristy8b350f62009-11-15 23:12:43 +000022788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022789$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22790 if test $ac_cv_prog_gcc_traditional = yes; then
22791 CC="$CC -traditional"
22792 fi
22793fi
22794
22795
22796########
22797#
22798# Set defines required to build DLLs and modules using MinGW
22799#
22800########
22801# These options are set for multi-thread DLL module build
22802# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22803# module: _DLL
22804# executable/Magick++: _DLL _MAGICKMOD_
22805MODULE_EXTRA_CPPFLAGS=''
22806LIBRARY_EXTRA_CPPFLAGS=''
22807if test "${native_win32_build}" = 'yes'; then
22808 if test "${libtool_build_shared_libs}" = 'yes'; then
22809 CPPFLAGS="$CPPFLAGS -D_DLL"
22810 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22811 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22812 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022813 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022814 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22815 else
22816 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22817 fi
22818 else
22819 CPPFLAGS="$CPPFLAGS -D_LIB"
22820 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22821 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22822 fi
22823 if test "$with_threads" = 'yes'; then
22824 CPPFLAGS="$CPPFLAGS -D_MT"
22825 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22826 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22827 fi
22828fi
22829
22830
22831
22832# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022834$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022835if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022836 $as_echo_n "(cached) " >&6
22837else
cristy8b350f62009-11-15 23:12:43 +000022838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022839/* end confdefs.h. */
22840#include <stdlib.h>
22841#include <stdarg.h>
22842#include <string.h>
22843#include <float.h>
22844
22845int
22846main ()
22847{
22848
22849 ;
22850 return 0;
22851}
22852_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022853if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022854 ac_cv_header_stdc=yes
22855else
cristy8b350f62009-11-15 23:12:43 +000022856 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022857fi
cristy3ed852e2009-09-05 21:47:34 +000022858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859
22860if test $ac_cv_header_stdc = yes; then
22861 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022863/* end confdefs.h. */
22864#include <string.h>
22865
22866_ACEOF
22867if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022868 $EGREP "memchr" >/dev/null 2>&1; then :
22869
cristy3ed852e2009-09-05 21:47:34 +000022870else
22871 ac_cv_header_stdc=no
22872fi
22873rm -f conftest*
22874
22875fi
22876
22877if test $ac_cv_header_stdc = yes; then
22878 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022880/* end confdefs.h. */
22881#include <stdlib.h>
22882
22883_ACEOF
22884if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022885 $EGREP "free" >/dev/null 2>&1; then :
22886
cristy3ed852e2009-09-05 21:47:34 +000022887else
22888 ac_cv_header_stdc=no
22889fi
22890rm -f conftest*
22891
22892fi
22893
22894if test $ac_cv_header_stdc = yes; then
22895 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022896 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022897 :
22898else
cristy8b350f62009-11-15 23:12:43 +000022899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022900/* end confdefs.h. */
22901#include <ctype.h>
22902#include <stdlib.h>
22903#if ((' ' & 0x0FF) == 0x020)
22904# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22905# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22906#else
22907# define ISLOWER(c) \
22908 (('a' <= (c) && (c) <= 'i') \
22909 || ('j' <= (c) && (c) <= 'r') \
22910 || ('s' <= (c) && (c) <= 'z'))
22911# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22912#endif
22913
22914#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22915int
22916main ()
22917{
22918 int i;
22919 for (i = 0; i < 256; i++)
22920 if (XOR (islower (i), ISLOWER (i))
22921 || toupper (i) != TOUPPER (i))
22922 return 2;
22923 return 0;
22924}
22925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022926if ac_fn_c_try_run "$LINENO"; then :
22927
cristy3ed852e2009-09-05 21:47:34 +000022928else
cristy8b350f62009-11-15 23:12:43 +000022929 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022930fi
cristy8b350f62009-11-15 23:12:43 +000022931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22932 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022933fi
22934
cristy3ed852e2009-09-05 21:47:34 +000022935fi
22936fi
cristy8b350f62009-11-15 23:12:43 +000022937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022938$as_echo "$ac_cv_header_stdc" >&6; }
22939if test $ac_cv_header_stdc = yes; then
22940
cristy8b350f62009-11-15 23:12:43 +000022941$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022942
22943fi
22944
22945if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022946 { $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 +000022947 header files. Compilation cannot proceed. Please install the ANSI C
22948 headers and rerun this script." >&5
22949$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22950 header files. Compilation cannot proceed. Please install the ANSI C
22951 headers and rerun this script." >&2;};
22952fi
cristya0b81c32010-01-22 02:54:33 +000022953
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22955$as_echo_n "checking whether to enable assertions... " >&6; }
22956 # Check whether --enable-assert was given.
22957if test "${enable_assert+set}" = set; then :
22958 enableval=$enable_assert; ac_enable_assert=$enableval
22959 if test "x$enableval" = xno; then :
22960
22961$as_echo "#define NDEBUG 1" >>confdefs.h
22962
22963elif test "x$enableval" != xyes; then :
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22965$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22966 ac_enable_assert=yes
22967fi
22968else
22969 ac_enable_assert=yes
22970fi
22971
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22973$as_echo "$ac_enable_assert" >&6; }
22974
cristy3ed852e2009-09-05 21:47:34 +000022975ac_header_dirent=no
22976for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22977 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022979$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022980if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022981 $as_echo_n "(cached) " >&6
22982else
cristy8b350f62009-11-15 23:12:43 +000022983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022984/* end confdefs.h. */
22985#include <sys/types.h>
22986#include <$ac_hdr>
22987
22988int
22989main ()
22990{
22991if ((DIR *) 0)
22992return 0;
22993 ;
22994 return 0;
22995}
22996_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022997if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022998 eval "$as_ac_Header=yes"
22999else
cristy8b350f62009-11-15 23:12:43 +000023000 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000023001fi
cristy3ed852e2009-09-05 21:47:34 +000023002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23003fi
cristy8b350f62009-11-15 23:12:43 +000023004eval ac_res=\$$as_ac_Header
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000023006$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000023007if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023008 cat >>confdefs.h <<_ACEOF
23009#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23010_ACEOF
23011
23012ac_header_dirent=$ac_hdr; break
23013fi
23014
23015done
23016# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23017if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000023018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000023019$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023020if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023021 $as_echo_n "(cached) " >&6
23022else
23023 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023025/* end confdefs.h. */
23026
23027/* Override any GCC internal prototype to avoid an error.
23028 Use char because int might match the return type of a GCC
23029 builtin and then its argument prototype would still apply. */
23030#ifdef __cplusplus
23031extern "C"
23032#endif
23033char opendir ();
23034int
23035main ()
23036{
23037return opendir ();
23038 ;
23039 return 0;
23040}
23041_ACEOF
23042for ac_lib in '' dir; do
23043 if test -z "$ac_lib"; then
23044 ac_res="none required"
23045 else
23046 ac_res=-l$ac_lib
23047 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23048 fi
cristy8b350f62009-11-15 23:12:43 +000023049 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023050 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000023051fi
cristy8b350f62009-11-15 23:12:43 +000023052rm -f core conftest.err conftest.$ac_objext \
23053 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000023054 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023055 break
23056fi
23057done
cristyda16f162011-02-19 23:52:17 +000023058if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000023059
cristy3ed852e2009-09-05 21:47:34 +000023060else
23061 ac_cv_search_opendir=no
23062fi
23063rm conftest.$ac_ext
23064LIBS=$ac_func_search_save_LIBS
23065fi
cristy8b350f62009-11-15 23:12:43 +000023066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000023067$as_echo "$ac_cv_search_opendir" >&6; }
23068ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000023069if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000023070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23071
23072fi
23073
23074else
cristy8b350f62009-11-15 23:12:43 +000023075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000023076$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023077if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023078 $as_echo_n "(cached) " >&6
23079else
23080 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000023081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023082/* end confdefs.h. */
23083
23084/* Override any GCC internal prototype to avoid an error.
23085 Use char because int might match the return type of a GCC
23086 builtin and then its argument prototype would still apply. */
23087#ifdef __cplusplus
23088extern "C"
23089#endif
23090char opendir ();
23091int
23092main ()
23093{
23094return opendir ();
23095 ;
23096 return 0;
23097}
23098_ACEOF
23099for ac_lib in '' x; do
23100 if test -z "$ac_lib"; then
23101 ac_res="none required"
23102 else
23103 ac_res=-l$ac_lib
23104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23105 fi
cristy8b350f62009-11-15 23:12:43 +000023106 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023107 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000023108fi
cristy8b350f62009-11-15 23:12:43 +000023109rm -f core conftest.err conftest.$ac_objext \
23110 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000023111 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023112 break
23113fi
23114done
cristyda16f162011-02-19 23:52:17 +000023115if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000023116
cristy3ed852e2009-09-05 21:47:34 +000023117else
23118 ac_cv_search_opendir=no
23119fi
23120rm conftest.$ac_ext
23121LIBS=$ac_func_search_save_LIBS
23122fi
cristy8b350f62009-11-15 23:12:43 +000023123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000023124$as_echo "$ac_cv_search_opendir" >&6; }
23125ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000023126if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000023127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23128
23129fi
23130
23131fi
23132
23133
23134# Check additional headers
cristy66988ab2015-05-30 17:20:38 +000023135for 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 +000023136do :
23137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23138ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023139if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023140 cat >>confdefs.h <<_ACEOF
23141#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23142_ACEOF
23143
23144fi
23145
23146done
23147
23148
23149########
23150#
23151# Checks for typedefs, structures, and compiler characteristics.
23152#
23153########
23154
cristy8b350f62009-11-15 23:12:43 +000023155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000023156$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023157if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023158 $as_echo_n "(cached) " >&6
23159else
cristy8b350f62009-11-15 23:12:43 +000023160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023161/* end confdefs.h. */
23162
cristy14fefe52012-05-21 00:59:18 +000023163 #include <stdbool.h>
23164 #ifndef bool
23165 "error: bool is not defined"
23166 #endif
23167 #ifndef false
23168 "error: false is not defined"
23169 #endif
23170 #if false
23171 "error: false is not 0"
23172 #endif
23173 #ifndef true
23174 "error: true is not defined"
23175 #endif
23176 #if true != 1
23177 "error: true is not 1"
23178 #endif
23179 #ifndef __bool_true_false_are_defined
23180 "error: __bool_true_false_are_defined is not defined"
23181 #endif
cristy3ed852e2009-09-05 21:47:34 +000023182
cristy14fefe52012-05-21 00:59:18 +000023183 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000023184
cristy14fefe52012-05-21 00:59:18 +000023185 char a[true == 1 ? 1 : -1];
23186 char b[false == 0 ? 1 : -1];
23187 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23188 char d[(bool) 0.5 == true ? 1 : -1];
23189 /* See body of main program for 'e'. */
23190 char f[(_Bool) 0.0 == false ? 1 : -1];
23191 char g[true];
23192 char h[sizeof (_Bool)];
23193 char i[sizeof s.t];
23194 enum { j = false, k = true, l = false * true, m = true * 256 };
23195 /* The following fails for
23196 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23197 _Bool n[m];
23198 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23199 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23200 /* Catch a bug in an HP-UX C compiler. See
23201 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23202 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
23203 */
23204 _Bool q = true;
23205 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000023206
23207int
23208main ()
23209{
23210
cristy14fefe52012-05-21 00:59:18 +000023211 bool e = &s;
23212 *pq |= q;
23213 *pq |= ! q;
23214 /* Refer to every declared value, to avoid compiler optimizations. */
23215 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
23216 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000023217
23218 ;
23219 return 0;
23220}
23221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023222if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023223 ac_cv_header_stdbool_h=yes
23224else
cristy8b350f62009-11-15 23:12:43 +000023225 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000023226fi
cristy3ed852e2009-09-05 21:47:34 +000023227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228fi
cristy8b350f62009-11-15 23:12:43 +000023229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000023230$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000023231 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000023232if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023233
23234cat >>confdefs.h <<_ACEOF
23235#define HAVE__BOOL 1
23236_ACEOF
23237
23238
23239fi
23240
cristy14fefe52012-05-21 00:59:18 +000023241
cristy3ed852e2009-09-05 21:47:34 +000023242if test $ac_cv_header_stdbool_h = yes; then
23243
cristy8b350f62009-11-15 23:12:43 +000023244$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023245
23246fi
23247
cristy8b350f62009-11-15 23:12:43 +000023248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000023249$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023250if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023251 $as_echo_n "(cached) " >&6
23252else
cristy8b350f62009-11-15 23:12:43 +000023253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023254/* end confdefs.h. */
23255
23256int
23257main ()
23258{
23259
23260volatile int x;
23261int * volatile y = (int *) 0;
23262return !x && !y;
23263 ;
23264 return 0;
23265}
23266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023267if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023268 ac_cv_c_volatile=yes
23269else
cristy8b350f62009-11-15 23:12:43 +000023270 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000023271fi
cristy3ed852e2009-09-05 21:47:34 +000023272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23273fi
cristy8b350f62009-11-15 23:12:43 +000023274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000023275$as_echo "$ac_cv_c_volatile" >&6; }
23276if test $ac_cv_c_volatile = no; then
23277
cristy8b350f62009-11-15 23:12:43 +000023278$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023279
23280fi
23281
cristy8b350f62009-11-15 23:12:43 +000023282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000023283$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023284if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023285 $as_echo_n "(cached) " >&6
23286else
cristy8b350f62009-11-15 23:12:43 +000023287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023288/* end confdefs.h. */
23289#define x(y) #y
23290
23291char *s = x(teststring);
23292_ACEOF
23293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000023294 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000023295 ac_cv_c_stringize=no
23296else
23297 ac_cv_c_stringize=yes
23298fi
23299rm -f conftest*
23300
23301fi
cristy8b350f62009-11-15 23:12:43 +000023302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000023303$as_echo "$ac_cv_c_stringize" >&6; }
23304if test $ac_cv_c_stringize = yes; then
23305
cristy8b350f62009-11-15 23:12:43 +000023306$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023307
23308fi
23309
cristy8b350f62009-11-15 23:12:43 +000023310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000023311$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023312if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023313 $as_echo_n "(cached) " >&6
23314else
cristy8b350f62009-11-15 23:12:43 +000023315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023316/* end confdefs.h. */
23317#include <sys/types.h>
23318#include <sys/stat.h>
23319
23320#if defined S_ISBLK && defined S_IFDIR
23321extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23322#endif
23323
23324#if defined S_ISBLK && defined S_IFCHR
23325extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23326#endif
23327
23328#if defined S_ISLNK && defined S_IFREG
23329extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23330#endif
23331
23332#if defined S_ISSOCK && defined S_IFREG
23333extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23334#endif
23335
23336_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023337if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023338 ac_cv_header_stat_broken=no
23339else
cristy8b350f62009-11-15 23:12:43 +000023340 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000023341fi
cristy3ed852e2009-09-05 21:47:34 +000023342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343fi
cristy8b350f62009-11-15 23:12:43 +000023344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000023345$as_echo "$ac_cv_header_stat_broken" >&6; }
23346if test $ac_cv_header_stat_broken = yes; then
23347
cristy8b350f62009-11-15 23:12:43 +000023348$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023349
23350fi
23351
cristy8b350f62009-11-15 23:12:43 +000023352{ $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 +000023353$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023354if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023355 $as_echo_n "(cached) " >&6
23356else
cristy8b350f62009-11-15 23:12:43 +000023357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023358/* end confdefs.h. */
23359#include <sys/types.h>
23360#include <sys/time.h>
23361#include <time.h>
23362
23363int
23364main ()
23365{
23366if ((struct tm *) 0)
23367return 0;
23368 ;
23369 return 0;
23370}
23371_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023372if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023373 ac_cv_header_time=yes
23374else
cristy8b350f62009-11-15 23:12:43 +000023375 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000023376fi
cristy3ed852e2009-09-05 21:47:34 +000023377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378fi
cristy8b350f62009-11-15 23:12:43 +000023379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000023380$as_echo "$ac_cv_header_time" >&6; }
23381if test $ac_cv_header_time = yes; then
23382
cristy8b350f62009-11-15 23:12:43 +000023383$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023384
23385fi
23386
cristy8b350f62009-11-15 23:12:43 +000023387{ $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 +000023388$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023389if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023390 $as_echo_n "(cached) " >&6
23391else
cristy8b350f62009-11-15 23:12:43 +000023392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023393/* end confdefs.h. */
23394#include <sys/types.h>
23395#include <time.h>
23396
23397int
23398main ()
23399{
23400struct tm tm;
23401 int *p = &tm.tm_sec;
23402 return !p;
23403 ;
23404 return 0;
23405}
23406_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023407if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023408 ac_cv_struct_tm=time.h
23409else
cristy8b350f62009-11-15 23:12:43 +000023410 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000023411fi
cristy3ed852e2009-09-05 21:47:34 +000023412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23413fi
cristy8b350f62009-11-15 23:12:43 +000023414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000023415$as_echo "$ac_cv_struct_tm" >&6; }
23416if test $ac_cv_struct_tm = sys/time.h; then
23417
cristy8b350f62009-11-15 23:12:43 +000023418$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023419
23420fi
23421
cristy92703d82010-04-26 00:18:18 +000023422ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23423#include <$ac_cv_struct_tm>
23424
23425"
cristyda16f162011-02-19 23:52:17 +000023426if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000023427
23428cat >>confdefs.h <<_ACEOF
23429#define HAVE_STRUCT_TM_TM_ZONE 1
23430_ACEOF
23431
23432
23433fi
23434
23435if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23436
23437$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
23438
23439else
23440 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23441"
cristyda16f162011-02-19 23:52:17 +000023442if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000023443 ac_have_decl=1
23444else
23445 ac_have_decl=0
23446fi
23447
23448cat >>confdefs.h <<_ACEOF
23449#define HAVE_DECL_TZNAME $ac_have_decl
23450_ACEOF
23451
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23453$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023454if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000023455 $as_echo_n "(cached) " >&6
23456else
23457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23458/* end confdefs.h. */
23459#include <time.h>
23460#if !HAVE_DECL_TZNAME
23461extern char *tzname[];
23462#endif
23463
23464int
23465main ()
23466{
23467return tzname[0][0];
23468 ;
23469 return 0;
23470}
23471_ACEOF
23472if ac_fn_c_try_link "$LINENO"; then :
23473 ac_cv_var_tzname=yes
23474else
23475 ac_cv_var_tzname=no
23476fi
23477rm -f core conftest.err conftest.$ac_objext \
23478 conftest$ac_exeext conftest.$ac_ext
23479fi
23480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23481$as_echo "$ac_cv_var_tzname" >&6; }
23482 if test $ac_cv_var_tzname = yes; then
23483
23484$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23485
23486 fi
23487fi
23488
cristy8b350f62009-11-15 23:12:43 +000023489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000023490$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023491if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023492 $as_echo_n "(cached) " >&6
23493else
23494 echo '#! /bin/cat
23495exit 69
23496' >conftest
23497chmod u+x conftest
23498(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23499if test $? -ne 69; then
23500 ac_cv_sys_interpreter=yes
23501else
23502 ac_cv_sys_interpreter=no
23503fi
23504rm -f conftest
23505fi
cristy8b350f62009-11-15 23:12:43 +000023506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000023507$as_echo "$ac_cv_sys_interpreter" >&6; }
23508interpval=$ac_cv_sys_interpreter
23509
23510
cristye80f9cb2013-01-09 01:09:31 +000023511#
23512# Checks for language qualifiers and semantics.
23513#
23514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23515$as_echo_n "checking whether char is unsigned... " >&6; }
23516if ${ac_cv_c_char_unsigned+:} false; then :
23517 $as_echo_n "(cached) " >&6
23518else
23519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23520/* end confdefs.h. */
23521$ac_includes_default
23522int
23523main ()
23524{
23525static int test_array [1 - 2 * !(((char) -1) < 0)];
23526test_array [0] = 0;
23527return test_array [0];
23528
23529 ;
23530 return 0;
23531}
23532_ACEOF
23533if ac_fn_c_try_compile "$LINENO"; then :
23534 ac_cv_c_char_unsigned=no
23535else
23536 ac_cv_c_char_unsigned=yes
23537fi
23538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23539fi
23540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23541$as_echo "$ac_cv_c_char_unsigned" >&6; }
23542if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23543 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23544
23545fi
23546
23547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23548$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23549if ${ac_cv_c_const+:} false; then :
23550 $as_echo_n "(cached) " >&6
23551else
23552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23553/* end confdefs.h. */
23554
23555int
23556main ()
23557{
23558
23559#ifndef __cplusplus
23560 /* Ultrix mips cc rejects this sort of thing. */
23561 typedef int charset[2];
23562 const charset cs = { 0, 0 };
23563 /* SunOS 4.1.1 cc rejects this. */
23564 char const *const *pcpcc;
23565 char **ppc;
23566 /* NEC SVR4.0.2 mips cc rejects this. */
23567 struct point {int x, y;};
23568 static struct point const zero = {0,0};
23569 /* AIX XL C 1.02.0.0 rejects this.
23570 It does not let you subtract one const X* pointer from another in
23571 an arm of an if-expression whose if-part is not a constant
23572 expression */
23573 const char *g = "string";
23574 pcpcc = &g + (g ? g-g : 0);
23575 /* HPUX 7.0 cc rejects these. */
23576 ++pcpcc;
23577 ppc = (char**) pcpcc;
23578 pcpcc = (char const *const *) ppc;
23579 { /* SCO 3.2v4 cc rejects this sort of thing. */
23580 char tx;
23581 char *t = &tx;
23582 char const *s = 0 ? (char *) 0 : (char const *) 0;
23583
23584 *t++ = 0;
23585 if (s) return 0;
23586 }
23587 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23588 int x[] = {25, 17};
23589 const int *foo = &x[0];
23590 ++foo;
23591 }
23592 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23593 typedef const int *iptr;
23594 iptr p = 0;
23595 ++p;
23596 }
23597 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23598 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23599 struct s { int j; const int *ap[3]; } bx;
23600 struct s *b = &bx; b->j = 5;
23601 }
23602 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23603 const int foo = 10;
23604 if (!foo) return 0;
23605 }
23606 return !cs[0] && !zero.x;
23607#endif
23608
23609 ;
23610 return 0;
23611}
23612_ACEOF
23613if ac_fn_c_try_compile "$LINENO"; then :
23614 ac_cv_c_const=yes
23615else
23616 ac_cv_c_const=no
23617fi
23618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23619fi
23620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23621$as_echo "$ac_cv_c_const" >&6; }
23622if test $ac_cv_c_const = no; then
23623
23624$as_echo "#define const /**/" >>confdefs.h
23625
23626fi
23627
cristy8b350f62009-11-15 23:12:43 +000023628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023629$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023630if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023631 $as_echo_n "(cached) " >&6
23632else
23633 ac_cv_c_inline=no
23634for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000023635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023636/* end confdefs.h. */
23637#ifndef __cplusplus
23638typedef int foo_t;
23639static $ac_kw foo_t static_foo () {return 0; }
23640$ac_kw foo_t foo () {return 0; }
23641#endif
23642
23643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023645 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023646fi
cristy3ed852e2009-09-05 21:47:34 +000023647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 test "$ac_cv_c_inline" != no && break
23649done
23650
23651fi
cristy8b350f62009-11-15 23:12:43 +000023652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023653$as_echo "$ac_cv_c_inline" >&6; }
23654
cristy3ed852e2009-09-05 21:47:34 +000023655case $ac_cv_c_inline in
23656 inline | yes) ;;
23657 *)
23658 case $ac_cv_c_inline in
23659 no) ac_val=;;
23660 *) ac_val=$ac_cv_c_inline;;
23661 esac
23662 cat >>confdefs.h <<_ACEOF
23663#ifndef __cplusplus
23664#define inline $ac_val
23665#endif
23666_ACEOF
23667 ;;
23668esac
23669
cristy8b350f62009-11-15 23:12:43 +000023670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000023671$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023672if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023673 $as_echo_n "(cached) " >&6
23674else
23675 ac_cv_c_restrict=no
23676 # The order here caters to the fact that C++ does not require restrict.
23677 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000023678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023679/* end confdefs.h. */
23680typedef int * int_ptr;
23681 int foo (int_ptr $ac_kw ip) {
23682 return ip[0];
23683 }
23684int
23685main ()
23686{
23687int s[1];
23688 int * $ac_kw t = s;
23689 t[0] = 0;
23690 return foo(t)
23691 ;
23692 return 0;
23693}
23694_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023695if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023696 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023697fi
cristy3ed852e2009-09-05 21:47:34 +000023698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699 test "$ac_cv_c_restrict" != no && break
23700 done
23701
23702fi
cristy8b350f62009-11-15 23:12:43 +000023703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000023704$as_echo "$ac_cv_c_restrict" >&6; }
23705
cristy3ed852e2009-09-05 21:47:34 +000023706 case $ac_cv_c_restrict in
23707 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000023708 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023709 ;;
23710 *) cat >>confdefs.h <<_ACEOF
23711#define restrict $ac_cv_c_restrict
23712_ACEOF
23713 ;;
23714 esac
23715
cristye80f9cb2013-01-09 01:09:31 +000023716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23717$as_echo_n "checking for working volatile... " >&6; }
23718if ${ac_cv_c_volatile+:} false; then :
23719 $as_echo_n "(cached) " >&6
23720else
23721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23722/* end confdefs.h. */
23723
23724int
23725main ()
23726{
23727
23728volatile int x;
23729int * volatile y = (int *) 0;
23730return !x && !y;
23731 ;
23732 return 0;
23733}
23734_ACEOF
23735if ac_fn_c_try_compile "$LINENO"; then :
23736 ac_cv_c_volatile=yes
23737else
23738 ac_cv_c_volatile=no
23739fi
23740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741fi
23742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23743$as_echo "$ac_cv_c_volatile" >&6; }
23744if test $ac_cv_c_volatile = no; then
23745
23746$as_echo "#define volatile /**/" >>confdefs.h
23747
23748fi
23749
cristy3ed852e2009-09-05 21:47:34 +000023750
23751# If words are stored with the most significant byte first (like
23752# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023754$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023755if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023756 $as_echo_n "(cached) " >&6
23757else
23758 ac_cv_c_bigendian=unknown
23759 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023761/* end confdefs.h. */
23762#ifndef __APPLE_CC__
23763 not a universal capable compiler
23764 #endif
23765 typedef int dummy;
23766
23767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023768if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023769
23770 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023771 # there are at least two -arch flags with different values.
23772 ac_arch=
23773 ac_prev=
23774 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23775 if test -n "$ac_prev"; then
23776 case $ac_word in
23777 i?86 | x86_64 | ppc | ppc64)
23778 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23779 ac_arch=$ac_word
23780 else
23781 ac_cv_c_bigendian=universal
23782 break
23783 fi
23784 ;;
23785 esac
23786 ac_prev=
23787 elif test "x$ac_word" = "x-arch"; then
23788 ac_prev=arch
23789 fi
23790 done
cristy3ed852e2009-09-05 21:47:34 +000023791fi
cristy3ed852e2009-09-05 21:47:34 +000023792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793 if test $ac_cv_c_bigendian = unknown; then
23794 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023796/* end confdefs.h. */
23797#include <sys/types.h>
23798 #include <sys/param.h>
23799
23800int
23801main ()
23802{
23803#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23804 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23805 && LITTLE_ENDIAN)
23806 bogus endian macros
23807 #endif
23808
23809 ;
23810 return 0;
23811}
23812_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023813if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023814 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023816/* end confdefs.h. */
23817#include <sys/types.h>
23818 #include <sys/param.h>
23819
23820int
23821main ()
23822{
23823#if BYTE_ORDER != BIG_ENDIAN
23824 not big endian
23825 #endif
23826
23827 ;
23828 return 0;
23829}
23830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023831if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023832 ac_cv_c_bigendian=yes
23833else
cristy8b350f62009-11-15 23:12:43 +000023834 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023835fi
cristy3ed852e2009-09-05 21:47:34 +000023836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023837fi
cristy3ed852e2009-09-05 21:47:34 +000023838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23839 fi
23840 if test $ac_cv_c_bigendian = unknown; then
23841 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023843/* end confdefs.h. */
23844#include <limits.h>
23845
23846int
23847main ()
23848{
23849#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23850 bogus endian macros
23851 #endif
23852
23853 ;
23854 return 0;
23855}
23856_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023857if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023858 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023860/* end confdefs.h. */
23861#include <limits.h>
23862
23863int
23864main ()
23865{
23866#ifndef _BIG_ENDIAN
23867 not big endian
23868 #endif
23869
23870 ;
23871 return 0;
23872}
23873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023874if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023875 ac_cv_c_bigendian=yes
23876else
cristy8b350f62009-11-15 23:12:43 +000023877 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023878fi
cristy3ed852e2009-09-05 21:47:34 +000023879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023880fi
cristy3ed852e2009-09-05 21:47:34 +000023881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23882 fi
23883 if test $ac_cv_c_bigendian = unknown; then
23884 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023885 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023886 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023888/* end confdefs.h. */
23889short int ascii_mm[] =
23890 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23891 short int ascii_ii[] =
23892 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23893 int use_ascii (int i) {
23894 return ascii_mm[i] + ascii_ii[i];
23895 }
23896 short int ebcdic_ii[] =
23897 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23898 short int ebcdic_mm[] =
23899 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23900 int use_ebcdic (int i) {
23901 return ebcdic_mm[i] + ebcdic_ii[i];
23902 }
23903 extern int foo;
23904
23905int
23906main ()
23907{
23908return use_ascii (foo) == use_ebcdic (foo);
23909 ;
23910 return 0;
23911}
23912_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023913if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023914 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23915 ac_cv_c_bigendian=yes
23916 fi
23917 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23918 if test "$ac_cv_c_bigendian" = unknown; then
23919 ac_cv_c_bigendian=no
23920 else
23921 # finding both strings is unlikely to happen, but who knows?
23922 ac_cv_c_bigendian=unknown
23923 fi
23924 fi
cristy3ed852e2009-09-05 21:47:34 +000023925fi
cristy3ed852e2009-09-05 21:47:34 +000023926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927else
cristy8b350f62009-11-15 23:12:43 +000023928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023929/* end confdefs.h. */
23930$ac_includes_default
23931int
23932main ()
23933{
23934
23935 /* Are we little or big endian? From Harbison&Steele. */
23936 union
23937 {
23938 long int l;
23939 char c[sizeof (long int)];
23940 } u;
23941 u.l = 1;
23942 return u.c[sizeof (long int) - 1] == 1;
23943
23944 ;
23945 return 0;
23946}
23947_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023948if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023949 ac_cv_c_bigendian=no
23950else
cristy8b350f62009-11-15 23:12:43 +000023951 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023952fi
cristy8b350f62009-11-15 23:12:43 +000023953rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23954 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023955fi
23956
cristy3ed852e2009-09-05 21:47:34 +000023957 fi
23958fi
cristy8b350f62009-11-15 23:12:43 +000023959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023960$as_echo "$ac_cv_c_bigendian" >&6; }
23961 case $ac_cv_c_bigendian in #(
23962 yes)
cristy8b350f62009-11-15 23:12:43 +000023963 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023964;; #(
23965 no)
23966 ;; #(
23967 universal)
23968
cristy8b350f62009-11-15 23:12:43 +000023969$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023970
23971 ;; #(
23972 *)
cristy98dddb52010-11-04 00:30:15 +000023973 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023974 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023975 esac
23976
23977
cristy501c8042011-05-26 17:46:28 +000023978# Define to a suitable type, if standard headers do not define it.
23979ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23980case $ac_cv_c_int8_t in #(
23981 no|yes) ;; #(
23982 *)
cristy3ed852e2009-09-05 21:47:34 +000023983
23984cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023985#define int8_t $ac_cv_c_int8_t
23986_ACEOF
23987;;
23988esac
23989
23990ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23991case $ac_cv_c_int16_t in #(
23992 no|yes) ;; #(
23993 *)
23994
23995cat >>confdefs.h <<_ACEOF
23996#define int16_t $ac_cv_c_int16_t
23997_ACEOF
23998;;
23999esac
24000
24001ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
24002case $ac_cv_c_int32_t in #(
24003 no|yes) ;; #(
24004 *)
24005
24006cat >>confdefs.h <<_ACEOF
24007#define int32_t $ac_cv_c_int32_t
24008_ACEOF
24009;;
24010esac
24011
24012ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
24013case $ac_cv_c_int64_t in #(
24014 no|yes) ;; #(
24015 *)
24016
24017cat >>confdefs.h <<_ACEOF
24018#define int64_t $ac_cv_c_int64_t
24019_ACEOF
24020;;
24021esac
24022
24023
cristy045228a2013-06-23 11:00:16 +000024024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24025$as_echo_n "checking for unsigned long long int... " >&6; }
24026if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000024027 $as_echo_n "(cached) " >&6
24028else
cristy045228a2013-06-23 11:00:16 +000024029 ac_cv_type_unsigned_long_long_int=yes
24030 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000024032/* end confdefs.h. */
24033
24034 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000024035 implementations with broken preprocessors. Perhaps this can
24036 be revisited in 2012. In the meantime, code should not expect
24037 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000024038 /* Test literals. */
24039 long long int ll = 9223372036854775807ll;
24040 long long int nll = -9223372036854775807LL;
24041 unsigned long long int ull = 18446744073709551615ULL;
24042 /* Test constant expressions. */
24043 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000024044 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024045 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000024046 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024047 int i = 63;
24048int
24049main ()
24050{
24051/* Test availability of runtime routines for shift and division. */
24052 long long int llmax = 9223372036854775807ll;
24053 unsigned long long int ullmax = 18446744073709551615ull;
24054 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000024055 | (llmax / ll) | (llmax % ll)
24056 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24057 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000024058 ;
24059 return 0;
24060}
24061
24062_ACEOF
24063if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024064
24065else
24066 ac_cv_type_unsigned_long_long_int=no
24067fi
24068rm -f core conftest.err conftest.$ac_objext \
24069 conftest$ac_exeext conftest.$ac_ext
24070 fi
24071fi
24072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24073$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24074 if test $ac_cv_type_unsigned_long_long_int = yes; then
24075
24076$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24077
24078 fi
24079
24080
24081
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24083$as_echo_n "checking for long long int... " >&6; }
24084if ${ac_cv_type_long_long_int+:} false; then :
24085 $as_echo_n "(cached) " >&6
24086else
cristy501c8042011-05-26 17:46:28 +000024087 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000024088 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000024089 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24090 if test $ac_cv_type_long_long_int = yes; then
24091 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000024092 :
cristy501c8042011-05-26 17:46:28 +000024093else
24094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24095/* end confdefs.h. */
24096#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000024097 #ifndef LLONG_MAX
24098 # define HALF \
24099 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24100 # define LLONG_MAX (HALF - 1 + HALF)
24101 #endif
cristy501c8042011-05-26 17:46:28 +000024102int
24103main ()
24104{
24105long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000024106 int i;
24107 for (i = 0; ; i++)
24108 {
24109 long long int m = n << i;
24110 if (m >> i != n)
24111 return 1;
24112 if (LLONG_MAX / 2 < m)
24113 break;
24114 }
24115 return 0;
cristy501c8042011-05-26 17:46:28 +000024116 ;
24117 return 0;
24118}
24119_ACEOF
24120if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024121
cristy501c8042011-05-26 17:46:28 +000024122else
24123 ac_cv_type_long_long_int=no
24124fi
24125rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24126 conftest.$ac_objext conftest.beam conftest.$ac_ext
24127fi
24128
cristy5ed9c6e2013-07-14 21:20:31 +000024129 fi
cristy045228a2013-06-23 11:00:16 +000024130 fi
cristy501c8042011-05-26 17:46:28 +000024131fi
24132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24133$as_echo "$ac_cv_type_long_long_int" >&6; }
24134 if test $ac_cv_type_long_long_int = yes; then
24135
24136$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24137
24138 fi
24139
24140
24141
24142 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24143if test "x$ac_cv_type_intmax_t" = xyes; then :
24144
24145$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24146
24147else
24148 test $ac_cv_type_long_long_int = yes \
24149 && ac_type='long long int' \
24150 || ac_type='long int'
24151
24152cat >>confdefs.h <<_ACEOF
24153#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000024154_ACEOF
24155
24156fi
24157
24158
cristy501c8042011-05-26 17:46:28 +000024159
24160 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24161if test "x$ac_cv_type_intptr_t" = xyes; then :
24162
24163$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024164
cristy3ed852e2009-09-05 21:47:34 +000024165else
cristy501c8042011-05-26 17:46:28 +000024166 for ac_type in 'int' 'long int' 'long long int'; do
24167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24168/* end confdefs.h. */
24169$ac_includes_default
24170int
24171main ()
24172{
24173static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000024174test_array [0] = 0;
24175return test_array [0];
cristy501c8042011-05-26 17:46:28 +000024176
24177 ;
24178 return 0;
24179}
24180_ACEOF
24181if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024182
24183cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000024184#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000024185_ACEOF
24186
cristy501c8042011-05-26 17:46:28 +000024187 ac_type=
24188fi
24189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24190 test -z "$ac_type" && break
24191 done
cristy3ed852e2009-09-05 21:47:34 +000024192fi
24193
24194
cristy3ed852e2009-09-05 21:47:34 +000024195
cristy501c8042011-05-26 17:46:28 +000024196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24197$as_echo_n "checking for long double... " >&6; }
24198if ${ac_cv_type_long_double+:} false; then :
24199 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000024200else
cristy501c8042011-05-26 17:46:28 +000024201 if test "$GCC" = yes; then
24202 ac_cv_type_long_double=yes
24203 else
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205/* end confdefs.h. */
24206/* The Stardent Vistra knows sizeof (long double), but does
24207 not support it. */
24208 long double foo = 0.0L;
24209int
24210main ()
24211{
24212static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
24213 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000024214test_array [0] = 0;
24215return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000024216
cristy501c8042011-05-26 17:46:28 +000024217 ;
24218 return 0;
24219}
cristy3ed852e2009-09-05 21:47:34 +000024220_ACEOF
cristy501c8042011-05-26 17:46:28 +000024221if ac_fn_c_try_compile "$LINENO"; then :
24222 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000024223else
cristy501c8042011-05-26 17:46:28 +000024224 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000024225fi
cristy501c8042011-05-26 17:46:28 +000024226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24227 fi
cristy3ed852e2009-09-05 21:47:34 +000024228fi
cristy501c8042011-05-26 17:46:28 +000024229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
24230$as_echo "$ac_cv_type_long_double" >&6; }
24231 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000024232
cristy501c8042011-05-26 17:46:28 +000024233$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024234
cristy501c8042011-05-26 17:46:28 +000024235 fi
24236
cristy3ed852e2009-09-05 21:47:34 +000024237
cristy8b350f62009-11-15 23:12:43 +000024238 { $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 +000024239$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024240if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024241 $as_echo_n "(cached) " >&6
24242else
cristy8b350f62009-11-15 23:12:43 +000024243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024244/* end confdefs.h. */
24245#include <float.h>
24246 long double const a[] =
24247 {
24248 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24249 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24250 };
24251 long double
24252 f (long double x)
24253 {
24254 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24255 + (x ? f (x) : 'c'));
24256 }
24257
24258int
24259main ()
24260{
24261static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24262 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24263 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24264 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24265 && (int) LDBL_EPSILON == 0
24266 )];
cristy14fefe52012-05-21 00:59:18 +000024267test_array [0] = 0;
24268return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000024269
24270 ;
24271 return 0;
24272}
24273_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024274if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024275 ac_cv_type_long_double_wider=yes
24276else
cristy8b350f62009-11-15 23:12:43 +000024277 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000024278fi
cristy3ed852e2009-09-05 21:47:34 +000024279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24280fi
cristy8b350f62009-11-15 23:12:43 +000024281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000024282$as_echo "$ac_cv_type_long_double_wider" >&6; }
24283 if test $ac_cv_type_long_double_wider = yes; then
24284
cristy8b350f62009-11-15 23:12:43 +000024285$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024286
24287 fi
24288
24289
cristy045228a2013-06-23 11:00:16 +000024290
cristy501c8042011-05-26 17:46:28 +000024291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24292$as_echo_n "checking for long long int... " >&6; }
24293if ${ac_cv_type_long_long_int+:} false; then :
24294 $as_echo_n "(cached) " >&6
24295else
cristy501c8042011-05-26 17:46:28 +000024296 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000024297 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000024298 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24299 if test $ac_cv_type_long_long_int = yes; then
24300 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000024301 :
cristy501c8042011-05-26 17:46:28 +000024302else
24303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24304/* end confdefs.h. */
24305#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000024306 #ifndef LLONG_MAX
24307 # define HALF \
24308 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24309 # define LLONG_MAX (HALF - 1 + HALF)
24310 #endif
cristy501c8042011-05-26 17:46:28 +000024311int
24312main ()
24313{
24314long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000024315 int i;
24316 for (i = 0; ; i++)
24317 {
24318 long long int m = n << i;
24319 if (m >> i != n)
24320 return 1;
24321 if (LLONG_MAX / 2 < m)
24322 break;
24323 }
24324 return 0;
cristy501c8042011-05-26 17:46:28 +000024325 ;
24326 return 0;
24327}
24328_ACEOF
24329if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024330
cristy501c8042011-05-26 17:46:28 +000024331else
24332 ac_cv_type_long_long_int=no
24333fi
24334rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24335 conftest.$ac_objext conftest.beam conftest.$ac_ext
24336fi
24337
cristy5ed9c6e2013-07-14 21:20:31 +000024338 fi
cristy045228a2013-06-23 11:00:16 +000024339 fi
cristy501c8042011-05-26 17:46:28 +000024340fi
24341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24342$as_echo "$ac_cv_type_long_long_int" >&6; }
24343 if test $ac_cv_type_long_long_int = yes; then
24344
24345$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24346
24347 fi
24348
24349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
24350$as_echo_n "checking for mbstate_t... " >&6; }
24351if ${ac_cv_type_mbstate_t+:} false; then :
24352 $as_echo_n "(cached) " >&6
24353else
24354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24355/* end confdefs.h. */
24356$ac_includes_default
24357# include <wchar.h>
24358int
24359main ()
24360{
24361mbstate_t x; return sizeof x;
24362 ;
24363 return 0;
24364}
24365_ACEOF
24366if ac_fn_c_try_compile "$LINENO"; then :
24367 ac_cv_type_mbstate_t=yes
24368else
24369 ac_cv_type_mbstate_t=no
24370fi
24371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24372fi
24373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24374$as_echo "$ac_cv_type_mbstate_t" >&6; }
24375 if test $ac_cv_type_mbstate_t = yes; then
24376
24377$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24378
24379 else
24380
24381$as_echo "#define mbstate_t int" >>confdefs.h
24382
24383 fi
24384ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24385if test "x$ac_cv_type_mode_t" = xyes; then :
24386
24387else
24388
24389cat >>confdefs.h <<_ACEOF
24390#define mode_t int
24391_ACEOF
24392
24393fi
24394
24395ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24396if test "x$ac_cv_type_off_t" = xyes; then :
24397
24398else
24399
24400cat >>confdefs.h <<_ACEOF
24401#define off_t long int
24402_ACEOF
24403
24404fi
24405
24406ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24407if test "x$ac_cv_type_pid_t" = xyes; then :
24408
24409else
24410
24411cat >>confdefs.h <<_ACEOF
24412#define pid_t int
24413_ACEOF
24414
24415fi
24416
24417ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24418if test "x$ac_cv_type_size_t" = xyes; then :
24419
24420else
24421
24422cat >>confdefs.h <<_ACEOF
24423#define size_t unsigned int
24424_ACEOF
24425
24426fi
24427
24428ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24429if test "x$ac_cv_type_ssize_t" = xyes; then :
24430
24431else
24432
24433cat >>confdefs.h <<_ACEOF
24434#define ssize_t int
24435_ACEOF
24436
24437fi
24438
24439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24440$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24441if ${ac_cv_type_uid_t+:} false; then :
24442 $as_echo_n "(cached) " >&6
24443else
24444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445/* end confdefs.h. */
24446#include <sys/types.h>
24447
24448_ACEOF
24449if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24450 $EGREP "uid_t" >/dev/null 2>&1; then :
24451 ac_cv_type_uid_t=yes
24452else
24453 ac_cv_type_uid_t=no
24454fi
24455rm -f conftest*
24456
24457fi
24458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24459$as_echo "$ac_cv_type_uid_t" >&6; }
24460if test $ac_cv_type_uid_t = no; then
24461
24462$as_echo "#define uid_t int" >>confdefs.h
24463
24464
24465$as_echo "#define gid_t int" >>confdefs.h
24466
24467fi
24468
24469ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24470case $ac_cv_c_uint8_t in #(
24471 no|yes) ;; #(
24472 *)
24473
24474$as_echo "#define _UINT8_T 1" >>confdefs.h
24475
24476
24477cat >>confdefs.h <<_ACEOF
24478#define uint8_t $ac_cv_c_uint8_t
24479_ACEOF
24480;;
24481 esac
24482
24483ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24484case $ac_cv_c_uint16_t in #(
24485 no|yes) ;; #(
24486 *)
24487
24488
24489cat >>confdefs.h <<_ACEOF
24490#define uint16_t $ac_cv_c_uint16_t
24491_ACEOF
24492;;
24493 esac
24494
24495ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24496case $ac_cv_c_uint32_t in #(
24497 no|yes) ;; #(
24498 *)
24499
24500$as_echo "#define _UINT32_T 1" >>confdefs.h
24501
24502
24503cat >>confdefs.h <<_ACEOF
24504#define uint32_t $ac_cv_c_uint32_t
24505_ACEOF
24506;;
24507 esac
24508
24509ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24510case $ac_cv_c_uint64_t in #(
24511 no|yes) ;; #(
24512 *)
24513
24514$as_echo "#define _UINT64_T 1" >>confdefs.h
24515
24516
24517cat >>confdefs.h <<_ACEOF
24518#define uint64_t $ac_cv_c_uint64_t
24519_ACEOF
24520;;
24521 esac
24522
24523
cristy501c8042011-05-26 17:46:28 +000024524
24525 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24526if test "x$ac_cv_type_uintmax_t" = xyes; then :
24527
24528$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
24529
24530else
24531 test $ac_cv_type_unsigned_long_long_int = yes \
24532 && ac_type='unsigned long long int' \
24533 || ac_type='unsigned long int'
24534
24535cat >>confdefs.h <<_ACEOF
24536#define uintmax_t $ac_type
24537_ACEOF
24538
24539fi
24540
24541
24542
24543 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24544if test "x$ac_cv_type_uintptr_t" = xyes; then :
24545
24546$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24547
24548else
24549 for ac_type in 'unsigned int' 'unsigned long int' \
24550 'unsigned long long int'; do
24551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24552/* end confdefs.h. */
24553$ac_includes_default
24554int
24555main ()
24556{
24557static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000024558test_array [0] = 0;
24559return test_array [0];
cristy501c8042011-05-26 17:46:28 +000024560
24561 ;
24562 return 0;
24563}
24564_ACEOF
24565if ac_fn_c_try_compile "$LINENO"; then :
24566
24567cat >>confdefs.h <<_ACEOF
24568#define uintptr_t $ac_type
24569_ACEOF
24570
24571 ac_type=
24572fi
24573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 test -z "$ac_type" && break
24575 done
24576fi
24577
24578
24579
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24581$as_echo_n "checking for unsigned long long int... " >&6; }
24582if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24583 $as_echo_n "(cached) " >&6
24584else
cristy045228a2013-06-23 11:00:16 +000024585 ac_cv_type_unsigned_long_long_int=yes
24586 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000024588/* end confdefs.h. */
24589
24590 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000024591 implementations with broken preprocessors. Perhaps this can
24592 be revisited in 2012. In the meantime, code should not expect
24593 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000024594 /* Test literals. */
24595 long long int ll = 9223372036854775807ll;
24596 long long int nll = -9223372036854775807LL;
24597 unsigned long long int ull = 18446744073709551615ULL;
24598 /* Test constant expressions. */
24599 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000024600 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024601 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000024602 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000024603 int i = 63;
24604int
24605main ()
24606{
24607/* Test availability of runtime routines for shift and division. */
24608 long long int llmax = 9223372036854775807ll;
24609 unsigned long long int ullmax = 18446744073709551615ull;
24610 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000024611 | (llmax / ll) | (llmax % ll)
24612 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24613 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000024614 ;
24615 return 0;
24616}
24617
24618_ACEOF
24619if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000024620
cristy501c8042011-05-26 17:46:28 +000024621else
24622 ac_cv_type_unsigned_long_long_int=no
24623fi
24624rm -f core conftest.err conftest.$ac_objext \
24625 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000024626 fi
cristy501c8042011-05-26 17:46:28 +000024627fi
24628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24629$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24630 if test $ac_cv_type_unsigned_long_long_int = yes; then
24631
24632$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24633
24634 fi
24635
24636
cristy708922a2015-05-17 02:33:56 +000024637ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
24638"
cristy98beafc2015-05-14 19:55:55 +000024639if test "x$ac_cv_type_locale_t" = xyes; then :
24640
24641cat >>confdefs.h <<_ACEOF
24642#define HAVE_LOCALE_T 1
24643_ACEOF
24644
24645
24646fi
24647
24648
cristyfec31822013-05-23 12:32:12 +000024649# Float_t and double_t are intended to be the the most efficient type.
24650ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
24651"
24652if test "x$ac_cv_type_float_t" = xyes; then :
24653
24654cat >>confdefs.h <<_ACEOF
24655#define HAVE_FLOAT_T 1
24656_ACEOF
24657
24658
24659fi
24660
24661ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
24662"
24663if test "x$ac_cv_type_double_t" = xyes; then :
24664
24665cat >>confdefs.h <<_ACEOF
24666#define HAVE_DOUBLE_T 1
24667_ACEOF
24668
24669
24670fi
24671
24672# The cast to long int works around a bug in the HP C Compiler
24673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24675# This bug is HP SR number 8606223364.
24676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
24677$as_echo_n "checking size of float_t... " >&6; }
24678if ${ac_cv_sizeof_float_t+:} false; then :
24679 $as_echo_n "(cached) " >&6
24680else
24681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
24682"; then :
24683
24684else
24685 if test "$ac_cv_type_float_t" = yes; then
24686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24687$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24688as_fn_error 77 "cannot compute sizeof (float_t)
24689See \`config.log' for more details" "$LINENO" 5; }
24690 else
24691 ac_cv_sizeof_float_t=0
24692 fi
24693fi
24694
24695fi
24696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
24697$as_echo "$ac_cv_sizeof_float_t" >&6; }
24698
24699
24700
24701cat >>confdefs.h <<_ACEOF
24702#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
24703_ACEOF
24704
24705
24706# The cast to long int works around a bug in the HP C Compiler
24707# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24708# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24709# This bug is HP SR number 8606223364.
24710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
24711$as_echo_n "checking size of double_t... " >&6; }
24712if ${ac_cv_sizeof_double_t+:} false; then :
24713 $as_echo_n "(cached) " >&6
24714else
24715 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
24716"; then :
24717
24718else
24719 if test "$ac_cv_type_double_t" = yes; then
24720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24722as_fn_error 77 "cannot compute sizeof (double_t)
24723See \`config.log' for more details" "$LINENO" 5; }
24724 else
24725 ac_cv_sizeof_double_t=0
24726 fi
24727fi
24728
24729fi
24730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
24731$as_echo "$ac_cv_sizeof_double_t" >&6; }
24732
24733
24734
24735cat >>confdefs.h <<_ACEOF
24736#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
24737_ACEOF
24738
24739
24740
cristy9b86f202012-11-28 21:55:35 +000024741# Get size of float, double and long double for comparaison.
24742# The cast to long int works around a bug in the HP C Compiler
24743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24745# This bug is HP SR number 8606223364.
24746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
24747$as_echo_n "checking size of float... " >&6; }
24748if ${ac_cv_sizeof_float+:} false; then :
24749 $as_echo_n "(cached) " >&6
24750else
24751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
24752
24753else
24754 if test "$ac_cv_type_float" = yes; then
24755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24757as_fn_error 77 "cannot compute sizeof (float)
24758See \`config.log' for more details" "$LINENO" 5; }
24759 else
24760 ac_cv_sizeof_float=0
24761 fi
24762fi
24763
24764fi
24765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
24766$as_echo "$ac_cv_sizeof_float" >&6; }
24767
24768
24769
24770cat >>confdefs.h <<_ACEOF
24771#define SIZEOF_FLOAT $ac_cv_sizeof_float
24772_ACEOF
24773
24774
24775# The cast to long int works around a bug in the HP C Compiler
24776# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24777# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24778# This bug is HP SR number 8606223364.
24779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
24780$as_echo_n "checking size of double... " >&6; }
24781if ${ac_cv_sizeof_double+:} false; then :
24782 $as_echo_n "(cached) " >&6
24783else
24784 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
24785
24786else
24787 if test "$ac_cv_type_double" = yes; then
24788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24790as_fn_error 77 "cannot compute sizeof (double)
24791See \`config.log' for more details" "$LINENO" 5; }
24792 else
24793 ac_cv_sizeof_double=0
24794 fi
24795fi
24796
24797fi
24798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
24799$as_echo "$ac_cv_sizeof_double" >&6; }
24800
24801
24802
24803cat >>confdefs.h <<_ACEOF
24804#define SIZEOF_DOUBLE $ac_cv_sizeof_double
24805_ACEOF
24806
24807
cristy9e2b6242014-03-25 11:49:41 +000024808# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000024809# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24810# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24811# This bug is HP SR number 8606223364.
24812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
24813$as_echo_n "checking size of long double... " >&6; }
24814if ${ac_cv_sizeof_long_double+:} false; then :
24815 $as_echo_n "(cached) " >&6
24816else
24817 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
24818
24819else
24820 if test "$ac_cv_type_long_double" = yes; then
24821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24822$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24823as_fn_error 77 "cannot compute sizeof (long double)
24824See \`config.log' for more details" "$LINENO" 5; }
24825 else
24826 ac_cv_sizeof_long_double=0
24827 fi
24828fi
24829
24830fi
24831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
24832$as_echo "$ac_cv_sizeof_long_double" >&6; }
24833
24834
24835
24836cat >>confdefs.h <<_ACEOF
24837#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
24838_ACEOF
24839
24840
cristyf0cf9a22012-10-24 12:05:01 +000024841
cristy3ed852e2009-09-05 21:47:34 +000024842# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24843# The cast to long int works around a bug in the HP C Compiler
24844# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24845# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24846# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024848$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024849if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024850 $as_echo_n "(cached) " >&6
24851else
cristy8b350f62009-11-15 23:12:43 +000024852 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 +000024853
cristy3ed852e2009-09-05 21:47:34 +000024854else
cristy8b350f62009-11-15 23:12:43 +000024855 if test "$ac_cv_type_signed_short" = yes; then
24856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024858as_fn_error 77 "cannot compute sizeof (signed short)
24859See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024860 else
24861 ac_cv_sizeof_signed_short=0
24862 fi
24863fi
cristy8b350f62009-11-15 23:12:43 +000024864
cristy3ed852e2009-09-05 21:47:34 +000024865fi
cristy8b350f62009-11-15 23:12:43 +000024866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024867$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24868
24869
24870
24871cat >>confdefs.h <<_ACEOF
24872#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24873_ACEOF
24874
24875
24876
24877# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24878# The cast to long int works around a bug in the HP C Compiler
24879# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24880# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24881# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024883$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024884if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024885 $as_echo_n "(cached) " >&6
24886else
cristy8b350f62009-11-15 23:12:43 +000024887 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 +000024888
cristy3ed852e2009-09-05 21:47:34 +000024889else
cristy8b350f62009-11-15 23:12:43 +000024890 if test "$ac_cv_type_unsigned_short" = yes; then
24891 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024892$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024893as_fn_error 77 "cannot compute sizeof (unsigned short)
24894See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024895 else
24896 ac_cv_sizeof_unsigned_short=0
24897 fi
24898fi
cristy8b350f62009-11-15 23:12:43 +000024899
cristy3ed852e2009-09-05 21:47:34 +000024900fi
cristy8b350f62009-11-15 23:12:43 +000024901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024902$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24903
24904
24905
24906cat >>confdefs.h <<_ACEOF
24907#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24908_ACEOF
24909
24910
24911
24912# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24913# The cast to long int works around a bug in the HP C Compiler
24914# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24915# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24916# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024918$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024919if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024920 $as_echo_n "(cached) " >&6
24921else
cristy8b350f62009-11-15 23:12:43 +000024922 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 +000024923
cristy3ed852e2009-09-05 21:47:34 +000024924else
cristy8b350f62009-11-15 23:12:43 +000024925 if test "$ac_cv_type_signed_int" = yes; then
24926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024927$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024928as_fn_error 77 "cannot compute sizeof (signed int)
24929See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024930 else
24931 ac_cv_sizeof_signed_int=0
24932 fi
24933fi
cristy8b350f62009-11-15 23:12:43 +000024934
cristy3ed852e2009-09-05 21:47:34 +000024935fi
cristy8b350f62009-11-15 23:12:43 +000024936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024937$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24938
24939
24940
24941cat >>confdefs.h <<_ACEOF
24942#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24943_ACEOF
24944
24945
24946
24947# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24948# The cast to long int works around a bug in the HP C Compiler
24949# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24950# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24951# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024953$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024954if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024955 $as_echo_n "(cached) " >&6
24956else
cristy8b350f62009-11-15 23:12:43 +000024957 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 +000024958
cristy3ed852e2009-09-05 21:47:34 +000024959else
cristy8b350f62009-11-15 23:12:43 +000024960 if test "$ac_cv_type_unsigned_int" = yes; then
24961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024962$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024963as_fn_error 77 "cannot compute sizeof (unsigned int)
24964See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024965 else
24966 ac_cv_sizeof_unsigned_int=0
24967 fi
24968fi
cristy8b350f62009-11-15 23:12:43 +000024969
cristy3ed852e2009-09-05 21:47:34 +000024970fi
cristy8b350f62009-11-15 23:12:43 +000024971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024972$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24973
24974
24975
24976cat >>confdefs.h <<_ACEOF
24977#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24978_ACEOF
24979
24980
24981
24982# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24983# The cast to long int works around a bug in the HP C Compiler
24984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24986# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024988$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024989if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024990 $as_echo_n "(cached) " >&6
24991else
cristy8b350f62009-11-15 23:12:43 +000024992 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 +000024993
cristy3ed852e2009-09-05 21:47:34 +000024994else
cristy8b350f62009-11-15 23:12:43 +000024995 if test "$ac_cv_type_signed_long" = yes; then
24996 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024997$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024998as_fn_error 77 "cannot compute sizeof (signed long)
24999See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000025000 else
25001 ac_cv_sizeof_signed_long=0
25002 fi
25003fi
cristy8b350f62009-11-15 23:12:43 +000025004
cristy3ed852e2009-09-05 21:47:34 +000025005fi
cristy8b350f62009-11-15 23:12:43 +000025006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025007$as_echo "$ac_cv_sizeof_signed_long" >&6; }
25008
25009
25010
25011cat >>confdefs.h <<_ACEOF
25012#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
25013_ACEOF
25014
25015
25016
25017# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
25018# The cast to long int works around a bug in the HP C Compiler
25019# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25020# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25021# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000025022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025023$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025024if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025025 $as_echo_n "(cached) " >&6
25026else
cristy8b350f62009-11-15 23:12:43 +000025027 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 +000025028
cristy3ed852e2009-09-05 21:47:34 +000025029else
cristy8b350f62009-11-15 23:12:43 +000025030 if test "$ac_cv_type_unsigned_long" = yes; then
25031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000025033as_fn_error 77 "cannot compute sizeof (unsigned long)
25034See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000025035 else
25036 ac_cv_sizeof_unsigned_long=0
25037 fi
25038fi
cristy8b350f62009-11-15 23:12:43 +000025039
cristy3ed852e2009-09-05 21:47:34 +000025040fi
cristy8b350f62009-11-15 23:12:43 +000025041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025042$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
25043
25044
25045
25046cat >>confdefs.h <<_ACEOF
25047#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25048_ACEOF
25049
25050
25051
25052# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
25053# 'signed long long' is not supported then the value defined is zero.
25054# The cast to long int works around a bug in the HP C Compiler
25055# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25056# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25057# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000025058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025060if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025061 $as_echo_n "(cached) " >&6
25062else
cristy8b350f62009-11-15 23:12:43 +000025063 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 +000025064
cristy3ed852e2009-09-05 21:47:34 +000025065else
cristy8b350f62009-11-15 23:12:43 +000025066 if test "$ac_cv_type_signed_long_long" = yes; then
25067 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000025068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000025069as_fn_error 77 "cannot compute sizeof (signed long long)
25070See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000025071 else
25072 ac_cv_sizeof_signed_long_long=0
25073 fi
25074fi
cristy8b350f62009-11-15 23:12:43 +000025075
cristy3ed852e2009-09-05 21:47:34 +000025076fi
cristy8b350f62009-11-15 23:12:43 +000025077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025078$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
25079
25080
25081
25082cat >>confdefs.h <<_ACEOF
25083#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
25084_ACEOF
25085
25086
25087
25088# Obtain size of a 'unsigned long long' and define as
25089# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
25090# supported then the value defined is zero.
25091# The cast to long int works around a bug in the HP C Compiler
25092# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25093# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25094# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000025095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025096$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025097if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025098 $as_echo_n "(cached) " >&6
25099else
cristy8b350f62009-11-15 23:12:43 +000025100 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 +000025101
cristy3ed852e2009-09-05 21:47:34 +000025102else
cristy8b350f62009-11-15 23:12:43 +000025103 if test "$ac_cv_type_unsigned_long_long" = yes; then
25104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000025105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000025106as_fn_error 77 "cannot compute sizeof (unsigned long long)
25107See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000025108 else
25109 ac_cv_sizeof_unsigned_long_long=0
25110 fi
25111fi
cristy8b350f62009-11-15 23:12:43 +000025112
cristy3ed852e2009-09-05 21:47:34 +000025113fi
cristy8b350f62009-11-15 23:12:43 +000025114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000025115$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
25116
25117
25118
25119cat >>confdefs.h <<_ACEOF
25120#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25121_ACEOF
25122
25123
25124
cristyfec31822013-05-23 12:32:12 +000025125# Obtain size of off_t and define as SIZEOF_OFF_T
25126# The cast to long int works around a bug in the HP C Compiler
25127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25129# This bug is HP SR number 8606223364.
25130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
25131$as_echo_n "checking size of off_t... " >&6; }
25132if ${ac_cv_sizeof_off_t+:} false; then :
25133 $as_echo_n "(cached) " >&6
25134else
25135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
25136
25137else
25138 if test "$ac_cv_type_off_t" = yes; then
25139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25141as_fn_error 77 "cannot compute sizeof (off_t)
25142See \`config.log' for more details" "$LINENO" 5; }
25143 else
25144 ac_cv_sizeof_off_t=0
25145 fi
25146fi
25147
25148fi
25149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
25150$as_echo "$ac_cv_sizeof_off_t" >&6; }
25151
25152
25153
25154cat >>confdefs.h <<_ACEOF
25155#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25156_ACEOF
25157
25158
25159
25160# Obtain size of size_t and define as SIZEOF_SIZE_T
25161# The cast to long int works around a bug in the HP C Compiler
25162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25164# This bug is HP SR number 8606223364.
25165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
25166$as_echo_n "checking size of size_t... " >&6; }
25167if ${ac_cv_sizeof_size_t+:} false; then :
25168 $as_echo_n "(cached) " >&6
25169else
25170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
25171
25172else
25173 if test "$ac_cv_type_size_t" = yes; then
25174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25176as_fn_error 77 "cannot compute sizeof (size_t)
25177See \`config.log' for more details" "$LINENO" 5; }
25178 else
25179 ac_cv_sizeof_size_t=0
25180 fi
25181fi
25182
25183fi
25184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
25185$as_echo "$ac_cv_sizeof_size_t" >&6; }
25186
25187
25188
25189cat >>confdefs.h <<_ACEOF
25190#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25191_ACEOF
25192
25193
25194
25195# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
25196# The cast to long int works around a bug in the HP C Compiler
25197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25199# This bug is HP SR number 8606223364.
25200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
25201$as_echo_n "checking size of ssize_t... " >&6; }
25202if ${ac_cv_sizeof_ssize_t+:} false; then :
25203 $as_echo_n "(cached) " >&6
25204else
25205 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
25206
25207else
25208 if test "$ac_cv_type_ssize_t" = yes; then
25209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25211as_fn_error 77 "cannot compute sizeof (ssize_t)
25212See \`config.log' for more details" "$LINENO" 5; }
25213 else
25214 ac_cv_sizeof_ssize_t=0
25215 fi
25216fi
25217
25218fi
25219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
25220$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
25221
25222
25223
25224cat >>confdefs.h <<_ACEOF
25225#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
25226_ACEOF
25227
25228
25229
cristy3ed852e2009-09-05 21:47:34 +000025230# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
25231# The cast to long int works around a bug in the HP C Compiler
25232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25234# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000025235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000025236$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025237if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025238 $as_echo_n "(cached) " >&6
25239else
cristy8b350f62009-11-15 23:12:43 +000025240 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 +000025241
cristy3ed852e2009-09-05 21:47:34 +000025242else
cristy8b350f62009-11-15 23:12:43 +000025243 if test "$ac_cv_type_unsigned_intp" = yes; then
25244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000025245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000025246as_fn_error 77 "cannot compute sizeof (unsigned int*)
25247See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000025248 else
25249 ac_cv_sizeof_unsigned_intp=0
25250 fi
25251fi
cristy8b350f62009-11-15 23:12:43 +000025252
cristy3ed852e2009-09-05 21:47:34 +000025253fi
cristy8b350f62009-11-15 23:12:43 +000025254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025255$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
25256
25257
25258
25259cat >>confdefs.h <<_ACEOF
25260#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
25261_ACEOF
25262
25263
25264
25265#
25266# Compute sized types for current CPU and compiler options.
25267#
25268
cristy8b350f62009-11-15 23:12:43 +000025269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025270$as_echo_n "checking for signed 8-bit type... " >&6; }
25271INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000025272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
25273$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025274
25275
cristy8b350f62009-11-15 23:12:43 +000025276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025277$as_echo_n "checking for unsigned 8-bit type... " >&6; }
25278UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000025279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
25280$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025281
25282
cristy8b350f62009-11-15 23:12:43 +000025283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025284$as_echo_n "checking for signed 16-bit type... " >&6; }
25285INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000025286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
25287$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025288
25289
cristy8b350f62009-11-15 23:12:43 +000025290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025291$as_echo_n "checking for unsigned 16-bit type... " >&6; }
25292UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000025293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
25294$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025295
25296
cristy8b350f62009-11-15 23:12:43 +000025297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025298$as_echo_n "checking for signed 32-bit type... " >&6; }
25299INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025300INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025301if test $ac_cv_sizeof_signed_int -eq 4; then
25302 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000025303 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000025304elif test $ac_cv_sizeof_signed_long -eq 4; then
25305 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000025306 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025307fi
cristyad38abe2012-12-23 23:03:21 +000025308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
25309$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025310
25311
cristy6d5e20f2011-04-25 13:48:54 +000025312
cristy8b350f62009-11-15 23:12:43 +000025313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025314$as_echo_n "checking for unsigned 32-bit type... " >&6; }
25315UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025316UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025317if test $ac_cv_sizeof_unsigned_int -eq 4; then
25318 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000025319 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000025320elif test $ac_cv_sizeof_unsigned_long -eq 4; then
25321 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025322 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025323fi
cristyad38abe2012-12-23 23:03:21 +000025324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
25325$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025326
25327
cristy6d5e20f2011-04-25 13:48:54 +000025328
cristy8b350f62009-11-15 23:12:43 +000025329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025330$as_echo_n "checking for signed 64-bit type... " >&6; }
25331INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025332INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025333if test $ac_cv_sizeof_signed_long -eq 8; then
25334 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000025335 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025336elif test $ac_cv_sizeof_signed_long_long -eq 8; then
25337 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000025338 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025339fi
cristy3a99dcf2011-12-17 01:29:40 +000025340case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000025341 mingw* )
25342 INT64_F='"I64"'
25343 ;;
25344esac
cristyad38abe2012-12-23 23:03:21 +000025345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
25346$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025347
25348
cristy6d5e20f2011-04-25 13:48:54 +000025349
cristy8b350f62009-11-15 23:12:43 +000025350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025351$as_echo_n "checking for unsigned 64-bit type... " >&6; }
25352UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025353UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025354if test $ac_cv_sizeof_unsigned_long -eq 8; then
25355 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025356 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025357elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
25358 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000025359 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025360fi
cristy3a99dcf2011-12-17 01:29:40 +000025361case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000025362 mingw* )
25363 UINT64_F='"I64"'
25364 ;;
25365esac
cristyad38abe2012-12-23 23:03:21 +000025366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
25367$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025368
25369
cristy6d5e20f2011-04-25 13:48:54 +000025370
cristy8b350f62009-11-15 23:12:43 +000025371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025372$as_echo_n "checking for unsigned maximum type... " >&6; }
25373UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025374UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025375if test "$UINT64_T" != 'none'; then
25376 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000025377 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000025378elif test "$UINT32_T" != 'none'; then
25379 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000025380 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000025381fi
cristyad38abe2012-12-23 23:03:21 +000025382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
25383$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025384
25385
cristy6d5e20f2011-04-25 13:48:54 +000025386
cristy8b350f62009-11-15 23:12:43 +000025387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000025388$as_echo_n "checking for pointer difference type... " >&6; }
25389UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000025390UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000025391if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
25392 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000025393 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000025394elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
25395 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000025396 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000025397fi
cristyad38abe2012-12-23 23:03:21 +000025398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
25399$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025400
25401
cristy6d5e20f2011-04-25 13:48:54 +000025402
cristy8b350f62009-11-15 23:12:43 +000025403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000025404$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025405cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025406/* end confdefs.h. */
25407
25408int
25409main ()
25410{
25411{ const char *func = __func__; return(func != 0 ? 0 : 1); }
25412 ;
25413 return 0;
25414}
25415_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025416if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000025417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25418$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025419else
cristyad38abe2012-12-23 23:03:21 +000025420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25421$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000025422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000025423$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025425/* end confdefs.h. */
25426
25427int
25428main ()
25429{
25430{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
25431 ;
25432 return 0;
25433}
25434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025435if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000025436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25437$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025438
cristy8b350f62009-11-15 23:12:43 +000025439$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025440
25441else
cristyad38abe2012-12-23 23:03:21 +000025442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25443$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000025444
cristy8b350f62009-11-15 23:12:43 +000025445$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025446
25447fi
cristy3ed852e2009-09-05 21:47:34 +000025448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25449fi
cristy3ed852e2009-09-05 21:47:34 +000025450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25451
25452########
25453#
25454# Check for functions
25455#
25456########
cristy8b350f62009-11-15 23:12:43 +000025457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025459if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 $as_echo_n "(cached) " >&6
25461else
cristy8b350f62009-11-15 23:12:43 +000025462 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025463 ac_cv_func_closedir_void=yes
25464else
cristy8b350f62009-11-15 23:12:43 +000025465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025466/* end confdefs.h. */
25467$ac_includes_default
25468#include <$ac_header_dirent>
25469#ifndef __cplusplus
25470int closedir ();
25471#endif
25472
25473int
25474main ()
25475{
25476return closedir (opendir (".")) != 0;
25477 ;
25478 return 0;
25479}
25480_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025481if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025482 ac_cv_func_closedir_void=no
25483else
cristy8b350f62009-11-15 23:12:43 +000025484 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000025485fi
cristy8b350f62009-11-15 23:12:43 +000025486rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25487 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025488fi
25489
cristy3ed852e2009-09-05 21:47:34 +000025490fi
cristy8b350f62009-11-15 23:12:43 +000025491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo "$ac_cv_func_closedir_void" >&6; }
25493if test $ac_cv_func_closedir_void = yes; then
25494
cristy8b350f62009-11-15 23:12:43 +000025495$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025496
25497fi
25498
cristycd4c5312009-11-22 01:19:08 +000025499
25500
25501
25502 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000025503do :
25504 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000025505ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25506"
cristy98dddb52010-11-04 00:30:15 +000025507if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025508 cat >>confdefs.h <<_ACEOF
25509#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25510_ACEOF
25511
25512fi
25513
25514done
25515
cristycd4c5312009-11-22 01:19:08 +000025516
25517
25518
25519
25520
25521
25522
cristy3ed852e2009-09-05 21:47:34 +000025523for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000025524do :
25525 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000025526if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025527 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025528#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000025529_ACEOF
25530
25531fi
25532done
25533
cristy8b350f62009-11-15 23:12:43 +000025534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000025535$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025536if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025537 $as_echo_n "(cached) " >&6
25538else
cristy8b350f62009-11-15 23:12:43 +000025539 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025540 ac_cv_func_mmap_fixed_mapped=no
25541else
cristy8b350f62009-11-15 23:12:43 +000025542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025543/* end confdefs.h. */
25544$ac_includes_default
25545/* malloc might have been renamed as rpl_malloc. */
25546#undef malloc
25547
25548/* Thanks to Mike Haertel and Jim Avera for this test.
25549 Here is a matrix of mmap possibilities:
25550 mmap private not fixed
25551 mmap private fixed at somewhere currently unmapped
25552 mmap private fixed at somewhere already mapped
25553 mmap shared not fixed
25554 mmap shared fixed at somewhere currently unmapped
25555 mmap shared fixed at somewhere already mapped
25556 For private mappings, we should verify that changes cannot be read()
25557 back from the file, nor mmap's back from the file at a different
25558 address. (There have been systems where private was not correctly
25559 implemented like the infamous i386 svr4.0, and systems where the
25560 VM page cache was not coherent with the file system buffer cache
25561 like early versions of FreeBSD and possibly contemporary NetBSD.)
25562 For shared mappings, we should conversely verify that changes get
25563 propagated back to all the places they're supposed to be.
25564
25565 Grep wants private fixed already mapped.
25566 The main things grep needs to know about mmap are:
25567 * does it exist and is it safe to write into the mmap'd area
25568 * how to use it (BSD variants) */
25569
25570#include <fcntl.h>
25571#include <sys/mman.h>
25572
25573#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25574char *malloc ();
25575#endif
25576
25577/* This mess was copied from the GNU getpagesize.h. */
25578#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000025579# ifdef _SC_PAGESIZE
25580# define getpagesize() sysconf(_SC_PAGESIZE)
25581# else /* no _SC_PAGESIZE */
25582# ifdef HAVE_SYS_PARAM_H
25583# include <sys/param.h>
25584# ifdef EXEC_PAGESIZE
25585# define getpagesize() EXEC_PAGESIZE
25586# else /* no EXEC_PAGESIZE */
25587# ifdef NBPG
25588# define getpagesize() NBPG * CLSIZE
25589# ifndef CLSIZE
25590# define CLSIZE 1
25591# endif /* no CLSIZE */
25592# else /* no NBPG */
25593# ifdef NBPC
25594# define getpagesize() NBPC
25595# else /* no NBPC */
25596# ifdef PAGESIZE
25597# define getpagesize() PAGESIZE
25598# endif /* PAGESIZE */
25599# endif /* no NBPC */
25600# endif /* no NBPG */
25601# endif /* no EXEC_PAGESIZE */
25602# else /* no HAVE_SYS_PARAM_H */
25603# define getpagesize() 8192 /* punt totally */
25604# endif /* no HAVE_SYS_PARAM_H */
25605# endif /* no _SC_PAGESIZE */
25606
25607#endif /* no HAVE_GETPAGESIZE */
25608
25609int
25610main ()
25611{
25612 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000025613 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000025614 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000025615 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000025616
25617 pagesize = getpagesize ();
25618
25619 /* First, make a file with some known garbage in it. */
25620 data = (char *) malloc (pagesize);
25621 if (!data)
25622 return 1;
25623 for (i = 0; i < pagesize; ++i)
25624 *(data + i) = rand ();
25625 umask (0);
25626 fd = creat ("conftest.mmap", 0600);
25627 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025628 return 2;
cristy3ed852e2009-09-05 21:47:34 +000025629 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025630 return 3;
cristy3ed852e2009-09-05 21:47:34 +000025631 close (fd);
25632
cristycd4c5312009-11-22 01:19:08 +000025633 /* Next, check that the tail of a page is zero-filled. File must have
25634 non-zero length, otherwise we risk SIGBUS for entire page. */
25635 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25636 if (fd2 < 0)
25637 return 4;
cristyc54f5d42009-11-27 21:36:31 +000025638 cdata2 = "";
25639 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000025640 return 5;
cristyc54f5d42009-11-27 21:36:31 +000025641 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000025642 if (data2 == MAP_FAILED)
25643 return 6;
25644 for (i = 0; i < pagesize; ++i)
25645 if (*(data2 + i))
25646 return 7;
25647 close (fd2);
25648 if (munmap (data2, pagesize))
25649 return 8;
25650
cristy3ed852e2009-09-05 21:47:34 +000025651 /* Next, try to mmap the file at a fixed address which already has
25652 something else allocated at it. If we can, also make sure that
25653 we see the same garbage. */
25654 fd = open ("conftest.mmap", O_RDWR);
25655 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025656 return 9;
cristy3ed852e2009-09-05 21:47:34 +000025657 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25658 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000025659 return 10;
cristy3ed852e2009-09-05 21:47:34 +000025660 for (i = 0; i < pagesize; ++i)
25661 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000025662 return 11;
cristy3ed852e2009-09-05 21:47:34 +000025663
25664 /* Finally, make sure that changes to the mapped area do not
25665 percolate back to the file as seen by read(). (This is a bug on
25666 some variants of i386 svr4.0.) */
25667 for (i = 0; i < pagesize; ++i)
25668 *(data2 + i) = *(data2 + i) + 1;
25669 data3 = (char *) malloc (pagesize);
25670 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000025671 return 12;
cristy3ed852e2009-09-05 21:47:34 +000025672 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025673 return 13;
cristy3ed852e2009-09-05 21:47:34 +000025674 for (i = 0; i < pagesize; ++i)
25675 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000025676 return 14;
cristy3ed852e2009-09-05 21:47:34 +000025677 close (fd);
25678 return 0;
25679}
25680_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025681if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025682 ac_cv_func_mmap_fixed_mapped=yes
25683else
cristy8b350f62009-11-15 23:12:43 +000025684 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000025685fi
cristy8b350f62009-11-15 23:12:43 +000025686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25687 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025688fi
25689
cristy3ed852e2009-09-05 21:47:34 +000025690fi
cristy8b350f62009-11-15 23:12:43 +000025691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000025692$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25693if test $ac_cv_func_mmap_fixed_mapped = yes; then
25694
cristy8b350f62009-11-15 23:12:43 +000025695$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025696
25697fi
cristycd4c5312009-11-22 01:19:08 +000025698rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025699
cristy3ed852e2009-09-05 21:47:34 +000025700for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025701do :
25702 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025703if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025704 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025705#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025706_ACEOF
25707
25708fi
25709
25710done
25711
cristy3ed852e2009-09-05 21:47:34 +000025712for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025713do :
25714 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25715ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025716if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025717 cat >>confdefs.h <<_ACEOF
25718#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25719_ACEOF
25720
25721fi
25722done
25723
25724if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025726$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025727if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025728 $as_echo_n "(cached) " >&6
25729else
cristy8b350f62009-11-15 23:12:43 +000025730 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025731 ac_cv_func_fork_works=cross
25732else
cristy8b350f62009-11-15 23:12:43 +000025733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025734/* end confdefs.h. */
25735$ac_includes_default
25736int
25737main ()
25738{
25739
25740 /* By Ruediger Kuhlmann. */
25741 return fork () < 0;
25742
25743 ;
25744 return 0;
25745}
25746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025747if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025748 ac_cv_func_fork_works=yes
25749else
cristy8b350f62009-11-15 23:12:43 +000025750 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025751fi
cristy8b350f62009-11-15 23:12:43 +000025752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25753 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025754fi
25755
cristy3ed852e2009-09-05 21:47:34 +000025756fi
cristy8b350f62009-11-15 23:12:43 +000025757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025758$as_echo "$ac_cv_func_fork_works" >&6; }
25759
25760else
25761 ac_cv_func_fork_works=$ac_cv_func_fork
25762fi
25763if test "x$ac_cv_func_fork_works" = xcross; then
25764 case $host in
25765 *-*-amigaos* | *-*-msdosdjgpp*)
25766 # Override, as these systems have only a dummy fork() stub
25767 ac_cv_func_fork_works=no
25768 ;;
25769 *)
25770 ac_cv_func_fork_works=yes
25771 ;;
25772 esac
cristy8b350f62009-11-15 23:12:43 +000025773 { $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 +000025774$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25775fi
25776ac_cv_func_vfork_works=$ac_cv_func_vfork
25777if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025779$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025780if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025781 $as_echo_n "(cached) " >&6
25782else
cristy8b350f62009-11-15 23:12:43 +000025783 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025784 ac_cv_func_vfork_works=cross
25785else
cristy8b350f62009-11-15 23:12:43 +000025786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025787/* end confdefs.h. */
25788/* Thanks to Paul Eggert for this test. */
25789$ac_includes_default
25790#include <sys/wait.h>
25791#ifdef HAVE_VFORK_H
25792# include <vfork.h>
25793#endif
25794/* On some sparc systems, changes by the child to local and incoming
25795 argument registers are propagated back to the parent. The compiler
25796 is told about this with #include <vfork.h>, but some compilers
25797 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25798 static variable whose address is put into a register that is
25799 clobbered by the vfork. */
25800static void
25801#ifdef __cplusplus
25802sparc_address_test (int arg)
25803# else
25804sparc_address_test (arg) int arg;
25805#endif
25806{
25807 static pid_t child;
25808 if (!child) {
25809 child = vfork ();
25810 if (child < 0) {
25811 perror ("vfork");
25812 _exit(2);
25813 }
25814 if (!child) {
25815 arg = getpid();
25816 write(-1, "", 0);
25817 _exit (arg);
25818 }
25819 }
25820}
25821
25822int
25823main ()
25824{
25825 pid_t parent = getpid ();
25826 pid_t child;
25827
25828 sparc_address_test (0);
25829
25830 child = vfork ();
25831
25832 if (child == 0) {
25833 /* Here is another test for sparc vfork register problems. This
25834 test uses lots of local variables, at least as many local
25835 variables as main has allocated so far including compiler
25836 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25837 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25838 reuse the register of parent for one of the local variables,
25839 since it will think that parent can't possibly be used any more
25840 in this routine. Assigning to the local variable will thus
25841 munge parent in the parent process. */
25842 pid_t
25843 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25844 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25845 /* Convince the compiler that p..p7 are live; otherwise, it might
25846 use the same hardware register for all 8 local variables. */
25847 if (p != p1 || p != p2 || p != p3 || p != p4
25848 || p != p5 || p != p6 || p != p7)
25849 _exit(1);
25850
25851 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25852 from child file descriptors. If the child closes a descriptor
25853 before it execs or exits, this munges the parent's descriptor
25854 as well. Test for this by closing stdout in the child. */
25855 _exit(close(fileno(stdout)) != 0);
25856 } else {
25857 int status;
25858 struct stat st;
25859
25860 while (wait(&status) != child)
25861 ;
25862 return (
25863 /* Was there some problem with vforking? */
25864 child < 0
25865
25866 /* Did the child fail? (This shouldn't happen.) */
25867 || status
25868
25869 /* Did the vfork/compiler bug occur? */
25870 || parent != getpid()
25871
25872 /* Did the file descriptor bug occur? */
25873 || fstat(fileno(stdout), &st) != 0
25874 );
25875 }
25876}
25877_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025878if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025879 ac_cv_func_vfork_works=yes
25880else
cristy8b350f62009-11-15 23:12:43 +000025881 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025882fi
cristy8b350f62009-11-15 23:12:43 +000025883rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25884 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025885fi
25886
cristy3ed852e2009-09-05 21:47:34 +000025887fi
cristy8b350f62009-11-15 23:12:43 +000025888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo "$ac_cv_func_vfork_works" >&6; }
25890
25891fi;
25892if test "x$ac_cv_func_fork_works" = xcross; then
25893 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025894 { $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 +000025895$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25896fi
25897
25898if test "x$ac_cv_func_vfork_works" = xyes; then
25899
cristy8b350f62009-11-15 23:12:43 +000025900$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025901
25902else
25903
cristy8b350f62009-11-15 23:12:43 +000025904$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025905
25906fi
25907if test "x$ac_cv_func_fork_works" = xyes; then
25908
cristy8b350f62009-11-15 23:12:43 +000025909$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025910
25911fi
25912
cristy8b350f62009-11-15 23:12:43 +000025913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025914$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025915if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025916 $as_echo_n "(cached) " >&6
25917else
cristy8b350f62009-11-15 23:12:43 +000025918 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025919 ac_cv_func_memcmp_working=no
25920else
cristy8b350f62009-11-15 23:12:43 +000025921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025922/* end confdefs.h. */
25923$ac_includes_default
25924int
25925main ()
25926{
25927
25928 /* Some versions of memcmp are not 8-bit clean. */
25929 char c0 = '\100', c1 = '\200', c2 = '\201';
25930 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25931 return 1;
25932
25933 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25934 or more and with at least one buffer not starting on a 4-byte boundary.
25935 William Lewis provided this test program. */
25936 {
25937 char foo[21];
25938 char bar[21];
25939 int i;
25940 for (i = 0; i < 4; i++)
25941 {
25942 char *a = foo + i;
25943 char *b = bar + i;
25944 strcpy (a, "--------01111111");
25945 strcpy (b, "--------10000000");
25946 if (memcmp (a, b, 16) >= 0)
25947 return 1;
25948 }
25949 return 0;
25950 }
25951
25952 ;
25953 return 0;
25954}
25955_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025956if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 ac_cv_func_memcmp_working=yes
25958else
cristy8b350f62009-11-15 23:12:43 +000025959 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025960fi
cristy8b350f62009-11-15 23:12:43 +000025961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25962 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025963fi
25964
cristy3ed852e2009-09-05 21:47:34 +000025965fi
cristy8b350f62009-11-15 23:12:43 +000025966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025967$as_echo "$ac_cv_func_memcmp_working" >&6; }
25968test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25969 *" memcmp.$ac_objext "* ) ;;
25970 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25971 ;;
25972esac
25973
25974
cristy3ed852e2009-09-05 21:47:34 +000025975for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025976do :
25977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25978ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025979if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025980 cat >>confdefs.h <<_ACEOF
25981#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25982_ACEOF
25983
25984fi
25985
25986done
25987
cristy8b350f62009-11-15 23:12:43 +000025988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025989$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025990if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025991 $as_echo_n "(cached) " >&6
25992else
25993 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25994 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25995 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025997/* end confdefs.h. */
25998$ac_includes_default
25999#ifdef HAVE_SYS_SELECT_H
26000# include <sys/select.h>
26001#endif
26002#ifdef HAVE_SYS_SOCKET_H
26003# include <sys/socket.h>
26004#endif
26005
26006int
26007main ()
26008{
26009extern int select ($ac_arg1,
26010 $ac_arg234, $ac_arg234, $ac_arg234,
26011 $ac_arg5);
26012 ;
26013 return 0;
26014}
26015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026016if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026017 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000026018fi
cristy3ed852e2009-09-05 21:47:34 +000026019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26020 done
26021 done
26022done
26023# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000026024: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000026025
26026fi
cristy8b350f62009-11-15 23:12:43 +000026027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000026028$as_echo "$ac_cv_func_select_args" >&6; }
26029ac_save_IFS=$IFS; IFS=','
26030set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26031IFS=$ac_save_IFS
26032shift
26033
26034cat >>confdefs.h <<_ACEOF
26035#define SELECT_TYPE_ARG1 $1
26036_ACEOF
26037
26038
26039cat >>confdefs.h <<_ACEOF
26040#define SELECT_TYPE_ARG234 ($2)
26041_ACEOF
26042
26043
26044cat >>confdefs.h <<_ACEOF
26045#define SELECT_TYPE_ARG5 ($3)
26046_ACEOF
26047
26048rm -f conftest*
26049
cristyda16f162011-02-19 23:52:17 +000026050if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026051 $as_echo_n "(cached) " >&6
26052else
26053 ac_cv_func_setvbuf_reversed=no
26054fi
26055
26056
cristy8b350f62009-11-15 23:12:43 +000026057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000026058$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026059if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026060 $as_echo_n "(cached) " >&6
26061else
cristy8b350f62009-11-15 23:12:43 +000026062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026063/* end confdefs.h. */
26064#include <sys/types.h>
26065#include <signal.h>
26066
26067int
26068main ()
26069{
26070return *(signal (0, 0)) (0) == 1;
26071 ;
26072 return 0;
26073}
26074_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026075if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026076 ac_cv_type_signal=int
26077else
cristy8b350f62009-11-15 23:12:43 +000026078 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000026079fi
cristy3ed852e2009-09-05 21:47:34 +000026080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26081fi
cristy8b350f62009-11-15 23:12:43 +000026082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000026083$as_echo "$ac_cv_type_signal" >&6; }
26084
26085cat >>confdefs.h <<_ACEOF
26086#define RETSIGTYPE $ac_cv_type_signal
26087_ACEOF
26088
26089
cristy8b350f62009-11-15 23:12:43 +000026090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000026091$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026092if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026093 $as_echo_n "(cached) " >&6
26094else
cristy8b350f62009-11-15 23:12:43 +000026095 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 ac_cv_func_strtod=no
26097else
cristy8b350f62009-11-15 23:12:43 +000026098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026099/* end confdefs.h. */
26100
26101$ac_includes_default
26102#ifndef strtod
26103double strtod ();
26104#endif
26105int
26106main()
26107{
26108 {
26109 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
26110 char *string = " +69";
26111 char *term;
26112 double value;
26113 value = strtod (string, &term);
26114 if (value != 69 || term != (string + 4))
26115 return 1;
26116 }
26117
26118 {
26119 /* Under Solaris 2.4, strtod returns the wrong value for the
26120 terminating character under some conditions. */
26121 char *string = "NaN";
26122 char *term;
26123 strtod (string, &term);
26124 if (term != string && *(term - 1) == 0)
26125 return 1;
26126 }
26127 return 0;
26128}
26129
26130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026131if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026132 ac_cv_func_strtod=yes
26133else
cristy8b350f62009-11-15 23:12:43 +000026134 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000026135fi
cristy8b350f62009-11-15 23:12:43 +000026136rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26137 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138fi
26139
cristy3ed852e2009-09-05 21:47:34 +000026140fi
cristy8b350f62009-11-15 23:12:43 +000026141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000026142$as_echo "$ac_cv_func_strtod" >&6; }
26143if test $ac_cv_func_strtod = no; then
26144 case " $LIBOBJS " in
26145 *" strtod.$ac_objext "* ) ;;
26146 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
26147 ;;
26148esac
26149
cristy8b350f62009-11-15 23:12:43 +000026150ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000026151if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026152
cristy3ed852e2009-09-05 21:47:34 +000026153fi
26154
cristy3ed852e2009-09-05 21:47:34 +000026155if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000026156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000026157$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026158if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026159 $as_echo_n "(cached) " >&6
26160else
26161 ac_check_lib_save_LIBS=$LIBS
26162LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026164/* end confdefs.h. */
26165
26166/* Override any GCC internal prototype to avoid an error.
26167 Use char because int might match the return type of a GCC
26168 builtin and then its argument prototype would still apply. */
26169#ifdef __cplusplus
26170extern "C"
26171#endif
26172char pow ();
26173int
26174main ()
26175{
26176return pow ();
26177 ;
26178 return 0;
26179}
26180_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026181if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026182 ac_cv_lib_m_pow=yes
26183else
cristy8b350f62009-11-15 23:12:43 +000026184 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000026185fi
cristy8b350f62009-11-15 23:12:43 +000026186rm -f core conftest.err conftest.$ac_objext \
26187 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026188LIBS=$ac_check_lib_save_LIBS
26189fi
cristy8b350f62009-11-15 23:12:43 +000026190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000026191$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000026192if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 POW_LIB=-lm
26194else
cristy8b350f62009-11-15 23:12:43 +000026195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000026196$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
26197fi
26198
26199fi
26200
26201fi
26202
cristy7d4a1d62011-10-13 15:54:12 +000026203ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26204if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26205 ac_have_decl=1
26206else
26207 ac_have_decl=0
26208fi
26209
26210cat >>confdefs.h <<_ACEOF
26211#define HAVE_DECL_STRERROR_R $ac_have_decl
26212_ACEOF
26213
26214for ac_func in strerror_r
26215do :
26216 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26217if test "x$ac_cv_func_strerror_r" = xyes; then :
26218 cat >>confdefs.h <<_ACEOF
26219#define HAVE_STRERROR_R 1
26220_ACEOF
26221
26222fi
26223done
26224
26225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26226$as_echo_n "checking whether strerror_r returns char *... " >&6; }
26227if ${ac_cv_func_strerror_r_char_p+:} false; then :
26228 $as_echo_n "(cached) " >&6
26229else
26230
26231 ac_cv_func_strerror_r_char_p=no
26232 if test $ac_cv_have_decl_strerror_r = yes; then
26233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234/* end confdefs.h. */
26235$ac_includes_default
26236int
26237main ()
26238{
26239
26240 char buf[100];
26241 char x = *strerror_r (0, buf, sizeof buf);
26242 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000026243 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000026244
26245 ;
26246 return 0;
26247}
26248_ACEOF
26249if ac_fn_c_try_compile "$LINENO"; then :
26250 ac_cv_func_strerror_r_char_p=yes
26251fi
26252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26253 else
26254 # strerror_r is not declared. Choose between
26255 # systems that have relatively inaccessible declarations for the
26256 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
26257 # former has a strerror_r that returns char*, while the latter
26258 # has a strerror_r that returns `int'.
26259 # This test should segfault on the DEC system.
26260 if test "$cross_compiling" = yes; then :
26261 :
26262else
26263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264/* end confdefs.h. */
26265$ac_includes_default
26266 extern char *strerror_r ();
26267int
26268main ()
26269{
26270char buf[100];
26271 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000026272 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000026273 ;
26274 return 0;
26275}
26276_ACEOF
26277if ac_fn_c_try_run "$LINENO"; then :
26278 ac_cv_func_strerror_r_char_p=yes
26279fi
26280rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26281 conftest.$ac_objext conftest.beam conftest.$ac_ext
26282fi
26283
26284 fi
26285
26286fi
26287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26288$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26289if test $ac_cv_func_strerror_r_char_p = yes; then
26290
26291$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26292
26293fi
26294
cristy3ed852e2009-09-05 21:47:34 +000026295for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000026296do :
26297 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000026298if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026299 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026300#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000026301_ACEOF
26302
cristy8b350f62009-11-15 23:12:43 +000026303ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000026304if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026305
cristy8b350f62009-11-15 23:12:43 +000026306$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026307
26308fi
26309
26310fi
26311done
26312
26313
26314
cristy161b9262010-03-20 19:34:32 +000026315#
26316# Find math library
26317#
26318MATH_LIBS=''
26319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
26320$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026321if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000026322 $as_echo_n "(cached) " >&6
26323else
26324 ac_check_lib_save_LIBS=$LIBS
26325LIBS="-lm $LIBS"
26326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26327/* end confdefs.h. */
26328
26329/* Override any GCC internal prototype to avoid an error.
26330 Use char because int might match the return type of a GCC
26331 builtin and then its argument prototype would still apply. */
26332#ifdef __cplusplus
26333extern "C"
26334#endif
26335char sqrt ();
26336int
26337main ()
26338{
26339return sqrt ();
26340 ;
26341 return 0;
26342}
26343_ACEOF
26344if ac_fn_c_try_link "$LINENO"; then :
26345 ac_cv_lib_m_sqrt=yes
26346else
26347 ac_cv_lib_m_sqrt=no
26348fi
26349rm -f core conftest.err conftest.$ac_objext \
26350 conftest$ac_exeext conftest.$ac_ext
26351LIBS=$ac_check_lib_save_LIBS
26352fi
26353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
26354$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000026355if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000026356 MATH_LIBS="-lm"
26357fi
26358
26359LIBS="$MATH_LIBS $LIBS"
26360
26361
cristy85572162013-01-04 19:19:32 +000026362#
26363# Find socket library
26364#
cristy8a5d7f42013-01-06 15:24:33 +000026365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26366$as_echo_n "checking for library containing gethostbyname... " >&6; }
26367if ${ac_cv_search_gethostbyname+:} false; then :
26368 $as_echo_n "(cached) " >&6
26369else
26370 ac_func_search_save_LIBS=$LIBS
26371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26372/* end confdefs.h. */
26373
26374/* Override any GCC internal prototype to avoid an error.
26375 Use char because int might match the return type of a GCC
26376 builtin and then its argument prototype would still apply. */
26377#ifdef __cplusplus
26378extern "C"
26379#endif
26380char gethostbyname ();
26381int
26382main ()
26383{
26384return gethostbyname ();
26385 ;
26386 return 0;
26387}
26388_ACEOF
26389for ac_lib in '' resolv nsl; do
26390 if test -z "$ac_lib"; then
26391 ac_res="none required"
26392 else
26393 ac_res=-l$ac_lib
26394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26395 fi
26396 if ac_fn_c_try_link "$LINENO"; then :
26397 ac_cv_search_gethostbyname=$ac_res
26398fi
26399rm -f core conftest.err conftest.$ac_objext \
26400 conftest$ac_exeext
26401 if ${ac_cv_search_gethostbyname+:} false; then :
26402 break
26403fi
26404done
26405if ${ac_cv_search_gethostbyname+:} false; then :
26406
26407else
26408 ac_cv_search_gethostbyname=no
26409fi
26410rm conftest.$ac_ext
26411LIBS=$ac_func_search_save_LIBS
26412fi
26413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26414$as_echo "$ac_cv_search_gethostbyname" >&6; }
26415ac_res=$ac_cv_search_gethostbyname
26416if test "$ac_res" != no; then :
26417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26418
26419fi
26420
cristy85572162013-01-04 19:19:32 +000026421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
26422$as_echo_n "checking for library containing socket... " >&6; }
26423if ${ac_cv_search_socket+:} false; then :
26424 $as_echo_n "(cached) " >&6
26425else
26426 ac_func_search_save_LIBS=$LIBS
26427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428/* end confdefs.h. */
26429
26430/* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26433#ifdef __cplusplus
26434extern "C"
26435#endif
26436char socket ();
26437int
26438main ()
26439{
26440return socket ();
26441 ;
26442 return 0;
26443}
26444_ACEOF
26445for ac_lib in '' socket; do
26446 if test -z "$ac_lib"; then
26447 ac_res="none required"
26448 else
26449 ac_res=-l$ac_lib
26450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26451 fi
26452 if ac_fn_c_try_link "$LINENO"; then :
26453 ac_cv_search_socket=$ac_res
26454fi
26455rm -f core conftest.err conftest.$ac_objext \
26456 conftest$ac_exeext
26457 if ${ac_cv_search_socket+:} false; then :
26458 break
26459fi
26460done
26461if ${ac_cv_search_socket+:} false; then :
26462
26463else
26464 ac_cv_search_socket=no
26465fi
26466rm conftest.$ac_ext
26467LIBS=$ac_func_search_save_LIBS
26468fi
26469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
26470$as_echo "$ac_cv_search_socket" >&6; }
26471ac_res=$ac_cv_search_socket
26472if test "$ac_res" != no; then :
26473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26474
cristy85572162013-01-04 19:19:32 +000026475
cristy8a5d7f42013-01-06 15:24:33 +000026476$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000026477
cristy03f187e2013-01-24 00:22:19 +000026478 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000026479
26480fi
26481
26482
cristya29f2b82015-05-30 14:10:30 +000026483for 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 +000026484do :
26485 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26486ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000026487if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000026488 cat >>confdefs.h <<_ACEOF
26489#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26490_ACEOF
26491
26492fi
26493done
26494
26495
cristye43a45e2009-09-28 14:49:00 +000026496#
26497# Check for clock_gettime().
26498#
cristy8b350f62009-11-15 23:12:43 +000026499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000026500$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026501if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000026502 $as_echo_n "(cached) " >&6
26503else
26504 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000026505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000026506/* end confdefs.h. */
26507
26508/* Override any GCC internal prototype to avoid an error.
26509 Use char because int might match the return type of a GCC
26510 builtin and then its argument prototype would still apply. */
26511#ifdef __cplusplus
26512extern "C"
26513#endif
26514char clock_gettime ();
26515int
26516main ()
26517{
26518return clock_gettime ();
26519 ;
26520 return 0;
26521}
26522_ACEOF
26523for ac_lib in '' rt; do
26524 if test -z "$ac_lib"; then
26525 ac_res="none required"
26526 else
26527 ac_res=-l$ac_lib
26528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26529 fi
cristy8b350f62009-11-15 23:12:43 +000026530 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000026531 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000026532fi
cristy8b350f62009-11-15 23:12:43 +000026533rm -f core conftest.err conftest.$ac_objext \
26534 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000026535 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000026536 break
26537fi
26538done
cristyda16f162011-02-19 23:52:17 +000026539if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000026540
cristye43a45e2009-09-28 14:49:00 +000026541else
26542 ac_cv_search_clock_gettime=no
26543fi
26544rm conftest.$ac_ext
26545LIBS=$ac_func_search_save_LIBS
26546fi
cristy8b350f62009-11-15 23:12:43 +000026547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000026548$as_echo "$ac_cv_search_clock_gettime" >&6; }
26549ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000026550if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000026551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26552
26553
cristy8b350f62009-11-15 23:12:43 +000026554$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000026555
cristy8b350f62009-11-15 23:12:43 +000026556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000026557$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000026559/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000026560
26561 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000026562int
26563main ()
26564{
26565clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000026566 ;
26567 return 0;
26568}
26569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026570if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000026571
cristyad38abe2012-12-23 23:03:21 +000026572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26573$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000026574
cristy8b350f62009-11-15 23:12:43 +000026575$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000026576
26577
26578else
cristyad38abe2012-12-23 23:03:21 +000026579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26580$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000026581
26582fi
cristye43a45e2009-09-28 14:49:00 +000026583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26584
26585else
26586
cristy8b350f62009-11-15 23:12:43 +000026587 for ac_func in gettimeofday ftime
26588do :
26589 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26590ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000026591if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000026592 cat >>confdefs.h <<_ACEOF
26593#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26594_ACEOF
26595 break
26596fi
26597done
26598
26599
26600
26601fi
26602
26603
cristy3ed852e2009-09-05 21:47:34 +000026604########
26605#
26606# Check for function prototypes
26607#
26608########
26609
cristy8b350f62009-11-15 23:12:43 +000026610ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000026611#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000026612"
cristyda16f162011-02-19 23:52:17 +000026613if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026614 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026615else
cristy8b350f62009-11-15 23:12:43 +000026616 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026617fi
26618
cristy3ed852e2009-09-05 21:47:34 +000026619cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026620#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026621_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026622ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000026623#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000026624"
cristyda16f162011-02-19 23:52:17 +000026625if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026626 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026627else
cristy8b350f62009-11-15 23:12:43 +000026628 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026629fi
26630
cristy3ed852e2009-09-05 21:47:34 +000026631cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026632#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026633_ACEOF
26634
26635
cristy8b350f62009-11-15 23:12:43 +000026636ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000026637#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000026638"
cristyda16f162011-02-19 23:52:17 +000026639if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026640 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026641else
cristy8b350f62009-11-15 23:12:43 +000026642 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026643fi
26644
cristy3ed852e2009-09-05 21:47:34 +000026645cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026646#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026647_ACEOF
26648
26649
cristy8b350f62009-11-15 23:12:43 +000026650ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000026651#include <stdio.h>
26652#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000026653"
cristyda16f162011-02-19 23:52:17 +000026654if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000026655 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000026656else
cristy8b350f62009-11-15 23:12:43 +000026657 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000026658fi
26659
cristy3ed852e2009-09-05 21:47:34 +000026660cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026661#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000026662_ACEOF
26663
26664
cristy3ed852e2009-09-05 21:47:34 +000026665########
26666#
26667# C++ Support Tests (For Magick++)
26668#
26669########
26670have_magick_plus_plus='no'
26671if test "$with_magick_plus_plus" = 'yes'; then
26672 OLIBS="$LIBS"
26673 LIBS=''
26674 ac_ext=cpp
26675ac_cpp='$CXXCPP $CPPFLAGS'
26676ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26677ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26678ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26679
26680
26681 # Full set of headers used...
26682 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
26683 # functional iomanip iosfwd iostream iterator list string strstream utility
26684 ac_ext=cpp
26685ac_cpp='$CXXCPP $CPPFLAGS'
26686ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26687ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26688ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26689
26690 ac_ext=cpp
26691ac_cpp='$CXXCPP $CPPFLAGS'
26692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26695if test -z "$CXX"; then
26696 if test -n "$CCC"; then
26697 CXX=$CCC
26698 else
26699 if test -n "$ac_tool_prefix"; then
26700 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26701 do
26702 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
26703set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026706if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026707 $as_echo_n "(cached) " >&6
26708else
26709 if test -n "$CXX"; then
26710 ac_cv_prog_CXX="$CXX" # Let the user override the test.
26711else
26712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26713for as_dir in $PATH
26714do
26715 IFS=$as_save_IFS
26716 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026717 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026719 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026721 break 2
26722 fi
26723done
cristy8b350f62009-11-15 23:12:43 +000026724 done
cristy3ed852e2009-09-05 21:47:34 +000026725IFS=$as_save_IFS
26726
26727fi
26728fi
26729CXX=$ac_cv_prog_CXX
26730if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026732$as_echo "$CXX" >&6; }
26733else
cristy8b350f62009-11-15 23:12:43 +000026734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026735$as_echo "no" >&6; }
26736fi
26737
26738
26739 test -n "$CXX" && break
26740 done
26741fi
26742if test -z "$CXX"; then
26743 ac_ct_CXX=$CXX
26744 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
26745do
26746 # Extract the first word of "$ac_prog", so it can be a program name with args.
26747set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026749$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026750if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026751 $as_echo_n "(cached) " >&6
26752else
26753 if test -n "$ac_ct_CXX"; then
26754 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26755else
26756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26757for as_dir in $PATH
26758do
26759 IFS=$as_save_IFS
26760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026763 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026765 break 2
26766 fi
26767done
cristy8b350f62009-11-15 23:12:43 +000026768 done
cristy3ed852e2009-09-05 21:47:34 +000026769IFS=$as_save_IFS
26770
26771fi
26772fi
26773ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26774if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026776$as_echo "$ac_ct_CXX" >&6; }
26777else
cristy8b350f62009-11-15 23:12:43 +000026778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026779$as_echo "no" >&6; }
26780fi
26781
26782
26783 test -n "$ac_ct_CXX" && break
26784done
26785
26786 if test "x$ac_ct_CXX" = x; then
26787 CXX="g++"
26788 else
26789 case $cross_compiling:$ac_tool_warned in
26790yes:)
cristy8b350f62009-11-15 23:12:43 +000026791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26793ac_tool_warned=yes ;;
26794esac
26795 CXX=$ac_ct_CXX
26796 fi
26797fi
26798
26799 fi
26800fi
26801# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026802$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026803set X $ac_compile
26804ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026805for ac_option in --version -v -V -qversion; do
26806 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026807case "(($ac_try" in
26808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26809 *) ac_try_echo=$ac_try;;
26810esac
cristy8b350f62009-11-15 23:12:43 +000026811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26812$as_echo "$ac_try_echo"; } >&5
26813 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026814 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026815 if test -s conftest.err; then
26816 sed '10a\
26817... rest of stderr output deleted ...
26818 10q' conftest.err >conftest.er1
26819 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026820 fi
cristycd4c5312009-11-22 01:19:08 +000026821 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26823 test $ac_status = 0; }
26824done
cristy3ed852e2009-09-05 21:47:34 +000026825
cristy8b350f62009-11-15 23:12:43 +000026826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026827$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026828if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026829 $as_echo_n "(cached) " >&6
26830else
cristy8b350f62009-11-15 23:12:43 +000026831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026832/* end confdefs.h. */
26833
26834int
26835main ()
26836{
26837#ifndef __GNUC__
26838 choke me
26839#endif
26840
26841 ;
26842 return 0;
26843}
26844_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026845if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026846 ac_compiler_gnu=yes
26847else
cristy8b350f62009-11-15 23:12:43 +000026848 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026849fi
cristy3ed852e2009-09-05 21:47:34 +000026850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26851ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26852
26853fi
cristy8b350f62009-11-15 23:12:43 +000026854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026855$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26856if test $ac_compiler_gnu = yes; then
26857 GXX=yes
26858else
26859 GXX=
26860fi
26861ac_test_CXXFLAGS=${CXXFLAGS+set}
26862ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026864$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026865if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026866 $as_echo_n "(cached) " >&6
26867else
26868 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26869 ac_cxx_werror_flag=yes
26870 ac_cv_prog_cxx_g=no
26871 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026873/* end confdefs.h. */
26874
26875int
26876main ()
26877{
26878
26879 ;
26880 return 0;
26881}
26882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026883if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026884 ac_cv_prog_cxx_g=yes
26885else
cristy8b350f62009-11-15 23:12:43 +000026886 CXXFLAGS=""
26887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026888/* end confdefs.h. */
26889
26890int
26891main ()
26892{
26893
26894 ;
26895 return 0;
26896}
26897_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026898if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026899
cristy8b350f62009-11-15 23:12:43 +000026900else
26901 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026902 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026904/* end confdefs.h. */
26905
26906int
26907main ()
26908{
26909
26910 ;
26911 return 0;
26912}
26913_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026914if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026915 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026916fi
cristy3ed852e2009-09-05 21:47:34 +000026917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26918fi
cristy3ed852e2009-09-05 21:47:34 +000026919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26920fi
cristy3ed852e2009-09-05 21:47:34 +000026921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26922 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26923fi
cristy8b350f62009-11-15 23:12:43 +000026924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026925$as_echo "$ac_cv_prog_cxx_g" >&6; }
26926if test "$ac_test_CXXFLAGS" = set; then
26927 CXXFLAGS=$ac_save_CXXFLAGS
26928elif test $ac_cv_prog_cxx_g = yes; then
26929 if test "$GXX" = yes; then
26930 CXXFLAGS="-g -O2"
26931 else
26932 CXXFLAGS="-g"
26933 fi
26934else
26935 if test "$GXX" = yes; then
26936 CXXFLAGS="-O2"
26937 else
26938 CXXFLAGS=
26939 fi
26940fi
26941ac_ext=cpp
26942ac_cpp='$CXXCPP $CPPFLAGS'
26943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26946
cristy73bd4a52010-10-05 11:24:23 +000026947depcc="$CXX" am_compiler_list=
26948
26949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26950$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026951if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026952 $as_echo_n "(cached) " >&6
26953else
26954 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26955 # We make a subdir and do the tests there. Otherwise we can end up
26956 # making bogus files that we don't know about and never remove. For
26957 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026958 # making a dummy file named 'D' -- because '-MD' means "put the output
26959 # in D".
cristy7247bba2012-02-05 16:37:27 +000026960 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026961 mkdir conftest.dir
26962 # Copy depcomp to subdir because otherwise we won't find it if we're
26963 # using a relative directory.
26964 cp "$am_depcomp" conftest.dir
26965 cd conftest.dir
26966 # We will build objects and dependencies in a subdirectory because
26967 # it helps to detect inapplicable dependency modes. For instance
26968 # both Tru64's cc and ICC support -MD to output dependencies as a
26969 # side effect of compilation, but ICC will put the dependencies in
26970 # the current directory while Tru64 will put them in the object
26971 # directory.
26972 mkdir sub
26973
26974 am_cv_CXX_dependencies_compiler_type=none
26975 if test "$am_compiler_list" = ""; then
26976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26977 fi
26978 am__universal=false
26979 case " $depcc " in #(
26980 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26981 esac
26982
26983 for depmode in $am_compiler_list; do
26984 # Setup a source with many dependencies, because some compilers
26985 # like to wrap large dependency lists on column 80 (with \), and
26986 # we should not choose a depcomp mode which is confused by this.
26987 #
26988 # We need to recreate these files for each test, as the compiler may
26989 # overwrite some of them when testing with obscure command lines.
26990 # This happens at least with the AIX C compiler.
26991 : > sub/conftest.c
26992 for i in 1 2 3 4 5 6; do
26993 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026994 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26995 # Solaris 10 /bin/sh.
26996 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026997 done
26998 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26999
cristyc0890a62012-07-19 00:18:20 +000027000 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000027001 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000027002 # handle '-M -o', and we need to detect this. Also, some Intel
27003 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000027004 am__obj=sub/conftest.${OBJEXT-o}
27005 am__minus_obj="-o $am__obj"
27006 case $depmode in
27007 gcc)
27008 # This depmode causes a compiler race in universal mode.
27009 test "$am__universal" = false || continue
27010 ;;
27011 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000027012 # After this tag, mechanisms are not by side-effect, so they'll
27013 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000027014 if test "x$enable_dependency_tracking" = xyes; then
27015 continue
27016 else
27017 break
27018 fi
27019 ;;
cristy7247bba2012-02-05 16:37:27 +000027020 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000027021 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000027022 # not run yet. These depmodes are late enough in the game, and
27023 # so weak that their functioning should not be impacted.
27024 am__obj=conftest.${OBJEXT-o}
27025 am__minus_obj=
27026 ;;
27027 none) break ;;
27028 esac
27029 if depmode=$depmode \
27030 source=sub/conftest.c object=$am__obj \
27031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
27032 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
27033 >/dev/null 2>conftest.err &&
27034 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
27035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
27036 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
27037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
27038 # icc doesn't choke on unknown options, it will just issue warnings
27039 # or remarks (even with -Werror). So we grep stderr for any message
27040 # that says an option was ignored or not supported.
27041 # When given -MP, icc 7.0 and 7.1 complain thusly:
27042 # icc: Command line warning: ignoring option '-M'; no argument required
27043 # The diagnosis changed in icc 8.0:
27044 # icc: Command line remark: option '-MP' not supported
27045 if (grep 'ignoring option' conftest.err ||
27046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
27047 am_cv_CXX_dependencies_compiler_type=$depmode
27048 break
27049 fi
27050 fi
27051 done
27052
27053 cd ..
27054 rm -rf conftest.dir
27055else
27056 am_cv_CXX_dependencies_compiler_type=none
27057fi
27058
27059fi
27060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
27061$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
27062CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
27063
27064 if
27065 test "x$enable_dependency_tracking" != xno \
27066 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
27067 am__fastdepCXX_TRUE=
27068 am__fastdepCXX_FALSE='#'
27069else
27070 am__fastdepCXX_TRUE='#'
27071 am__fastdepCXX_FALSE=
27072fi
27073
27074
cristy146497a2015-05-17 22:46:16 +000027075 { $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 +000027076$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027077if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027078 $as_echo_n "(cached) " >&6
27079else
cristy146497a2015-05-17 22:46:16 +000027080 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000027081ac_cpp='$CXXCPP $CPPFLAGS'
27082ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27083ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27084ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27085
cristy146497a2015-05-17 22:46:16 +000027086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000027087/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000027088 int f(int x){return 1;}
27089 int f(char x){return 1;}
27090 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000027091int
27092main ()
27093{
27094bool b = true; return f(b);
27095 ;
27096 return 0;
27097}
27098_ACEOF
27099if ac_fn_cxx_try_compile "$LINENO"; then :
27100 ax_cv_cxx_bool=yes
27101else
27102 ax_cv_cxx_bool=no
27103fi
27104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000027105 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000027106ac_cpp='$CXXCPP $CPPFLAGS'
27107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27110
27111
27112fi
27113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
27114$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000027115 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000027116
27117$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
27118
27119fi
27120
27121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
27122$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027123if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027124 $as_echo_n "(cached) " >&6
27125else
cristy17491be2014-06-24 01:10:53 +000027126 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000027127ac_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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27133/* end confdefs.h. */
27134namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000027135 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000027136_ACEOF
27137if ac_fn_cxx_try_compile "$LINENO"; then :
27138 ax_cv_cxx_namespaces=yes
27139else
27140 ax_cv_cxx_namespaces=no
27141fi
27142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27143 ac_ext=cpp
27144ac_cpp='$CXXCPP $CPPFLAGS'
27145ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27146ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27147ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27148
27149
27150fi
27151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
27152$as_echo "$ax_cv_cxx_namespaces" >&6; }
27153if test "$ax_cv_cxx_namespaces" = yes; then
27154
27155$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
27156
27157fi
27158
27159
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
27161$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027162if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027163 $as_echo_n "(cached) " >&6
27164else
27165
27166 ac_ext=cpp
27167ac_cpp='$CXXCPP $CPPFLAGS'
27168ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27169ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27170ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27171
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173/* end confdefs.h. */
27174#include <iostream>
27175 std::istream& is = std::cin;
27176int
27177main ()
27178{
27179
27180 ;
27181 return 0;
27182}
27183_ACEOF
27184if ac_fn_cxx_try_compile "$LINENO"; then :
27185 ax_cv_cxx_have_std_namespace=yes
27186else
27187 ax_cv_cxx_have_std_namespace=no
27188fi
27189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27190 ac_ext=cpp
27191ac_cpp='$CXXCPP $CPPFLAGS'
27192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27195
27196
27197fi
27198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
27199$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
27200 if test "$ax_cv_cxx_have_std_namespace" = yes; then
27201
27202$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
27203
27204 fi
27205
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
27207$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027208if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000027209 $as_echo_n "(cached) " >&6
27210else
27211
27212
27213 ac_ext=cpp
27214ac_cpp='$CXXCPP $CPPFLAGS'
27215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27218
27219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27220/* end confdefs.h. */
27221#include <iostream>
27222#include <map>
27223#include <iomanip>
27224#include <cmath>
27225#ifdef HAVE_NAMESPACES
27226using namespace std;
27227#endif
27228int
27229main ()
27230{
27231return 0;
27232 ;
27233 return 0;
27234}
27235_ACEOF
27236if ac_fn_cxx_try_compile "$LINENO"; then :
27237 ac_cv_cxx_have_std_libs=yes
27238else
27239 ac_cv_cxx_have_std_libs=no
27240fi
27241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27242 ac_ext=cpp
27243ac_cpp='$CXXCPP $CPPFLAGS'
27244ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27245ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27246ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27247
27248
27249fi
27250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
27251$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
27252if test "$ac_cv_cxx_have_std_libs" = yes; then
27253
27254$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
27255
27256fi
27257
cristy3ed852e2009-09-05 21:47:34 +000027258
27259 OPENMP_CXXFLAGS=
27260 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000027261if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027262 enableval=$enable_openmp;
27263fi
27264
27265 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000027266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
27267$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027268if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027269 $as_echo_n "(cached) " >&6
27270else
cristy8b350f62009-11-15 23:12:43 +000027271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27272/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000027273
27274#ifndef _OPENMP
27275 choke me
27276#endif
27277#include <omp.h>
27278int main () { return omp_get_num_threads (); }
27279
27280_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027281if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027282 ac_cv_prog_cxx_openmp='none needed'
27283else
cristy8b350f62009-11-15 23:12:43 +000027284 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000027285 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
27286 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000027287 ac_save_CXXFLAGS=$CXXFLAGS
27288 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000027289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27290/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000027291
27292#ifndef _OPENMP
27293 choke me
27294#endif
27295#include <omp.h>
27296int main () { return omp_get_num_threads (); }
27297
27298_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027299if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027300 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000027301fi
cristy8b350f62009-11-15 23:12:43 +000027302rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027304 CXXFLAGS=$ac_save_CXXFLAGS
27305 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
27306 break
27307 fi
27308 done
27309fi
cristy8b350f62009-11-15 23:12:43 +000027310rm -f core conftest.err conftest.$ac_objext \
27311 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027312fi
cristy8b350f62009-11-15 23:12:43 +000027313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027314$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
27315 case $ac_cv_prog_cxx_openmp in #(
27316 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000027317 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000027318 *)
cristy8b350f62009-11-15 23:12:43 +000027319 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000027320 esac
27321 fi
27322
27323
27324 ac_ext=c
27325ac_cpp='$CPP $CPPFLAGS'
27326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27328ac_compiler_gnu=$ac_cv_c_compiler_gnu
27329
27330
cristy8b350f62009-11-15 23:12:43 +000027331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000027332$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
27333 if \
cristy964cb7f2010-04-25 23:18:00 +000027334 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000027335 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000027336 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000027337 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000027338 have_magick_plus_plus='yes'
27339 else
27340 have_magick_plus_plus='no (failed tests)'
27341 fi
cristyad38abe2012-12-23 23:03:21 +000027342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
27343$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027344 LIBS="$OLIBS"
27345fi
cristy73bd4a52010-10-05 11:24:23 +000027346 if test "$have_magick_plus_plus" = 'yes'; then
27347 WITH_MAGICK_PLUS_PLUS_TRUE=
27348 WITH_MAGICK_PLUS_PLUS_FALSE='#'
27349else
27350 WITH_MAGICK_PLUS_PLUS_TRUE='#'
27351 WITH_MAGICK_PLUS_PLUS_FALSE=
27352fi
27353
cristy3ed852e2009-09-05 21:47:34 +000027354
27355# Only check for delegate libraries in subdirectories if requested.
27356if test "$enable_delegate_build" != 'no'; then
27357 # Check for delegate sub-directories and add -I & -L options as required.
27358 # This presumes that delegates are installed as detailed in the ImageMagick
27359 # README. If delegates are installed in a standard location where the
27360 # compiler will automatically find them then these options should not be
27361 # required.
27362
27363 #
27364 # Most delegates have includes in the same directory as the library, but not all...
27365 #
27366 # Includes
cristy834307f2015-01-25 00:43:41 +000027367 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 +000027368 if test -d "$builddir/$dir"; then
27369 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
27370 else
27371 if test -d "$srcdirfull/$dir"; then
27372 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
27373 fi
27374 fi
27375 done
27376
27377 # Libraries
cristy834307f2015-01-25 00:43:41 +000027378 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 +000027379 if test -d "$builddir/$dir/.libs"; then
27380 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
27381 else
27382 if test -d "$srcdirfull/$dir/.libs"; then
27383 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
27384 fi
27385 fi
27386 if test -d "$builddir/$dir"; then
27387 LDFLAGS="$LDFLAGS -L$builddir/$dir"
27388 else
27389 if test -d "$srcdirfull/$dir"; then
27390 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
27391 fi
27392 fi
27393 done
27394fi
27395
27396# Assume that delegate headers reside under same directory as ImageMagick
27397# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000027398MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000027399
27400#
27401# Find the X11 RGB database
27402#
cristy8b350f62009-11-15 23:12:43 +000027403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000027404$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027405if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027406 $as_echo_n "(cached) " >&6
27407else
27408 # Look for the header file in a standard set of common directories.
27409# Check X11 before X11Rn because it is often a symlink to the current release.
27410 for ac_dir in \
27411 /lib/usr/lib/X11 \
27412 /usr/X11/lib \
27413 /usr/X11R4/lib \
27414 /usr/X11R5/lib \
27415 /usr/X11R6/lib \
27416 /usr/X11R7/lib \
27417 /usr/X386/lib \
27418 /usr/XFree86/lib/X11 \
27419 /usr/athena/lib \
27420 /usr/lib \
27421 /usr/lib/X11 \
27422 /usr/lib/X11R4 \
27423 /usr/lib/X11R5 \
27424 /usr/lib/X11R6 \
27425 /usr/lib/X11R7 \
27426 /usr/local/X11/lib \
27427 /usr/local/X11R4/lib \
27428 /usr/local/X11R5/lib \
27429 /usr/local/X11R6/lib \
27430 /usr/local/lib \
27431 /usr/local/lib/X11 \
27432 /usr/local/lib/X11R4 \
27433 /usr/local/lib/X11R5 \
27434 /usr/local/lib/X11R6 \
27435 /usr/local/lib/X11R7 \
27436 /usr/local/x11r5/lib \
27437 /usr/lpp/Xamples/lib \
27438 /usr/openwin/lib \
27439 /usr/openwin/share/lib \
27440 /usr/unsupported/lib \
27441 /usr/x386/lib \
27442 ; do
27443 if test -f "$ac_dir/X11/rgb.txt"; then
27444 im_cv_x_configure="$ac_dir/X11/"
27445 break
27446 elif test -f "$ac_dir/rgb.txt"; then
27447 im_cv_x_configure="$ac_dir/"
27448 break
27449 fi
27450
27451 done
27452fi
cristy8b350f62009-11-15 23:12:43 +000027453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000027454$as_echo "$im_cv_x_configure" >&6; }
27455X11_CONFIGURE_PATH="$im_cv_x_configure"
27456case "${build_os}" in
27457 mingw* )
27458 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
27459 ;;
27460esac
27461
27462cat >>confdefs.h <<_ACEOF
27463#define X11_CONFIGURE_PATH "$X11ConfigurePath"
27464_ACEOF
27465
27466
27467#
27468# Find OpenMP library
27469#
27470GOMP_LIBS=''
27471if test "$enable_openmp" != 'no'; then
27472 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000027473 # Open64 (passes for GCC but uses different OpenMP implementation)
27474 if test "x$GOMP_LIBS" = x ; then
27475 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
27477$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
27478if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
27479 $as_echo_n "(cached) " >&6
27480else
27481 ac_check_lib_save_LIBS=$LIBS
27482LIBS="-lopenmp $LIBS"
27483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27484/* end confdefs.h. */
27485
27486/* Override any GCC internal prototype to avoid an error.
27487 Use char because int might match the return type of a GCC
27488 builtin and then its argument prototype would still apply. */
27489#ifdef __cplusplus
27490extern "C"
27491#endif
27492char omp_get_num_procs ();
27493int
27494main ()
27495{
27496return omp_get_num_procs ();
27497 ;
27498 return 0;
27499}
27500_ACEOF
27501if ac_fn_c_try_link "$LINENO"; then :
27502 ac_cv_lib_openmp_omp_get_num_procs=yes
27503else
27504 ac_cv_lib_openmp_omp_get_num_procs=no
27505fi
27506rm -f core conftest.err conftest.$ac_objext \
27507 conftest$ac_exeext conftest.$ac_ext
27508LIBS=$ac_check_lib_save_LIBS
27509fi
27510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
27511$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
27512if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
27513 GOMP_LIBS="-lopenmp"
27514fi
27515
27516 fi
27517 fi
27518 # GCC
27519 if test "x$GOMP_LIBS" = x ; then
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027521$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027522if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027523 $as_echo_n "(cached) " >&6
27524else
27525 ac_check_lib_save_LIBS=$LIBS
27526LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027528/* end confdefs.h. */
27529
27530/* Override any GCC internal prototype to avoid an error.
27531 Use char because int might match the return type of a GCC
27532 builtin and then its argument prototype would still apply. */
27533#ifdef __cplusplus
27534extern "C"
27535#endif
27536char GOMP_parallel_start ();
27537int
27538main ()
27539{
27540return GOMP_parallel_start ();
27541 ;
27542 return 0;
27543}
27544_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027545if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027546 ac_cv_lib_gomp_GOMP_parallel_start=yes
27547else
cristy8b350f62009-11-15 23:12:43 +000027548 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000027549fi
cristy8b350f62009-11-15 23:12:43 +000027550rm -f core conftest.err conftest.$ac_objext \
27551 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027552LIBS=$ac_check_lib_save_LIBS
27553fi
cristy8b350f62009-11-15 23:12:43 +000027554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000027555$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000027556if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027557 GOMP_LIBS="-lgomp"
27558fi
cristy18307f12011-12-30 01:20:16 +000027559
27560 fi
cristy3ed852e2009-09-05 21:47:34 +000027561 else
cristy18307f12011-12-30 01:20:16 +000027562 # Sun CC
27563 if test "x$GOMP_LIBS" = x ; then
27564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000027565$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027566if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027567 $as_echo_n "(cached) " >&6
27568else
27569 ac_check_lib_save_LIBS=$LIBS
27570LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027572/* end confdefs.h. */
27573
27574/* Override any GCC internal prototype to avoid an error.
27575 Use char because int might match the return type of a GCC
27576 builtin and then its argument prototype would still apply. */
27577#ifdef __cplusplus
27578extern "C"
27579#endif
27580char sunw_mp_register_warn ();
27581int
27582main ()
27583{
27584return sunw_mp_register_warn ();
27585 ;
27586 return 0;
27587}
27588_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027589if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027590 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
27591else
cristy8b350f62009-11-15 23:12:43 +000027592 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000027593fi
cristy8b350f62009-11-15 23:12:43 +000027594rm -f core conftest.err conftest.$ac_objext \
27595 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027596LIBS=$ac_check_lib_save_LIBS
27597fi
cristy8b350f62009-11-15 23:12:43 +000027598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000027599$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000027600if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027601 GOMP_LIBS="-lmtsk"
27602fi
cristy18307f12011-12-30 01:20:16 +000027603
27604 fi
27605 # AIX xlc
27606 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000027607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027608$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027609if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027610 $as_echo_n "(cached) " >&6
27611else
27612 ac_check_lib_save_LIBS=$LIBS
27613LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027615/* end confdefs.h. */
27616
27617/* Override any GCC internal prototype to avoid an error.
27618 Use char because int might match the return type of a GCC
27619 builtin and then its argument prototype would still apply. */
27620#ifdef __cplusplus
27621extern "C"
27622#endif
27623char _xlsmpFlush ();
27624int
27625main ()
27626{
27627return _xlsmpFlush ();
27628 ;
27629 return 0;
27630}
27631_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027632if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027633 ac_cv_lib_xlsmp__xlsmpFlush=yes
27634else
cristy8b350f62009-11-15 23:12:43 +000027635 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000027636fi
cristy8b350f62009-11-15 23:12:43 +000027637rm -f core conftest.err conftest.$ac_objext \
27638 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027639LIBS=$ac_check_lib_save_LIBS
27640fi
cristy8b350f62009-11-15 23:12:43 +000027641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000027642$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000027643if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027644 GOMP_LIBS="-lxlsmp"
27645fi
cristy18307f12011-12-30 01:20:16 +000027646
27647 fi
27648 # SGI IRIX 6.5 MIPSpro C/C++
27649 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000027650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027651$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027652if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027653 $as_echo_n "(cached) " >&6
27654else
27655 ac_check_lib_save_LIBS=$LIBS
27656LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027658/* end confdefs.h. */
27659
27660/* Override any GCC internal prototype to avoid an error.
27661 Use char because int might match the return type of a GCC
27662 builtin and then its argument prototype would still apply. */
27663#ifdef __cplusplus
27664extern "C"
27665#endif
27666char mp_destroy ();
27667int
27668main ()
27669{
27670return mp_destroy ();
27671 ;
27672 return 0;
27673}
27674_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027675if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027676 ac_cv_lib_mp_mp_destroy=yes
27677else
cristy8b350f62009-11-15 23:12:43 +000027678 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000027679fi
cristy8b350f62009-11-15 23:12:43 +000027680rm -f core conftest.err conftest.$ac_objext \
27681 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027682LIBS=$ac_check_lib_save_LIBS
27683fi
cristy8b350f62009-11-15 23:12:43 +000027684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000027685$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000027686if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027687 GOMP_LIBS="-lmp"
27688fi
cristy18307f12011-12-30 01:20:16 +000027689
27690 fi
cristy3ed852e2009-09-05 21:47:34 +000027691 fi
27692 LIBS="$GOMP_LIBS $LIBS"
27693fi
27694
27695
cristy12ac8192014-11-04 13:59:13 +000027696#
cristy3b0097d2014-11-04 15:34:47 +000027697# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000027698#
cristy3b0097d2014-11-04 15:34:47 +000027699have_jemalloc='no'
27700JEMALLOC_LIBS=''
27701if test "$with_jemalloc" != 'no'; then
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
27703$as_echo_n "checking for JEMALLOC support ... " >&6; }
27704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27705$as_echo "" >&6; }
27706 failed=0
27707 passed=0
27708 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
27709if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027710 passed=`expr $passed + 1`
27711else
27712 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027713fi
27714
27715
cristy3b0097d2014-11-04 15:34:47 +000027716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
27717$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
27718if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000027719 $as_echo_n "(cached) " >&6
27720else
27721 ac_check_lib_save_LIBS=$LIBS
27722LIBS="-ljemalloc $LIBS"
27723cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27724/* end confdefs.h. */
27725
27726/* Override any GCC internal prototype to avoid an error.
27727 Use char because int might match the return type of a GCC
27728 builtin and then its argument prototype would still apply. */
27729#ifdef __cplusplus
27730extern "C"
27731#endif
cristy3b0097d2014-11-04 15:34:47 +000027732char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027733int
27734main ()
27735{
cristy3b0097d2014-11-04 15:34:47 +000027736return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000027737 ;
27738 return 0;
27739}
27740_ACEOF
27741if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000027742 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000027743else
cristy3b0097d2014-11-04 15:34:47 +000027744 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000027745fi
27746rm -f core conftest.err conftest.$ac_objext \
27747 conftest$ac_exeext conftest.$ac_ext
27748LIBS=$ac_check_lib_save_LIBS
27749fi
cristy3b0097d2014-11-04 15:34:47 +000027750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
27751$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
27752if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000027753 passed=`expr $passed + 1`
27754else
27755 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000027756fi
27757
cristy3b0097d2014-11-04 15:34:47 +000027758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
27759$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
27760 if test $passed -gt 0; then
27761 if test $failed -gt 0; then
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27763$as_echo "no -- some components failed test" >&6; }
27764 have_jemalloc='no (failed tests)'
27765 else
27766 JEMALLOC_LIBS='-ljemalloc'
27767 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000027768
cristy3b0097d2014-11-04 15:34:47 +000027769$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000027770
cristy3b0097d2014-11-04 15:34:47 +000027771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27772$as_echo "yes" >&6; }
27773 have_jemalloc='yes'
27774 fi
cristy12ac8192014-11-04 13:59:13 +000027775 else
cristy3b0097d2014-11-04 15:34:47 +000027776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27777$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000027778 fi
27779fi
cristy3b0097d2014-11-04 15:34:47 +000027780 if test "$have_jemalloc" = 'yes'; then
27781 HasJEMALLOC_TRUE=
27782 HasJEMALLOC_FALSE='#'
27783else
27784 HasJEMALLOC_TRUE='#'
27785 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000027786fi
27787
cristy3b0097d2014-11-04 15:34:47 +000027788
27789
cristy3ed852e2009-09-05 21:47:34 +000027790#
27791# Check for umem.
27792#
27793have_umem='no'
27794UMEM_LIBS=''
27795if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000027798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27799$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027800 failed=0
27801 passed=0
cristy8b350f62009-11-15 23:12:43 +000027802 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027803if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027804 passed=`expr $passed + 1`
27805else
27806 failed=`expr $failed + 1`
27807fi
27808
27809
cristy8b350f62009-11-15 23:12:43 +000027810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027811$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027812if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027813 $as_echo_n "(cached) " >&6
27814else
27815 ac_check_lib_save_LIBS=$LIBS
27816LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027818/* end confdefs.h. */
27819
27820/* Override any GCC internal prototype to avoid an error.
27821 Use char because int might match the return type of a GCC
27822 builtin and then its argument prototype would still apply. */
27823#ifdef __cplusplus
27824extern "C"
27825#endif
27826char umem_alloc ();
27827int
27828main ()
27829{
27830return umem_alloc ();
27831 ;
27832 return 0;
27833}
27834_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027835if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027836 ac_cv_lib_umem_umem_alloc=yes
27837else
cristy8b350f62009-11-15 23:12:43 +000027838 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027839fi
cristy8b350f62009-11-15 23:12:43 +000027840rm -f core conftest.err conftest.$ac_objext \
27841 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027842LIBS=$ac_check_lib_save_LIBS
27843fi
cristy8b350f62009-11-15 23:12:43 +000027844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027845$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027846if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027847 passed=`expr $passed + 1`
27848else
27849 failed=`expr $failed + 1`
27850fi
27851
cristy8b350f62009-11-15 23:12:43 +000027852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027853$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027854if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027855 $as_echo_n "(cached) " >&6
27856else
27857 ac_check_lib_save_LIBS=$LIBS
27858LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027860/* end confdefs.h. */
27861
27862/* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27865#ifdef __cplusplus
27866extern "C"
27867#endif
27868char umem_free ();
27869int
27870main ()
27871{
27872return umem_free ();
27873 ;
27874 return 0;
27875}
27876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027878 ac_cv_lib_umem_umem_free=yes
27879else
cristy8b350f62009-11-15 23:12:43 +000027880 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027881fi
cristy8b350f62009-11-15 23:12:43 +000027882rm -f core conftest.err conftest.$ac_objext \
27883 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027884LIBS=$ac_check_lib_save_LIBS
27885fi
cristy8b350f62009-11-15 23:12:43 +000027886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027887$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027888if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027889 passed=`expr $passed + 1`
27890else
27891 failed=`expr $failed + 1`
27892fi
27893
cristy8b350f62009-11-15 23:12:43 +000027894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027895$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27896 if test $passed -gt 0; then
27897 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000027898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27899$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027900 have_umem='no (failed tests)'
27901 else
27902 UMEM_LIBS='-lumem'
27903 LIBS="$UMEM_LIBS $LIBS"
27904
cristy8b350f62009-11-15 23:12:43 +000027905$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027906
cristyad38abe2012-12-23 23:03:21 +000027907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27908$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027909 have_umem='yes'
27910 fi
27911 else
cristyad38abe2012-12-23 23:03:21 +000027912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27913$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000027914 fi
27915fi
cristy73bd4a52010-10-05 11:24:23 +000027916 if test "$have_umem" = 'yes'; then
27917 HasUMEM_TRUE=
27918 HasUMEM_FALSE='#'
27919else
27920 HasUMEM_TRUE='#'
27921 HasUMEM_FALSE=
27922fi
27923
cristy3ed852e2009-09-05 21:47:34 +000027924
27925
27926#
27927# Add support for ccmalloc memory debugging library if requested
27928#
27929have_ccmalloc='no'
27930CCMALLOC_LIBS=''
27931if test "$enable_ccmalloc" = 'yes'; then
27932 # Extract the first word of "ccmalloc", so it can be a program name with args.
27933set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027935$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027936if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027937 $as_echo_n "(cached) " >&6
27938else
27939 case $CCMALLOCDelegate in
27940 [\\/]* | ?:[\\/]*)
27941 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27942 ;;
27943 *)
27944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27945for as_dir in $PATH
27946do
27947 IFS=$as_save_IFS
27948 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027951 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027953 break 2
27954 fi
27955done
cristy8b350f62009-11-15 23:12:43 +000027956 done
cristy3ed852e2009-09-05 21:47:34 +000027957IFS=$as_save_IFS
27958
27959 ;;
27960esac
27961fi
27962CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27963if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027965$as_echo "$CCMALLOCDelegate" >&6; }
27966else
cristy8b350f62009-11-15 23:12:43 +000027967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027968$as_echo "no" >&6; }
27969fi
27970
27971
27972 if test -n "$CCMALLOCDelegate"; then
27973 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27974 OLIBS="$LIBS"
27975 # Assume that gcc is used with ccmalloc.
27976 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027978$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027979if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027980 $as_echo_n "(cached) " >&6
27981else
27982 ac_check_lib_save_LIBS=$LIBS
27983LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027985/* end confdefs.h. */
27986
27987/* Override any GCC internal prototype to avoid an error.
27988 Use char because int might match the return type of a GCC
27989 builtin and then its argument prototype would still apply. */
27990#ifdef __cplusplus
27991extern "C"
27992#endif
27993char ccmalloc_malloc ();
27994int
27995main ()
27996{
27997return ccmalloc_malloc ();
27998 ;
27999 return 0;
28000}
28001_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028002if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028003 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
28004else
cristy8b350f62009-11-15 23:12:43 +000028005 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000028006fi
cristy8b350f62009-11-15 23:12:43 +000028007rm -f core conftest.err conftest.$ac_objext \
28008 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028009LIBS=$ac_check_lib_save_LIBS
28010fi
cristy8b350f62009-11-15 23:12:43 +000028011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028012$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000028013if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028014 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
28015fi
28016
28017 if test -n "$CCMALLOC_LIBS"; then
28018 LIBS="$OLIBS"
28019 LIBS="$LIBS $CCMALLOC_LIBS"
28020 have_ccmalloc='yes'
28021 else
28022 LIBS="$OLIBS"
28023 fi
28024 fi
28025fi
28026
28027#
cristy944e51f2013-04-16 18:45:02 +000028028# Add support for 'huge pages' if requested
28029#
28030if test "x$enable_hugepages" != "xno"; then :
28031
28032
28033$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
28034
28035
28036fi
28037
28038#
cristy3ed852e2009-09-05 21:47:34 +000028039# Add support for efence memory debugging library if requested
28040#
28041if test "$enable_efence" = 'yes'; then
28042 EFENCE_LIBS='-lefence'
28043 LIBS="$EFENCE_LIBS $LIBS"
28044fi
28045
cristy3ed852e2009-09-05 21:47:34 +000028046
28047#
28048# Check for BZLIB
28049#
28050
28051
28052# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000028053if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028054 withval=$with_bzlib; with_bzlib=$withval
28055else
28056 with_bzlib='yes'
28057fi
28058
28059
28060if test "$with_bzlib" != 'yes'; then
28061 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
28062fi
28063
28064have_bzlib='no'
28065if test "$with_bzlib" != 'no'; then
28066 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000028067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28068$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028070$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28072$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028073 failed=0
28074 passed=0
28075 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000028076 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028077if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028078 passed=`expr $passed + 1`
28079else
28080 failed=`expr $failed + 1`
28081fi
28082
28083
cristy8b350f62009-11-15 23:12:43 +000028084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028085$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028086if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028087 $as_echo_n "(cached) " >&6
28088else
28089 ac_check_lib_save_LIBS=$LIBS
28090LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028092/* end confdefs.h. */
28093
28094/* Override any GCC internal prototype to avoid an error.
28095 Use char because int might match the return type of a GCC
28096 builtin and then its argument prototype would still apply. */
28097#ifdef __cplusplus
28098extern "C"
28099#endif
28100char BZ2_bzDecompress ();
28101int
28102main ()
28103{
28104return BZ2_bzDecompress ();
28105 ;
28106 return 0;
28107}
28108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028109if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028110 ac_cv_lib_bz2_BZ2_bzDecompress=yes
28111else
cristy8b350f62009-11-15 23:12:43 +000028112 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000028113fi
cristy8b350f62009-11-15 23:12:43 +000028114rm -f core conftest.err conftest.$ac_objext \
28115 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028116LIBS=$ac_check_lib_save_LIBS
28117fi
cristy8b350f62009-11-15 23:12:43 +000028118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028119$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028120if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028121 found_libbz=`expr $found_libbz + 1`
28122fi
28123
28124 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000028126$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028127if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 $as_echo_n "(cached) " >&6
28129else
28130 ac_check_lib_save_LIBS=$LIBS
28131LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028133/* end confdefs.h. */
28134
28135/* Override any GCC internal prototype to avoid an error.
28136 Use char because int might match the return type of a GCC
28137 builtin and then its argument prototype would still apply. */
28138#ifdef __cplusplus
28139extern "C"
28140#endif
28141char _imp__BZ2_decompress ();
28142int
28143main ()
28144{
28145return _imp__BZ2_decompress ();
28146 ;
28147 return 0;
28148}
28149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028151 ac_cv_lib_bz2__imp__BZ2_decompress=yes
28152else
cristy8b350f62009-11-15 23:12:43 +000028153 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000028154fi
cristy8b350f62009-11-15 23:12:43 +000028155rm -f core conftest.err conftest.$ac_objext \
28156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028157LIBS=$ac_check_lib_save_LIBS
28158fi
cristy8b350f62009-11-15 23:12:43 +000028159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028160$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028161if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028162 found_libbz=`expr $found_libbz + 1`
28163fi
28164
28165 fi
28166 if test $found_libbz -gt 0; then
28167 passed=`expr $passed + 1`
28168 else
28169 failed=`expr $failed + 1`
28170 fi
cristy8b350f62009-11-15 23:12:43 +000028171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028172$as_echo_n "checking if BZLIB package is complete... " >&6; }
28173 if test $passed -gt 0; then
28174 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000028175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28176$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028177 have_bzlib='no (failed tests)'
28178 else
28179 BZLIB_LIBS='-lbz2'
28180 LIBS="$BZLIB_LIBS $LIBS"
28181
cristy8b350f62009-11-15 23:12:43 +000028182$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028183
cristyad38abe2012-12-23 23:03:21 +000028184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28185$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028186 have_bzlib='yes'
28187 fi
28188 else
cristyad38abe2012-12-23 23:03:21 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28190$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028191 fi
28192fi
cristy73bd4a52010-10-05 11:24:23 +000028193 if test "$have_bzlib" = 'yes'; then
28194 BZLIB_DELEGATE_TRUE=
28195 BZLIB_DELEGATE_FALSE='#'
28196else
28197 BZLIB_DELEGATE_TRUE='#'
28198 BZLIB_DELEGATE_FALSE=
28199fi
28200
cristy3ed852e2009-09-05 21:47:34 +000028201
28202
28203#
28204# Find the X11 include and library directories.
28205#
28206IPC_LIBS=''
28207X11_LIBS=''
28208XEXT_LIBS=''
28209XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000028210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000028211$as_echo_n "checking for X... " >&6; }
28212
28213
28214# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000028215if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000028216 withval=$with_x;
28217fi
28218
28219# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28220if test "x$with_x" = xno; then
28221 # The user explicitly disabled X.
28222 have_x=disabled
28223else
28224 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000028225 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000028226 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000028227 $as_echo_n "(cached) " >&6
28228else
28229 # One or both of the vars are not set, and there is no cached value.
28230ac_x_includes=no ac_x_libraries=no
28231rm -f -r conftest.dir
28232if mkdir conftest.dir; then
28233 cd conftest.dir
28234 cat >Imakefile <<'_ACEOF'
28235incroot:
28236 @echo incroot='${INCROOT}'
28237usrlibdir:
28238 @echo usrlibdir='${USRLIBDIR}'
28239libdir:
28240 @echo libdir='${LIBDIR}'
28241_ACEOF
28242 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000028243 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000028244 for ac_var in incroot usrlibdir libdir; do
28245 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28246 done
28247 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28248 for ac_extension in a so sl dylib la dll; do
28249 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28250 test -f "$ac_im_libdir/libX11.$ac_extension"; then
28251 ac_im_usrlibdir=$ac_im_libdir; break
28252 fi
28253 done
28254 # Screen out bogus values from the imake configuration. They are
28255 # bogus both because they are the default anyway, and because
28256 # using them would break gcc on systems where it needs fixed includes.
28257 case $ac_im_incroot in
28258 /usr/include) ac_x_includes= ;;
28259 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28260 esac
28261 case $ac_im_usrlibdir in
28262 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
28263 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28264 esac
28265 fi
28266 cd ..
28267 rm -f -r conftest.dir
28268fi
28269
28270# Standard set of common directories for X headers.
28271# Check X11 before X11Rn because it is often a symlink to the current release.
28272ac_x_header_dirs='
28273/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000028274/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000028275/usr/X11R6/include
28276/usr/X11R5/include
28277/usr/X11R4/include
28278
28279/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000028280/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000028281/usr/include/X11R6
28282/usr/include/X11R5
28283/usr/include/X11R4
28284
28285/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000028286/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000028287/usr/local/X11R6/include
28288/usr/local/X11R5/include
28289/usr/local/X11R4/include
28290
28291/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000028292/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000028293/usr/local/include/X11R6
28294/usr/local/include/X11R5
28295/usr/local/include/X11R4
28296
28297/usr/X386/include
28298/usr/x386/include
28299/usr/XFree86/include/X11
28300
28301/usr/include
28302/usr/local/include
28303/usr/unsupported/include
28304/usr/athena/include
28305/usr/local/x11r5/include
28306/usr/lpp/Xamples/include
28307
28308/usr/openwin/include
28309/usr/openwin/share/include'
28310
28311if test "$ac_x_includes" = no; then
28312 # Guess where to find include files, by looking for Xlib.h.
28313 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000028314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028315/* end confdefs.h. */
28316#include <X11/Xlib.h>
28317_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028318if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000028319 # We can compile using X headers with no special include directory.
28320ac_x_includes=
28321else
cristyc7083c12009-10-14 03:16:55 +000028322 for ac_dir in $ac_x_header_dirs; do
28323 if test -r "$ac_dir/X11/Xlib.h"; then
28324 ac_x_includes=$ac_dir
28325 break
28326 fi
28327done
28328fi
cristyda16f162011-02-19 23:52:17 +000028329rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028330fi # $ac_x_includes = no
28331
28332if test "$ac_x_libraries" = no; then
28333 # Check for the libraries.
28334 # See if we find them without any special options.
28335 # Don't add to $LIBS permanently.
28336 ac_save_LIBS=$LIBS
28337 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028339/* end confdefs.h. */
28340#include <X11/Xlib.h>
28341int
28342main ()
28343{
28344XrmInitialize ()
28345 ;
28346 return 0;
28347}
28348_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028349if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000028350 LIBS=$ac_save_LIBS
28351# We can link X programs with no special library path.
28352ac_x_libraries=
28353else
cristy8b350f62009-11-15 23:12:43 +000028354 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000028355for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28356do
28357 # Don't even attempt the hair of trying to link an X program!
28358 for ac_extension in a so sl dylib la dll; do
28359 if test -r "$ac_dir/libX11.$ac_extension"; then
28360 ac_x_libraries=$ac_dir
28361 break 2
28362 fi
28363 done
28364done
28365fi
cristy8b350f62009-11-15 23:12:43 +000028366rm -f core conftest.err conftest.$ac_objext \
28367 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000028368fi # $ac_x_libraries = no
28369
28370case $ac_x_includes,$ac_x_libraries in #(
28371 no,* | *,no | *\'*)
28372 # Didn't find X, or a directory has "'" in its name.
28373 ac_cv_have_x="have_x=no";; #(
28374 *)
28375 # Record where we found X for the cache.
28376 ac_cv_have_x="have_x=yes\
28377 ac_x_includes='$ac_x_includes'\
28378 ac_x_libraries='$ac_x_libraries'"
28379esac
28380fi
28381;; #(
28382 *) have_x=yes;;
28383 esac
28384 eval "$ac_cv_have_x"
28385fi # $with_x != no
28386
28387if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000028388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000028389$as_echo "$have_x" >&6; }
28390 no_x=yes
28391else
28392 # If each of the values was on the command line, it overrides each guess.
28393 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28394 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28395 # Update the cache value to reflect the command line values.
28396 ac_cv_have_x="have_x=yes\
28397 ac_x_includes='$x_includes'\
28398 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000028399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000028400$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
28401fi
28402
cristy3ed852e2009-09-05 21:47:34 +000028403if test "$no_x" = yes; then
28404 # Not all programs may use this symbol, but it does not hurt to define it.
28405
cristy8b350f62009-11-15 23:12:43 +000028406$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028407
28408 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28409else
28410 if test -n "$x_includes"; then
28411 X_CFLAGS="$X_CFLAGS -I$x_includes"
28412 fi
28413
28414 # It would also be nice to do this for all -L options, not just this one.
28415 if test -n "$x_libraries"; then
28416 X_LIBS="$X_LIBS -L$x_libraries"
28417 # For Solaris; some versions of Sun CC require a space after -R and
28418 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000028419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000028420$as_echo_n "checking whether -R must be followed by a space... " >&6; }
28421 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28422 ac_xsave_c_werror_flag=$ac_c_werror_flag
28423 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000028424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028425/* end confdefs.h. */
28426
28427int
28428main ()
28429{
28430
28431 ;
28432 return 0;
28433}
28434_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028435if ac_fn_c_try_link "$LINENO"; then :
28436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028437$as_echo "no" >&6; }
28438 X_LIBS="$X_LIBS -R$x_libraries"
28439else
cristy8b350f62009-11-15 23:12:43 +000028440 LIBS="$ac_xsave_LIBS -R $x_libraries"
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028442/* end confdefs.h. */
28443
28444int
28445main ()
28446{
28447
28448 ;
28449 return 0;
28450}
28451_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028452if ac_fn_c_try_link "$LINENO"; then :
28453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000028454$as_echo "yes" >&6; }
28455 X_LIBS="$X_LIBS -R $x_libraries"
28456else
cristy8b350f62009-11-15 23:12:43 +000028457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000028458$as_echo "neither works" >&6; }
28459fi
cristy8b350f62009-11-15 23:12:43 +000028460rm -f core conftest.err conftest.$ac_objext \
28461 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028462fi
cristy8b350f62009-11-15 23:12:43 +000028463rm -f core conftest.err conftest.$ac_objext \
28464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028465 ac_c_werror_flag=$ac_xsave_c_werror_flag
28466 LIBS=$ac_xsave_LIBS
28467 fi
28468
28469 # Check for system-dependent libraries X programs must link with.
28470 # Do this before checking for the system-independent R6 libraries
28471 # (-lICE), since we may need -lsocket or whatever for X linking.
28472
28473 if test "$ISC" = yes; then
28474 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28475 else
28476 # Martyn Johnson says this is needed for Ultrix, if the X
28477 # libraries were built with DECnet support. And Karl Berry says
28478 # the Alpha needs dnet_stub (dnet does not exist).
28479 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000028480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028481/* end confdefs.h. */
28482
28483/* Override any GCC internal prototype to avoid an error.
28484 Use char because int might match the return type of a GCC
28485 builtin and then its argument prototype would still apply. */
28486#ifdef __cplusplus
28487extern "C"
28488#endif
28489char XOpenDisplay ();
28490int
28491main ()
28492{
28493return XOpenDisplay ();
28494 ;
28495 return 0;
28496}
28497_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028498if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028499
cristy8b350f62009-11-15 23:12:43 +000028500else
28501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000028502$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028503if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028504 $as_echo_n "(cached) " >&6
28505else
28506 ac_check_lib_save_LIBS=$LIBS
28507LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028509/* end confdefs.h. */
28510
28511/* Override any GCC internal prototype to avoid an error.
28512 Use char because int might match the return type of a GCC
28513 builtin and then its argument prototype would still apply. */
28514#ifdef __cplusplus
28515extern "C"
28516#endif
28517char dnet_ntoa ();
28518int
28519main ()
28520{
28521return dnet_ntoa ();
28522 ;
28523 return 0;
28524}
28525_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028526if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028527 ac_cv_lib_dnet_dnet_ntoa=yes
28528else
cristy8b350f62009-11-15 23:12:43 +000028529 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000028530fi
cristy8b350f62009-11-15 23:12:43 +000028531rm -f core conftest.err conftest.$ac_objext \
28532 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028533LIBS=$ac_check_lib_save_LIBS
28534fi
cristy8b350f62009-11-15 23:12:43 +000028535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000028536$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000028537if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28539fi
28540
28541 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000028542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000028543$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028544if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028545 $as_echo_n "(cached) " >&6
28546else
28547 ac_check_lib_save_LIBS=$LIBS
28548LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028550/* end confdefs.h. */
28551
28552/* Override any GCC internal prototype to avoid an error.
28553 Use char because int might match the return type of a GCC
28554 builtin and then its argument prototype would still apply. */
28555#ifdef __cplusplus
28556extern "C"
28557#endif
28558char dnet_ntoa ();
28559int
28560main ()
28561{
28562return dnet_ntoa ();
28563 ;
28564 return 0;
28565}
28566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028567if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028568 ac_cv_lib_dnet_stub_dnet_ntoa=yes
28569else
cristy8b350f62009-11-15 23:12:43 +000028570 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000028571fi
cristy8b350f62009-11-15 23:12:43 +000028572rm -f core conftest.err conftest.$ac_objext \
28573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028574LIBS=$ac_check_lib_save_LIBS
28575fi
cristy8b350f62009-11-15 23:12:43 +000028576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000028577$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000028578if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028579 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
28580fi
28581
28582 fi
28583fi
cristy8b350f62009-11-15 23:12:43 +000028584rm -f core conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028586 LIBS="$ac_xsave_LIBS"
28587
28588 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
28589 # to get the SysV transport functions.
28590 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
28591 # needs -lnsl.
28592 # The nsl library prevents programs from opening the X display
28593 # on Irix 5.2, according to T.E. Dickey.
28594 # The functions gethostbyname, getservbyname, and inet_addr are
28595 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000028596 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000028597if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028598
cristy3ed852e2009-09-05 21:47:34 +000028599fi
28600
cristy3ed852e2009-09-05 21:47:34 +000028601 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028604if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 $as_echo_n "(cached) " >&6
28606else
28607 ac_check_lib_save_LIBS=$LIBS
28608LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028610/* end confdefs.h. */
28611
28612/* Override any GCC internal prototype to avoid an error.
28613 Use char because int might match the return type of a GCC
28614 builtin and then its argument prototype would still apply. */
28615#ifdef __cplusplus
28616extern "C"
28617#endif
28618char gethostbyname ();
28619int
28620main ()
28621{
28622return gethostbyname ();
28623 ;
28624 return 0;
28625}
28626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028628 ac_cv_lib_nsl_gethostbyname=yes
28629else
cristy8b350f62009-11-15 23:12:43 +000028630 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000028631fi
cristy8b350f62009-11-15 23:12:43 +000028632rm -f core conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028634LIBS=$ac_check_lib_save_LIBS
28635fi
cristy8b350f62009-11-15 23:12:43 +000028636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000028638if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
28640fi
28641
28642 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000028643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000028644$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028645if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028646 $as_echo_n "(cached) " >&6
28647else
28648 ac_check_lib_save_LIBS=$LIBS
28649LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028650cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028651/* end confdefs.h. */
28652
28653/* Override any GCC internal prototype to avoid an error.
28654 Use char because int might match the return type of a GCC
28655 builtin and then its argument prototype would still apply. */
28656#ifdef __cplusplus
28657extern "C"
28658#endif
28659char gethostbyname ();
28660int
28661main ()
28662{
28663return gethostbyname ();
28664 ;
28665 return 0;
28666}
28667_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028668if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028669 ac_cv_lib_bsd_gethostbyname=yes
28670else
cristy8b350f62009-11-15 23:12:43 +000028671 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000028672fi
cristy8b350f62009-11-15 23:12:43 +000028673rm -f core conftest.err conftest.$ac_objext \
28674 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028675LIBS=$ac_check_lib_save_LIBS
28676fi
cristy8b350f62009-11-15 23:12:43 +000028677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000028678$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000028679if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028680 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
28681fi
28682
28683 fi
28684 fi
28685
28686 # lieder@skyler.mavd.honeywell.com says without -lsocket,
28687 # socket/setsockopt and other routines are undefined under SCO ODT
28688 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
28689 # on later versions), says Simon Leinen: it contains gethostby*
28690 # variants that don't use the name server (or something). -lsocket
28691 # must be given before -lnsl if both are needed. We assume that
28692 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000028693 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000028694if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028695
cristy3ed852e2009-09-05 21:47:34 +000028696fi
28697
cristy3ed852e2009-09-05 21:47:34 +000028698 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000028699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000028700$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028701if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028702 $as_echo_n "(cached) " >&6
28703else
28704 ac_check_lib_save_LIBS=$LIBS
28705LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028707/* end confdefs.h. */
28708
28709/* Override any GCC internal prototype to avoid an error.
28710 Use char because int might match the return type of a GCC
28711 builtin and then its argument prototype would still apply. */
28712#ifdef __cplusplus
28713extern "C"
28714#endif
28715char connect ();
28716int
28717main ()
28718{
28719return connect ();
28720 ;
28721 return 0;
28722}
28723_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028724if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028725 ac_cv_lib_socket_connect=yes
28726else
cristy8b350f62009-11-15 23:12:43 +000028727 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028728fi
cristy8b350f62009-11-15 23:12:43 +000028729rm -f core conftest.err conftest.$ac_objext \
28730 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028731LIBS=$ac_check_lib_save_LIBS
28732fi
cristy8b350f62009-11-15 23:12:43 +000028733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028734$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028735if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028736 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28737fi
28738
28739 fi
28740
28741 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028742 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028743if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028744
cristy3ed852e2009-09-05 21:47:34 +000028745fi
28746
cristy3ed852e2009-09-05 21:47:34 +000028747 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028749$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028750if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028751 $as_echo_n "(cached) " >&6
28752else
28753 ac_check_lib_save_LIBS=$LIBS
28754LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028756/* end confdefs.h. */
28757
28758/* Override any GCC internal prototype to avoid an error.
28759 Use char because int might match the return type of a GCC
28760 builtin and then its argument prototype would still apply. */
28761#ifdef __cplusplus
28762extern "C"
28763#endif
28764char remove ();
28765int
28766main ()
28767{
28768return remove ();
28769 ;
28770 return 0;
28771}
28772_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028773if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028774 ac_cv_lib_posix_remove=yes
28775else
cristy8b350f62009-11-15 23:12:43 +000028776 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028777fi
cristy8b350f62009-11-15 23:12:43 +000028778rm -f core conftest.err conftest.$ac_objext \
28779 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028780LIBS=$ac_check_lib_save_LIBS
28781fi
cristy8b350f62009-11-15 23:12:43 +000028782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028784if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28786fi
28787
28788 fi
28789
28790 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028791 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028792if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028793
cristy3ed852e2009-09-05 21:47:34 +000028794fi
28795
cristy3ed852e2009-09-05 21:47:34 +000028796 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028798$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028799if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028800 $as_echo_n "(cached) " >&6
28801else
28802 ac_check_lib_save_LIBS=$LIBS
28803LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028804cat 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 shmat ();
28814int
28815main ()
28816{
28817return shmat ();
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 ac_cv_lib_ipc_shmat=yes
28824else
cristy8b350f62009-11-15 23:12:43 +000028825 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028826fi
cristy8b350f62009-11-15 23:12:43 +000028827rm -f core conftest.err conftest.$ac_objext \
28828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028829LIBS=$ac_check_lib_save_LIBS
28830fi
cristy8b350f62009-11-15 23:12:43 +000028831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028832$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028833if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028834 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28835fi
28836
28837 fi
28838 fi
28839
28840 # Check for libraries that X11R6 Xt/Xaw programs need.
28841 ac_save_LDFLAGS=$LDFLAGS
28842 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28843 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28844 # check for ICE first), but we must link in the order -lSM -lICE or
28845 # we get undefined symbols. So assume we have SM if we have ICE.
28846 # These have to be linked with before -lX11, unlike the other
28847 # libraries we check for below, so use a different variable.
28848 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028850$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028851if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028852 $as_echo_n "(cached) " >&6
28853else
28854 ac_check_lib_save_LIBS=$LIBS
28855LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028857/* end confdefs.h. */
28858
28859/* Override any GCC internal prototype to avoid an error.
28860 Use char because int might match the return type of a GCC
28861 builtin and then its argument prototype would still apply. */
28862#ifdef __cplusplus
28863extern "C"
28864#endif
28865char IceConnectionNumber ();
28866int
28867main ()
28868{
28869return IceConnectionNumber ();
28870 ;
28871 return 0;
28872}
28873_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028874if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028875 ac_cv_lib_ICE_IceConnectionNumber=yes
28876else
cristy8b350f62009-11-15 23:12:43 +000028877 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028878fi
cristy8b350f62009-11-15 23:12:43 +000028879rm -f core conftest.err conftest.$ac_objext \
28880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028881LIBS=$ac_check_lib_save_LIBS
28882fi
cristy8b350f62009-11-15 23:12:43 +000028883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028884$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028885if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028886 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28887fi
28888
28889 LDFLAGS=$ac_save_LDFLAGS
28890
28891fi
28892
28893if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000028894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28895$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000028896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028897$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000028898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28899$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028900 LDFLAGS="$LDFLAGS $X_LIBS"
28901 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28902 LIBS="$X11_LIBS $LIBS"
28903 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28904
28905
cristy8b350f62009-11-15 23:12:43 +000028906$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028907
28908 #
28909 # Check for X11 shared memory extension
28910 #
28911 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028912 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028913if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028914 have_shmctl='yes'
28915fi
28916
28917 if test "$have_shmctl" != 'yes'; then
28918 PERSIST_LIBS=$LIBS
28919 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028921/* end confdefs.h. */
28922
28923/* Override any GCC internal prototype to avoid an error.
28924 Use char because int might match the return type of a GCC
28925 builtin and then its argument prototype would still apply. */
28926#ifdef __cplusplus
28927extern "C"
28928#endif
28929char shmctl ();
28930int
28931main ()
28932{
28933return shmctl ();
28934 ;
28935 return 0;
28936}
28937_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028938if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028939 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028940fi
cristy8b350f62009-11-15 23:12:43 +000028941rm -f core conftest.err conftest.$ac_objext \
28942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028943 LIBS=$PERSIST_LIBS
28944 fi
28945
28946 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028948$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028949if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028950 $as_echo_n "(cached) " >&6
28951else
28952 ac_check_lib_save_LIBS=$LIBS
28953LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028955/* end confdefs.h. */
28956
28957/* Override any GCC internal prototype to avoid an error.
28958 Use char because int might match the return type of a GCC
28959 builtin and then its argument prototype would still apply. */
28960#ifdef __cplusplus
28961extern "C"
28962#endif
28963char XShmAttach ();
28964int
28965main ()
28966{
28967return XShmAttach ();
28968 ;
28969 return 0;
28970}
28971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028973 ac_cv_lib_Xext_XShmAttach=yes
28974else
cristy8b350f62009-11-15 23:12:43 +000028975 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028976fi
cristy8b350f62009-11-15 23:12:43 +000028977rm -f core conftest.err conftest.$ac_objext \
28978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028979LIBS=$ac_check_lib_save_LIBS
28980fi
cristy8b350f62009-11-15 23:12:43 +000028981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028982$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028983if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028984 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028985$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028986
28987fi
28988
28989 fi
28990
28991 #
28992 # Check for X11 shape extension
28993 #
cristy8b350f62009-11-15 23:12:43 +000028994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028995$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028996if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028997 $as_echo_n "(cached) " >&6
28998else
28999 ac_check_lib_save_LIBS=$LIBS
29000LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029002/* end confdefs.h. */
29003
29004/* Override any GCC internal prototype to avoid an error.
29005 Use char because int might match the return type of a GCC
29006 builtin and then its argument prototype would still apply. */
29007#ifdef __cplusplus
29008extern "C"
29009#endif
29010char XShapeCombineMask ();
29011int
29012main ()
29013{
29014return XShapeCombineMask ();
29015 ;
29016 return 0;
29017}
29018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029020 ac_cv_lib_Xext_XShapeCombineMask=yes
29021else
cristy8b350f62009-11-15 23:12:43 +000029022 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000029023fi
cristy8b350f62009-11-15 23:12:43 +000029024rm -f core conftest.err conftest.$ac_objext \
29025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029026LIBS=$ac_check_lib_save_LIBS
29027fi
cristy8b350f62009-11-15 23:12:43 +000029028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000029029$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000029030if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029031 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000029032$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029033
29034fi
29035
cristy8b350f62009-11-15 23:12:43 +000029036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000029037$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029038if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029039 $as_echo_n "(cached) " >&6
29040else
29041 ac_check_lib_save_LIBS=$LIBS
29042LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029044/* end confdefs.h. */
29045
29046/* Override any GCC internal prototype to avoid an error.
29047 Use char because int might match the return type of a GCC
29048 builtin and then its argument prototype would still apply. */
29049#ifdef __cplusplus
29050extern "C"
29051#endif
29052char XtSetEventDispatcher ();
29053int
29054main ()
29055{
29056return XtSetEventDispatcher ();
29057 ;
29058 return 0;
29059}
29060_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029061if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029062 ac_cv_lib_Xt_XtSetEventDispatcher=yes
29063else
cristy8b350f62009-11-15 23:12:43 +000029064 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000029065fi
cristy8b350f62009-11-15 23:12:43 +000029066rm -f core conftest.err conftest.$ac_objext \
29067 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029068LIBS=$ac_check_lib_save_LIBS
29069fi
cristy8b350f62009-11-15 23:12:43 +000029070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000029071$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000029072if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029073 XT_LIBS='-lXt'
29074fi
29075
29076 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
29077fi
29078if test "$no_x" != 'yes'; then
29079 have_x='yes'
29080else
29081 have_x='no'
29082fi
cristy73bd4a52010-10-05 11:24:23 +000029083 if test "$have_x" = 'yes'; then
29084 X11_DELEGATE_TRUE=
29085 X11_DELEGATE_FALSE='#'
29086else
29087 X11_DELEGATE_TRUE='#'
29088 X11_DELEGATE_FALSE=
29089fi
29090
cristy3ed852e2009-09-05 21:47:34 +000029091
29092
29093
29094
29095#
29096# Check for ZLIB
29097#
29098
29099# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000029100if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029101 withval=$with_zlib; with_zlib=$withval
29102else
29103 with_zlib='yes'
29104fi
29105
29106
29107if test "$with_zlib" != 'yes'; then
29108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
29109fi
29110
29111have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000029112ZLIB_CFLAGS=""
29113ZLIB_LIBS=""
29114ZLIB_PKG=""
29115if test "x$with_zlib" = "xyes"; then
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029117$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029118
29119pkg_failed=no
29120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000029121$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000029122
29123if test -n "$ZLIB_CFLAGS"; then
29124 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
29125 elif test -n "$PKG_CONFIG"; then
29126 if test -n "$PKG_CONFIG" && \
29127 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
29128 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
29129 ac_status=$?
29130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29131 test $ac_status = 0; }; then
29132 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
29133 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000029134else
cristy32f75d42015-06-05 18:46:23 +000029135 pkg_failed=yes
29136fi
29137 else
29138 pkg_failed=untried
29139fi
29140if test -n "$ZLIB_LIBS"; then
29141 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
29142 elif test -n "$PKG_CONFIG"; then
29143 if test -n "$PKG_CONFIG" && \
29144 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
29145 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
29146 ac_status=$?
29147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29148 test $ac_status = 0; }; then
29149 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
29150 test "x$?" != "x0" && pkg_failed=yes
29151else
29152 pkg_failed=yes
29153fi
29154 else
29155 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029156fi
29157
29158
cristy3ed852e2009-09-05 21:47:34 +000029159
cristy32f75d42015-06-05 18:46:23 +000029160if test $pkg_failed = yes; then
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29162$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029163
cristy32f75d42015-06-05 18:46:23 +000029164if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29165 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000029166else
cristy32f75d42015-06-05 18:46:23 +000029167 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000029168fi
cristy32f75d42015-06-05 18:46:23 +000029169 if test $_pkg_short_errors_supported = yes; then
29170 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000029171 else
cristy32f75d42015-06-05 18:46:23 +000029172 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
29173 fi
29174 # Put the nasty error message in config.log where it belongs
29175 echo "$ZLIB_PKG_ERRORS" >&5
29176
29177 have_zlib=no
29178elif test $pkg_failed = untried; then
29179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29180$as_echo "no" >&6; }
29181 have_zlib=no
29182else
29183 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
29184 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
29185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29186$as_echo "yes" >&6; }
29187 have_zlib=yes
29188fi
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29190$as_echo "" >&6; }
29191fi
29192
29193if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029194
cristy8b350f62009-11-15 23:12:43 +000029195$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029196
cristy32f75d42015-06-05 18:46:23 +000029197 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029198fi
cristy32f75d42015-06-05 18:46:23 +000029199
cristy73bd4a52010-10-05 11:24:23 +000029200 if test "$have_zlib" = 'yes'; then
29201 ZLIB_DELEGATE_TRUE=
29202 ZLIB_DELEGATE_FALSE='#'
29203else
29204 ZLIB_DELEGATE_TRUE='#'
29205 ZLIB_DELEGATE_FALSE=
29206fi
29207
cristy3ed852e2009-09-05 21:47:34 +000029208
29209
cristy32f75d42015-06-05 18:46:23 +000029210
29211
cristy5eef09f2012-10-16 12:08:28 +000029212# whether modules are built or not.
29213with_ltdl='yes'
29214have_ltdl='no'
29215LTDL_LIBS=''
29216if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000029217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29218$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000029219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
29220$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29222$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000029223 failed=0
29224 passed=0
29225 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
29226if test "x$ac_cv_header_ltdl_h" = xyes; then :
29227 passed=`expr $passed + 1`
29228else
29229 failed=`expr $failed + 1`
29230fi
29231
29232
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
29234$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
29235if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
29236 $as_echo_n "(cached) " >&6
29237else
29238 ac_check_lib_save_LIBS=$LIBS
29239LIBS="-lltdl $LIBS"
29240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29241/* end confdefs.h. */
29242
29243/* Override any GCC internal prototype to avoid an error.
29244 Use char because int might match the return type of a GCC
29245 builtin and then its argument prototype would still apply. */
29246#ifdef __cplusplus
29247extern "C"
29248#endif
29249char lt_dlinit ();
29250int
29251main ()
29252{
29253return lt_dlinit ();
29254 ;
29255 return 0;
29256}
29257_ACEOF
29258if ac_fn_c_try_link "$LINENO"; then :
29259 ac_cv_lib_ltdl_lt_dlinit=yes
29260else
29261 ac_cv_lib_ltdl_lt_dlinit=no
29262fi
29263rm -f core conftest.err conftest.$ac_objext \
29264 conftest$ac_exeext conftest.$ac_ext
29265LIBS=$ac_check_lib_save_LIBS
29266fi
29267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
29268$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
29269if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
29270 passed=`expr $passed + 1`
29271else
29272 failed=`expr $failed + 1`
29273fi
29274
29275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
29276$as_echo_n "checking if libltdl package is complete... " >&6; }
29277 if test $passed -gt 0 ; then
29278 if test $failed -gt 0 ; then
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29280$as_echo "no -- some components failed test" >&6; }
29281 have_ltdl='no (failed tests)'
29282 else
29283 LTDL_LIBS='-lltdl'
29284 LIBS="$LTDL_LIBS $LIBS"
29285
29286$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
29287
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29289$as_echo "yes" >&6; }
29290 have_ltdl='yes'
29291 fi
29292 else
29293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29294$as_echo "no" >&6; }
29295 fi
cristyaf4cbf32012-10-16 23:47:41 +000029296 if test "$have_ltdl" != 'yes' ; then
29297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29298$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29299as_fn_error 1 "libltdl is required for modules build
29300See \`config.log' for more details" "$LINENO" 5; }
29301 fi
cristy5eef09f2012-10-16 12:08:28 +000029302fi
29303 if test "$have_ltdl" != 'no'; then
29304 WITH_LTDL_TRUE=
29305 WITH_LTDL_FALSE='#'
29306else
29307 WITH_LTDL_TRUE='#'
29308 WITH_LTDL_FALSE=
29309fi
29310
29311
cristy3ed852e2009-09-05 21:47:34 +000029312#
29313# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
29314#
29315LIB_DL=''
29316if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000029318$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029319if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029320 $as_echo_n "(cached) " >&6
29321else
29322 ac_check_lib_save_LIBS=$LIBS
29323LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029324cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029325/* end confdefs.h. */
29326
29327/* Override any GCC internal prototype to avoid an error.
29328 Use char because int might match the return type of a GCC
29329 builtin and then its argument prototype would still apply. */
29330#ifdef __cplusplus
29331extern "C"
29332#endif
29333char dlopen ();
29334int
29335main ()
29336{
29337return dlopen ();
29338 ;
29339 return 0;
29340}
29341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029342if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029343 ac_cv_lib_dl_dlopen=yes
29344else
cristy8b350f62009-11-15 23:12:43 +000029345 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000029346fi
cristy8b350f62009-11-15 23:12:43 +000029347rm -f core conftest.err conftest.$ac_objext \
29348 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029349LIBS=$ac_check_lib_save_LIBS
29350fi
cristy8b350f62009-11-15 23:12:43 +000029351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029352$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029353if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029354 LIB_DL='-ldl'
29355fi
29356
29357 LIBS="$LIB_DL $LIBS"
29358fi
29359
29360
29361
29362#
cristy5a3dc992014-12-05 19:50:04 +000029363# Set Apple font directory.
29364#
29365
29366# Check whether --with-apple-font-dir was given.
29367if test "${with_apple_font_dir+set}" = set; then :
29368 withval=$with_apple_font_dir; with_apple_font_dir=$withval
29369else
29370 with_apple_font_dir='default'
29371fi
29372
29373
29374if test "$with_apple_font_dir" != 'default'; then
29375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
29376fi
29377
29378
29379#
cristy3ed852e2009-09-05 21:47:34 +000029380# Check for Autotrace delegate library.
29381#
29382
29383# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000029384if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029385 withval=$with_autotrace; with_autotrace=$withval
29386else
29387 with_autotrace='no'
29388fi
29389
29390
29391if test "$with_autotrace" != 'yes'; then
29392 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
29393fi
29394
29395have_autotrace='no'
29396AUTOTRACE_CFLAGS=""
29397AUTOTRACE_LIBS=""
29398AUTOTRACE_PKG=""
29399if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000029400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029401$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029402
29403pkg_failed=no
29404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
29405$as_echo_n "checking for AUTOTRACE... " >&6; }
29406
29407if test -n "$AUTOTRACE_CFLAGS"; then
29408 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
29409 elif test -n "$PKG_CONFIG"; then
29410 if test -n "$PKG_CONFIG" && \
29411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29412 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29413 ac_status=$?
29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415 test $ac_status = 0; }; then
29416 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029417 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029418else
29419 pkg_failed=yes
29420fi
29421 else
29422 pkg_failed=untried
29423fi
29424if test -n "$AUTOTRACE_LIBS"; then
29425 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
29426 elif test -n "$PKG_CONFIG"; then
29427 if test -n "$PKG_CONFIG" && \
29428 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29429 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29430 ac_status=$?
29431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29432 test $ac_status = 0; }; then
29433 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000029434 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000029435else
29436 pkg_failed=yes
29437fi
29438 else
29439 pkg_failed=untried
29440fi
29441
29442
29443
29444if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000029445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29446$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029447
29448if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29449 _pkg_short_errors_supported=yes
29450else
29451 _pkg_short_errors_supported=no
29452fi
29453 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000029454 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029455 else
cristy146497a2015-05-17 22:46:16 +000029456 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000029457 fi
29458 # Put the nasty error message in config.log where it belongs
29459 echo "$AUTOTRACE_PKG_ERRORS" >&5
29460
cristy146497a2015-05-17 22:46:16 +000029461 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000029462elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000029463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29464$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000029465 have_autotrace=no
29466else
29467 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
29468 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29470$as_echo "yes" >&6; }
29471 have_autotrace=yes
29472fi
cristy32f75d42015-06-05 18:46:23 +000029473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000029474$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029475fi
29476
29477if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029478
cristy8b350f62009-11-15 23:12:43 +000029479$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029480
cristy32f75d42015-06-05 18:46:23 +000029481 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029482fi
29483
cristy73bd4a52010-10-05 11:24:23 +000029484 if test "$have_autotrace" = 'yes'; then
29485 AUTOTRACE_DELEGATE_TRUE=
29486 AUTOTRACE_DELEGATE_FALSE='#'
29487else
29488 AUTOTRACE_DELEGATE_TRUE='#'
29489 AUTOTRACE_DELEGATE_FALSE=
29490fi
29491
cristy3ed852e2009-09-05 21:47:34 +000029492
29493
29494
29495
29496#
29497# Check for Display Postscript delegate library.
29498#
29499
29500# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000029501if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029502 withval=$with_dps; with_dps=$withval
29503else
29504 with_dps='yes'
29505fi
29506
29507
29508if test "$with_dps" != 'yes'; then
29509 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
29510fi
29511
29512have_dps='no'
29513DPS_LIBS=''
29514if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29516$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000029518$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29520$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029521 failed=0
29522 passed=0
29523 PERSIST_CPPFLAGS="$CPPFLAGS"
29524 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000029525 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 +000029526if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029527 passed=`expr $passed + 1`
29528else
29529 failed=`expr $failed + 1`
29530fi
29531
29532
29533 # DPS issues:
29534 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
29535 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
29536 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
29537 # ImageMagick itself doesn't use -lXt.
29538 have_libdps='no'
29539 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000029540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029541$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029542if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029543 $as_echo_n "(cached) " >&6
29544else
29545 ac_check_lib_save_LIBS=$LIBS
29546LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029548/* end confdefs.h. */
29549
29550/* Override any GCC internal prototype to avoid an error.
29551 Use char because int might match the return type of a GCC
29552 builtin and then its argument prototype would still apply. */
29553#ifdef __cplusplus
29554extern "C"
29555#endif
29556char DPSInitialize ();
29557int
29558main ()
29559{
29560return DPSInitialize ();
29561 ;
29562 return 0;
29563}
29564_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029565if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029566 ac_cv_lib_dps_DPSInitialize=yes
29567else
cristy8b350f62009-11-15 23:12:43 +000029568 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029569fi
cristy8b350f62009-11-15 23:12:43 +000029570rm -f core conftest.err conftest.$ac_objext \
29571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029572LIBS=$ac_check_lib_save_LIBS
29573fi
cristy8b350f62009-11-15 23:12:43 +000029574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029575$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029576if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029577 have_libdps='yes'
29578else
29579 have_libdps='no'
29580fi
29581
29582 if test "$have_libdps" != 'yes'; then
29583 # Unset cache variable so we can try again.
29584 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000029585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000029586$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029587if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029588 $as_echo_n "(cached) " >&6
29589else
29590 ac_check_lib_save_LIBS=$LIBS
29591LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029593/* end confdefs.h. */
29594
29595/* Override any GCC internal prototype to avoid an error.
29596 Use char because int might match the return type of a GCC
29597 builtin and then its argument prototype would still apply. */
29598#ifdef __cplusplus
29599extern "C"
29600#endif
29601char DPSInitialize ();
29602int
29603main ()
29604{
29605return DPSInitialize ();
29606 ;
29607 return 0;
29608}
29609_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029610if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029611 ac_cv_lib_dps_DPSInitialize=yes
29612else
cristy8b350f62009-11-15 23:12:43 +000029613 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029614fi
cristy8b350f62009-11-15 23:12:43 +000029615rm -f core conftest.err conftest.$ac_objext \
29616 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029617LIBS=$ac_check_lib_save_LIBS
29618fi
cristy8b350f62009-11-15 23:12:43 +000029619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029620$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029621if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029622 have_libdps='yes'
29623else
29624 have_libdps='no'
29625fi
29626
29627 if test "$have_libdps" = 'yes'; then
29628 LIBDPS_XT='-lXt'
29629 fi
29630 fi
29631 if test "$have_libdps" = 'yes'; then
29632 passed=`expr $passed + 1`
29633 else
29634 failed=`expr $failed + 1`
29635 fi
cristy8b350f62009-11-15 23:12:43 +000029636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029637$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029638if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029639 $as_echo_n "(cached) " >&6
29640else
29641 ac_check_lib_save_LIBS=$LIBS
29642LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029644/* end confdefs.h. */
29645
29646/* Override any GCC internal prototype to avoid an error.
29647 Use char because int might match the return type of a GCC
29648 builtin and then its argument prototype would still apply. */
29649#ifdef __cplusplus
29650extern "C"
29651#endif
29652char XDPSPixelsPerPoint ();
29653int
29654main ()
29655{
29656return XDPSPixelsPerPoint ();
29657 ;
29658 return 0;
29659}
29660_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029661if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029662 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29663else
cristy8b350f62009-11-15 23:12:43 +000029664 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029665fi
cristy8b350f62009-11-15 23:12:43 +000029666rm -f core conftest.err conftest.$ac_objext \
29667 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029668LIBS=$ac_check_lib_save_LIBS
29669fi
cristy8b350f62009-11-15 23:12:43 +000029670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029671$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029672if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029673 passed=`expr $passed + 1`
29674else
29675 failed=`expr $failed + 1`
29676fi
29677
cristy8b350f62009-11-15 23:12:43 +000029678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029679$as_echo_n "checking if DPS package is complete... " >&6; }
29680 if test $passed -gt 0; then
29681 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29683$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029684 have_dps='no (failed tests)'
29685 CPPFLAGS="$PERSIST_CPPFLAGS"
29686 else
29687 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29688 LIBS="$DPS_LIBS $LIBS"
29689
cristy8b350f62009-11-15 23:12:43 +000029690$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029691
cristyad38abe2012-12-23 23:03:21 +000029692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29693$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029694 have_dps='yes'
29695 fi
29696 else
cristyad38abe2012-12-23 23:03:21 +000029697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29698$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029699 CPPFLAGS=$PERSIST_CPPFLAGS
29700 fi
29701fi
cristy73bd4a52010-10-05 11:24:23 +000029702 if test "$have_dps" = 'yes'; then
29703 DPS_DELEGATE_TRUE=
29704 DPS_DELEGATE_FALSE='#'
29705else
29706 DPS_DELEGATE_TRUE='#'
29707 DPS_DELEGATE_FALSE=
29708fi
29709
cristy3ed852e2009-09-05 21:47:34 +000029710
29711
29712
29713#
cristy430a7312010-01-21 20:44:04 +000029714# Set DejaVu font directory.
29715#
29716
29717# Check whether --with-dejavu-font-dir was given.
29718if test "${with_dejavu_font_dir+set}" = set; then :
29719 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29720else
29721 with_dejavu_font_dir='default'
29722fi
29723
29724
29725if test "$with_dejavu_font_dir" != 'default'; then
29726 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29727fi
29728
29729
29730#
cristy3ed852e2009-09-05 21:47:34 +000029731# Check for FFTW delegate library.
29732#
29733
29734# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029735if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029736 withval=$with_fftw; with_fftw=$withval
29737else
29738 with_fftw='yes'
29739fi
29740
29741
29742if test "$with_fftw" != 'yes'; then
29743 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29744fi
29745
cristy81beccd2011-10-03 18:17:24 +000029746have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000029747FFTW_CFLAGS=""
29748FFTW_LIBS=""
29749FFTW_PKG=""
29750if test "x$with_fftw" = "xyes"; then
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000029752$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029753
29754pkg_failed=no
29755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
29756$as_echo_n "checking for fftw3... " >&6; }
29757
29758if test -n "$fftw3_CFLAGS"; then
29759 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
29760 elif test -n "$PKG_CONFIG"; then
29761 if test -n "$PKG_CONFIG" && \
29762 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29763 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29764 ac_status=$?
29765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29766 test $ac_status = 0; }; then
29767 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
29768 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000029769else
cristy32f75d42015-06-05 18:46:23 +000029770 pkg_failed=yes
29771fi
29772 else
29773 pkg_failed=untried
29774fi
29775if test -n "$fftw3_LIBS"; then
29776 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
29777 elif test -n "$PKG_CONFIG"; then
29778 if test -n "$PKG_CONFIG" && \
29779 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
29780 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
29781 ac_status=$?
29782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29783 test $ac_status = 0; }; then
29784 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
29785 test "x$?" != "x0" && pkg_failed=yes
29786else
29787 pkg_failed=yes
29788fi
29789 else
29790 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000029791fi
29792
cristy81beccd2011-10-03 18:17:24 +000029793
cristy81beccd2011-10-03 18:17:24 +000029794
cristy32f75d42015-06-05 18:46:23 +000029795if test $pkg_failed = yes; then
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29797$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000029798
cristy32f75d42015-06-05 18:46:23 +000029799if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29800 _pkg_short_errors_supported=yes
29801else
29802 _pkg_short_errors_supported=no
29803fi
29804 if test $_pkg_short_errors_supported = yes; then
29805 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000029806 else
cristy32f75d42015-06-05 18:46:23 +000029807 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
29808 fi
29809 # Put the nasty error message in config.log where it belongs
29810 echo "$fftw3_PKG_ERRORS" >&5
29811
29812 have_fftw=no
29813elif test $pkg_failed = untried; then
29814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29815$as_echo "no" >&6; }
29816 have_fftw=no
29817else
29818 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
29819 fftw3_LIBS=$pkg_cv_fftw3_LIBS
29820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29821$as_echo "yes" >&6; }
29822 have_fftw=yes
29823fi
29824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29825$as_echo "" >&6; }
29826fi
29827
29828if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029829
cristy8b350f62009-11-15 23:12:43 +000029830$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029831
cristyb74ab6e2015-06-06 12:39:54 +000029832 FFTW_CFLAGS="$fftw3_CFLAGS"
29833 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000029834 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000029835fi
cristy32f75d42015-06-05 18:46:23 +000029836
cristy73bd4a52010-10-05 11:24:23 +000029837 if test "$have_fftw" = 'yes'; then
29838 FFTW_DELEGATE_TRUE=
29839 FFTW_DELEGATE_FALSE='#'
29840else
29841 FFTW_DELEGATE_TRUE='#'
29842 FFTW_DELEGATE_FALSE=
29843fi
29844
cristy3ed852e2009-09-05 21:47:34 +000029845
29846
29847
cristy32f75d42015-06-05 18:46:23 +000029848
cristy3ed852e2009-09-05 21:47:34 +000029849#
29850# Check for FlashPIX delegate library.
29851#
29852
29853# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029854if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029855 withval=$with_fpx; with_fpx=$withval
29856else
29857 with_fpx='yes'
29858fi
29859
29860
29861if test "$with_fpx" != 'yes'; then
29862 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29863fi
29864
29865have_fpx='no'
29866FPX_LIBS=''
29867if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000029868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29869$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029871$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29873$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029874 failed=0
29875 passed=0
29876 ac_ext=cpp
29877ac_cpp='$CXXCPP $CPPFLAGS'
29878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29881
29882
cristy8b350f62009-11-15 23:12:43 +000029883ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029884if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029885 passed=`expr $passed + 1`
29886else
29887 failed=`expr $failed + 1`
29888fi
29889
29890
cristy8b350f62009-11-15 23:12:43 +000029891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029892$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029893if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029894 $as_echo_n "(cached) " >&6
29895else
29896 ac_check_lib_save_LIBS=$LIBS
29897LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029899/* end confdefs.h. */
29900
29901/* Override any GCC internal prototype to avoid an error.
29902 Use char because int might match the return type of a GCC
29903 builtin and then its argument prototype would still apply. */
29904#ifdef __cplusplus
29905extern "C"
29906#endif
29907char FPX_OpenImageByFilename ();
29908int
29909main ()
29910{
29911return FPX_OpenImageByFilename ();
29912 ;
29913 return 0;
29914}
29915_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029916if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029917 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29918else
cristy8b350f62009-11-15 23:12:43 +000029919 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029920fi
cristy8b350f62009-11-15 23:12:43 +000029921rm -f core conftest.err conftest.$ac_objext \
29922 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029923LIBS=$ac_check_lib_save_LIBS
29924fi
cristy8b350f62009-11-15 23:12:43 +000029925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029926$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029927if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029928 passed=`expr $passed + 1`
29929else
29930 failed=`expr $failed + 1`
29931fi
29932
29933 ac_ext=c
29934ac_cpp='$CPP $CPPFLAGS'
29935ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29936ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29937ac_compiler_gnu=$ac_cv_c_compiler_gnu
29938
cristy8b350f62009-11-15 23:12:43 +000029939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029940$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29941 if test $passed -gt 0; then
29942 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29944$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029945 have_fpx='no (failed tests)'
29946 else
29947 FPX_LIBS='-lfpx'
29948
cristy8b350f62009-11-15 23:12:43 +000029949$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029950
cristyad38abe2012-12-23 23:03:21 +000029951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29952$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029953 have_fpx='yes'
29954 PERLMAINCC="$CXX"
29955 fi
29956 else
cristyad38abe2012-12-23 23:03:21 +000029957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29958$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029959 fi
29960fi
cristy73bd4a52010-10-05 11:24:23 +000029961 if test "$have_fpx" = 'yes'; then
29962 FPX_DELEGATE_TRUE=
29963 FPX_DELEGATE_FALSE='#'
29964else
29965 FPX_DELEGATE_TRUE='#'
29966 FPX_DELEGATE_FALSE=
29967fi
29968
cristy3ed852e2009-09-05 21:47:34 +000029969
cristy853d9902014-08-21 18:50:43 +000029970
29971
29972#
29973# Check for DJVU delegate library.
29974#
29975
29976# Check whether --with-djvu was given.
29977if test "${with_djvu+set}" = set; then :
29978 withval=$with_djvu; with_djvu=$withval
29979else
29980 with_djvu='yes'
29981fi
29982
29983
29984if test "$with_djvu" != 'yes'; then
29985 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29986fi
29987
29988have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000029989DJVU_CFLAGS=""
29990DJVU_LIBS=""
29991DJVU_PKG=""
29992if test "x$with_djvu" = "xyes"; then
29993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000029994$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000029995
29996pkg_failed=no
29997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
29998$as_echo_n "checking for ddjvuapi... " >&6; }
29999
30000if test -n "$ddjvuapi_CFLAGS"; then
30001 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
30002 elif test -n "$PKG_CONFIG"; then
30003 if test -n "$PKG_CONFIG" && \
30004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
30005 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
30006 ac_status=$?
30007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30008 test $ac_status = 0; }; then
30009 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
30010 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000030011else
cristy32f75d42015-06-05 18:46:23 +000030012 pkg_failed=yes
30013fi
30014 else
30015 pkg_failed=untried
30016fi
30017if test -n "$ddjvuapi_LIBS"; then
30018 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
30019 elif test -n "$PKG_CONFIG"; then
30020 if test -n "$PKG_CONFIG" && \
30021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
30022 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
30023 ac_status=$?
30024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30025 test $ac_status = 0; }; then
30026 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
30027 test "x$?" != "x0" && pkg_failed=yes
30028else
30029 pkg_failed=yes
30030fi
30031 else
30032 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000030033fi
30034
30035
cristy853d9902014-08-21 18:50:43 +000030036
cristy32f75d42015-06-05 18:46:23 +000030037if test $pkg_failed = yes; then
30038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30039$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000030040
cristy32f75d42015-06-05 18:46:23 +000030041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30042 _pkg_short_errors_supported=yes
30043else
30044 _pkg_short_errors_supported=no
30045fi
30046 if test $_pkg_short_errors_supported = yes; then
30047 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000030048 else
cristy32f75d42015-06-05 18:46:23 +000030049 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
30050 fi
30051 # Put the nasty error message in config.log where it belongs
30052 echo "$ddjvuapi_PKG_ERRORS" >&5
30053
30054 have_djvu=no
30055elif test $pkg_failed = untried; then
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30057$as_echo "no" >&6; }
30058 have_djvu=no
30059else
30060 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
30061 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
30062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30063$as_echo "yes" >&6; }
30064 have_djvu=yes
30065fi
30066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30067$as_echo "" >&6; }
30068fi
30069
30070if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000030071
30072$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
30073
cristyc83c2cc2015-06-06 16:35:26 +000030074 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
30075 DJVU_LIBS="$ddjvuapi_LIBS"
30076 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000030077fi
cristy32f75d42015-06-05 18:46:23 +000030078
cristy853d9902014-08-21 18:50:43 +000030079 if test "$have_djvu" = 'yes'; then
30080 DJVU_DELEGATE_TRUE=
30081 DJVU_DELEGATE_FALSE='#'
30082else
30083 DJVU_DELEGATE_TRUE='#'
30084 DJVU_DELEGATE_FALSE=
30085fi
30086
30087
cristy3ed852e2009-09-05 21:47:34 +000030088
30089
cristy32f75d42015-06-05 18:46:23 +000030090
cristy3ed852e2009-09-05 21:47:34 +000030091#
30092# Check for fontconfig delegate library.
30093#
30094
30095# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000030096if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030097 withval=$with_fontconfig; with_fontconfig=$withval
30098else
cristyfc3d0222012-02-07 15:05:57 +000030099 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000030100fi
30101
30102
30103if test "$with_fontconfig" != 'yes'; then
30104 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
30105fi
30106
30107have_fontconfig='no'
30108FONTCONFIG_CFLAGS=""
30109FONTCONFIG_LIBS=""
30110FONTCONFIG_PKG=""
30111if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030113$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030114
30115pkg_failed=no
30116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
30117$as_echo_n "checking for FONTCONFIG... " >&6; }
30118
30119if test -n "$FONTCONFIG_CFLAGS"; then
30120 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
30121 elif test -n "$PKG_CONFIG"; then
30122 if test -n "$PKG_CONFIG" && \
30123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30124 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30125 ac_status=$?
30126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30127 test $ac_status = 0; }; then
30128 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030129 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030130else
30131 pkg_failed=yes
30132fi
30133 else
30134 pkg_failed=untried
30135fi
30136if test -n "$FONTCONFIG_LIBS"; then
30137 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
30138 elif test -n "$PKG_CONFIG"; then
30139 if test -n "$PKG_CONFIG" && \
30140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30141 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30142 ac_status=$?
30143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30144 test $ac_status = 0; }; then
30145 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030146 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030147else
30148 pkg_failed=yes
30149fi
30150 else
30151 pkg_failed=untried
30152fi
30153
30154
30155
30156if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30158$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030159
30160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30161 _pkg_short_errors_supported=yes
30162else
30163 _pkg_short_errors_supported=no
30164fi
30165 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030166 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030167 else
cristy146497a2015-05-17 22:46:16 +000030168 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030169 fi
30170 # Put the nasty error message in config.log where it belongs
30171 echo "$FONTCONFIG_PKG_ERRORS" >&5
30172
cristy146497a2015-05-17 22:46:16 +000030173 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000030174elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030177 have_fontconfig=no
30178else
30179 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
30180 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30182$as_echo "yes" >&6; }
30183 have_fontconfig=yes
30184fi
cristy32f75d42015-06-05 18:46:23 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030186$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030187fi
30188
30189if test "$have_fontconfig" = 'yes'; then
30190
cristy8b350f62009-11-15 23:12:43 +000030191$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030192
cristy32f75d42015-06-05 18:46:23 +000030193 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030194fi
30195
cristy73bd4a52010-10-05 11:24:23 +000030196 if test "$have_fontconfig" = 'yes'; then
30197 FONTCONFIG_DELEGATE_TRUE=
30198 FONTCONFIG_DELEGATE_FALSE='#'
30199else
30200 FONTCONFIG_DELEGATE_TRUE='#'
30201 FONTCONFIG_DELEGATE_FALSE=
30202fi
30203
cristy3ed852e2009-09-05 21:47:34 +000030204
30205
30206
30207
30208#
cristy03f187e2013-01-24 00:22:19 +000030209# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000030210#
30211
30212# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000030213if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030214 withval=$with_freetype; with_freetype=$withval
30215else
30216 with_freetype='yes'
30217fi
30218
30219
cristy3ed852e2009-09-05 21:47:34 +000030220if test "$with_freetype" != 'yes'; then
30221 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
30222fi
30223
cristy81beccd2011-10-03 18:17:24 +000030224have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000030225FREETYPE_CFLAGS=""
30226FREETYPE_LIBS=""
30227FREETYPE_PKG=""
30228if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030230$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000030231
30232pkg_failed=no
30233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
30234$as_echo_n "checking for FREETYPE... " >&6; }
30235
30236if test -n "$FREETYPE_CFLAGS"; then
30237 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
30238 elif test -n "$PKG_CONFIG"; then
30239 if test -n "$PKG_CONFIG" && \
30240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30241 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30242 ac_status=$?
30243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30244 test $ac_status = 0; }; then
30245 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030246 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000030247else
30248 pkg_failed=yes
30249fi
30250 else
30251 pkg_failed=untried
30252fi
30253if test -n "$FREETYPE_LIBS"; then
30254 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
30255 elif test -n "$PKG_CONFIG"; then
30256 if test -n "$PKG_CONFIG" && \
30257 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30258 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30259 ac_status=$?
30260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30261 test $ac_status = 0; }; then
30262 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030263 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000030264else
30265 pkg_failed=yes
30266fi
30267 else
30268 pkg_failed=untried
30269fi
30270
30271
30272
30273if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30275$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000030276
30277if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30278 _pkg_short_errors_supported=yes
30279else
30280 _pkg_short_errors_supported=no
30281fi
30282 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030283 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000030284 else
cristy146497a2015-05-17 22:46:16 +000030285 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000030286 fi
30287 # Put the nasty error message in config.log where it belongs
30288 echo "$FREETYPE_PKG_ERRORS" >&5
30289
cristy146497a2015-05-17 22:46:16 +000030290 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000030291elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30293$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000030294 have_freetype=no
30295else
30296 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
30297 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
30298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30299$as_echo "yes" >&6; }
30300 have_freetype=yes
30301fi
cristy32f75d42015-06-05 18:46:23 +000030302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030303$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030304fi
30305
cristy03f187e2013-01-24 00:22:19 +000030306if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030307
cristy8b350f62009-11-15 23:12:43 +000030308$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030309
cristy32f75d42015-06-05 18:46:23 +000030310 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030311fi
cristy03f187e2013-01-24 00:22:19 +000030312
cristy73bd4a52010-10-05 11:24:23 +000030313 if test "$have_freetype" = 'yes'; then
30314 FREETYPE_DELEGATE_TRUE=
30315 FREETYPE_DELEGATE_FALSE='#'
30316else
30317 FREETYPE_DELEGATE_TRUE='#'
30318 FREETYPE_DELEGATE_FALSE=
30319fi
30320
cristy3ed852e2009-09-05 21:47:34 +000030321
30322
30323
cristy03f187e2013-01-24 00:22:19 +000030324
cristy3ed852e2009-09-05 21:47:34 +000030325#
30326# Check for Ghostscript library or framework.
30327#
30328# Test for iapi.h & test for gsapi_new_instance in -lgs
30329# or -framework Ghostscript
30330
30331
30332# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000030333if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030334 withval=$with_gslib; with_gslib=$withval
30335else
30336 with_gslib='no'
30337fi
30338
30339
cristyb7931f12009-09-25 10:22:21 +000030340gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000030341if test "$with_gslib" != 'yes'; then
30342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
30343fi
30344
30345have_gslib='no'
30346GS_LIBS=''
30347if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30349$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000030351$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30353$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000030354 framework=0
cristy3ed852e2009-09-05 21:47:34 +000030355 failed=0
30356 passed=0
cristy8b350f62009-11-15 23:12:43 +000030357 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 +000030358if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030359 passed=`expr $passed + 1`
30360else
30361 failed=`expr $failed + 1`
30362fi
30363
30364
cristy8b350f62009-11-15 23:12:43 +000030365 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 +000030366if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030367 passed=`expr $passed + 1`
30368else
30369 failed=`expr $failed + 1`
30370fi
30371
30372
cristy73bd4a52010-10-05 11:24:23 +000030373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
30374$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030375if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000030376 $as_echo_n "(cached) " >&6
30377else
30378 ac_check_framework_save_LIBS=$LIBS
30379LIBS="-framework Ghostscript $LIBS"
30380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30381/* end confdefs.h. */
30382
30383/* Override any GCC internal prototype to avoid an error.
30384 Use char because int might match the return type of a GCC
30385 builtin and then its argument prototype would still apply. */
30386#ifdef __cplusplus
30387extern "C"
30388#endif
30389char gsapi_new_instance ();
30390int
30391main ()
30392{
30393return gsapi_new_instance ();
30394 ;
30395 return 0;
30396}
30397_ACEOF
30398if ac_fn_c_try_link "$LINENO"; then :
30399 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
30400else
30401 ac_cv_framework_Ghostscript_gsapi_new_instance=no
30402fi
30403rm -f core conftest.err conftest.$ac_objext \
30404 conftest$ac_exeext conftest.$ac_ext
30405LIBS=$ac_check_framework_save_LIBS
30406fi
30407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
30408$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
30409if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
30410 framework=`expr $framework + 1`
30411else
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000030413$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030414if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030415 $as_echo_n "(cached) " >&6
30416else
30417 ac_check_lib_save_LIBS=$LIBS
30418LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030420/* end confdefs.h. */
30421
30422/* Override any GCC internal prototype to avoid an error.
30423 Use char because int might match the return type of a GCC
30424 builtin and then its argument prototype would still apply. */
30425#ifdef __cplusplus
30426extern "C"
30427#endif
30428char gsapi_new_instance ();
30429int
30430main ()
30431{
30432return gsapi_new_instance ();
30433 ;
30434 return 0;
30435}
30436_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030437if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030438 ac_cv_lib_gs_gsapi_new_instance=yes
30439else
cristy8b350f62009-11-15 23:12:43 +000030440 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000030441fi
cristy8b350f62009-11-15 23:12:43 +000030442rm -f core conftest.err conftest.$ac_objext \
30443 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030444LIBS=$ac_check_lib_save_LIBS
30445fi
cristy8b350f62009-11-15 23:12:43 +000030446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000030447$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000030448if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030449 passed=`expr $passed + 1`
30450else
30451 failed=`expr $failed + 1`
30452fi
cristy73bd4a52010-10-05 11:24:23 +000030453
30454fi
cristy8b350f62009-11-15 23:12:43 +000030455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030456$as_echo_n "checking if Ghostscript package is complete... " >&6; }
30457 if test $passed -gt 0; then
30458 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30460$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030461 have_gslib='no (failed tests)'
30462 else
30463 if test $framework -gt 0; then
30464 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000030465 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000030466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
30467$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030468 else
cristyad38abe2012-12-23 23:03:21 +000030469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
30470$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030471 GS_LIBS='-lgs'
30472 fi
30473 LIBS="$GS_LIBS $LIBS"
30474
cristy8b350f62009-11-15 23:12:43 +000030475$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030476
30477 have_gslib='yes'
30478 fi
30479 else
cristyad38abe2012-12-23 23:03:21 +000030480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030482 fi
30483fi
cristy73bd4a52010-10-05 11:24:23 +000030484 if test "$have_gslib" = 'yes'; then
30485 GS_DELEGATE_TRUE=
30486 GS_DELEGATE_FALSE='#'
30487else
30488 GS_DELEGATE_TRUE='#'
30489 GS_DELEGATE_FALSE=
30490fi
30491
cristy3ed852e2009-09-05 21:47:34 +000030492
30493
30494# Set default font search path
30495
30496# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000030497if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030498 withval=$with_fontpath; with_fontpath=$withval
30499else
30500 with_fontpath=''
30501fi
30502
30503
30504if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
30505 with_fontpath=''
30506else
30507
30508cat >>confdefs.h <<_ACEOF
30509#define MAGICK_FONT_PATH "$with_fontpath"
30510_ACEOF
30511
30512fi
30513if test "$with_fontpath=" != ''; then
30514 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
30515fi
30516
30517# Set Ghostscript font directory
30518
30519# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000030520if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030521 withval=$with_gs_font_dir; with_gs_font_dir=$withval
30522else
30523 with_gs_font_dir='default'
30524fi
30525
30526
30527if test "$with_gs_font_dir" != 'default'; then
30528 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
30529fi
30530
30531
30532#
30533# Check for GVC delegate library.
30534#
30535
30536# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000030537if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030538 withval=$with_gvc; with_gvc=$withval
30539else
cristy86e31f32015-06-06 15:47:32 +000030540 with_gvc='yes'
cristy3ed852e2009-09-05 21:47:34 +000030541fi
30542
30543
30544if test "$with_gvc" != 'yes'; then
30545 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
30546fi
30547
30548GVC_PKG=""
30549if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030551$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030552
30553pkg_failed=no
30554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
30555$as_echo_n "checking for GVC... " >&6; }
30556
30557if test -n "$GVC_CFLAGS"; then
30558 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30559 elif test -n "$PKG_CONFIG"; then
30560 if test -n "$PKG_CONFIG" && \
30561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30562 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30563 ac_status=$?
30564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; }; then
30566 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030567 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030568else
30569 pkg_failed=yes
30570fi
30571 else
30572 pkg_failed=untried
30573fi
30574if test -n "$GVC_LIBS"; then
30575 pkg_cv_GVC_LIBS="$GVC_LIBS"
30576 elif test -n "$PKG_CONFIG"; then
30577 if test -n "$PKG_CONFIG" && \
30578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30579 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30580 ac_status=$?
30581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30582 test $ac_status = 0; }; then
30583 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030584 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030585else
30586 pkg_failed=yes
30587fi
30588 else
30589 pkg_failed=untried
30590fi
30591
30592
30593
30594if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30596$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030597
30598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30599 _pkg_short_errors_supported=yes
30600else
30601 _pkg_short_errors_supported=no
30602fi
30603 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030604 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030605 else
cristy146497a2015-05-17 22:46:16 +000030606 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030607 fi
30608 # Put the nasty error message in config.log where it belongs
30609 echo "$GVC_PKG_ERRORS" >&5
30610
cristy146497a2015-05-17 22:46:16 +000030611 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000030612elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30614$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030615 have_gvc=no
30616else
30617 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30618 GVC_LIBS=$pkg_cv_GVC_LIBS
30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30620$as_echo "yes" >&6; }
30621 have_gvc=yes
30622fi
cristy32f75d42015-06-05 18:46:23 +000030623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030624$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030625fi
30626
30627if test "$have_gvc" = 'yes'; then
30628
cristy8b350f62009-11-15 23:12:43 +000030629$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030630
cristy32f75d42015-06-05 18:46:23 +000030631 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030632fi
30633
cristy73bd4a52010-10-05 11:24:23 +000030634 if test "$have_gvc" = 'yes'; then
30635 GVC_DELEGATE_TRUE=
30636 GVC_DELEGATE_FALSE='#'
30637else
30638 GVC_DELEGATE_TRUE='#'
30639 GVC_DELEGATE_FALSE=
30640fi
30641
cristy3ed852e2009-09-05 21:47:34 +000030642
30643
30644
30645
30646#
30647# Check for JBIG delegate library.
30648#
30649
30650
30651# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030652if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030653 withval=$with_jbig; with_jbig=$withval
30654else
30655 with_jbig='yes'
30656fi
30657
30658
30659have_jbig='no'
30660JBIG_LIBS=''
30661if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30663$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030665$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30667$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030668 failed=0
30669 passed=0
cristy8b350f62009-11-15 23:12:43 +000030670 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030671if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030672 passed=`expr $passed + 1`
30673else
30674 failed=`expr $failed + 1`
30675fi
30676
30677
cristy8b350f62009-11-15 23:12:43 +000030678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030679$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030680if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030681 $as_echo_n "(cached) " >&6
30682else
30683 ac_check_lib_save_LIBS=$LIBS
30684LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030686/* end confdefs.h. */
30687
30688/* Override any GCC internal prototype to avoid an error.
30689 Use char because int might match the return type of a GCC
30690 builtin and then its argument prototype would still apply. */
30691#ifdef __cplusplus
30692extern "C"
30693#endif
30694char jbg_dec_init ();
30695int
30696main ()
30697{
30698return jbg_dec_init ();
30699 ;
30700 return 0;
30701}
30702_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030703if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030704 ac_cv_lib_jbig_jbg_dec_init=yes
30705else
cristy8b350f62009-11-15 23:12:43 +000030706 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030707fi
cristy8b350f62009-11-15 23:12:43 +000030708rm -f core conftest.err conftest.$ac_objext \
30709 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030710LIBS=$ac_check_lib_save_LIBS
30711fi
cristy8b350f62009-11-15 23:12:43 +000030712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030713$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030714if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030715 passed=`expr $passed + 1`
30716else
30717 failed=`expr $failed + 1`
30718fi
30719
cristy8b350f62009-11-15 23:12:43 +000030720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030721$as_echo_n "checking if JBIG package is complete... " >&6; }
30722 if test $passed -gt 0; then
30723 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30725$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030726 have_jbig='no (failed tests)'
30727 else
30728 JBIG_LIBS='-ljbig'
30729 LIBS="$JBIG_LIBS $LIBS"
30730
cristy8b350f62009-11-15 23:12:43 +000030731$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030732
cristyad38abe2012-12-23 23:03:21 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30734$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030735 have_jbig='yes'
30736 fi
30737 else
cristyad38abe2012-12-23 23:03:21 +000030738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30739$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030740 fi
30741fi
cristy73bd4a52010-10-05 11:24:23 +000030742 if test "$have_jbig" = 'yes'; then
30743 JBIG_DELEGATE_TRUE=
30744 JBIG_DELEGATE_FALSE='#'
30745else
30746 JBIG_DELEGATE_TRUE='#'
30747 JBIG_DELEGATE_FALSE=
30748fi
30749
cristy3ed852e2009-09-05 21:47:34 +000030750
30751
30752
30753#
30754# Check for JPEG delegate library.
30755#
30756
30757# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030758if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030759 withval=$with_jpeg; with_jpeg=$withval
30760else
30761 with_jpeg='yes'
30762fi
30763
30764
30765if test "$with_jpeg" != 'yes'; then
30766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30767fi
30768
30769have_jpeg='no'
30770JPEG_LIBS=''
30771if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30773$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030775$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30777$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030778 failed=0
30779 passed=0
cristy8b350f62009-11-15 23:12:43 +000030780 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030781if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030782 passed=`expr $passed + 1`
30783else
30784 failed=`expr $failed + 1`
30785fi
30786
30787
cristy8b350f62009-11-15 23:12:43 +000030788 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030789if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030790 passed=`expr $passed + 1`
30791else
30792 failed=`expr $failed + 1`
30793fi
30794
30795
cristy8b350f62009-11-15 23:12:43 +000030796 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030797if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030798 passed=`expr $passed + 1`
30799else
30800 failed=`expr $failed + 1`
30801fi
30802
30803
cristy8b350f62009-11-15 23:12:43 +000030804 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030805if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030806 passed=`expr $passed + 1`
30807else
30808 failed=`expr $failed + 1`
30809fi
30810
30811
cristy8b350f62009-11-15 23:12:43 +000030812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030813$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030814if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030815 $as_echo_n "(cached) " >&6
30816else
30817 ac_check_lib_save_LIBS=$LIBS
30818LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030820/* end confdefs.h. */
30821
30822/* Override any GCC internal prototype to avoid an error.
30823 Use char because int might match the return type of a GCC
30824 builtin and then its argument prototype would still apply. */
30825#ifdef __cplusplus
30826extern "C"
30827#endif
30828char jpeg_read_header ();
30829int
30830main ()
30831{
30832return jpeg_read_header ();
30833 ;
30834 return 0;
30835}
30836_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030837if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030838 ac_cv_lib_jpeg_jpeg_read_header=yes
30839else
cristy8b350f62009-11-15 23:12:43 +000030840 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030841fi
cristy8b350f62009-11-15 23:12:43 +000030842rm -f core conftest.err conftest.$ac_objext \
30843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030844LIBS=$ac_check_lib_save_LIBS
30845fi
cristy8b350f62009-11-15 23:12:43 +000030846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030847$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030848if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030849 passed=`expr $passed + 1`
30850else
30851 failed=`expr $failed + 1`
30852fi
30853
30854
30855# Test for compatible JPEG library
30856if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030858$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030859if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030860 $as_echo_n "(cached) " >&6
30861else
cristy8b350f62009-11-15 23:12:43 +000030862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030863/* end confdefs.h. */
30864#include <stdio.h>
30865#include <stdlib.h>
30866#include <jpeglib.h>
30867
30868int
30869main ()
30870{
30871
30872#if JPEG_LIB_VERSION < 62
30873#error IJG JPEG library must be version 6b or newer!
30874#endif
30875return 0;
30876
30877 ;
30878 return 0;
30879}
30880_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030881if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030882 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30883else
cristy8b350f62009-11-15 23:12:43 +000030884 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030885fi
cristy3ed852e2009-09-05 21:47:34 +000030886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30887fi
cristy8b350f62009-11-15 23:12:43 +000030888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030889$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30890fi
cristy8b350f62009-11-15 23:12:43 +000030891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030892$as_echo_n "checking if JPEG package is complete... " >&6; }
30893 if test $passed -gt 0; then
30894 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000030895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30896$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030897 have_jpeg='no (failed tests)'
30898 else
30899 JPEG_LIBS='-ljpeg'
30900 LIBS="$JPEG_LIBS $LIBS"
30901
cristy8b350f62009-11-15 23:12:43 +000030902$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030903
cristyad38abe2012-12-23 23:03:21 +000030904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030906 have_jpeg='yes'
30907 fi
30908 else
cristyad38abe2012-12-23 23:03:21 +000030909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30910$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030911 fi
30912fi
cristy73bd4a52010-10-05 11:24:23 +000030913 if test "$have_jpeg" = 'yes'; then
30914 JPEG_DELEGATE_TRUE=
30915 JPEG_DELEGATE_FALSE='#'
30916else
30917 JPEG_DELEGATE_TRUE='#'
30918 JPEG_DELEGATE_FALSE=
30919fi
30920
cristy3ed852e2009-09-05 21:47:34 +000030921
30922
30923
30924#
cristy3ed852e2009-09-05 21:47:34 +000030925# Check for LCMS delegate library.
30926#
30927
30928# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030929if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030930 withval=$with_lcms; with_lcms=$withval
30931else
30932 with_lcms='yes'
30933fi
30934
cristy71203402010-06-18 13:12:03 +000030935if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030936 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30937fi
30938
cristy71203402010-06-18 13:12:03 +000030939have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000030940LCMS_CFLAGS=""
30941LCMS_LIBS=""
30942LCMS_PKG=""
30943if test "x$with_lcms" = "xyes"; then
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030945$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000030946
cristy32f75d42015-06-05 18:46:23 +000030947pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000030948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
30949$as_echo_n "checking for LCMS2... " >&6; }
30950
30951if test -n "$LCMS2_CFLAGS"; then
30952 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
30953 elif test -n "$PKG_CONFIG"; then
30954 if test -n "$PKG_CONFIG" && \
30955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30956 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30957 ac_status=$?
30958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30959 test $ac_status = 0; }; then
30960 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
30961 test "x$?" != "x0" && pkg_failed=yes
30962else
30963 pkg_failed=yes
30964fi
30965 else
30966 pkg_failed=untried
30967fi
30968if test -n "$LCMS2_LIBS"; then
30969 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
30970 elif test -n "$PKG_CONFIG"; then
30971 if test -n "$PKG_CONFIG" && \
30972 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
30973 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
30974 ac_status=$?
30975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30976 test $ac_status = 0; }; then
30977 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
30978 test "x$?" != "x0" && pkg_failed=yes
30979else
30980 pkg_failed=yes
30981fi
30982 else
30983 pkg_failed=untried
30984fi
30985
30986
30987
30988if test $pkg_failed = yes; then
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30990$as_echo "no" >&6; }
30991
30992if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30993 _pkg_short_errors_supported=yes
30994else
30995 _pkg_short_errors_supported=no
30996fi
30997 if test $_pkg_short_errors_supported = yes; then
30998 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
30999 else
31000 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31001 fi
31002 # Put the nasty error message in config.log where it belongs
31003 echo "$LCMS2_PKG_ERRORS" >&5
31004
31005 have_lcms=no
31006elif test $pkg_failed = untried; then
31007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31008$as_echo "no" >&6; }
31009 have_lcms=no
31010else
31011 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
31012 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31014$as_echo "yes" >&6; }
31015 have_lcms=yes
31016fi
31017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31018$as_echo "" >&6; }
31019fi
31020
31021if test "$have_lcms" = 'yes'; then
31022
31023$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
31024
cristyb74ab6e2015-06-06 12:39:54 +000031025 LCMS_CFLAGS="$LCMS2_CFLAGS"
31026 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000031027 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000031028 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
31029if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
31030 have_lcms_header='yes'
31031fi
31032
31033
31034 if test "$have_lcms_header" = 'yes'; then
31035
31036$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
31037
cristybc8ef1c2015-06-06 14:32:21 +000031038 else
31039
31040$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
31041
cristyd6ac47f2015-06-06 13:46:55 +000031042 fi
cristy32f75d42015-06-05 18:46:23 +000031043fi
31044
31045 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000031046 LCMS_DELEGATE_TRUE=
31047 LCMS_DELEGATE_FALSE='#'
31048else
31049 LCMS_DELEGATE_TRUE='#'
31050 LCMS_DELEGATE_FALSE=
31051fi
31052
cristy71203402010-06-18 13:12:03 +000031053
cristy3ed852e2009-09-05 21:47:34 +000031054
31055
31056
31057#
cristy99db3872014-01-01 15:11:34 +000031058# Check for the OpenJP2 delegate library.
31059#
31060
31061# Check whether --with-openjp2 was given.
31062if test "${with_openjp2+set}" = set; then :
31063 withval=$with_openjp2; with_openjp2=$withval
31064else
31065 with_openjp2='yes'
31066fi
31067
31068
31069if test "$with_openjp2" != 'yes'; then
31070 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
31071fi
31072
31073have_openjp2='no'
31074LIBOPENJP2_CFLAGS=""
31075LIBOPENJP2_LIBS=""
31076LIBOPENJP2_PKG=""
31077if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000031079$as_echo "-------------------------------------------------------------" >&6; }
31080
31081pkg_failed=no
31082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
31083$as_echo_n "checking for LIBOPENJP2... " >&6; }
31084
31085if test -n "$LIBOPENJP2_CFLAGS"; then
31086 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
31087 elif test -n "$PKG_CONFIG"; then
31088 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000031089 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31090 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000031091 ac_status=$?
31092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31093 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000031094 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031095 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000031096else
31097 pkg_failed=yes
31098fi
31099 else
31100 pkg_failed=untried
31101fi
31102if test -n "$LIBOPENJP2_LIBS"; then
31103 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
31104 elif test -n "$PKG_CONFIG"; then
31105 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000031106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31107 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000031108 ac_status=$?
31109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31110 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000031111 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031112 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000031113else
31114 pkg_failed=yes
31115fi
31116 else
31117 pkg_failed=untried
31118fi
31119
31120
31121
31122if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31124$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000031125
31126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31127 _pkg_short_errors_supported=yes
31128else
31129 _pkg_short_errors_supported=no
31130fi
31131 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031132 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000031133 else
cristy146497a2015-05-17 22:46:16 +000031134 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000031135 fi
31136 # Put the nasty error message in config.log where it belongs
31137 echo "$LIBOPENJP2_PKG_ERRORS" >&5
31138
cristy146497a2015-05-17 22:46:16 +000031139 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000031140elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31142$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000031143 have_openjp2=no
31144else
31145 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
31146 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31148$as_echo "yes" >&6; }
31149 have_openjp2=yes
31150fi
cristy32f75d42015-06-05 18:46:23 +000031151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000031152$as_echo "" >&6; }
31153fi
31154
31155if test "$have_openjp2" = 'yes'; then
31156
31157$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
31158
cristy32f75d42015-06-05 18:46:23 +000031159 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000031160fi
31161
31162 if test "$have_openjp2" = 'yes'; then
31163 LIBOPENJP2_DELEGATE_TRUE=
31164 LIBOPENJP2_DELEGATE_FALSE='#'
31165else
31166 LIBOPENJP2_DELEGATE_TRUE='#'
31167 LIBOPENJP2_DELEGATE_FALSE=
31168fi
31169
31170
31171
31172
31173
31174
31175#
cristy3ed852e2009-09-05 21:47:34 +000031176# Check for the LQR (Liquid Rescale) delegate library.
31177#
31178
31179# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000031180if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031181 withval=$with_lqr; with_lqr=$withval
31182else
31183 with_lqr='yes'
31184fi
31185
31186
31187if test "$with_lqr" != 'yes'; then
31188 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
31189fi
31190
31191have_lqr='no'
31192LQR_CFLAGS=""
31193LQR_LIBS=""
31194LQR_PKG=""
31195if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031197$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031198
31199pkg_failed=no
31200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
31201$as_echo_n "checking for LQR... " >&6; }
31202
31203if test -n "$LQR_CFLAGS"; then
31204 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
31205 elif test -n "$PKG_CONFIG"; then
31206 if test -n "$PKG_CONFIG" && \
31207 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31208 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31209 ac_status=$?
31210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31211 test $ac_status = 0; }; then
31212 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031213 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031214else
31215 pkg_failed=yes
31216fi
31217 else
31218 pkg_failed=untried
31219fi
31220if test -n "$LQR_LIBS"; then
31221 pkg_cv_LQR_LIBS="$LQR_LIBS"
31222 elif test -n "$PKG_CONFIG"; then
31223 if test -n "$PKG_CONFIG" && \
31224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
31225 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
31226 ac_status=$?
31227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31228 test $ac_status = 0; }; then
31229 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031230 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031231else
31232 pkg_failed=yes
31233fi
31234 else
31235 pkg_failed=untried
31236fi
31237
31238
31239
31240if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31242$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031243
31244if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31245 _pkg_short_errors_supported=yes
31246else
31247 _pkg_short_errors_supported=no
31248fi
31249 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031250 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031251 else
cristy146497a2015-05-17 22:46:16 +000031252 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031253 fi
31254 # Put the nasty error message in config.log where it belongs
31255 echo "$LQR_PKG_ERRORS" >&5
31256
cristy146497a2015-05-17 22:46:16 +000031257 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000031258elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31260$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031261 have_lqr=no
31262else
31263 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
31264 LQR_LIBS=$pkg_cv_LQR_LIBS
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31266$as_echo "yes" >&6; }
31267 have_lqr=yes
31268fi
cristy32f75d42015-06-05 18:46:23 +000031269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031270$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031271fi
31272
31273if test "$have_lqr" = 'yes'; then
31274
cristy8b350f62009-11-15 23:12:43 +000031275$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031276
cristy32f75d42015-06-05 18:46:23 +000031277 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031278fi
31279
cristy73bd4a52010-10-05 11:24:23 +000031280 if test "$have_lqr" = 'yes'; then
31281 LQR_DELEGATE_TRUE=
31282 LQR_DELEGATE_FALSE='#'
31283else
31284 LQR_DELEGATE_TRUE='#'
31285 LQR_DELEGATE_FALSE=
31286fi
31287
cristy3ed852e2009-09-05 21:47:34 +000031288
31289
31290
31291
cristy81beccd2011-10-03 18:17:24 +000031292# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000031293
31294# Check whether --with-lzma was given.
31295if test "${with_lzma+set}" = set; then :
31296 withval=$with_lzma; with_lzma=$withval
31297else
31298 with_lzma='yes'
31299fi
31300
cristy81beccd2011-10-03 18:17:24 +000031301if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000031302 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
31303fi
31304
cristyb94e5002011-11-14 13:20:10 +000031305LZMA_PKG=""
31306if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031308$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031309
31310pkg_failed=no
31311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000031312$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000031313
31314if test -n "$LZMA_CFLAGS"; then
31315 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
31316 elif test -n "$PKG_CONFIG"; then
31317 if test -n "$PKG_CONFIG" && \
31318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31319 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31320 ac_status=$?
31321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31322 test $ac_status = 0; }; then
31323 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031324 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000031325else
31326 pkg_failed=yes
31327fi
31328 else
31329 pkg_failed=untried
31330fi
31331if test -n "$LZMA_LIBS"; then
31332 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
31333 elif test -n "$PKG_CONFIG"; then
31334 if test -n "$PKG_CONFIG" && \
31335 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
31336 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
31337 ac_status=$?
31338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31339 test $ac_status = 0; }; then
31340 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031341 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000031342else
31343 pkg_failed=yes
31344fi
31345 else
31346 pkg_failed=untried
31347fi
31348
31349
31350
31351if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31353$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031354
31355if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31356 _pkg_short_errors_supported=yes
31357else
31358 _pkg_short_errors_supported=no
31359fi
31360 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031361 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000031362 else
cristy146497a2015-05-17 22:46:16 +000031363 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000031364 fi
31365 # Put the nasty error message in config.log where it belongs
31366 echo "$LZMA_PKG_ERRORS" >&5
31367
cristy146497a2015-05-17 22:46:16 +000031368 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000031369elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000031372 have_lzma=no
31373else
31374 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
31375 LZMA_LIBS=$pkg_cv_LZMA_LIBS
31376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31377$as_echo "yes" >&6; }
31378 have_lzma=yes
31379fi
cristy32f75d42015-06-05 18:46:23 +000031380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031381$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000031382fi
31383
cristyb94e5002011-11-14 13:20:10 +000031384if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000031385
31386$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
31387
cristy32f75d42015-06-05 18:46:23 +000031388 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000031389fi
cristyb94e5002011-11-14 13:20:10 +000031390
cristyfbb0ef02010-12-19 02:32:11 +000031391 if test "$have_lzma" = 'yes'; then
31392 LZMA_DELEGATE_TRUE=
31393 LZMA_DELEGATE_FALSE='#'
31394else
31395 LZMA_DELEGATE_TRUE='#'
31396 LZMA_DELEGATE_FALSE=
31397fi
31398
31399
31400
31401
cristyb94e5002011-11-14 13:20:10 +000031402
cristy3ed852e2009-09-05 21:47:34 +000031403#
31404# Check for the OpenEXR delegate library.
31405#
31406
31407# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000031408if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031409 withval=$with_openexr; with_openexr=$withval
31410else
31411 with_openexr='yes'
31412fi
31413
31414
31415if test "$with_openexr" != 'yes'; then
31416 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
31417fi
31418
31419have_openexr='no'
31420OPENEXR_CFLAGS=""
31421OPENEXR_LIBS=""
31422OPENEXR_PKG=""
31423if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031425$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031426
31427pkg_failed=no
31428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31429$as_echo_n "checking for OPENEXR... " >&6; }
31430
31431if test -n "$OPENEXR_CFLAGS"; then
31432 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31433 elif test -n "$PKG_CONFIG"; then
31434 if test -n "$PKG_CONFIG" && \
31435 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31436 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31437 ac_status=$?
31438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31439 test $ac_status = 0; }; then
31440 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031441 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031442else
31443 pkg_failed=yes
31444fi
31445 else
31446 pkg_failed=untried
31447fi
31448if test -n "$OPENEXR_LIBS"; then
31449 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31450 elif test -n "$PKG_CONFIG"; then
31451 if test -n "$PKG_CONFIG" && \
31452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31453 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31454 ac_status=$?
31455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31456 test $ac_status = 0; }; then
31457 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031458 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031459else
31460 pkg_failed=yes
31461fi
31462 else
31463 pkg_failed=untried
31464fi
31465
31466
31467
31468if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31470$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031471
31472if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31473 _pkg_short_errors_supported=yes
31474else
31475 _pkg_short_errors_supported=no
31476fi
31477 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031478 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031479 else
cristy146497a2015-05-17 22:46:16 +000031480 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031481 fi
31482 # Put the nasty error message in config.log where it belongs
31483 echo "$OPENEXR_PKG_ERRORS" >&5
31484
cristy146497a2015-05-17 22:46:16 +000031485 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000031486elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31488$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031489 have_openexr=no
31490else
31491 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31492 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31494$as_echo "yes" >&6; }
31495 have_openexr=yes
31496fi
cristy32f75d42015-06-05 18:46:23 +000031497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031498$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031499fi
31500
31501if test "$have_openexr" = 'yes'; then
31502
cristy8b350f62009-11-15 23:12:43 +000031503$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031504
cristy32f75d42015-06-05 18:46:23 +000031505 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031506fi
31507
cristy73bd4a52010-10-05 11:24:23 +000031508 if test "$have_openexr" = 'yes'; then
31509 OPENEXR_DELEGATE_TRUE=
31510 OPENEXR_DELEGATE_FALSE='#'
31511else
31512 OPENEXR_DELEGATE_TRUE='#'
31513 OPENEXR_DELEGATE_FALSE=
31514fi
31515
cristy3ed852e2009-09-05 21:47:34 +000031516
31517
31518
31519
31520#
cristy41cbe8a2011-10-27 01:35:18 +000031521# Check for PANGO delegate library.
31522#
31523
31524# Check whether --with-pango was given.
31525if test "${with_pango+set}" = set; then :
31526 withval=$with_pango; with_pango=$withval
31527else
cristyfc3d0222012-02-07 15:05:57 +000031528 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031529fi
31530
31531
31532if test "$with_pango" != 'yes'; then
31533 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31534fi
31535
31536have_pango='no'
cristya054b762012-03-26 23:16:00 +000031537have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031538PANGO_CFLAGS=""
31539PANGO_LIBS=""
31540PANGO_PKG=""
31541if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000031543$as_echo "-------------------------------------------------------------" >&6; }
31544
31545pkg_failed=no
31546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31547$as_echo_n "checking for PANGO... " >&6; }
31548
31549if test -n "$PANGO_CFLAGS"; then
31550 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31551 elif test -n "$PKG_CONFIG"; then
31552 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31554 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031555 ac_status=$?
31556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31557 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031558 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031559 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031560else
31561 pkg_failed=yes
31562fi
31563 else
31564 pkg_failed=untried
31565fi
31566if test -n "$PANGO_LIBS"; then
31567 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31568 elif test -n "$PKG_CONFIG"; then
31569 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31571 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031572 ac_status=$?
31573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31574 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031575 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031576 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000031577else
31578 pkg_failed=yes
31579fi
31580 else
31581 pkg_failed=untried
31582fi
31583
31584
31585
31586if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31588$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031589
31590if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31591 _pkg_short_errors_supported=yes
31592else
31593 _pkg_short_errors_supported=no
31594fi
31595 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031596 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031597 else
cristy146497a2015-05-17 22:46:16 +000031598 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031599 fi
31600 # Put the nasty error message in config.log where it belongs
31601 echo "$PANGO_PKG_ERRORS" >&5
31602
cristy146497a2015-05-17 22:46:16 +000031603 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031604elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31606$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031607 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031608else
31609 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31610 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31612$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031613 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031614fi
cristy32f75d42015-06-05 18:46:23 +000031615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000031616$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031617
31618pkg_failed=no
31619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31620$as_echo_n "checking for PANGO... " >&6; }
31621
31622if test -n "$PANGO_CFLAGS"; then
31623 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31624 elif test -n "$PKG_CONFIG"; then
31625 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031626 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31627 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031628 ac_status=$?
31629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31630 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031631 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031632 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031633else
31634 pkg_failed=yes
31635fi
31636 else
31637 pkg_failed=untried
31638fi
31639if test -n "$PANGO_LIBS"; then
31640 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31641 elif test -n "$PKG_CONFIG"; then
31642 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031643 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31644 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031645 ac_status=$?
31646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31647 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031648 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031649 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000031650else
31651 pkg_failed=yes
31652fi
31653 else
31654 pkg_failed=untried
31655fi
31656
31657
31658
31659if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31661$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031662
31663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31664 _pkg_short_errors_supported=yes
31665else
31666 _pkg_short_errors_supported=no
31667fi
31668 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031669 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031670 else
cristy146497a2015-05-17 22:46:16 +000031671 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031672 fi
31673 # Put the nasty error message in config.log where it belongs
31674 echo "$PANGO_PKG_ERRORS" >&5
31675
cristy146497a2015-05-17 22:46:16 +000031676 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000031677elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31679$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031680 have_pango=no
31681else
31682 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31683 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31685$as_echo "yes" >&6; }
31686 have_pango=yes
31687fi
cristy32f75d42015-06-05 18:46:23 +000031688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000031689$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031690fi
31691
31692if test "$have_pango" = 'yes'; then
31693
31694$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31695
cristy32f75d42015-06-05 18:46:23 +000031696 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031697fi
31698
cristya054b762012-03-26 23:16:00 +000031699if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031700
cristya054b762012-03-26 23:16:00 +000031701$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031702
cristy32f75d42015-06-05 18:46:23 +000031703 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031704fi
31705
31706 if test "$have_pango" = 'yes'; then
31707 PANGO_DELEGATE_TRUE=
31708 PANGO_DELEGATE_FALSE='#'
31709else
31710 PANGO_DELEGATE_TRUE='#'
31711 PANGO_DELEGATE_FALSE=
31712fi
31713
cristya054b762012-03-26 23:16:00 +000031714 if test "$have_pangocairo" = 'yes'; then
31715 PANGOCAIRO_DELEGATE_TRUE=
31716 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031717else
cristya054b762012-03-26 23:16:00 +000031718 PANGOCAIRO_DELEGATE_TRUE='#'
31719 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031720fi
31721
31722
31723
31724
31725
31726#
cristy3ed852e2009-09-05 21:47:34 +000031727# Check for PNG delegate library.
31728#
31729
31730# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031731if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031732 withval=$with_png; with_png=$withval
31733else
31734 with_png='yes'
31735fi
31736
31737
31738if test "$with_png" != 'yes'; then
31739 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31740fi
31741
cristy81beccd2011-10-03 18:17:24 +000031742have_png='no'
cristy32f75d42015-06-05 18:46:23 +000031743PNG_CFLAGS=""
31744PNG_LIBS=""
31745PNG_PKG=""
31746if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000031747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31748$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031749
31750pkg_failed=no
31751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
31752$as_echo_n "checking for PNG... " >&6; }
31753
31754if test -n "$PNG_CFLAGS"; then
31755 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
31756 elif test -n "$PKG_CONFIG"; then
31757 if test -n "$PKG_CONFIG" && \
31758 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31759 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31760 ac_status=$?
31761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31762 test $ac_status = 0; }; then
31763 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
31764 test "x$?" != "x0" && pkg_failed=yes
31765else
31766 pkg_failed=yes
31767fi
31768 else
31769 pkg_failed=untried
31770fi
31771if test -n "$PNG_LIBS"; then
31772 pkg_cv_PNG_LIBS="$PNG_LIBS"
31773 elif test -n "$PKG_CONFIG"; then
31774 if test -n "$PKG_CONFIG" && \
31775 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
31776 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
31777 ac_status=$?
31778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31779 test $ac_status = 0; }; then
31780 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
31781 test "x$?" != "x0" && pkg_failed=yes
31782else
31783 pkg_failed=yes
31784fi
31785 else
31786 pkg_failed=untried
31787fi
31788
31789
31790
31791if test $pkg_failed = yes; then
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31793$as_echo "no" >&6; }
31794
31795if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31796 _pkg_short_errors_supported=yes
31797else
31798 _pkg_short_errors_supported=no
31799fi
31800 if test $_pkg_short_errors_supported = yes; then
31801 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31802 else
31803 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
31804 fi
31805 # Put the nasty error message in config.log where it belongs
31806 echo "$PNG_PKG_ERRORS" >&5
31807
31808 have_png=no
31809elif test $pkg_failed = untried; then
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31811$as_echo "no" >&6; }
31812 have_png=no
31813else
31814 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
31815 PNG_LIBS=$pkg_cv_PNG_LIBS
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31817$as_echo "yes" >&6; }
31818 have_png=yes
31819fi
cristyad38abe2012-12-23 23:03:21 +000031820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31821$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000031822fi
31823
cristy32f75d42015-06-05 18:46:23 +000031824if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031825
cristy8b350f62009-11-15 23:12:43 +000031826$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031827
cristy32f75d42015-06-05 18:46:23 +000031828 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031829fi
cristy64877302011-08-23 19:10:31 +000031830
cristy73bd4a52010-10-05 11:24:23 +000031831 if test "$have_png" = 'yes'; then
31832 PNG_DELEGATE_TRUE=
31833 PNG_DELEGATE_FALSE='#'
31834else
31835 PNG_DELEGATE_TRUE='#'
31836 PNG_DELEGATE_FALSE=
31837fi
31838
cristy3ed852e2009-09-05 21:47:34 +000031839
cristy50d3f5c2011-09-10 20:09:06 +000031840
cristy3ed852e2009-09-05 21:47:34 +000031841
31842
31843#
31844# Check for RSVG delegate library.
31845#
31846
31847# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031848if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031849 withval=$with_rsvg; with_rsvg=$withval
31850else
cristy1164d5f2012-08-15 00:58:25 +000031851 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031852fi
31853
31854
31855if test "$with_rsvg" != 'yes'; then
31856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31857fi
31858
31859have_rsvg='no'
31860have_cairo='no'
31861RSVG_CFLAGS=""
31862RSVG_LIBS=""
31863RSVG_PKG=""
31864if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031866$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031867
31868pkg_failed=no
31869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31870$as_echo_n "checking for RSVG... " >&6; }
31871
31872if test -n "$RSVG_CFLAGS"; then
31873 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31874 elif test -n "$PKG_CONFIG"; then
31875 if test -n "$PKG_CONFIG" && \
31876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31877 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31878 ac_status=$?
31879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31880 test $ac_status = 0; }; then
31881 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031882 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031883else
31884 pkg_failed=yes
31885fi
31886 else
31887 pkg_failed=untried
31888fi
31889if test -n "$RSVG_LIBS"; then
31890 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31891 elif test -n "$PKG_CONFIG"; then
31892 if test -n "$PKG_CONFIG" && \
31893 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31894 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31895 ac_status=$?
31896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31897 test $ac_status = 0; }; then
31898 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031899 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031900else
31901 pkg_failed=yes
31902fi
31903 else
31904 pkg_failed=untried
31905fi
31906
31907
31908
31909if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31911$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031912
31913if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31914 _pkg_short_errors_supported=yes
31915else
31916 _pkg_short_errors_supported=no
31917fi
31918 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031919 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 +000031920 else
cristy146497a2015-05-17 22:46:16 +000031921 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031922 fi
31923 # Put the nasty error message in config.log where it belongs
31924 echo "$RSVG_PKG_ERRORS" >&5
31925
cristy146497a2015-05-17 22:46:16 +000031926 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000031927elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031930 have_rsvg=no
31931else
31932 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31933 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31935$as_echo "yes" >&6; }
31936 have_rsvg=yes
31937fi
cristy32f75d42015-06-05 18:46:23 +000031938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031939$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031940
31941pkg_failed=no
31942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31943$as_echo_n "checking for CAIRO_SVG... " >&6; }
31944
31945if test -n "$CAIRO_SVG_CFLAGS"; then
31946 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31947 elif test -n "$PKG_CONFIG"; then
31948 if test -n "$PKG_CONFIG" && \
31949 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31950 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31951 ac_status=$?
31952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31953 test $ac_status = 0; }; then
31954 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031955 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031956else
31957 pkg_failed=yes
31958fi
31959 else
31960 pkg_failed=untried
31961fi
31962if test -n "$CAIRO_SVG_LIBS"; then
31963 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31964 elif test -n "$PKG_CONFIG"; then
31965 if test -n "$PKG_CONFIG" && \
31966 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31967 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31968 ac_status=$?
31969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31970 test $ac_status = 0; }; then
31971 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031972 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031973else
31974 pkg_failed=yes
31975fi
31976 else
31977 pkg_failed=untried
31978fi
31979
31980
31981
31982if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31984$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031985
31986if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31987 _pkg_short_errors_supported=yes
31988else
31989 _pkg_short_errors_supported=no
31990fi
31991 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031992 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031993 else
cristy146497a2015-05-17 22:46:16 +000031994 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031995 fi
31996 # Put the nasty error message in config.log where it belongs
31997 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31998
cristy146497a2015-05-17 22:46:16 +000031999 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000032000elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032003 have_cairo=no
32004else
32005 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
32006 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32008$as_echo "yes" >&6; }
32009 have_cairo=yes
32010fi
cristy32f75d42015-06-05 18:46:23 +000032011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000032012$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032013fi
32014
32015if test "$have_rsvg" = 'yes'; then
32016
cristy8b350f62009-11-15 23:12:43 +000032017$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032018
cristy32f75d42015-06-05 18:46:23 +000032019 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032020fi
32021
32022if test "$have_cairo" = 'yes'; then
32023
cristy8b350f62009-11-15 23:12:43 +000032024$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032025
cristy32f75d42015-06-05 18:46:23 +000032026 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032027fi
32028
cristy73bd4a52010-10-05 11:24:23 +000032029 if test "$have_rsvg" = 'yes'; then
32030 RSVG_DELEGATE_TRUE=
32031 RSVG_DELEGATE_FALSE='#'
32032else
32033 RSVG_DELEGATE_TRUE='#'
32034 RSVG_DELEGATE_FALSE=
32035fi
32036
32037 if test "$have_cairo" = 'yes'; then
32038 CAIRO_DELEGATE_TRUE=
32039 CAIRO_DELEGATE_FALSE='#'
32040else
32041 CAIRO_DELEGATE_TRUE='#'
32042 CAIRO_DELEGATE_FALSE=
32043fi
32044
cristy3ed852e2009-09-05 21:47:34 +000032045
32046
32047
32048
32049#
32050# Check for TIFF delegate library.
32051#
32052
32053# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000032054if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032055 withval=$with_tiff; with_tiff=$withval
32056else
32057 with_tiff='yes'
32058fi
32059
32060
32061if test "$with_tiff" != 'yes'; then
32062 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
32063fi
32064
32065have_tiff='no'
32066TIFF_LIBS=''
32067if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32069$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032071$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32073$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032074 failed=0
32075 passed=0
cristy8b350f62009-11-15 23:12:43 +000032076 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032077if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032078 passed=`expr $passed + 1`
32079else
32080 failed=`expr $failed + 1`
32081fi
32082
32083
cristy8b350f62009-11-15 23:12:43 +000032084 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032085if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032086 passed=`expr $passed + 1`
32087else
32088 failed=`expr $failed + 1`
32089fi
32090
32091
cristy8b350f62009-11-15 23:12:43 +000032092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032093$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032094if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032095 $as_echo_n "(cached) " >&6
32096else
32097 ac_check_lib_save_LIBS=$LIBS
32098LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032100/* end confdefs.h. */
32101
32102/* Override any GCC internal prototype to avoid an error.
32103 Use char because int might match the return type of a GCC
32104 builtin and then its argument prototype would still apply. */
32105#ifdef __cplusplus
32106extern "C"
32107#endif
32108char TIFFOpen ();
32109int
32110main ()
32111{
32112return TIFFOpen ();
32113 ;
32114 return 0;
32115}
32116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032118 ac_cv_lib_tiff_TIFFOpen=yes
32119else
cristy8b350f62009-11-15 23:12:43 +000032120 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032121fi
cristy8b350f62009-11-15 23:12:43 +000032122rm -f core conftest.err conftest.$ac_objext \
32123 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032124LIBS=$ac_check_lib_save_LIBS
32125fi
cristy8b350f62009-11-15 23:12:43 +000032126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032127$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032128if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032129 passed=`expr $passed + 1`
32130else
32131 failed=`expr $failed + 1`
32132fi
32133
cristy8b350f62009-11-15 23:12:43 +000032134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032135$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032136if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032137 $as_echo_n "(cached) " >&6
32138else
32139 ac_check_lib_save_LIBS=$LIBS
32140LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032142/* end confdefs.h. */
32143
32144/* Override any GCC internal prototype to avoid an error.
32145 Use char because int might match the return type of a GCC
32146 builtin and then its argument prototype would still apply. */
32147#ifdef __cplusplus
32148extern "C"
32149#endif
32150char TIFFClientOpen ();
32151int
32152main ()
32153{
32154return TIFFClientOpen ();
32155 ;
32156 return 0;
32157}
32158_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032159if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032160 ac_cv_lib_tiff_TIFFClientOpen=yes
32161else
cristy8b350f62009-11-15 23:12:43 +000032162 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032163fi
cristy8b350f62009-11-15 23:12:43 +000032164rm -f core conftest.err conftest.$ac_objext \
32165 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032166LIBS=$ac_check_lib_save_LIBS
32167fi
cristy8b350f62009-11-15 23:12:43 +000032168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032169$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032170if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032171 passed=`expr $passed + 1`
32172else
32173 failed=`expr $failed + 1`
32174fi
32175
cristy8b350f62009-11-15 23:12:43 +000032176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032177$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032178if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032179 $as_echo_n "(cached) " >&6
32180else
32181 ac_check_lib_save_LIBS=$LIBS
32182LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032184/* end confdefs.h. */
32185
32186/* Override any GCC internal prototype to avoid an error.
32187 Use char because int might match the return type of a GCC
32188 builtin and then its argument prototype would still apply. */
32189#ifdef __cplusplus
32190extern "C"
32191#endif
32192char TIFFIsByteSwapped ();
32193int
32194main ()
32195{
32196return TIFFIsByteSwapped ();
32197 ;
32198 return 0;
32199}
32200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032201if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032202 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32203else
cristy8b350f62009-11-15 23:12:43 +000032204 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032205fi
cristy8b350f62009-11-15 23:12:43 +000032206rm -f core conftest.err conftest.$ac_objext \
32207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032208LIBS=$ac_check_lib_save_LIBS
32209fi
cristy8b350f62009-11-15 23:12:43 +000032210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032211$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032212if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032213 passed=`expr $passed + 1`
32214else
32215 failed=`expr $failed + 1`
32216fi
32217
cristy8b350f62009-11-15 23:12:43 +000032218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032220if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032221 $as_echo_n "(cached) " >&6
32222else
32223 ac_check_lib_save_LIBS=$LIBS
32224LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032226/* end confdefs.h. */
32227
32228/* Override any GCC internal prototype to avoid an error.
32229 Use char because int might match the return type of a GCC
32230 builtin and then its argument prototype would still apply. */
32231#ifdef __cplusplus
32232extern "C"
32233#endif
32234char TIFFReadRGBATile ();
32235int
32236main ()
32237{
32238return TIFFReadRGBATile ();
32239 ;
32240 return 0;
32241}
32242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032244 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32245else
cristy8b350f62009-11-15 23:12:43 +000032246 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032247fi
cristy8b350f62009-11-15 23:12:43 +000032248rm -f core conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032250LIBS=$ac_check_lib_save_LIBS
32251fi
cristy8b350f62009-11-15 23:12:43 +000032252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032254if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032255 passed=`expr $passed + 1`
32256else
32257 failed=`expr $failed + 1`
32258fi
32259
cristy8b350f62009-11-15 23:12:43 +000032260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032261$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032262if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032263 $as_echo_n "(cached) " >&6
32264else
32265 ac_check_lib_save_LIBS=$LIBS
32266LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032267cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032268/* end confdefs.h. */
32269
32270/* Override any GCC internal prototype to avoid an error.
32271 Use char because int might match the return type of a GCC
32272 builtin and then its argument prototype would still apply. */
32273#ifdef __cplusplus
32274extern "C"
32275#endif
32276char TIFFReadRGBAStrip ();
32277int
32278main ()
32279{
32280return TIFFReadRGBAStrip ();
32281 ;
32282 return 0;
32283}
32284_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032285if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032286 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32287else
cristy8b350f62009-11-15 23:12:43 +000032288 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032289fi
cristy8b350f62009-11-15 23:12:43 +000032290rm -f core conftest.err conftest.$ac_objext \
32291 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032292LIBS=$ac_check_lib_save_LIBS
32293fi
cristy8b350f62009-11-15 23:12:43 +000032294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032295$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032296if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032297 passed=`expr $passed + 1`
32298else
32299 failed=`expr $failed + 1`
32300fi
32301
cristy8b350f62009-11-15 23:12:43 +000032302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032303$as_echo_n "checking if TIFF package is complete... " >&6; }
32304 if test $passed -gt 0; then
32305 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32307$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032308 have_tiff='no (failed tests)'
32309 else
32310 TIFF_LIBS='-ltiff'
32311 LIBS="$TIFF_LIBS $LIBS"
32312
cristy8b350f62009-11-15 23:12:43 +000032313$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032314
cristyad38abe2012-12-23 23:03:21 +000032315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32316$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032317 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032318 for ac_header in tiffconf.h
32319do :
32320 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032321if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032322 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032323#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032324_ACEOF
32325
32326fi
32327
32328done
32329
cristy8b350f62009-11-15 23:12:43 +000032330 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032331 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32332 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32333 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032334do :
32335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32336ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032337if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032338 cat >>confdefs.h <<_ACEOF
32339#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32340_ACEOF
32341
32342fi
32343done
32344
32345 fi
32346 else
cristyad38abe2012-12-23 23:03:21 +000032347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32348$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032349 fi
32350fi
cristy73bd4a52010-10-05 11:24:23 +000032351 if test "$have_tiff" = 'yes'; then
32352 TIFF_DELEGATE_TRUE=
32353 TIFF_DELEGATE_FALSE='#'
32354else
32355 TIFF_DELEGATE_TRUE='#'
32356 TIFF_DELEGATE_FALSE=
32357fi
32358
cristy3ed852e2009-09-05 21:47:34 +000032359
32360
32361
32362#
cristyb1860752011-03-14 00:27:46 +000032363# Check for WEBP delegate library.
32364#
32365
32366# Check whether --with-webp was given.
32367if test "${with_webp+set}" = set; then :
32368 withval=$with_webp; with_webp=$withval
32369else
32370 with_webp='yes'
32371fi
32372
32373
32374if test "$with_webp" != 'yes'; then
32375 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32376fi
32377
32378have_webp='no'
32379WEBP_LIBS=''
32380if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32382$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000032383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32384$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32386$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000032387 failed=0
32388 passed=0
32389 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32390if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32391 passed=`expr $passed + 1`
32392else
32393 failed=`expr $failed + 1`
32394fi
32395
32396
cristy6d670312013-03-22 23:23:01 +000032397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
32398$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
32399if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000032400 $as_echo_n "(cached) " >&6
32401else
32402 ac_check_lib_save_LIBS=$LIBS
32403LIBS="-lwebp $LIBS"
32404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32405/* end confdefs.h. */
32406
32407/* Override any GCC internal prototype to avoid an error.
32408 Use char because int might match the return type of a GCC
32409 builtin and then its argument prototype would still apply. */
32410#ifdef __cplusplus
32411extern "C"
32412#endif
cristy6d670312013-03-22 23:23:01 +000032413char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032414int
32415main ()
32416{
cristy6d670312013-03-22 23:23:01 +000032417return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000032418 ;
32419 return 0;
32420}
32421_ACEOF
32422if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000032423 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000032424else
cristy6d670312013-03-22 23:23:01 +000032425 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000032426fi
32427rm -f core conftest.err conftest.$ac_objext \
32428 conftest$ac_exeext conftest.$ac_ext
32429LIBS=$ac_check_lib_save_LIBS
32430fi
cristy6d670312013-03-22 23:23:01 +000032431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
32432$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
32433if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000032434 passed=`expr $passed + 1`
32435else
32436 failed=`expr $failed + 1`
32437fi
32438
32439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32440$as_echo_n "checking if WEBP package is complete... " >&6; }
32441 if test $passed -gt 0; then
32442 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32444$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000032445 have_webp='no (failed tests)'
32446 else
32447 WEBP_LIBS='-lwebp'
32448 LIBS="$WEBP_LIBS $LIBS"
32449
32450$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32451
cristyad38abe2012-12-23 23:03:21 +000032452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32453$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000032454 have_webp='yes'
32455 fi
32456 else
cristyad38abe2012-12-23 23:03:21 +000032457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32458$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000032459 fi
32460fi
32461 if test "$have_webp" = 'yes'; then
32462 WEBP_DELEGATE_TRUE=
32463 WEBP_DELEGATE_FALSE='#'
32464else
32465 WEBP_DELEGATE_TRUE='#'
32466 WEBP_DELEGATE_FALSE=
32467fi
32468
32469
32470
32471
32472#
cristy3ed852e2009-09-05 21:47:34 +000032473# Set Windows font directory.
32474#
32475
32476# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032477if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032478 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32479else
cristy5a3dc992014-12-05 19:50:04 +000032480 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000032481fi
32482
cristy5a3dc992014-12-05 19:50:04 +000032483
32484if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000032485 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32486fi
32487
32488
32489#
32490# Check for WMF delegate library.
32491#
32492
32493# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032494if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032495 withval=$with_wmf; with_wmf=$withval
32496else
cristy32f75d42015-06-05 18:46:23 +000032497 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000032498fi
32499
32500
32501if test "$with_wmf" != 'yes'; then
32502 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32503fi
32504
32505have_wmf='no'
cristyebc8f692015-06-16 10:36:30 +000032506WMF_LIBS=''
32507WMF_CFLAGS=''
32508OLIBS="$LIBS"
32509if test "$with_wmf" != 'no'; then
32510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
32511$as_echo_n "checking for WMF support ... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000032512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32513$as_echo "" >&6; }
cristyebc8f692015-06-16 10:36:30 +000032514
32515 have_libwmflite='no'
32516 have_libwmf_ipa_h='no'
32517
32518 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32519"
32520if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32521 have_libwmf_ipa_h='yes'
cristy03f7cf92011-12-15 01:40:41 +000032522fi
32523
cristyebc8f692015-06-16 10:36:30 +000032524
32525 if test "$have_libwmf_ipa_h" = 'yes'; then
32526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32527$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32528if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
32529 $as_echo_n "(cached) " >&6
32530else
32531 ac_check_lib_save_LIBS=$LIBS
32532LIBS="-lwmflite $LIBS"
32533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32534/* end confdefs.h. */
32535
32536/* Override any GCC internal prototype to avoid an error.
32537 Use char because int might match the return type of a GCC
32538 builtin and then its argument prototype would still apply. */
32539#ifdef __cplusplus
32540extern "C"
32541#endif
32542char wmf_lite_create ();
32543int
32544main ()
32545{
32546return wmf_lite_create ();
32547 ;
32548 return 0;
32549}
32550_ACEOF
32551if ac_fn_c_try_link "$LINENO"; then :
32552 ac_cv_lib_wmflite_wmf_lite_create=yes
32553else
32554 ac_cv_lib_wmflite_wmf_lite_create=no
32555fi
32556rm -f core conftest.err conftest.$ac_objext \
32557 conftest$ac_exeext conftest.$ac_ext
32558LIBS=$ac_check_lib_save_LIBS
32559fi
32560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32561$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32562if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32563 have_libwmflite='yes'
32564fi
32565
32566 if test "$have_libwmflite" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032567
cristy8b350f62009-11-15 23:12:43 +000032568$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032569
cristyebc8f692015-06-16 10:36:30 +000032570 WMF_LIBS='-lwmflite'
32571 LIBS="$WMF_LIBS $LIBS"
32572 have_wmf='yes'
32573 else
32574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32575$as_echo "no -- some components failed test" >&6; }
32576 have_wmf='no (failed tests)'
32577 have_wmflite='no (failed tests)'
32578 LIBS="$OLIBS"
32579 WMF_LIBS=''
32580 fi
32581 fi
cristy3ed852e2009-09-05 21:47:34 +000032582fi
cristyebc8f692015-06-16 10:36:30 +000032583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
32584$as_echo_n "checking if WMF package is complete ... " >&6; }
32585if test "$have_wmf" = 'yes'; then
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32587$as_echo "yes" >&6; }
32588else
32589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32590$as_echo "no" >&6; }
32591fi
cristy73bd4a52010-10-05 11:24:23 +000032592 if test "$have_wmf" = 'yes'; then
32593 WMF_DELEGATE_TRUE=
32594 WMF_DELEGATE_FALSE='#'
32595else
32596 WMF_DELEGATE_TRUE='#'
32597 WMF_DELEGATE_FALSE=
32598fi
32599
cristy3ed852e2009-09-05 21:47:34 +000032600
32601
32602
cristy81beccd2011-10-03 18:17:24 +000032603
cristy3ed852e2009-09-05 21:47:34 +000032604#
32605# Check for XML delegate library.
32606#
32607
32608# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032609if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032610 withval=$with_xml; with_xml=$withval
32611else
cristyfc3d0222012-02-07 15:05:57 +000032612 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032613fi
32614
32615
cristy81beccd2011-10-03 18:17:24 +000032616if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032617 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32618fi
32619
cristy81beccd2011-10-03 18:17:24 +000032620have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000032621XML_CFLAGS=""
32622XML_LIBS=""
32623XML_PKG=""
32624if test "x$with_xml" = "xyes"; then
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032626$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000032627
32628pkg_failed=no
32629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000032630$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000032631
cristy32f75d42015-06-05 18:46:23 +000032632if test -n "$XML_CFLAGS"; then
32633 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
32634 elif test -n "$PKG_CONFIG"; then
32635 if test -n "$PKG_CONFIG" && \
32636 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32637 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32638 ac_status=$?
32639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32640 test $ac_status = 0; }; then
32641 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
32642 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000032643else
cristy32f75d42015-06-05 18:46:23 +000032644 pkg_failed=yes
32645fi
32646 else
32647 pkg_failed=untried
32648fi
32649if test -n "$XML_LIBS"; then
32650 pkg_cv_XML_LIBS="$XML_LIBS"
32651 elif test -n "$PKG_CONFIG"; then
32652 if test -n "$PKG_CONFIG" && \
32653 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
32654 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
32655 ac_status=$?
32656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32657 test $ac_status = 0; }; then
32658 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
32659 test "x$?" != "x0" && pkg_failed=yes
32660else
32661 pkg_failed=yes
32662fi
32663 else
32664 pkg_failed=untried
32665fi
32666
32667
32668
32669if test $pkg_failed = yes; then
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000032671$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032672
cristy32f75d42015-06-05 18:46:23 +000032673if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32674 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000032675else
cristy32f75d42015-06-05 18:46:23 +000032676 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000032677fi
cristy32f75d42015-06-05 18:46:23 +000032678 if test $_pkg_short_errors_supported = yes; then
32679 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 +000032680 else
cristy32f75d42015-06-05 18:46:23 +000032681 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
32682 fi
32683 # Put the nasty error message in config.log where it belongs
32684 echo "$XML_PKG_ERRORS" >&5
32685
32686 have_xml=no
32687elif test $pkg_failed = untried; then
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32689$as_echo "no" >&6; }
32690 have_xml=no
32691else
32692 XML_CFLAGS=$pkg_cv_XML_CFLAGS
32693 XML_LIBS=$pkg_cv_XML_LIBS
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32695$as_echo "yes" >&6; }
32696 have_xml=yes
32697fi
32698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32699$as_echo "" >&6; }
32700fi
32701
32702if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032703
cristy8b350f62009-11-15 23:12:43 +000032704$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032705
cristy32f75d42015-06-05 18:46:23 +000032706 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032707fi
cristy32f75d42015-06-05 18:46:23 +000032708
cristy73bd4a52010-10-05 11:24:23 +000032709 if test "$have_xml" = 'yes'; then
32710 XML_DELEGATE_TRUE=
32711 XML_DELEGATE_FALSE='#'
32712else
32713 XML_DELEGATE_TRUE='#'
32714 XML_DELEGATE_FALSE=
32715fi
32716
cristy3ed852e2009-09-05 21:47:34 +000032717
32718
32719
cristy32f75d42015-06-05 18:46:23 +000032720
cristy3ed852e2009-09-05 21:47:34 +000032721# Substitute compiler name to build/link PerlMagick
32722#
32723
32724
32725#
32726# Configure install Paths
32727#
cristy7def36a2011-10-28 19:04:41 +000032728
cristy2a11bef2011-10-28 18:33:11 +000032729# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000032730INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000032731INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
32732DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032733case "${build_os}" in
32734 mingw* )
32735 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32736 ;;
32737esac
32738
32739cat >>confdefs.h <<_ACEOF
32740#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32741_ACEOF
32742
32743
cristy3ed852e2009-09-05 21:47:34 +000032744
cristye52f12f2012-12-31 15:32:36 +000032745# Path to ImageMagick header files (arch part)
32746INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32747DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
32748case "${build_os}" in
32749 mingw* )
32750 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
32751 ;;
32752esac
32753
32754cat >>confdefs.h <<_ACEOF
32755#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
32756_ACEOF
32757
32758
32759
cristy3ed852e2009-09-05 21:47:34 +000032760# Subdirectory under lib to place ImageMagick lib files
32761LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32762
32763cat >>confdefs.h <<_ACEOF
32764#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32765_ACEOF
32766
32767
32768# Path to ImageMagick bin directory
32769EXECUTABLE_PATH="${BIN_DIR}"
32770DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32771case "${build_os}" in
32772 mingw* )
32773 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32774 ;;
32775esac
32776
32777cat >>confdefs.h <<_ACEOF
32778#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32779_ACEOF
32780
32781
32782
32783# Path to ImageMagick lib
32784LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32785DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32786case "${build_os}" in
32787 mingw* )
32788 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32789 ;;
32790esac
32791
32792cat >>confdefs.h <<_ACEOF
32793#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32794_ACEOF
32795
32796
32797
cristy3ed852e2009-09-05 21:47:34 +000032798#
cristy8d0ff762013-03-10 20:33:28 +000032799# path to local binaries
32800if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
32801 LIB_BIN_BASEDIRNAME="bin"
32802fi
32803
32804cat >>confdefs.h <<_ACEOF
32805#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
32806_ACEOF
32807
32808
32809
32810if test "x$LIB_BIN_DIR" = "x"; then
32811 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32812fi
32813
32814
32815LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
32816
32817LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
32818
32819
32820#
cristy01ff9f32012-12-01 18:15:29 +000032821# path to modules lib
32822if test "x$MODULES_BASEDIRNAME" = "x"; then
32823 MODULES_BASEDIRNAME="modules"
32824fi
cristy3ed852e2009-09-05 21:47:34 +000032825
32826cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032827#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032828_ACEOF
32829
cristy01ff9f32012-12-01 18:15:29 +000032830
32831
32832if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000032833 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32834else
cristy3ed852e2009-09-05 21:47:34 +000032835
32836cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032837#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032838_ACEOF
32839
cristycf4a3c22012-12-02 21:47:25 +000032840fi
cristy01ff9f32012-12-01 18:15:29 +000032841
32842
cristy371d4812012-12-01 19:48:10 +000032843MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032844
32845MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
32846
32847
32848#
32849# path to coders lib
32850if test "x$CODER_DIRNAME" = "x"; then
32851 CODER_DIRNAME="coders"
32852fi
32853
32854cat >>confdefs.h <<_ACEOF
32855#define CODER_DIRNAME "$CODER_DIRNAME"
32856_ACEOF
32857
32858
32859
cristy371d4812012-12-01 19:48:10 +000032860CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032861CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032862
32863
32864#
32865# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000032866#
32867# path to coders lib
32868if test "x$FILTER_DIRNAME" = "x"; then
32869 FILTER_DIRNAME="filters"
32870fi
cristy3ed852e2009-09-05 21:47:34 +000032871
32872cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000032873#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000032874_ACEOF
32875
cristy3ed852e2009-09-05 21:47:34 +000032876
cristy3ed852e2009-09-05 21:47:34 +000032877
cristy371d4812012-12-01 19:48:10 +000032878FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000032879FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000032880
32881
32882#
32883# Path to ImageMagick documentation files
Cristye35bdc62015-09-19 18:29:00 -040032884DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
32885DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32886DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032887case "${build_os}" in
32888 mingw* )
32889 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32890 ;;
32891esac
32892
32893cat >>confdefs.h <<_ACEOF
32894#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32895_ACEOF
32896
32897
32898
cristydd17feb2014-03-05 02:06:32 +000032899#
32900# Enable/Disable documentation
32901# Check whether --enable-docs was given.
32902if test "${enable_docs+set}" = set; then :
32903 enableval=$enable_docs; wantdocs=$enableval
32904else
cristy02272312014-03-07 00:55:25 +000032905 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000032906fi
32907
cristy02272312014-03-07 00:55:25 +000032908 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000032909 INSTALL_DOC_TRUE=
32910 INSTALL_DOC_FALSE='#'
32911else
32912 INSTALL_DOC_TRUE='#'
32913 INSTALL_DOC_FALSE=
32914fi
32915
32916
cristy2a11bef2011-10-28 18:33:11 +000032917# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000032918CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000032919
32920cat >>confdefs.h <<_ACEOF
32921#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32922_ACEOF
32923
cristy7def36a2011-10-28 19:04:41 +000032924CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032925DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32926case "${build_os}" in
32927 mingw* )
32928 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32929 ;;
32930esac
32931
32932cat >>confdefs.h <<_ACEOF
32933#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32934_ACEOF
32935
32936
32937
cristy2a11bef2011-10-28 18:33:11 +000032938# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000032939SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000032940
32941cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032942#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032943_ACEOF
32944
cristy670aa3c2011-11-03 00:54:00 +000032945SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032946DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032947case "${build_os}" in
32948 mingw* )
cristy4f820712011-04-01 12:35:43 +000032949 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032950 ;;
32951esac
32952
32953cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032954#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032955_ACEOF
32956
32957
32958
cristy54378032012-12-04 15:52:20 +000032959#
32960# Subdirectory to place architecture-dependent configuration files.
32961if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
32962 SHAREARCH_BASEDIRNAME="config"
32963fi
cristy670aa3c2011-11-03 00:54:00 +000032964
32965cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032966#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032967_ACEOF
32968
cristy54378032012-12-04 15:52:20 +000032969
32970
32971if test "x$SHAREARCH_DIRNAME" = "x"; then
32972 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
32973else
cristy670aa3c2011-11-03 00:54:00 +000032974
32975cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000032976#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000032977_ACEOF
32978
cristy54378032012-12-04 15:52:20 +000032979fi
32980
32981
32982SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
32983
32984SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000032985
32986
cristy3ed852e2009-09-05 21:47:34 +000032987#
32988# program_transform_name is formed for use in a Makefile, so create a
32989# modified version for use in a shell script.
32990configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32991
32992# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000032993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32994$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32998$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032999AutotraceDecodeDelegateDefault='autotrace'
cristy16b412d2014-12-15 11:09:48 +000033000BPGDecodeDelegateDefault='bpgdec'
33001BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000033002BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000033003BZIPDelegateDefault='bzip2'
33004BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000033005CatDelegateDefault='cat'
33006DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000033007DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000033008GVCDecodeDelegateDefault='dot'
33009DVIDecodeDelegateDefault='dvips'
33010EchoDelegateDefault='echo'
33011EditorDelegateDefault='xterm'
cristy3ed852e2009-09-05 21:47:34 +000033012ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
33013DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
33014MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
33015GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000033016HPGLDecodeDelegateDefault='hp2xx'
33017HTMLDecodeDelegateDefault='html2ps'
33018ILBMDecodeDelegateDefault='ilbmtoppm'
33019ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000033020JXRDecodeDelegateDefault='JxrDecApp'
33021JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000033022LPDelegateDefault='lp'
33023LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000033024LaunchDelegateDefault='gimp'
33025MANDelegateDefault='groff'
cristy81ab5af2013-10-06 18:28:39 +000033026MPEGDecodeDelegateDefault='avconv'
33027MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000033028MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000033029MVDelegateDefault='mv'
33030PCLDelegateDefault='pcl6'
33031PGPDecodeDelegateDefault='pgpv'
33032POVDelegateDefault='povray'
33033if test "$native_win32_build" = 'yes'; then
33034 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000033035elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033036 PSDelegateDefault='gsc'
33037else
33038 PSDelegateDefault='gs'
33039fi
33040RLEEncodeDelegateDefault='rawtorle'
33041RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000033042RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000033043SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000033044SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000033045TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000033046UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000033047WebPDecodeDelegateDefault='dwebp'
33048WebPEncodeDelegateDefault='cwebp'
cristy3ed852e2009-09-05 21:47:34 +000033049WMFDecodeDelegateDefault='wmf2eps'
33050WWWDecodeDelegateDefault='curl'
33051XPSDelegateDefault='gxps'
33052ZipDelegateDefault='gzip'
33053
33054# Search for delegates
33055# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33056set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033058$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033059if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033060 $as_echo_n "(cached) " >&6
33061else
33062 case $AutotraceDecodeDelegate in
33063 [\\/]* | ?:[\\/]*)
33064 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33065 ;;
33066 *)
33067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33068for as_dir in $PATH
33069do
33070 IFS=$as_save_IFS
33071 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033072 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033074 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033076 break 2
33077 fi
33078done
cristy8b350f62009-11-15 23:12:43 +000033079 done
cristy3ed852e2009-09-05 21:47:34 +000033080IFS=$as_save_IFS
33081
33082 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33083 ;;
33084esac
33085fi
33086AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33087if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo "$AutotraceDecodeDelegate" >&6; }
33090else
cristy8b350f62009-11-15 23:12:43 +000033091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo "no" >&6; }
33093fi
33094
33095
cristy16b412d2014-12-15 11:09:48 +000033096# Extract the first word of ""$BGPDecodeDelegateDefault"", so it can be a program name with args.
33097set dummy "$BGPDecodeDelegateDefault"; ac_word=$2
33098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33099$as_echo_n "checking for $ac_word... " >&6; }
33100if ${ac_cv_path_BGPDecodeDelegate+:} false; then :
33101 $as_echo_n "(cached) " >&6
33102else
33103 case $BGPDecodeDelegate in
33104 [\\/]* | ?:[\\/]*)
33105 ac_cv_path_BGPDecodeDelegate="$BGPDecodeDelegate" # Let the user override the test with a path.
33106 ;;
33107 *)
33108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33109for as_dir in $PATH
33110do
33111 IFS=$as_save_IFS
33112 test -z "$as_dir" && as_dir=.
33113 for ac_exec_ext in '' $ac_executable_extensions; do
33114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33115 ac_cv_path_BGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33117 break 2
33118 fi
33119done
33120 done
33121IFS=$as_save_IFS
33122
33123 test -z "$ac_cv_path_BGPDecodeDelegate" && ac_cv_path_BGPDecodeDelegate=""$BGPDecodeDelegateDefault""
33124 ;;
33125esac
33126fi
33127BGPDecodeDelegate=$ac_cv_path_BGPDecodeDelegate
33128if test -n "$BGPDecodeDelegate"; then
33129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPDecodeDelegate" >&5
33130$as_echo "$BGPDecodeDelegate" >&6; }
33131else
33132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33133$as_echo "no" >&6; }
33134fi
33135
33136
33137# Extract the first word of ""$BGPEncodeDelegateDefault"", so it can be a program name with args.
33138set dummy "$BGPEncodeDelegateDefault"; ac_word=$2
33139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33140$as_echo_n "checking for $ac_word... " >&6; }
33141if ${ac_cv_path_BGPEncodeDelegate+:} false; then :
33142 $as_echo_n "(cached) " >&6
33143else
33144 case $BGPEncodeDelegate in
33145 [\\/]* | ?:[\\/]*)
33146 ac_cv_path_BGPEncodeDelegate="$BGPEncodeDelegate" # Let the user override the test with a path.
33147 ;;
33148 *)
33149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33150for as_dir in $PATH
33151do
33152 IFS=$as_save_IFS
33153 test -z "$as_dir" && as_dir=.
33154 for ac_exec_ext in '' $ac_executable_extensions; do
33155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33156 ac_cv_path_BGPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33158 break 2
33159 fi
33160done
33161 done
33162IFS=$as_save_IFS
33163
33164 test -z "$ac_cv_path_BGPEncodeDelegate" && ac_cv_path_BGPEncodeDelegate=""$BGPEncodeDelegateDefault""
33165 ;;
33166esac
33167fi
33168BGPEncodeDelegate=$ac_cv_path_BGPEncodeDelegate
33169if test -n "$BGPEncodeDelegate"; then
33170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BGPEncodeDelegate" >&5
33171$as_echo "$BGPEncodeDelegate" >&6; }
33172else
33173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33174$as_echo "no" >&6; }
33175fi
33176
33177
cristy3ed852e2009-09-05 21:47:34 +000033178# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33179set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033181$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033182if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033183 $as_echo_n "(cached) " >&6
33184else
33185 case $BlenderDecodeDelegate in
33186 [\\/]* | ?:[\\/]*)
33187 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33188 ;;
33189 *)
33190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33191for as_dir in $PATH
33192do
33193 IFS=$as_save_IFS
33194 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033195 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033197 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033199 break 2
33200 fi
33201done
cristy8b350f62009-11-15 23:12:43 +000033202 done
cristy3ed852e2009-09-05 21:47:34 +000033203IFS=$as_save_IFS
33204
33205 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33206 ;;
33207esac
33208fi
33209BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33210if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033212$as_echo "$BlenderDecodeDelegate" >&6; }
33213else
cristy8b350f62009-11-15 23:12:43 +000033214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033215$as_echo "no" >&6; }
33216fi
33217
33218
33219# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33220set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033222$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033223if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033224 $as_echo_n "(cached) " >&6
33225else
33226 case $BZIPDelegate in
33227 [\\/]* | ?:[\\/]*)
33228 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33229 ;;
33230 *)
33231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33232for as_dir in $PATH
33233do
33234 IFS=$as_save_IFS
33235 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033236 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033238 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033240 break 2
33241 fi
33242done
cristy8b350f62009-11-15 23:12:43 +000033243 done
cristy3ed852e2009-09-05 21:47:34 +000033244IFS=$as_save_IFS
33245
33246 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33247 ;;
33248esac
33249fi
33250BZIPDelegate=$ac_cv_path_BZIPDelegate
33251if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033253$as_echo "$BZIPDelegate" >&6; }
33254else
cristy8b350f62009-11-15 23:12:43 +000033255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033256$as_echo "no" >&6; }
33257fi
33258
33259
cristyc59f0e72012-08-27 12:59:33 +000033260for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33261do
33262 # Extract the first word of "$ac_prog", so it can be a program name with args.
33263set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033265$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033266if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033267 $as_echo_n "(cached) " >&6
33268else
33269 case $BrowseDelegate in
33270 [\\/]* | ?:[\\/]*)
33271 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33272 ;;
33273 *)
33274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33275for as_dir in $PATH
33276do
33277 IFS=$as_save_IFS
33278 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033279 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033281 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033283 break 2
33284 fi
33285done
cristy8b350f62009-11-15 23:12:43 +000033286 done
cristy3ed852e2009-09-05 21:47:34 +000033287IFS=$as_save_IFS
33288
cristy3ed852e2009-09-05 21:47:34 +000033289 ;;
33290esac
33291fi
33292BrowseDelegate=$ac_cv_path_BrowseDelegate
33293if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033295$as_echo "$BrowseDelegate" >&6; }
33296else
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "no" >&6; }
33299fi
33300
33301
cristyc59f0e72012-08-27 12:59:33 +000033302 test -n "$BrowseDelegate" && break
33303done
33304test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33305
cristy3ed852e2009-09-05 21:47:34 +000033306# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33307set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033309$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033310if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033311 $as_echo_n "(cached) " >&6
33312else
33313 case $CatDelegate in
33314 [\\/]* | ?:[\\/]*)
33315 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33316 ;;
33317 *)
33318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33319for as_dir in $PATH
33320do
33321 IFS=$as_save_IFS
33322 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033323 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033325 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327 break 2
33328 fi
33329done
cristy8b350f62009-11-15 23:12:43 +000033330 done
cristy3ed852e2009-09-05 21:47:34 +000033331IFS=$as_save_IFS
33332
33333 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33334 ;;
33335esac
33336fi
33337CatDelegate=$ac_cv_path_CatDelegate
33338if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033340$as_echo "$CatDelegate" >&6; }
33341else
cristy8b350f62009-11-15 23:12:43 +000033342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033343$as_echo "no" >&6; }
33344fi
33345
33346
33347# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33348set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033350$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033351if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033352 $as_echo_n "(cached) " >&6
33353else
33354 case $DNGDecodeDelegate in
33355 [\\/]* | ?:[\\/]*)
33356 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33357 ;;
33358 *)
33359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33360for as_dir in $PATH
33361do
33362 IFS=$as_save_IFS
33363 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033364 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033366 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368 break 2
33369 fi
33370done
cristy8b350f62009-11-15 23:12:43 +000033371 done
cristy3ed852e2009-09-05 21:47:34 +000033372IFS=$as_save_IFS
33373
33374 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33375 ;;
33376esac
33377fi
33378DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33379if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033381$as_echo "$DNGDecodeDelegate" >&6; }
33382else
cristy8b350f62009-11-15 23:12:43 +000033383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033384$as_echo "no" >&6; }
33385fi
33386
33387
cristy66f238e2014-05-16 12:21:48 +000033388# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
33389set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033391$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033392if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033393 $as_echo_n "(cached) " >&6
33394else
cristy66f238e2014-05-16 12:21:48 +000033395 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033396 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033397 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033398 ;;
33399 *)
33400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33401for as_dir in $PATH
33402do
33403 IFS=$as_save_IFS
33404 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033405 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033407 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409 break 2
33410 fi
33411done
cristy8b350f62009-11-15 23:12:43 +000033412 done
cristy3ed852e2009-09-05 21:47:34 +000033413IFS=$as_save_IFS
33414
cristy66f238e2014-05-16 12:21:48 +000033415 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033416 ;;
33417esac
33418fi
cristy66f238e2014-05-16 12:21:48 +000033419DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
33420if test -n "$DOCDecodeDelegate"; then
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
33422$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033423else
cristy8b350f62009-11-15 23:12:43 +000033424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033425$as_echo "no" >&6; }
33426fi
33427
33428
33429# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33430set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033432$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033433if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033434 $as_echo_n "(cached) " >&6
33435else
33436 case $DVIDecodeDelegate in
33437 [\\/]* | ?:[\\/]*)
33438 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33439 ;;
33440 *)
33441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33442for as_dir in $PATH
33443do
33444 IFS=$as_save_IFS
33445 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033446 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033448 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450 break 2
33451 fi
33452done
cristy8b350f62009-11-15 23:12:43 +000033453 done
cristy3ed852e2009-09-05 21:47:34 +000033454IFS=$as_save_IFS
33455
33456 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33457 ;;
33458esac
33459fi
33460DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33461if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033463$as_echo "$DVIDecodeDelegate" >&6; }
33464else
cristy8b350f62009-11-15 23:12:43 +000033465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033466$as_echo "no" >&6; }
33467fi
33468
33469
cristy3ed852e2009-09-05 21:47:34 +000033470# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33471set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033474if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033475 $as_echo_n "(cached) " >&6
33476else
33477 case $ConvertDelegate in
33478 [\\/]* | ?:[\\/]*)
33479 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33480 ;;
33481 *)
33482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33483for as_dir in $PATH
33484do
33485 IFS=$as_save_IFS
33486 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033487 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033489 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491 break 2
33492 fi
33493done
cristy8b350f62009-11-15 23:12:43 +000033494 done
cristy3ed852e2009-09-05 21:47:34 +000033495IFS=$as_save_IFS
33496
33497 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33498 ;;
33499esac
33500fi
33501ConvertDelegate=$ac_cv_path_ConvertDelegate
33502if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033504$as_echo "$ConvertDelegate" >&6; }
33505else
cristy8b350f62009-11-15 23:12:43 +000033506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033507$as_echo "no" >&6; }
33508fi
33509
33510
33511# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33512set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033514$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033515if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033516 $as_echo_n "(cached) " >&6
33517else
33518 case $DisplayDelegate in
33519 [\\/]* | ?:[\\/]*)
33520 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33521 ;;
33522 *)
33523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33524for as_dir in $PATH
33525do
33526 IFS=$as_save_IFS
33527 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033528 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033530 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532 break 2
33533 fi
33534done
cristy8b350f62009-11-15 23:12:43 +000033535 done
cristy3ed852e2009-09-05 21:47:34 +000033536IFS=$as_save_IFS
33537
33538 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33539 ;;
33540esac
33541fi
33542DisplayDelegate=$ac_cv_path_DisplayDelegate
33543if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033545$as_echo "$DisplayDelegate" >&6; }
33546else
cristy8b350f62009-11-15 23:12:43 +000033547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033548$as_echo "no" >&6; }
33549fi
33550
33551
cristy66f238e2014-05-16 12:21:48 +000033552# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33553set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033555$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000033556if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033557 $as_echo_n "(cached) " >&6
33558else
cristy66f238e2014-05-16 12:21:48 +000033559 case $EchoDelegate in
cristy3ed852e2009-09-05 21:47:34 +000033560 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000033561 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000033562 ;;
33563 *)
33564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33565for as_dir in $PATH
33566do
33567 IFS=$as_save_IFS
33568 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033569 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000033571 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573 break 2
33574 fi
33575done
cristy8b350f62009-11-15 23:12:43 +000033576 done
cristy3ed852e2009-09-05 21:47:34 +000033577IFS=$as_save_IFS
33578
cristy66f238e2014-05-16 12:21:48 +000033579 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000033580 ;;
33581esac
33582fi
cristy66f238e2014-05-16 12:21:48 +000033583EchoDelegate=$ac_cv_path_EchoDelegate
33584if test -n "$EchoDelegate"; then
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
33586$as_echo "$EchoDelegate" >&6; }
33587else
33588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33589$as_echo "no" >&6; }
33590fi
33591
33592
33593# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33594set dummy "$EditorDelegateDefault"; ac_word=$2
33595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33596$as_echo_n "checking for $ac_word... " >&6; }
33597if ${ac_cv_path_EditorDelegate+:} false; then :
33598 $as_echo_n "(cached) " >&6
33599else
33600 case $EditorDelegate in
33601 [\\/]* | ?:[\\/]*)
33602 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33603 ;;
33604 *)
33605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33606for as_dir in $PATH
33607do
33608 IFS=$as_save_IFS
33609 test -z "$as_dir" && as_dir=.
33610 for ac_exec_ext in '' $ac_executable_extensions; do
33611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33612 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
33613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33614 break 2
33615 fi
33616done
33617 done
33618IFS=$as_save_IFS
33619
33620 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33621 ;;
33622esac
33623fi
33624EditorDelegate=$ac_cv_path_EditorDelegate
33625if test -n "$EditorDelegate"; then
33626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
33627$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033628else
cristy8b350f62009-11-15 23:12:43 +000033629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033630$as_echo "no" >&6; }
33631fi
33632
33633
33634# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33635set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033637$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033638if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033639 $as_echo_n "(cached) " >&6
33640else
33641 case $GnuplotDecodeDelegate in
33642 [\\/]* | ?:[\\/]*)
33643 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33644 ;;
33645 *)
33646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33647for as_dir in $PATH
33648do
33649 IFS=$as_save_IFS
33650 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033651 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033653 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655 break 2
33656 fi
33657done
cristy8b350f62009-11-15 23:12:43 +000033658 done
cristy3ed852e2009-09-05 21:47:34 +000033659IFS=$as_save_IFS
33660
33661 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33662 ;;
33663esac
33664fi
33665GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33666if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033668$as_echo "$GnuplotDecodeDelegate" >&6; }
33669else
cristy8b350f62009-11-15 23:12:43 +000033670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033671$as_echo "no" >&6; }
33672fi
33673
33674
cristy66f238e2014-05-16 12:21:48 +000033675# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33676set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
33677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33678$as_echo_n "checking for $ac_word... " >&6; }
33679if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
33680 $as_echo_n "(cached) " >&6
33681else
33682 case $GVCDecodeDelegate in
33683 [\\/]* | ?:[\\/]*)
33684 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33685 ;;
33686 *)
33687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33688for as_dir in $PATH
33689do
33690 IFS=$as_save_IFS
33691 test -z "$as_dir" && as_dir=.
33692 for ac_exec_ext in '' $ac_executable_extensions; do
33693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33694 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33696 break 2
33697 fi
33698done
33699 done
33700IFS=$as_save_IFS
33701
33702 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33703 ;;
33704esac
33705fi
33706GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33707if test -n "$GVCDecodeDelegate"; then
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
33709$as_echo "$GVCDecodeDelegate" >&6; }
33710else
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33712$as_echo "no" >&6; }
33713fi
33714
33715
cristy3ed852e2009-09-05 21:47:34 +000033716# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33717set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033719$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033720if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033721 $as_echo_n "(cached) " >&6
33722else
33723 case $HPGLDecodeDelegate in
33724 [\\/]* | ?:[\\/]*)
33725 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33726 ;;
33727 *)
33728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33729for as_dir in $PATH
33730do
33731 IFS=$as_save_IFS
33732 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033735 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737 break 2
33738 fi
33739done
cristy8b350f62009-11-15 23:12:43 +000033740 done
cristy3ed852e2009-09-05 21:47:34 +000033741IFS=$as_save_IFS
33742
33743 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33744 ;;
33745esac
33746fi
33747HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33748if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033750$as_echo "$HPGLDecodeDelegate" >&6; }
33751else
cristy8b350f62009-11-15 23:12:43 +000033752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033753$as_echo "no" >&6; }
33754fi
33755
33756
33757# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33758set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033760$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033761if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033762 $as_echo_n "(cached) " >&6
33763else
33764 case $HTMLDecodeDelegate in
33765 [\\/]* | ?:[\\/]*)
33766 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33767 ;;
33768 *)
33769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33770for as_dir in $PATH
33771do
33772 IFS=$as_save_IFS
33773 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033774 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033776 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778 break 2
33779 fi
33780done
cristy8b350f62009-11-15 23:12:43 +000033781 done
cristy3ed852e2009-09-05 21:47:34 +000033782IFS=$as_save_IFS
33783
33784 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33785 ;;
33786esac
33787fi
33788HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33789if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033791$as_echo "$HTMLDecodeDelegate" >&6; }
33792else
cristy8b350f62009-11-15 23:12:43 +000033793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033794$as_echo "no" >&6; }
33795fi
33796
33797
33798# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33799set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033801$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033802if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033803 $as_echo_n "(cached) " >&6
33804else
33805 case $ILBMDecodeDelegate in
33806 [\\/]* | ?:[\\/]*)
33807 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33808 ;;
33809 *)
33810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33811for as_dir in $PATH
33812do
33813 IFS=$as_save_IFS
33814 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033815 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033817 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819 break 2
33820 fi
33821done
cristy8b350f62009-11-15 23:12:43 +000033822 done
cristy3ed852e2009-09-05 21:47:34 +000033823IFS=$as_save_IFS
33824
33825 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33826 ;;
33827esac
33828fi
33829ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33830if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033832$as_echo "$ILBMDecodeDelegate" >&6; }
33833else
cristy8b350f62009-11-15 23:12:43 +000033834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033835$as_echo "no" >&6; }
33836fi
33837
33838
33839# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33840set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033842$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033843if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033844 $as_echo_n "(cached) " >&6
33845else
33846 case $ILBMEncodeDelegate in
33847 [\\/]* | ?:[\\/]*)
33848 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33849 ;;
33850 *)
33851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33852for as_dir in $PATH
33853do
33854 IFS=$as_save_IFS
33855 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033856 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033858 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860 break 2
33861 fi
33862done
cristy8b350f62009-11-15 23:12:43 +000033863 done
cristy3ed852e2009-09-05 21:47:34 +000033864IFS=$as_save_IFS
33865
33866 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33867 ;;
33868esac
33869fi
33870ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33871if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033873$as_echo "$ILBMEncodeDelegate" >&6; }
33874else
cristy8b350f62009-11-15 23:12:43 +000033875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033876$as_echo "no" >&6; }
33877fi
33878
33879
cristy71f53d52013-04-27 13:33:59 +000033880# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
33881set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
33882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33883$as_echo_n "checking for $ac_word... " >&6; }
33884if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
33885 $as_echo_n "(cached) " >&6
33886else
33887 case $JXRDecodeDelegate in
33888 [\\/]* | ?:[\\/]*)
33889 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
33890 ;;
33891 *)
33892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33893for as_dir in $PATH
33894do
33895 IFS=$as_save_IFS
33896 test -z "$as_dir" && as_dir=.
33897 for ac_exec_ext in '' $ac_executable_extensions; do
33898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33899 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33901 break 2
33902 fi
33903done
33904 done
33905IFS=$as_save_IFS
33906
33907 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
33908 ;;
33909esac
33910fi
33911JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
33912if test -n "$JXRDecodeDelegate"; then
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
33914$as_echo "$JXRDecodeDelegate" >&6; }
33915else
33916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33917$as_echo "no" >&6; }
33918fi
33919
33920
33921# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
33922set dummy "$JXREncodeDelegateDefault"; ac_word=$2
33923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33924$as_echo_n "checking for $ac_word... " >&6; }
33925if ${ac_cv_path_JXREncodeDelegate+:} false; then :
33926 $as_echo_n "(cached) " >&6
33927else
33928 case $JXREncodeDelegate in
33929 [\\/]* | ?:[\\/]*)
33930 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
33931 ;;
33932 *)
33933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33934for as_dir in $PATH
33935do
33936 IFS=$as_save_IFS
33937 test -z "$as_dir" && as_dir=.
33938 for ac_exec_ext in '' $ac_executable_extensions; do
33939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33940 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33942 break 2
33943 fi
33944done
33945 done
33946IFS=$as_save_IFS
33947
33948 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
33949 ;;
33950esac
33951fi
33952JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
33953if test -n "$JXREncodeDelegate"; then
33954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
33955$as_echo "$JXREncodeDelegate" >&6; }
33956else
33957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33958$as_echo "no" >&6; }
33959fi
33960
33961
cristy3ed852e2009-09-05 21:47:34 +000033962# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33963set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033965$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033966if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033967 $as_echo_n "(cached) " >&6
33968else
33969 case $LPDelegate in
33970 [\\/]* | ?:[\\/]*)
33971 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33972 ;;
33973 *)
33974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33975for as_dir in $PATH
33976do
33977 IFS=$as_save_IFS
33978 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033979 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033981 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983 break 2
33984 fi
33985done
cristy8b350f62009-11-15 23:12:43 +000033986 done
cristy3ed852e2009-09-05 21:47:34 +000033987IFS=$as_save_IFS
33988
33989 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33990 ;;
33991esac
33992fi
33993LPDelegate=$ac_cv_path_LPDelegate
33994if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033996$as_echo "$LPDelegate" >&6; }
33997else
cristy8b350f62009-11-15 23:12:43 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033999$as_echo "no" >&6; }
34000fi
34001
34002
34003# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34004set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034006$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034007if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034008 $as_echo_n "(cached) " >&6
34009else
34010 case $LPRDelegate in
34011 [\\/]* | ?:[\\/]*)
34012 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34013 ;;
34014 *)
34015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34016for as_dir in $PATH
34017do
34018 IFS=$as_save_IFS
34019 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034020 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034022 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034024 break 2
34025 fi
34026done
cristy8b350f62009-11-15 23:12:43 +000034027 done
cristy3ed852e2009-09-05 21:47:34 +000034028IFS=$as_save_IFS
34029
34030 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34031 ;;
34032esac
34033fi
34034LPRDelegate=$ac_cv_path_LPRDelegate
34035if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034037$as_echo "$LPRDelegate" >&6; }
34038else
cristy8b350f62009-11-15 23:12:43 +000034039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034040$as_echo "no" >&6; }
34041fi
34042
34043
cristy3ed852e2009-09-05 21:47:34 +000034044# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34045set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034047$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034048if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034049 $as_echo_n "(cached) " >&6
34050else
34051 case $LaunchDelegate in
34052 [\\/]* | ?:[\\/]*)
34053 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
34054 ;;
34055 *)
34056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34057for as_dir in $PATH
34058do
34059 IFS=$as_save_IFS
34060 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034061 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034063 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065 break 2
34066 fi
34067done
cristy8b350f62009-11-15 23:12:43 +000034068 done
cristy3ed852e2009-09-05 21:47:34 +000034069IFS=$as_save_IFS
34070
34071 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
34072 ;;
34073esac
34074fi
34075LaunchDelegate=$ac_cv_path_LaunchDelegate
34076if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034078$as_echo "$LaunchDelegate" >&6; }
34079else
cristy8b350f62009-11-15 23:12:43 +000034080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034081$as_echo "no" >&6; }
34082fi
34083
34084
34085# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
34086set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034088$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034089if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034090 $as_echo_n "(cached) " >&6
34091else
34092 case $MANDelegate in
34093 [\\/]* | ?:[\\/]*)
34094 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
34095 ;;
34096 *)
34097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34098for as_dir in $PATH
34099do
34100 IFS=$as_save_IFS
34101 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034102 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034104 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034106 break 2
34107 fi
34108done
cristy8b350f62009-11-15 23:12:43 +000034109 done
cristy3ed852e2009-09-05 21:47:34 +000034110IFS=$as_save_IFS
34111
34112 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
34113 ;;
34114esac
34115fi
34116MANDelegate=$ac_cv_path_MANDelegate
34117if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034119$as_echo "$MANDelegate" >&6; }
34120else
cristy8b350f62009-11-15 23:12:43 +000034121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034122$as_echo "no" >&6; }
34123fi
34124
34125
cristy66f238e2014-05-16 12:21:48 +000034126# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
34127set dummy "$MogrifyDelegateDefault"; ac_word=$2
34128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34129$as_echo_n "checking for $ac_word... " >&6; }
34130if ${ac_cv_path_MogrifyDelegate+:} false; then :
34131 $as_echo_n "(cached) " >&6
34132else
34133 case $MogrifyDelegate in
34134 [\\/]* | ?:[\\/]*)
34135 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
34136 ;;
34137 *)
34138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34139for as_dir in $PATH
34140do
34141 IFS=$as_save_IFS
34142 test -z "$as_dir" && as_dir=.
34143 for ac_exec_ext in '' $ac_executable_extensions; do
34144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34145 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
34146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34147 break 2
34148 fi
34149done
34150 done
34151IFS=$as_save_IFS
34152
34153 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
34154 ;;
34155esac
34156fi
34157MogrifyDelegate=$ac_cv_path_MogrifyDelegate
34158if test -n "$MogrifyDelegate"; then
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
34160$as_echo "$MogrifyDelegate" >&6; }
34161else
34162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34163$as_echo "no" >&6; }
34164fi
34165
34166
cristy3ed852e2009-09-05 21:47:34 +000034167# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34168set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034170$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034171if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034172 $as_echo_n "(cached) " >&6
34173else
34174 case $MPEGDecodeDelegate in
34175 [\\/]* | ?:[\\/]*)
34176 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34177 ;;
34178 *)
34179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34180for as_dir in $PATH
34181do
34182 IFS=$as_save_IFS
34183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034186 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188 break 2
34189 fi
34190done
cristy8b350f62009-11-15 23:12:43 +000034191 done
cristy3ed852e2009-09-05 21:47:34 +000034192IFS=$as_save_IFS
34193
34194 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34195 ;;
34196esac
34197fi
34198MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34199if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034201$as_echo "$MPEGDecodeDelegate" >&6; }
34202else
cristy8b350f62009-11-15 23:12:43 +000034203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034204$as_echo "no" >&6; }
34205fi
34206
34207
cristy058d15f2014-08-21 18:53:03 +000034208if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034209 MPEGDecodeDelegateDefault='ffmpeg'
34210 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
34211set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
34212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34213$as_echo_n "checking for $ac_word... " >&6; }
34214if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
34215 $as_echo_n "(cached) " >&6
34216else
34217 case $MPEGDecodeDelegate in
34218 [\\/]* | ?:[\\/]*)
34219 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34220 ;;
34221 *)
34222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34223for as_dir in $PATH
34224do
34225 IFS=$as_save_IFS
34226 test -z "$as_dir" && as_dir=.
34227 for ac_exec_ext in '' $ac_executable_extensions; do
34228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34229 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34231 break 2
34232 fi
34233done
34234 done
34235IFS=$as_save_IFS
34236
34237 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34238 ;;
34239esac
34240fi
34241MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34242if test -n "$MPEGDecodeDelegate"; then
34243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
34244$as_echo "$MPEGDecodeDelegate" >&6; }
34245else
34246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34247$as_echo "no" >&6; }
34248fi
34249
34250
34251fi;
cristy3ed852e2009-09-05 21:47:34 +000034252# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34253set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034255$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034256if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034257 $as_echo_n "(cached) " >&6
34258else
34259 case $MPEGEncodeDelegate in
34260 [\\/]* | ?:[\\/]*)
34261 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34262 ;;
34263 *)
34264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34265for as_dir in $PATH
34266do
34267 IFS=$as_save_IFS
34268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034271 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273 break 2
34274 fi
34275done
cristy8b350f62009-11-15 23:12:43 +000034276 done
cristy3ed852e2009-09-05 21:47:34 +000034277IFS=$as_save_IFS
34278
34279 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34280 ;;
34281esac
34282fi
34283MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34284if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034286$as_echo "$MPEGEncodeDelegate" >&6; }
34287else
cristy8b350f62009-11-15 23:12:43 +000034288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034289$as_echo "no" >&6; }
34290fi
34291
34292
cristy058d15f2014-08-21 18:53:03 +000034293if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000034294 MPEGEncodeDelegateDefault='ffmpeg'
34295 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34296set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
34297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34298$as_echo_n "checking for $ac_word... " >&6; }
34299if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
34300 $as_echo_n "(cached) " >&6
34301else
34302 case $MPEGEncodeDelegate in
34303 [\\/]* | ?:[\\/]*)
34304 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34305 ;;
34306 *)
34307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34308for as_dir in $PATH
34309do
34310 IFS=$as_save_IFS
34311 test -z "$as_dir" && as_dir=.
34312 for ac_exec_ext in '' $ac_executable_extensions; do
34313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34314 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34316 break 2
34317 fi
34318done
34319 done
34320IFS=$as_save_IFS
34321
34322 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34323 ;;
34324esac
34325fi
34326MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34327if test -n "$MPEGEncodeDelegate"; then
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
34329$as_echo "$MPEGEncodeDelegate" >&6; }
34330else
34331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34332$as_echo "no" >&6; }
34333fi
34334
34335
34336fi;
cristy935c86e2010-06-05 23:50:07 +000034337# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34338set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34340$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034341if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034342 $as_echo_n "(cached) " >&6
34343else
34344 case $MrSIDDecodeDelegate in
34345 [\\/]* | ?:[\\/]*)
34346 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34347 ;;
34348 *)
34349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34350for as_dir in $PATH
34351do
34352 IFS=$as_save_IFS
34353 test -z "$as_dir" && as_dir=.
34354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034356 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34358 break 2
34359 fi
34360done
34361 done
34362IFS=$as_save_IFS
34363
34364 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34365 ;;
34366esac
34367fi
34368MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34369if test -n "$MrSIDDecodeDelegate"; then
34370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34371$as_echo "$MrSIDDecodeDelegate" >&6; }
34372else
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374$as_echo "no" >&6; }
34375fi
34376
34377
cristy3ed852e2009-09-05 21:47:34 +000034378# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34379set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034381$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034382if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034383 $as_echo_n "(cached) " >&6
34384else
34385 case $MVDelegate in
34386 [\\/]* | ?:[\\/]*)
34387 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34388 ;;
34389 *)
34390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34391for as_dir in $PATH
34392do
34393 IFS=$as_save_IFS
34394 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034395 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034397 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034399 break 2
34400 fi
34401done
cristy8b350f62009-11-15 23:12:43 +000034402 done
cristy3ed852e2009-09-05 21:47:34 +000034403IFS=$as_save_IFS
34404
34405 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34406 ;;
34407esac
34408fi
34409MVDelegate=$ac_cv_path_MVDelegate
34410if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034412$as_echo "$MVDelegate" >&6; }
34413else
cristy8b350f62009-11-15 23:12:43 +000034414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034415$as_echo "no" >&6; }
34416fi
34417
34418
34419# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34420set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034422$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034423if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034424 $as_echo_n "(cached) " >&6
34425else
34426 case $PCLDelegate in
34427 [\\/]* | ?:[\\/]*)
34428 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34429 ;;
34430 *)
34431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34432for as_dir in $PATH
34433do
34434 IFS=$as_save_IFS
34435 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034436 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034438 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440 break 2
34441 fi
34442done
cristy8b350f62009-11-15 23:12:43 +000034443 done
cristy3ed852e2009-09-05 21:47:34 +000034444IFS=$as_save_IFS
34445
34446 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34447 ;;
34448esac
34449fi
34450PCLDelegate=$ac_cv_path_PCLDelegate
34451if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034453$as_echo "$PCLDelegate" >&6; }
34454else
cristy8b350f62009-11-15 23:12:43 +000034455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456$as_echo "no" >&6; }
34457fi
34458
34459
34460# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34461set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034463$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034464if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034465 $as_echo_n "(cached) " >&6
34466else
34467 case $PGPDecodeDelegate in
34468 [\\/]* | ?:[\\/]*)
34469 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34470 ;;
34471 *)
34472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34473for as_dir in $PATH
34474do
34475 IFS=$as_save_IFS
34476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034479 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034481 break 2
34482 fi
34483done
cristy8b350f62009-11-15 23:12:43 +000034484 done
cristy3ed852e2009-09-05 21:47:34 +000034485IFS=$as_save_IFS
34486
34487 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34488 ;;
34489esac
34490fi
34491PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34492if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034494$as_echo "$PGPDecodeDelegate" >&6; }
34495else
cristy8b350f62009-11-15 23:12:43 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034497$as_echo "no" >&6; }
34498fi
34499
34500
34501# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34502set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034505if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034506 $as_echo_n "(cached) " >&6
34507else
34508 case $POVDelegate in
34509 [\\/]* | ?:[\\/]*)
34510 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34511 ;;
34512 *)
34513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34514for as_dir in $PATH
34515do
34516 IFS=$as_save_IFS
34517 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034518 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034520 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522 break 2
34523 fi
34524done
cristy8b350f62009-11-15 23:12:43 +000034525 done
cristy3ed852e2009-09-05 21:47:34 +000034526IFS=$as_save_IFS
34527
34528 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34529 ;;
34530esac
34531fi
34532POVDelegate=$ac_cv_path_POVDelegate
34533if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034535$as_echo "$POVDelegate" >&6; }
34536else
cristy8b350f62009-11-15 23:12:43 +000034537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034538$as_echo "no" >&6; }
34539fi
34540
34541
34542for ac_prog in gsx gsc "$PSDelegateDefault"
34543do
34544 # Extract the first word of "$ac_prog", so it can be a program name with args.
34545set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034547$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034548if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034549 $as_echo_n "(cached) " >&6
34550else
34551 case $PSDelegate in
34552 [\\/]* | ?:[\\/]*)
34553 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34554 ;;
34555 *)
34556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34557for as_dir in $PATH
34558do
34559 IFS=$as_save_IFS
34560 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034561 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034563 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034565 break 2
34566 fi
34567done
cristy8b350f62009-11-15 23:12:43 +000034568 done
cristy3ed852e2009-09-05 21:47:34 +000034569IFS=$as_save_IFS
34570
34571 ;;
34572esac
34573fi
34574PSDelegate=$ac_cv_path_PSDelegate
34575if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "$PSDelegate" >&6; }
34578else
cristy8b350f62009-11-15 23:12:43 +000034579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034580$as_echo "no" >&6; }
34581fi
34582
34583
34584 test -n "$PSDelegate" && break
34585done
34586test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34587
34588# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34589set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034591$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034592if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034593 $as_echo_n "(cached) " >&6
34594else
34595 case $RLEEncodeDelegate in
34596 [\\/]* | ?:[\\/]*)
34597 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34598 ;;
34599 *)
34600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34601for as_dir in $PATH
34602do
34603 IFS=$as_save_IFS
34604 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034605 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034607 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034609 break 2
34610 fi
34611done
cristy8b350f62009-11-15 23:12:43 +000034612 done
cristy3ed852e2009-09-05 21:47:34 +000034613IFS=$as_save_IFS
34614
34615 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34616 ;;
34617esac
34618fi
34619RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34620if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo "$RLEEncodeDelegate" >&6; }
34623else
cristy8b350f62009-11-15 23:12:43 +000034624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo "no" >&6; }
34626fi
34627
34628
34629# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34630set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034633if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034634 $as_echo_n "(cached) " >&6
34635else
34636 case $RMDelegate in
34637 [\\/]* | ?:[\\/]*)
34638 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34639 ;;
34640 *)
34641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34642for as_dir in $PATH
34643do
34644 IFS=$as_save_IFS
34645 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034646 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034648 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034650 break 2
34651 fi
34652done
cristy8b350f62009-11-15 23:12:43 +000034653 done
cristy3ed852e2009-09-05 21:47:34 +000034654IFS=$as_save_IFS
34655
34656 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34657 ;;
34658esac
34659fi
34660RMDelegate=$ac_cv_path_RMDelegate
34661if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo "$RMDelegate" >&6; }
34664else
cristy8b350f62009-11-15 23:12:43 +000034665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034666$as_echo "no" >&6; }
34667fi
34668
34669
cristy4689cf02010-02-17 21:15:45 +000034670# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34671set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34673$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034674if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034675 $as_echo_n "(cached) " >&6
34676else
34677 case $RSVGDecodeDelegate in
34678 [\\/]* | ?:[\\/]*)
34679 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34680 ;;
34681 *)
34682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34683for as_dir in $PATH
34684do
34685 IFS=$as_save_IFS
34686 test -z "$as_dir" && as_dir=.
34687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034689 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34691 break 2
34692 fi
34693done
34694 done
34695IFS=$as_save_IFS
34696
34697 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34698 ;;
34699esac
34700fi
34701RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34702if test -n "$RSVGDecodeDelegate"; then
34703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34704$as_echo "$RSVGDecodeDelegate" >&6; }
34705else
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34707$as_echo "no" >&6; }
34708fi
34709
34710
cristy3ed852e2009-09-05 21:47:34 +000034711# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34712set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034715if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034716 $as_echo_n "(cached) " >&6
34717else
34718 case $SCANDecodeDelegate in
34719 [\\/]* | ?:[\\/]*)
34720 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34721 ;;
34722 *)
34723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34724for as_dir in $PATH
34725do
34726 IFS=$as_save_IFS
34727 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034728 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034730 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034732 break 2
34733 fi
34734done
cristy8b350f62009-11-15 23:12:43 +000034735 done
cristy3ed852e2009-09-05 21:47:34 +000034736IFS=$as_save_IFS
34737
34738 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34739 ;;
34740esac
34741fi
34742SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34743if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034745$as_echo "$SCANDecodeDelegate" >&6; }
34746else
cristy8b350f62009-11-15 23:12:43 +000034747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034748$as_echo "no" >&6; }
34749fi
34750
34751
cristyec6934f2012-08-14 18:38:40 +000034752# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34753set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34755$as_echo_n "checking for $ac_word... " >&6; }
34756if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34757 $as_echo_n "(cached) " >&6
34758else
34759 case $SVGDecodeDelegate in
34760 [\\/]* | ?:[\\/]*)
34761 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34762 ;;
34763 *)
34764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34765for as_dir in $PATH
34766do
34767 IFS=$as_save_IFS
34768 test -z "$as_dir" && as_dir=.
34769 for ac_exec_ext in '' $ac_executable_extensions; do
34770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34771 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34773 break 2
34774 fi
34775done
34776 done
34777IFS=$as_save_IFS
34778
34779 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34780 ;;
34781esac
34782fi
34783SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34784if test -n "$SVGDecodeDelegate"; then
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34786$as_echo "$SVGDecodeDelegate" >&6; }
34787else
34788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34789$as_echo "no" >&6; }
34790fi
34791
34792
cristy3ed852e2009-09-05 21:47:34 +000034793# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34794set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034796$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034797if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034798 $as_echo_n "(cached) " >&6
34799else
34800 case $TXTDelegate in
34801 [\\/]* | ?:[\\/]*)
34802 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34803 ;;
34804 *)
34805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34806for as_dir in $PATH
34807do
34808 IFS=$as_save_IFS
34809 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034810 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034812 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034814 break 2
34815 fi
34816done
cristy8b350f62009-11-15 23:12:43 +000034817 done
cristy3ed852e2009-09-05 21:47:34 +000034818IFS=$as_save_IFS
34819
34820 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34821 ;;
34822esac
34823fi
34824TXTDelegate=$ac_cv_path_TXTDelegate
34825if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034827$as_echo "$TXTDelegate" >&6; }
34828else
cristy8b350f62009-11-15 23:12:43 +000034829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034830$as_echo "no" >&6; }
34831fi
34832
34833
cristy5ac9ac82010-07-29 13:24:24 +000034834# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34835set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34837$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034838if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034839 $as_echo_n "(cached) " >&6
34840else
34841 case $UniconvertorDelegate in
34842 [\\/]* | ?:[\\/]*)
34843 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34844 ;;
34845 *)
34846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34847for as_dir in $PATH
34848do
34849 IFS=$as_save_IFS
34850 test -z "$as_dir" && as_dir=.
34851 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034853 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34855 break 2
34856 fi
34857done
34858 done
34859IFS=$as_save_IFS
34860
34861 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34862 ;;
34863esac
34864fi
34865UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34866if test -n "$UniconvertorDelegate"; then
34867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34868$as_echo "$UniconvertorDelegate" >&6; }
34869else
34870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34871$as_echo "no" >&6; }
34872fi
34873
34874
cristy86e86092013-08-04 17:43:57 +000034875# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
34876set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
34877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34878$as_echo_n "checking for $ac_word... " >&6; }
34879if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
34880 $as_echo_n "(cached) " >&6
34881else
34882 case $WebPDecodeDelegate in
34883 [\\/]* | ?:[\\/]*)
34884 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
34885 ;;
34886 *)
34887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34888for as_dir in $PATH
34889do
34890 IFS=$as_save_IFS
34891 test -z "$as_dir" && as_dir=.
34892 for ac_exec_ext in '' $ac_executable_extensions; do
34893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34894 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34896 break 2
34897 fi
34898done
34899 done
34900IFS=$as_save_IFS
34901
34902 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
34903 ;;
34904esac
34905fi
34906WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
34907if test -n "$WebPDecodeDelegate"; then
34908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
34909$as_echo "$WebPDecodeDelegate" >&6; }
34910else
34911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34912$as_echo "no" >&6; }
34913fi
34914
34915
34916# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
34917set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
34918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34919$as_echo_n "checking for $ac_word... " >&6; }
34920if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
34921 $as_echo_n "(cached) " >&6
34922else
34923 case $WebPEncodeDelegate in
34924 [\\/]* | ?:[\\/]*)
34925 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
34926 ;;
34927 *)
34928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34929for as_dir in $PATH
34930do
34931 IFS=$as_save_IFS
34932 test -z "$as_dir" && as_dir=.
34933 for ac_exec_ext in '' $ac_executable_extensions; do
34934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34935 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34937 break 2
34938 fi
34939done
34940 done
34941IFS=$as_save_IFS
34942
34943 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
34944 ;;
34945esac
34946fi
34947WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
34948if test -n "$WebPEncodeDelegate"; then
34949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
34950$as_echo "$WebPEncodeDelegate" >&6; }
34951else
34952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34953$as_echo "no" >&6; }
34954fi
34955
34956
cristy3ed852e2009-09-05 21:47:34 +000034957# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34958set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034960$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034961if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034962 $as_echo_n "(cached) " >&6
34963else
34964 case $WMFDecodeDelegate in
34965 [\\/]* | ?:[\\/]*)
34966 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34967 ;;
34968 *)
34969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34970for as_dir in $PATH
34971do
34972 IFS=$as_save_IFS
34973 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034974 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034976 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034978 break 2
34979 fi
34980done
cristy8b350f62009-11-15 23:12:43 +000034981 done
cristy3ed852e2009-09-05 21:47:34 +000034982IFS=$as_save_IFS
34983
34984 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34985 ;;
34986esac
34987fi
34988WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34989if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034991$as_echo "$WMFDecodeDelegate" >&6; }
34992else
cristy8b350f62009-11-15 23:12:43 +000034993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034994$as_echo "no" >&6; }
34995fi
34996
34997
34998# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34999set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035001$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035002if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035003 $as_echo_n "(cached) " >&6
35004else
35005 case $WWWDecodeDelegate in
35006 [\\/]* | ?:[\\/]*)
35007 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35008 ;;
35009 *)
35010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35011for as_dir in $PATH
35012do
35013 IFS=$as_save_IFS
35014 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035015 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035017 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035019 break 2
35020 fi
35021done
cristy8b350f62009-11-15 23:12:43 +000035022 done
cristy3ed852e2009-09-05 21:47:34 +000035023IFS=$as_save_IFS
35024
35025 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
35026 ;;
35027esac
35028fi
35029WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35030if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035032$as_echo "$WWWDecodeDelegate" >&6; }
35033else
cristy8b350f62009-11-15 23:12:43 +000035034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035035$as_echo "no" >&6; }
35036fi
35037
35038
35039# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35040set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035043if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035044 $as_echo_n "(cached) " >&6
35045else
35046 case $XPSDelegate in
35047 [\\/]* | ?:[\\/]*)
35048 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35049 ;;
35050 *)
35051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35052for as_dir in $PATH
35053do
35054 IFS=$as_save_IFS
35055 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035056 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035058 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035060 break 2
35061 fi
35062done
cristy8b350f62009-11-15 23:12:43 +000035063 done
cristy3ed852e2009-09-05 21:47:34 +000035064IFS=$as_save_IFS
35065
35066 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35067 ;;
35068esac
35069fi
35070XPSDelegate=$ac_cv_path_XPSDelegate
35071if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035073$as_echo "$XPSDelegate" >&6; }
35074else
cristy8b350f62009-11-15 23:12:43 +000035075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035076$as_echo "no" >&6; }
35077fi
35078
35079
35080# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
35081set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035083$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035084if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035085 $as_echo_n "(cached) " >&6
35086else
35087 case $ZipDelegate in
35088 [\\/]* | ?:[\\/]*)
35089 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
35090 ;;
35091 *)
35092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35093for as_dir in $PATH
35094do
35095 IFS=$as_save_IFS
35096 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035097 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035099 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035101 break 2
35102 fi
35103done
cristy8b350f62009-11-15 23:12:43 +000035104 done
cristy3ed852e2009-09-05 21:47:34 +000035105IFS=$as_save_IFS
35106
35107 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
35108 ;;
35109esac
35110fi
35111ZipDelegate=$ac_cv_path_ZipDelegate
35112if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035114$as_echo "$ZipDelegate" >&6; }
35115else
cristy8b350f62009-11-15 23:12:43 +000035116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035117$as_echo "no" >&6; }
35118fi
35119
35120
35121
35122# Prefer lpr to lp; lp needs options tacked on.
35123if test "$LPRDelegate" != no; then
35124 PrintDelegate="$LPRDelegate"
35125else
35126 PrintDelegate="$LPDelegate -c -s"
35127fi
35128
35129
35130# Installed ImageMagick utiltity paths
35131ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35132DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35133MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35134
35135# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000035136have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035137have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35138have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35139have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000035140have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035141have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35142have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000035143have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35144
35145#
35146# Test for font directories
35147#
35148type_include_files=''
35149
cristy5a3dc992014-12-05 19:50:04 +000035150 Apple fonts.
35151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35152$as_echo_n "checking for Apple fonts directory... " >&6; }
35153apple_font_dir=''
35154if test "${with_apple_font_dir}" != 'default'; then
35155 apple_font_dir="${with_apple_font_dir}/"
35156else
35157 for font_dir in '/Library/Fonts/'; do
35158 if test -f "${font_dir}Arial.ttf"; then
35159 apple_font_dir="${font_dir}"
35160 break 1
35161 fi
35162 done
35163fi
35164if test "${apple_font_dir}x" != 'x'; then
35165 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35167$as_echo "$apple_font_dir" >&6; }
35168else
35169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35170$as_echo "not found!" >&6; };
35171fi
35172
35173
cristy430a7312010-01-21 20:44:04 +000035174# Dejavu fonts.
35175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35176$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35177dejavu_font_dir=''
35178if test "${with_dejavu_font_dir}" != 'default'; then
35179 dejavu_font_dir="${with_dejavu_font_dir}/"
35180else
35181 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35182 if test -f "${font_dir}DejaVuSerif.ttf"; then
35183 dejavu_font_dir="${font_dir}"
35184 break 1
35185 fi
35186 done
35187fi
35188if test "${dejavu_font_dir}x" != 'x'; then
35189 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35191$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000035192else
cristyad38abe2012-12-23 23:03:21 +000035193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35194$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000035195fi
35196
35197
cristy3ed852e2009-09-05 21:47:34 +000035198# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000035199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000035200$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35201ghostscript_font_dir=''
35202if test "${with_gs_font_dir}" != 'default'; then
35203 ghostscript_font_dir="${with_gs_font_dir}/"
35204else
35205 if test "${native_win32_build}" = 'yes'; then
35206 # Native Windows Build
35207 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35208 if test -f "${font_dir}a010013l.pfb"; then
35209 ghostscript_font_dir="$font_dir"
35210 break 1
35211 fi
35212 done
35213 if test "${PSDelegate}" != 'gswin32c'; then
35214 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35215 fi
35216 else
35217 # Linux / Mac OS X / Unix Build
35218 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
35219 if test -f "${font_dir}a010013l.pfb"; then
35220 ghostscript_font_dir="${font_dir}"
35221 break 1
35222 fi
35223 done
35224 if test "${ghostscript_font_dir}x" = 'x'; then
35225 if test "$PSDelegate" != 'gs'; then
35226 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35227 fi
35228 fi
35229 fi
35230fi
35231if test "${ghostscript_font_dir}x" != 'x'; then
35232 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000035233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35234$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035235else
cristyad38abe2012-12-23 23:03:21 +000035236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35237$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000035238fi
35239
35240case "${build_os}" in
35241 mingw* )
35242 PSDelegate=`$WinPathScript "$PSDelegate" 1`
35243 ;;
35244esac
35245
cristy5a3dc992014-12-05 19:50:04 +000035246# Windows fonts.
35247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35248$as_echo_n "checking for Windows fonts directory... " >&6; }
35249windows_font_dir=''
35250if test "${with_windows_font_dir}" != 'default'; then
35251 windows_font_dir="${with_windows_font_dir}/"
35252else
35253 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
35254 if test -f "${font_dir}arial.ttf"; then
35255 windows_font_dir="${font_dir}"
35256 break 1
35257 fi
35258 done
35259fi
35260if test "${windows_font_dir}x" != 'x'; then
35261 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35263$as_echo "$windows_font_dir" >&6; }
35264else
35265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35266$as_echo "not found!" >&6; };
35267fi
35268
35269
cristy3ed852e2009-09-05 21:47:34 +000035270
35271
35272#
35273# Handle case where user doesn't want frozen paths
35274#
35275if test "$with_frozenpaths" != 'yes'; then
35276 # Re-set delegate definitions to default (no paths)
35277 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy16b412d2014-12-15 11:09:48 +000035278 BGPDecodeDelegate="$BGPDecodeDelegateDefault"
35279 BGPEncodeDelegate="$BGPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035280 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35281 BZIPDelegate="$BZIPDelegateDefault"
35282 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035283 CatDelegate="$CatDelegateDefault"
35284 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035285 DisplayDelegate="$DisplayDelegateDefault"
35286 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000035287 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035288 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35289 EchoDelegate="$EchoDelegateDefault"
35290 EditorDelegate="$EditorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035291 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035292 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035293 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35294 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35295 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35296 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000035297 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35298 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035299 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035300 LaunchDelegate="$LaunchDelegateDefault"
35301 MANDelegate="$MANDelegateDefault"
35302 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35303 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035304 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000035305 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35306 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035307 PCLDelegate="$PCLDelegateDefault"
35308 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
35309 POVDelegate="$POVDelegateDefault"
35310 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035311 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
35312 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000035313 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035314 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000035315 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035316 ShowImageDelegate="$ShowImageDelegateDefault"
35317 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000035318 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000035319 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35320 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000035321 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
35322 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35323 XPSDelegate="$XPSDelegateDefault"
35324 ZipDelegate="$ZipDelegateDefault"
35325fi
35326
35327# Delegate substitutions
35328
35329
35330
35331
35332
35333
35334
35335
35336
35337
35338
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359
35360
35361
35362
35363
35364
35365
35366
35367
cristy71f53d52013-04-27 13:33:59 +000035368
35369
cristy16b412d2014-12-15 11:09:48 +000035370
35371
cristy3ed852e2009-09-05 21:47:34 +000035372#
35373# RPM support.
35374#
35375RPM=''
35376for ac_prog in gnutar gtar tar
35377do
35378 # Extract the first word of "$ac_prog", so it can be a program name with args.
35379set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035381$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035382if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035383 $as_echo_n "(cached) " >&6
35384else
35385 if test -n "$TAR"; then
35386 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35387else
35388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35389for as_dir in $PATH
35390do
35391 IFS=$as_save_IFS
35392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035395 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035397 break 2
35398 fi
35399done
cristy8b350f62009-11-15 23:12:43 +000035400 done
cristy3ed852e2009-09-05 21:47:34 +000035401IFS=$as_save_IFS
35402
35403fi
35404fi
35405TAR=$ac_cv_prog_TAR
35406if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035408$as_echo "$TAR" >&6; }
35409else
cristy8b350f62009-11-15 23:12:43 +000035410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035411$as_echo "no" >&6; }
35412fi
35413
35414
35415 test -n "$TAR" && break
35416done
35417
35418for ac_prog in perl
35419do
35420 # Extract the first word of "$ac_prog", so it can be a program name with args.
35421set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035423$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035424if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035425 $as_echo_n "(cached) " >&6
35426else
35427 if test -n "$PERL"; then
35428 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35429else
35430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35431for as_dir in $PATH
35432do
35433 IFS=$as_save_IFS
35434 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035435 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035436 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035437 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035439 break 2
35440 fi
35441done
cristy8b350f62009-11-15 23:12:43 +000035442 done
cristy3ed852e2009-09-05 21:47:34 +000035443IFS=$as_save_IFS
35444
35445fi
35446fi
35447PERL=$ac_cv_prog_PERL
35448if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035450$as_echo "$PERL" >&6; }
35451else
cristy8b350f62009-11-15 23:12:43 +000035452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035453$as_echo "no" >&6; }
35454fi
35455
35456
35457 test -n "$PERL" && break
35458done
35459
35460for ac_prog in rpmbuild rpm
35461do
35462 # Extract the first word of "$ac_prog", so it can be a program name with args.
35463set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035466if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035467 $as_echo_n "(cached) " >&6
35468else
35469 if test -n "$RPM"; then
35470 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35471else
35472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35473for as_dir in $PATH
35474do
35475 IFS=$as_save_IFS
35476 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035479 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035481 break 2
35482 fi
35483done
cristy8b350f62009-11-15 23:12:43 +000035484 done
cristy3ed852e2009-09-05 21:47:34 +000035485IFS=$as_save_IFS
35486
35487fi
35488fi
35489RPM=$ac_cv_prog_RPM
35490if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035492$as_echo "$RPM" >&6; }
35493else
cristy8b350f62009-11-15 23:12:43 +000035494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035495$as_echo "no" >&6; }
35496fi
35497
35498
35499 test -n "$RPM" && break
35500done
35501
35502
cristy73bd4a52010-10-05 11:24:23 +000035503ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35504
35505
35506AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35507
35508
35509AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35510
35511
35512AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35513
35514
35515 if test "x$RPM" != "x" ; then
35516 RPM_DELEGATE_TRUE=
35517 RPM_DELEGATE_FALSE='#'
35518else
35519 RPM_DELEGATE_TRUE='#'
35520 RPM_DELEGATE_FALSE=
35521fi
35522
cristy3ed852e2009-09-05 21:47:34 +000035523
35524#
35525# 7ZIP support (http://p7zip.sourceforge.net/)
35526#
35527P7ZIP=''
35528for ac_prog in 7za
35529do
35530 # Extract the first word of "$ac_prog", so it can be a program name with args.
35531set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035534if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035535 $as_echo_n "(cached) " >&6
35536else
35537 if test -n "$P7ZIP"; then
35538 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35539else
35540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35541for as_dir in $PATH
35542do
35543 IFS=$as_save_IFS
35544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035547 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035549 break 2
35550 fi
35551done
cristy8b350f62009-11-15 23:12:43 +000035552 done
cristy3ed852e2009-09-05 21:47:34 +000035553IFS=$as_save_IFS
35554
35555fi
35556fi
35557P7ZIP=$ac_cv_prog_P7ZIP
35558if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035560$as_echo "$P7ZIP" >&6; }
35561else
cristy8b350f62009-11-15 23:12:43 +000035562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035563$as_echo "no" >&6; }
35564fi
35565
35566
35567 test -n "$P7ZIP" && break
35568done
35569
35570
cristy73bd4a52010-10-05 11:24:23 +000035571 if test "x$P7ZIP" != "x" ; then
35572 P7ZIP_DELEGATE_TRUE=
35573 P7ZIP_DELEGATE_FALSE='#'
35574else
35575 P7ZIP_DELEGATE_TRUE='#'
35576 P7ZIP_DELEGATE_FALSE=
35577fi
35578
cristy3ed852e2009-09-05 21:47:34 +000035579
35580#
35581# ZIP support (http://www.info-zip.org/Zip.html)
35582#
35583ZIP=''
35584for ac_prog in zip
35585do
35586 # Extract the first word of "$ac_prog", so it can be a program name with args.
35587set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035590if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035591 $as_echo_n "(cached) " >&6
35592else
35593 if test -n "$ZIP"; then
35594 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35595else
35596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35597for as_dir in $PATH
35598do
35599 IFS=$as_save_IFS
35600 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035603 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035605 break 2
35606 fi
35607done
cristy8b350f62009-11-15 23:12:43 +000035608 done
cristy3ed852e2009-09-05 21:47:34 +000035609IFS=$as_save_IFS
35610
35611fi
35612fi
35613ZIP=$ac_cv_prog_ZIP
35614if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035616$as_echo "$ZIP" >&6; }
35617else
cristy8b350f62009-11-15 23:12:43 +000035618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035619$as_echo "no" >&6; }
35620fi
35621
35622
35623 test -n "$ZIP" && break
35624done
35625
35626
cristy73bd4a52010-10-05 11:24:23 +000035627 if test "x$ZIP" != "x" ; then
35628 ZIP_DELEGATE_TRUE=
35629 ZIP_DELEGATE_FALSE='#'
35630else
35631 ZIP_DELEGATE_TRUE='#'
35632 ZIP_DELEGATE_FALSE=
35633fi
35634
cristy3ed852e2009-09-05 21:47:34 +000035635
35636#
35637# GhostPCL related configuration.
35638#
35639PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035640PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035641PCLMonoDevice=pbmraw
35642if test -z "$PCLVersion"; then
35643 PCLVersion='unknown'
35644fi
35645if test $have_pcl = 'yes'; then
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 PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035649$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35651$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035652 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035654$as_echo_n "checking for pcl color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035655 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035656 :
35657 else
35658 PCLColorDevice=ppmraw
35659 fi
cristyad38abe2012-12-23 23:03:21 +000035660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
35661$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035662
35663 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035665$as_echo_n "checking for pcl CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035666 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035667 :
35668 else
35669 PCLCMYKDevice=$PCLColorDevice
35670 fi
cristyad38abe2012-12-23 23:03:21 +000035671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
35672$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035673
35674 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035676$as_echo_n "checking for pcl mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035677 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035678 :
35679 else
35680 PCLMonoDevice=$PCLColorDevice
35681 fi
cristyad38abe2012-12-23 23:03:21 +000035682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
35683$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035684fi
35685
35686
35687
35688
35689
35690
35691#
35692# GhostXPS related configuration.
35693#
35694XPSColorDevice=ppmraw
35695XPSCMYKDevice=bmpsep8
35696XPSMonoDevice=pbmraw
35697if test -z "$XPSVersion"; then
35698 XPSVersion='unknown'
35699fi
35700if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35702$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035704$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35706$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035707 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035709$as_echo_n "checking for xps color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035710 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035711 :
35712 else
35713 XPSColorDevice=ppmraw
35714 fi
cristyad38abe2012-12-23 23:03:21 +000035715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
35716$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035717
35718 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035720$as_echo_n "checking for xps CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035721 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035722 :
35723 else
35724 XPSCMYKDevice=$XPSColorDevice
35725 fi
cristyad38abe2012-12-23 23:03:21 +000035726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
35727$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035728
35729 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035731$as_echo_n "checking for xps mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035732 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035733 :
35734 else
35735 XPSMonoDevice=$XPSColorDevice
35736 fi
cristyad38abe2012-12-23 23:03:21 +000035737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
35738$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035739fi
35740
35741
35742
35743
35744
35745
35746#
35747# Ghostscript related configuration.
35748#
cristya97426c2011-02-04 01:41:27 +000035749GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035750GSColorDevice=pnmraw
cristy63970c52015-06-06 16:09:04 +000035751GSCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035752GSMonoDevice=pbmraw
35753GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000035754GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000035755GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000035756GSVersion='unknown'
35757if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000035758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35759$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035761$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35763$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035765$as_echo_n "checking for Ghostscript version... " >&6; }
35766 if GSVersion=`$PSDelegate --version`; then
35767 :
35768 else
35769 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35770 fi
cristyad38abe2012-12-23 23:03:21 +000035771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
35772$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035773
cristy3ed852e2009-09-05 21:47:34 +000035774 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035776$as_echo_n "checking for gs color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035777 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035778 :
35779 else
cristy63970c52015-06-06 16:09:04 +000035780 GSColorDevice=ppmraw
cristy3ed852e2009-09-05 21:47:34 +000035781 fi
cristyad38abe2012-12-23 23:03:21 +000035782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
35783$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035784
cristy63970c52015-06-06 16:09:04 +000035785 # GSAlphaDevice
35786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
35787$as_echo_n "checking for gs alpha device... " >&6; }
35788 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
35789 :
35790 else
35791 GSAlphaDevice=$GSColorDevice
35792 fi
35793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
35794$as_echo "$GSAlphaDevice" >&6; }
35795
cristy3ed852e2009-09-05 21:47:34 +000035796 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035798$as_echo_n "checking for gs CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035799 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035800 :
35801 else
cristy63970c52015-06-06 16:09:04 +000035802 GSCMYKDevice=pam
cristy3ed852e2009-09-05 21:47:34 +000035803 fi
cristyad38abe2012-12-23 23:03:21 +000035804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
35805$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035806
35807 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035809$as_echo_n "checking for gs mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035810 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035811 :
35812 else
35813 GSMonoDevice=$GSColorDevice
35814 fi
cristyad38abe2012-12-23 23:03:21 +000035815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
35816$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035817
35818 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035820$as_echo_n "checking for gs PDF writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035821 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035822 :
35823 else
35824 GSPDFDevice=nodevice
35825 fi
cristy63970c52015-06-06 16:09:04 +000035826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristyad38abe2012-12-23 23:03:21 +000035827$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035828
35829 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035831$as_echo_n "checking for gs PS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035832 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035833 :
35834 else
cristy15308162015-01-09 23:43:12 +000035835 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000035836 fi
cristyad38abe2012-12-23 23:03:21 +000035837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
35838$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035839
35840 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035842$as_echo_n "checking for gs EPS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000035843 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000035844 :
35845 else
cristy15308162015-01-09 23:43:12 +000035846 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000035847 fi
cristyad38abe2012-12-23 23:03:21 +000035848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
35849$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035850fi
35851
35852
35853
35854
35855
35856
35857
35858
35859
35860
35861#
35862# PerlMagick-related configuration
35863#
35864
35865# Look for PERL if PerlMagick requested
35866# If name/path of desired PERL interpreter is specified, look for that one first
35867have_perl='no'
35868if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000035869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
35870$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000035871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035872$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000035873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
35874$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035875 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035877$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035878if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035879 $as_echo_n "(cached) " >&6
35880else
35881 ac_cv_path_PERL="$with_perl"
35882fi
cristy8b350f62009-11-15 23:12:43 +000035883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035884$as_echo "$ac_cv_path_PERL" >&6; };
35885 PERL=$ac_cv_path_PERL
35886 have_perl="$ac_cv_path_PERL"
35887 else
35888 for ac_prog in perl perl5
35889do
35890 # Extract the first word of "$ac_prog", so it can be a program name with args.
35891set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035893$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035894if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035895 $as_echo_n "(cached) " >&6
35896else
35897 case $PERL in
35898 [\\/]* | ?:[\\/]*)
35899 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35900 ;;
35901 *)
35902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35903for as_dir in $PATH
35904do
35905 IFS=$as_save_IFS
35906 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035907 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035909 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035911 break 2
35912 fi
35913done
cristy8b350f62009-11-15 23:12:43 +000035914 done
cristy3ed852e2009-09-05 21:47:34 +000035915IFS=$as_save_IFS
35916
35917 ;;
35918esac
35919fi
35920PERL=$ac_cv_path_PERL
35921if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035923$as_echo "$PERL" >&6; }
35924else
cristy8b350f62009-11-15 23:12:43 +000035925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035926$as_echo "no" >&6; }
35927fi
35928
35929
35930 test -n "$PERL" && break
35931done
35932 if test "$ac_cv_path_PERL"; then
35933 have_perl="$ac_cv_path_PERL"
35934 fi
35935 fi
35936fi
35937
cristy949301e2010-01-06 01:38:40 +000035938if test "$with_perl" != 'yes' ; then
35939 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35940fi
35941
35942PERL_SUPPORTS_DESTDIR='no'
35943
cristy3ed852e2009-09-05 21:47:34 +000035944with_perl_static='no'
35945with_perl_dynamic='no'
35946if test "$have_perl" != 'no'; then
35947 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35948 with_perl_static='yes'
35949 fi
35950 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35951 with_perl_dynamic='yes'
35952 fi
35953 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035954
35955
35956
35957
35958 if test -n "$PERL"; then :
35959
35960 ax_perl_version="5.8.1"
35961
35962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35963$as_echo_n "checking for perl version... " >&6; }
35964
cristy17491be2014-06-24 01:10:53 +000035965 perl_version=`$PERL --version 2>&1 \
35966 | $SED -n -e '/This is perl/b inspect
35967b
35968: inspect
35969s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000035970
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35972$as_echo "$perl_version" >&6; }
35973
35974 PERL_VERSION=$perl_version
35975
35976
35977
35978
35979
35980 # Used to indicate true or false condition
35981 ax_compare_version=false
35982
35983 # Convert the two version strings to be compared into a format that
35984 # allows a simple string comparison. The end result is that a version
35985 # string of the form 1.12.5-r617 will be converted to the form
35986 # 0001001200050617. In other words, each number is zero padded to four
35987 # digits, and non digits are removed.
35988
35989 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35990 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35991 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35992 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35993 -e 's/[^0-9]//g'`
35994
35995
35996 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35997 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35998 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35999 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36000 -e 's/[^0-9]//g'`
36001
36002
36003 ax_compare_version=`echo "x$ax_compare_version_A
36004x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36005
36006
36007
36008 if test "$ax_compare_version" = "true" ; then
36009
36010 :
36011 PERL_SUPPORTS_DESTDIR='yes'
36012
36013 else
36014 :
36015 PERL_SUPPORTS_DESTDIR='no'
36016
36017 fi
36018
36019
36020else
36021
36022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36023$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36024 PERL_SUPPORTS_DESTDIR='no'
36025
cristy3ed852e2009-09-05 21:47:34 +000036026fi
cristy73bd4a52010-10-05 11:24:23 +000036027
36028fi
36029 if test "$have_perl" != 'no'; then
36030 WITH_PERL_TRUE=
36031 WITH_PERL_FALSE='#'
36032else
36033 WITH_PERL_TRUE='#'
36034 WITH_PERL_FALSE=
36035fi
36036
36037 if test $with_perl_static = 'yes'; then
36038 WITH_PERL_STATIC_TRUE=
36039 WITH_PERL_STATIC_FALSE='#'
36040else
36041 WITH_PERL_STATIC_TRUE='#'
36042 WITH_PERL_STATIC_FALSE=
36043fi
36044
36045 if test $with_perl_dynamic = 'yes'; then
36046 WITH_PERL_DYNAMIC_TRUE=
36047 WITH_PERL_DYNAMIC_FALSE='#'
36048else
36049 WITH_PERL_DYNAMIC_TRUE='#'
36050 WITH_PERL_DYNAMIC_FALSE=
36051fi
36052
cristy3ed852e2009-09-05 21:47:34 +000036053
36054
36055# Determine path to pick up MagickCore library from for use with building PerlMagick
36056MAGICKCORE_PATH="${LIB_DIR}"
36057if test $with_perl_static = 'yes'; then
36058 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36059 libtool_objdir=$objdir
36060
36061 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000036062 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000036063fi
36064
36065
cristy2a3eb392012-12-17 13:39:20 +000036066# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000036067MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000036068if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036069 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000036070fi
cristy2a3eb392012-12-17 13:39:20 +000036071if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036072 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000036073fi
36074if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036075 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000036076fi
36077if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036078 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000036079fi
cristy81ab5af2013-10-06 18:28:39 +000036080if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036081 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000036082fi
36083if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036084 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000036085fi
cristy2a3eb392012-12-17 13:39:20 +000036086if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036087 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000036088fi
36089if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036090 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000036091fi
36092if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036093 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000036094fi
36095if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036096 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000036097fi
36098if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036099 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000036100fi
36101if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000036102 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000036103fi
cristy2a3eb392012-12-17 13:39:20 +000036104if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036105 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000036106fi
36107if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036108 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000036109fi
36110if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036111 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000036112fi
36113if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036114 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000036115fi
36116if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036117 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000036118fi
cristy99db3872014-01-01 15:11:34 +000036119if test "$have_openjp2" = 'yes' ; then
36120 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000036121fi
cristy2a3eb392012-12-17 13:39:20 +000036122if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036123 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000036124fi
36125if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036126 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000036127fi
36128have_ps='no'
36129if test "$have_dps" = 'yes' || \
36130 test "$have_gs" = 'yes' || \
36131 test "${native_win32_build}" = 'yes' ; then
36132 have_ps='yes'
36133fi
36134if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036135 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000036136fi
cristy2a3eb392012-12-17 13:39:20 +000036137if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036138 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000036139fi
36140if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036141 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000036142fi
36143if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036144 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000036145fi
36146if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036147 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000036148fi
cristy3b640ed2013-07-29 00:27:59 +000036149if test "$have_webp" = 'yes' ; then
36150 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36151fi
cristy2a3eb392012-12-17 13:39:20 +000036152if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036153 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000036154fi
36155if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036156 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000036157fi
36158if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036159 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000036160fi
36161if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000036162 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000036163fi
cristyead532a2015-06-05 00:49:30 +000036164
cristy2a3eb392012-12-17 13:39:20 +000036165# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000036166MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000036167MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000036168
36169
cristyfa161182012-12-19 15:45:28 +000036170
cristy3ed852e2009-09-05 21:47:34 +000036171#
36172# Handle special compiler flags
36173#
36174
36175# Add '-p' if prof source profiling support enabled
36176if test "$enable_prof" = 'yes'; then
36177 CFLAGS="-p $CFLAGS"
36178 CXXFLAGS="-p $CXXFLAGS"
36179 LDFLAGS="-p $LDFLAGS"
36180fi
36181
36182# Add '-pg' if gprof source profiling support enabled
36183if test "$enable_gprof" = 'yes'; then
36184 CFLAGS="-pg $CFLAGS"
36185 CXXFLAGS="-pg $CXXFLAGS"
36186 LDFLAGS="-pg $LDFLAGS"
36187fi
36188
36189# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36190# This is a gcc-specific feature
36191if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036193$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036194if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036195 $as_echo_n "(cached) " >&6
36196else
36197 ac_check_lib_save_LIBS=$LIBS
36198LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036200/* end confdefs.h. */
36201
36202/* Override any GCC internal prototype to avoid an error.
36203 Use char because int might match the return type of a GCC
36204 builtin and then its argument prototype would still apply. */
36205#ifdef __cplusplus
36206extern "C"
36207#endif
36208char _gcov_init ();
36209int
36210main ()
36211{
36212return _gcov_init ();
36213 ;
36214 return 0;
36215}
36216_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036217if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036218 ac_cv_lib_gcov__gcov_init=yes
36219else
cristy8b350f62009-11-15 23:12:43 +000036220 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036221fi
cristy8b350f62009-11-15 23:12:43 +000036222rm -f core conftest.err conftest.$ac_objext \
36223 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036224LIBS=$ac_check_lib_save_LIBS
36225fi
cristy8b350f62009-11-15 23:12:43 +000036226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036227$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036228if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036229 cat >>confdefs.h <<_ACEOF
36230#define HAVE_LIBGCOV 1
36231_ACEOF
36232
36233 LIBS="-lgcov $LIBS"
36234
36235fi
36236
cristy8b350f62009-11-15 23:12:43 +000036237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000036238$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036239if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036240 $as_echo_n "(cached) " >&6
36241else
36242 ac_check_lib_save_LIBS=$LIBS
36243LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000036244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036245/* end confdefs.h. */
36246
36247/* Override any GCC internal prototype to avoid an error.
36248 Use char because int might match the return type of a GCC
36249 builtin and then its argument prototype would still apply. */
36250#ifdef __cplusplus
36251extern "C"
36252#endif
36253char __gcov_init ();
36254int
36255main ()
36256{
36257return __gcov_init ();
36258 ;
36259 return 0;
36260}
36261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000036262if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000036263 ac_cv_lib_gcov___gcov_init=yes
36264else
cristy8b350f62009-11-15 23:12:43 +000036265 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000036266fi
cristy8b350f62009-11-15 23:12:43 +000036267rm -f core conftest.err conftest.$ac_objext \
36268 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000036269LIBS=$ac_check_lib_save_LIBS
36270fi
cristy8b350f62009-11-15 23:12:43 +000036271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000036272$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000036273if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000036274 cat >>confdefs.h <<_ACEOF
36275#define HAVE_LIBGCOV 1
36276_ACEOF
36277
36278 LIBS="-lgcov $LIBS"
36279
36280fi
36281
36282 case "$target_os" in
36283 darwin*)
36284 OSX_GCOV_LDFLAG="-Wl,-single_module"
36285 ;;
36286 *)
36287 OSX_GCOV_LDFLAG=""
36288 ;;
36289 esac
36290
36291 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
36292 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
36293 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36294fi
36295
36296#
36297# Build library dependency list for libMagickCore
36298#
36299
cristyc6722092012-10-14 00:19:31 +000036300if test "$build_modules" != 'no'; then
cristybc8ef1c2015-06-06 14:32:21 +000036301 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 +000036302else
cristy70870272015-06-06 15:54:14 +000036303 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 +000036304fi
36305
36306
cristy3ed852e2009-09-05 21:47:34 +000036307# Pass only user-provided LIBS as "global" libraries
36308LIBS=$USER_LIBS
36309
36310#AC_SUBST(CPPFLAGS)
36311
36312#AC_SUBST(LDFLAGS)
36313#AC_SUBST(X_PRE_LIBS)
36314#AC_SUBST(X_LIBS)
36315#AC_SUBST(X_EXTRA_LIBS)
36316
36317MAGICK_CFLAGS=$CFLAGS
36318MAGICK_CXXFLAGS="$CXXFLAGS"
36319MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
36320MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
36321MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000036322MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000036323
36324
36325
36326
36327
36328
36329
36330
36331# Set configured scripts to executable.
36332ac_config_commands="$ac_config_commands default"
36333
cristy2bd4b6e2012-07-22 15:29:11 +000036334ac_config_commands="$ac_config_commands magick.sh.in"
36335
cristy3ed852e2009-09-05 21:47:34 +000036336ac_config_commands="$ac_config_commands MagickCore-config.in"
36337
cristy3ed852e2009-09-05 21:47:34 +000036338ac_config_commands="$ac_config_commands MagickWand-config.in"
36339
cristy3ed852e2009-09-05 21:47:34 +000036340ac_config_commands="$ac_config_commands Magick++-config.in"
36341
36342ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36343
36344
cristyad38abe2012-12-23 23:03:21 +000036345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36346$as_echo "-------------------------------------------------------------" >&6; }
36347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36348$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000036349
36350rm -f magick-version
36351
36352result_dejavu_font_dir='none'
36353if test "${dejavu_font_dir}x" != 'x'; then
36354 result_dejavu_font_dir=$dejavu_font_dir
36355fi
36356
36357result_ghostscript_font_dir='none'
36358if test "${ghostscript_font_dir}x" != 'x'; then
36359 result_ghostscript_font_dir=$ghostscript_font_dir
36360fi
36361
36362result_windows_font_dir='none'
36363if test "${windows_font_dir}x" != 'x'; then
36364 result_windows_font_dir=${windows_font_dir}
36365fi
36366
36367# ==============================================================================
36368# Generate build environment
36369# ==============================================================================
36370ac_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"
36371
cristy3ed852e2009-09-05 21:47:34 +000036372cat >confcache <<\_ACEOF
36373# This file is a shell script that caches the results of configure
36374# tests run on this system so they can be shared between configure
36375# scripts and configure runs, see configure's option --config-cache.
36376# It is not useful on other systems. If it contains results you don't
36377# want to keep, you may remove or edit it.
36378#
36379# config.status only pays attention to the cache file if you give it
36380# the --recheck option to rerun configure.
36381#
36382# `ac_cv_env_foo' variables (set or unset) will be overridden when
36383# loading this file, other *unset* `ac_cv_foo' will be assigned the
36384# following values.
36385
36386_ACEOF
36387
36388# The following way of writing the cache mishandles newlines in values,
36389# but we know of no workaround that is simple, portable, and efficient.
36390# So, we kill variables containing newlines.
36391# Ultrix sh set writes to stderr and can't be redirected directly,
36392# and sets the high bit in the cache file unless we assign to the vars.
36393(
36394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36395 eval ac_val=\$$ac_var
36396 case $ac_val in #(
36397 *${as_nl}*)
36398 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000036399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000036400$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36401 esac
36402 case $ac_var in #(
36403 _ | IFS | as_nl) ;; #(
36404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000036405 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000036406 esac ;;
36407 esac
36408 done
36409
36410 (set) 2>&1 |
36411 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36412 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000036413 # `set' does not quote correctly, so add quotes: double-quote
36414 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000036415 sed -n \
36416 "s/'/'\\\\''/g;
36417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36418 ;; #(
36419 *)
36420 # `set' quotes correctly as required by POSIX, so do not add quotes.
36421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36422 ;;
36423 esac |
36424 sort
36425) |
36426 sed '
36427 /^ac_cv_env_/b end
36428 t clear
36429 :clear
36430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36431 t end
36432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36433 :end' >>confcache
36434if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36435 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000036436 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000036437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036438$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000036439 if test ! -f "$cache_file" || test -h "$cache_file"; then
36440 cat confcache >"$cache_file"
36441 else
36442 case $cache_file in #(
36443 */* | ?:*)
36444 mv -f confcache "$cache_file"$$ &&
36445 mv -f "$cache_file"$$ "$cache_file" ;; #(
36446 *)
36447 mv -f confcache "$cache_file" ;;
36448 esac
36449 fi
36450 fi
cristy3ed852e2009-09-05 21:47:34 +000036451 else
cristy8b350f62009-11-15 23:12:43 +000036452 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036453$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36454 fi
36455fi
36456rm -f confcache
36457
36458test "x$prefix" = xNONE && prefix=$ac_default_prefix
36459# Let make expand exec_prefix.
36460test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36461
36462DEFS=-DHAVE_CONFIG_H
36463
36464ac_libobjs=
36465ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036466U=
cristy3ed852e2009-09-05 21:47:34 +000036467for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36468 # 1. Remove the extension, and $U if already installed.
36469 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36470 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36471 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36472 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036473 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36474 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036475done
36476LIBOBJS=$ac_libobjs
36477
36478LTLIBOBJS=$ac_ltlibobjs
36479
36480
cristyc0890a62012-07-19 00:18:20 +000036481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36482$as_echo_n "checking that generated files are newer than configure... " >&6; }
36483 if test -n "$am_sleep_pid"; then
36484 # Hide warnings about reused PIDs.
36485 wait $am_sleep_pid 2>/dev/null
36486 fi
36487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36488$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036489 if test -n "$EXEEXT"; then
36490 am__EXEEXT_TRUE=
36491 am__EXEEXT_FALSE='#'
36492else
36493 am__EXEEXT_TRUE='#'
36494 am__EXEEXT_FALSE=
36495fi
cristy3ed852e2009-09-05 21:47:34 +000036496
cristy9af1cbf2014-12-28 22:03:09 +000036497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36498$as_echo_n "checking that generated files are newer than configure... " >&6; }
36499 if test -n "$am_sleep_pid"; then
36500 # Hide warnings about reused PIDs.
36501 wait $am_sleep_pid 2>/dev/null
36502 fi
36503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36504$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036505if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036506 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036507Usually this means the macro was only invoked conditionally." "$LINENO" 5
36508fi
36509if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036510 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036511Usually this means the macro was only invoked conditionally." "$LINENO" 5
36512fi
36513if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036514 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036515Usually this means the macro was only invoked conditionally." "$LINENO" 5
36516fi
36517if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036518 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036519Usually this means the macro was only invoked conditionally." "$LINENO" 5
36520fi
cristy9b86f202012-11-28 21:55:35 +000036521if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
36522 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
36523Usually this means the macro was only invoked conditionally." "$LINENO" 5
36524fi
cristy73bd4a52010-10-05 11:24:23 +000036525if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036526 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036527Usually this means the macro was only invoked conditionally." "$LINENO" 5
36528fi
36529if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036530 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036531Usually this means the macro was only invoked conditionally." "$LINENO" 5
36532fi
36533if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036534 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036535Usually this means the macro was only invoked conditionally." "$LINENO" 5
36536fi
36537if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036538 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036539Usually this means the macro was only invoked conditionally." "$LINENO" 5
36540fi
cristy73bd4a52010-10-05 11:24:23 +000036541if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036542 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036543Usually this means the macro was only invoked conditionally." "$LINENO" 5
36544fi
36545if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036546 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036547Usually this means the macro was only invoked conditionally." "$LINENO" 5
36548fi
cristy73bd4a52010-10-05 11:24:23 +000036549if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036550 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036551Usually this means the macro was only invoked conditionally." "$LINENO" 5
36552fi
cristy71d8c202012-03-20 17:05:01 +000036553if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36554 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36555Usually this means the macro was only invoked conditionally." "$LINENO" 5
36556fi
cristy73bd4a52010-10-05 11:24:23 +000036557
36558if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036559 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036560Usually this means the macro was only invoked conditionally." "$LINENO" 5
36561fi
36562if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036563 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036564Usually this means the macro was only invoked conditionally." "$LINENO" 5
36565fi
cristy3b0097d2014-11-04 15:34:47 +000036566if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
36567 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
36568Usually this means the macro was only invoked conditionally." "$LINENO" 5
36569fi
cristy73bd4a52010-10-05 11:24:23 +000036570if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036571 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036572Usually this means the macro was only invoked conditionally." "$LINENO" 5
36573fi
36574if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036575 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036576Usually this means the macro was only invoked conditionally." "$LINENO" 5
36577fi
36578if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036579 as_fn_error $? "conditional \"X11_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 "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036583 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036584Usually this means the macro was only invoked conditionally." "$LINENO" 5
36585fi
cristy5eef09f2012-10-16 12:08:28 +000036586if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
36587 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
36588Usually this means the macro was only invoked conditionally." "$LINENO" 5
36589fi
cristy73bd4a52010-10-05 11:24:23 +000036590if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036591 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036592Usually this means the macro was only invoked conditionally." "$LINENO" 5
36593fi
36594if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036595 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036596Usually this means the macro was only invoked conditionally." "$LINENO" 5
36597fi
cristy73bd4a52010-10-05 11:24:23 +000036598if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036599 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036600Usually this means the macro was only invoked conditionally." "$LINENO" 5
36601fi
36602if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036603 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036604Usually this means the macro was only invoked conditionally." "$LINENO" 5
36605fi
cristy853d9902014-08-21 18:50:43 +000036606if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
36607 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
36608Usually this means the macro was only invoked conditionally." "$LINENO" 5
36609fi
cristy73bd4a52010-10-05 11:24:23 +000036610if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036611 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036612Usually this means the macro was only invoked conditionally." "$LINENO" 5
36613fi
36614if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036615 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036616Usually this means the macro was only invoked conditionally." "$LINENO" 5
36617fi
36618if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036619 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036620Usually this means the macro was only invoked conditionally." "$LINENO" 5
36621fi
36622if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036623 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036624Usually this means the macro was only invoked conditionally." "$LINENO" 5
36625fi
36626if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036627 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036628Usually this means the macro was only invoked conditionally." "$LINENO" 5
36629fi
36630if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036631 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036632Usually this means the macro was only invoked conditionally." "$LINENO" 5
36633fi
cristy73bd4a52010-10-05 11:24:23 +000036634if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036635 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036636Usually this means the macro was only invoked conditionally." "$LINENO" 5
36637fi
cristy99db3872014-01-01 15:11:34 +000036638if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
36639 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
36640Usually this means the macro was only invoked conditionally." "$LINENO" 5
36641fi
cristy73bd4a52010-10-05 11:24:23 +000036642if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036643 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036644Usually this means the macro was only invoked conditionally." "$LINENO" 5
36645fi
cristyfbb0ef02010-12-19 02:32:11 +000036646if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36647 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36648Usually this means the macro was only invoked conditionally." "$LINENO" 5
36649fi
cristy73bd4a52010-10-05 11:24:23 +000036650if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036651 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036652Usually this means the macro was only invoked conditionally." "$LINENO" 5
36653fi
cristy41cbe8a2011-10-27 01:35:18 +000036654if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36655 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36656Usually this means the macro was only invoked conditionally." "$LINENO" 5
36657fi
cristya054b762012-03-26 23:16:00 +000036658if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36659 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036660Usually this means the macro was only invoked conditionally." "$LINENO" 5
36661fi
cristy73bd4a52010-10-05 11:24:23 +000036662if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036663 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036664Usually this means the macro was only invoked conditionally." "$LINENO" 5
36665fi
36666if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036667 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036668Usually this means the macro was only invoked conditionally." "$LINENO" 5
36669fi
36670if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036671 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036672Usually this means the macro was only invoked conditionally." "$LINENO" 5
36673fi
36674if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036675 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036676Usually this means the macro was only invoked conditionally." "$LINENO" 5
36677fi
cristyb1860752011-03-14 00:27:46 +000036678if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36679 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36680Usually this means the macro was only invoked conditionally." "$LINENO" 5
36681fi
cristy73bd4a52010-10-05 11:24:23 +000036682if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036683 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036684Usually this means the macro was only invoked conditionally." "$LINENO" 5
36685fi
36686if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036687 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036688Usually this means the macro was only invoked conditionally." "$LINENO" 5
36689fi
cristydd17feb2014-03-05 02:06:32 +000036690if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
36691 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
36692Usually this means the macro was only invoked conditionally." "$LINENO" 5
36693fi
cristy73bd4a52010-10-05 11:24:23 +000036694if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036695 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036696Usually this means the macro was only invoked conditionally." "$LINENO" 5
36697fi
36698if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036699 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036700Usually this means the macro was only invoked conditionally." "$LINENO" 5
36701fi
36702if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036703 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036704Usually this means the macro was only invoked conditionally." "$LINENO" 5
36705fi
36706if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036707 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036708Usually this means the macro was only invoked conditionally." "$LINENO" 5
36709fi
36710if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036711 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036712Usually this means the macro was only invoked conditionally." "$LINENO" 5
36713fi
36714if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036715 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036716Usually this means the macro was only invoked conditionally." "$LINENO" 5
36717fi
cristy3ed852e2009-09-05 21:47:34 +000036718
cristyda16f162011-02-19 23:52:17 +000036719: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036720ac_write_fail=0
36721ac_clean_files_save=$ac_clean_files
36722ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036723{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036724$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036725as_write_fail=0
36726cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036727#! $SHELL
36728# Generated by $as_me.
36729# Run this file to recreate the current configuration.
36730# Compiler output produced by configure, useful for debugging
36731# configure, is in config.log if it exists.
36732
36733debug=false
36734ac_cs_recheck=false
36735ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036736
cristy8b350f62009-11-15 23:12:43 +000036737SHELL=\${CONFIG_SHELL-$SHELL}
36738export SHELL
36739_ASEOF
36740cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36741## -------------------- ##
36742## M4sh Initialization. ##
36743## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036744
36745# Be more Bourne compatible
36746DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036747if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036748 emulate sh
36749 NULLCMD=:
36750 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36751 # is contrary to our usage. Disable this feature.
36752 alias -g '${1+"$@"}'='"$@"'
36753 setopt NO_GLOB_SUBST
36754else
cristy8b350f62009-11-15 23:12:43 +000036755 case `(set -o) 2>/dev/null` in #(
36756 *posix*) :
36757 set -o posix ;; #(
36758 *) :
36759 ;;
cristy3ed852e2009-09-05 21:47:34 +000036760esac
cristy3ed852e2009-09-05 21:47:34 +000036761fi
36762
36763
cristy3ed852e2009-09-05 21:47:34 +000036764as_nl='
36765'
36766export as_nl
36767# Printing a long string crashes Solaris 7 /usr/bin/printf.
36768as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36769as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36770as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036771# Prefer a ksh shell builtin over an external printf program on Solaris,
36772# but without wasting forks for bash or zsh.
36773if test -z "$BASH_VERSION$ZSH_VERSION" \
36774 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36775 as_echo='print -r --'
36776 as_echo_n='print -rn --'
36777elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036778 as_echo='printf %s\n'
36779 as_echo_n='printf %s'
36780else
36781 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36782 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36783 as_echo_n='/usr/ucb/echo -n'
36784 else
36785 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36786 as_echo_n_body='eval
36787 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036788 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036789 *"$as_nl"*)
36790 expr "X$arg" : "X\\(.*\\)$as_nl";
36791 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36792 esac;
36793 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36794 '
36795 export as_echo_n_body
36796 as_echo_n='sh -c $as_echo_n_body as_echo'
36797 fi
36798 export as_echo_body
36799 as_echo='sh -c $as_echo_body as_echo'
36800fi
36801
36802# The user is always right.
36803if test "${PATH_SEPARATOR+set}" != set; then
36804 PATH_SEPARATOR=:
36805 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36806 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36807 PATH_SEPARATOR=';'
36808 }
36809fi
36810
cristy3ed852e2009-09-05 21:47:34 +000036811
36812# IFS
36813# We need space, tab and new line, in precisely that order. Quoting is
36814# there to prevent editors from complaining about space-tab.
36815# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36816# splitting by setting IFS to empty value.)
36817IFS=" "" $as_nl"
36818
36819# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036820as_myself=
cristy8b350f62009-11-15 23:12:43 +000036821case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036822 *[\\/]* ) as_myself=$0 ;;
36823 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36824for as_dir in $PATH
36825do
36826 IFS=$as_save_IFS
36827 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036828 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36829 done
cristy3ed852e2009-09-05 21:47:34 +000036830IFS=$as_save_IFS
36831
36832 ;;
36833esac
36834# We did not find ourselves, most probably we were run as `sh COMMAND'
36835# in which case we are not to be found in the path.
36836if test "x$as_myself" = x; then
36837 as_myself=$0
36838fi
36839if test ! -f "$as_myself"; then
36840 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036841 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036842fi
36843
cristy8b350f62009-11-15 23:12:43 +000036844# Unset variables that we do not need and which cause bugs (e.g. in
36845# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36846# suppresses any "Segmentation fault" message there. '((' could
36847# trigger a bug in pdksh 5.2.14.
36848for as_var in BASH_ENV ENV MAIL MAILPATH
36849do eval test x\${$as_var+set} = xset \
36850 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036851done
36852PS1='$ '
36853PS2='> '
36854PS4='+ '
36855
36856# NLS nuisances.
36857LC_ALL=C
36858export LC_ALL
36859LANGUAGE=C
36860export LANGUAGE
36861
cristy8b350f62009-11-15 23:12:43 +000036862# CDPATH.
36863(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36864
36865
cristy98dddb52010-11-04 00:30:15 +000036866# as_fn_error STATUS ERROR [LINENO LOG_FD]
36867# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036868# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36869# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036870# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036871as_fn_error ()
36872{
cristy98dddb52010-11-04 00:30:15 +000036873 as_status=$1; test $as_status -eq 0 && as_status=1
36874 if test "$4"; then
36875 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36876 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036877 fi
cristy98dddb52010-11-04 00:30:15 +000036878 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036879 as_fn_exit $as_status
36880} # as_fn_error
36881
36882
36883# as_fn_set_status STATUS
36884# -----------------------
36885# Set $? to STATUS, without forking.
36886as_fn_set_status ()
36887{
36888 return $1
36889} # as_fn_set_status
36890
36891# as_fn_exit STATUS
36892# -----------------
36893# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36894as_fn_exit ()
36895{
36896 set +e
36897 as_fn_set_status $1
36898 exit $1
36899} # as_fn_exit
36900
36901# as_fn_unset VAR
36902# ---------------
36903# Portably unset VAR.
36904as_fn_unset ()
36905{
36906 { eval $1=; unset $1;}
36907}
36908as_unset=as_fn_unset
36909# as_fn_append VAR VALUE
36910# ----------------------
36911# Append the text in VALUE to the end of the definition contained in VAR. Take
36912# advantage of any shell optimizations that allow amortized linear growth over
36913# repeated appends, instead of the typical quadratic growth present in naive
36914# implementations.
36915if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36916 eval 'as_fn_append ()
36917 {
36918 eval $1+=\$2
36919 }'
36920else
36921 as_fn_append ()
36922 {
36923 eval $1=\$$1\$2
36924 }
36925fi # as_fn_append
36926
36927# as_fn_arith ARG...
36928# ------------------
36929# Perform arithmetic evaluation on the ARGs, and store the result in the
36930# global $as_val. Take advantage of shells that can avoid forks. The arguments
36931# must be portable across $(()) and expr.
36932if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36933 eval 'as_fn_arith ()
36934 {
36935 as_val=$(( $* ))
36936 }'
36937else
36938 as_fn_arith ()
36939 {
36940 as_val=`expr "$@" || test $? -eq 1`
36941 }
36942fi # as_fn_arith
36943
36944
cristy3ed852e2009-09-05 21:47:34 +000036945if expr a : '\(a\)' >/dev/null 2>&1 &&
36946 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36947 as_expr=expr
36948else
36949 as_expr=false
36950fi
36951
36952if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36953 as_basename=basename
36954else
36955 as_basename=false
36956fi
36957
cristy8b350f62009-11-15 23:12:43 +000036958if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36959 as_dirname=dirname
36960else
36961 as_dirname=false
36962fi
cristy3ed852e2009-09-05 21:47:34 +000036963
cristy3ed852e2009-09-05 21:47:34 +000036964as_me=`$as_basename -- "$0" ||
36965$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36966 X"$0" : 'X\(//\)$' \| \
36967 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36968$as_echo X/"$0" |
36969 sed '/^.*\/\([^/][^/]*\)\/*$/{
36970 s//\1/
36971 q
36972 }
36973 /^X\/\(\/\/\)$/{
36974 s//\1/
36975 q
36976 }
36977 /^X\/\(\/\).*/{
36978 s//\1/
36979 q
36980 }
36981 s/.*/./; q'`
36982
cristy8b350f62009-11-15 23:12:43 +000036983# Avoid depending upon Character Ranges.
36984as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36985as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36986as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36987as_cr_digits='0123456789'
36988as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036989
36990ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036991case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036992-n*)
cristy8b350f62009-11-15 23:12:43 +000036993 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036994 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036995 xy) ECHO_C='\c';;
36996 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36997 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036998 esac;;
36999*)
37000 ECHO_N='-n';;
37001esac
cristy3ed852e2009-09-05 21:47:34 +000037002
37003rm -f conf$$ conf$$.exe conf$$.file
37004if test -d conf$$.dir; then
37005 rm -f conf$$.dir/conf$$.file
37006else
37007 rm -f conf$$.dir
37008 mkdir conf$$.dir 2>/dev/null
37009fi
37010if (echo >conf$$.file) 2>/dev/null; then
37011 if ln -s conf$$.file conf$$ 2>/dev/null; then
37012 as_ln_s='ln -s'
37013 # ... but there are two gotchas:
37014 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37015 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000037016 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000037017 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000037018 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037019 elif ln conf$$.file conf$$ 2>/dev/null; then
37020 as_ln_s=ln
37021 else
cristy14fefe52012-05-21 00:59:18 +000037022 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037023 fi
37024else
cristy14fefe52012-05-21 00:59:18 +000037025 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000037026fi
37027rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37028rmdir conf$$.dir 2>/dev/null
37029
cristy8b350f62009-11-15 23:12:43 +000037030
37031# as_fn_mkdir_p
37032# -------------
37033# Create "$as_dir" as a directory, including parents if necessary.
37034as_fn_mkdir_p ()
37035{
37036
37037 case $as_dir in #(
37038 -*) as_dir=./$as_dir;;
37039 esac
37040 test -d "$as_dir" || eval $as_mkdir_p || {
37041 as_dirs=
37042 while :; do
37043 case $as_dir in #(
37044 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37045 *) as_qdir=$as_dir;;
37046 esac
37047 as_dirs="'$as_qdir' $as_dirs"
37048 as_dir=`$as_dirname -- "$as_dir" ||
37049$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37050 X"$as_dir" : 'X\(//\)[^/]' \| \
37051 X"$as_dir" : 'X\(//\)$' \| \
37052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37053$as_echo X"$as_dir" |
37054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37055 s//\1/
37056 q
37057 }
37058 /^X\(\/\/\)[^/].*/{
37059 s//\1/
37060 q
37061 }
37062 /^X\(\/\/\)$/{
37063 s//\1/
37064 q
37065 }
37066 /^X\(\/\).*/{
37067 s//\1/
37068 q
37069 }
37070 s/.*/./; q'`
37071 test -d "$as_dir" && break
37072 done
37073 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000037074 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000037075
37076
37077} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037078if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000037079 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000037080else
37081 test -d ./-p && rmdir ./-p
37082 as_mkdir_p=false
37083fi
37084
cristy14fefe52012-05-21 00:59:18 +000037085
37086# as_fn_executable_p FILE
37087# -----------------------
37088# Test if FILE is an executable regular file.
37089as_fn_executable_p ()
37090{
37091 test -f "$1" && test -x "$1"
37092} # as_fn_executable_p
37093as_test_x='test -x'
37094as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000037095
37096# Sed expression to map a string onto a valid CPP name.
37097as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37098
37099# Sed expression to map a string onto a valid variable name.
37100as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37101
37102
37103exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000037104## ----------------------------------- ##
37105## Main body of $CONFIG_STATUS script. ##
37106## ----------------------------------- ##
37107_ASEOF
37108test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037109
cristy8b350f62009-11-15 23:12:43 +000037110cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37111# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000037112# report actual input values of CONFIG_FILES etc. instead of their
37113# values after options handling.
37114ac_log="
cristy29eb34e2011-10-16 00:46:08 +000037115This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000037116generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000037117
37118 CONFIG_FILES = $CONFIG_FILES
37119 CONFIG_HEADERS = $CONFIG_HEADERS
37120 CONFIG_LINKS = $CONFIG_LINKS
37121 CONFIG_COMMANDS = $CONFIG_COMMANDS
37122 $ $0 $@
37123
37124on `(hostname || uname -n) 2>/dev/null | sed 1q`
37125"
37126
37127_ACEOF
37128
37129case $ac_config_files in *"
37130"*) set x $ac_config_files; shift; ac_config_files=$*;;
37131esac
37132
37133case $ac_config_headers in *"
37134"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37135esac
37136
37137
37138cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37139# Files that config.status was made for.
37140config_files="$ac_config_files"
37141config_headers="$ac_config_headers"
37142config_commands="$ac_config_commands"
37143
37144_ACEOF
37145
37146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37147ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000037148\`$as_me' instantiates files and other configuration actions
37149from templates according to the current configuration. Unless the files
37150and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000037151
cristy8b350f62009-11-15 23:12:43 +000037152Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000037153
37154 -h, --help print this help, then exit
37155 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000037156 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000037157 -q, --quiet, --silent
37158 do not print progress messages
37159 -d, --debug don't remove temporary files
37160 --recheck update $as_me by reconfiguring in the same conditions
37161 --file=FILE[:TEMPLATE]
37162 instantiate the configuration file FILE
37163 --header=FILE[:TEMPLATE]
37164 instantiate the configuration header FILE
37165
37166Configuration files:
37167$config_files
37168
37169Configuration headers:
37170$config_headers
37171
37172Configuration commands:
37173$config_commands
37174
cristy8b350f62009-11-15 23:12:43 +000037175Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000037176
37177_ACEOF
37178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000037179ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000037180ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000037181ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000037182configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000037183 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000037184
cristy14fefe52012-05-21 00:59:18 +000037185Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000037186This config.status script is free software; the Free Software Foundation
37187gives unlimited permission to copy, distribute and modify it."
37188
37189ac_pwd='$ac_pwd'
37190srcdir='$srcdir'
37191INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000037192MKDIR_P='$MKDIR_P'
37193AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000037194test -n "\$AWK" || AWK=awk
37195_ACEOF
37196
37197cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37198# The default lists apply if the user does not specify any file.
37199ac_need_defaults=:
37200while test $# != 0
37201do
37202 case $1 in
cristyda16f162011-02-19 23:52:17 +000037203 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000037204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37206 ac_shift=:
37207 ;;
cristyda16f162011-02-19 23:52:17 +000037208 --*=)
37209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37210 ac_optarg=
37211 ac_shift=:
37212 ;;
cristy3ed852e2009-09-05 21:47:34 +000037213 *)
37214 ac_option=$1
37215 ac_optarg=$2
37216 ac_shift=shift
37217 ;;
37218 esac
37219
37220 case $ac_option in
37221 # Handling of the options.
37222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37223 ac_cs_recheck=: ;;
37224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37225 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000037226 --config | --confi | --conf | --con | --co | --c )
37227 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000037228 --debug | --debu | --deb | --de | --d | -d )
37229 debug=: ;;
37230 --file | --fil | --fi | --f )
37231 $ac_shift
37232 case $ac_optarg in
37233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000037234 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000037235 esac
cristy8b350f62009-11-15 23:12:43 +000037236 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037237 ac_need_defaults=false;;
37238 --header | --heade | --head | --hea )
37239 $ac_shift
37240 case $ac_optarg in
37241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37242 esac
cristy8b350f62009-11-15 23:12:43 +000037243 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000037244 ac_need_defaults=false;;
37245 --he | --h)
37246 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000037247 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037248Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000037249 --help | --hel | -h )
37250 $as_echo "$ac_cs_usage"; exit ;;
37251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37253 ac_cs_silent=: ;;
37254
37255 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000037256 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000037257Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000037258
cristy8b350f62009-11-15 23:12:43 +000037259 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000037260 ac_need_defaults=false ;;
37261
37262 esac
37263 shift
37264done
37265
37266ac_configure_extra_args=
37267
37268if $ac_cs_silent; then
37269 exec 6>/dev/null
37270 ac_configure_extra_args="$ac_configure_extra_args --silent"
37271fi
37272
37273_ACEOF
37274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37275if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000037276 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000037277 shift
37278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37279 CONFIG_SHELL='$SHELL'
37280 export CONFIG_SHELL
37281 exec "\$@"
37282fi
37283
37284_ACEOF
37285cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37286exec 5>>config.log
37287{
37288 echo
37289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37290## Running $as_me. ##
37291_ASBOX
37292 $as_echo "$ac_log"
37293} >&5
37294
37295_ACEOF
37296cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000037297#
37298# INIT-COMMANDS
37299#
37300PACKAGE="$PACKAGE"
37301AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37302
37303
37304# The HP-UX ksh and POSIX shell print the target directory to stdout
37305# if CDPATH is set.
37306(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37307
37308sed_quote_subst='$sed_quote_subst'
37309double_quote_subst='$double_quote_subst'
37310delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000037311SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37312Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37313GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37314EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37315FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37316SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37317ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37318LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37319macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37320macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37321AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37322DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37323OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37324enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37325enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37326pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37327enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037328shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000037329PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037330host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37331host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37332host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37333build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37334build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37335build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37336NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37337LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37338max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37339ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37340exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37341lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37342lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37343lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037344lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37345lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037346reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37347reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37348deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37349file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037350file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37351want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37352sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037353AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37354AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037355archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037356STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37357RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37358old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37359old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37360old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37361lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37362CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37363CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37364compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37365GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37366lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37367lt_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 -050037368lt_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 +000037369lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37370lt_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 -050037371lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037372nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37373lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037374lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037375objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37376MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37377lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037378lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037379lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037380lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37381lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37382need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037383MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037384DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37385NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37386LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37387OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37388OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37389libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37390shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37391extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37392archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37393enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37394export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37395whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37396compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37397old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37398old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37399archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37400archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37401module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37402module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37403with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37404allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37405no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37406hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037407hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37408hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37409hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37410hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37411hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37412hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37413inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37414link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037415always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37416export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37417exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37418include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37419prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037420postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037421file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37422variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37423need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37424need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37425version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37426runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37427shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37428shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37429libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37430library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37431soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37432install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37433postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37434postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37435finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37436finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37437hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37438sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050037439configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
37440configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037441hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37442enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37443enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37444enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37445old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37446striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37447compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37448predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37449postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37450predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37451postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37452compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37453LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37454reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37455reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37456old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37457compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37458GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37459lt_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 +000037460lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037461lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037462lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37463lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37464archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37465enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37466export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37467whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37468compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37469old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37470old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37471archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37472archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37473module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37474module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37475with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37476allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37477no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37478hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037479hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37480hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37481hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37482hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37483hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37484hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37485inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37486link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037487always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37488export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37489exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37490include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37491prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037492postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037493file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37494hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37495compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37496predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37497postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37498predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37499postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37500compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037501
37502LTCC='$LTCC'
37503LTCFLAGS='$LTCFLAGS'
37504compiler='$compiler_DEFAULT'
37505
cristy0c60a692010-11-04 01:09:47 +000037506# A function that is used when there is no print builtin or printf.
37507func_fallback_echo ()
37508{
37509 eval 'cat <<_LTECHO_EOF
37510\$1
37511_LTECHO_EOF'
37512}
37513
cristy73bd4a52010-10-05 11:24:23 +000037514# Quote evaled strings.
37515for var in SED \
37516GREP \
37517EGREP \
37518FGREP \
cristy0c60a692010-11-04 01:09:47 +000037519SHELL \
37520ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037521LD \
cristy0c60a692010-11-04 01:09:47 +000037522AS \
37523DLLTOOL \
37524OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037525PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037526NM \
37527LN_S \
37528lt_SP2NL \
37529lt_NL2SP \
37530reload_flag \
37531deplibs_check_method \
37532file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037533file_magic_glob \
37534want_nocaseglob \
37535sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037536AR \
37537AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037538archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037539STRIP \
37540RANLIB \
37541CC \
37542CFLAGS \
37543compiler \
37544lt_cv_sys_global_symbol_pipe \
37545lt_cv_sys_global_symbol_to_cdecl \
Cristy15f22012015-11-14 17:51:30 -050037546lt_cv_sys_global_symbol_to_import \
cristy73bd4a52010-10-05 11:24:23 +000037547lt_cv_sys_global_symbol_to_c_name_address \
37548lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Cristy15f22012015-11-14 17:51:30 -050037549lt_cv_nm_interface \
cristyda16f162011-02-19 23:52:17 +000037550nm_file_list_spec \
Cristy15f22012015-11-14 17:51:30 -050037551lt_cv_truncate_bin \
cristy73bd4a52010-10-05 11:24:23 +000037552lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037553lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037554lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037555lt_prog_compiler_static \
37556lt_cv_prog_compiler_c_o \
37557need_locks \
cristyda16f162011-02-19 23:52:17 +000037558MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037559DSYMUTIL \
37560NMEDIT \
37561LIPO \
37562OTOOL \
37563OTOOL64 \
37564shrext_cmds \
37565export_dynamic_flag_spec \
37566whole_archive_flag_spec \
37567compiler_needs_object \
37568with_gnu_ld \
37569allow_undefined_flag \
37570no_undefined_flag \
37571hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037572hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037573exclude_expsyms \
37574include_expsyms \
37575file_list_spec \
37576variables_saved_for_relink \
37577libname_spec \
37578library_names_spec \
37579soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037580install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037581finish_eval \
37582old_striplib \
37583striplib \
37584compiler_lib_search_dirs \
37585predep_objects \
37586postdep_objects \
37587predeps \
37588postdeps \
37589compiler_lib_search_path \
37590LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037591reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037592compiler_CXX \
37593lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037594lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037595lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037596lt_prog_compiler_static_CXX \
37597lt_cv_prog_compiler_c_o_CXX \
37598export_dynamic_flag_spec_CXX \
37599whole_archive_flag_spec_CXX \
37600compiler_needs_object_CXX \
37601with_gnu_ld_CXX \
37602allow_undefined_flag_CXX \
37603no_undefined_flag_CXX \
37604hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037605hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037606exclude_expsyms_CXX \
37607include_expsyms_CXX \
37608file_list_spec_CXX \
37609compiler_lib_search_dirs_CXX \
37610predep_objects_CXX \
37611postdep_objects_CXX \
37612predeps_CXX \
37613postdeps_CXX \
37614compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037615 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037616 *[\\\\\\\`\\"\\\$]*)
Cristy15f22012015-11-14 17:51:30 -050037617 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cristy73bd4a52010-10-05 11:24:23 +000037618 ;;
37619 *)
37620 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37621 ;;
37622 esac
37623done
37624
37625# Double-quote double-evaled strings.
37626for var in reload_cmds \
37627old_postinstall_cmds \
37628old_postuninstall_cmds \
37629old_archive_cmds \
37630extract_expsyms_cmds \
37631old_archive_from_new_cmds \
37632old_archive_from_expsyms_cmds \
37633archive_cmds \
37634archive_expsym_cmds \
37635module_cmds \
37636module_expsym_cmds \
37637export_symbols_cmds \
37638prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037639postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037640postinstall_cmds \
37641postuninstall_cmds \
37642finish_cmds \
37643sys_lib_search_path_spec \
Cristy15f22012015-11-14 17:51:30 -050037644configure_time_dlsearch_path \
37645configure_time_lt_sys_library_path \
cristy0c60a692010-11-04 01:09:47 +000037646reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037647old_archive_cmds_CXX \
37648old_archive_from_new_cmds_CXX \
37649old_archive_from_expsyms_cmds_CXX \
37650archive_cmds_CXX \
37651archive_expsym_cmds_CXX \
37652module_cmds_CXX \
37653module_expsym_cmds_CXX \
37654export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037655prelink_cmds_CXX \
37656postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037657 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037658 *[\\\\\\\`\\"\\\$]*)
Cristy15f22012015-11-14 17:51:30 -050037659 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 +000037660 ;;
37661 *)
37662 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37663 ;;
37664 esac
37665done
37666
cristy73bd4a52010-10-05 11:24:23 +000037667ac_aux_dir='$ac_aux_dir'
cristy73bd4a52010-10-05 11:24:23 +000037668
Cristy15f22012015-11-14 17:51:30 -050037669# See if we are running on zsh, and set the options that allow our
cristy73bd4a52010-10-05 11:24:23 +000037670# commands through without removal of \ escapes INIT.
Cristy15f22012015-11-14 17:51:30 -050037671if test -n "\${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000037672 setopt NO_GLOB_SUBST
37673fi
37674
37675
37676 PACKAGE='$PACKAGE'
37677 VERSION='$VERSION'
cristy73bd4a52010-10-05 11:24:23 +000037678 RM='$RM'
37679 ofile='$ofile'
37680
37681
37682
37683
37684
37685
cristy3ed852e2009-09-05 21:47:34 +000037686_ACEOF
37687
37688cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37689
37690# Handling of arguments.
37691for ac_config_target in $ac_config_targets
37692do
37693 case $ac_config_target in
37694 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000037695 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000037696 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37697 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37698 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37699 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
37700 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
37701 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
37702 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37703 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000037704 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037705 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37706 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37707 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37708 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37709 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037710 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000037711 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000037712 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037713 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37714 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37715 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37716 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37717 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037718 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037719 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037720 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37721 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37722 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037723 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37724 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000037725 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000037726 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000037727 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000037728 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000037729 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
37730 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
37731 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
37732 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000037733 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37734 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37735 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37736 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37737 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37738 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37739 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37740 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37741 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37742 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37743 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37744 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037745 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37746 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037747
cristy98dddb52010-11-04 00:30:15 +000037748 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037749 esac
37750done
37751
37752
37753# If the user did not use the arguments to specify the items to instantiate,
37754# then the envvar interface is used. Set only those that are not.
37755# We use the long form for the default assignment because of an extremely
37756# bizarre bug on SunOS 4.1.3.
37757if $ac_need_defaults; then
37758 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37759 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37760 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37761fi
37762
37763# Have a temporary directory for convenience. Make it in the build tree
37764# simply because there is no reason against having it here, and in addition,
37765# creating and moving files from /tmp can sometimes cause problems.
37766# Hook for its removal unless debugging.
37767# Note that there is a small window in which the directory will not be cleaned:
37768# after its creation but before its name has been assigned to `$tmp'.
37769$debug ||
37770{
cristyda16f162011-02-19 23:52:17 +000037771 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037772 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037773 : "${ac_tmp:=$tmp}"
37774 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037775' 0
cristy8b350f62009-11-15 23:12:43 +000037776 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037777}
37778# Create a (secure) tmp directory for tmp files.
37779
37780{
37781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037782 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037783} ||
37784{
37785 tmp=./conf$$-$RANDOM
37786 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037787} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037788ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037789
37790# Set up the scripts for CONFIG_FILES section.
37791# No need to generate them if there are no CONFIG_FILES.
37792# This happens for instance with `./config.status config.h'.
37793if test -n "$CONFIG_FILES"; then
37794
37795
cristy8b350f62009-11-15 23:12:43 +000037796ac_cr=`echo X | tr X '\015'`
37797# On cygwin, bash can eat \r inside `` if the user requested igncr.
37798# But we know of no other shell where ac_cr would be empty at this
37799# point, so we can use a bashism as a fallback.
37800if test "x$ac_cr" = x; then
37801 eval ac_cr=\$\'\\r\'
37802fi
cristy3ed852e2009-09-05 21:47:34 +000037803ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37804if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037805 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037806else
37807 ac_cs_awk_cr=$ac_cr
37808fi
37809
cristyda16f162011-02-19 23:52:17 +000037810echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037811_ACEOF
37812
37813
37814{
37815 echo "cat >conf$$subs.awk <<_ACEOF" &&
37816 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37817 echo "_ACEOF"
37818} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037819 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37820ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037821ac_delim='%!_!# '
37822for ac_last_try in false false false false false :; do
37823 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037824 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037825
37826 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37827 if test $ac_delim_n = $ac_delim_num; then
37828 break
37829 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037830 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037831 else
37832 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37833 fi
37834done
37835rm -f conf$$subs.sh
37836
37837cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037838cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037839_ACEOF
37840sed -n '
37841h
37842s/^/S["/; s/!.*/"]=/
37843p
37844g
37845s/^[^!]*!//
37846:repl
37847t repl
37848s/'"$ac_delim"'$//
37849t delim
37850:nl
37851h
cristycd4c5312009-11-22 01:19:08 +000037852s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037853t more1
37854s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37855p
37856n
37857b repl
37858:more1
37859s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37860p
37861g
37862s/.\{148\}//
37863t nl
37864:delim
37865h
cristycd4c5312009-11-22 01:19:08 +000037866s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037867t more2
37868s/["\\]/\\&/g; s/^/"/; s/$/"/
37869p
37870b
37871:more2
37872s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37873p
37874g
37875s/.\{148\}//
37876t delim
37877' <conf$$subs.awk | sed '
37878/^[^""]/{
37879 N
37880 s/\n//
37881}
37882' >>$CONFIG_STATUS || ac_write_fail=1
37883rm -f conf$$subs.awk
37884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37885_ACAWK
cristyda16f162011-02-19 23:52:17 +000037886cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037887 for (key in S) S_is_set[key] = 1
37888 FS = ""
37889
37890}
37891{
37892 line = $ 0
37893 nfields = split(line, field, "@")
37894 substed = 0
37895 len = length(field[1])
37896 for (i = 2; i < nfields; i++) {
37897 key = field[i]
37898 keylen = length(key)
37899 if (S_is_set[key]) {
37900 value = S[key]
37901 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37902 len += length(value) + length(field[++i])
37903 substed = 1
37904 } else
37905 len += 1 + keylen
37906 }
37907
37908 print line
37909}
37910
37911_ACAWK
37912_ACEOF
37913cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37914if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37915 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37916else
37917 cat
cristyda16f162011-02-19 23:52:17 +000037918fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037919 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037920_ACEOF
37921
cristy98dddb52010-11-04 00:30:15 +000037922# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37923# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037924# trailing colons and then remove the whole line if VPATH becomes empty
37925# (actually we leave an empty line to preserve line numbers).
37926if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037927 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37928h
37929s///
37930s/^/:/
37931s/[ ]*$/:/
37932s/:\$(srcdir):/:/g
37933s/:\${srcdir}:/:/g
37934s/:@srcdir@:/:/g
37935s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037936s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037937x
37938s/\(=[ ]*\).*/\1/
37939G
37940s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037941s/^[^=]*=[ ]*$//
37942}'
37943fi
37944
37945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37946fi # test -n "$CONFIG_FILES"
37947
37948# Set up the scripts for CONFIG_HEADERS section.
37949# No need to generate them if there are no CONFIG_HEADERS.
37950# This happens for instance with `./config.status Makefile'.
37951if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037952cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037953BEGIN {
37954_ACEOF
37955
37956# Transform confdefs.h into an awk script `defines.awk', embedded as
37957# here-document in config.status, that substitutes the proper values into
37958# config.h.in to produce config.h.
37959
37960# Create a delimiter string that does not exist in confdefs.h, to ease
37961# handling of long lines.
37962ac_delim='%!_!# '
37963for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037964 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37965 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037966 break
37967 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037968 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037969 else
37970 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37971 fi
37972done
37973
37974# For the awk script, D is an array of macro values keyed by name,
37975# likewise P contains macro parameters if any. Preserve backslash
37976# newline sequences.
37977
37978ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37979sed -n '
37980s/.\{148\}/&'"$ac_delim"'/g
37981t rset
37982:rset
37983s/^[ ]*#[ ]*define[ ][ ]*/ /
37984t def
37985d
37986:def
37987s/\\$//
37988t bsnl
37989s/["\\]/\\&/g
37990s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37991D["\1"]=" \3"/p
37992s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37993d
37994:bsnl
37995s/["\\]/\\&/g
37996s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37997D["\1"]=" \3\\\\\\n"\\/p
37998t cont
37999s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38000t cont
38001d
38002:cont
38003n
38004s/.\{148\}/&'"$ac_delim"'/g
38005t clear
38006:clear
38007s/\\$//
38008t bsnlc
38009s/["\\]/\\&/g; s/^/"/; s/$/"/p
38010d
38011:bsnlc
38012s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38013b cont
38014' <confdefs.h | sed '
38015s/'"$ac_delim"'/"\\\
38016"/g' >>$CONFIG_STATUS || ac_write_fail=1
38017
38018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38019 for (key in D) D_is_set[key] = 1
38020 FS = ""
38021}
38022/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38023 line = \$ 0
38024 split(line, arg, " ")
38025 if (arg[1] == "#") {
38026 defundef = arg[2]
38027 mac1 = arg[3]
38028 } else {
38029 defundef = substr(arg[1], 2)
38030 mac1 = arg[2]
38031 }
38032 split(mac1, mac2, "(") #)
38033 macro = mac2[1]
38034 prefix = substr(line, 1, index(line, defundef) - 1)
38035 if (D_is_set[macro]) {
38036 # Preserve the white space surrounding the "#".
38037 print prefix "define", macro P[macro] D[macro]
38038 next
38039 } else {
38040 # Replace #undef with comments. This is necessary, for example,
38041 # in the case of _POSIX_SOURCE, which is predefined and required
38042 # on some systems where configure will not decide to define it.
38043 if (defundef == "undef") {
38044 print "/*", prefix defundef, macro, "*/"
38045 next
38046 }
38047 }
38048}
38049{ print }
38050_ACAWK
38051_ACEOF
38052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000038053 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038054fi # test -n "$CONFIG_HEADERS"
38055
38056
38057eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38058shift
38059for ac_tag
38060do
38061 case $ac_tag in
38062 :[FHLC]) ac_mode=$ac_tag; continue;;
38063 esac
38064 case $ac_mode$ac_tag in
38065 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000038066 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038067 :[FH]-) ac_tag=-:-;;
38068 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38069 esac
38070 ac_save_IFS=$IFS
38071 IFS=:
38072 set x $ac_tag
38073 IFS=$ac_save_IFS
38074 shift
38075 ac_file=$1
38076 shift
38077
38078 case $ac_mode in
38079 :L) ac_source=$1;;
38080 :[FH])
38081 ac_file_inputs=
38082 for ac_f
38083 do
38084 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000038085 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000038086 *) # Look for the file first in the build tree, then in the source tree
38087 # (if the path is not absolute). The absolute path cannot be DOS-style,
38088 # because $ac_f cannot contain `:'.
38089 test -f "$ac_f" ||
38090 case $ac_f in
38091 [\\/$]*) false;;
38092 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38093 esac ||
cristy98dddb52010-11-04 00:30:15 +000038094 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038095 esac
38096 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000038097 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000038098 done
38099
38100 # Let's still pretend it is `configure' which instantiates (i.e., don't
38101 # use $as_me), people would be surprised to read:
38102 # /* config.h. Generated by config.status. */
38103 configure_input='Generated from '`
38104 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38105 `' by configure.'
38106 if test x"$ac_file" != x-; then
38107 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000038108 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000038109$as_echo "$as_me: creating $ac_file" >&6;}
38110 fi
38111 # Neutralize special characters interpreted by sed in replacement strings.
38112 case $configure_input in #(
38113 *\&* | *\|* | *\\* )
38114 ac_sed_conf_input=`$as_echo "$configure_input" |
38115 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38116 *) ac_sed_conf_input=$configure_input;;
38117 esac
38118
38119 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000038120 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000038121 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000038122 esac
38123 ;;
38124 esac
38125
38126 ac_dir=`$as_dirname -- "$ac_file" ||
38127$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38128 X"$ac_file" : 'X\(//\)[^/]' \| \
38129 X"$ac_file" : 'X\(//\)$' \| \
38130 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38131$as_echo X"$ac_file" |
38132 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38133 s//\1/
38134 q
38135 }
38136 /^X\(\/\/\)[^/].*/{
38137 s//\1/
38138 q
38139 }
38140 /^X\(\/\/\)$/{
38141 s//\1/
38142 q
38143 }
38144 /^X\(\/\).*/{
38145 s//\1/
38146 q
38147 }
38148 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000038149 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038150 ac_builddir=.
38151
38152case "$ac_dir" in
38153.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38154*)
38155 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38156 # A ".." for each directory in $ac_dir_suffix.
38157 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38158 case $ac_top_builddir_sub in
38159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38161 esac ;;
38162esac
38163ac_abs_top_builddir=$ac_pwd
38164ac_abs_builddir=$ac_pwd$ac_dir_suffix
38165# for backward compatibility:
38166ac_top_builddir=$ac_top_build_prefix
38167
38168case $srcdir in
38169 .) # We are building in place.
38170 ac_srcdir=.
38171 ac_top_srcdir=$ac_top_builddir_sub
38172 ac_abs_top_srcdir=$ac_pwd ;;
38173 [\\/]* | ?:[\\/]* ) # Absolute name.
38174 ac_srcdir=$srcdir$ac_dir_suffix;
38175 ac_top_srcdir=$srcdir
38176 ac_abs_top_srcdir=$srcdir ;;
38177 *) # Relative name.
38178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38179 ac_top_srcdir=$ac_top_build_prefix$srcdir
38180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38181esac
38182ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38183
38184
38185 case $ac_mode in
38186 :F)
38187 #
38188 # CONFIG_FILE
38189 #
38190
38191 case $INSTALL in
38192 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38193 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38194 esac
cristy73bd4a52010-10-05 11:24:23 +000038195 ac_MKDIR_P=$MKDIR_P
38196 case $MKDIR_P in
38197 [\\/$]* | ?:[\\/]* ) ;;
38198 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38199 esac
cristy3ed852e2009-09-05 21:47:34 +000038200_ACEOF
38201
38202cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38203# If the template does not know about datarootdir, expand it.
38204# FIXME: This hack should be removed a few years after 2.60.
38205ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000038206ac_sed_dataroot='
38207/datarootdir/ {
38208 p
38209 q
38210}
38211/@datadir@/p
38212/@docdir@/p
38213/@infodir@/p
38214/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000038215/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000038216case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38217*datarootdir*) ac_datarootdir_seen=yes;;
38218*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000038219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000038220$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38221_ACEOF
38222cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38223 ac_datarootdir_hack='
38224 s&@datadir@&$datadir&g
38225 s&@docdir@&$docdir&g
38226 s&@infodir@&$infodir&g
38227 s&@localedir@&$localedir&g
38228 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000038229 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000038230esac
38231_ACEOF
38232
38233# Neutralize VPATH when `$srcdir' = `.'.
38234# Shell code in configure.ac might set extrasub.
38235# FIXME: do we really want to maintain this feature?
38236cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38237ac_sed_extra="$ac_vpsub
38238$extrasub
38239_ACEOF
38240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38241:t
38242/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38243s|@configure_input@|$ac_sed_conf_input|;t t
38244s&@top_builddir@&$ac_top_builddir_sub&;t t
38245s&@top_build_prefix@&$ac_top_build_prefix&;t t
38246s&@srcdir@&$ac_srcdir&;t t
38247s&@abs_srcdir@&$ac_abs_srcdir&;t t
38248s&@top_srcdir@&$ac_top_srcdir&;t t
38249s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38250s&@builddir@&$ac_builddir&;t t
38251s&@abs_builddir@&$ac_abs_builddir&;t t
38252s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38253s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000038254s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000038255$ac_datarootdir_hack
38256"
cristyda16f162011-02-19 23:52:17 +000038257eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38258 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038259
38260test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000038261 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38262 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38263 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000038264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038265which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000038266$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000038267which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000038268
cristyda16f162011-02-19 23:52:17 +000038269 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000038270 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000038271 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38272 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000038273 esac \
cristy98dddb52010-11-04 00:30:15 +000038274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038275 ;;
38276 :H)
38277 #
38278 # CONFIG_HEADER
38279 #
38280 if test x"$ac_file" != x-; then
38281 {
38282 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038283 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38284 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000038285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038286 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000038287 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000038288$as_echo "$as_me: $ac_file is unchanged" >&6;}
38289 else
38290 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000038291 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000038292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038293 fi
38294 else
38295 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000038296 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000038297 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038298 fi
cristy73bd4a52010-10-05 11:24:23 +000038299# Compute "$ac_file"'s index in $config_headers.
38300_am_arg="$ac_file"
38301_am_stamp_count=1
38302for _am_header in $config_headers :; do
38303 case $_am_header in
38304 $_am_arg | $_am_arg:* )
38305 break ;;
38306 * )
38307 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38308 esac
38309done
38310echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38311$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38312 X"$_am_arg" : 'X\(//\)[^/]' \| \
38313 X"$_am_arg" : 'X\(//\)$' \| \
38314 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38315$as_echo X"$_am_arg" |
38316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38317 s//\1/
38318 q
38319 }
38320 /^X\(\/\/\)[^/].*/{
38321 s//\1/
38322 q
38323 }
38324 /^X\(\/\/\)$/{
38325 s//\1/
38326 q
38327 }
38328 /^X\(\/\).*/{
38329 s//\1/
38330 q
38331 }
38332 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000038333 ;;
38334
cristy8b350f62009-11-15 23:12:43 +000038335 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000038336$as_echo "$as_me: executing $ac_file commands" >&6;}
38337 ;;
38338 esac
38339
38340
38341 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000038342 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000038343ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
38344ac_prefix_conf_PKG=`echo MagickCore`
38345ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
38346ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
38347ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
38348if test ".$ac_prefix_conf_INP" = "."; then
38349 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
38350 case "$ac_file" in
38351 *.h) ac_prefix_conf_INP=$ac_file ;;
38352 *)
38353 esac
38354 test ".$ac_prefix_conf_INP" != "." && break
38355 done
38356fi
38357if test ".$ac_prefix_conf_INP" = "."; then
38358 case "$ac_prefix_conf_OUT" in
38359 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
38360 ;;
38361 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
38362 ;;
38363 *) ac_prefix_conf_INP=config.h
38364 ;;
38365 esac
38366fi
38367if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000038368 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000038369else
38370 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
38371 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
38372 fi fi
38373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
38374$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
38375 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000038376 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
38377 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
38378 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
38379 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
38380 $as_echo "#endif/" >> conftest.prefix
38381 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
38382 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
38383 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000038384 # now executing _script on _DEF input to create _OUT output file
38385 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
38386 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
38387 echo ' ' >>$tmp/pconfig.h
38388 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
38389
38390 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
38391 echo ' ' >>$tmp/pconfig.h
38392 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
38393 echo "#endif" >>$tmp/pconfig.h
38394 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
38395 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
38396$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
38397 else
38398 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
38399$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38400 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
38401 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
38402 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
38403$as_echo X"$ac_prefix_conf_OUT" |
38404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38405 s//\1/
38406 q
38407 }
38408 /^X\(\/\/\)[^/].*/{
38409 s//\1/
38410 q
38411 }
38412 /^X\(\/\/\)$/{
38413 s//\1/
38414 q
38415 }
38416 /^X\(\/\).*/{
38417 s//\1/
38418 q
38419 }
38420 s/.*/./; q'`
38421 as_dir="$ac_dir"; as_fn_mkdir_p
38422 rm -f "$ac_prefix_conf_OUT"
38423 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
38424 fi
cristy73bd4a52010-10-05 11:24:23 +000038425 else
cristy98dddb52010-11-04 00:30:15 +000038426 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 +000038427 fi
38428 rm -f conftest.*
38429fi
38430 ;;
38431 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000038432 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000038433 # are listed without --file. Let's play safe and only enable the eval
38434 # if we detect the quoting.
38435 case $CONFIG_FILES in
38436 *\'*) eval set x "$CONFIG_FILES" ;;
38437 *) set x $CONFIG_FILES ;;
38438 esac
38439 shift
38440 for mf
38441 do
38442 # Strip MF so we end up with the name of the file.
38443 mf=`echo "$mf" | sed -e 's/:.*$//'`
38444 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000038445 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000038446 # some people rename them; so instead we look at the file content.
38447 # Grep'ing the first line is not enough: some people post-process
38448 # each Makefile.in and add a new line on top of each file to say so.
38449 # Grep'ing the whole file is not good either: AIX grep has a line
38450 # limit of 2048, but all sed's we know have understand at least 4000.
38451 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38452 dirpart=`$as_dirname -- "$mf" ||
38453$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38454 X"$mf" : 'X\(//\)[^/]' \| \
38455 X"$mf" : 'X\(//\)$' \| \
38456 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38457$as_echo X"$mf" |
38458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38459 s//\1/
38460 q
38461 }
38462 /^X\(\/\/\)[^/].*/{
38463 s//\1/
38464 q
38465 }
38466 /^X\(\/\/\)$/{
38467 s//\1/
38468 q
38469 }
38470 /^X\(\/\).*/{
38471 s//\1/
38472 q
38473 }
38474 s/.*/./; q'`
38475 else
38476 continue
38477 fi
38478 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038479 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038480 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38481 test -z "$DEPDIR" && continue
38482 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000038483 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000038484 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038485 # Find all dependency output files, they are included files with
38486 # $(DEPDIR) in their names. We invoke sed twice because it is the
38487 # simplest approach to changing $(DEPDIR) to its actual value in the
38488 # expansion.
38489 for file in `sed -n "
38490 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038491 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038492 # Make sure the directory exists.
38493 test -f "$dirpart/$file" && continue
38494 fdir=`$as_dirname -- "$file" ||
38495$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38496 X"$file" : 'X\(//\)[^/]' \| \
38497 X"$file" : 'X\(//\)$' \| \
38498 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38499$as_echo X"$file" |
38500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38501 s//\1/
38502 q
38503 }
38504 /^X\(\/\/\)[^/].*/{
38505 s//\1/
38506 q
38507 }
38508 /^X\(\/\/\)$/{
38509 s//\1/
38510 q
38511 }
38512 /^X\(\/\).*/{
38513 s//\1/
38514 q
38515 }
38516 s/.*/./; q'`
38517 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38518 # echo "creating $dirpart/$file"
38519 echo '# dummy' > "$dirpart/$file"
38520 done
38521 done
38522}
38523 ;;
38524 "libtool":C)
38525
Cristy15f22012015-11-14 17:51:30 -050038526 # See if we are running on zsh, and set the options that allow our
cristy73bd4a52010-10-05 11:24:23 +000038527 # commands through without removal of \ escapes.
Cristy15f22012015-11-14 17:51:30 -050038528 if test -n "${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000038529 setopt NO_GLOB_SUBST
38530 fi
38531
Cristy15f22012015-11-14 17:51:30 -050038532 cfgfile=${ofile}T
cristy73bd4a52010-10-05 11:24:23 +000038533 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38534 $RM "$cfgfile"
38535
38536 cat <<_LT_EOF >> "$cfgfile"
38537#! $SHELL
Cristy15f22012015-11-14 17:51:30 -050038538# Generated automatically by $as_me ($PACKAGE) $VERSION
cristy73bd4a52010-10-05 11:24:23 +000038539# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38540# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Cristy15f22012015-11-14 17:51:30 -050038541
38542# Provide generalized library-building support services.
38543# Written by Gordon Matzigkeit, 1996
38544
38545# Copyright (C) 2014 Free Software Foundation, Inc.
38546# This is free software; see the source for copying conditions. There is NO
38547# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
38548
38549# GNU Libtool is free software; you can redistribute it and/or modify
38550# it under the terms of the GNU General Public License as published by
38551# the Free Software Foundation; either version 2 of of the License, or
38552# (at your option) any later version.
cristy73bd4a52010-10-05 11:24:23 +000038553#
Cristy15f22012015-11-14 17:51:30 -050038554# As a special exception to the GNU General Public License, if you
38555# distribute this file as part of a program or library that is built
38556# using GNU Libtool, you may include this file under the same
38557# distribution terms that you use for the rest of that program.
cristy73bd4a52010-10-05 11:24:23 +000038558#
Cristy15f22012015-11-14 17:51:30 -050038559# GNU Libtool is distributed in the hope that it will be useful, but
38560# WITHOUT ANY WARRANTY; without even the implied warranty of
cristy73bd4a52010-10-05 11:24:23 +000038561# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38562# GNU General Public License for more details.
38563#
38564# You should have received a copy of the GNU General Public License
Cristy15f22012015-11-14 17:51:30 -050038565# along with this program. If not, see <http://www.gnu.org/licenses/>.
cristy73bd4a52010-10-05 11:24:23 +000038566
38567
38568# The names of the tagged configurations supported by this script.
Cristy15f22012015-11-14 17:51:30 -050038569available_tags='CXX '
38570
38571# Configured defaults for sys_lib_dlsearch_path munging.
38572: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
cristy73bd4a52010-10-05 11:24:23 +000038573
38574# ### BEGIN LIBTOOL CONFIG
38575
38576# A sed program that does not truncate output.
38577SED=$lt_SED
38578
38579# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38580Xsed="\$SED -e 1s/^X//"
38581
38582# A grep program that handles long lines.
38583GREP=$lt_GREP
38584
38585# An ERE matcher.
38586EGREP=$lt_EGREP
38587
38588# A literal string matcher.
38589FGREP=$lt_FGREP
38590
cristy0c60a692010-11-04 01:09:47 +000038591# Shell to use when invoking shell scripts.
38592SHELL=$lt_SHELL
38593
38594# An echo program that protects backslashes.
38595ECHO=$lt_ECHO
38596
cristy73bd4a52010-10-05 11:24:23 +000038597# Which release of libtool.m4 was used?
38598macro_version=$macro_version
38599macro_revision=$macro_revision
38600
38601# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038602AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038603
38604# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038605DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038606
38607# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038608OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038609
38610# Whether or not to build shared libraries.
38611build_libtool_libs=$enable_shared
38612
38613# Whether or not to build static libraries.
38614build_old_libs=$enable_static
38615
38616# What type of objects to build.
38617pic_mode=$pic_mode
38618
38619# Whether or not to optimize for fast installation.
38620fast_install=$enable_fast_install
38621
Cristy15f22012015-11-14 17:51:30 -050038622# Shared archive member basename,for filename based shared library versioning on AIX.
38623shared_archive_member_spec=$shared_archive_member_spec
38624
cristy99bd5232011-12-07 14:38:20 +000038625# The PATH separator for the build system.
38626PATH_SEPARATOR=$lt_PATH_SEPARATOR
38627
cristy73bd4a52010-10-05 11:24:23 +000038628# The host system.
38629host_alias=$host_alias
38630host=$host
38631host_os=$host_os
38632
38633# The build system.
38634build_alias=$build_alias
38635build=$build
38636build_os=$build_os
38637
38638# A BSD- or MS-compatible name lister.
38639NM=$lt_NM
38640
38641# Whether we need soft or hard links.
38642LN_S=$lt_LN_S
38643
38644# What is the maximum length of a command?
38645max_cmd_len=$max_cmd_len
38646
38647# Object file suffix (normally "o").
38648objext=$ac_objext
38649
38650# Executable file suffix (normally "").
38651exeext=$exeext
38652
38653# whether the shell understands "unset".
38654lt_unset=$lt_unset
38655
38656# turn spaces into newlines.
38657SP2NL=$lt_lt_SP2NL
38658
38659# turn newlines into spaces.
38660NL2SP=$lt_lt_NL2SP
38661
cristyda16f162011-02-19 23:52:17 +000038662# convert \$build file names to \$host format.
38663to_host_file_cmd=$lt_cv_to_host_file_cmd
38664
38665# convert \$build files to toolchain format.
38666to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38667
cristy73bd4a52010-10-05 11:24:23 +000038668# Method to check whether dependent libraries are shared objects.
38669deplibs_check_method=$lt_deplibs_check_method
38670
cristyda16f162011-02-19 23:52:17 +000038671# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038672file_magic_cmd=$lt_file_magic_cmd
38673
cristyda16f162011-02-19 23:52:17 +000038674# How to find potential files when deplibs_check_method = "file_magic".
38675file_magic_glob=$lt_file_magic_glob
38676
38677# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38678want_nocaseglob=$lt_want_nocaseglob
38679
38680# Command to associate shared and link libraries.
38681sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38682
cristy73bd4a52010-10-05 11:24:23 +000038683# The archiver.
38684AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038685
38686# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038687AR_FLAGS=$lt_AR_FLAGS
38688
cristyda16f162011-02-19 23:52:17 +000038689# How to feed a file listing to the archiver.
38690archiver_list_spec=$lt_archiver_list_spec
38691
cristy73bd4a52010-10-05 11:24:23 +000038692# A symbol stripping program.
38693STRIP=$lt_STRIP
38694
38695# Commands used to install an old-style archive.
38696RANLIB=$lt_RANLIB
38697old_postinstall_cmds=$lt_old_postinstall_cmds
38698old_postuninstall_cmds=$lt_old_postuninstall_cmds
38699
cristy0c60a692010-11-04 01:09:47 +000038700# Whether to use a lock for old archive extraction.
38701lock_old_archive_extraction=$lock_old_archive_extraction
38702
cristy73bd4a52010-10-05 11:24:23 +000038703# A C compiler.
38704LTCC=$lt_CC
38705
38706# LTCC compiler flags.
38707LTCFLAGS=$lt_CFLAGS
38708
38709# Take the output of nm and produce a listing of raw symbols and C names.
38710global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38711
38712# Transform the output of nm in a proper C declaration.
38713global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38714
Cristy15f22012015-11-14 17:51:30 -050038715# Transform the output of nm into a list of symbols to manually relocate.
38716global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38717
cristy73bd4a52010-10-05 11:24:23 +000038718# Transform the output of nm in a C name address pair.
38719global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38720
38721# Transform the output of nm in a C name address pair when lib prefix is needed.
38722global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38723
Cristy15f22012015-11-14 17:51:30 -050038724# The name lister interface.
38725nm_interface=$lt_lt_cv_nm_interface
38726
cristyda16f162011-02-19 23:52:17 +000038727# Specify filename containing input files for \$NM.
38728nm_file_list_spec=$lt_nm_file_list_spec
38729
Cristy15f22012015-11-14 17:51:30 -050038730# The root where to search for dependent libraries,and where our libraries should be installed.
cristyda16f162011-02-19 23:52:17 +000038731lt_sysroot=$lt_sysroot
38732
Cristy15f22012015-11-14 17:51:30 -050038733# Command to truncate a binary pipe.
38734lt_truncate_bin=$lt_lt_cv_truncate_bin
38735
cristy73bd4a52010-10-05 11:24:23 +000038736# The name of the directory that contains temporary libtool files.
38737objdir=$objdir
38738
cristy73bd4a52010-10-05 11:24:23 +000038739# Used to examine libraries when file_magic_cmd begins with "file".
38740MAGIC_CMD=$MAGIC_CMD
38741
38742# Must we lock files when doing compilation?
38743need_locks=$lt_need_locks
38744
cristyda16f162011-02-19 23:52:17 +000038745# Manifest tool.
38746MANIFEST_TOOL=$lt_MANIFEST_TOOL
38747
cristy73bd4a52010-10-05 11:24:23 +000038748# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38749DSYMUTIL=$lt_DSYMUTIL
38750
38751# Tool to change global to local symbols on Mac OS X.
38752NMEDIT=$lt_NMEDIT
38753
38754# Tool to manipulate fat objects and archives on Mac OS X.
38755LIPO=$lt_LIPO
38756
38757# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38758OTOOL=$lt_OTOOL
38759
38760# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38761OTOOL64=$lt_OTOOL64
38762
38763# Old archive suffix (normally "a").
38764libext=$libext
38765
38766# Shared library suffix (normally ".so").
38767shrext_cmds=$lt_shrext_cmds
38768
38769# The commands to extract the exported symbol list from a shared archive.
38770extract_expsyms_cmds=$lt_extract_expsyms_cmds
38771
38772# Variables whose values should be saved in libtool wrapper scripts and
38773# restored at link time.
38774variables_saved_for_relink=$lt_variables_saved_for_relink
38775
38776# Do we need the "lib" prefix for modules?
38777need_lib_prefix=$need_lib_prefix
38778
38779# Do we need a version for libraries?
38780need_version=$need_version
38781
38782# Library versioning type.
38783version_type=$version_type
38784
38785# Shared library runtime path variable.
38786runpath_var=$runpath_var
38787
38788# Shared library path variable.
38789shlibpath_var=$shlibpath_var
38790
38791# Is shlibpath searched before the hard-coded library search path?
38792shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38793
38794# Format of library name prefix.
38795libname_spec=$lt_libname_spec
38796
38797# List of archive names. First name is the real one, the rest are links.
38798# The last name is the one that the linker finds with -lNAME
38799library_names_spec=$lt_library_names_spec
38800
38801# The coded name of the library, if different from the real name.
38802soname_spec=$lt_soname_spec
38803
cristy0c60a692010-11-04 01:09:47 +000038804# Permission mode override for installation of shared libraries.
38805install_override_mode=$lt_install_override_mode
38806
cristy73bd4a52010-10-05 11:24:23 +000038807# Command to use after installation of a shared archive.
38808postinstall_cmds=$lt_postinstall_cmds
38809
38810# Command to use after uninstallation of a shared archive.
38811postuninstall_cmds=$lt_postuninstall_cmds
38812
38813# Commands used to finish a libtool library installation in a directory.
38814finish_cmds=$lt_finish_cmds
38815
38816# As "finish_cmds", except a single script fragment to be evaled but
38817# not shown.
38818finish_eval=$lt_finish_eval
38819
38820# Whether we should hardcode library paths into libraries.
38821hardcode_into_libs=$hardcode_into_libs
38822
38823# Compile-time system search path for libraries.
38824sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38825
Cristy15f22012015-11-14 17:51:30 -050038826# Detected run-time system search path for libraries.
38827sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38828
38829# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38830configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
cristy73bd4a52010-10-05 11:24:23 +000038831
38832# Whether dlopen is supported.
38833dlopen_support=$enable_dlopen
38834
38835# Whether dlopen of programs is supported.
38836dlopen_self=$enable_dlopen_self
38837
38838# Whether dlopen of statically linked programs is supported.
38839dlopen_self_static=$enable_dlopen_self_static
38840
38841# Commands to strip libraries.
38842old_striplib=$lt_old_striplib
38843striplib=$lt_striplib
38844
38845
38846# The linker used to build libraries.
38847LD=$lt_LD
38848
cristy0c60a692010-11-04 01:09:47 +000038849# How to create reloadable object files.
38850reload_flag=$lt_reload_flag
38851reload_cmds=$lt_reload_cmds
38852
cristy73bd4a52010-10-05 11:24:23 +000038853# Commands used to build an old-style archive.
38854old_archive_cmds=$lt_old_archive_cmds
38855
38856# A language specific compiler.
38857CC=$lt_compiler
38858
38859# Is the compiler the GNU compiler?
38860with_gcc=$GCC
38861
38862# Compiler flag to turn off builtin functions.
38863no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38864
cristy73bd4a52010-10-05 11:24:23 +000038865# Additional compiler flags for building library objects.
38866pic_flag=$lt_lt_prog_compiler_pic
38867
cristyda16f162011-02-19 23:52:17 +000038868# How to pass a linker flag through the compiler.
38869wl=$lt_lt_prog_compiler_wl
38870
cristy73bd4a52010-10-05 11:24:23 +000038871# Compiler flag to prevent dynamic linking.
38872link_static_flag=$lt_lt_prog_compiler_static
38873
38874# Does compiler simultaneously support -c and -o options?
38875compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38876
38877# Whether or not to add -lc for building shared libraries.
38878build_libtool_need_lc=$archive_cmds_need_lc
38879
38880# Whether or not to disallow shared libs when runtime libs are static.
38881allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38882
38883# Compiler flag to allow reflexive dlopens.
38884export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38885
38886# Compiler flag to generate shared objects directly from archives.
38887whole_archive_flag_spec=$lt_whole_archive_flag_spec
38888
38889# Whether the compiler copes with passing no objects directly.
38890compiler_needs_object=$lt_compiler_needs_object
38891
38892# Create an old-style archive from a shared archive.
38893old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38894
38895# Create a temporary old-style archive to link instead of a shared archive.
38896old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38897
38898# Commands used to build a shared archive.
38899archive_cmds=$lt_archive_cmds
38900archive_expsym_cmds=$lt_archive_expsym_cmds
38901
38902# Commands used to build a loadable module if different from building
38903# a shared archive.
38904module_cmds=$lt_module_cmds
38905module_expsym_cmds=$lt_module_expsym_cmds
38906
38907# Whether we are building with GNU ld or not.
38908with_gnu_ld=$lt_with_gnu_ld
38909
38910# Flag that allows shared libraries with undefined symbols to be built.
38911allow_undefined_flag=$lt_allow_undefined_flag
38912
38913# Flag that enforces no undefined symbols.
38914no_undefined_flag=$lt_no_undefined_flag
38915
38916# Flag to hardcode \$libdir into a binary during linking.
38917# This must work even if \$libdir does not exist
38918hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38919
cristy73bd4a52010-10-05 11:24:23 +000038920# Whether we need a single "-rpath" flag with a separated argument.
38921hardcode_libdir_separator=$lt_hardcode_libdir_separator
38922
Cristy15f22012015-11-14 17:51:30 -050038923# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000038924# DIR into the resulting binary.
38925hardcode_direct=$hardcode_direct
38926
Cristy15f22012015-11-14 17:51:30 -050038927# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000038928# DIR into the resulting binary and the resulting library dependency is
Cristy15f22012015-11-14 17:51:30 -050038929# "absolute",i.e impossible to change by setting \$shlibpath_var if the
cristy73bd4a52010-10-05 11:24:23 +000038930# library is relocated.
38931hardcode_direct_absolute=$hardcode_direct_absolute
38932
38933# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38934# into the resulting binary.
38935hardcode_minus_L=$hardcode_minus_L
38936
38937# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38938# into the resulting binary.
38939hardcode_shlibpath_var=$hardcode_shlibpath_var
38940
38941# Set to "yes" if building a shared library automatically hardcodes DIR
38942# into the library and all subsequent libraries and executables linked
38943# against it.
38944hardcode_automatic=$hardcode_automatic
38945
38946# Set to yes if linker adds runtime paths of dependent libraries
38947# to runtime path list.
38948inherit_rpath=$inherit_rpath
38949
38950# Whether libtool must link a program against all its dependency libraries.
38951link_all_deplibs=$link_all_deplibs
38952
cristy73bd4a52010-10-05 11:24:23 +000038953# Set to "yes" if exported symbols are required.
38954always_export_symbols=$always_export_symbols
38955
38956# The commands to list exported symbols.
38957export_symbols_cmds=$lt_export_symbols_cmds
38958
38959# Symbols that should not be listed in the preloaded symbols.
38960exclude_expsyms=$lt_exclude_expsyms
38961
38962# Symbols that must always be exported.
38963include_expsyms=$lt_include_expsyms
38964
38965# Commands necessary for linking programs (against libraries) with templates.
38966prelink_cmds=$lt_prelink_cmds
38967
cristyda16f162011-02-19 23:52:17 +000038968# Commands necessary for finishing linking programs.
38969postlink_cmds=$lt_postlink_cmds
38970
cristy73bd4a52010-10-05 11:24:23 +000038971# Specify filename containing input files.
38972file_list_spec=$lt_file_list_spec
38973
38974# How to hardcode a shared library path into an executable.
38975hardcode_action=$hardcode_action
38976
38977# The directories searched by this compiler when creating a shared library.
38978compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38979
38980# Dependencies to place before and after the objects being linked to
38981# create a shared library.
38982predep_objects=$lt_predep_objects
38983postdep_objects=$lt_postdep_objects
38984predeps=$lt_predeps
38985postdeps=$lt_postdeps
38986
38987# The library search path used internally by the compiler when linking
38988# a shared library.
38989compiler_lib_search_path=$lt_compiler_lib_search_path
38990
38991# ### END LIBTOOL CONFIG
38992
38993_LT_EOF
38994
Cristy15f22012015-11-14 17:51:30 -050038995 cat <<'_LT_EOF' >> "$cfgfile"
38996
38997# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38998
38999# func_munge_path_list VARIABLE PATH
39000# -----------------------------------
39001# VARIABLE is name of variable containing _space_ separated list of
39002# directories to be munged by the contents of PATH, which is string
39003# having a format:
39004# "DIR[:DIR]:"
39005# string "DIR[ DIR]" will be prepended to VARIABLE
39006# ":DIR[:DIR]"
39007# string "DIR[ DIR]" will be appended to VARIABLE
39008# "DIRP[:DIRP]::[DIRA:]DIRA"
39009# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
39010# "DIRA[ DIRA]" will be appended to VARIABLE
39011# "DIR[:DIR]"
39012# VARIABLE will be replaced by "DIR[ DIR]"
39013func_munge_path_list ()
39014{
39015 case x$2 in
39016 x)
39017 ;;
39018 *:)
39019 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
39020 ;;
39021 x:*)
39022 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
39023 ;;
39024 *::*)
39025 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
39026 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
39027 ;;
39028 *)
39029 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
39030 ;;
39031 esac
39032}
39033
39034
39035# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
39036func_cc_basename ()
39037{
39038 for cc_temp in $*""; do
39039 case $cc_temp in
39040 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39041 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39042 \-*) ;;
39043 *) break;;
39044 esac
39045 done
39046 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39047}
39048
39049
39050# ### END FUNCTIONS SHARED WITH CONFIGURE
39051
39052_LT_EOF
39053
cristy73bd4a52010-10-05 11:24:23 +000039054 case $host_os in
39055 aix3*)
39056 cat <<\_LT_EOF >> "$cfgfile"
39057# AIX sometimes has problems with the GCC collect2 program. For some
39058# reason, if we set the COLLECT_NAMES environment variable, the problems
39059# vanish in a puff of smoke.
Cristy15f22012015-11-14 17:51:30 -050039060if test set != "${COLLECT_NAMES+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000039061 COLLECT_NAMES=
39062 export COLLECT_NAMES
39063fi
39064_LT_EOF
39065 ;;
39066 esac
39067
39068
Cristy15f22012015-11-14 17:51:30 -050039069ltmain=$ac_aux_dir/ltmain.sh
cristy73bd4a52010-10-05 11:24:23 +000039070
39071
39072 # We use sed instead of cat because bash on DJGPP gets confused if
39073 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39074 # text mode, it properly converts lines to CR/LF. This bash problem
39075 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000039076 sed '$q' "$ltmain" >> "$cfgfile" \
39077 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000039078
cristyda16f162011-02-19 23:52:17 +000039079 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000039080 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39081 chmod +x "$ofile"
39082
39083
39084 cat <<_LT_EOF >> "$ofile"
39085
39086# ### BEGIN LIBTOOL TAG CONFIG: CXX
39087
39088# The linker used to build libraries.
39089LD=$lt_LD_CXX
39090
cristy0c60a692010-11-04 01:09:47 +000039091# How to create reloadable object files.
39092reload_flag=$lt_reload_flag_CXX
39093reload_cmds=$lt_reload_cmds_CXX
39094
cristy73bd4a52010-10-05 11:24:23 +000039095# Commands used to build an old-style archive.
39096old_archive_cmds=$lt_old_archive_cmds_CXX
39097
39098# A language specific compiler.
39099CC=$lt_compiler_CXX
39100
39101# Is the compiler the GNU compiler?
39102with_gcc=$GCC_CXX
39103
39104# Compiler flag to turn off builtin functions.
39105no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39106
cristy73bd4a52010-10-05 11:24:23 +000039107# Additional compiler flags for building library objects.
39108pic_flag=$lt_lt_prog_compiler_pic_CXX
39109
cristyda16f162011-02-19 23:52:17 +000039110# How to pass a linker flag through the compiler.
39111wl=$lt_lt_prog_compiler_wl_CXX
39112
cristy73bd4a52010-10-05 11:24:23 +000039113# Compiler flag to prevent dynamic linking.
39114link_static_flag=$lt_lt_prog_compiler_static_CXX
39115
39116# Does compiler simultaneously support -c and -o options?
39117compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39118
39119# Whether or not to add -lc for building shared libraries.
39120build_libtool_need_lc=$archive_cmds_need_lc_CXX
39121
39122# Whether or not to disallow shared libs when runtime libs are static.
39123allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39124
39125# Compiler flag to allow reflexive dlopens.
39126export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39127
39128# Compiler flag to generate shared objects directly from archives.
39129whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39130
39131# Whether the compiler copes with passing no objects directly.
39132compiler_needs_object=$lt_compiler_needs_object_CXX
39133
39134# Create an old-style archive from a shared archive.
39135old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39136
39137# Create a temporary old-style archive to link instead of a shared archive.
39138old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39139
39140# Commands used to build a shared archive.
39141archive_cmds=$lt_archive_cmds_CXX
39142archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39143
39144# Commands used to build a loadable module if different from building
39145# a shared archive.
39146module_cmds=$lt_module_cmds_CXX
39147module_expsym_cmds=$lt_module_expsym_cmds_CXX
39148
39149# Whether we are building with GNU ld or not.
39150with_gnu_ld=$lt_with_gnu_ld_CXX
39151
39152# Flag that allows shared libraries with undefined symbols to be built.
39153allow_undefined_flag=$lt_allow_undefined_flag_CXX
39154
39155# Flag that enforces no undefined symbols.
39156no_undefined_flag=$lt_no_undefined_flag_CXX
39157
39158# Flag to hardcode \$libdir into a binary during linking.
39159# This must work even if \$libdir does not exist
39160hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39161
cristy73bd4a52010-10-05 11:24:23 +000039162# Whether we need a single "-rpath" flag with a separated argument.
39163hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39164
Cristy15f22012015-11-14 17:51:30 -050039165# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000039166# DIR into the resulting binary.
39167hardcode_direct=$hardcode_direct_CXX
39168
Cristy15f22012015-11-14 17:51:30 -050039169# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000039170# DIR into the resulting binary and the resulting library dependency is
Cristy15f22012015-11-14 17:51:30 -050039171# "absolute",i.e impossible to change by setting \$shlibpath_var if the
cristy73bd4a52010-10-05 11:24:23 +000039172# library is relocated.
39173hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39174
39175# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39176# into the resulting binary.
39177hardcode_minus_L=$hardcode_minus_L_CXX
39178
39179# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39180# into the resulting binary.
39181hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39182
39183# Set to "yes" if building a shared library automatically hardcodes DIR
39184# into the library and all subsequent libraries and executables linked
39185# against it.
39186hardcode_automatic=$hardcode_automatic_CXX
39187
39188# Set to yes if linker adds runtime paths of dependent libraries
39189# to runtime path list.
39190inherit_rpath=$inherit_rpath_CXX
39191
39192# Whether libtool must link a program against all its dependency libraries.
39193link_all_deplibs=$link_all_deplibs_CXX
39194
cristy73bd4a52010-10-05 11:24:23 +000039195# Set to "yes" if exported symbols are required.
39196always_export_symbols=$always_export_symbols_CXX
39197
39198# The commands to list exported symbols.
39199export_symbols_cmds=$lt_export_symbols_cmds_CXX
39200
39201# Symbols that should not be listed in the preloaded symbols.
39202exclude_expsyms=$lt_exclude_expsyms_CXX
39203
39204# Symbols that must always be exported.
39205include_expsyms=$lt_include_expsyms_CXX
39206
39207# Commands necessary for linking programs (against libraries) with templates.
39208prelink_cmds=$lt_prelink_cmds_CXX
39209
cristyda16f162011-02-19 23:52:17 +000039210# Commands necessary for finishing linking programs.
39211postlink_cmds=$lt_postlink_cmds_CXX
39212
cristy73bd4a52010-10-05 11:24:23 +000039213# Specify filename containing input files.
39214file_list_spec=$lt_file_list_spec_CXX
39215
39216# How to hardcode a shared library path into an executable.
39217hardcode_action=$hardcode_action_CXX
39218
39219# The directories searched by this compiler when creating a shared library.
39220compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39221
39222# Dependencies to place before and after the objects being linked to
39223# create a shared library.
39224predep_objects=$lt_predep_objects_CXX
39225postdep_objects=$lt_postdep_objects_CXX
39226predeps=$lt_predeps_CXX
39227postdeps=$lt_postdeps_CXX
39228
39229# The library search path used internally by the compiler when linking
39230# a shared library.
39231compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39232
39233# ### END LIBTOOL TAG CONFIG: CXX
39234_LT_EOF
39235
39236 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000039237 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000039238 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000039239 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000039240 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39241 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39242
39243 esac
39244done # for ac_tag
39245
39246
cristy8b350f62009-11-15 23:12:43 +000039247as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000039248_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000039249ac_clean_files=$ac_clean_files_save
39250
39251test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000039252 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039253
39254
39255# configure is writing to config.log, and then calls config.status.
39256# config.status does its own redirection, appending to config.log.
39257# Unfortunately, on DOS this fails, as config.log is still kept open
39258# by configure, so config.status won't be able to write to it; its
39259# output is simply discarded. So we exec the FD to /dev/null,
39260# effectively closing config.log, so it can be properly (re)opened and
39261# appended to by config.status. When coming back to configure, we
39262# need to make the FD available again.
39263if test "$no_create" != yes; then
39264 ac_cs_success=:
39265 ac_config_status_args=
39266 test "$silent" = yes &&
39267 ac_config_status_args="$ac_config_status_args --quiet"
39268 exec 5>/dev/null
39269 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39270 exec 5>>config.log
39271 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39272 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000039273 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000039274fi
39275if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000039276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000039277$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39278fi
39279
39280
cristy9af1cbf2014-12-28 22:03:09 +000039281# ==============================================================================
39282# ImageMagick Configuration
39283# ==============================================================================
39284{ $as_echo "$as_me:${as_lineno-$LINENO}:
39285==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039286ImageMagick is configured as follows. Please verify that this configuration
39287matches your expectations.
39288
cristy9af1cbf2014-12-28 22:03:09 +000039289 Host system type: $host
39290 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039291
Cristy15f22012015-11-14 17:51:30 -050039292 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039293 ------------------------------------------------------------------------------
39294 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39295 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39296 Module support --with-modules=$build_modules $build_modules
39297 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39298 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39299 High Dynamic Range Imagery
39300 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039301
Cristy15f22012015-11-14 17:51:30 -050039302 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039303
cristy9af1cbf2014-12-28 22:03:09 +000039304 Delegate Library Configuration:
39305 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39306 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39307 DJVU --with-djvu=$with_djvu $have_djvu
39308 DPS --with-dps=$with_dps $have_dps
39309 FFTW --with-fftw=$with_fftw $have_fftw
39310 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000039311 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000039312 FreeType --with-freetype=$with_freetype $have_freetype
39313 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39314 Graphviz --with-gvc=$with_gvc $have_gvc
39315 JBIG --with-jbig=$with_jbig $have_jbig
39316 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000039317 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000039318 LQR --with-lqr=$with_lqr $have_lqr
39319 LTDL --with-ltdl=$with_ltdl $have_ltdl
39320 LZMA --with-lzma=$with_lzma $have_lzma
39321 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39322 OpenEXR --with-openexr=$with_openexr $have_openexr
Cristy15f22012015-11-14 17:51:30 -050039323 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000039324 PANGO --with-pango=$with_pango $have_pango
39325 PERL --with-perl=$with_perl $have_perl
39326 PNG --with-png=$with_png $have_png
39327 RSVG --with-rsvg=$with_rsvg $have_rsvg
39328 TIFF --with-tiff=$with_tiff $have_tiff
39329 WEBP --with-webp=$with_webp $have_webp
39330 WMF --with-wmf=$with_wmf $have_wmf
39331 X11 --with-x=$with_x $have_x
39332 XML --with-xml=$with_xml $have_xml
39333 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039334
cristy9af1cbf2014-12-28 22:03:09 +000039335 Delegate Program Configuration:
39336 GhostPCL None $PCLDelegate ($PCLVersion)
39337 GhostXPS None $XPSDelegate ($XPSVersion)
39338 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039339
cristy9af1cbf2014-12-28 22:03:09 +000039340 Font Configuration:
39341 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39342 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39343 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39344 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039345
cristy9af1cbf2014-12-28 22:03:09 +000039346 X11 Configuration:
39347 X_CFLAGS = $X_CFLAGS
39348 X_PRE_LIBS = $X_PRE_LIBS
39349 X_LIBS = $X_LIBS
39350 X_EXTRA_LIBS = $X_EXTRA_LIBS
39351
39352 Options used to compile and link:
39353 PREFIX = $PREFIX_DIR
39354 EXEC-PREFIX = $EXEC_PREFIX_DIR
39355 VERSION = $PACKAGE_VERSION
39356 CC = $CC
39357 CFLAGS = $CFLAGS
39358 CPPFLAGS = $CPPFLAGS
39359 PCFLAGS = $PCFLAGS
39360 DEFS = $DEFS
39361 LDFLAGS = $LDFLAGS
39362 LIBS = $LIBS
39363 CXX = $CXX
39364 CXXFLAGS = $CXXFLAGS
39365 FEATURES = $MAGICK_FEATURES
39366 DELEGATES = $MAGICK_DELEGATES
39367==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039368" >&5
cristy9af1cbf2014-12-28 22:03:09 +000039369$as_echo "$as_me:
39370==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000039371ImageMagick is configured as follows. Please verify that this configuration
39372matches your expectations.
39373
cristy9af1cbf2014-12-28 22:03:09 +000039374 Host system type: $host
39375 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000039376
Cristy15f22012015-11-14 17:51:30 -050039377 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000039378 ------------------------------------------------------------------------------
39379 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39380 Static libraries --enable-static=$enable_static $libtool_build_static_libs
39381 Module support --with-modules=$build_modules $build_modules
39382 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39383 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39384 High Dynamic Range Imagery
39385 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000039386
Cristy15f22012015-11-14 17:51:30 -050039387 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000039388
cristy9af1cbf2014-12-28 22:03:09 +000039389 Delegate Library Configuration:
39390 BZLIB --with-bzlib=$with_bzlib $have_bzlib
39391 Autotrace --with-autotrace=$with_autotrace $have_autotrace
39392 DJVU --with-djvu=$with_djvu $have_djvu
39393 DPS --with-dps=$with_dps $have_dps
39394 FFTW --with-fftw=$with_fftw $have_fftw
39395 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000039396 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000039397 FreeType --with-freetype=$with_freetype $have_freetype
39398 Ghostscript lib --with-gslib=$with_gslib $have_gslib
39399 Graphviz --with-gvc=$with_gvc $have_gvc
39400 JBIG --with-jbig=$with_jbig $have_jbig
39401 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000039402 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000039403 LQR --with-lqr=$with_lqr $have_lqr
39404 LTDL --with-ltdl=$with_ltdl $have_ltdl
39405 LZMA --with-lzma=$with_lzma $have_lzma
39406 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39407 OpenEXR --with-openexr=$with_openexr $have_openexr
Cristy15f22012015-11-14 17:51:30 -050039408 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000039409 PANGO --with-pango=$with_pango $have_pango
39410 PERL --with-perl=$with_perl $have_perl
39411 PNG --with-png=$with_png $have_png
39412 RSVG --with-rsvg=$with_rsvg $have_rsvg
39413 TIFF --with-tiff=$with_tiff $have_tiff
39414 WEBP --with-webp=$with_webp $have_webp
39415 WMF --with-wmf=$with_wmf $have_wmf
39416 X11 --with-x=$with_x $have_x
39417 XML --with-xml=$with_xml $have_xml
39418 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000039419
cristy9af1cbf2014-12-28 22:03:09 +000039420 Delegate Program Configuration:
39421 GhostPCL None $PCLDelegate ($PCLVersion)
39422 GhostXPS None $XPSDelegate ($XPSVersion)
39423 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000039424
cristy9af1cbf2014-12-28 22:03:09 +000039425 Font Configuration:
39426 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
39427 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
39428 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39429 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039430
cristy9af1cbf2014-12-28 22:03:09 +000039431 X11 Configuration:
39432 X_CFLAGS = $X_CFLAGS
39433 X_PRE_LIBS = $X_PRE_LIBS
39434 X_LIBS = $X_LIBS
39435 X_EXTRA_LIBS = $X_EXTRA_LIBS
39436
39437 Options used to compile and link:
39438 PREFIX = $PREFIX_DIR
39439 EXEC-PREFIX = $EXEC_PREFIX_DIR
39440 VERSION = $PACKAGE_VERSION
39441 CC = $CC
39442 CFLAGS = $CFLAGS
39443 CPPFLAGS = $CPPFLAGS
39444 PCFLAGS = $PCFLAGS
39445 DEFS = $DEFS
39446 LDFLAGS = $LDFLAGS
39447 LIBS = $LIBS
39448 CXX = $CXX
39449 CXXFLAGS = $CXXFLAGS
39450 FEATURES = $MAGICK_FEATURES
39451 DELEGATES = $MAGICK_DELEGATES
39452==============================================================================
39453" >&6;}