blob: 0c27301090e249b860f9d247cde46da6468c3d19 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Cristy814561c2016-07-11 12:42:00 -04003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.2-5.
cristy3ed852e2009-09-05 21:47:34 +00004#
Cristy6720ed72016-02-09 09:27:35 -05005# Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
cristy3ed852e2009-09-05 21:47:34 +00006#
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
Cristy6720ed72016-02-09 09:27:35 -0500278$0: https://github.com/ImageMagick/ImageMagick/issues about
279$0: your system, including any error possibly output before
280$0: this message. Then install a modern shell, or manually
281$0: run the script under such a shell if you do have one."
cristy8b350f62009-11-15 23:12:43 +0000282 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'
Cristy814561c2016-07-11 12:42:00 -0400593PACKAGE_VERSION='7.0.2-5'
594PACKAGE_STRING='ImageMagick 7.0.2-5'
Cristy6720ed72016-02-09 09:27:35 -0500595PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues'
596PACKAGE_URL='http://www.imagemagick.org'
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
cristy3ed852e2009-09-05 21:47:34 +0000692XPSDelegate
Cristydc553c12016-05-09 13:27:06 -0400693WWWDecodeDelegate
cristy86e86092013-08-04 17:43:57 +0000694WebPEncodeDelegate
695WebPDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000696UniconvertorDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000698RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000699RMDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700PSDelegate
cristy3ed852e2009-09-05 21:47:34 +0000701PCLDelegate
702MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000703MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000704MPEGEncodeDelegate
705MPEGDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000706MogrifyDelegate
cristy3ed852e2009-09-05 21:47:34 +0000707LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708LPRDelegate
709LPDelegate
cristy71f53d52013-04-27 13:33:59 +0000710JXREncodeDelegate
711JXRDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712ILBMEncodeDelegate
713ILBMDecodeDelegate
714HTMLDecodeDelegate
715HPGLDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000716GVCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717EditorDelegate
cristy66f238e2014-05-16 12:21:48 +0000718DisplayDelegate
719ConvertDelegate
cristy3ed852e2009-09-05 21:47:34 +0000720DVIDecodeDelegate
cristy66f238e2014-05-16 12:21:48 +0000721DOCDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000722DNGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000723BrowseDelegate
cristy3ed852e2009-09-05 21:47:34 +0000724BlenderDecodeDelegate
Cristy06c41ab2016-04-30 10:23:22 -0400725BPGEncodeDelegate
726BPGDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000727SHAREARCH_PATH
cristy54378032012-12-04 15:52:20 +0000728SHAREARCH_RELATIVE_PATH
729SHAREARCH_DIRNAME
730SHAREARCH_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000731SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000732CONFIGURE_PATH
cristydd17feb2014-03-05 02:06:32 +0000733INSTALL_DOC_FALSE
734INSTALL_DOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000735DOCUMENTATION_PATH
736FILTER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000737FILTER_DIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000738CODER_PATH
cristy01ff9f32012-12-01 18:15:29 +0000739CODER_DIRNAME
740MODULES_PATH
741MODULES_RELATIVE_PATH
742MODULES_DIRNAME
743MODULES_BASEDIRNAME
cristy8d0ff762013-03-10 20:33:28 +0000744LIB_BIN_DIR_PATH
745LIB_BIN_DIR_RELATIVE_PATH
746LIB_BIN_DIR
747LIB_BIN_BASEDIRNAME
cristy3ed852e2009-09-05 21:47:34 +0000748LIBRARY_PATH
749EXECUTABLE_PATH
cristye52f12f2012-12-31 15:32:36 +0000750INCLUDEARCH_PATH
cristy2a11bef2011-10-28 18:33:11 +0000751INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000752PERLMAINCC
cristy73bd4a52010-10-05 11:24:23 +0000753XML_DELEGATE_FALSE
754XML_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000755XML_LIBS
756XML_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000757WMF_LIBS
758WMF_CFLAGS
cristyebc8f692015-06-16 10:36:30 +0000759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000773RSVG_LIBS
774RSVG_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000775PNG_DELEGATE_FALSE
776PNG_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000777PNG_LIBS
778PNG_CFLAGS
cristya054b762012-03-26 23:16:00 +0000779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000787OPENEXR_LIBS
788OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000791LZMA_LIBS
792LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000795LQR_LIBS
796LQR_CFLAGS
cristy99db3872014-01-01 15:11:34 +0000797LIBOPENJP2_DELEGATE_FALSE
798LIBOPENJP2_DELEGATE_TRUE
799LIBOPENJP2_LIBS
800LIBOPENJP2_CFLAGS
cristy32f75d42015-06-05 18:46:23 +0000801LCMS_LIBS
802LCMS_CFLAGS
cristyfa2b4c32015-07-01 13:12:01 +0000803LCMS_DELEGATE_FALSE
804LCMS_DELEGATE_TRUE
cristyb054e072015-06-05 20:35:43 +0000805LCMS2_LIBS
806LCMS2_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000807JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000808JPEG_DELEGATE_FALSE
809JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000811JBIG_DELEGATE_FALSE
812JBIG_DELEGATE_TRUE
813GVC_DELEGATE_FALSE
814GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815GVC_LIBS
816GVC_CFLAGS
817GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818GS_DELEGATE_FALSE
819GS_DELEGATE_TRUE
Cristy17f8c722016-01-31 09:42:56 -0500820RAQM_DELEGATE_FALSE
821RAQM_DELEGATE_TRUE
822RAQM_LIBS
823RAQM_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000824FREETYPE_DELEGATE_FALSE
825FREETYPE_DELEGATE_TRUE
cristy03f187e2013-01-24 00:22:19 +0000826FREETYPE_LIBS
827FREETYPE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000828FONTCONFIG_DELEGATE_FALSE
829FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000830FONTCONFIG_LIBS
831FONTCONFIG_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000832DJVU_LIBS
cristy32f75d42015-06-05 18:46:23 +0000833DJVU_CFLAGS
cristy853d9902014-08-21 18:50:43 +0000834DJVU_DELEGATE_FALSE
835DJVU_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000836ddjvuapi_LIBS
837ddjvuapi_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000838FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000839FPX_DELEGATE_FALSE
840FPX_DELEGATE_TRUE
Cristy6d2f14b2016-04-26 01:41:09 -0400841FLIF_LIBS
842FLIF_DELEGATE_FALSE
843FLIF_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000844FFTW_LIBS
cristy32f75d42015-06-05 18:46:23 +0000845FFTW_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000846FFTW_DELEGATE_FALSE
847FFTW_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000848fftw3_LIBS
849fftw3_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000850DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000851DPS_DELEGATE_FALSE
852DPS_DELEGATE_TRUE
853AUTOTRACE_DELEGATE_FALSE
854AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855AUTOTRACE_LIBS
856AUTOTRACE_CFLAGS
857LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000858WITH_LTDL_FALSE
859WITH_LTDL_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000860ZLIB_DELEGATE_FALSE
861ZLIB_DELEGATE_TRUE
cristy32f75d42015-06-05 18:46:23 +0000862ZLIB_LIBS
863ZLIB_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000864XEXT_LIBS
865X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000866X11_DELEGATE_FALSE
867X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000868X_EXTRA_LIBS
869X_LIBS
870X_PRE_LIBS
871X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000872XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000873BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000874BZLIB_DELEGATE_FALSE
875BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000876CCMALLOCDelegate
877UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000878HasUMEM_FALSE
879HasUMEM_TRUE
cristy3b0097d2014-11-04 15:34:47 +0000880JEMALLOC_LIBS
881HasJEMALLOC_FALSE
882HasJEMALLOC_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000883GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000884WITH_MAGICK_PLUS_PLUS_FALSE
885WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000886OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000887MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000888POW_LIB
889LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000890UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000891UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000892UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000893UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000894UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000895UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000896INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000897INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000898UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000899UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000900INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000901INT32_T
902UINT16_T
903INT16_T
904UINT8_T
905INT8_T
906LIBRARY_EXTRA_CPPFLAGS
907MODULE_EXTRA_CPPFLAGS
908LIBSTDCLDFLAGS
909PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000910MAGICK_LT_RELEASE_OPTS
cristy7a26abd2012-12-03 00:18:59 +0000911MAGICK_ABI_SUFFIX
cristy3ed852e2009-09-05 21:47:34 +0000912QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000913LEGACY_SUPPORT_FALSE
914LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000915MAINT
916MAINTAINER_MODE_FALSE
917MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000918MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000919WITH_MODULES_FALSE
920WITH_MODULES_TRUE
921WITH_SHARED_LIBS_FALSE
922WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000923LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000924CXXCPP
Cristy15f22012015-11-14 17:51:30 -0500925LT_SYS_LIBRARY_PATH
cristy73bd4a52010-10-05 11:24:23 +0000926OTOOL64
927OTOOL
928LIPO
929NMEDIT
930DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000931MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000932RANLIB
cristy73bd4a52010-10-05 11:24:23 +0000933NM
934ac_ct_DUMPBIN
935DUMPBIN
936LIBTOOL
937OBJDUMP
938DLLTOOL
939AS
cristy3ed852e2009-09-05 21:47:34 +0000940LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000941CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000942CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000943OPENMP_CFLAGS
cristy1ae5c992013-07-30 14:55:07 +0000944THREAD_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000945PTHREAD_CFLAGS
946PTHREAD_LIBS
947PTHREAD_CC
948ax_pthread_config
cristy2ec87cc2013-02-18 17:46:50 +0000949pkgconfigdir
cristy670aa3c2011-11-03 00:54:00 +0000950SHAREARCH_DIR
951INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000952WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000953USING_CL_FALSE
954USING_CL_TRUE
955CYGWIN_BUILD_FALSE
956CYGWIN_BUILD_TRUE
957WIN32_NATIVE_BUILD_FALSE
958WIN32_NATIVE_BUILD_TRUE
959WINGDI32_DELEGATE_FALSE
960WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000961GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000962HAVE_LD_VERSION_SCRIPT_FALSE
963HAVE_LD_VERSION_SCRIPT_TRUE
Cristy6720ed72016-02-09 09:27:35 -0500964WARN_SCANNERFLAGS
965WARN_LDFLAGS
966WARN_CXXFLAGS
967WARN_CFLAGS
cristy146497a2015-05-17 22:46:16 +0000968PKG_CONFIG_LIBDIR
969PKG_CONFIG_PATH
cristy73bd4a52010-10-05 11:24:23 +0000970PKG_CONFIG
cristya0459972013-11-03 18:09:35 +0000971PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000972LN_S
cristy3ed852e2009-09-05 21:47:34 +0000973LD
cristy73bd4a52010-10-05 11:24:23 +0000974FGREP
975SED
976am__fastdepCXX_FALSE
977am__fastdepCXX_TRUE
978CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000979ac_ct_CXX
980CXXFLAGS
981CXX
cristy9e007fe2015-01-03 16:05:07 +0000982ac_ct_AR
983AR
cristya0b81c32010-01-22 02:54:33 +0000984EGREP
985GREP
986CPP
cristy73bd4a52010-10-05 11:24:23 +0000987am__fastdepCC_FALSE
988am__fastdepCC_TRUE
989CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000990am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000991AMDEPBACKSLASH
992AMDEP_FALSE
993AMDEP_TRUE
994am__quote
995am__include
996DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000997OBJEXT
998EXEEXT
999ac_ct_CC
1000CPPFLAGS
1001LDFLAGS
1002CFLAGS
1003CC
1004DIRSEP
1005MAGICK_FILTER_MODULE_PATH
1006MAGICK_CONFIGURE_BUILD_PATH
1007MAGICK_CONFIGURE_SRC_PATH
1008MAGICK_CODER_MODULE_PATH
1009MAN_DIR
1010INFO_DIR
1011PERSISTINCLUDE_DIR
1012INCLUDE_DIR
1013LIB_DIR
1014LOCALSTATE_DIR
1015SHAREDSTATE_DIR
1016SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001017DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001018DATA_DIR
1019LIBEXEC_DIR
1020SBIN_DIR
1021BIN_DIR
1022EXEC_PREFIX_DIR
1023PREFIX_DIR
1024CONFIG_STATUS_DEPENDENCIES
cristy5ed9c6e2013-07-14 21:20:31 +00001025MAGICKPP_LIB_VERSION_TEXT
1026MAGICKPP_LIB_VERSION
cristy3ed852e2009-09-05 21:47:34 +00001027MAGICK_LIB_VERSION_NUMBER
1028MAGICK_LIB_VERSION_TEXT
1029MAGICK_LIB_VERSION
cristy9af1cbf2014-12-28 22:03:09 +00001030PACKAGE_VERSION_ADDENDUM
1031PACKAGE_RELEASE_DATE
1032PACKAGE_LIB_VERSION_NUMBER
1033PACKAGE_LIB_VERSION
1034PACKAGE_CHANGE_DATE
1035PACKAGE_RELEASE
1036PACKAGE_PERL_VERSION
1037MAGICKPP_LIBRARY_VERSION_INFO
1038MAGICKPP_LIBRARY_CURRENT_MIN
1039MAGICKPP_LIBRARY_AGE
1040MAGICKPP_LIBRARY_REVISION
1041MAGICKPP_LIBRARY_CURRENT
1042MAGICK_LIBRARY_VERSION_INFO
1043MAGICK_LIBRARY_CURRENT_MIN
1044MAGICK_LIBRARY_AGE
1045MAGICK_LIBRARY_REVISION
1046MAGICK_LIBRARY_CURRENT
Cristyfbb8d802015-09-02 11:41:34 -04001047MAGICK_GIT_REVISION
cristy9af1cbf2014-12-28 22:03:09 +00001048MAGICK_VERSION
1049MAGICK_PATCHLEVEL_VERSION
1050MAGICK_MICRO_VERSION
1051MAGICK_MINOR_VERSION
1052MAGICK_MAJOR_VERSION
1053MAGICK_TARGET_OS
1054MAGICK_TARGET_VENDOR
1055MAGICK_TARGET_CPU
1056CONFIGURE_ARGS
1057DISTCHECK_CONFIG_FLAGS
cristy73bd4a52010-10-05 11:24:23 +00001058AM_BACKSLASH
1059AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001060AM_DEFAULT_V
1061AM_V
cristy73bd4a52010-10-05 11:24:23 +00001062am__untar
1063am__tar
1064AMTAR
1065am__leading_dot
1066SET_MAKE
1067AWK
1068mkdir_p
1069MKDIR_P
1070INSTALL_STRIP_PROGRAM
1071STRIP
1072install_sh
1073MAKEINFO
1074AUTOHEADER
1075AUTOMAKE
1076AUTOCONF
1077ACLOCAL
1078VERSION
1079PACKAGE
1080CYGPATH_W
1081am__isrc
1082INSTALL_DATA
1083INSTALL_SCRIPT
1084INSTALL_PROGRAM
cristy3ed852e2009-09-05 21:47:34 +00001085target_os
1086target_vendor
1087target_cpu
1088target
1089host_os
1090host_vendor
1091host_cpu
1092host
1093build_os
1094build_vendor
1095build_cpu
1096build
cristy3ed852e2009-09-05 21:47:34 +00001097target_alias
1098host_alias
1099build_alias
1100LIBS
1101ECHO_T
1102ECHO_N
1103ECHO_C
1104DEFS
1105mandir
1106localedir
1107libdir
1108psdir
1109pdfdir
1110dvidir
1111htmldir
1112infodir
1113docdir
1114oldincludedir
1115includedir
1116localstatedir
1117sharedstatedir
1118sysconfdir
1119datadir
1120datarootdir
1121libexecdir
1122sbindir
1123bindir
1124program_transform_name
1125prefix
1126exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001127PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001128PACKAGE_BUGREPORT
1129PACKAGE_STRING
1130PACKAGE_VERSION
1131PACKAGE_TARNAME
1132PACKAGE_NAME
1133PATH_SEPARATOR
1134SHELL'
1135ac_subst_files=''
1136ac_user_opts='
1137enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001138enable_silent_rules
cristy187791c2015-05-03 22:17:00 +00001139enable_reproducible_build
cristy73bd4a52010-10-05 11:24:23 +00001140enable_dependency_tracking
1141with_gnu_ld
1142with_dmalloc
cristya0459972013-11-03 18:09:35 +00001143with_gcc_arch
Cristy6720ed72016-02-09 09:27:35 -05001144enable_compile_warnings
1145enable_Werror
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
Cristy697159d2016-05-31 07:21:31 -04001170enable_pipes
cristy3ed852e2009-09-05 21:47:34 +00001171enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001172enable_maintainer_mode
cristy944e51f2013-04-16 18:45:02 +00001173enable_hugepages
cristy3ed852e2009-09-05 21:47:34 +00001174enable_ccmalloc
1175enable_efence
1176enable_prof
1177enable_gprof
1178enable_gcov
1179with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001180enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001181with_quantum_depth
1182with_cache
1183with_frozenpaths
1184with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001185with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001186with_perl
1187with_perl_options
cristy3b0097d2014-11-04 15:34:47 +00001188with_jemalloc
cristy3ed852e2009-09-05 21:47:34 +00001189with_umem
1190with_libstdc
1191with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001192with_x
cristy3ed852e2009-09-05 21:47:34 +00001193with_zlib
cristy5a3dc992014-12-05 19:50:04 +00001194with_apple_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001195with_autotrace
1196with_dps
cristy430a7312010-01-21 20:44:04 +00001197with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001198with_fftw
Cristy6d2f14b2016-04-26 01:41:09 -04001199with_flif
cristy3ed852e2009-09-05 21:47:34 +00001200with_fpx
cristy853d9902014-08-21 18:50:43 +00001201with_djvu
cristy3ed852e2009-09-05 21:47:34 +00001202with_fontconfig
1203with_freetype
Cristy17f8c722016-01-31 09:42:56 -05001204with_raqm
cristy3ed852e2009-09-05 21:47:34 +00001205with_gslib
1206with_fontpath
1207with_gs_font_dir
1208with_gvc
1209with_jbig
1210with_jpeg
cristy3ed852e2009-09-05 21:47:34 +00001211with_lcms
cristy99db3872014-01-01 15:11:34 +00001212with_openjp2
cristy3ed852e2009-09-05 21:47:34 +00001213with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001214with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001215with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001216with_pango
cristy3ed852e2009-09-05 21:47:34 +00001217with_png
1218with_rsvg
1219with_tiff
cristyb1860752011-03-14 00:27:46 +00001220with_webp
cristy3ed852e2009-09-05 21:47:34 +00001221with_windows_font_dir
1222with_wmf
1223with_xml
cristydd17feb2014-03-05 02:06:32 +00001224enable_docs
cristy3ed852e2009-09-05 21:47:34 +00001225'
1226 ac_precious_vars='build_alias
1227host_alias
1228target_alias
1229CC
1230CFLAGS
1231LDFLAGS
1232LIBS
1233CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001234CPP
cristy3ed852e2009-09-05 21:47:34 +00001235CXX
1236CXXFLAGS
1237CCC
cristy73bd4a52010-10-05 11:24:23 +00001238PKG_CONFIG
cristy146497a2015-05-17 22:46:16 +00001239PKG_CONFIG_PATH
1240PKG_CONFIG_LIBDIR
Cristy15f22012015-11-14 17:51:30 -05001241LT_SYS_LIBRARY_PATH
cristy73bd4a52010-10-05 11:24:23 +00001242CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001243XMKMF
cristy32f75d42015-06-05 18:46:23 +00001244ZLIB_CFLAGS
1245ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001246AUTOTRACE_CFLAGS
1247AUTOTRACE_LIBS
cristy32f75d42015-06-05 18:46:23 +00001248fftw3_CFLAGS
1249fftw3_LIBS
1250ddjvuapi_CFLAGS
1251ddjvuapi_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001252FONTCONFIG_CFLAGS
1253FONTCONFIG_LIBS
cristy03f187e2013-01-24 00:22:19 +00001254FREETYPE_CFLAGS
1255FREETYPE_LIBS
Cristy17f8c722016-01-31 09:42:56 -05001256RAQM_CFLAGS
1257RAQM_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001258GVC_CFLAGS
1259GVC_LIBS
cristyb054e072015-06-05 20:35:43 +00001260LCMS2_CFLAGS
1261LCMS2_LIBS
cristy99db3872014-01-01 15:11:34 +00001262LIBOPENJP2_CFLAGS
1263LIBOPENJP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001264LQR_CFLAGS
1265LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001266LZMA_CFLAGS
1267LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001268OPENEXR_CFLAGS
1269OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001270PANGO_CFLAGS
1271PANGO_LIBS
cristy32f75d42015-06-05 18:46:23 +00001272PNG_CFLAGS
1273PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001274RSVG_CFLAGS
1275RSVG_LIBS
1276CAIRO_SVG_CFLAGS
cristy32f75d42015-06-05 18:46:23 +00001277CAIRO_SVG_LIBS
cristy32f75d42015-06-05 18:46:23 +00001278XML_CFLAGS
1279XML_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001280
1281
1282# Initialize some variables set by options.
1283ac_init_help=
1284ac_init_version=false
1285ac_unrecognized_opts=
1286ac_unrecognized_sep=
1287# The variables have the same names as the options, with
1288# dashes changed to underlines.
1289cache_file=/dev/null
1290exec_prefix=NONE
1291no_create=
1292no_recursion=
1293prefix=NONE
1294program_prefix=NONE
1295program_suffix=NONE
1296program_transform_name=s,x,x,
1297silent=
1298site=
1299srcdir=
1300verbose=
1301x_includes=NONE
1302x_libraries=NONE
1303
1304# Installation directory options.
1305# These are left unexpanded so users can "make install exec_prefix=/foo"
1306# and all the variables that are supposed to be based on exec_prefix
1307# by default will actually change.
1308# Use braces instead of parens because sh, perl, etc. also accept them.
1309# (The list follows the same order as the GNU Coding Standards.)
1310bindir='${exec_prefix}/bin'
1311sbindir='${exec_prefix}/sbin'
1312libexecdir='${exec_prefix}/libexec'
1313datarootdir='${prefix}/share'
1314datadir='${datarootdir}'
1315sysconfdir='${prefix}/etc'
1316sharedstatedir='${prefix}/com'
1317localstatedir='${prefix}/var'
1318includedir='${prefix}/include'
1319oldincludedir='/usr/include'
1320docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1321infodir='${datarootdir}/info'
1322htmldir='${docdir}'
1323dvidir='${docdir}'
1324pdfdir='${docdir}'
1325psdir='${docdir}'
1326libdir='${exec_prefix}/lib'
1327localedir='${datarootdir}/locale'
1328mandir='${datarootdir}/man'
1329
1330ac_prev=
1331ac_dashdash=
1332for ac_option
1333do
1334 # If the previous option needs an argument, assign it.
1335 if test -n "$ac_prev"; then
1336 eval $ac_prev=\$ac_option
1337 ac_prev=
1338 continue
1339 fi
1340
1341 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001342 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1343 *=) ac_optarg= ;;
1344 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001345 esac
1346
1347 # Accept the important Cygnus configure options, so we can diagnose typos.
1348
1349 case $ac_dashdash$ac_option in
1350 --)
1351 ac_dashdash=yes ;;
1352
1353 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1354 ac_prev=bindir ;;
1355 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1356 bindir=$ac_optarg ;;
1357
1358 -build | --build | --buil | --bui | --bu)
1359 ac_prev=build_alias ;;
1360 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1361 build_alias=$ac_optarg ;;
1362
1363 -cache-file | --cache-file | --cache-fil | --cache-fi \
1364 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1365 ac_prev=cache_file ;;
1366 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1367 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1368 cache_file=$ac_optarg ;;
1369
1370 --config-cache | -C)
1371 cache_file=config.cache ;;
1372
1373 -datadir | --datadir | --datadi | --datad)
1374 ac_prev=datadir ;;
1375 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1376 datadir=$ac_optarg ;;
1377
1378 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1379 | --dataroo | --dataro | --datar)
1380 ac_prev=datarootdir ;;
1381 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1382 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1383 datarootdir=$ac_optarg ;;
1384
1385 -disable-* | --disable-*)
1386 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1387 # Reject names that are not valid shell variable names.
1388 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001389 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001390 ac_useropt_orig=$ac_useropt
1391 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1393 *"
1394"enable_$ac_useropt"
1395"*) ;;
1396 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1397 ac_unrecognized_sep=', ';;
1398 esac
1399 eval enable_$ac_useropt=no ;;
1400
1401 -docdir | --docdir | --docdi | --doc | --do)
1402 ac_prev=docdir ;;
1403 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1404 docdir=$ac_optarg ;;
1405
1406 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1407 ac_prev=dvidir ;;
1408 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1409 dvidir=$ac_optarg ;;
1410
1411 -enable-* | --enable-*)
1412 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1413 # Reject names that are not valid shell variable names.
1414 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001415 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001416 ac_useropt_orig=$ac_useropt
1417 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418 case $ac_user_opts in
1419 *"
1420"enable_$ac_useropt"
1421"*) ;;
1422 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1423 ac_unrecognized_sep=', ';;
1424 esac
1425 eval enable_$ac_useropt=\$ac_optarg ;;
1426
1427 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1428 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1429 | --exec | --exe | --ex)
1430 ac_prev=exec_prefix ;;
1431 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1432 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1433 | --exec=* | --exe=* | --ex=*)
1434 exec_prefix=$ac_optarg ;;
1435
1436 -gas | --gas | --ga | --g)
1437 # Obsolete; use --with-gas.
1438 with_gas=yes ;;
1439
1440 -help | --help | --hel | --he | -h)
1441 ac_init_help=long ;;
1442 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1443 ac_init_help=recursive ;;
1444 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1445 ac_init_help=short ;;
1446
1447 -host | --host | --hos | --ho)
1448 ac_prev=host_alias ;;
1449 -host=* | --host=* | --hos=* | --ho=*)
1450 host_alias=$ac_optarg ;;
1451
1452 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1453 ac_prev=htmldir ;;
1454 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1455 | --ht=*)
1456 htmldir=$ac_optarg ;;
1457
1458 -includedir | --includedir | --includedi | --included | --include \
1459 | --includ | --inclu | --incl | --inc)
1460 ac_prev=includedir ;;
1461 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1462 | --includ=* | --inclu=* | --incl=* | --inc=*)
1463 includedir=$ac_optarg ;;
1464
1465 -infodir | --infodir | --infodi | --infod | --info | --inf)
1466 ac_prev=infodir ;;
1467 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1468 infodir=$ac_optarg ;;
1469
1470 -libdir | --libdir | --libdi | --libd)
1471 ac_prev=libdir ;;
1472 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1473 libdir=$ac_optarg ;;
1474
1475 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1476 | --libexe | --libex | --libe)
1477 ac_prev=libexecdir ;;
1478 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1479 | --libexe=* | --libex=* | --libe=*)
1480 libexecdir=$ac_optarg ;;
1481
1482 -localedir | --localedir | --localedi | --localed | --locale)
1483 ac_prev=localedir ;;
1484 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1485 localedir=$ac_optarg ;;
1486
1487 -localstatedir | --localstatedir | --localstatedi | --localstated \
1488 | --localstate | --localstat | --localsta | --localst | --locals)
1489 ac_prev=localstatedir ;;
1490 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1491 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1492 localstatedir=$ac_optarg ;;
1493
1494 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1495 ac_prev=mandir ;;
1496 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1497 mandir=$ac_optarg ;;
1498
1499 -nfp | --nfp | --nf)
1500 # Obsolete; use --without-fp.
1501 with_fp=no ;;
1502
1503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1504 | --no-cr | --no-c | -n)
1505 no_create=yes ;;
1506
1507 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1508 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1509 no_recursion=yes ;;
1510
1511 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1512 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1513 | --oldin | --oldi | --old | --ol | --o)
1514 ac_prev=oldincludedir ;;
1515 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1516 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1517 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1518 oldincludedir=$ac_optarg ;;
1519
1520 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1521 ac_prev=prefix ;;
1522 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1523 prefix=$ac_optarg ;;
1524
1525 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1526 | --program-pre | --program-pr | --program-p)
1527 ac_prev=program_prefix ;;
1528 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1529 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1530 program_prefix=$ac_optarg ;;
1531
1532 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1533 | --program-suf | --program-su | --program-s)
1534 ac_prev=program_suffix ;;
1535 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1536 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1537 program_suffix=$ac_optarg ;;
1538
1539 -program-transform-name | --program-transform-name \
1540 | --program-transform-nam | --program-transform-na \
1541 | --program-transform-n | --program-transform- \
1542 | --program-transform | --program-transfor \
1543 | --program-transfo | --program-transf \
1544 | --program-trans | --program-tran \
1545 | --progr-tra | --program-tr | --program-t)
1546 ac_prev=program_transform_name ;;
1547 -program-transform-name=* | --program-transform-name=* \
1548 | --program-transform-nam=* | --program-transform-na=* \
1549 | --program-transform-n=* | --program-transform-=* \
1550 | --program-transform=* | --program-transfor=* \
1551 | --program-transfo=* | --program-transf=* \
1552 | --program-trans=* | --program-tran=* \
1553 | --progr-tra=* | --program-tr=* | --program-t=*)
1554 program_transform_name=$ac_optarg ;;
1555
1556 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1557 ac_prev=pdfdir ;;
1558 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1559 pdfdir=$ac_optarg ;;
1560
1561 -psdir | --psdir | --psdi | --psd | --ps)
1562 ac_prev=psdir ;;
1563 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1564 psdir=$ac_optarg ;;
1565
1566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567 | -silent | --silent | --silen | --sile | --sil)
1568 silent=yes ;;
1569
1570 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1571 ac_prev=sbindir ;;
1572 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1573 | --sbi=* | --sb=*)
1574 sbindir=$ac_optarg ;;
1575
1576 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1577 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1578 | --sharedst | --shareds | --shared | --share | --shar \
1579 | --sha | --sh)
1580 ac_prev=sharedstatedir ;;
1581 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1582 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1583 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1584 | --sha=* | --sh=*)
1585 sharedstatedir=$ac_optarg ;;
1586
1587 -site | --site | --sit)
1588 ac_prev=site ;;
1589 -site=* | --site=* | --sit=*)
1590 site=$ac_optarg ;;
1591
1592 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1593 ac_prev=srcdir ;;
1594 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1595 srcdir=$ac_optarg ;;
1596
1597 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1598 | --syscon | --sysco | --sysc | --sys | --sy)
1599 ac_prev=sysconfdir ;;
1600 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1601 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1602 sysconfdir=$ac_optarg ;;
1603
1604 -target | --target | --targe | --targ | --tar | --ta | --t)
1605 ac_prev=target_alias ;;
1606 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1607 target_alias=$ac_optarg ;;
1608
1609 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1610 verbose=yes ;;
1611
1612 -version | --version | --versio | --versi | --vers | -V)
1613 ac_init_version=: ;;
1614
1615 -with-* | --with-*)
1616 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1617 # Reject names that are not valid shell variable names.
1618 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001619 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001620 ac_useropt_orig=$ac_useropt
1621 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1622 case $ac_user_opts in
1623 *"
1624"with_$ac_useropt"
1625"*) ;;
1626 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1627 ac_unrecognized_sep=', ';;
1628 esac
1629 eval with_$ac_useropt=\$ac_optarg ;;
1630
1631 -without-* | --without-*)
1632 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1633 # Reject names that are not valid shell variable names.
1634 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001635 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001636 ac_useropt_orig=$ac_useropt
1637 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1638 case $ac_user_opts in
1639 *"
1640"with_$ac_useropt"
1641"*) ;;
1642 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1643 ac_unrecognized_sep=', ';;
1644 esac
1645 eval with_$ac_useropt=no ;;
1646
1647 --x)
1648 # Obsolete; use --with-x.
1649 with_x=yes ;;
1650
1651 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1652 | --x-incl | --x-inc | --x-in | --x-i)
1653 ac_prev=x_includes ;;
1654 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1655 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1656 x_includes=$ac_optarg ;;
1657
1658 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1659 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1660 ac_prev=x_libraries ;;
1661 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1662 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1663 x_libraries=$ac_optarg ;;
1664
cristy98dddb52010-11-04 00:30:15 +00001665 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1666Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001667 ;;
1668
1669 *=*)
1670 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1671 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001672 case $ac_envvar in #(
1673 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001674 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001675 esac
cristy3ed852e2009-09-05 21:47:34 +00001676 eval $ac_envvar=\$ac_optarg
1677 export $ac_envvar ;;
1678
1679 *)
1680 # FIXME: should be removed in autoconf 3.0.
1681 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1682 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1683 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001684 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001685 ;;
1686
1687 esac
1688done
1689
1690if test -n "$ac_prev"; then
1691 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001692 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001693fi
1694
1695if test -n "$ac_unrecognized_opts"; then
1696 case $enable_option_checking in
1697 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001698 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001699 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1700 esac
1701fi
1702
1703# Check all directory arguments for consistency.
1704for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1705 datadir sysconfdir sharedstatedir localstatedir includedir \
1706 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1707 libdir localedir mandir
1708do
1709 eval ac_val=\$$ac_var
1710 # Remove trailing slashes.
1711 case $ac_val in
1712 */ )
1713 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1714 eval $ac_var=\$ac_val;;
1715 esac
1716 # Be sure to have absolute directory names.
1717 case $ac_val in
1718 [\\/$]* | ?:[\\/]* ) continue;;
1719 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1720 esac
cristy98dddb52010-11-04 00:30:15 +00001721 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001722done
1723
1724# There might be people who depend on the old broken behavior: `$host'
1725# used to hold the argument of --host etc.
1726# FIXME: To remove some day.
1727build=$build_alias
1728host=$host_alias
1729target=$target_alias
1730
1731# FIXME: To remove some day.
1732if test "x$host_alias" != x; then
1733 if test "x$build_alias" = x; then
1734 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001735 elif test "x$build_alias" != "x$host_alias"; then
1736 cross_compiling=yes
1737 fi
1738fi
1739
1740ac_tool_prefix=
1741test -n "$host_alias" && ac_tool_prefix=$host_alias-
1742
1743test "$silent" = yes && exec 6>/dev/null
1744
1745
1746ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747ac_ls_di=`ls -di .` &&
1748ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001749 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001750test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001751 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001752
1753
1754# Find the source files, if location was not specified.
1755if test -z "$srcdir"; then
1756 ac_srcdir_defaulted=yes
1757 # Try the directory containing this script, then the parent directory.
1758 ac_confdir=`$as_dirname -- "$as_myself" ||
1759$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760 X"$as_myself" : 'X\(//\)[^/]' \| \
1761 X"$as_myself" : 'X\(//\)$' \| \
1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763$as_echo X"$as_myself" |
1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765 s//\1/
1766 q
1767 }
1768 /^X\(\/\/\)[^/].*/{
1769 s//\1/
1770 q
1771 }
1772 /^X\(\/\/\)$/{
1773 s//\1/
1774 q
1775 }
1776 /^X\(\/\).*/{
1777 s//\1/
1778 q
1779 }
1780 s/.*/./; q'`
1781 srcdir=$ac_confdir
1782 if test ! -r "$srcdir/$ac_unique_file"; then
1783 srcdir=..
1784 fi
1785else
1786 ac_srcdir_defaulted=no
1787fi
1788if test ! -r "$srcdir/$ac_unique_file"; then
1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001790 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001791fi
1792ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1793ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001795 pwd)`
1796# When building in place, set srcdir=.
1797if test "$ac_abs_confdir" = "$ac_pwd"; then
1798 srcdir=.
1799fi
1800# Remove unnecessary trailing slashes from srcdir.
1801# Double slashes in file names in object file debugging info
1802# mess up M-x gdb in Emacs.
1803case $srcdir in
1804*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1805esac
1806for ac_var in $ac_precious_vars; do
1807 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808 eval ac_env_${ac_var}_value=\$${ac_var}
1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1811done
1812
1813#
1814# Report the --help message.
1815#
1816if test "$ac_init_help" = "long"; then
1817 # Omit some internal or obsolete options to make the list less imposing.
1818 # This message is too long to be a string in the A/UX 3.1 sh.
1819 cat <<_ACEOF
Cristy814561c2016-07-11 12:42:00 -04001820\`configure' configures ImageMagick 7.0.2-5 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001821
1822Usage: $0 [OPTION]... [VAR=VALUE]...
1823
1824To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825VAR=VALUE. See below for descriptions of some of the useful variables.
1826
1827Defaults for the options are specified in brackets.
1828
1829Configuration:
1830 -h, --help display this help and exit
1831 --help=short display options specific to this package
1832 --help=recursive display the short help of all the included packages
1833 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001834 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001835 --cache-file=FILE cache test results in FILE [disabled]
1836 -C, --config-cache alias for \`--cache-file=config.cache'
1837 -n, --no-create do not create output files
1838 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1839
1840Installation directories:
1841 --prefix=PREFIX install architecture-independent files in PREFIX
1842 [$ac_default_prefix]
1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1844 [PREFIX]
1845
1846By default, \`make install' will install all the files in
1847\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1848an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849for instance \`--prefix=\$HOME'.
1850
1851For better control, use the options below.
1852
1853Fine tuning of the installation directories:
1854 --bindir=DIR user executables [EPREFIX/bin]
1855 --sbindir=DIR system admin executables [EPREFIX/sbin]
1856 --libexecdir=DIR program executables [EPREFIX/libexec]
1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1860 --libdir=DIR object code libraries [EPREFIX/lib]
1861 --includedir=DIR C header files [PREFIX/include]
1862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1865 --infodir=DIR info documentation [DATAROOTDIR/info]
1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1867 --mandir=DIR man documentation [DATAROOTDIR/man]
Cristyff282552015-09-19 16:49:39 -04001868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001869 --htmldir=DIR html documentation [DOCDIR]
1870 --dvidir=DIR dvi documentation [DOCDIR]
1871 --pdfdir=DIR pdf documentation [DOCDIR]
1872 --psdir=DIR ps documentation [DOCDIR]
1873_ACEOF
1874
1875 cat <<\_ACEOF
1876
cristy73bd4a52010-10-05 11:24:23 +00001877Program names:
1878 --program-prefix=PREFIX prepend PREFIX to installed program names
1879 --program-suffix=SUFFIX append SUFFIX to installed program names
1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1881
cristy3ed852e2009-09-05 21:47:34 +00001882X features:
1883 --x-includes=DIR X include files are in DIR
1884 --x-libraries=DIR X library files are in DIR
1885
1886System types:
1887 --build=BUILD configure for building on BUILD [guessed]
1888 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1889 --target=TARGET configure for building compilers for TARGET [HOST]
1890_ACEOF
1891fi
1892
1893if test -n "$ac_init_help"; then
1894 case $ac_init_help in
Cristy814561c2016-07-11 12:42:00 -04001895 short | recursive ) echo "Configuration of ImageMagick 7.0.2-5:";;
cristy3ed852e2009-09-05 21:47:34 +00001896 esac
1897 cat <<\_ACEOF
1898
1899Optional Features:
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001903 --enable-silent-rules less verbose build output (undo: "make V=1")
1904 --disable-silent-rules verbose build output (undo: "make V=0")
cristy187791c2015-05-03 22:17:00 +00001905 --enable-reproducible-build
1906 enable reproducible build
cristyc0890a62012-07-19 00:18:20 +00001907 --enable-dependency-tracking
1908 do not reject slow dependency extractors
1909 --disable-dependency-tracking
1910 speeds up one-time build
Cristy6720ed72016-02-09 09:27:35 -05001911 --enable-compile-warnings=[no/yes/error]
1912 Enable compiler warnings and errors
1913 --disable-Werror Unconditionally make all compiler warnings non-fatal
cristy9b86f202012-11-28 21:55:35 +00001914 --enable-ld-version-script
1915 enable linker version script (default is enabled
1916 when possible)
cristya3824692012-03-30 17:22:07 +00001917 --enable-bounds-checking
1918 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001919 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001920 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001921 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001922 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001923 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001924 --enable-shared[=PKGS] build shared libraries [default=yes]
1925 --enable-static[=PKGS] build static libraries [default=yes]
1926 --enable-fast-install[=PKGS]
1927 optimize for fast installation [default=yes]
1928 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001929 --enable-delegate-build look for delegate libraries in build directory
1930 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001931 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001932 --disable-installed Formally install ImageMagick under PREFIX
1933 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001934 --enable-zero-configuration
1935 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001936 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001937 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001938 levels found in real scenes
Cristy697159d2016-05-31 07:21:31 -04001939 --enable-pipes enable pipes (|) in filenames
cristy3ed852e2009-09-05 21:47:34 +00001940 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001941 --enable-maintainer-mode
1942 enable make rules and dependencies not useful (and
1943 sometimes confusing) to the casual installer
cristy944e51f2013-04-16 18:45:02 +00001944 --enable-hugepages enable 'huge pages' support
cristy3ed852e2009-09-05 21:47:34 +00001945 --enable-ccmalloc enable 'ccmalloc' memory debug support
1946 --enable-efence enable 'efence' memory debug support
1947 --enable-prof enable 'prof' profiling support
1948 --enable-gprof enable 'gprof' profiling support
1949 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001950 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001951 --disable-assert turn off assertions
cristydd17feb2014-03-05 02:06:32 +00001952 --disable-docs disable building of documentation
cristy3ed852e2009-09-05 21:47:34 +00001953
1954Optional Packages:
1955 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1956 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001957 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001958 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristya0459972013-11-03 18:09:35 +00001959 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1960 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001961 --includearch-dir=DIR ARCH specific include directory
1962 --sharearch-dir=DIR ARCH specific config directory
cristy2ec87cc2013-02-18 17:46:50 +00001963 --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
cristy3ed852e2009-09-05 21:47:34 +00001964 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001965 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001966 both]
Cristy15f22012015-11-14 17:51:30 -05001967 --with-aix-soname=aix|svr4|both
1968 shared library versioning (aka "SONAME") variant to
1969 provide on AIX, [default=aix].
1970 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1971 compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001972 --with-modules enable building dynamically loadable modules
1973 --with-method-prefix=PREFIX
1974 prefix MagickCore API methods
1975 --with-quantum-depth=DEPTH
1976 number of bits in a pixel quantum (default 16)
1977 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1978 memory)
1979 --with-frozenpaths freeze delegate paths
1980 --without-magick-plus-plus
1981 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001982 --with-package-release-name=NAME
1983 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001984 --with-perl enable build/install of PerlMagick
1985 --with-perl-options=OPTIONS
1986 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001987 PerlMagick build file
cristy3b0097d2014-11-04 15:34:47 +00001988 --with-jemalloc enable jemalloc memory allocation library support
cristy3ed852e2009-09-05 21:47:34 +00001989 --with-umem enable umem memory allocation library support
1990 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1991 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001992 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001993 --without-zlib disable ZLIB support
cristy5a3dc992014-12-05 19:50:04 +00001994 --with-apple-font-dir=DIR
1995 Apple font directory
cristy3ed852e2009-09-05 21:47:34 +00001996 --with-autotrace enable autotrace support
1997 --without-dps disable Display Postscript support
cristy430a7312010-01-21 20:44:04 +00001998 --with-dejavu-font-dir=DIR
1999 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00002000 --without-fftw disable FFTW support
Cristy6d2f14b2016-04-26 01:41:09 -04002001 --without-flif disable FLIF support
cristy3ed852e2009-09-05 21:47:34 +00002002 --without-fpx disable FlashPIX support
cristy853d9902014-08-21 18:50:43 +00002003 --without-djvu disable DjVu support
cristy3ed852e2009-09-05 21:47:34 +00002004 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00002005 --without-freetype disable Freetype support
Cristy17f8c722016-01-31 09:42:56 -05002006 --without-raqm disable Raqm support
cristybdabdd62013-03-04 17:43:36 +00002007 --with-gslib enable Ghostscript library support
cristy3ed852e2009-09-05 21:47:34 +00002008 --with-fontpath=DIR prepend to default font search path
2009 --with-gs-font-dir=DIR Ghostscript font directory
cristybdabdd62013-03-04 17:43:36 +00002010 --with-gvc enable GVC support
cristy3ed852e2009-09-05 21:47:34 +00002011 --without-jbig disable JBIG support
2012 --without-jpeg disable JPEG support
cristy71203402010-06-18 13:12:03 +00002013 --without-lcms disable lcms (v1.1X) support
cristy99db3872014-01-01 15:11:34 +00002014 --without-openjp2 disable OpenJP2 support
cristyf0c78232010-03-15 12:53:40 +00002015 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00002016 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00002017 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00002018 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00002019 --without-png disable PNG support
cristy51633f52013-04-23 14:03:19 +00002020 --with-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00002021 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00002022 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00002023 --with-windows-font-dir=DIR
cristy5a3dc992014-12-05 19:50:04 +00002024 Windows font directory
cristyde3fc5d2012-02-12 15:40:47 +00002025 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00002026 --without-xml disable XML support
2027
2028Some influential environment variables:
2029 CC C compiler command
2030 CFLAGS C compiler flags
2031 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2032 nonstandard directory <lib dir>
2033 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00002034 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00002035 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00002036 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00002037 CXX C++ compiler command
2038 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00002039 PKG_CONFIG path to pkg-config utility
cristy146497a2015-05-17 22:46:16 +00002040 PKG_CONFIG_PATH
2041 directories to add to pkg-config's search path
2042 PKG_CONFIG_LIBDIR
2043 path overriding pkg-config's built-in search path
Cristy15f22012015-11-14 17:51:30 -05002044 LT_SYS_LIBRARY_PATH
2045 User-defined run-time library search path.
nicolas6237c462010-10-05 06:11:49 +00002046 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00002047 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy32f75d42015-06-05 18:46:23 +00002048 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2049 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002050 AUTOTRACE_CFLAGS
2051 C compiler flags for AUTOTRACE, overriding pkg-config
2052 AUTOTRACE_LIBS
2053 linker flags for AUTOTRACE, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002054 fftw3_CFLAGS
2055 C compiler flags for fftw3, overriding pkg-config
2056 fftw3_LIBS linker flags for fftw3, overriding pkg-config
2057 ddjvuapi_CFLAGS
2058 C compiler flags for ddjvuapi, overriding pkg-config
2059 ddjvuapi_LIBS
2060 linker flags for ddjvuapi, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002061 FONTCONFIG_CFLAGS
2062 C compiler flags for FONTCONFIG, overriding pkg-config
2063 FONTCONFIG_LIBS
2064 linker flags for FONTCONFIG, overriding pkg-config
cristy03f187e2013-01-24 00:22:19 +00002065 FREETYPE_CFLAGS
2066 C compiler flags for FREETYPE, overriding pkg-config
2067 FREETYPE_LIBS
2068 linker flags for FREETYPE, overriding pkg-config
Cristy17f8c722016-01-31 09:42:56 -05002069 RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
2070 RAQM_LIBS linker flags for RAQM, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002071 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2072 GVC_LIBS linker flags for GVC, overriding pkg-config
cristyb054e072015-06-05 20:35:43 +00002073 LCMS2_CFLAGS
2074 C compiler flags for LCMS2, overriding pkg-config
2075 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
cristy99db3872014-01-01 15:11:34 +00002076 LIBOPENJP2_CFLAGS
2077 C compiler flags for LIBOPENJP2, overriding pkg-config
2078 LIBOPENJP2_LIBS
2079 linker flags for LIBOPENJP2, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002080 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2081 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00002082 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2083 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002084 OPENEXR_CFLAGS
2085 C compiler flags for OPENEXR, overriding pkg-config
2086 OPENEXR_LIBS
2087 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00002088 PANGO_CFLAGS
2089 C compiler flags for PANGO, overriding pkg-config
2090 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002091 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
2092 PNG_LIBS linker flags for PNG, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00002093 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2094 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2095 CAIRO_SVG_CFLAGS
2096 C compiler flags for CAIRO_SVG, overriding pkg-config
2097 CAIRO_SVG_LIBS
2098 linker flags for CAIRO_SVG, overriding pkg-config
cristy32f75d42015-06-05 18:46:23 +00002099 XML_CFLAGS C compiler flags for XML, overriding pkg-config
2100 XML_LIBS linker flags for XML, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00002101
2102Use these variables to override the choices made by `configure' or to help
2103it to find libraries and programs with nonstandard names/locations.
2104
Cristy6720ed72016-02-09 09:27:35 -05002105Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
2106ImageMagick home page: <http://www.imagemagick.org>.
cristy3ed852e2009-09-05 21:47:34 +00002107_ACEOF
2108ac_status=$?
2109fi
2110
2111if test "$ac_init_help" = "recursive"; then
2112 # If there are subdirs, report their specific --help.
2113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2114 test -d "$ac_dir" ||
2115 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2116 continue
2117 ac_builddir=.
2118
2119case "$ac_dir" in
2120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2121*)
2122 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2123 # A ".." for each directory in $ac_dir_suffix.
2124 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2125 case $ac_top_builddir_sub in
2126 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2127 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2128 esac ;;
2129esac
2130ac_abs_top_builddir=$ac_pwd
2131ac_abs_builddir=$ac_pwd$ac_dir_suffix
2132# for backward compatibility:
2133ac_top_builddir=$ac_top_build_prefix
2134
2135case $srcdir in
2136 .) # We are building in place.
2137 ac_srcdir=.
2138 ac_top_srcdir=$ac_top_builddir_sub
2139 ac_abs_top_srcdir=$ac_pwd ;;
2140 [\\/]* | ?:[\\/]* ) # Absolute name.
2141 ac_srcdir=$srcdir$ac_dir_suffix;
2142 ac_top_srcdir=$srcdir
2143 ac_abs_top_srcdir=$srcdir ;;
2144 *) # Relative name.
2145 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2146 ac_top_srcdir=$ac_top_build_prefix$srcdir
2147 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2148esac
2149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2150
2151 cd "$ac_dir" || { ac_status=$?; continue; }
2152 # Check for guested configure.
2153 if test -f "$ac_srcdir/configure.gnu"; then
2154 echo &&
2155 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2156 elif test -f "$ac_srcdir/configure"; then
2157 echo &&
2158 $SHELL "$ac_srcdir/configure" --help=recursive
2159 else
2160 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2161 fi || ac_status=$?
2162 cd "$ac_pwd" || { ac_status=$?; break; }
2163 done
2164fi
2165
2166test -n "$ac_init_help" && exit $ac_status
2167if $ac_init_version; then
2168 cat <<\_ACEOF
Cristy814561c2016-07-11 12:42:00 -04002169ImageMagick configure 7.0.2-5
cristy14fefe52012-05-21 00:59:18 +00002170generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002171
cristy14fefe52012-05-21 00:59:18 +00002172Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002173This configure script is free software; the Free Software Foundation
2174gives unlimited permission to copy, distribute and modify it.
2175_ACEOF
2176 exit
2177fi
cristy8b350f62009-11-15 23:12:43 +00002178
2179## ------------------------ ##
2180## Autoconf initialization. ##
2181## ------------------------ ##
2182
2183# ac_fn_c_try_compile LINENO
2184# --------------------------
2185# Try to compile conftest.$ac_ext, and return whether this succeeded.
2186ac_fn_c_try_compile ()
2187{
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 rm -f conftest.$ac_objext
2190 if { { ac_try="$ac_compile"
2191case "(($ac_try" in
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_compile") 2>conftest.err
2198 ac_status=$?
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2203 fi
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && {
2206 test -z "$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 } && test -s conftest.$ac_objext; then :
2209 ac_retval=0
2210else
2211 $as_echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214 ac_retval=1
2215fi
cristyda16f162011-02-19 23:52:17 +00002216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002217 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002218
2219} # ac_fn_c_try_compile
2220
cristy95646052009-11-28 23:05:30 +00002221# ac_fn_c_try_cpp LINENO
2222# ----------------------
2223# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224ac_fn_c_try_cpp ()
2225{
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { { ac_try="$ac_cpp conftest.$ac_ext"
2228case "(($ac_try" in
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235 ac_status=$?
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2240 fi
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002242 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 }; then :
2246 ac_retval=0
2247else
2248 $as_echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251 ac_retval=1
2252fi
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002254 as_fn_set_status $ac_retval
2255
2256} # ac_fn_c_try_cpp
2257
cristy8b350f62009-11-15 23:12:43 +00002258# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2259# -------------------------------------------------------
2260# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2261# the include files in INCLUDES and setting the cache variable VAR
2262# accordingly.
2263ac_fn_c_check_header_mongrel ()
2264{
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002266 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002269if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002270 $as_echo_n "(cached) " >&6
2271fi
2272eval ac_res=\$$3
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274$as_echo "$ac_res" >&6; }
2275else
2276 # Is the header compilable?
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2278$as_echo_n "checking $2 usability... " >&6; }
2279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h. */
2281$4
2282#include <$2>
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285 ac_header_compiler=yes
2286else
2287 ac_header_compiler=no
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2291$as_echo "$ac_header_compiler" >&6; }
2292
2293# Is the header present?
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2295$as_echo_n "checking $2 presence... " >&6; }
2296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h. */
2298#include <$2>
2299_ACEOF
2300if ac_fn_c_try_cpp "$LINENO"; then :
2301 ac_header_preproc=yes
2302else
2303 ac_header_preproc=no
2304fi
cristyda16f162011-02-19 23:52:17 +00002305rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2307$as_echo "$ac_header_preproc" >&6; }
2308
2309# So? What about this header?
2310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2311 yes:no: )
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2313$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2315$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2316 ;;
2317 no:yes:* )
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2319$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2321$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2323$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2325$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2327$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Cristy6720ed72016-02-09 09:27:35 -05002328( $as_echo "## ---------------------------------------------------------------- ##
2329## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
2330## ---------------------------------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002331 ) | sed "s/^/$as_me: WARNING: /" >&2
2332 ;;
2333esac
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002336if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002337 $as_echo_n "(cached) " >&6
2338else
2339 eval "$3=\$ac_header_compiler"
2340fi
2341eval ac_res=\$$3
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343$as_echo "$ac_res" >&6; }
2344fi
cristyda16f162011-02-19 23:52:17 +00002345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002346
2347} # ac_fn_c_check_header_mongrel
2348
2349# ac_fn_c_try_run LINENO
2350# ----------------------
2351# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2352# that executables *can* be run.
2353ac_fn_c_try_run ()
2354{
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 if { { ac_try="$ac_link"
2357case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2360esac
2361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362$as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>&5
2364 ac_status=$?
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2367 { { case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370esac
2371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372$as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_try") 2>&5
2374 ac_status=$?
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; }; }; then :
2377 ac_retval=0
2378else
2379 $as_echo "$as_me: program exited with status $ac_status" >&5
2380 $as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383 ac_retval=$ac_status
2384fi
2385 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002387 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002388
2389} # ac_fn_c_try_run
2390
2391# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2392# -------------------------------------------------------
2393# Tests whether HEADER exists and can be compiled using the include files in
2394# INCLUDES, setting the cache variable VAR accordingly.
2395ac_fn_c_check_header_compile ()
2396{
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002400if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002401 $as_echo_n "(cached) " >&6
2402else
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h. */
2405$4
2406#include <$2>
2407_ACEOF
2408if ac_fn_c_try_compile "$LINENO"; then :
2409 eval "$3=yes"
2410else
2411 eval "$3=no"
2412fi
2413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414fi
2415eval ac_res=\$$3
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002419
2420} # ac_fn_c_check_header_compile
2421
cristya0b81c32010-01-22 02:54:33 +00002422# ac_fn_cxx_try_compile LINENO
2423# ----------------------------
2424# Try to compile conftest.$ac_ext, and return whether this succeeded.
2425ac_fn_cxx_try_compile ()
2426{
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 rm -f conftest.$ac_objext
2429 if { { ac_try="$ac_compile"
2430case "(($ac_try" in
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2433esac
2434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435$as_echo "$ac_try_echo"; } >&5
2436 (eval "$ac_compile") 2>conftest.err
2437 ac_status=$?
2438 if test -s conftest.err; then
2439 grep -v '^ *+' conftest.err >conftest.er1
2440 cat conftest.er1 >&5
2441 mv -f conftest.er1 conftest.err
2442 fi
2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444 test $ac_status = 0; } && {
2445 test -z "$ac_cxx_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest.$ac_objext; then :
2448 ac_retval=0
2449else
2450 $as_echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453 ac_retval=1
2454fi
cristyda16f162011-02-19 23:52:17 +00002455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002456 as_fn_set_status $ac_retval
2457
2458} # ac_fn_cxx_try_compile
2459
cristyd95b7a52013-10-23 13:12:53 +00002460# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2461# --------------------------------------------
2462# Tries to find the compile-time value of EXPR in a program that includes
2463# INCLUDES, setting VAR accordingly. Returns whether the value could be
2464# computed
2465ac_fn_c_compute_int ()
2466{
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 if test "$cross_compiling" = yes; then
2469 # Depending upon the size, compute the lo and hi bounds.
2470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471/* end confdefs.h. */
2472$4
2473int
2474main ()
2475{
2476static int test_array [1 - 2 * !(($2) >= 0)];
2477test_array [0] = 0;
2478return test_array [0];
2479
2480 ;
2481 return 0;
2482}
2483_ACEOF
2484if ac_fn_c_try_compile "$LINENO"; then :
2485 ac_lo=0 ac_mid=0
2486 while :; do
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488/* end confdefs.h. */
2489$4
2490int
2491main ()
2492{
2493static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2494test_array [0] = 0;
2495return test_array [0];
2496
2497 ;
2498 return 0;
2499}
2500_ACEOF
2501if ac_fn_c_try_compile "$LINENO"; then :
2502 ac_hi=$ac_mid; break
2503else
2504 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2505 if test $ac_lo -le $ac_mid; then
2506 ac_lo= ac_hi=
2507 break
2508 fi
2509 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2510fi
2511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512 done
2513else
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515/* end confdefs.h. */
2516$4
2517int
2518main ()
2519{
2520static int test_array [1 - 2 * !(($2) < 0)];
2521test_array [0] = 0;
2522return test_array [0];
2523
2524 ;
2525 return 0;
2526}
2527_ACEOF
2528if ac_fn_c_try_compile "$LINENO"; then :
2529 ac_hi=-1 ac_mid=-1
2530 while :; do
2531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h. */
2533$4
2534int
2535main ()
2536{
2537static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2538test_array [0] = 0;
2539return test_array [0];
2540
2541 ;
2542 return 0;
2543}
2544_ACEOF
2545if ac_fn_c_try_compile "$LINENO"; then :
2546 ac_lo=$ac_mid; break
2547else
2548 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2549 if test $ac_mid -le $ac_hi; then
2550 ac_lo= ac_hi=
2551 break
2552 fi
2553 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2554fi
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556 done
2557else
2558 ac_lo= ac_hi=
2559fi
2560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561fi
2562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563# Binary search between lo and hi bounds.
2564while test "x$ac_lo" != "x$ac_hi"; do
2565 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h. */
2568$4
2569int
2570main ()
2571{
2572static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2573test_array [0] = 0;
2574return test_array [0];
2575
2576 ;
2577 return 0;
2578}
2579_ACEOF
2580if ac_fn_c_try_compile "$LINENO"; then :
2581 ac_hi=$ac_mid
2582else
2583 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2584fi
2585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586done
2587case $ac_lo in #((
2588?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2589'') ac_retval=1 ;;
2590esac
2591 else
2592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593/* end confdefs.h. */
2594$4
2595static long int longval () { return $2; }
2596static unsigned long int ulongval () { return $2; }
2597#include <stdio.h>
2598#include <stdlib.h>
2599int
2600main ()
2601{
2602
2603 FILE *f = fopen ("conftest.val", "w");
2604 if (! f)
2605 return 1;
2606 if (($2) < 0)
2607 {
2608 long int i = longval ();
2609 if (i != ($2))
2610 return 1;
2611 fprintf (f, "%ld", i);
2612 }
2613 else
2614 {
2615 unsigned long int i = ulongval ();
2616 if (i != ($2))
2617 return 1;
2618 fprintf (f, "%lu", i);
2619 }
2620 /* Do not output a trailing newline, as this causes \r\n confusion
2621 on some platforms. */
2622 return ferror (f) || fclose (f) != 0;
2623
2624 ;
2625 return 0;
2626}
2627_ACEOF
2628if ac_fn_c_try_run "$LINENO"; then :
2629 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2630else
2631 ac_retval=1
2632fi
2633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2634 conftest.$ac_objext conftest.beam conftest.$ac_ext
2635rm -f conftest.val
2636
2637 fi
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639 as_fn_set_status $ac_retval
2640
2641} # ac_fn_c_compute_int
2642
cristy8b350f62009-11-15 23:12:43 +00002643# ac_fn_c_try_link LINENO
2644# -----------------------
2645# Try to link conftest.$ac_ext, and return whether this succeeded.
2646ac_fn_c_try_link ()
2647{
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 rm -f conftest.$ac_objext conftest$ac_exeext
2650 if { { ac_try="$ac_link"
2651case "(($ac_try" in
2652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653 *) ac_try_echo=$ac_try;;
2654esac
2655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656$as_echo "$ac_try_echo"; } >&5
2657 (eval "$ac_link") 2>conftest.err
2658 ac_status=$?
2659 if test -s conftest.err; then
2660 grep -v '^ *+' conftest.err >conftest.er1
2661 cat conftest.er1 >&5
2662 mv -f conftest.er1 conftest.err
2663 fi
2664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2665 test $ac_status = 0; } && {
2666 test -z "$ac_c_werror_flag" ||
2667 test ! -s conftest.err
2668 } && test -s conftest$ac_exeext && {
2669 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002670 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002671 }; then :
2672 ac_retval=0
2673else
2674 $as_echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677 ac_retval=1
2678fi
2679 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2680 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2681 # interfere with the next link command; also delete a directory that is
2682 # left behind by Apple's compiler. We do this before executing the actions.
2683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002685 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002686
2687} # ac_fn_c_try_link
2688
cristy73bd4a52010-10-05 11:24:23 +00002689# ac_fn_c_check_func LINENO FUNC VAR
2690# ----------------------------------
2691# Tests whether FUNC exists, setting the cache variable VAR accordingly
2692ac_fn_c_check_func ()
2693{
2694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2696$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002697if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002698 $as_echo_n "(cached) " >&6
2699else
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h. */
2702/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2703 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2704#define $2 innocuous_$2
2705
2706/* System header to define __stub macros and hopefully few prototypes,
2707 which can conflict with char $2 (); below.
2708 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2709 <limits.h> exists even on freestanding compilers. */
2710
2711#ifdef __STDC__
2712# include <limits.h>
2713#else
2714# include <assert.h>
2715#endif
2716
2717#undef $2
2718
2719/* Override any GCC internal prototype to avoid an error.
2720 Use char because int might match the return type of a GCC
2721 builtin and then its argument prototype would still apply. */
2722#ifdef __cplusplus
2723extern "C"
2724#endif
2725char $2 ();
2726/* The GNU C library defines this for functions which it implements
2727 to always fail with ENOSYS. Some functions are actually named
2728 something starting with __ and the normal name is an alias. */
2729#if defined __stub_$2 || defined __stub___$2
2730choke me
2731#endif
2732
2733int
2734main ()
2735{
2736return $2 ();
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_link "$LINENO"; then :
2742 eval "$3=yes"
2743else
2744 eval "$3=no"
2745fi
2746rm -f core conftest.err conftest.$ac_objext \
2747 conftest$ac_exeext conftest.$ac_ext
2748fi
2749eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002753
2754} # ac_fn_c_check_func
2755
2756# ac_fn_cxx_try_cpp LINENO
2757# ------------------------
2758# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2759ac_fn_cxx_try_cpp ()
2760{
2761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762 if { { ac_try="$ac_cpp conftest.$ac_ext"
2763case "(($ac_try" in
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2766esac
2767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768$as_echo "$ac_try_echo"; } >&5
2769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2770 ac_status=$?
2771 if test -s conftest.err; then
2772 grep -v '^ *+' conftest.err >conftest.er1
2773 cat conftest.er1 >&5
2774 mv -f conftest.er1 conftest.err
2775 fi
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002777 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002778 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2779 test ! -s conftest.err
2780 }; then :
2781 ac_retval=0
2782else
2783 $as_echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786 ac_retval=1
2787fi
cristyda16f162011-02-19 23:52:17 +00002788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002789 as_fn_set_status $ac_retval
2790
2791} # ac_fn_cxx_try_cpp
2792
2793# ac_fn_cxx_try_link LINENO
2794# -------------------------
2795# Try to link conftest.$ac_ext, and return whether this succeeded.
2796ac_fn_cxx_try_link ()
2797{
2798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799 rm -f conftest.$ac_objext conftest$ac_exeext
2800 if { { ac_try="$ac_link"
2801case "(($ac_try" in
2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803 *) ac_try_echo=$ac_try;;
2804esac
2805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806$as_echo "$ac_try_echo"; } >&5
2807 (eval "$ac_link") 2>conftest.err
2808 ac_status=$?
2809 if test -s conftest.err; then
2810 grep -v '^ *+' conftest.err >conftest.er1
2811 cat conftest.er1 >&5
2812 mv -f conftest.er1 conftest.err
2813 fi
2814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815 test $ac_status = 0; } && {
2816 test -z "$ac_cxx_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest$ac_exeext && {
2819 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002820 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002821 }; then :
2822 ac_retval=0
2823else
2824 $as_echo "$as_me: failed program was:" >&5
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
2827 ac_retval=1
2828fi
2829 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2830 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2831 # interfere with the next link command; also delete a directory that is
2832 # left behind by Apple's compiler. We do this before executing the actions.
2833 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002835 as_fn_set_status $ac_retval
2836
2837} # ac_fn_cxx_try_link
2838
cristy8b350f62009-11-15 23:12:43 +00002839# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2840# -------------------------------------------
2841# Tests whether TYPE exists after having included INCLUDES, setting cache
2842# variable VAR accordingly.
2843ac_fn_c_check_type ()
2844{
2845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2847$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002848if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002849 $as_echo_n "(cached) " >&6
2850else
2851 eval "$3=no"
2852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853/* end confdefs.h. */
2854$4
2855int
2856main ()
2857{
2858if (sizeof ($2))
2859 return 0;
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h. */
2867$4
2868int
2869main ()
2870{
2871if (sizeof (($2)))
2872 return 0;
2873 ;
2874 return 0;
2875}
2876_ACEOF
2877if ac_fn_c_try_compile "$LINENO"; then :
2878
2879else
2880 eval "$3=yes"
2881fi
2882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883fi
2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885fi
2886eval ac_res=\$$3
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002890
2891} # ac_fn_c_check_type
2892
cristy92703d82010-04-26 00:18:18 +00002893# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2894# ----------------------------------------------------
2895# Tries to find if the field MEMBER exists in type AGGR, after including
2896# INCLUDES, setting cache variable VAR accordingly.
2897ac_fn_c_check_member ()
2898{
2899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2901$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002902if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002903 $as_echo_n "(cached) " >&6
2904else
2905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h. */
2907$5
2908int
2909main ()
2910{
2911static $2 ac_aggr;
2912if (ac_aggr.$3)
2913return 0;
2914 ;
2915 return 0;
2916}
2917_ACEOF
2918if ac_fn_c_try_compile "$LINENO"; then :
2919 eval "$4=yes"
2920else
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h. */
2923$5
2924int
2925main ()
2926{
2927static $2 ac_aggr;
2928if (sizeof ac_aggr.$3)
2929return 0;
2930 ;
2931 return 0;
2932}
2933_ACEOF
2934if ac_fn_c_try_compile "$LINENO"; then :
2935 eval "$4=yes"
2936else
2937 eval "$4=no"
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942fi
2943eval ac_res=\$$4
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002946 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002947
2948} # ac_fn_c_check_member
2949
cristy5eef09f2012-10-16 12:08:28 +00002950# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2951# ---------------------------------------------
2952# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2953# accordingly.
2954ac_fn_c_check_decl ()
2955{
2956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2957 as_decl_name=`echo $2|sed 's/ *(.*//'`
2958 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2960$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2961if eval \${$3+:} false; then :
2962 $as_echo_n "(cached) " >&6
2963else
2964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h. */
2966$4
2967int
2968main ()
2969{
2970#ifndef $as_decl_name
2971#ifdef __cplusplus
2972 (void) $as_decl_use;
2973#else
2974 (void) $as_decl_name;
2975#endif
2976#endif
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982if ac_fn_c_try_compile "$LINENO"; then :
2983 eval "$3=yes"
2984else
2985 eval "$3=no"
2986fi
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988fi
2989eval ac_res=\$$3
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2991$as_echo "$ac_res" >&6; }
2992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993
2994} # ac_fn_c_check_decl
2995
cristy501c8042011-05-26 17:46:28 +00002996# ac_fn_c_find_intX_t LINENO BITS VAR
2997# -----------------------------------
2998# Finds a signed integer type with width BITS, setting cache variable VAR
2999# accordingly.
3000ac_fn_c_find_intX_t ()
3001{
3002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
3004$as_echo_n "checking for int$2_t... " >&6; }
3005if eval \${$3+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007else
3008 eval "$3=no"
3009 # Order is important - never check a type that is potentially smaller
3010 # than half of the expected target width.
3011 for ac_type in int$2_t 'int' 'long int' \
3012 'long long int' 'short int' 'signed char'; do
3013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014/* end confdefs.h. */
3015$ac_includes_default
3016 enum { N = $2 / 2 - 1 };
3017int
3018main ()
3019{
3020static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00003021test_array [0] = 0;
3022return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003023
3024 ;
3025 return 0;
3026}
3027_ACEOF
3028if ac_fn_c_try_compile "$LINENO"; then :
3029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030/* end confdefs.h. */
3031$ac_includes_default
3032 enum { N = $2 / 2 - 1 };
3033int
3034main ()
3035{
3036static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3037 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00003038test_array [0] = 0;
3039return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045if ac_fn_c_try_compile "$LINENO"; then :
3046
3047else
3048 case $ac_type in #(
3049 int$2_t) :
3050 eval "$3=yes" ;; #(
3051 *) :
3052 eval "$3=\$ac_type" ;;
3053esac
3054fi
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058 if eval test \"x\$"$3"\" = x"no"; then :
3059
3060else
3061 break
3062fi
3063 done
3064fi
3065eval ac_res=\$$3
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3067$as_echo "$ac_res" >&6; }
3068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3069
3070} # ac_fn_c_find_intX_t
3071
3072# ac_fn_c_find_uintX_t LINENO BITS VAR
3073# ------------------------------------
3074# Finds an unsigned integer type with width BITS, setting cache variable VAR
3075# accordingly.
3076ac_fn_c_find_uintX_t ()
3077{
3078 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3080$as_echo_n "checking for uint$2_t... " >&6; }
3081if eval \${$3+:} false; then :
3082 $as_echo_n "(cached) " >&6
3083else
3084 eval "$3=no"
3085 # Order is important - never check a type that is potentially smaller
3086 # than half of the expected target width.
3087 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3088 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h. */
3091$ac_includes_default
3092int
3093main ()
3094{
3095static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00003096test_array [0] = 0;
3097return test_array [0];
cristy501c8042011-05-26 17:46:28 +00003098
3099 ;
3100 return 0;
3101}
3102_ACEOF
3103if ac_fn_c_try_compile "$LINENO"; then :
3104 case $ac_type in #(
3105 uint$2_t) :
3106 eval "$3=yes" ;; #(
3107 *) :
3108 eval "$3=\$ac_type" ;;
3109esac
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112 if eval test \"x\$"$3"\" = x"no"; then :
3113
3114else
3115 break
3116fi
3117 done
3118fi
3119eval ac_res=\$$3
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3121$as_echo "$ac_res" >&6; }
3122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3123
3124} # ac_fn_c_find_uintX_t
3125
cristy8b350f62009-11-15 23:12:43 +00003126# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3127# ---------------------------------------------------------
3128# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3129# the include files in INCLUDES and setting the cache variable VAR
3130# accordingly.
3131ac_fn_cxx_check_header_mongrel ()
3132{
3133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003134 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3136$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003137if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003138 $as_echo_n "(cached) " >&6
3139fi
3140eval ac_res=\$$3
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3142$as_echo "$ac_res" >&6; }
3143else
3144 # Is the header compilable?
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3146$as_echo_n "checking $2 usability... " >&6; }
3147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h. */
3149$4
3150#include <$2>
3151_ACEOF
3152if ac_fn_cxx_try_compile "$LINENO"; then :
3153 ac_header_compiler=yes
3154else
3155 ac_header_compiler=no
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3159$as_echo "$ac_header_compiler" >&6; }
3160
3161# Is the header present?
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3163$as_echo_n "checking $2 presence... " >&6; }
3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h. */
3166#include <$2>
3167_ACEOF
3168if ac_fn_cxx_try_cpp "$LINENO"; then :
3169 ac_header_preproc=yes
3170else
3171 ac_header_preproc=no
3172fi
cristyda16f162011-02-19 23:52:17 +00003173rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3175$as_echo "$ac_header_preproc" >&6; }
3176
3177# So? What about this header?
3178case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3179 yes:no: )
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3181$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3183$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3184 ;;
3185 no:yes:* )
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3187$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3189$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3191$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3193$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3195$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Cristy6720ed72016-02-09 09:27:35 -05003196( $as_echo "## ---------------------------------------------------------------- ##
3197## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
3198## ---------------------------------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003199 ) | sed "s/^/$as_me: WARNING: /" >&2
3200 ;;
3201esac
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3203$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003204if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003205 $as_echo_n "(cached) " >&6
3206else
3207 eval "$3=\$ac_header_compiler"
3208fi
3209eval ac_res=\$$3
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3211$as_echo "$ac_res" >&6; }
3212fi
cristyda16f162011-02-19 23:52:17 +00003213 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003214
3215} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003216cat >config.log <<_ACEOF
3217This file contains any messages produced by compilers while
3218running configure, to aid debugging if configure makes a mistake.
3219
Cristy814561c2016-07-11 12:42:00 -04003220It was created by ImageMagick $as_me 7.0.2-5, which was
cristy14fefe52012-05-21 00:59:18 +00003221generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003222
3223 $ $0 $@
3224
3225_ACEOF
3226exec 5>>config.log
3227{
3228cat <<_ASUNAME
3229## --------- ##
3230## Platform. ##
3231## --------- ##
3232
3233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3234uname -m = `(uname -m) 2>/dev/null || echo unknown`
3235uname -r = `(uname -r) 2>/dev/null || echo unknown`
3236uname -s = `(uname -s) 2>/dev/null || echo unknown`
3237uname -v = `(uname -v) 2>/dev/null || echo unknown`
3238
3239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3240/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3241
3242/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3243/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3245/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3246/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3247/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3248/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3249
3250_ASUNAME
3251
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255 IFS=$as_save_IFS
3256 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003257 $as_echo "PATH: $as_dir"
3258 done
cristy3ed852e2009-09-05 21:47:34 +00003259IFS=$as_save_IFS
3260
3261} >&5
3262
3263cat >&5 <<_ACEOF
3264
3265
3266## ----------- ##
3267## Core tests. ##
3268## ----------- ##
3269
3270_ACEOF
3271
3272
3273# Keep a trace of the command line.
3274# Strip out --no-create and --no-recursion so they do not pile up.
3275# Strip out --silent because we don't want to record it for future runs.
3276# Also quote any args containing shell meta-characters.
3277# Make two passes to allow for proper duplicate-argument suppression.
3278ac_configure_args=
3279ac_configure_args0=
3280ac_configure_args1=
3281ac_must_keep_next=false
3282for ac_pass in 1 2
3283do
3284 for ac_arg
3285 do
3286 case $ac_arg in
3287 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3289 | -silent | --silent | --silen | --sile | --sil)
3290 continue ;;
3291 *\'*)
3292 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3293 esac
3294 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003295 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003296 2)
cristy8b350f62009-11-15 23:12:43 +00003297 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003298 if test $ac_must_keep_next = true; then
3299 ac_must_keep_next=false # Got value, back to normal.
3300 else
3301 case $ac_arg in
3302 *=* | --config-cache | -C | -disable-* | --disable-* \
3303 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3304 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3305 | -with-* | --with-* | -without-* | --without-* | --x)
3306 case "$ac_configure_args0 " in
3307 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3308 esac
3309 ;;
3310 -* ) ac_must_keep_next=true ;;
3311 esac
3312 fi
cristy8b350f62009-11-15 23:12:43 +00003313 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003314 ;;
3315 esac
3316 done
3317done
cristy8b350f62009-11-15 23:12:43 +00003318{ ac_configure_args0=; unset ac_configure_args0;}
3319{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003320
3321# When interrupted or exit'd, cleanup temporary files, and complete
3322# config.log. We remove comments because anyway the quotes in there
3323# would cause problems or look ugly.
3324# WARNING: Use '\'' to represent an apostrophe within the trap.
3325# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3326trap 'exit_status=$?
3327 # Save into config.log some information that might help in debugging.
3328 {
3329 echo
3330
cristy98dddb52010-11-04 00:30:15 +00003331 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003332## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003333## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003334 echo
3335 # The following way of writing the cache mishandles newlines in values,
3336(
3337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3338 eval ac_val=\$$ac_var
3339 case $ac_val in #(
3340 *${as_nl}*)
3341 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003342 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3344 esac
3345 case $ac_var in #(
3346 _ | IFS | as_nl) ;; #(
3347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003348 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003349 esac ;;
3350 esac
3351 done
3352 (set) 2>&1 |
3353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3354 *${as_nl}ac_space=\ *)
3355 sed -n \
3356 "s/'\''/'\''\\\\'\'''\''/g;
3357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3358 ;; #(
3359 *)
3360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3361 ;;
3362 esac |
3363 sort
3364)
3365 echo
3366
cristy98dddb52010-11-04 00:30:15 +00003367 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003368## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003369## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003370 echo
3371 for ac_var in $ac_subst_vars
3372 do
3373 eval ac_val=\$$ac_var
3374 case $ac_val in
3375 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3376 esac
3377 $as_echo "$ac_var='\''$ac_val'\''"
3378 done | sort
3379 echo
3380
3381 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003382 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003383## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003384## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003385 echo
3386 for ac_var in $ac_subst_files
3387 do
3388 eval ac_val=\$$ac_var
3389 case $ac_val in
3390 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3391 esac
3392 $as_echo "$ac_var='\''$ac_val'\''"
3393 done | sort
3394 echo
3395 fi
3396
3397 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003398 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003399## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003400## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003401 echo
3402 cat confdefs.h
3403 echo
3404 fi
3405 test "$ac_signal" != 0 &&
3406 $as_echo "$as_me: caught signal $ac_signal"
3407 $as_echo "$as_me: exit $exit_status"
3408 } >&5
3409 rm -f core *.core core.conftest.* &&
3410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3411 exit $exit_status
3412' 0
3413for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003415done
3416ac_signal=0
3417
3418# confdefs.h avoids OS command line length limits that DEFS can exceed.
3419rm -f -r conftest* confdefs.h
3420
cristy8b350f62009-11-15 23:12:43 +00003421$as_echo "/* confdefs.h */" > confdefs.h
3422
cristy3ed852e2009-09-05 21:47:34 +00003423# Predefined preprocessor variables.
3424
3425cat >>confdefs.h <<_ACEOF
3426#define PACKAGE_NAME "$PACKAGE_NAME"
3427_ACEOF
3428
cristy3ed852e2009-09-05 21:47:34 +00003429cat >>confdefs.h <<_ACEOF
3430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3431_ACEOF
3432
cristy3ed852e2009-09-05 21:47:34 +00003433cat >>confdefs.h <<_ACEOF
3434#define PACKAGE_VERSION "$PACKAGE_VERSION"
3435_ACEOF
3436
cristy3ed852e2009-09-05 21:47:34 +00003437cat >>confdefs.h <<_ACEOF
3438#define PACKAGE_STRING "$PACKAGE_STRING"
3439_ACEOF
3440
cristy3ed852e2009-09-05 21:47:34 +00003441cat >>confdefs.h <<_ACEOF
3442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3443_ACEOF
3444
cristy8b350f62009-11-15 23:12:43 +00003445cat >>confdefs.h <<_ACEOF
3446#define PACKAGE_URL "$PACKAGE_URL"
3447_ACEOF
3448
cristy3ed852e2009-09-05 21:47:34 +00003449
3450# Let the site file select an alternate cache file if it wants to.
3451# Prefer an explicitly selected file to automatically selected ones.
3452ac_site_file1=NONE
3453ac_site_file2=NONE
3454if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003455 # We do not want a PATH search for config.site.
3456 case $CONFIG_SITE in #((
3457 -*) ac_site_file1=./$CONFIG_SITE;;
3458 */*) ac_site_file1=$CONFIG_SITE;;
3459 *) ac_site_file1=./$CONFIG_SITE;;
3460 esac
cristy3ed852e2009-09-05 21:47:34 +00003461elif test "x$prefix" != xNONE; then
3462 ac_site_file1=$prefix/share/config.site
3463 ac_site_file2=$prefix/etc/config.site
3464else
3465 ac_site_file1=$ac_default_prefix/share/config.site
3466 ac_site_file2=$ac_default_prefix/etc/config.site
3467fi
3468for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3469do
3470 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003471 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003472 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003473$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3474 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003475 . "$ac_site_file" \
3476 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478as_fn_error $? "failed to load site script $ac_site_file
3479See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003480 fi
3481done
3482
3483if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003484 # Some versions of bash will fail to source /dev/null (special files
3485 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3486 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003487 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003488$as_echo "$as_me: loading cache $cache_file" >&6;}
3489 case $cache_file in
3490 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3491 *) . "./$cache_file";;
3492 esac
3493 fi
3494else
cristy8b350f62009-11-15 23:12:43 +00003495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003496$as_echo "$as_me: creating cache $cache_file" >&6;}
3497 >$cache_file
3498fi
3499
cristycd4c5312009-11-22 01:19:08 +00003500as_fn_append ac_header_list " stdlib.h"
3501as_fn_append ac_header_list " unistd.h"
3502as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003503# Check that the precious variables saved in the cache have kept the same
3504# value.
3505ac_cache_corrupted=false
3506for ac_var in $ac_precious_vars; do
3507 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3508 eval ac_new_set=\$ac_env_${ac_var}_set
3509 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3510 eval ac_new_val=\$ac_env_${ac_var}_value
3511 case $ac_old_set,$ac_new_set in
3512 set,)
cristy8b350f62009-11-15 23:12:43 +00003513 { $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 +00003514$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3515 ac_cache_corrupted=: ;;
3516 ,set)
cristy8b350f62009-11-15 23:12:43 +00003517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003518$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3519 ac_cache_corrupted=: ;;
3520 ,);;
3521 *)
3522 if test "x$ac_old_val" != "x$ac_new_val"; then
3523 # differences in whitespace do not lead to failure.
3524 ac_old_val_w=`echo x $ac_old_val`
3525 ac_new_val_w=`echo x $ac_new_val`
3526 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003528$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3529 ac_cache_corrupted=:
3530 else
cristy8b350f62009-11-15 23:12:43 +00003531 { $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 +00003532$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3533 eval $ac_var=\$ac_old_val
3534 fi
cristy8b350f62009-11-15 23:12:43 +00003535 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003536$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003537 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003538$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3539 fi;;
3540 esac
3541 # Pass precious variables to config.status.
3542 if test "$ac_new_set" = set; then
3543 case $ac_new_val in
3544 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3545 *) ac_arg=$ac_var=$ac_new_val ;;
3546 esac
3547 case " $ac_configure_args " in
3548 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003549 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003550 esac
3551 fi
3552done
3553if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003554 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003557$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003558 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003559fi
cristy8b350f62009-11-15 23:12:43 +00003560## -------------------- ##
3561## Main body of script. ##
3562## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003563
3564ac_ext=c
3565ac_cpp='$CPP $CPPFLAGS'
3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570
3571
3572ac_aux_dir=
3573for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003574 if test -f "$ac_dir/install-sh"; then
3575 ac_aux_dir=$ac_dir
3576 ac_install_sh="$ac_aux_dir/install-sh -c"
3577 break
3578 elif test -f "$ac_dir/install.sh"; then
3579 ac_aux_dir=$ac_dir
3580 ac_install_sh="$ac_aux_dir/install.sh -c"
3581 break
3582 elif test -f "$ac_dir/shtool"; then
3583 ac_aux_dir=$ac_dir
3584 ac_install_sh="$ac_aux_dir/shtool install -c"
3585 break
3586 fi
cristy3ed852e2009-09-05 21:47:34 +00003587done
3588if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003589 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003590fi
3591
3592# These three variables are undocumented and unsupported,
3593# and are intended to be withdrawn in a future Autoconf release.
3594# They can cause serious problems if a builder's source tree is in a directory
3595# whose full name contains unusual characters.
3596ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3597ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3598ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3599
3600
3601
3602
3603ac_config_headers="$ac_config_headers config/config.h"
3604
cristy24fc1fe2010-10-23 21:13:01 +00003605
cristy01ff9f32012-12-01 18:15:29 +00003606ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
cristy73bd4a52010-10-05 11:24:23 +00003607
cristy3ed852e2009-09-05 21:47:34 +00003608# Make sure we can run config.sub.
3609$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003610 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003611
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003614if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003615 $as_echo_n "(cached) " >&6
3616else
3617 ac_build_alias=$build_alias
3618test "x$ac_build_alias" = x &&
3619 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3620test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003621 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003622ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003623 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003624
3625fi
cristy8b350f62009-11-15 23:12:43 +00003626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003627$as_echo "$ac_cv_build" >&6; }
3628case $ac_cv_build in
3629*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003630*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003631esac
3632build=$ac_cv_build
3633ac_save_IFS=$IFS; IFS='-'
3634set x $ac_cv_build
3635shift
3636build_cpu=$1
3637build_vendor=$2
3638shift; shift
3639# Remember, the first character of IFS is used to create $*,
3640# except with old shells:
3641build_os=$*
3642IFS=$ac_save_IFS
3643case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3644
3645
cristy8b350f62009-11-15 23:12:43 +00003646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003647$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003648if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003649 $as_echo_n "(cached) " >&6
3650else
3651 if test "x$host_alias" = x; then
3652 ac_cv_host=$ac_cv_build
3653else
3654 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003655 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003656fi
3657
3658fi
cristy8b350f62009-11-15 23:12:43 +00003659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003660$as_echo "$ac_cv_host" >&6; }
3661case $ac_cv_host in
3662*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003663*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003664esac
3665host=$ac_cv_host
3666ac_save_IFS=$IFS; IFS='-'
3667set x $ac_cv_host
3668shift
3669host_cpu=$1
3670host_vendor=$2
3671shift; shift
3672# Remember, the first character of IFS is used to create $*,
3673# except with old shells:
3674host_os=$*
3675IFS=$ac_save_IFS
3676case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3677
3678
cristy8b350f62009-11-15 23:12:43 +00003679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003680$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003681if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003682 $as_echo_n "(cached) " >&6
3683else
3684 if test "x$target_alias" = x; then
3685 ac_cv_target=$ac_cv_host
3686else
3687 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003689fi
3690
3691fi
cristy8b350f62009-11-15 23:12:43 +00003692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003693$as_echo "$ac_cv_target" >&6; }
3694case $ac_cv_target in
3695*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003696*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003697esac
3698target=$ac_cv_target
3699ac_save_IFS=$IFS; IFS='-'
3700set x $ac_cv_target
3701shift
3702target_cpu=$1
3703target_vendor=$2
3704shift; shift
3705# Remember, the first character of IFS is used to create $*,
3706# except with old shells:
3707target_os=$*
3708IFS=$ac_save_IFS
3709case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3710
3711
3712# The aliases save the names the user supplied, while $host etc.
3713# will get canonicalized.
3714test -n "$target_alias" &&
3715 test "$program_prefix$program_suffix$program_transform_name" = \
3716 NONENONEs,x,x, &&
3717 program_prefix=${target_alias}-
3718
cristy837d6dc2010-02-27 01:16:57 +00003719
cristyead532a2015-06-05 00:49:30 +00003720am__api_version='1.15'
cristy73bd4a52010-10-05 11:24:23 +00003721
3722# Find a good install program. We prefer a C program (faster),
3723# so one script is as good as another. But avoid the broken or
3724# incompatible versions:
3725# SysV /etc/install, /usr/sbin/install
3726# SunOS /usr/etc/install
3727# IRIX /sbin/install
3728# AIX /bin/install
3729# AmigaOS /C/install, which installs bootblocks on floppy discs
3730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3733# OS/2's system install, which has a completely different semantic
3734# ./install, which can be erroneously created by make from ./install.sh.
3735# Reject install programs that cannot install multiple files.
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3737$as_echo_n "checking for a BSD-compatible install... " >&6; }
3738if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003739if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003740 $as_echo_n "(cached) " >&6
3741else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 # Account for people who put trailing slashes in PATH elements.
3748case $as_dir/ in #((
3749 ./ | .// | /[cC]/* | \
3750 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3751 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3752 /usr/ucb/* ) ;;
3753 *)
3754 # OSF1 and SCO ODT 3.0 have their own names for install.
3755 # Don't use installbsd from OSF since it installs stuff as root
3756 # by default.
3757 for ac_prog in ginstall scoinst install; do
3758 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003759 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003760 if test $ac_prog = install &&
3761 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762 # AIX install. It has an incompatible calling convention.
3763 :
3764 elif test $ac_prog = install &&
3765 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766 # program-specific install script used by HP pwplus--don't use.
3767 :
3768 else
3769 rm -rf conftest.one conftest.two conftest.dir
3770 echo one > conftest.one
3771 echo two > conftest.two
3772 mkdir conftest.dir
3773 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3774 test -s conftest.one && test -s conftest.two &&
3775 test -s conftest.dir/conftest.one &&
3776 test -s conftest.dir/conftest.two
3777 then
3778 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3779 break 3
3780 fi
3781 fi
3782 fi
3783 done
3784 done
3785 ;;
3786esac
3787
3788 done
3789IFS=$as_save_IFS
3790
3791rm -rf conftest.one conftest.two conftest.dir
3792
3793fi
3794 if test "${ac_cv_path_install+set}" = set; then
3795 INSTALL=$ac_cv_path_install
3796 else
3797 # As a last resort, use the slow shell script. Don't cache a
3798 # value for INSTALL within a source directory, because that will
3799 # break other packages using the cache if that directory is
3800 # removed, or if the value is a relative name.
3801 INSTALL=$ac_install_sh
3802 fi
3803fi
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3805$as_echo "$INSTALL" >&6; }
3806
3807# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3808# It thinks the first close brace ends the variable substitution.
3809test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3810
3811test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3812
3813test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814
cristy9af1cbf2014-12-28 22:03:09 +00003815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3816$as_echo_n "checking whether build environment is sane... " >&6; }
3817# Reject unsafe characters in $srcdir or the absolute working directory
3818# name. Accept space and tab only in the latter.
3819am_lf='
3820'
3821case `pwd` in
3822 *[\\\"\#\$\&\'\`$am_lf]*)
3823 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3824esac
3825case $srcdir in
3826 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3827 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3828esac
3829
3830# Do 'set' in a subshell so we don't clobber the current shell's
3831# arguments. Must try -L first in case configure is actually a
3832# symlink; some systems play weird games with the mod time of symlinks
3833# (eg FreeBSD returns the mod time of the symlink's containing
3834# directory).
3835if (
3836 am_has_slept=no
3837 for am_try in 1 2; do
3838 echo "timestamp, slept: $am_has_slept" > conftest.file
3839 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3840 if test "$*" = "X"; then
3841 # -L didn't work.
3842 set X `ls -t "$srcdir/configure" conftest.file`
3843 fi
3844 if test "$*" != "X $srcdir/configure conftest.file" \
3845 && test "$*" != "X conftest.file $srcdir/configure"; then
3846
3847 # If neither matched, then we have a broken ls. This can happen
3848 # if, for instance, CONFIG_SHELL is bash and it inherits a
3849 # broken ls alias from the environment. This has actually
3850 # happened. Such a system could not be considered "sane".
3851 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3852 alias in your environment" "$LINENO" 5
3853 fi
3854 if test "$2" = conftest.file || test $am_try -eq 2; then
3855 break
3856 fi
3857 # Just in case.
3858 sleep 1
3859 am_has_slept=yes
3860 done
3861 test "$2" = conftest.file
3862 )
3863then
3864 # Ok.
3865 :
3866else
3867 as_fn_error $? "newly created file is older than distributed files!
3868Check your system clock" "$LINENO" 5
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871$as_echo "yes" >&6; }
3872# If we didn't sleep, we still need to ensure time stamps of config.status and
3873# generated files are strictly newer.
3874am_sleep_pid=
3875if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3876 ( sleep 1 ) &
3877 am_sleep_pid=$!
3878fi
3879
3880rm -f conftest.file
3881
cristy73bd4a52010-10-05 11:24:23 +00003882test "$program_prefix" != NONE &&
3883 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3884# Use a double $ so make ignores it.
3885test "$program_suffix" != NONE &&
3886 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3887# Double any \ or $.
3888# By default was `s,x,x', remove it if useless.
3889ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3890program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3891
cristyead532a2015-06-05 00:49:30 +00003892# Expand $ac_aux_dir to an absolute path.
3893am_aux_dir=`cd "$ac_aux_dir" && pwd`
cristy73bd4a52010-10-05 11:24:23 +00003894
3895if test x"${MISSING+set}" != xset; then
3896 case $am_aux_dir in
3897 *\ * | *\ *)
3898 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3899 *)
3900 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3901 esac
3902fi
3903# Use eval to expand $SHELL
cristy58d34aa2013-01-24 15:11:54 +00003904if eval "$MISSING --is-lightweight"; then
3905 am_missing_run="$MISSING "
cristy73bd4a52010-10-05 11:24:23 +00003906else
3907 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3909$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003910fi
3911
cristyead532a2015-06-05 00:49:30 +00003912if test x"${install_sh+set}" != xset; then
cristy73bd4a52010-10-05 11:24:23 +00003913 case $am_aux_dir in
3914 *\ * | *\ *)
3915 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3916 *)
3917 install_sh="\${SHELL} $am_aux_dir/install-sh"
3918 esac
3919fi
3920
cristyc0890a62012-07-19 00:18:20 +00003921# Installed binaries are usually stripped using 'strip' when the user
3922# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003923# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003924# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003925if test "$cross_compiling" != no; then
3926 if test -n "$ac_tool_prefix"; then
3927 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3928set dummy ${ac_tool_prefix}strip; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003931if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003932 $as_echo_n "(cached) " >&6
3933else
3934 if test -n "$STRIP"; then
3935 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940 IFS=$as_save_IFS
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003944 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 break 2
3947 fi
3948done
3949 done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954STRIP=$ac_cv_prog_STRIP
3955if test -n "$STRIP"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3957$as_echo "$STRIP" >&6; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963
3964fi
3965if test -z "$ac_cv_prog_STRIP"; then
3966 ac_ct_STRIP=$STRIP
3967 # Extract the first word of "strip", so it can be a program name with args.
3968set dummy strip; ac_word=$2
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003971if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003972 $as_echo_n "(cached) " >&6
3973else
3974 if test -n "$ac_ct_STRIP"; then
3975 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980 IFS=$as_save_IFS
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003984 ac_cv_prog_ac_ct_STRIP="strip"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986 break 2
3987 fi
3988done
3989 done
3990IFS=$as_save_IFS
3991
3992fi
3993fi
3994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3995if test -n "$ac_ct_STRIP"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3997$as_echo "$ac_ct_STRIP" >&6; }
3998else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
4002
4003 if test "x$ac_ct_STRIP" = x; then
4004 STRIP=":"
4005 else
4006 case $cross_compiling:$ac_tool_warned in
4007yes:)
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010ac_tool_warned=yes ;;
4011esac
4012 STRIP=$ac_ct_STRIP
4013 fi
4014else
4015 STRIP="$ac_cv_prog_STRIP"
4016fi
4017
4018fi
4019INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4020
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4022$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4023if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00004024 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004025 $as_echo_n "(cached) " >&6
4026else
4027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4029do
4030 IFS=$as_save_IFS
4031 test -z "$as_dir" && as_dir=.
4032 for ac_prog in mkdir gmkdir; do
4033 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004034 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00004035 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4036 'mkdir (GNU coreutils) '* | \
4037 'mkdir (coreutils) '* | \
4038 'mkdir (fileutils) '4.1*)
4039 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4040 break 3;;
4041 esac
4042 done
4043 done
4044 done
4045IFS=$as_save_IFS
4046
4047fi
4048
4049 test -d ./--version && rmdir ./--version
4050 if test "${ac_cv_path_mkdir+set}" = set; then
4051 MKDIR_P="$ac_cv_path_mkdir -p"
4052 else
4053 # As a last resort, use the slow shell script. Don't cache a
4054 # value for MKDIR_P within a source directory, because that will
4055 # break other packages using the cache if that directory is
4056 # removed, or if the value is a relative name.
4057 MKDIR_P="$ac_install_sh -d"
4058 fi
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4061$as_echo "$MKDIR_P" >&6; }
4062
cristy73bd4a52010-10-05 11:24:23 +00004063for ac_prog in gawk mawk nawk awk
4064do
4065 # Extract the first word of "$ac_prog", so it can be a program name with args.
4066set dummy $ac_prog; ac_word=$2
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004069if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004070 $as_echo_n "(cached) " >&6
4071else
4072 if test -n "$AWK"; then
4073 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078 IFS=$as_save_IFS
4079 test -z "$as_dir" && as_dir=.
4080 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004082 ac_cv_prog_AWK="$ac_prog"
4083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 break 2
4085 fi
4086done
4087 done
4088IFS=$as_save_IFS
4089
4090fi
4091fi
4092AWK=$ac_cv_prog_AWK
4093if test -n "$AWK"; then
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4095$as_echo "$AWK" >&6; }
4096else
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
4099fi
4100
4101
4102 test -n "$AWK" && break
4103done
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4106$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4107set x ${MAKE-make}
4108ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004109if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004110 $as_echo_n "(cached) " >&6
4111else
4112 cat >conftest.make <<\_ACEOF
4113SHELL = /bin/sh
4114all:
4115 @echo '@@@%%%=$(MAKE)=@@@%%%'
4116_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004117# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004118case `${MAKE-make} -f conftest.make 2>/dev/null` in
4119 *@@@%%%=?*=@@@%%%*)
4120 eval ac_cv_prog_make_${ac_make}_set=yes;;
4121 *)
4122 eval ac_cv_prog_make_${ac_make}_set=no;;
4123esac
4124rm -f conftest.make
4125fi
4126if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128$as_echo "yes" >&6; }
4129 SET_MAKE=
4130else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133 SET_MAKE="MAKE=${MAKE-make}"
4134fi
4135
4136rm -rf .tst 2>/dev/null
4137mkdir .tst 2>/dev/null
4138if test -d .tst; then
4139 am__leading_dot=.
4140else
4141 am__leading_dot=_
4142fi
4143rmdir .tst 2>/dev/null
4144
cristya448bd22011-10-14 12:38:13 +00004145# Check whether --enable-silent-rules was given.
4146if test "${enable_silent_rules+set}" = set; then :
4147 enableval=$enable_silent_rules;
4148fi
4149
cristyc0890a62012-07-19 00:18:20 +00004150case $enable_silent_rules in # (((
4151 yes) AM_DEFAULT_VERBOSITY=0;;
4152 no) AM_DEFAULT_VERBOSITY=1;;
4153 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004154esac
cristyc3fb77b2012-02-06 01:49:41 +00004155am_make=${MAKE-make}
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4157$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4158if ${am_cv_make_support_nested_variables+:} false; then :
4159 $as_echo_n "(cached) " >&6
4160else
4161 if $as_echo 'TRUE=$(BAR$(V))
4162BAR0=false
4163BAR1=true
4164V=1
4165am__doit:
4166 @$(TRUE)
4167.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4168 am_cv_make_support_nested_variables=yes
4169else
4170 am_cv_make_support_nested_variables=no
4171fi
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4174$as_echo "$am_cv_make_support_nested_variables" >&6; }
4175if test $am_cv_make_support_nested_variables = yes; then
4176 AM_V='$(V)'
4177 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4178else
4179 AM_V=$AM_DEFAULT_VERBOSITY
4180 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4181fi
cristya448bd22011-10-14 12:38:13 +00004182AM_BACKSLASH='\'
4183
cristy73bd4a52010-10-05 11:24:23 +00004184if test "`cd $srcdir && pwd`" != "`pwd`"; then
4185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4186 # is not polluted with repeated "-I."
4187 am__isrc=' -I$(srcdir)'
4188 # test to see if srcdir already configured
4189 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004190 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004191 fi
4192fi
4193
4194# test whether we have cygpath
4195if test -z "$CYGPATH_W"; then
4196 if (cygpath --version) >/dev/null 2>/dev/null; then
4197 CYGPATH_W='cygpath -w'
4198 else
4199 CYGPATH_W=echo
4200 fi
4201fi
4202
4203
4204# Define the identity of the package.
Cristyff282552015-09-19 16:49:39 -04004205 PACKAGE='ImageMagick'
Cristy814561c2016-07-11 12:42:00 -04004206 VERSION='7.0.2-5'
cristy73bd4a52010-10-05 11:24:23 +00004207
4208
cristya448bd22011-10-14 12:38:13 +00004209cat >>confdefs.h <<_ACEOF
4210#define PACKAGE "$PACKAGE"
4211_ACEOF
4212
4213
4214cat >>confdefs.h <<_ACEOF
4215#define VERSION "$VERSION"
4216_ACEOF
4217
cristy73bd4a52010-10-05 11:24:23 +00004218# Some tools Automake needs.
4219
4220ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4221
4222
4223AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4224
4225
4226AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4227
4228
4229AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4230
4231
4232MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4233
cristyc0890a62012-07-19 00:18:20 +00004234# For better backward compatibility. To be removed once Automake 1.9.x
4235# dies out for good. For more background, see:
4236# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4237# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4238mkdir_p='$(MKDIR_P)'
4239
cristyead532a2015-06-05 00:49:30 +00004240# We need awk for the "check" target (and possibly the TAP driver). The
4241# system "awk" is bad on some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004242# Always define AMTAR for backward compatibility. Yes, it's still used
4243# in the wild :-( We should find a proper way to deprecate it ...
4244AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004245
cristye69bdbe2013-05-03 21:40:44 +00004246
4247# We'll loop over all known methods to create a tar archive until one works.
Cristyc442e4f2016-02-11 20:59:06 -05004248_am_tools='gnutar plaintar pax cpio none'
cristye69bdbe2013-05-03 21:40:44 +00004249
Cristyc442e4f2016-02-11 20:59:06 -05004250# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4251 # There is notably a 21 bits limit for the UID and the GID. In fact,
4252 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4253 # and bug#13588).
4254 am_max_uid=2097151 # 2^21 - 1
4255 am_max_gid=$am_max_uid
4256 # The $UID and $GID variables are not portable, so we need to resort
4257 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4258 # below are definitely unexpected, so allow the users to see them
4259 # (that is, avoid stderr redirection).
4260 am_uid=`id -u || echo unknown`
4261 am_gid=`id -g || echo unknown`
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4263$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4264 if test $am_uid -le $am_max_uid; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266$as_echo "yes" >&6; }
4267 else
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
4270 _am_tools=none
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4273$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4274 if test $am_gid -le $am_max_gid; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276$as_echo "yes" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279$as_echo "no" >&6; }
4280 _am_tools=none
4281 fi
4282
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4284$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4285
4286 # Go ahead even if we have the value already cached. We do so because we
4287 # need to set the values for the 'am__tar' and 'am__untar' variables.
4288 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4289
4290 for _am_tool in $_am_tools; do
4291 case $_am_tool in
4292 gnutar)
4293 for _am_tar in tar gnutar gtar; do
4294 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4295 ($_am_tar --version) >&5 2>&5
4296 ac_status=$?
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } && break
4299 done
4300 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4301 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4302 am__untar="$_am_tar -xf -"
4303 ;;
4304 plaintar)
4305 # Must skip GNU tar: if it does not support --format= it doesn't create
4306 # ustar tarball either.
4307 (tar --version) >/dev/null 2>&1 && continue
4308 am__tar='tar chf - "$$tardir"'
4309 am__tar_='tar chf - "$tardir"'
4310 am__untar='tar xf -'
4311 ;;
4312 pax)
4313 am__tar='pax -L -x ustar -w "$$tardir"'
4314 am__tar_='pax -L -x ustar -w "$tardir"'
4315 am__untar='pax -r'
4316 ;;
4317 cpio)
4318 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4319 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4320 am__untar='cpio -i -H ustar -d'
4321 ;;
4322 none)
4323 am__tar=false
4324 am__tar_=false
4325 am__untar=false
4326 ;;
4327 esac
4328
4329 # If the value was cached, stop now. We just wanted to have am__tar
4330 # and am__untar set.
4331 test -n "${am_cv_prog_tar_ustar}" && break
4332
4333 # tar/untar a dummy directory, and stop if the command works.
4334 rm -rf conftest.dir
4335 mkdir conftest.dir
4336 echo GrepMe > conftest.dir/file
4337 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4338 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4339 ac_status=$?
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }
4342 rm -rf conftest.dir
4343 if test -s conftest.tar; then
4344 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4345 ($am__untar <conftest.tar) >&5 2>&5
4346 ac_status=$?
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }
4349 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4350 (cat conftest.dir/file) >&5 2>&5
4351 ac_status=$?
4352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353 (exit $ac_status); }
4354 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4355 fi
4356 done
4357 rm -rf conftest.dir
4358
4359 if ${am_cv_prog_tar_ustar+:} false; then :
4360 $as_echo_n "(cached) " >&6
4361else
4362 am_cv_prog_tar_ustar=$_am_tool
4363fi
4364
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4366$as_echo "$am_cv_prog_tar_ustar" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00004367
4368
4369
4370
4371
cristy3ed852e2009-09-05 21:47:34 +00004372
cristya5bda012013-11-03 18:05:38 +00004373# POSIX will say in a future version that running "rm -f" with no argument
4374# is OK; and we want to be able to make that assumption in our Makefile
4375# recipes. So use an aggressive probe to check that the usage we want is
4376# actually supported "in the wild" to an acceptable degree.
4377# See automake bug#10828.
4378# To make any issue more visible, cause the running configure to be aborted
4379# by default if the 'rm' program in use doesn't match our expectations; the
4380# user can still override this though.
4381if rm -f && rm -fr && rm -rf; then : OK; else
4382 cat >&2 <<'END'
4383Oops!
4384
4385Your 'rm' program seems unable to run without file operands specified
4386on the command line, even when the '-f' option is present. This is contrary
4387to the behaviour of most rm programs out there, and not conforming with
4388the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4389
4390Please tell bug-automake@gnu.org about your system, including the value
4391of your $PATH and any error possibly output before this message. This
4392can help us improve future automake versions.
4393
4394END
4395 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4396 echo 'Configuration will proceed anyway, since you have set the' >&2
4397 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4398 echo >&2
4399 else
4400 cat >&2 <<'END'
4401Aborting the configuration process, to ensure you take notice of the issue.
4402
4403You can download and install GNU coreutils to get an 'rm' implementation
4404that behaves properly: <http://www.gnu.org/software/coreutils/>.
4405
4406If you want to complete the configuration process using your problematic
4407'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4408to "yes", and re-run configure.
4409
4410END
4411 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4412 fi
4413fi
cristyead532a2015-06-05 00:49:30 +00004414
cristy73bd4a52010-10-05 11:24:23 +00004415# Check whether --enable-silent-rules was given.
4416if test "${enable_silent_rules+set}" = set; then :
4417 enableval=$enable_silent_rules;
4418fi
4419
cristyc0890a62012-07-19 00:18:20 +00004420case $enable_silent_rules in # (((
4421 yes) AM_DEFAULT_VERBOSITY=0;;
4422 no) AM_DEFAULT_VERBOSITY=1;;
4423 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004424esac
cristyc3fb77b2012-02-06 01:49:41 +00004425am_make=${MAKE-make}
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4427$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4428if ${am_cv_make_support_nested_variables+:} false; then :
4429 $as_echo_n "(cached) " >&6
4430else
4431 if $as_echo 'TRUE=$(BAR$(V))
4432BAR0=false
4433BAR1=true
4434V=1
4435am__doit:
4436 @$(TRUE)
4437.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4438 am_cv_make_support_nested_variables=yes
4439else
4440 am_cv_make_support_nested_variables=no
4441fi
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4444$as_echo "$am_cv_make_support_nested_variables" >&6; }
4445if test $am_cv_make_support_nested_variables = yes; then
4446 AM_V='$(V)'
4447 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4448else
4449 AM_V=$AM_DEFAULT_VERBOSITY
4450 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4451fi
cristy73bd4a52010-10-05 11:24:23 +00004452AM_BACKSLASH='\'
4453
cristy3ed852e2009-09-05 21:47:34 +00004454
cristy9af1cbf2014-12-28 22:03:09 +00004455#
4456# Save initial user-tunable values
4457#
4458USER_LIBS=$LIBS
4459for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4460 eval isset=\${$var+set}
4461 if test "$isset" = 'set'; then
4462 eval val=$`echo $var`
4463 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4464 fi
4465done
4466
4467
4468CONFIGURE_ARGS="$0 ${ac_configure_args}"
4469
4470
cristy187791c2015-05-03 22:17:00 +00004471# Check whether --enable-reproducible-build was given.
4472if test "${enable_reproducible_build+set}" = set; then :
4473 enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4474else
4475 enable_reproducible_build='no'
4476fi
4477
4478
cristy9af1cbf2014-12-28 22:03:09 +00004479# Source file containing package/library versioning information.
4480. ${srcdir}/version.sh
4481
4482echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4483
4484MAGICK_TARGET_CPU=$host_cpu
4485
4486
4487cat >>confdefs.h <<_ACEOF
4488#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4489_ACEOF
4490
4491
4492MAGICK_TARGET_VENDOR=$host_vendor
4493
4494
4495cat >>confdefs.h <<_ACEOF
4496#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4497_ACEOF
4498
4499
4500MAGICK_TARGET_OS=$host_os
4501
4502
4503cat >>confdefs.h <<_ACEOF
4504#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4505_ACEOF
4506
4507
4508
4509# Substitute versioning
4510MAGICK_MAJOR_VERSION=7
4511
4512MAGICK_MINOR_VERSION=0
4513
Cristy68e565c2016-06-07 11:46:17 -04004514MAGICK_MICRO_VERSION=2
cristy9af1cbf2014-12-28 22:03:09 +00004515
Cristy814561c2016-07-11 12:42:00 -04004516MAGICK_PATCHLEVEL_VERSION=5
cristy9af1cbf2014-12-28 22:03:09 +00004517
Cristy814561c2016-07-11 12:42:00 -04004518MAGICK_VERSION=7.0.2-5
cristy9af1cbf2014-12-28 22:03:09 +00004519
Cristy814561c2016-07-11 12:42:00 -04004520MAGICK_GIT_REVISION=18594:4c16bb8:20160711
cristy9af1cbf2014-12-28 22:03:09 +00004521
4522
4523# Substitute library versioning
4524MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4525
4526MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4527
4528
4529MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4530
4531MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4532
4533
cristy187791c2015-05-03 22:17:00 +00004534if test X$enable_reproducible_build = Xyes; then :
4535 PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4536elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4537
4538fi
4539
cristy9af1cbf2014-12-28 22:03:09 +00004540
4541# Ensure that make can run correctly
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4543$as_echo_n "checking whether build environment is sane... " >&6; }
4544# Reject unsafe characters in $srcdir or the absolute working directory
4545# name. Accept space and tab only in the latter.
4546am_lf='
4547'
4548case `pwd` in
4549 *[\\\"\#\$\&\'\`$am_lf]*)
4550 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4551esac
4552case $srcdir in
4553 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4554 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4555esac
4556
4557# Do 'set' in a subshell so we don't clobber the current shell's
4558# arguments. Must try -L first in case configure is actually a
4559# symlink; some systems play weird games with the mod time of symlinks
4560# (eg FreeBSD returns the mod time of the symlink's containing
4561# directory).
4562if (
4563 am_has_slept=no
4564 for am_try in 1 2; do
4565 echo "timestamp, slept: $am_has_slept" > conftest.file
4566 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4567 if test "$*" = "X"; then
4568 # -L didn't work.
4569 set X `ls -t "$srcdir/configure" conftest.file`
4570 fi
4571 if test "$*" != "X $srcdir/configure conftest.file" \
4572 && test "$*" != "X conftest.file $srcdir/configure"; then
4573
4574 # If neither matched, then we have a broken ls. This can happen
4575 # if, for instance, CONFIG_SHELL is bash and it inherits a
4576 # broken ls alias from the environment. This has actually
4577 # happened. Such a system could not be considered "sane".
4578 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4579 alias in your environment" "$LINENO" 5
4580 fi
4581 if test "$2" = conftest.file || test $am_try -eq 2; then
4582 break
4583 fi
4584 # Just in case.
4585 sleep 1
4586 am_has_slept=yes
4587 done
4588 test "$2" = conftest.file
4589 )
4590then
4591 # Ok.
4592 :
4593else
4594 as_fn_error $? "newly created file is older than distributed files!
4595Check your system clock" "$LINENO" 5
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4598$as_echo "yes" >&6; }
4599# If we didn't sleep, we still need to ensure time stamps of config.status and
4600# generated files are strictly newer.
4601am_sleep_pid=
4602if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4603 ( sleep 1 ) &
4604 am_sleep_pid=$!
4605fi
4606
4607rm -f conftest.file
4608
4609
cristyf279b692014-08-13 12:01:27 +00004610# versioning of library
cristy3ed852e2009-09-05 21:47:34 +00004611MAGICK_LIB_VERSION="0x"
4612if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4613 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4614fi
4615MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4616if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4617 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4618fi
4619MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4620if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4621 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4622fi
4623MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4624
4625
4626# Definition used to define MagickLibVersionText in version.h
4627MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4628
4629
4630# Definition used to define MagickLibVersionNumber in version.h
4631MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4632
4633
cristy5ed9c6e2013-07-14 21:20:31 +00004634MAGICKPP_LIB_VERSION="0x"
4635if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4636 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4637fi
4638MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4639if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4640 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4641fi
4642MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4643if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4644 MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4645fi
4646MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4647
4648
4649# Definition used to define MagickLibVersionText in version.h
4650MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4651
4652
4653# Definition used to define MagickLibVersionNumber in version.h
4654MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4655
4656
4657
4658
cristy3ed852e2009-09-05 21:47:34 +00004659# Regenerate config.status if ChangeLog or version.sh is updated.
4660CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4661
4662
4663PERLMAINCC=$CC
4664
4665MAGICK_CFLAGS=''
4666MAGICK_CPPFLAGS=$CPPFLAGS_USER
4667MAGICK_PCFLAGS=$CPPFLAGS_USER
4668MAGICK_LDFLAGS=''
4669MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004670MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004671
4672#
4673# Evaluate shell variable equivalents to Makefile directory variables
4674#
4675if test "x$prefix" = xNONE; then
4676 prefix=$ac_default_prefix
4677fi
4678# Let make expand exec_prefix.
4679if test "x$exec_prefix" = xNONE; then
4680 exec_prefix='${prefix}'
4681fi
4682
4683#
4684eval "eval PREFIX_DIR=${prefix}"
4685
4686eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4687
4688eval "eval BIN_DIR=$bindir"
4689
4690eval "eval SBIN_DIR=$sbindir"
4691
4692eval "eval LIBEXEC_DIR=$libexecdir"
4693
4694eval "eval DATA_DIR=$datadir"
4695
Cristye35bdc62015-09-19 18:29:00 -04004696eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004697
cristy3ed852e2009-09-05 21:47:34 +00004698eval "eval SYSCONF_DIR=$sysconfdir"
4699
4700eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4701
4702eval "eval LOCALSTATE_DIR=$localstatedir"
4703
4704eval "eval LIB_DIR=$libdir"
4705
4706eval "eval INCLUDE_DIR=$includedir"
4707
4708eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4709
4710eval "eval INFO_DIR=$infodir"
4711
4712eval "eval MAN_DIR=$mandir"
4713
4714
4715# Get full paths to source and build directories
4716srcdirfull="`cd $srcdir && pwd`"
4717builddir="`pwd`"
4718
4719#
4720# Compute variables useful for running uninstalled software.
4721#
4722MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4723MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4724MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4725MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4726DIRSEP=':'
4727case "${build_os}" in
4728 mingw* )
4729 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4730 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4731 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4732 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4733 DIRSEP=';'
4734 ;;
4735esac
4736case "${host_os}" in
4737 mingw* )
4738 DIRSEP=';'
4739 ;;
4740esac
4741
4742
4743
4744
4745
4746
cristya0b81c32010-01-22 02:54:33 +00004747
4748#
4749# Enable OS features.
4750#
cristy73bd4a52010-10-05 11:24:23 +00004751DEPDIR="${am__leading_dot}deps"
4752
4753ac_config_commands="$ac_config_commands depfiles"
4754
4755
4756am_make=${MAKE-make}
4757cat > confinc << 'END'
4758am__doit:
4759 @echo this is the am__doit target
4760.PHONY: am__doit
4761END
4762# If we don't find an include directive, just comment out the code.
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4764$as_echo_n "checking for style of include used by $am_make... " >&6; }
4765am__include="#"
4766am__quote=
4767_am_result=none
4768# First try GNU make style include.
4769echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004770# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004771case `$am_make -s -f confmf 2> /dev/null` in #(
4772*the\ am__doit\ target*)
4773 am__include=include
4774 am__quote=
4775 _am_result=GNU
4776 ;;
4777esac
4778# Now try BSD make style include.
4779if test "$am__include" = "#"; then
4780 echo '.include "confinc"' > confmf
4781 case `$am_make -s -f confmf 2> /dev/null` in #(
4782 *the\ am__doit\ target*)
4783 am__include=.include
4784 am__quote="\""
4785 _am_result=BSD
4786 ;;
4787 esac
4788fi
4789
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4792$as_echo "$_am_result" >&6; }
4793rm -f confinc confmf
4794
4795# Check whether --enable-dependency-tracking was given.
4796if test "${enable_dependency_tracking+set}" = set; then :
4797 enableval=$enable_dependency_tracking;
4798fi
4799
4800if test "x$enable_dependency_tracking" != xno; then
4801 am_depcomp="$ac_aux_dir/depcomp"
4802 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004803 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004804fi
4805 if test "x$enable_dependency_tracking" != xno; then
4806 AMDEP_TRUE=
4807 AMDEP_FALSE='#'
4808else
4809 AMDEP_TRUE='#'
4810 AMDEP_FALSE=
4811fi
4812
4813
cristy3ed852e2009-09-05 21:47:34 +00004814ac_ext=c
4815ac_cpp='$CPP $CPPFLAGS'
4816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819if test -n "$ac_tool_prefix"; then
4820 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004823$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004824if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004825 $as_echo_n "(cached) " >&6
4826else
4827 if test -n "$CC"; then
4828 ac_cv_prog_CC="$CC" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833 IFS=$as_save_IFS
4834 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004837 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004839 break 2
4840 fi
4841done
cristy8b350f62009-11-15 23:12:43 +00004842 done
cristy3ed852e2009-09-05 21:47:34 +00004843IFS=$as_save_IFS
4844
4845fi
4846fi
4847CC=$ac_cv_prog_CC
4848if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004850$as_echo "$CC" >&6; }
4851else
cristy8b350f62009-11-15 23:12:43 +00004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004853$as_echo "no" >&6; }
4854fi
4855
4856
4857fi
4858if test -z "$ac_cv_prog_CC"; then
4859 ac_ct_CC=$CC
4860 # Extract the first word of "gcc", so it can be a program name with args.
4861set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004864if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004865 $as_echo_n "(cached) " >&6
4866else
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004877 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004879 break 2
4880 fi
4881done
cristy8b350f62009-11-15 23:12:43 +00004882 done
cristy3ed852e2009-09-05 21:47:34 +00004883IFS=$as_save_IFS
4884
4885fi
4886fi
4887ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004890$as_echo "$ac_ct_CC" >&6; }
4891else
cristy8b350f62009-11-15 23:12:43 +00004892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893$as_echo "no" >&6; }
4894fi
4895
4896 if test "x$ac_ct_CC" = x; then
4897 CC=""
4898 else
4899 case $cross_compiling:$ac_tool_warned in
4900yes:)
cristy8b350f62009-11-15 23:12:43 +00004901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903ac_tool_warned=yes ;;
4904esac
4905 CC=$ac_ct_CC
4906 fi
4907else
4908 CC="$ac_cv_prog_CC"
4909fi
4910
4911if test -z "$CC"; then
4912 if test -n "$ac_tool_prefix"; then
4913 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004916$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004917if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004918 $as_echo_n "(cached) " >&6
4919else
4920 if test -n "$CC"; then
4921 ac_cv_prog_CC="$CC" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004928 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004930 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004932 break 2
4933 fi
4934done
cristy8b350f62009-11-15 23:12:43 +00004935 done
cristy3ed852e2009-09-05 21:47:34 +00004936IFS=$as_save_IFS
4937
4938fi
4939fi
4940CC=$ac_cv_prog_CC
4941if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004943$as_echo "$CC" >&6; }
4944else
cristy8b350f62009-11-15 23:12:43 +00004945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004946$as_echo "no" >&6; }
4947fi
4948
4949
4950 fi
4951fi
4952if test -z "$CC"; then
4953 # Extract the first word of "cc", so it can be a program name with args.
4954set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004956$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004957if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004958 $as_echo_n "(cached) " >&6
4959else
4960 if test -n "$CC"; then
4961 ac_cv_prog_CC="$CC" # Let the user override the test.
4962else
4963 ac_prog_rejected=no
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004969 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004971 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4972 ac_prog_rejected=yes
4973 continue
4974 fi
4975 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004977 break 2
4978 fi
4979done
cristy8b350f62009-11-15 23:12:43 +00004980 done
cristy3ed852e2009-09-05 21:47:34 +00004981IFS=$as_save_IFS
4982
4983if test $ac_prog_rejected = yes; then
4984 # We found a bogon in the path, so make sure we never use it.
4985 set dummy $ac_cv_prog_CC
4986 shift
4987 if test $# != 0; then
4988 # We chose a different compiler from the bogus one.
4989 # However, it has the same basename, so the bogon will be chosen
4990 # first if we set CC to just the basename; use the full file name.
4991 shift
4992 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4993 fi
4994fi
4995fi
4996fi
4997CC=$ac_cv_prog_CC
4998if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005000$as_echo "$CC" >&6; }
5001else
cristy8b350f62009-11-15 23:12:43 +00005002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005003$as_echo "no" >&6; }
5004fi
5005
5006
5007fi
5008if test -z "$CC"; then
5009 if test -n "$ac_tool_prefix"; then
5010 for ac_prog in cl.exe
5011 do
5012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005015$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005016if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005017 $as_echo_n "(cached) " >&6
5018else
5019 if test -n "$CC"; then
5020 ac_cv_prog_CC="$CC" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025 IFS=$as_save_IFS
5026 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005027 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00005029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00005030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005031 break 2
5032 fi
5033done
cristy8b350f62009-11-15 23:12:43 +00005034 done
cristy3ed852e2009-09-05 21:47:34 +00005035IFS=$as_save_IFS
5036
5037fi
5038fi
5039CC=$ac_cv_prog_CC
5040if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00005041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005042$as_echo "$CC" >&6; }
5043else
cristy8b350f62009-11-15 23:12:43 +00005044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005045$as_echo "no" >&6; }
5046fi
5047
5048
5049 test -n "$CC" && break
5050 done
5051fi
5052if test -z "$CC"; then
5053 ac_ct_CC=$CC
5054 for ac_prog in cl.exe
5055do
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00005058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00005059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005060if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005061 $as_echo_n "(cached) " >&6
5062else
5063 if test -n "$ac_ct_CC"; then
5064 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00005071 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00005073 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00005074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005075 break 2
5076 fi
5077done
cristy8b350f62009-11-15 23:12:43 +00005078 done
cristy3ed852e2009-09-05 21:47:34 +00005079IFS=$as_save_IFS
5080
5081fi
5082fi
5083ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00005086$as_echo "$ac_ct_CC" >&6; }
5087else
cristy8b350f62009-11-15 23:12:43 +00005088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00005089$as_echo "no" >&6; }
5090fi
5091
5092
5093 test -n "$ac_ct_CC" && break
5094done
5095
5096 if test "x$ac_ct_CC" = x; then
5097 CC=""
5098 else
5099 case $cross_compiling:$ac_tool_warned in
5100yes:)
cristy8b350f62009-11-15 23:12:43 +00005101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00005102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105 CC=$ac_ct_CC
5106 fi
5107fi
5108
5109fi
5110
5111
cristy8b350f62009-11-15 23:12:43 +00005112test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005114as_fn_error $? "no acceptable C compiler found in \$PATH
5115See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005116
5117# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00005118$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00005119set X $ac_compile
5120ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00005121for ac_option in --version -v -V -qversion; do
5122 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00005123case "(($ac_try" in
5124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125 *) ac_try_echo=$ac_try;;
5126esac
cristy8b350f62009-11-15 23:12:43 +00005127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5128$as_echo "$ac_try_echo"; } >&5
5129 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00005130 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005131 if test -s conftest.err; then
5132 sed '10a\
5133... rest of stderr output deleted ...
5134 10q' conftest.err >conftest.er1
5135 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00005136 fi
cristycd4c5312009-11-22 01:19:08 +00005137 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00005138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139 test $ac_status = 0; }
5140done
cristy3ed852e2009-09-05 21:47:34 +00005141
cristy8b350f62009-11-15 23:12:43 +00005142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005143/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00005144
cristy3ed852e2009-09-05 21:47:34 +00005145int
5146main ()
5147{
5148
5149 ;
5150 return 0;
5151}
5152_ACEOF
5153ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00005154ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00005155# Try to create an executable without -o first, disregard a.out.
5156# It will help us diagnose broken compilers, and finding out an intuition
5157# of exeext.
cristycd4c5312009-11-22 01:19:08 +00005158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5159$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005160ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5161
5162# The possible output files:
5163ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5164
5165ac_rmfiles=
5166for ac_file in $ac_files
5167do
5168 case $ac_file in
5169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5170 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5171 esac
5172done
5173rm -f $ac_rmfiles
5174
cristy8b350f62009-11-15 23:12:43 +00005175if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00005176case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179esac
cristy8b350f62009-11-15 23:12:43 +00005180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5181$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005182 (eval "$ac_link_default") 2>&5
5183 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5185 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005186 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5187# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5188# in a Makefile. We should not override ac_cv_exeext if it was cached,
5189# so that the user can short-circuit this test for compilers unknown to
5190# Autoconf.
5191for ac_file in $ac_files ''
5192do
5193 test -f "$ac_file" || continue
5194 case $ac_file in
5195 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5196 ;;
5197 [ab].out )
5198 # We found the default executable, but exeext='' is most
5199 # certainly right.
5200 break;;
5201 *.* )
cristy8b350f62009-11-15 23:12:43 +00005202 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00005203 then :; else
5204 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5205 fi
5206 # We set ac_cv_exeext here because the later test for it is not
5207 # safe: cross compilers may not add the suffix if given an `-o'
5208 # argument, so we may need to know it at that point already.
5209 # Even if this section looks crufty: it has the advantage of
5210 # actually working.
5211 break;;
5212 * )
5213 break;;
5214 esac
5215done
5216test "$ac_cv_exeext" = no && ac_cv_exeext=
5217
5218else
5219 ac_file=''
5220fi
cristy8b350f62009-11-15 23:12:43 +00005221if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00005222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
5224$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00005225sed 's/^/| /' conftest.$ac_ext >&5
5226
cristy8b350f62009-11-15 23:12:43 +00005227{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005229as_fn_error 77 "C compiler cannot create executables
5230See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005231else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005234fi
cristycd4c5312009-11-22 01:19:08 +00005235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5236$as_echo_n "checking for C compiler default output file name... " >&6; }
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5238$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00005239ac_exeext=$ac_cv_exeext
5240
cristycd4c5312009-11-22 01:19:08 +00005241rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00005242ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00005244$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00005245if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00005246case "(($ac_try" in
5247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248 *) ac_try_echo=$ac_try;;
5249esac
cristy8b350f62009-11-15 23:12:43 +00005250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005252 (eval "$ac_link") 2>&5
5253 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5255 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005256 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5257# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5258# work properly (i.e., refer to `conftest.exe'), while it won't with
5259# `rm'.
5260for ac_file in conftest.exe conftest conftest.*; do
5261 test -f "$ac_file" || continue
5262 case $ac_file in
5263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5264 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5265 break;;
5266 * ) break;;
5267 esac
5268done
5269else
cristy8b350f62009-11-15 23:12:43 +00005270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005272as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5273See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005274fi
cristycd4c5312009-11-22 01:19:08 +00005275rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00005276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005277$as_echo "$ac_cv_exeext" >&6; }
5278
5279rm -f conftest.$ac_ext
5280EXEEXT=$ac_cv_exeext
5281ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00005282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h. */
5284#include <stdio.h>
5285int
5286main ()
5287{
5288FILE *f = fopen ("conftest.out", "w");
5289 return ferror (f) || fclose (f) != 0;
5290
5291 ;
5292 return 0;
5293}
5294_ACEOF
5295ac_clean_files="$ac_clean_files conftest.out"
5296# Check that the compiler produces executables we can run. If not, either
5297# the compiler is broken, or we cross compile.
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5299$as_echo_n "checking whether we are cross compiling... " >&6; }
5300if test "$cross_compiling" != yes; then
5301 { { ac_try="$ac_link"
5302case "(($ac_try" in
5303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304 *) ac_try_echo=$ac_try;;
5305esac
5306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5307$as_echo "$ac_try_echo"; } >&5
5308 (eval "$ac_link") 2>&5
5309 ac_status=$?
5310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5311 test $ac_status = 0; }
5312 if { ac_try='./conftest$ac_cv_exeext'
5313 { { case "(($ac_try" in
5314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5316esac
5317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5318$as_echo "$ac_try_echo"; } >&5
5319 (eval "$ac_try") 2>&5
5320 ac_status=$?
5321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5322 test $ac_status = 0; }; }; then
5323 cross_compiling=no
5324 else
5325 if test "$cross_compiling" = maybe; then
5326 cross_compiling=yes
5327 else
5328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005330as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00005331If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00005332See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00005333 fi
5334 fi
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5337$as_echo "$cross_compiling" >&6; }
5338
5339rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5340ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00005341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00005342$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005343if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005344 $as_echo_n "(cached) " >&6
5345else
cristy8b350f62009-11-15 23:12:43 +00005346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005347/* end confdefs.h. */
5348
5349int
5350main ()
5351{
5352
5353 ;
5354 return 0;
5355}
5356_ACEOF
5357rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00005358if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00005359case "(($ac_try" in
5360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5362esac
cristy8b350f62009-11-15 23:12:43 +00005363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5364$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00005365 (eval "$ac_compile") 2>&5
5366 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00005367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5368 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00005369 for ac_file in conftest.o conftest.obj conftest.*; do
5370 test -f "$ac_file" || continue;
5371 case $ac_file in
5372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5373 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5374 break;;
5375 esac
5376done
5377else
5378 $as_echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
cristy8b350f62009-11-15 23:12:43 +00005381{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00005382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005383as_fn_error $? "cannot compute suffix of object files: cannot compile
5384See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005385fi
cristy3ed852e2009-09-05 21:47:34 +00005386rm -f conftest.$ac_cv_objext conftest.$ac_ext
5387fi
cristy8b350f62009-11-15 23:12:43 +00005388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005389$as_echo "$ac_cv_objext" >&6; }
5390OBJEXT=$ac_cv_objext
5391ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005394if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005395 $as_echo_n "(cached) " >&6
5396else
cristy8b350f62009-11-15 23:12:43 +00005397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005398/* end confdefs.h. */
5399
5400int
5401main ()
5402{
5403#ifndef __GNUC__
5404 choke me
5405#endif
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005411if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005412 ac_compiler_gnu=yes
5413else
cristy8b350f62009-11-15 23:12:43 +00005414 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005415fi
cristy3ed852e2009-09-05 21:47:34 +00005416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417ac_cv_c_compiler_gnu=$ac_compiler_gnu
5418
5419fi
cristy8b350f62009-11-15 23:12:43 +00005420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005421$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5422if test $ac_compiler_gnu = yes; then
5423 GCC=yes
5424else
5425 GCC=
5426fi
5427ac_test_CFLAGS=${CFLAGS+set}
5428ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005430$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005431if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005432 $as_echo_n "(cached) " >&6
5433else
5434 ac_save_c_werror_flag=$ac_c_werror_flag
5435 ac_c_werror_flag=yes
5436 ac_cv_prog_cc_g=no
5437 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005439/* end confdefs.h. */
5440
5441int
5442main ()
5443{
5444
5445 ;
5446 return 0;
5447}
5448_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005449if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005450 ac_cv_prog_cc_g=yes
5451else
cristy8b350f62009-11-15 23:12:43 +00005452 CFLAGS=""
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005454/* end confdefs.h. */
5455
5456int
5457main ()
5458{
5459
5460 ;
5461 return 0;
5462}
5463_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005464if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005465
cristy8b350f62009-11-15 23:12:43 +00005466else
5467 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005468 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005470/* end confdefs.h. */
5471
5472int
5473main ()
5474{
5475
5476 ;
5477 return 0;
5478}
5479_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005480if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005481 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005482fi
cristy3ed852e2009-09-05 21:47:34 +00005483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484fi
cristy3ed852e2009-09-05 21:47:34 +00005485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486fi
cristy3ed852e2009-09-05 21:47:34 +00005487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488 ac_c_werror_flag=$ac_save_c_werror_flag
5489fi
cristy8b350f62009-11-15 23:12:43 +00005490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005491$as_echo "$ac_cv_prog_cc_g" >&6; }
5492if test "$ac_test_CFLAGS" = set; then
5493 CFLAGS=$ac_save_CFLAGS
5494elif test $ac_cv_prog_cc_g = yes; then
5495 if test "$GCC" = yes; then
5496 CFLAGS="-g -O2"
5497 else
5498 CFLAGS="-g"
5499 fi
5500else
5501 if test "$GCC" = yes; then
5502 CFLAGS="-O2"
5503 else
5504 CFLAGS=
5505 fi
5506fi
cristy8b350f62009-11-15 23:12:43 +00005507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005508$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005509if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005510 $as_echo_n "(cached) " >&6
5511else
5512 ac_cv_prog_cc_c89=no
5513ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005515/* end confdefs.h. */
5516#include <stdarg.h>
5517#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005518struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5520struct buf { int x; };
5521FILE * (*rcsopen) (struct buf *, struct stat *, int);
5522static char *e (p, i)
5523 char **p;
5524 int i;
5525{
5526 return p[i];
5527}
5528static char *f (char * (*g) (char **, int), char **p, ...)
5529{
5530 char *s;
5531 va_list v;
5532 va_start (v,p);
5533 s = g (p, va_arg (v,int));
5534 va_end (v);
5535 return s;
5536}
5537
5538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5539 function prototypes and stuff, but not '\xHH' hex character constants.
5540 These don't provoke an error unfortunately, instead are silently treated
5541 as 'x'. The following induces an error, until -std is added to get
5542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5543 array size at least. It's necessary to write '\x00'==0 to get something
5544 that's true only with -std. */
5545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5546
5547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5548 inside strings and character constants. */
5549#define FOO(x) 'x'
5550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5551
5552int test (int i, double x);
5553struct s1 {int (*f) (int a);};
5554struct s2 {int (*f) (double a);};
5555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5556int argc;
5557char **argv;
5558int
5559main ()
5560{
5561return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5562 ;
5563 return 0;
5564}
5565_ACEOF
5566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5567 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5568do
5569 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005570 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005571 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005572fi
cristy3ed852e2009-09-05 21:47:34 +00005573rm -f core conftest.err conftest.$ac_objext
5574 test "x$ac_cv_prog_cc_c89" != "xno" && break
5575done
5576rm -f conftest.$ac_ext
5577CC=$ac_save_CC
5578
5579fi
5580# AC_CACHE_VAL
5581case "x$ac_cv_prog_cc_c89" in
5582 x)
cristy8b350f62009-11-15 23:12:43 +00005583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005584$as_echo "none needed" >&6; } ;;
5585 xno)
cristy8b350f62009-11-15 23:12:43 +00005586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005587$as_echo "unsupported" >&6; } ;;
5588 *)
5589 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005591$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5592esac
cristy8b350f62009-11-15 23:12:43 +00005593if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005594
cristy8b350f62009-11-15 23:12:43 +00005595fi
cristy3ed852e2009-09-05 21:47:34 +00005596
5597ac_ext=c
5598ac_cpp='$CPP $CPPFLAGS'
5599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005602
cristya5bda012013-11-03 18:05:38 +00005603ac_ext=c
5604ac_cpp='$CPP $CPPFLAGS'
5605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5609$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5610if ${am_cv_prog_cc_c_o+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612else
5613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h. */
5615
5616int
5617main ()
5618{
5619
5620 ;
5621 return 0;
5622}
5623_ACEOF
5624 # Make sure it works both with $CC and with simple cc.
5625 # Following AC_PROG_CC_C_O, we do the test twice because some
5626 # compilers refuse to overwrite an existing .o file with -o,
5627 # though they will create one.
5628 am_cv_prog_cc_c_o=yes
5629 for am_i in 1 2; do
5630 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5631 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5632 ac_status=$?
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } \
5635 && test -f conftest2.$ac_objext; then
5636 : OK
5637 else
5638 am_cv_prog_cc_c_o=no
5639 break
5640 fi
5641 done
5642 rm -f core conftest*
5643 unset am_i
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5646$as_echo "$am_cv_prog_cc_c_o" >&6; }
5647if test "$am_cv_prog_cc_c_o" != yes; then
5648 # Losing compiler, so override with the script.
5649 # FIXME: It is wrong to rewrite CC.
5650 # But if we don't then we get into trouble of one sort or another.
5651 # A longer-term fix would be to have automake use am__CC in this case,
5652 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5653 CC="$am_aux_dir/compile $CC"
5654fi
5655ac_ext=c
5656ac_cpp='$CPP $CPPFLAGS'
5657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660
5661
cristy73bd4a52010-10-05 11:24:23 +00005662depcc="$CC" am_compiler_list=
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5665$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005666if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005667 $as_echo_n "(cached) " >&6
5668else
5669 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5670 # We make a subdir and do the tests there. Otherwise we can end up
5671 # making bogus files that we don't know about and never remove. For
5672 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005673 # making a dummy file named 'D' -- because '-MD' means "put the output
5674 # in D".
cristy7247bba2012-02-05 16:37:27 +00005675 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005676 mkdir conftest.dir
5677 # Copy depcomp to subdir because otherwise we won't find it if we're
5678 # using a relative directory.
5679 cp "$am_depcomp" conftest.dir
5680 cd conftest.dir
5681 # We will build objects and dependencies in a subdirectory because
5682 # it helps to detect inapplicable dependency modes. For instance
5683 # both Tru64's cc and ICC support -MD to output dependencies as a
5684 # side effect of compilation, but ICC will put the dependencies in
5685 # the current directory while Tru64 will put them in the object
5686 # directory.
5687 mkdir sub
5688
5689 am_cv_CC_dependencies_compiler_type=none
5690 if test "$am_compiler_list" = ""; then
5691 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5692 fi
5693 am__universal=false
5694 case " $depcc " in #(
5695 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5696 esac
5697
5698 for depmode in $am_compiler_list; do
5699 # Setup a source with many dependencies, because some compilers
5700 # like to wrap large dependency lists on column 80 (with \), and
5701 # we should not choose a depcomp mode which is confused by this.
5702 #
5703 # We need to recreate these files for each test, as the compiler may
5704 # overwrite some of them when testing with obscure command lines.
5705 # This happens at least with the AIX C compiler.
5706 : > sub/conftest.c
5707 for i in 1 2 3 4 5 6; do
5708 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005709 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5710 # Solaris 10 /bin/sh.
5711 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005712 done
5713 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5714
cristyc0890a62012-07-19 00:18:20 +00005715 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005716 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005717 # handle '-M -o', and we need to detect this. Also, some Intel
5718 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005719 am__obj=sub/conftest.${OBJEXT-o}
5720 am__minus_obj="-o $am__obj"
5721 case $depmode in
5722 gcc)
5723 # This depmode causes a compiler race in universal mode.
5724 test "$am__universal" = false || continue
5725 ;;
5726 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005727 # After this tag, mechanisms are not by side-effect, so they'll
5728 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005729 if test "x$enable_dependency_tracking" = xyes; then
5730 continue
5731 else
5732 break
5733 fi
5734 ;;
cristy7247bba2012-02-05 16:37:27 +00005735 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005736 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005737 # not run yet. These depmodes are late enough in the game, and
5738 # so weak that their functioning should not be impacted.
5739 am__obj=conftest.${OBJEXT-o}
5740 am__minus_obj=
5741 ;;
5742 none) break ;;
5743 esac
5744 if depmode=$depmode \
5745 source=sub/conftest.c object=$am__obj \
5746 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5747 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5748 >/dev/null 2>conftest.err &&
5749 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5750 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5751 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5752 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5753 # icc doesn't choke on unknown options, it will just issue warnings
5754 # or remarks (even with -Werror). So we grep stderr for any message
5755 # that says an option was ignored or not supported.
5756 # When given -MP, icc 7.0 and 7.1 complain thusly:
5757 # icc: Command line warning: ignoring option '-M'; no argument required
5758 # The diagnosis changed in icc 8.0:
5759 # icc: Command line remark: option '-MP' not supported
5760 if (grep 'ignoring option' conftest.err ||
5761 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5762 am_cv_CC_dependencies_compiler_type=$depmode
5763 break
5764 fi
5765 fi
5766 done
5767
5768 cd ..
5769 rm -rf conftest.dir
5770else
5771 am_cv_CC_dependencies_compiler_type=none
5772fi
5773
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5776$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5777CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5778
5779 if
5780 test "x$enable_dependency_tracking" != xno \
5781 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5782 am__fastdepCC_TRUE=
5783 am__fastdepCC_FALSE='#'
5784else
5785 am__fastdepCC_TRUE='#'
5786 am__fastdepCC_FALSE=
5787fi
5788
5789
cristy3ed852e2009-09-05 21:47:34 +00005790
cristya0b81c32010-01-22 02:54:33 +00005791ac_ext=c
5792ac_cpp='$CPP $CPPFLAGS'
5793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5797$as_echo_n "checking how to run the C preprocessor... " >&6; }
5798# On Suns, sometimes $CPP names a directory.
5799if test -n "$CPP" && test -d "$CPP"; then
5800 CPP=
5801fi
5802if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005803 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005804 $as_echo_n "(cached) " >&6
5805else
5806 # Double quotes because CPP needs to be expanded
5807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5808 do
5809 ac_preproc_ok=false
5810for ac_c_preproc_warn_flag in '' yes
5811do
5812 # Use a header file that comes with gcc, so configuring glibc
5813 # with a fresh cross-compiler works.
5814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815 # <limits.h> exists even on freestanding compilers.
5816 # On the NeXT, cc -E runs the code through the compiler's parser,
5817 # not just through cpp. "Syntax error" is here to catch this case.
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h. */
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825 Syntax error
5826_ACEOF
5827if ac_fn_c_try_cpp "$LINENO"; then :
5828
5829else
5830 # Broken: fails on valid input.
5831continue
5832fi
cristyda16f162011-02-19 23:52:17 +00005833rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005834
5835 # OK, works on sane cases. Now check whether nonexistent headers
5836 # can be detected and how.
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h. */
5839#include <ac_nonexistent.h>
5840_ACEOF
5841if ac_fn_c_try_cpp "$LINENO"; then :
5842 # Broken: success on invalid input.
5843continue
5844else
5845 # Passes both tests.
5846ac_preproc_ok=:
5847break
5848fi
cristyda16f162011-02-19 23:52:17 +00005849rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005850
5851done
5852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005853rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005854if $ac_preproc_ok; then :
5855 break
5856fi
5857
5858 done
5859 ac_cv_prog_CPP=$CPP
5860
5861fi
5862 CPP=$ac_cv_prog_CPP
5863else
5864 ac_cv_prog_CPP=$CPP
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5867$as_echo "$CPP" >&6; }
5868ac_preproc_ok=false
5869for ac_c_preproc_warn_flag in '' yes
5870do
5871 # Use a header file that comes with gcc, so configuring glibc
5872 # with a fresh cross-compiler works.
5873 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5874 # <limits.h> exists even on freestanding compilers.
5875 # On the NeXT, cc -E runs the code through the compiler's parser,
5876 # not just through cpp. "Syntax error" is here to catch this case.
5877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h. */
5879#ifdef __STDC__
5880# include <limits.h>
5881#else
5882# include <assert.h>
5883#endif
5884 Syntax error
5885_ACEOF
5886if ac_fn_c_try_cpp "$LINENO"; then :
5887
5888else
5889 # Broken: fails on valid input.
5890continue
5891fi
cristyda16f162011-02-19 23:52:17 +00005892rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005893
5894 # OK, works on sane cases. Now check whether nonexistent headers
5895 # can be detected and how.
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h. */
5898#include <ac_nonexistent.h>
5899_ACEOF
5900if ac_fn_c_try_cpp "$LINENO"; then :
5901 # Broken: success on invalid input.
5902continue
5903else
5904 # Passes both tests.
5905ac_preproc_ok=:
5906break
5907fi
cristyda16f162011-02-19 23:52:17 +00005908rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005909
5910done
5911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005912rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005913if $ac_preproc_ok; then :
5914
5915else
5916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005918as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5919See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005920fi
5921
5922ac_ext=c
5923ac_cpp='$CPP $CPPFLAGS'
5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5930$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005931if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005932 $as_echo_n "(cached) " >&6
5933else
5934 if test -z "$GREP"; then
5935 ac_path_GREP_found=false
5936 # Loop through the user's path and test for each of PROGNAME-LIST
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5939do
5940 IFS=$as_save_IFS
5941 test -z "$as_dir" && as_dir=.
5942 for ac_prog in grep ggrep; do
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005945 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005946# Check for GNU ac_path_GREP and select it if it is found.
5947 # Check for GNU $ac_path_GREP
5948case `"$ac_path_GREP" --version 2>&1` in
5949*GNU*)
5950 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5951*)
5952 ac_count=0
5953 $as_echo_n 0123456789 >"conftest.in"
5954 while :
5955 do
5956 cat "conftest.in" "conftest.in" >"conftest.tmp"
5957 mv "conftest.tmp" "conftest.in"
5958 cp "conftest.in" "conftest.nl"
5959 $as_echo 'GREP' >> "conftest.nl"
5960 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5962 as_fn_arith $ac_count + 1 && ac_count=$as_val
5963 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5964 # Best one so far, save it but keep looking for a better one
5965 ac_cv_path_GREP="$ac_path_GREP"
5966 ac_path_GREP_max=$ac_count
5967 fi
5968 # 10*(2^10) chars as input seems more than enough
5969 test $ac_count -gt 10 && break
5970 done
5971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5972esac
5973
5974 $ac_path_GREP_found && break 3
5975 done
5976 done
5977 done
5978IFS=$as_save_IFS
5979 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005980 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005981 fi
5982else
5983 ac_cv_path_GREP=$GREP
5984fi
5985
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5988$as_echo "$ac_cv_path_GREP" >&6; }
5989 GREP="$ac_cv_path_GREP"
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5993$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005994if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005995 $as_echo_n "(cached) " >&6
5996else
5997 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5998 then ac_cv_path_EGREP="$GREP -E"
5999 else
6000 if test -z "$EGREP"; then
6001 ac_path_EGREP_found=false
6002 # Loop through the user's path and test for each of PROGNAME-LIST
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6005do
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_prog in egrep; do
6009 for ac_exec_ext in '' $ac_executable_extensions; do
6010 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00006011 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00006012# Check for GNU ac_path_EGREP and select it if it is found.
6013 # Check for GNU $ac_path_EGREP
6014case `"$ac_path_EGREP" --version 2>&1` in
6015*GNU*)
6016 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6017*)
6018 ac_count=0
6019 $as_echo_n 0123456789 >"conftest.in"
6020 while :
6021 do
6022 cat "conftest.in" "conftest.in" >"conftest.tmp"
6023 mv "conftest.tmp" "conftest.in"
6024 cp "conftest.in" "conftest.nl"
6025 $as_echo 'EGREP' >> "conftest.nl"
6026 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6028 as_fn_arith $ac_count + 1 && ac_count=$as_val
6029 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6030 # Best one so far, save it but keep looking for a better one
6031 ac_cv_path_EGREP="$ac_path_EGREP"
6032 ac_path_EGREP_max=$ac_count
6033 fi
6034 # 10*(2^10) chars as input seems more than enough
6035 test $ac_count -gt 10 && break
6036 done
6037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6038esac
6039
6040 $ac_path_EGREP_found && break 3
6041 done
6042 done
6043 done
6044IFS=$as_save_IFS
6045 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00006046 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00006047 fi
6048else
6049 ac_cv_path_EGREP=$EGREP
6050fi
6051
6052 fi
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6055$as_echo "$ac_cv_path_EGREP" >&6; }
6056 EGREP="$ac_cv_path_EGREP"
6057
6058
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6060$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006061if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006062 $as_echo_n "(cached) " >&6
6063else
6064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h. */
6066#include <stdlib.h>
6067#include <stdarg.h>
6068#include <string.h>
6069#include <float.h>
6070
6071int
6072main ()
6073{
6074
6075 ;
6076 return 0;
6077}
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"; then :
6080 ac_cv_header_stdc=yes
6081else
6082 ac_cv_header_stdc=no
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085
6086if test $ac_cv_header_stdc = yes; then
6087 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h. */
6090#include <string.h>
6091
6092_ACEOF
6093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094 $EGREP "memchr" >/dev/null 2>&1; then :
6095
6096else
6097 ac_cv_header_stdc=no
6098fi
6099rm -f conftest*
6100
6101fi
6102
6103if test $ac_cv_header_stdc = yes; then
6104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h. */
6107#include <stdlib.h>
6108
6109_ACEOF
6110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111 $EGREP "free" >/dev/null 2>&1; then :
6112
6113else
6114 ac_cv_header_stdc=no
6115fi
6116rm -f conftest*
6117
6118fi
6119
6120if test $ac_cv_header_stdc = yes; then
6121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6122 if test "$cross_compiling" = yes; then :
6123 :
6124else
6125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h. */
6127#include <ctype.h>
6128#include <stdlib.h>
6129#if ((' ' & 0x0FF) == 0x020)
6130# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6132#else
6133# define ISLOWER(c) \
6134 (('a' <= (c) && (c) <= 'i') \
6135 || ('j' <= (c) && (c) <= 'r') \
6136 || ('s' <= (c) && (c) <= 'z'))
6137# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6138#endif
6139
6140#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6141int
6142main ()
6143{
6144 int i;
6145 for (i = 0; i < 256; i++)
6146 if (XOR (islower (i), ISLOWER (i))
6147 || toupper (i) != TOUPPER (i))
6148 return 2;
6149 return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_run "$LINENO"; then :
6153
6154else
6155 ac_cv_header_stdc=no
6156fi
6157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6158 conftest.$ac_objext conftest.beam conftest.$ac_ext
6159fi
6160
6161fi
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6164$as_echo "$ac_cv_header_stdc" >&6; }
6165if test $ac_cv_header_stdc = yes; then
6166
6167$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6168
6169fi
6170
6171# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6172for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6173 inttypes.h stdint.h unistd.h
6174do :
6175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6176ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6177"
cristy98dddb52010-11-04 00:30:15 +00006178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00006179 cat >>confdefs.h <<_ACEOF
6180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6181_ACEOF
6182
6183fi
6184
6185done
6186
6187
6188
6189 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 +00006190if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00006191 MINIX=yes
6192else
6193 MINIX=
6194fi
6195
6196
6197 if test "$MINIX" = yes; then
6198
6199$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6200
6201
6202$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6203
6204
6205$as_echo "#define _MINIX 1" >>confdefs.h
6206
6207 fi
6208
6209
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6211$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006212if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006213 $as_echo_n "(cached) " >&6
6214else
6215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h. */
6217
cristy14fefe52012-05-21 00:59:18 +00006218# define __EXTENSIONS__ 1
6219 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00006220int
6221main ()
6222{
6223
6224 ;
6225 return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229 ac_cv_safe_to_define___extensions__=yes
6230else
6231 ac_cv_safe_to_define___extensions__=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6236$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6237 test $ac_cv_safe_to_define___extensions__ = yes &&
6238 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6239
6240 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6241
6242 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6243
6244 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6245
6246 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6247
6248
6249
cristy9af1cbf2014-12-28 22:03:09 +00006250# ==============================================================================
6251# Find required base packages
6252# ==============================================================================
cristy9e007fe2015-01-03 16:05:07 +00006253if test -n "$ac_tool_prefix"; then
6254 for ac_prog in ar lib "link -lib"
6255 do
6256 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
6260if ${ac_cv_prog_AR+:} false; then :
6261 $as_echo_n "(cached) " >&6
6262else
6263 if test -n "$AR"; then
6264 ac_cv_prog_AR="$AR" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269 IFS=$as_save_IFS
6270 test -z "$as_dir" && as_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 break 2
6276 fi
6277done
6278 done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283AR=$ac_cv_prog_AR
6284if test -n "$AR"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6286$as_echo "$AR" >&6; }
6287else
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292
6293 test -n "$AR" && break
6294 done
6295fi
6296if test -z "$AR"; then
6297 ac_ct_AR=$AR
6298 for ac_prog in ar lib "link -lib"
6299do
6300 # Extract the first word of "$ac_prog", so it can be a program name with args.
6301set dummy $ac_prog; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if ${ac_cv_prog_ac_ct_AR+:} false; then :
6305 $as_echo_n "(cached) " >&6
6306else
6307 if test -n "$ac_ct_AR"; then
6308 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313 IFS=$as_save_IFS
6314 test -z "$as_dir" && as_dir=.
6315 for ac_exec_ext in '' $ac_executable_extensions; do
6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317 ac_cv_prog_ac_ct_AR="$ac_prog"
6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 break 2
6320 fi
6321done
6322 done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327ac_ct_AR=$ac_cv_prog_ac_ct_AR
6328if test -n "$ac_ct_AR"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6330$as_echo "$ac_ct_AR" >&6; }
6331else
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336
6337 test -n "$ac_ct_AR" && break
6338done
6339
6340 if test "x$ac_ct_AR" = x; then
6341 AR="false"
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344yes:)
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347ac_tool_warned=yes ;;
6348esac
6349 AR=$ac_ct_AR
6350 fi
6351fi
6352
6353: ${AR=ar}
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6356$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6357if ${am_cv_ar_interface+:} false; then :
6358 $as_echo_n "(cached) " >&6
6359else
6360 ac_ext=c
6361ac_cpp='$CPP $CPPFLAGS'
6362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365
6366 am_cv_ar_interface=ar
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h. */
6369int some_variable = 0;
6370_ACEOF
6371if ac_fn_c_try_compile "$LINENO"; then :
6372 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6374 (eval $am_ar_try) 2>&5
6375 ac_status=$?
6376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377 test $ac_status = 0; }
6378 if test "$ac_status" -eq 0; then
6379 am_cv_ar_interface=ar
6380 else
6381 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6383 (eval $am_ar_try) 2>&5
6384 ac_status=$?
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386 test $ac_status = 0; }
6387 if test "$ac_status" -eq 0; then
6388 am_cv_ar_interface=lib
6389 else
6390 am_cv_ar_interface=unknown
6391 fi
6392 fi
6393 rm -f conftest.lib libconftest.a
6394
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397 ac_ext=c
6398ac_cpp='$CPP $CPPFLAGS'
6399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6405$as_echo "$am_cv_ar_interface" >&6; }
6406
6407case $am_cv_ar_interface in
6408ar)
6409 ;;
6410lib)
6411 # Microsoft lib, so override with the ar-lib wrapper script.
6412 # FIXME: It is wrong to rewrite AR.
6413 # But if we don't then we get into trouble of one sort or another.
6414 # A longer-term fix would be to have automake use am__AR in this case,
6415 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6416 # similar.
6417 AR="$am_aux_dir/ar-lib $AR"
6418 ;;
6419unknown)
6420 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6421 ;;
6422esac
cristy9af1cbf2014-12-28 22:03:09 +00006423
cristya0b81c32010-01-22 02:54:33 +00006424ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429if test -n "$ac_tool_prefix"; then
6430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}gcc; ac_word=$2
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006434if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006435 $as_echo_n "(cached) " >&6
6436else
6437 if test -n "$CC"; then
6438 ac_cv_prog_CC="$CC" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006447 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449 break 2
6450 fi
6451done
6452 done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457CC=$ac_cv_prog_CC
6458if test -n "$CC"; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6460$as_echo "$CC" >&6; }
6461else
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466
6467fi
6468if test -z "$ac_cv_prog_CC"; then
6469 ac_ct_CC=$CC
6470 # Extract the first word of "gcc", so it can be a program name with args.
6471set dummy gcc; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006474if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006475 $as_echo_n "(cached) " >&6
6476else
6477 if test -n "$ac_ct_CC"; then
6478 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483 IFS=$as_save_IFS
6484 test -z "$as_dir" && as_dir=.
6485 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006487 ac_cv_prog_ac_ct_CC="gcc"
6488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489 break 2
6490 fi
6491done
6492 done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_CC=$ac_cv_prog_ac_ct_CC
6498if test -n "$ac_ct_CC"; then
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6500$as_echo "$ac_ct_CC" >&6; }
6501else
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506 if test "x$ac_ct_CC" = x; then
6507 CC=""
6508 else
6509 case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515 CC=$ac_ct_CC
6516 fi
6517else
6518 CC="$ac_cv_prog_CC"
6519fi
6520
6521if test -z "$CC"; then
6522 if test -n "$ac_tool_prefix"; then
6523 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6524set dummy ${ac_tool_prefix}cc; ac_word=$2
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006527if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006528 $as_echo_n "(cached) " >&6
6529else
6530 if test -n "$CC"; then
6531 ac_cv_prog_CC="$CC" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536 IFS=$as_save_IFS
6537 test -z "$as_dir" && as_dir=.
6538 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006540 ac_cv_prog_CC="${ac_tool_prefix}cc"
6541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 break 2
6543 fi
6544done
6545 done
6546IFS=$as_save_IFS
6547
6548fi
6549fi
6550CC=$ac_cv_prog_CC
6551if test -n "$CC"; then
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6553$as_echo "$CC" >&6; }
6554else
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
6557fi
6558
6559
6560 fi
6561fi
6562if test -z "$CC"; then
6563 # Extract the first word of "cc", so it can be a program name with args.
6564set dummy cc; ac_word=$2
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006567if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006568 $as_echo_n "(cached) " >&6
6569else
6570 if test -n "$CC"; then
6571 ac_cv_prog_CC="$CC" # Let the user override the test.
6572else
6573 ac_prog_rejected=no
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006581 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6582 ac_prog_rejected=yes
6583 continue
6584 fi
6585 ac_cv_prog_CC="cc"
6586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587 break 2
6588 fi
6589done
6590 done
6591IFS=$as_save_IFS
6592
6593if test $ac_prog_rejected = yes; then
6594 # We found a bogon in the path, so make sure we never use it.
6595 set dummy $ac_cv_prog_CC
6596 shift
6597 if test $# != 0; then
6598 # We chose a different compiler from the bogus one.
6599 # However, it has the same basename, so the bogon will be chosen
6600 # first if we set CC to just the basename; use the full file name.
6601 shift
6602 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6603 fi
6604fi
6605fi
6606fi
6607CC=$ac_cv_prog_CC
6608if test -n "$CC"; then
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6610$as_echo "$CC" >&6; }
6611else
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616
6617fi
6618if test -z "$CC"; then
6619 if test -n "$ac_tool_prefix"; then
6620 for ac_prog in cl.exe
6621 do
6622 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006626if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006627 $as_echo_n "(cached) " >&6
6628else
6629 if test -n "$CC"; then
6630 ac_cv_prog_CC="$CC" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006639 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643done
6644 done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649CC=$ac_cv_prog_CC
6650if test -n "$CC"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6652$as_echo "$CC" >&6; }
6653else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658
6659 test -n "$CC" && break
6660 done
6661fi
6662if test -z "$CC"; then
6663 ac_ct_CC=$CC
6664 for ac_prog in cl.exe
6665do
6666 # Extract the first word of "$ac_prog", so it can be a program name with args.
6667set dummy $ac_prog; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006670if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006671 $as_echo_n "(cached) " >&6
6672else
6673 if test -n "$ac_ct_CC"; then
6674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679 IFS=$as_save_IFS
6680 test -z "$as_dir" && as_dir=.
6681 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006683 ac_cv_prog_ac_ct_CC="$ac_prog"
6684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685 break 2
6686 fi
6687done
6688 done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_CC=$ac_cv_prog_ac_ct_CC
6694if test -n "$ac_ct_CC"; then
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6696$as_echo "$ac_ct_CC" >&6; }
6697else
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702
6703 test -n "$ac_ct_CC" && break
6704done
6705
6706 if test "x$ac_ct_CC" = x; then
6707 CC=""
6708 else
6709 case $cross_compiling:$ac_tool_warned in
6710yes:)
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715 CC=$ac_ct_CC
6716 fi
6717fi
6718
6719fi
6720
6721
6722test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006724as_fn_error $? "no acceptable C compiler found in \$PATH
6725See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006726
6727# Provide some information about the compiler.
6728$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6729set X $ac_compile
6730ac_compiler=$2
6731for ac_option in --version -v -V -qversion; do
6732 { { ac_try="$ac_compiler $ac_option >&5"
6733case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6736esac
6737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6738$as_echo "$ac_try_echo"; } >&5
6739 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6740 ac_status=$?
6741 if test -s conftest.err; then
6742 sed '10a\
6743... rest of stderr output deleted ...
6744 10q' conftest.err >conftest.er1
6745 cat conftest.er1 >&5
6746 fi
6747 rm -f conftest.er1 conftest.err
6748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749 test $ac_status = 0; }
6750done
6751
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6753$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006754if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006755 $as_echo_n "(cached) " >&6
6756else
6757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h. */
6759
6760int
6761main ()
6762{
6763#ifndef __GNUC__
6764 choke me
6765#endif
6766
6767 ;
6768 return 0;
6769}
6770_ACEOF
6771if ac_fn_c_try_compile "$LINENO"; then :
6772 ac_compiler_gnu=yes
6773else
6774 ac_compiler_gnu=no
6775fi
6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777ac_cv_c_compiler_gnu=$ac_compiler_gnu
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6781$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6782if test $ac_compiler_gnu = yes; then
6783 GCC=yes
6784else
6785 GCC=
6786fi
6787ac_test_CFLAGS=${CFLAGS+set}
6788ac_save_CFLAGS=$CFLAGS
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6790$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006791if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006792 $as_echo_n "(cached) " >&6
6793else
6794 ac_save_c_werror_flag=$ac_c_werror_flag
6795 ac_c_werror_flag=yes
6796 ac_cv_prog_cc_g=no
6797 CFLAGS="-g"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h. */
6800
6801int
6802main ()
6803{
6804
6805 ;
6806 return 0;
6807}
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"; then :
6810 ac_cv_prog_cc_g=yes
6811else
6812 CFLAGS=""
6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h. */
6815
6816int
6817main ()
6818{
6819
6820 ;
6821 return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"; then :
6825
6826else
6827 ac_c_werror_flag=$ac_save_c_werror_flag
6828 CFLAGS="-g"
6829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h. */
6831
6832int
6833main ()
6834{
6835
6836 ;
6837 return 0;
6838}
6839_ACEOF
6840if ac_fn_c_try_compile "$LINENO"; then :
6841 ac_cv_prog_cc_g=yes
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846fi
6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848 ac_c_werror_flag=$ac_save_c_werror_flag
6849fi
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6851$as_echo "$ac_cv_prog_cc_g" >&6; }
6852if test "$ac_test_CFLAGS" = set; then
6853 CFLAGS=$ac_save_CFLAGS
6854elif test $ac_cv_prog_cc_g = yes; then
6855 if test "$GCC" = yes; then
6856 CFLAGS="-g -O2"
6857 else
6858 CFLAGS="-g"
6859 fi
6860else
6861 if test "$GCC" = yes; then
6862 CFLAGS="-O2"
6863 else
6864 CFLAGS=
6865 fi
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6868$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006869if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006870 $as_echo_n "(cached) " >&6
6871else
6872 ac_cv_prog_cc_c89=no
6873ac_save_CC=$CC
6874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h. */
6876#include <stdarg.h>
6877#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006878struct stat;
cristya0b81c32010-01-22 02:54:33 +00006879/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6880struct buf { int x; };
6881FILE * (*rcsopen) (struct buf *, struct stat *, int);
6882static char *e (p, i)
6883 char **p;
6884 int i;
6885{
6886 return p[i];
6887}
6888static char *f (char * (*g) (char **, int), char **p, ...)
6889{
6890 char *s;
6891 va_list v;
6892 va_start (v,p);
6893 s = g (p, va_arg (v,int));
6894 va_end (v);
6895 return s;
6896}
6897
6898/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6899 function prototypes and stuff, but not '\xHH' hex character constants.
6900 These don't provoke an error unfortunately, instead are silently treated
6901 as 'x'. The following induces an error, until -std is added to get
6902 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6903 array size at least. It's necessary to write '\x00'==0 to get something
6904 that's true only with -std. */
6905int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6906
6907/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6908 inside strings and character constants. */
6909#define FOO(x) 'x'
6910int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6911
6912int test (int i, double x);
6913struct s1 {int (*f) (int a);};
6914struct s2 {int (*f) (double a);};
6915int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6916int argc;
6917char **argv;
6918int
6919main ()
6920{
6921return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6922 ;
6923 return 0;
6924}
6925_ACEOF
6926for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6927 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6928do
6929 CC="$ac_save_CC $ac_arg"
6930 if ac_fn_c_try_compile "$LINENO"; then :
6931 ac_cv_prog_cc_c89=$ac_arg
6932fi
6933rm -f core conftest.err conftest.$ac_objext
6934 test "x$ac_cv_prog_cc_c89" != "xno" && break
6935done
6936rm -f conftest.$ac_ext
6937CC=$ac_save_CC
6938
6939fi
6940# AC_CACHE_VAL
6941case "x$ac_cv_prog_cc_c89" in
6942 x)
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6944$as_echo "none needed" >&6; } ;;
6945 xno)
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6947$as_echo "unsupported" >&6; } ;;
6948 *)
6949 CC="$CC $ac_cv_prog_cc_c89"
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6951$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6952esac
6953if test "x$ac_cv_prog_cc_c89" != xno; then :
6954
6955fi
6956
6957ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
cristya5bda012013-11-03 18:05:38 +00006963ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6969$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6970if ${am_cv_prog_cc_c_o+:} false; then :
6971 $as_echo_n "(cached) " >&6
6972else
6973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h. */
6975
6976int
6977main ()
6978{
6979
6980 ;
6981 return 0;
6982}
6983_ACEOF
6984 # Make sure it works both with $CC and with simple cc.
6985 # Following AC_PROG_CC_C_O, we do the test twice because some
6986 # compilers refuse to overwrite an existing .o file with -o,
6987 # though they will create one.
6988 am_cv_prog_cc_c_o=yes
6989 for am_i in 1 2; do
6990 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6991 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6992 ac_status=$?
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); } \
6995 && test -f conftest2.$ac_objext; then
6996 : OK
6997 else
6998 am_cv_prog_cc_c_o=no
6999 break
7000 fi
7001 done
7002 rm -f core conftest*
7003 unset am_i
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7006$as_echo "$am_cv_prog_cc_c_o" >&6; }
7007if test "$am_cv_prog_cc_c_o" != yes; then
7008 # Losing compiler, so override with the script.
7009 # FIXME: It is wrong to rewrite CC.
7010 # But if we don't then we get into trouble of one sort or another.
7011 # A longer-term fix would be to have automake use am__CC in this case,
7012 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7013 CC="$am_aux_dir/compile $CC"
7014fi
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021
cristy73bd4a52010-10-05 11:24:23 +00007022depcc="$CC" am_compiler_list=
7023
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7025$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007026if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007027 $as_echo_n "(cached) " >&6
7028else
7029 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7030 # We make a subdir and do the tests there. Otherwise we can end up
7031 # making bogus files that we don't know about and never remove. For
7032 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007033 # making a dummy file named 'D' -- because '-MD' means "put the output
7034 # in D".
cristy7247bba2012-02-05 16:37:27 +00007035 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007036 mkdir conftest.dir
7037 # Copy depcomp to subdir because otherwise we won't find it if we're
7038 # using a relative directory.
7039 cp "$am_depcomp" conftest.dir
7040 cd conftest.dir
7041 # We will build objects and dependencies in a subdirectory because
7042 # it helps to detect inapplicable dependency modes. For instance
7043 # both Tru64's cc and ICC support -MD to output dependencies as a
7044 # side effect of compilation, but ICC will put the dependencies in
7045 # the current directory while Tru64 will put them in the object
7046 # directory.
7047 mkdir sub
7048
7049 am_cv_CC_dependencies_compiler_type=none
7050 if test "$am_compiler_list" = ""; then
7051 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7052 fi
7053 am__universal=false
7054 case " $depcc " in #(
7055 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7056 esac
7057
7058 for depmode in $am_compiler_list; do
7059 # Setup a source with many dependencies, because some compilers
7060 # like to wrap large dependency lists on column 80 (with \), and
7061 # we should not choose a depcomp mode which is confused by this.
7062 #
7063 # We need to recreate these files for each test, as the compiler may
7064 # overwrite some of them when testing with obscure command lines.
7065 # This happens at least with the AIX C compiler.
7066 : > sub/conftest.c
7067 for i in 1 2 3 4 5 6; do
7068 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007069 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7070 # Solaris 10 /bin/sh.
7071 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007072 done
7073 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7074
cristyc0890a62012-07-19 00:18:20 +00007075 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007076 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007077 # handle '-M -o', and we need to detect this. Also, some Intel
7078 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007079 am__obj=sub/conftest.${OBJEXT-o}
7080 am__minus_obj="-o $am__obj"
7081 case $depmode in
7082 gcc)
7083 # This depmode causes a compiler race in universal mode.
7084 test "$am__universal" = false || continue
7085 ;;
7086 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007087 # After this tag, mechanisms are not by side-effect, so they'll
7088 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007089 if test "x$enable_dependency_tracking" = xyes; then
7090 continue
7091 else
7092 break
7093 fi
7094 ;;
cristy7247bba2012-02-05 16:37:27 +00007095 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007096 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007097 # not run yet. These depmodes are late enough in the game, and
7098 # so weak that their functioning should not be impacted.
7099 am__obj=conftest.${OBJEXT-o}
7100 am__minus_obj=
7101 ;;
7102 none) break ;;
7103 esac
7104 if depmode=$depmode \
7105 source=sub/conftest.c object=$am__obj \
7106 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7107 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7108 >/dev/null 2>conftest.err &&
7109 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7110 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7111 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7112 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7113 # icc doesn't choke on unknown options, it will just issue warnings
7114 # or remarks (even with -Werror). So we grep stderr for any message
7115 # that says an option was ignored or not supported.
7116 # When given -MP, icc 7.0 and 7.1 complain thusly:
7117 # icc: Command line warning: ignoring option '-M'; no argument required
7118 # The diagnosis changed in icc 8.0:
7119 # icc: Command line remark: option '-MP' not supported
7120 if (grep 'ignoring option' conftest.err ||
7121 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7122 am_cv_CC_dependencies_compiler_type=$depmode
7123 break
7124 fi
7125 fi
7126 done
7127
7128 cd ..
7129 rm -rf conftest.dir
7130else
7131 am_cv_CC_dependencies_compiler_type=none
7132fi
7133
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7136$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7138
7139 if
7140 test "x$enable_dependency_tracking" != xno \
7141 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7142 am__fastdepCC_TRUE=
7143 am__fastdepCC_FALSE='#'
7144else
7145 am__fastdepCC_TRUE='#'
7146 am__fastdepCC_FALSE=
7147fi
7148
7149
cristy95646052009-11-28 23:05:30 +00007150ac_ext=cpp
7151ac_cpp='$CXXCPP $CPPFLAGS'
7152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7155if test -z "$CXX"; then
7156 if test -n "$CCC"; then
7157 CXX=$CCC
7158 else
7159 if test -n "$ac_tool_prefix"; then
7160 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7161 do
7162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007166if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007167 $as_echo_n "(cached) " >&6
7168else
7169 if test -n "$CXX"; then
7170 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007179 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184 done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189CXX=$ac_cv_prog_CXX
7190if test -n "$CXX"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7192$as_echo "$CXX" >&6; }
7193else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199 test -n "$CXX" && break
7200 done
7201fi
7202if test -z "$CXX"; then
7203 ac_ct_CXX=$CXX
7204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7205do
7206 # Extract the first word of "$ac_prog", so it can be a program name with args.
7207set dummy $ac_prog; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007210if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00007211 $as_echo_n "(cached) " >&6
7212else
7213 if test -n "$ac_ct_CXX"; then
7214 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00007222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00007223 ac_cv_prog_ac_ct_CXX="$ac_prog"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227done
7228 done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7234if test -n "$ac_ct_CXX"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7236$as_echo "$ac_ct_CXX" >&6; }
7237else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243 test -n "$ac_ct_CXX" && break
7244done
7245
7246 if test "x$ac_ct_CXX" = x; then
7247 CXX="g++"
7248 else
7249 case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255 CXX=$ac_ct_CXX
7256 fi
7257fi
7258
7259 fi
7260fi
7261# Provide some information about the compiler.
7262$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7263set X $ac_compile
7264ac_compiler=$2
7265for ac_option in --version -v -V -qversion; do
7266 { { ac_try="$ac_compiler $ac_option >&5"
7267case "(($ac_try" in
7268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269 *) ac_try_echo=$ac_try;;
7270esac
7271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7272$as_echo "$ac_try_echo"; } >&5
7273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7274 ac_status=$?
7275 if test -s conftest.err; then
7276 sed '10a\
7277... rest of stderr output deleted ...
7278 10q' conftest.err >conftest.er1
7279 cat conftest.er1 >&5
7280 fi
7281 rm -f conftest.er1 conftest.err
7282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283 test $ac_status = 0; }
7284done
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7287$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007288if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00007289 $as_echo_n "(cached) " >&6
7290else
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h. */
7293
7294int
7295main ()
7296{
7297#ifndef __GNUC__
7298 choke me
7299#endif
7300
7301 ;
7302 return 0;
7303}
7304_ACEOF
7305if ac_fn_cxx_try_compile "$LINENO"; then :
7306 ac_compiler_gnu=yes
7307else
7308 ac_compiler_gnu=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7312
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7315$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7316if test $ac_compiler_gnu = yes; then
7317 GXX=yes
7318else
7319 GXX=
7320fi
7321ac_test_CXXFLAGS=${CXXFLAGS+set}
7322ac_save_CXXFLAGS=$CXXFLAGS
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7324$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007325if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00007326 $as_echo_n "(cached) " >&6
7327else
7328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7329 ac_cxx_werror_flag=yes
7330 ac_cv_prog_cxx_g=no
7331 CXXFLAGS="-g"
7332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h. */
7334
7335int
7336main ()
7337{
7338
7339 ;
7340 return 0;
7341}
7342_ACEOF
7343if ac_fn_cxx_try_compile "$LINENO"; then :
7344 ac_cv_prog_cxx_g=yes
7345else
7346 CXXFLAGS=""
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h. */
7349
7350int
7351main ()
7352{
7353
7354 ;
7355 return 0;
7356}
7357_ACEOF
7358if ac_fn_cxx_try_compile "$LINENO"; then :
7359
7360else
7361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7362 CXXFLAGS="-g"
7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h. */
7365
7366int
7367main ()
7368{
7369
7370 ;
7371 return 0;
7372}
7373_ACEOF
7374if ac_fn_cxx_try_compile "$LINENO"; then :
7375 ac_cv_prog_cxx_g=yes
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7383fi
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7385$as_echo "$ac_cv_prog_cxx_g" >&6; }
7386if test "$ac_test_CXXFLAGS" = set; then
7387 CXXFLAGS=$ac_save_CXXFLAGS
7388elif test $ac_cv_prog_cxx_g = yes; then
7389 if test "$GXX" = yes; then
7390 CXXFLAGS="-g -O2"
7391 else
7392 CXXFLAGS="-g"
7393 fi
7394else
7395 if test "$GXX" = yes; then
7396 CXXFLAGS="-O2"
7397 else
7398 CXXFLAGS=
7399 fi
7400fi
7401ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
cristy73bd4a52010-10-05 11:24:23 +00007407depcc="$CXX" am_compiler_list=
7408
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7410$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007411if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007412 $as_echo_n "(cached) " >&6
7413else
7414 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7415 # We make a subdir and do the tests there. Otherwise we can end up
7416 # making bogus files that we don't know about and never remove. For
7417 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00007418 # making a dummy file named 'D' -- because '-MD' means "put the output
7419 # in D".
cristy7247bba2012-02-05 16:37:27 +00007420 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00007421 mkdir conftest.dir
7422 # Copy depcomp to subdir because otherwise we won't find it if we're
7423 # using a relative directory.
7424 cp "$am_depcomp" conftest.dir
7425 cd conftest.dir
7426 # We will build objects and dependencies in a subdirectory because
7427 # it helps to detect inapplicable dependency modes. For instance
7428 # both Tru64's cc and ICC support -MD to output dependencies as a
7429 # side effect of compilation, but ICC will put the dependencies in
7430 # the current directory while Tru64 will put them in the object
7431 # directory.
7432 mkdir sub
7433
7434 am_cv_CXX_dependencies_compiler_type=none
7435 if test "$am_compiler_list" = ""; then
7436 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7437 fi
7438 am__universal=false
7439 case " $depcc " in #(
7440 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7441 esac
7442
7443 for depmode in $am_compiler_list; do
7444 # Setup a source with many dependencies, because some compilers
7445 # like to wrap large dependency lists on column 80 (with \), and
7446 # we should not choose a depcomp mode which is confused by this.
7447 #
7448 # We need to recreate these files for each test, as the compiler may
7449 # overwrite some of them when testing with obscure command lines.
7450 # This happens at least with the AIX C compiler.
7451 : > sub/conftest.c
7452 for i in 1 2 3 4 5 6; do
7453 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00007454 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7455 # Solaris 10 /bin/sh.
7456 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00007457 done
7458 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7459
cristyc0890a62012-07-19 00:18:20 +00007460 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00007461 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00007462 # handle '-M -o', and we need to detect this. Also, some Intel
7463 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00007464 am__obj=sub/conftest.${OBJEXT-o}
7465 am__minus_obj="-o $am__obj"
7466 case $depmode in
7467 gcc)
7468 # This depmode causes a compiler race in universal mode.
7469 test "$am__universal" = false || continue
7470 ;;
7471 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00007472 # After this tag, mechanisms are not by side-effect, so they'll
7473 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00007474 if test "x$enable_dependency_tracking" = xyes; then
7475 continue
7476 else
7477 break
7478 fi
7479 ;;
cristy7247bba2012-02-05 16:37:27 +00007480 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00007481 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00007482 # not run yet. These depmodes are late enough in the game, and
7483 # so weak that their functioning should not be impacted.
7484 am__obj=conftest.${OBJEXT-o}
7485 am__minus_obj=
7486 ;;
7487 none) break ;;
7488 esac
7489 if depmode=$depmode \
7490 source=sub/conftest.c object=$am__obj \
7491 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7492 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7493 >/dev/null 2>conftest.err &&
7494 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7495 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7496 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7497 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7498 # icc doesn't choke on unknown options, it will just issue warnings
7499 # or remarks (even with -Werror). So we grep stderr for any message
7500 # that says an option was ignored or not supported.
7501 # When given -MP, icc 7.0 and 7.1 complain thusly:
7502 # icc: Command line warning: ignoring option '-M'; no argument required
7503 # The diagnosis changed in icc 8.0:
7504 # icc: Command line remark: option '-MP' not supported
7505 if (grep 'ignoring option' conftest.err ||
7506 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7507 am_cv_CXX_dependencies_compiler_type=$depmode
7508 break
7509 fi
7510 fi
7511 done
7512
7513 cd ..
7514 rm -rf conftest.dir
7515else
7516 am_cv_CXX_dependencies_compiler_type=none
7517fi
7518
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7521$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7522CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7523
7524 if
7525 test "x$enable_dependency_tracking" != xno \
7526 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7527 am__fastdepCXX_TRUE=
7528 am__fastdepCXX_FALSE='#'
7529else
7530 am__fastdepCXX_TRUE='#'
7531 am__fastdepCXX_FALSE=
7532fi
7533
7534
cristy8b350f62009-11-15 23:12:43 +00007535 case $ac_cv_prog_cc_stdc in #(
7536 no) :
7537 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7538 *) :
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007540$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007541if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007542 $as_echo_n "(cached) " >&6
7543else
7544 ac_cv_prog_cc_c99=no
7545ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007547/* end confdefs.h. */
7548#include <stdarg.h>
7549#include <stdbool.h>
7550#include <stdlib.h>
7551#include <wchar.h>
7552#include <stdio.h>
7553
7554// Check varargs macros. These examples are taken from C99 6.10.3.5.
7555#define debug(...) fprintf (stderr, __VA_ARGS__)
7556#define showlist(...) puts (#__VA_ARGS__)
7557#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7558static void
7559test_varargs_macros (void)
7560{
7561 int x = 1234;
7562 int y = 5678;
7563 debug ("Flag");
7564 debug ("X = %d\n", x);
7565 showlist (The first, second, and third items.);
7566 report (x>y, "x is %d but y is %d", x, y);
7567}
7568
7569// Check long long types.
7570#define BIG64 18446744073709551615ull
7571#define BIG32 4294967295ul
7572#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7573#if !BIG_OK
7574 your preprocessor is broken;
7575#endif
7576#if BIG_OK
7577#else
7578 your preprocessor is broken;
7579#endif
7580static long long int bignum = -9223372036854775807LL;
7581static unsigned long long int ubignum = BIG64;
7582
7583struct incomplete_array
7584{
7585 int datasize;
7586 double data[];
7587};
7588
7589struct named_init {
7590 int number;
7591 const wchar_t *name;
7592 double average;
7593};
7594
7595typedef const char *ccp;
7596
7597static inline int
7598test_restrict (ccp restrict text)
7599{
7600 // See if C++-style comments work.
7601 // Iterate through items via the restricted pointer.
7602 // Also check for declarations in for loops.
7603 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7604 continue;
7605 return 0;
7606}
7607
7608// Check varargs and va_copy.
7609static void
7610test_varargs (const char *format, ...)
7611{
7612 va_list args;
7613 va_start (args, format);
7614 va_list args_copy;
7615 va_copy (args_copy, args);
7616
7617 const char *str;
7618 int number;
7619 float fnumber;
7620
7621 while (*format)
7622 {
7623 switch (*format++)
7624 {
7625 case 's': // string
7626 str = va_arg (args_copy, const char *);
7627 break;
7628 case 'd': // int
7629 number = va_arg (args_copy, int);
7630 break;
7631 case 'f': // float
7632 fnumber = va_arg (args_copy, double);
7633 break;
7634 default:
7635 break;
7636 }
7637 }
7638 va_end (args_copy);
7639 va_end (args);
7640}
7641
7642int
7643main ()
7644{
7645
7646 // Check bool.
7647 _Bool success = false;
7648
7649 // Check restrict.
7650 if (test_restrict ("String literal") == 0)
7651 success = true;
7652 char *restrict newvar = "Another string";
7653
7654 // Check varargs.
7655 test_varargs ("s, d' f .", "string", 65, 34.234);
7656 test_varargs_macros ();
7657
7658 // Check flexible array members.
7659 struct incomplete_array *ia =
7660 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7661 ia->datasize = 10;
7662 for (int i = 0; i < ia->datasize; ++i)
7663 ia->data[i] = i * 1.234;
7664
7665 // Check named initializers.
7666 struct named_init ni = {
7667 .number = 34,
7668 .name = L"Test wide string",
7669 .average = 543.34343,
7670 };
7671
7672 ni.number = 58;
7673
7674 int dynamic_array[ni.number];
7675 dynamic_array[ni.number - 1] = 543;
7676
7677 // work around unused variable warnings
7678 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7679 || dynamic_array[ni.number - 1] != 543);
7680
7681 ;
7682 return 0;
7683}
7684_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007685for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007686do
7687 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007688 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007689 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007690fi
cristy3ed852e2009-09-05 21:47:34 +00007691rm -f core conftest.err conftest.$ac_objext
7692 test "x$ac_cv_prog_cc_c99" != "xno" && break
7693done
7694rm -f conftest.$ac_ext
7695CC=$ac_save_CC
7696
7697fi
7698# AC_CACHE_VAL
7699case "x$ac_cv_prog_cc_c99" in
7700 x)
cristy8b350f62009-11-15 23:12:43 +00007701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007702$as_echo "none needed" >&6; } ;;
7703 xno)
cristy8b350f62009-11-15 23:12:43 +00007704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007705$as_echo "unsupported" >&6; } ;;
7706 *)
7707 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007709$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7710esac
cristy8b350f62009-11-15 23:12:43 +00007711if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007712 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7713else
cristy8b350f62009-11-15 23:12:43 +00007714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007715$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007716if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007717 $as_echo_n "(cached) " >&6
7718else
7719 ac_cv_prog_cc_c89=no
7720ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007722/* end confdefs.h. */
7723#include <stdarg.h>
7724#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007725struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7727struct buf { int x; };
7728FILE * (*rcsopen) (struct buf *, struct stat *, int);
7729static char *e (p, i)
7730 char **p;
7731 int i;
7732{
7733 return p[i];
7734}
7735static char *f (char * (*g) (char **, int), char **p, ...)
7736{
7737 char *s;
7738 va_list v;
7739 va_start (v,p);
7740 s = g (p, va_arg (v,int));
7741 va_end (v);
7742 return s;
7743}
7744
7745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7746 function prototypes and stuff, but not '\xHH' hex character constants.
7747 These don't provoke an error unfortunately, instead are silently treated
7748 as 'x'. The following induces an error, until -std is added to get
7749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7750 array size at least. It's necessary to write '\x00'==0 to get something
7751 that's true only with -std. */
7752int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7753
7754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7755 inside strings and character constants. */
7756#define FOO(x) 'x'
7757int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7758
7759int test (int i, double x);
7760struct s1 {int (*f) (int a);};
7761struct s2 {int (*f) (double a);};
7762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7763int argc;
7764char **argv;
7765int
7766main ()
7767{
7768return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7769 ;
7770 return 0;
7771}
7772_ACEOF
7773for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7775do
7776 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007777 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007778 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007779fi
cristy3ed852e2009-09-05 21:47:34 +00007780rm -f core conftest.err conftest.$ac_objext
7781 test "x$ac_cv_prog_cc_c89" != "xno" && break
7782done
7783rm -f conftest.$ac_ext
7784CC=$ac_save_CC
7785
7786fi
7787# AC_CACHE_VAL
7788case "x$ac_cv_prog_cc_c89" in
7789 x)
cristy8b350f62009-11-15 23:12:43 +00007790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007791$as_echo "none needed" >&6; } ;;
7792 xno)
cristy8b350f62009-11-15 23:12:43 +00007793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007794$as_echo "unsupported" >&6; } ;;
7795 *)
7796 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7799esac
cristy8b350f62009-11-15 23:12:43 +00007800if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007801 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7802else
7803 ac_cv_prog_cc_stdc=no
7804fi
7805
cristy3ed852e2009-09-05 21:47:34 +00007806fi
cristy3ed852e2009-09-05 21:47:34 +00007807 ;;
7808esac
cristy8b350f62009-11-15 23:12:43 +00007809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007810$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007811 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007812 $as_echo_n "(cached) " >&6
7813fi
7814
cristy8b350f62009-11-15 23:12:43 +00007815 case $ac_cv_prog_cc_stdc in #(
7816 no) :
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7818$as_echo "unsupported" >&6; } ;; #(
7819 '') :
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7821$as_echo "none needed" >&6; } ;; #(
7822 *) :
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007824$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7825esac
7826
cristy3ed852e2009-09-05 21:47:34 +00007827ac_ext=c
7828ac_cpp='$CPP $CPPFLAGS'
7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007833$as_echo_n "checking how to run the C preprocessor... " >&6; }
7834# On Suns, sometimes $CPP names a directory.
7835if test -n "$CPP" && test -d "$CPP"; then
7836 CPP=
7837fi
7838if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007839 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007840 $as_echo_n "(cached) " >&6
7841else
7842 # Double quotes because CPP needs to be expanded
7843 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7844 do
7845 ac_preproc_ok=false
7846for ac_c_preproc_warn_flag in '' yes
7847do
7848 # Use a header file that comes with gcc, so configuring glibc
7849 # with a fresh cross-compiler works.
7850 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7851 # <limits.h> exists even on freestanding compilers.
7852 # On the NeXT, cc -E runs the code through the compiler's parser,
7853 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007855/* end confdefs.h. */
7856#ifdef __STDC__
7857# include <limits.h>
7858#else
7859# include <assert.h>
7860#endif
7861 Syntax error
7862_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007863if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007864
cristy8b350f62009-11-15 23:12:43 +00007865else
cristy3ed852e2009-09-05 21:47:34 +00007866 # Broken: fails on valid input.
7867continue
7868fi
cristyda16f162011-02-19 23:52:17 +00007869rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007870
7871 # OK, works on sane cases. Now check whether nonexistent headers
7872 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007874/* end confdefs.h. */
7875#include <ac_nonexistent.h>
7876_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007877if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007878 # Broken: success on invalid input.
7879continue
7880else
cristy3ed852e2009-09-05 21:47:34 +00007881 # Passes both tests.
7882ac_preproc_ok=:
7883break
7884fi
cristyda16f162011-02-19 23:52:17 +00007885rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007886
7887done
7888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007889rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007890if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007891 break
7892fi
7893
7894 done
7895 ac_cv_prog_CPP=$CPP
7896
7897fi
7898 CPP=$ac_cv_prog_CPP
7899else
7900 ac_cv_prog_CPP=$CPP
7901fi
cristy8b350f62009-11-15 23:12:43 +00007902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007903$as_echo "$CPP" >&6; }
7904ac_preproc_ok=false
7905for ac_c_preproc_warn_flag in '' yes
7906do
7907 # Use a header file that comes with gcc, so configuring glibc
7908 # with a fresh cross-compiler works.
7909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7910 # <limits.h> exists even on freestanding compilers.
7911 # On the NeXT, cc -E runs the code through the compiler's parser,
7912 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007914/* end confdefs.h. */
7915#ifdef __STDC__
7916# include <limits.h>
7917#else
7918# include <assert.h>
7919#endif
7920 Syntax error
7921_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007922if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007923
cristy8b350f62009-11-15 23:12:43 +00007924else
cristy3ed852e2009-09-05 21:47:34 +00007925 # Broken: fails on valid input.
7926continue
7927fi
cristyda16f162011-02-19 23:52:17 +00007928rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007929
7930 # OK, works on sane cases. Now check whether nonexistent headers
7931 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007933/* end confdefs.h. */
7934#include <ac_nonexistent.h>
7935_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007936if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007937 # Broken: success on invalid input.
7938continue
7939else
cristy3ed852e2009-09-05 21:47:34 +00007940 # Passes both tests.
7941ac_preproc_ok=:
7942break
7943fi
cristyda16f162011-02-19 23:52:17 +00007944rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007945
7946done
7947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007948rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007949if $ac_preproc_ok; then :
7950
cristy3ed852e2009-09-05 21:47:34 +00007951else
cristy8b350f62009-11-15 23:12:43 +00007952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007954as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7955See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007956fi
7957
7958ac_ext=c
7959ac_cpp='$CPP $CPPFLAGS'
7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
cristy73bd4a52010-10-05 11:24:23 +00007964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7965$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007966if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007967 $as_echo_n "(cached) " >&6
7968else
7969 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7970 for ac_i in 1 2 3 4 5 6 7; do
7971 ac_script="$ac_script$as_nl$ac_script"
7972 done
7973 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7974 { ac_script=; unset ac_script;}
7975 if test -z "$SED"; then
7976 ac_path_SED_found=false
7977 # Loop through the user's path and test for each of PROGNAME-LIST
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981 IFS=$as_save_IFS
7982 test -z "$as_dir" && as_dir=.
7983 for ac_prog in sed gsed; do
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007986 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007987# Check for GNU ac_path_SED and select it if it is found.
7988 # Check for GNU $ac_path_SED
7989case `"$ac_path_SED" --version 2>&1` in
7990*GNU*)
7991 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7992*)
7993 ac_count=0
7994 $as_echo_n 0123456789 >"conftest.in"
7995 while :
7996 do
7997 cat "conftest.in" "conftest.in" >"conftest.tmp"
7998 mv "conftest.tmp" "conftest.in"
7999 cp "conftest.in" "conftest.nl"
8000 $as_echo '' >> "conftest.nl"
8001 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8003 as_fn_arith $ac_count + 1 && ac_count=$as_val
8004 if test $ac_count -gt ${ac_path_SED_max-0}; then
8005 # Best one so far, save it but keep looking for a better one
8006 ac_cv_path_SED="$ac_path_SED"
8007 ac_path_SED_max=$ac_count
8008 fi
8009 # 10*(2^10) chars as input seems more than enough
8010 test $ac_count -gt 10 && break
8011 done
8012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8013esac
8014
8015 $ac_path_SED_found && break 3
8016 done
8017 done
8018 done
8019IFS=$as_save_IFS
8020 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00008021 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008022 fi
8023else
8024 ac_cv_path_SED=$SED
8025fi
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8029$as_echo "$ac_cv_path_SED" >&6; }
8030 SED="$ac_cv_path_SED"
8031 rm -f conftest.sed
8032
8033test -z "$SED" && SED=sed
8034Xsed="$SED -e 1s/^X//"
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8047$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008048if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008049 $as_echo_n "(cached) " >&6
8050else
8051 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8052 then ac_cv_path_FGREP="$GREP -F"
8053 else
8054 if test -z "$FGREP"; then
8055 ac_path_FGREP_found=false
8056 # Loop through the user's path and test for each of PROGNAME-LIST
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8059do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_prog in fgrep; do
8063 for ac_exec_ext in '' $ac_executable_extensions; do
8064 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00008065 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00008066# Check for GNU ac_path_FGREP and select it if it is found.
8067 # Check for GNU $ac_path_FGREP
8068case `"$ac_path_FGREP" --version 2>&1` in
8069*GNU*)
8070 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8071*)
8072 ac_count=0
8073 $as_echo_n 0123456789 >"conftest.in"
8074 while :
8075 do
8076 cat "conftest.in" "conftest.in" >"conftest.tmp"
8077 mv "conftest.tmp" "conftest.in"
8078 cp "conftest.in" "conftest.nl"
8079 $as_echo 'FGREP' >> "conftest.nl"
8080 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8081 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8082 as_fn_arith $ac_count + 1 && ac_count=$as_val
8083 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8084 # Best one so far, save it but keep looking for a better one
8085 ac_cv_path_FGREP="$ac_path_FGREP"
8086 ac_path_FGREP_max=$ac_count
8087 fi
8088 # 10*(2^10) chars as input seems more than enough
8089 test $ac_count -gt 10 && break
8090 done
8091 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8092esac
8093
8094 $ac_path_FGREP_found && break 3
8095 done
8096 done
8097 done
8098IFS=$as_save_IFS
8099 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00008100 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008101 fi
8102else
8103 ac_cv_path_FGREP=$FGREP
8104fi
8105
8106 fi
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8109$as_echo "$ac_cv_path_FGREP" >&6; }
8110 FGREP="$ac_cv_path_FGREP"
8111
8112
8113test -z "$GREP" && GREP=grep
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
cristy0c60a692010-11-04 01:09:47 +00008131ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8132ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8133ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8134
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8136$as_echo_n "checking how to print strings... " >&6; }
8137# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00008138if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00008139 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8140 ECHO='print -r --'
8141elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8142 ECHO='printf %s\n'
8143else
8144 # Use this function as a fallback that always works.
8145 func_fallback_echo ()
8146 {
8147 eval 'cat <<_LTECHO_EOF
8148$1
8149_LTECHO_EOF'
8150 }
8151 ECHO='func_fallback_echo'
8152fi
8153
8154# func_echo_all arg...
8155# Invoke $ECHO with all args, space-separated.
8156func_echo_all ()
8157{
8158 $ECHO ""
8159}
8160
Cristy15f22012015-11-14 17:51:30 -05008161case $ECHO in
cristy0c60a692010-11-04 01:09:47 +00008162 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8163$as_echo "printf" >&6; } ;;
8164 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8165$as_echo "print -r" >&6; } ;;
8166 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8167$as_echo "cat" >&6; } ;;
8168esac
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
cristy73bd4a52010-10-05 11:24:23 +00008183
8184
8185# Check whether --with-gnu-ld was given.
8186if test "${with_gnu_ld+set}" = set; then :
Cristy15f22012015-11-14 17:51:30 -05008187 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cristy73bd4a52010-10-05 11:24:23 +00008188else
8189 with_gnu_ld=no
8190fi
8191
8192ac_prog=ld
Cristy15f22012015-11-14 17:51:30 -05008193if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +00008194 # Check if gcc -print-prog-name=ld gives a path.
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8196$as_echo_n "checking for ld used by $CC... " >&6; }
8197 case $host in
8198 *-*-mingw*)
Cristy15f22012015-11-14 17:51:30 -05008199 # gcc leaves a trailing carriage return, which upsets mingw
cristy73bd4a52010-10-05 11:24:23 +00008200 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8201 *)
8202 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8203 esac
8204 case $ac_prog in
8205 # Accept absolute paths.
8206 [\\/]* | ?:[\\/]*)
8207 re_direlt='/[^/][^/]*/\.\./'
8208 # Canonicalize the pathname of ld
8209 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8210 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8211 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8212 done
Cristy15f22012015-11-14 17:51:30 -05008213 test -z "$LD" && LD=$ac_prog
cristy73bd4a52010-10-05 11:24:23 +00008214 ;;
8215 "")
8216 # If it fails, then pretend we aren't using GCC.
8217 ac_prog=ld
8218 ;;
8219 *)
8220 # If it is relative, then search for the first ld in PATH.
8221 with_gnu_ld=unknown
8222 ;;
8223 esac
Cristy15f22012015-11-14 17:51:30 -05008224elif test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +00008225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8226$as_echo_n "checking for GNU ld... " >&6; }
8227else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8229$as_echo_n "checking for non-GNU ld... " >&6; }
8230fi
cristyda16f162011-02-19 23:52:17 +00008231if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008232 $as_echo_n "(cached) " >&6
8233else
8234 if test -z "$LD"; then
Cristy15f22012015-11-14 17:51:30 -05008235 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +00008236 for ac_dir in $PATH; do
Cristy15f22012015-11-14 17:51:30 -05008237 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +00008238 test -z "$ac_dir" && ac_dir=.
8239 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Cristy15f22012015-11-14 17:51:30 -05008240 lt_cv_path_LD=$ac_dir/$ac_prog
cristy73bd4a52010-10-05 11:24:23 +00008241 # Check to see if the program is GNU ld. I'd rather use --version,
8242 # but apparently some variants of GNU ld only accept -v.
8243 # Break only if it was the GNU/non-GNU ld that we prefer.
8244 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8245 *GNU* | *'with BFD'*)
Cristy15f22012015-11-14 17:51:30 -05008246 test no != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +00008247 ;;
8248 *)
Cristy15f22012015-11-14 17:51:30 -05008249 test yes != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +00008250 ;;
8251 esac
8252 fi
8253 done
Cristy15f22012015-11-14 17:51:30 -05008254 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +00008255else
Cristy15f22012015-11-14 17:51:30 -05008256 lt_cv_path_LD=$LD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +00008257fi
8258fi
8259
Cristy15f22012015-11-14 17:51:30 -05008260LD=$lt_cv_path_LD
cristy73bd4a52010-10-05 11:24:23 +00008261if test -n "$LD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8263$as_echo "$LD" >&6; }
8264else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
cristy98dddb52010-11-04 00:30:15 +00008268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00008269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8270$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008271if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008272 $as_echo_n "(cached) " >&6
8273else
8274 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8275case `$LD -v 2>&1 </dev/null` in
8276*GNU* | *'with BFD'*)
8277 lt_cv_prog_gnu_ld=yes
8278 ;;
8279*)
8280 lt_cv_prog_gnu_ld=no
8281 ;;
8282esac
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8285$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8286with_gnu_ld=$lt_cv_prog_gnu_ld
8287
8288
8289
8290
8291
8292
8293
8294
8295
cristy3ed852e2009-09-05 21:47:34 +00008296
cristy837d6dc2010-02-27 01:16:57 +00008297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8298$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008299if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00008300 $as_echo_n "(cached) " >&6
8301else
8302 ac_cv_prog_cc_c99=no
8303ac_save_CC=$CC
8304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h. */
8306#include <stdarg.h>
8307#include <stdbool.h>
8308#include <stdlib.h>
8309#include <wchar.h>
8310#include <stdio.h>
8311
8312// Check varargs macros. These examples are taken from C99 6.10.3.5.
8313#define debug(...) fprintf (stderr, __VA_ARGS__)
8314#define showlist(...) puts (#__VA_ARGS__)
8315#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8316static void
8317test_varargs_macros (void)
8318{
8319 int x = 1234;
8320 int y = 5678;
8321 debug ("Flag");
8322 debug ("X = %d\n", x);
8323 showlist (The first, second, and third items.);
8324 report (x>y, "x is %d but y is %d", x, y);
8325}
8326
8327// Check long long types.
8328#define BIG64 18446744073709551615ull
8329#define BIG32 4294967295ul
8330#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8331#if !BIG_OK
8332 your preprocessor is broken;
8333#endif
8334#if BIG_OK
8335#else
8336 your preprocessor is broken;
8337#endif
8338static long long int bignum = -9223372036854775807LL;
8339static unsigned long long int ubignum = BIG64;
8340
8341struct incomplete_array
8342{
8343 int datasize;
8344 double data[];
8345};
8346
8347struct named_init {
8348 int number;
8349 const wchar_t *name;
8350 double average;
8351};
8352
8353typedef const char *ccp;
8354
8355static inline int
8356test_restrict (ccp restrict text)
8357{
8358 // See if C++-style comments work.
8359 // Iterate through items via the restricted pointer.
8360 // Also check for declarations in for loops.
8361 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8362 continue;
8363 return 0;
8364}
8365
8366// Check varargs and va_copy.
8367static void
8368test_varargs (const char *format, ...)
8369{
8370 va_list args;
8371 va_start (args, format);
8372 va_list args_copy;
8373 va_copy (args_copy, args);
8374
8375 const char *str;
8376 int number;
8377 float fnumber;
8378
8379 while (*format)
8380 {
8381 switch (*format++)
8382 {
8383 case 's': // string
8384 str = va_arg (args_copy, const char *);
8385 break;
8386 case 'd': // int
8387 number = va_arg (args_copy, int);
8388 break;
8389 case 'f': // float
8390 fnumber = va_arg (args_copy, double);
8391 break;
8392 default:
8393 break;
8394 }
8395 }
8396 va_end (args_copy);
8397 va_end (args);
8398}
8399
8400int
8401main ()
8402{
8403
8404 // Check bool.
8405 _Bool success = false;
8406
8407 // Check restrict.
8408 if (test_restrict ("String literal") == 0)
8409 success = true;
8410 char *restrict newvar = "Another string";
8411
8412 // Check varargs.
8413 test_varargs ("s, d' f .", "string", 65, 34.234);
8414 test_varargs_macros ();
8415
8416 // Check flexible array members.
8417 struct incomplete_array *ia =
8418 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8419 ia->datasize = 10;
8420 for (int i = 0; i < ia->datasize; ++i)
8421 ia->data[i] = i * 1.234;
8422
8423 // Check named initializers.
8424 struct named_init ni = {
8425 .number = 34,
8426 .name = L"Test wide string",
8427 .average = 543.34343,
8428 };
8429
8430 ni.number = 58;
8431
8432 int dynamic_array[ni.number];
8433 dynamic_array[ni.number - 1] = 543;
8434
8435 // work around unused variable warnings
8436 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8437 || dynamic_array[ni.number - 1] != 543);
8438
8439 ;
8440 return 0;
8441}
8442_ACEOF
cristy14fefe52012-05-21 00:59:18 +00008443for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00008444do
8445 CC="$ac_save_CC $ac_arg"
8446 if ac_fn_c_try_compile "$LINENO"; then :
8447 ac_cv_prog_cc_c99=$ac_arg
8448fi
8449rm -f core conftest.err conftest.$ac_objext
8450 test "x$ac_cv_prog_cc_c99" != "xno" && break
8451done
8452rm -f conftest.$ac_ext
8453CC=$ac_save_CC
8454
8455fi
8456# AC_CACHE_VAL
8457case "x$ac_cv_prog_cc_c99" in
8458 x)
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8460$as_echo "none needed" >&6; } ;;
8461 xno)
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8463$as_echo "unsupported" >&6; } ;;
8464 *)
8465 CC="$CC $ac_cv_prog_cc_c99"
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8467$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8468esac
8469if test "x$ac_cv_prog_cc_c99" != xno; then :
8470
8471fi
8472
8473
cristy73bd4a52010-10-05 11:24:23 +00008474
cristy17491be2014-06-24 01:10:53 +00008475ac_ext=c
8476ac_cpp='$CPP $CPPFLAGS'
8477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479ac_compiler_gnu=$ac_cv_c_compiler_gnu
8480
cristy73bd4a52010-10-05 11:24:23 +00008481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8482$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008483if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008484 $as_echo_n "(cached) " >&6
8485else
8486 ac_cv_cflags_warn_all="no, unknown"
cristy17491be2014-06-24 01:10:53 +00008487ac_save_CFLAGS="$CFLAGS"
8488for 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 +00008489do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h. */
8492
8493int
8494main ()
8495{
cristy24fc1fe2010-10-23 21:13:01 +00008496
cristy73bd4a52010-10-05 11:24:23 +00008497 ;
8498 return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_compile "$LINENO"; then :
8502 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8503fi
8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505done
cristy17491be2014-06-24 01:10:53 +00008506CFLAGS="$ac_save_CFLAGS"
8507
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8510$as_echo "$ac_cv_cflags_warn_all" >&6; }
8511
8512
8513case ".$ac_cv_cflags_warn_all" in
8514 .ok|.ok,*) ;;
8515 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +00008516 *)
8517if ${CFLAGS+:} false; then :
8518
8519 case " $CFLAGS " in #(
8520 *" $ac_cv_cflags_warn_all "*) :
8521 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +00008522 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8523 ac_status=$?
8524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +00008525 test $ac_status = 0; } ;; #(
8526 *) :
8527
8528 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8529 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8530 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +00008531 ac_status=$?
8532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +00008534 ;;
8535esac
8536
cristy17491be2014-06-24 01:10:53 +00008537else
cristy146497a2015-05-17 22:46:16 +00008538
8539 CFLAGS=$ac_cv_cflags_warn_all
8540 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8541 (: CFLAGS="$CFLAGS") 2>&5
8542 ac_status=$?
8543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8544 test $ac_status = 0; }
8545
cristy17491be2014-06-24 01:10:53 +00008546fi
8547 ;;
8548esac
8549
8550ac_ext=c
cristy73bd4a52010-10-05 11:24:23 +00008551ac_cpp='$CPP $CPPFLAGS'
8552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555
8556
cristya0b81c32010-01-22 02:54:33 +00008557
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8559$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8560set x ${MAKE-make}
8561ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008562if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008563 $as_echo_n "(cached) " >&6
8564else
8565 cat >conftest.make <<\_ACEOF
8566SHELL = /bin/sh
8567all:
8568 @echo '@@@%%%=$(MAKE)=@@@%%%'
8569_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008570# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008571case `${MAKE-make} -f conftest.make 2>/dev/null` in
8572 *@@@%%%=?*=@@@%%%*)
8573 eval ac_cv_prog_make_${ac_make}_set=yes;;
8574 *)
8575 eval ac_cv_prog_make_${ac_make}_set=no;;
8576esac
8577rm -f conftest.make
8578fi
8579if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8581$as_echo "yes" >&6; }
8582 SET_MAKE=
8583else
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
8586 SET_MAKE="MAKE=${MAKE-make}"
8587fi
8588
cristy8b350f62009-11-15 23:12:43 +00008589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008590$as_echo_n "checking whether ln -s works... " >&6; }
8591LN_S=$as_ln_s
8592if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008594$as_echo "yes" >&6; }
8595else
cristy8b350f62009-11-15 23:12:43 +00008596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008597$as_echo "no, using $LN_S" >&6; }
8598fi
8599
cristy8d0ff762013-03-10 20:33:28 +00008600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8601$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8602if ${ac_cv_path_SED+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604else
8605 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8606 for ac_i in 1 2 3 4 5 6 7; do
8607 ac_script="$ac_script$as_nl$ac_script"
8608 done
8609 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8610 { ac_script=; unset ac_script;}
8611 if test -z "$SED"; then
8612 ac_path_SED_found=false
8613 # Loop through the user's path and test for each of PROGNAME-LIST
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617 IFS=$as_save_IFS
8618 test -z "$as_dir" && as_dir=.
8619 for ac_prog in sed gsed; do
8620 for ac_exec_ext in '' $ac_executable_extensions; do
8621 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8622 as_fn_executable_p "$ac_path_SED" || continue
8623# Check for GNU ac_path_SED and select it if it is found.
8624 # Check for GNU $ac_path_SED
8625case `"$ac_path_SED" --version 2>&1` in
8626*GNU*)
8627 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8628*)
8629 ac_count=0
8630 $as_echo_n 0123456789 >"conftest.in"
8631 while :
8632 do
8633 cat "conftest.in" "conftest.in" >"conftest.tmp"
8634 mv "conftest.tmp" "conftest.in"
8635 cp "conftest.in" "conftest.nl"
8636 $as_echo '' >> "conftest.nl"
8637 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8639 as_fn_arith $ac_count + 1 && ac_count=$as_val
8640 if test $ac_count -gt ${ac_path_SED_max-0}; then
8641 # Best one so far, save it but keep looking for a better one
8642 ac_cv_path_SED="$ac_path_SED"
8643 ac_path_SED_max=$ac_count
8644 fi
8645 # 10*(2^10) chars as input seems more than enough
8646 test $ac_count -gt 10 && break
8647 done
8648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8649esac
8650
8651 $ac_path_SED_found && break 3
8652 done
8653 done
8654 done
8655IFS=$as_save_IFS
8656 if test -z "$ac_cv_path_SED"; then
8657 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8658 fi
8659else
8660 ac_cv_path_SED=$SED
8661fi
8662
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8665$as_echo "$ac_cv_path_SED" >&6; }
8666 SED="$ac_cv_path_SED"
8667 rm -f conftest.sed
8668
cristybc556452012-08-17 19:44:03 +00008669for ac_prog in gawk mawk nawk awk
8670do
8671 # Extract the first word of "$ac_prog", so it can be a program name with args.
8672set dummy $ac_prog; ac_word=$2
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674$as_echo_n "checking for $ac_word... " >&6; }
8675if ${ac_cv_prog_AWK+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677else
8678 if test -n "$AWK"; then
8679 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8680else
8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682for as_dir in $PATH
8683do
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688 ac_cv_prog_AWK="$ac_prog"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8691 fi
8692done
8693 done
8694IFS=$as_save_IFS
8695
8696fi
8697fi
8698AWK=$ac_cv_prog_AWK
8699if test -n "$AWK"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8701$as_echo "$AWK" >&6; }
8702else
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704$as_echo "no" >&6; }
8705fi
8706
8707
8708 test -n "$AWK" && break
8709done
8710
cristy73bd4a52010-10-05 11:24:23 +00008711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8712$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8713
8714# Check whether --with-dmalloc was given.
8715if test "${with_dmalloc+set}" = set; then :
8716 withval=$with_dmalloc; if test "$withval" = yes; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718$as_echo "yes" >&6; }
8719
8720$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8721
8722 LIBS="$LIBS -ldmalloc"
8723 LDFLAGS="$LDFLAGS -g"
8724else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
8727fi
8728else
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
8731fi
8732
8733
8734
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8736$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008737if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008738 $as_echo_n "(cached) " >&6
8739else
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h. */
8742#include <stdlib.h>
cristy146497a2015-05-17 22:46:16 +00008743 static void foo(void) __attribute__ ((unused));
cristy73bd4a52010-10-05 11:24:23 +00008744 static void
8745 foo(void) {
8746 exit(1);
8747 }
8748
8749int
8750main ()
8751{
8752
8753 ;
8754 return 0;
8755}
8756_ACEOF
8757if ac_fn_c_try_compile "$LINENO"; then :
8758 ax_cv___attribute__=yes
8759else
8760 ax_cv___attribute__=no
8761
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764
8765fi
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8767$as_echo "$ax_cv___attribute__" >&6; }
8768 if test "$ax_cv___attribute__" = "yes"; then
8769
8770$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8771
8772 fi
8773
cristy146497a2015-05-17 22:46:16 +00008774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8775$as_echo_n "checking for C compiler vendor... " >&6; }
8776if ${ax_cv_c_compiler_vendor+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778else
8779 # note: don't check for gcc first since some other compilers define __GNUC__
8780 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
8781 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
8782 pathscale: __PATHCC__,__PATHSCALE__
8783 clang: __clang__
8784 cray: _CRAYC
8785 fujitsu: __FUJITSU
8786 gnu: __GNUC__
8787 sun: __SUNPRO_C,__SUNPRO_CC
8788 hp: __HP_cc,__HP_aCC
8789 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8790 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
8791 comeau: __COMO__
8792 kai: __KCC
8793 lcc: __LCC__
8794 sgi: __sgi,sgi
8795 microsoft: _MSC_VER
8796 metrowerks: __MWERKS__
8797 watcom: __WATCOMC__
8798 portland: __PGI
8799 tcc: __TINYC__
8800 unknown: UNKNOWN"
8801 for ventest in $vendors; do
8802 case $ventest in
8803 *:) vendor=$ventest; continue ;;
8804 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8805 esac
8806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h. */
8808
8809int
8810main ()
8811{
8812
8813 #if !($vencpp)
8814 thisisanerror;
8815 #endif
8816
8817 ;
8818 return 0;
8819}
8820_ACEOF
8821if ac_fn_c_try_compile "$LINENO"; then :
8822 break
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 done
8826 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8827
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8830$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8831
8832
cristy73bd4a52010-10-05 11:24:23 +00008833
8834
cristya0459972013-11-03 18:09:35 +00008835
8836
cristy17491be2014-06-24 01:10:53 +00008837
cristya0459972013-11-03 18:09:35 +00008838# Check whether --with-gcc-arch was given.
8839if test "${with_gcc_arch+set}" = set; then :
8840 withval=$with_gcc_arch; ax_gcc_arch=$withval
8841else
cristy17491be2014-06-24 01:10:53 +00008842 ax_gcc_arch=yes
cristya0459972013-11-03 18:09:35 +00008843fi
8844
8845
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8847$as_echo_n "checking for gcc architecture flag... " >&6; }
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8849$as_echo "" >&6; }
8850if ${ax_cv_gcc_archflag+:} false; then :
8851 $as_echo_n "(cached) " >&6
8852else
8853
8854ax_cv_gcc_archflag="unknown"
8855
8856if test "$GCC" = yes; then
8857
8858if test "x$ax_gcc_arch" = xyes; then
8859ax_gcc_arch=""
8860if test "$cross_compiling" = no; then
8861case $host_cpu in
cristy17491be2014-06-24 01:10:53 +00008862 i[3456]86*|x86_64*|amd64*) # use cpuid codes
cristya0459972013-11-03 18:09:35 +00008863
8864ac_ext=c
8865ac_cpp='$CPP $CPPFLAGS'
8866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8871$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8872if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8873 $as_echo_n "(cached) " >&6
8874else
8875 if test "$cross_compiling" = yes; then :
8876 ax_cv_gcc_x86_cpuid_0=unknown
8877else
8878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h. */
8880#include <stdio.h>
8881int
8882main ()
8883{
8884
Cristy66387d22015-11-02 07:41:25 -05008885 int op = 0, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008886 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008887 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008888 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008889 : "a" (op), "2" (level));
8890
cristya0459972013-11-03 18:09:35 +00008891 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8892 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8893 fclose(f);
8894 return 0;
8895
8896 ;
8897 return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_run "$LINENO"; then :
8901 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8902else
8903 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8904fi
8905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8906 conftest.$ac_objext conftest.beam conftest.$ac_ext
8907fi
8908
8909fi
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8911$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8912ac_ext=c
8913ac_cpp='$CPP $CPPFLAGS'
8914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917
8918
8919
Cristy66387d22015-11-02 07:41:25 -05008920
cristya0459972013-11-03 18:09:35 +00008921ac_ext=c
8922ac_cpp='$CPP $CPPFLAGS'
8923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8928$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8929if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8930 $as_echo_n "(cached) " >&6
8931else
8932 if test "$cross_compiling" = yes; then :
8933 ax_cv_gcc_x86_cpuid_1=unknown
8934else
8935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h. */
8937#include <stdio.h>
8938int
8939main ()
8940{
8941
Cristy66387d22015-11-02 07:41:25 -05008942 int op = 1, level = 0, eax, ebx, ecx, edx;
cristya0459972013-11-03 18:09:35 +00008943 FILE *f;
Cristy66387d22015-11-02 07:41:25 -05008944 __asm__ __volatile__ ("cpuid"
cristya0459972013-11-03 18:09:35 +00008945 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
Cristy66387d22015-11-02 07:41:25 -05008946 : "a" (op), "2" (level));
8947
cristya0459972013-11-03 18:09:35 +00008948 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8949 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8950 fclose(f);
8951 return 0;
8952
8953 ;
8954 return 0;
8955}
8956_ACEOF
8957if ac_fn_c_try_run "$LINENO"; then :
8958 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8959else
8960 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8961fi
8962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8963 conftest.$ac_objext conftest.beam conftest.$ac_ext
8964fi
8965
8966fi
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8968$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8969ac_ext=c
8970ac_cpp='$CPP $CPPFLAGS'
8971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975
Cristy66387d22015-11-02 07:41:25 -05008976
cristya0459972013-11-03 18:09:35 +00008977 case $ax_cv_gcc_x86_cpuid_0 in
cristy146497a2015-05-17 22:46:16 +00008978 *:756e6547:6c65746e:49656e69) # Intel
cristya0459972013-11-03 18:09:35 +00008979 case $ax_cv_gcc_x86_cpuid_1 in
cristy146497a2015-05-17 22:46:16 +00008980 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8981 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8982 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8983 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8984 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8985 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8986 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8987 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00008988 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
cristy146497a2015-05-17 22:46:16 +00008989 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8990 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8991 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8992 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8993 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8994 *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8995 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8996 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8997 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8998 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8999 # fallback
9000 *5??:*:*:*) ax_gcc_arch=pentium ;;
9001 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
cristy17491be2014-06-24 01:10:53 +00009002 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
cristy146497a2015-05-17 22:46:16 +00009003 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
cristya0459972013-11-03 18:09:35 +00009004 esac ;;
cristy146497a2015-05-17 22:46:16 +00009005 *:68747541:444d4163:69746e65) # AMD
cristya0459972013-11-03 18:09:35 +00009006 case $ax_cv_gcc_x86_cpuid_1 in
9007 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
cristy146497a2015-05-17 22:46:16 +00009008 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
9009 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
cristya0459972013-11-03 18:09:35 +00009010 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
9011 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
cristy146497a2015-05-17 22:46:16 +00009012 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
9013 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
9014 *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" ;;
9015 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9016 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9017 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9018 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9019 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9020 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9021 # fallback
9022 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9023 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9024 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9025 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9026 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9027 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9028 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9029 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
cristya0459972013-11-03 18:09:35 +00009030 esac ;;
cristy146497a2015-05-17 22:46:16 +00009031 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
cristya0459972013-11-03 18:09:35 +00009032 case $ax_cv_gcc_x86_cpuid_1 in
9033 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
cristy146497a2015-05-17 22:46:16 +00009034 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
9035 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
cristya0459972013-11-03 18:09:35 +00009036 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
cristy146497a2015-05-17 22:46:16 +00009037 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
cristya0459972013-11-03 18:09:35 +00009038 esac ;;
9039 esac
9040 if test x"$ax_gcc_arch" = x; then # fallback
9041 case $host_cpu in
9042 i586*) ax_gcc_arch=pentium ;;
9043 i686*) ax_gcc_arch=pentiumpro ;;
9044 esac
9045 fi
9046 ;;
9047
9048 sparc*)
9049 # Extract the first word of "prtdiag", so it can be a program name with args.
9050set dummy prtdiag; ac_word=$2
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052$as_echo_n "checking for $ac_word... " >&6; }
9053if ${ac_cv_path_PRTDIAG+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055else
9056 case $PRTDIAG in
9057 [\\/]* | ?:[\\/]*)
9058 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
9059 ;;
9060 *)
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
9063for as_dir in $as_dummy
9064do
9065 IFS=$as_save_IFS
9066 test -z "$as_dir" && as_dir=.
9067 for ac_exec_ext in '' $ac_executable_extensions; do
9068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
9070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071 break 2
9072 fi
9073done
9074 done
9075IFS=$as_save_IFS
9076
9077 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
9078 ;;
9079esac
9080fi
9081PRTDIAG=$ac_cv_path_PRTDIAG
9082if test -n "$PRTDIAG"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
9084$as_echo "$PRTDIAG" >&6; }
9085else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087$as_echo "no" >&6; }
9088fi
9089
9090
9091 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 +00009092 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
cristya0459972013-11-03 18:09:35 +00009093 case $cputype in
9094 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
9095 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
9096 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
9097 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
9098 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
9099 *cypress*) ax_gcc_arch=cypress ;;
9100 esac ;;
9101
9102 alphaev5) ax_gcc_arch=ev5 ;;
9103 alphaev56) ax_gcc_arch=ev56 ;;
9104 alphapca56) ax_gcc_arch="pca56 ev56" ;;
9105 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
9106 alphaev6) ax_gcc_arch=ev6 ;;
9107 alphaev67) ax_gcc_arch=ev67 ;;
9108 alphaev68) ax_gcc_arch="ev68 ev67" ;;
9109 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
9110 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
9111 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
9112
9113 powerpc*)
cristy17491be2014-06-24 01:10:53 +00009114 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`
9115 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
cristya0459972013-11-03 18:09:35 +00009116 case $cputype in
9117 *750*) ax_gcc_arch="750 G3" ;;
9118 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
9119 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
9120 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
9121 *970*) ax_gcc_arch="970 G5 power4";;
9122 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
9123 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
9124 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
9125 *) ax_gcc_arch=$cputype ;;
9126 esac
9127 ax_gcc_arch="$ax_gcc_arch powerpc"
9128 ;;
9129esac
9130fi # not cross-compiling
9131fi # guess arch
9132
9133if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
cristy146497a2015-05-17 22:46:16 +00009134if test "xyes" = xyes; then # if we require portable code
9135 flag_prefixes="-mtune="
9136 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9137 # -mcpu=$arch and m$arch generate nonportable code on every arch except
9138 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
9139 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9140else
9141 flag_prefixes="-march= -mcpu= -m"
9142fi
9143for flag_prefix in $flag_prefixes; do
9144 for arch in $ax_gcc_arch; do
9145 flag="$flag_prefix$arch"
cristya0459972013-11-03 18:09:35 +00009146 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9148$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9149if eval \${$as_CACHEVAR+:} false; then :
9150 $as_echo_n "(cached) " >&6
9151else
9152
9153 ax_check_save_flags=$CFLAGS
9154 CFLAGS="$CFLAGS $flag"
9155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156/* end confdefs.h. */
9157
9158int
9159main ()
9160{
9161
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_compile "$LINENO"; then :
9167 eval "$as_CACHEVAR=yes"
9168else
9169 eval "$as_CACHEVAR=no"
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172 CFLAGS=$ax_check_save_flags
9173fi
9174eval ac_res=\$$as_CACHEVAR
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9176$as_echo "$ac_res" >&6; }
cristy146497a2015-05-17 22:46:16 +00009177if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9178 if test "x$ax_cv_c_compiler_vendor" = xclang; then
9179 if test "xyes" = xyes; then
9180 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9181 fi
9182 fi; ax_cv_gcc_archflag=$flag; break
cristya0459972013-11-03 18:09:35 +00009183else
9184 :
9185fi
9186
9187 done
9188 test "x$ax_cv_gcc_archflag" = xunknown || break
9189done
9190fi
9191
9192fi # $GCC=yes
9193
9194fi
9195
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9197$as_echo_n "checking for gcc architecture flag... " >&6; }
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9199$as_echo "$ax_cv_gcc_archflag" >&6; }
9200if test "x$ax_cv_gcc_archflag" = xunknown; then
9201 :
9202else
9203 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9204fi
9205
9206
9207
cristy146497a2015-05-17 22:46:16 +00009208
9209
9210
9211
9212
cristy73bd4a52010-10-05 11:24:23 +00009213if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9214 if test -n "$ac_tool_prefix"; then
9215 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9216set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009219if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009220 $as_echo_n "(cached) " >&6
9221else
9222 case $PKG_CONFIG in
9223 [\\/]* | ?:[\\/]*)
9224 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9225 ;;
9226 *)
9227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228for as_dir in $PATH
9229do
9230 IFS=$as_save_IFS
9231 test -z "$as_dir" && as_dir=.
9232 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009234 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236 break 2
9237 fi
9238done
9239 done
9240IFS=$as_save_IFS
9241
9242 ;;
9243esac
9244fi
9245PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9246if test -n "$PKG_CONFIG"; then
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9248$as_echo "$PKG_CONFIG" >&6; }
9249else
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
9252fi
9253
9254
9255fi
9256if test -z "$ac_cv_path_PKG_CONFIG"; then
9257 ac_pt_PKG_CONFIG=$PKG_CONFIG
9258 # Extract the first word of "pkg-config", so it can be a program name with args.
9259set dummy pkg-config; ac_word=$2
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009262if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009263 $as_echo_n "(cached) " >&6
9264else
9265 case $ac_pt_PKG_CONFIG in
9266 [\\/]* | ?:[\\/]*)
9267 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9268 ;;
9269 *)
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271for as_dir in $PATH
9272do
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009277 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9280 fi
9281done
9282 done
9283IFS=$as_save_IFS
9284
9285 ;;
9286esac
9287fi
9288ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9289if test -n "$ac_pt_PKG_CONFIG"; then
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9291$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9292else
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
9295fi
9296
9297 if test "x$ac_pt_PKG_CONFIG" = x; then
9298 PKG_CONFIG=""
9299 else
9300 case $cross_compiling:$ac_tool_warned in
9301yes:)
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9304ac_tool_warned=yes ;;
9305esac
9306 PKG_CONFIG=$ac_pt_PKG_CONFIG
9307 fi
9308else
9309 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9310fi
9311
9312fi
9313if test -n "$PKG_CONFIG"; then
Cristy6720ed72016-02-09 09:27:35 -05009314 _pkg_min_version=0.20
cristy73bd4a52010-10-05 11:24:23 +00009315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9316$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9317 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9319$as_echo "yes" >&6; }
9320 else
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322$as_echo "no" >&6; }
9323 PKG_CONFIG=""
9324 fi
cristy73bd4a52010-10-05 11:24:23 +00009325fi
cristy3ed852e2009-09-05 21:47:34 +00009326
cristy9af1cbf2014-12-28 22:03:09 +00009327
9328
cristyd95b7a52013-10-23 13:12:53 +00009329# Test for 64-bit build.
9330# The cast to long int works around a bug in the HP C Compiler
9331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9333# This bug is HP SR number 8606223364.
9334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9335$as_echo_n "checking size of size_t... " >&6; }
9336if ${ac_cv_sizeof_size_t+:} false; then :
9337 $as_echo_n "(cached) " >&6
9338else
9339 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
9340
9341else
9342 if test "$ac_cv_type_size_t" = yes; then
9343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9345as_fn_error 77 "cannot compute sizeof (size_t)
9346See \`config.log' for more details" "$LINENO" 5; }
9347 else
9348 ac_cv_sizeof_size_t=0
9349 fi
9350fi
9351
9352fi
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9354$as_echo "$ac_cv_sizeof_size_t" >&6; }
9355
9356
9357
9358cat >>confdefs.h <<_ACEOF
9359#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9360_ACEOF
9361
9362
9363
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9365$as_echo_n "checking for C compiler vendor... " >&6; }
9366if ${ax_cv_c_compiler_vendor+:} false; then :
9367 $as_echo_n "(cached) " >&6
9368else
cristy146497a2015-05-17 22:46:16 +00009369 # note: don't check for gcc first since some other compilers define __GNUC__
cristyd95b7a52013-10-23 13:12:53 +00009370 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
9371 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
9372 pathscale: __PATHCC__,__PATHSCALE__
9373 clang: __clang__
cristy146497a2015-05-17 22:46:16 +00009374 cray: _CRAYC
cristy17491be2014-06-24 01:10:53 +00009375 fujitsu: __FUJITSU
cristyd95b7a52013-10-23 13:12:53 +00009376 gnu: __GNUC__
9377 sun: __SUNPRO_C,__SUNPRO_CC
9378 hp: __HP_cc,__HP_aCC
9379 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
cristy146497a2015-05-17 22:46:16 +00009380 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
cristyd95b7a52013-10-23 13:12:53 +00009381 comeau: __COMO__
cristyd95b7a52013-10-23 13:12:53 +00009382 kai: __KCC
9383 lcc: __LCC__
9384 sgi: __sgi,sgi
9385 microsoft: _MSC_VER
9386 metrowerks: __MWERKS__
9387 watcom: __WATCOMC__
9388 portland: __PGI
cristy146497a2015-05-17 22:46:16 +00009389 tcc: __TINYC__
cristyd95b7a52013-10-23 13:12:53 +00009390 unknown: UNKNOWN"
9391 for ventest in $vendors; do
9392 case $ventest in
9393 *:) vendor=$ventest; continue ;;
9394 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9395 esac
9396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h. */
9398
9399int
9400main ()
9401{
9402
9403 #if !($vencpp)
9404 thisisanerror;
9405 #endif
9406
9407 ;
9408 return 0;
9409}
9410_ACEOF
9411if ac_fn_c_try_compile "$LINENO"; then :
9412 break
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415 done
9416 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9417
9418fi
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9420$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9421
Cristy6720ed72016-02-09 09:27:35 -05009422
9423
9424 # C support is enabled by default.
9425
9426
9427 # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
9428 # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
9429 # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
9430 # checked.
9431
9432
9433
9434
9435
9436 # Default value for IS-RELEASE is $ax_is_release
9437 ax_compiler_flags_is_release=$ax_is_release
9438
9439 # Check whether --enable-compile-warnings was given.
9440if test "${enable_compile_warnings+set}" = set; then :
9441 enableval=$enable_compile_warnings;
9442else
9443 if test "$ax_compiler_flags_is_release" = "yes"; then :
9444 enable_compile_warnings="yes"
9445else
9446 enable_compile_warnings="error"
9447fi
9448fi
9449
9450 # Check whether --enable-Werror was given.
9451if test "${enable_Werror+set}" = set; then :
9452 enableval=$enable_Werror;
9453else
9454 enable_Werror=maybe
9455fi
9456
9457
9458 # Return the user's chosen warning level
9459 if test "$enable_Werror" = "no" -a \
9460 "$enable_compile_warnings" = "error"; then :
9461
9462 enable_compile_warnings="yes"
9463
9464fi
9465
9466 ax_enable_compile_warnings=$enable_compile_warnings
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477 # Variable names
9478
9479
9480 ac_ext=c
9481ac_cpp='$CPP $CPPFLAGS'
9482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9484ac_compiler_gnu=$ac_cv_c_compiler_gnu
9485
9486
9487 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
9488 # flags, otherwise they are always appended to the warn_cflags variable, and
9489 # Clang warns on them for every compilation unit.
9490 # If this is passed to GCC, it will explode, so the flag must be enabled
9491 # conditionally.
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
9493$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
9494if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496else
9497
9498 ax_check_save_flags=$CFLAGS
9499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
9500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h. */
9502
9503int
9504main ()
9505{
9506
9507 ;
9508 return 0;
9509}
9510_ACEOF
9511if ac_fn_c_try_compile "$LINENO"; then :
9512 ax_cv_check_cflags___Werror_unknown_warning_option=yes
9513else
9514 ax_cv_check_cflags___Werror_unknown_warning_option=no
9515fi
9516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517 CFLAGS=$ax_check_save_flags
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
9520$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
9521if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
9522
9523 ax_compiler_flags_test="-Werror=unknown-warning-option"
9524
9525else
9526
9527 ax_compiler_flags_test=""
9528
9529fi
9530
9531
9532 # Base flags
9533
9534
9535
9536
9537for flag in -fno-strict-aliasing ; do
9538 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9540$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9541if eval \${$as_CACHEVAR+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543else
9544
9545 ax_check_save_flags=$CFLAGS
9546 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
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_compile "$LINENO"; then :
9559 eval "$as_CACHEVAR=yes"
9560else
9561 eval "$as_CACHEVAR=no"
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564 CFLAGS=$ax_check_save_flags
9565fi
9566eval ac_res=\$$as_CACHEVAR
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9568$as_echo "$ac_res" >&6; }
9569if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9570
9571if ${WARN_CFLAGS+:} false; then :
9572
9573 case " $WARN_CFLAGS " in #(
9574 *" $flag "*) :
9575 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9576 (: WARN_CFLAGS already contains $flag) 2>&5
9577 ac_status=$?
9578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579 test $ac_status = 0; } ;; #(
9580 *) :
9581
9582 as_fn_append WARN_CFLAGS " $flag"
9583 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9584 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9585 ac_status=$?
9586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9587 test $ac_status = 0; }
9588 ;;
9589esac
9590
9591else
9592
9593 WARN_CFLAGS=$flag
9594 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9595 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9596 ac_status=$?
9597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9598 test $ac_status = 0; }
9599
9600fi
9601
9602else
9603 :
9604fi
9605
9606done
9607
9608
9609 if test "$ax_enable_compile_warnings" != "no"; then :
9610
9611 # "yes" flags
9612
9613
9614
9615
9616for flag in -Wall -Wextra -Wundef -Wnested-externs -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wdeclaration-after-statement -Wformat=2 -Wold-style-definition -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wimplicit-function-declaration -Wreturn-type -Wswitch-enum -Wswitch-default ; do
9617 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9619$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9620if eval \${$as_CACHEVAR+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622else
9623
9624 ax_check_save_flags=$CFLAGS
9625 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h. */
9628
9629int
9630main ()
9631{
9632
9633 ;
9634 return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_compile "$LINENO"; then :
9638 eval "$as_CACHEVAR=yes"
9639else
9640 eval "$as_CACHEVAR=no"
9641fi
9642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643 CFLAGS=$ax_check_save_flags
9644fi
9645eval ac_res=\$$as_CACHEVAR
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9647$as_echo "$ac_res" >&6; }
9648if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9649
9650if ${WARN_CFLAGS+:} false; then :
9651
9652 case " $WARN_CFLAGS " in #(
9653 *" $flag "*) :
9654 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9655 (: WARN_CFLAGS already contains $flag) 2>&5
9656 ac_status=$?
9657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9658 test $ac_status = 0; } ;; #(
9659 *) :
9660
9661 as_fn_append WARN_CFLAGS " $flag"
9662 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9663 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9664 ac_status=$?
9665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9666 test $ac_status = 0; }
9667 ;;
9668esac
9669
9670else
9671
9672 WARN_CFLAGS=$flag
9673 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9674 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9675 ac_status=$?
9676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9677 test $ac_status = 0; }
9678
9679fi
9680
9681else
9682 :
9683fi
9684
9685done
9686
9687
9688fi
9689 if test "$ax_enable_compile_warnings" = "error"; then :
9690
9691 # "error" flags; -Werror has to be appended unconditionally because
9692 # it's not possible to test for
9693 #
9694 # suggest-attribute=format is disabled because it gives too many false
9695 # positives
9696
9697if ${WARN_CFLAGS+:} false; then :
9698
9699 case " $WARN_CFLAGS " in #(
9700 *" -Werror "*) :
9701 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
9702 (: WARN_CFLAGS already contains -Werror) 2>&5
9703 ac_status=$?
9704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9705 test $ac_status = 0; } ;; #(
9706 *) :
9707
9708 as_fn_append WARN_CFLAGS " -Werror"
9709 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9710 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9711 ac_status=$?
9712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9713 test $ac_status = 0; }
9714 ;;
9715esac
9716
9717else
9718
9719 WARN_CFLAGS=-Werror
9720 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9721 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9722 ac_status=$?
9723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724 test $ac_status = 0; }
9725
9726fi
9727
9728
9729
9730
9731
9732
9733for flag in -Wno-suggest-attribute=format ; do
9734 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9736$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9737if eval \${$as_CACHEVAR+:} false; then :
9738 $as_echo_n "(cached) " >&6
9739else
9740
9741 ax_check_save_flags=$CFLAGS
9742 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h. */
9745
9746int
9747main ()
9748{
9749
9750 ;
9751 return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"; then :
9755 eval "$as_CACHEVAR=yes"
9756else
9757 eval "$as_CACHEVAR=no"
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760 CFLAGS=$ax_check_save_flags
9761fi
9762eval ac_res=\$$as_CACHEVAR
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9764$as_echo "$ac_res" >&6; }
9765if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9766
9767if ${WARN_CFLAGS+:} false; then :
9768
9769 case " $WARN_CFLAGS " in #(
9770 *" $flag "*) :
9771 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9772 (: WARN_CFLAGS already contains $flag) 2>&5
9773 ac_status=$?
9774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775 test $ac_status = 0; } ;; #(
9776 *) :
9777
9778 as_fn_append WARN_CFLAGS " $flag"
9779 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9780 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9781 ac_status=$?
9782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9783 test $ac_status = 0; }
9784 ;;
9785esac
9786
9787else
9788
9789 WARN_CFLAGS=$flag
9790 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9791 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9792 ac_status=$?
9793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794 test $ac_status = 0; }
9795
9796fi
9797
9798else
9799 :
9800fi
9801
9802done
9803
9804
9805fi
9806
9807 # In the flags below, when disabling specific flags, always add *both*
9808 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
9809 # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
9810 # which effectively turns that flag back on again as an error.
9811 for flag in $WARN_CFLAGS; do
9812 case $flag in #(
9813 -Wno-*=*) :
9814 ;; #(
9815 -Wno-*) :
9816
9817
9818
9819
9820
9821for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
9822 as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9824$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9825if eval \${$as_CACHEVAR+:} false; then :
9826 $as_echo_n "(cached) " >&6
9827else
9828
9829 ax_check_save_flags=$CFLAGS
9830 CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h. */
9833
9834int
9835main ()
9836{
9837
9838 ;
9839 return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_compile "$LINENO"; then :
9843 eval "$as_CACHEVAR=yes"
9844else
9845 eval "$as_CACHEVAR=no"
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848 CFLAGS=$ax_check_save_flags
9849fi
9850eval ac_res=\$$as_CACHEVAR
9851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9852$as_echo "$ac_res" >&6; }
9853if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9854
9855if ${WARN_CFLAGS+:} false; then :
9856
9857 case " $WARN_CFLAGS " in #(
9858 *" $flag "*) :
9859 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9860 (: WARN_CFLAGS already contains $flag) 2>&5
9861 ac_status=$?
9862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863 test $ac_status = 0; } ;; #(
9864 *) :
9865
9866 as_fn_append WARN_CFLAGS " $flag"
9867 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9868 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9869 ac_status=$?
9870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871 test $ac_status = 0; }
9872 ;;
9873esac
9874
9875else
9876
9877 WARN_CFLAGS=$flag
9878 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9879 (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9880 ac_status=$?
9881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9882 test $ac_status = 0; }
9883
9884fi
9885
9886else
9887 :
9888fi
9889
9890done
9891
9892 ;; #(
9893 *) :
9894 ;;
9895esac
9896 done
9897
9898 ac_ext=c
9899ac_cpp='$CPP $CPPFLAGS'
9900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902ac_compiler_gnu=$ac_cv_c_compiler_gnu
9903
9904
9905 # Substitute the variables
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 # Variable names
9918
9919
9920 ac_ext=cpp
9921ac_cpp='$CXXCPP $CPPFLAGS'
9922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9925
9926
9927 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
9928 # flags, otherwise they are always appended to the warn_cxxflags variable,
9929 # and Clang warns on them for every compilation unit.
9930 # If this is passed to GCC, it will explode, so the flag must be enabled
9931 # conditionally.
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
9933$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
9934if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then :
9935 $as_echo_n "(cached) " >&6
9936else
9937
9938 ax_check_save_flags=$CXXFLAGS
9939 CXXFLAGS="$CXXFLAGS -Werror=unknown-warning-option"
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h. */
9942
9943int
9944main ()
9945{
9946
9947 ;
9948 return 0;
9949}
9950_ACEOF
9951if ac_fn_cxx_try_compile "$LINENO"; then :
9952 ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
9953else
9954 ax_cv_check_cxxflags___Werror_unknown_warning_option=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957 CXXFLAGS=$ax_check_save_flags
9958fi
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
9960$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
9961if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then :
9962
9963 ax_compiler_flags_test="-Werror=unknown-warning-option"
9964
9965else
9966
9967 ax_compiler_flags_test=""
9968
9969fi
9970
9971
9972 # Base flags
9973
9974
9975
9976
9977for flag in -fno-strict-aliasing ; do
9978 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
9980$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
9981if eval \${$as_CACHEVAR+:} false; then :
9982 $as_echo_n "(cached) " >&6
9983else
9984
9985 ax_check_save_flags=$CXXFLAGS
9986 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
9987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h. */
9989
9990int
9991main ()
9992{
9993
9994 ;
9995 return 0;
9996}
9997_ACEOF
9998if ac_fn_cxx_try_compile "$LINENO"; then :
9999 eval "$as_CACHEVAR=yes"
10000else
10001 eval "$as_CACHEVAR=no"
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004 CXXFLAGS=$ax_check_save_flags
10005fi
10006eval ac_res=\$$as_CACHEVAR
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10008$as_echo "$ac_res" >&6; }
10009if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10010
10011if ${WARN_CXXFLAGS+:} false; then :
10012
10013 case " $WARN_CXXFLAGS " in #(
10014 *" $flag "*) :
10015 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10016 (: WARN_CXXFLAGS already contains $flag) 2>&5
10017 ac_status=$?
10018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019 test $ac_status = 0; } ;; #(
10020 *) :
10021
10022 as_fn_append WARN_CXXFLAGS " $flag"
10023 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10024 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10025 ac_status=$?
10026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10027 test $ac_status = 0; }
10028 ;;
10029esac
10030
10031else
10032
10033 WARN_CXXFLAGS=$flag
10034 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10035 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10036 ac_status=$?
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; }
10039
10040fi
10041
10042else
10043 :
10044fi
10045
10046done
10047
10048
10049 if test "$ax_enable_compile_warnings" != "no"; then :
10050
10051 # "yes" flags
10052
10053
10054
10055
10056for flag in -Wall -Wextra -Wundef -Wwrite-strings -Wpointer-arith -Wmissing-declarations -Wredundant-decls -Wno-unused-parameter -Wno-missing-field-initializers -Wformat=2 -Wcast-align -Wformat-nonliteral -Wformat-security -Wsign-compare -Wstrict-aliasing -Wshadow -Winline -Wpacked -Wmissing-format-attribute -Wmissing-noreturn -Winit-self -Wredundant-decls -Wmissing-include-dirs -Wunused-but-set-variable -Warray-bounds -Wreturn-type -Wno-overloaded-virtual -Wswitch-enum -Wswitch-default ; do
10057 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10059$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
10060if eval \${$as_CACHEVAR+:} false; then :
10061 $as_echo_n "(cached) " >&6
10062else
10063
10064 ax_check_save_flags=$CXXFLAGS
10065 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
10066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067/* end confdefs.h. */
10068
10069int
10070main ()
10071{
10072
10073 ;
10074 return 0;
10075}
10076_ACEOF
10077if ac_fn_cxx_try_compile "$LINENO"; then :
10078 eval "$as_CACHEVAR=yes"
10079else
10080 eval "$as_CACHEVAR=no"
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083 CXXFLAGS=$ax_check_save_flags
10084fi
10085eval ac_res=\$$as_CACHEVAR
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10087$as_echo "$ac_res" >&6; }
10088if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10089
10090if ${WARN_CXXFLAGS+:} false; then :
10091
10092 case " $WARN_CXXFLAGS " in #(
10093 *" $flag "*) :
10094 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10095 (: WARN_CXXFLAGS already contains $flag) 2>&5
10096 ac_status=$?
10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098 test $ac_status = 0; } ;; #(
10099 *) :
10100
10101 as_fn_append WARN_CXXFLAGS " $flag"
10102 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10103 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10104 ac_status=$?
10105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106 test $ac_status = 0; }
10107 ;;
10108esac
10109
10110else
10111
10112 WARN_CXXFLAGS=$flag
10113 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10114 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10115 ac_status=$?
10116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117 test $ac_status = 0; }
10118
10119fi
10120
10121else
10122 :
10123fi
10124
10125done
10126
10127
10128fi
10129 if test "$ax_enable_compile_warnings" = "error"; then :
10130
10131 # "error" flags; -Werror has to be appended unconditionally because
10132 # it's not possible to test for
10133 #
10134 # suggest-attribute=format is disabled because it gives too many false
10135 # positives
10136
10137if ${WARN_CXXFLAGS+:} false; then :
10138
10139 case " $WARN_CXXFLAGS " in #(
10140 *" -Werror "*) :
10141 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains -Werror"; } >&5
10142 (: WARN_CXXFLAGS already contains -Werror) 2>&5
10143 ac_status=$?
10144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145 test $ac_status = 0; } ;; #(
10146 *) :
10147
10148 as_fn_append WARN_CXXFLAGS " -Werror"
10149 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10150 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10151 ac_status=$?
10152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10153 test $ac_status = 0; }
10154 ;;
10155esac
10156
10157else
10158
10159 WARN_CXXFLAGS=-Werror
10160 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10161 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10162 ac_status=$?
10163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10164 test $ac_status = 0; }
10165
10166fi
10167
10168
10169
10170
10171
10172
10173for flag in -Wno-suggest-attribute=format ; do
10174 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10176$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
10177if eval \${$as_CACHEVAR+:} false; then :
10178 $as_echo_n "(cached) " >&6
10179else
10180
10181 ax_check_save_flags=$CXXFLAGS
10182 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h. */
10185
10186int
10187main ()
10188{
10189
10190 ;
10191 return 0;
10192}
10193_ACEOF
10194if ac_fn_cxx_try_compile "$LINENO"; then :
10195 eval "$as_CACHEVAR=yes"
10196else
10197 eval "$as_CACHEVAR=no"
10198fi
10199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200 CXXFLAGS=$ax_check_save_flags
10201fi
10202eval ac_res=\$$as_CACHEVAR
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10204$as_echo "$ac_res" >&6; }
10205if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10206
10207if ${WARN_CXXFLAGS+:} false; then :
10208
10209 case " $WARN_CXXFLAGS " in #(
10210 *" $flag "*) :
10211 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10212 (: WARN_CXXFLAGS already contains $flag) 2>&5
10213 ac_status=$?
10214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215 test $ac_status = 0; } ;; #(
10216 *) :
10217
10218 as_fn_append WARN_CXXFLAGS " $flag"
10219 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10220 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10221 ac_status=$?
10222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223 test $ac_status = 0; }
10224 ;;
10225esac
10226
10227else
10228
10229 WARN_CXXFLAGS=$flag
10230 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10231 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10232 ac_status=$?
10233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234 test $ac_status = 0; }
10235
10236fi
10237
10238else
10239 :
10240fi
10241
10242done
10243
10244
10245fi
10246
10247 # In the flags below, when disabling specific flags, always add *both*
10248 # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
10249 # we enable -Werror, disable a flag, and a build bot passes CXXFLAGS=-Wall,
10250 # which effectively turns that flag back on again as an error.
10251 for flag in $WARN_CXXFLAGS; do
10252 case $flag in #(
10253 -Wno-*=*) :
10254 ;; #(
10255 -Wno-*) :
10256
10257
10258
10259
10260
10261for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
10262 as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10264$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
10265if eval \${$as_CACHEVAR+:} false; then :
10266 $as_echo_n "(cached) " >&6
10267else
10268
10269 ax_check_save_flags=$CXXFLAGS
10270 CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h. */
10273
10274int
10275main ()
10276{
10277
10278 ;
10279 return 0;
10280}
10281_ACEOF
10282if ac_fn_cxx_try_compile "$LINENO"; then :
10283 eval "$as_CACHEVAR=yes"
10284else
10285 eval "$as_CACHEVAR=no"
10286fi
10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288 CXXFLAGS=$ax_check_save_flags
10289fi
10290eval ac_res=\$$as_CACHEVAR
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10292$as_echo "$ac_res" >&6; }
10293if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10294
10295if ${WARN_CXXFLAGS+:} false; then :
10296
10297 case " $WARN_CXXFLAGS " in #(
10298 *" $flag "*) :
10299 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10300 (: WARN_CXXFLAGS already contains $flag) 2>&5
10301 ac_status=$?
10302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10303 test $ac_status = 0; } ;; #(
10304 *) :
10305
10306 as_fn_append WARN_CXXFLAGS " $flag"
10307 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10308 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10309 ac_status=$?
10310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311 test $ac_status = 0; }
10312 ;;
10313esac
10314
10315else
10316
10317 WARN_CXXFLAGS=$flag
10318 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10319 (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10320 ac_status=$?
10321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10322 test $ac_status = 0; }
10323
10324fi
10325
10326else
10327 :
10328fi
10329
10330done
10331
10332 ;; #(
10333 *) :
10334 ;;
10335esac
10336 done
10337
10338 ac_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
10344
10345 # Substitute the variables
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356 # Variable names
10357
10358
10359 # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
10360 # flags, otherwise they are always appended to the warn_ldflags variable,
10361 # and Clang warns on them for every compilation unit.
10362 # If this is passed to GCC, it will explode, so the flag must be enabled
10363 # conditionally.
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
10365$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
10366if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
10367 $as_echo_n "(cached) " >&6
10368else
10369
10370 ax_check_save_flags=$CFLAGS
10371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
10372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h. */
10374
10375int
10376main ()
10377{
10378
10379 ;
10380 return 0;
10381}
10382_ACEOF
10383if ac_fn_c_try_compile "$LINENO"; then :
10384 ax_cv_check_cflags___Werror_unknown_warning_option=yes
10385else
10386 ax_cv_check_cflags___Werror_unknown_warning_option=no
10387fi
10388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389 CFLAGS=$ax_check_save_flags
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
10392$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
10393if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
10394
10395 ax_compiler_flags_test="-Werror=unknown-warning-option"
10396
10397else
10398
10399 ax_compiler_flags_test=""
10400
10401fi
10402
10403
10404 # Base flags
10405
10406
10407
10408
10409for flag in -Wl,--no-as-needed ; do
10410 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
10412$as_echo_n "checking whether the linker accepts $flag... " >&6; }
10413if eval \${$as_CACHEVAR+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415else
10416
10417 ax_check_save_flags=$LDFLAGS
10418 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
10419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h. */
10421
10422int
10423main ()
10424{
10425
10426 ;
10427 return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431 eval "$as_CACHEVAR=yes"
10432else
10433 eval "$as_CACHEVAR=no"
10434fi
10435rm -f core conftest.err conftest.$ac_objext \
10436 conftest$ac_exeext conftest.$ac_ext
10437 LDFLAGS=$ax_check_save_flags
10438fi
10439eval ac_res=\$$as_CACHEVAR
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10441$as_echo "$ac_res" >&6; }
10442if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10443
10444if ${WARN_LDFLAGS+:} false; then :
10445
10446 case " $WARN_LDFLAGS " in #(
10447 *" $flag "*) :
10448 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
10449 (: WARN_LDFLAGS already contains $flag) 2>&5
10450 ac_status=$?
10451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10452 test $ac_status = 0; } ;; #(
10453 *) :
10454
10455 as_fn_append WARN_LDFLAGS " $flag"
10456 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10457 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10458 ac_status=$?
10459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10460 test $ac_status = 0; }
10461 ;;
10462esac
10463
10464else
10465
10466 WARN_LDFLAGS=$flag
10467 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10468 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10469 ac_status=$?
10470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10471 test $ac_status = 0; }
10472
10473fi
10474
10475else
10476 :
10477fi
10478
10479done
10480
10481
10482 if test "$ax_enable_compile_warnings" != "no"; then :
10483
10484 # "yes" flags
10485
10486
10487
10488
10489for flag in ; do
10490 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
10492$as_echo_n "checking whether the linker accepts $flag... " >&6; }
10493if eval \${$as_CACHEVAR+:} false; then :
10494 $as_echo_n "(cached) " >&6
10495else
10496
10497 ax_check_save_flags=$LDFLAGS
10498 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500/* end confdefs.h. */
10501
10502int
10503main ()
10504{
10505
10506 ;
10507 return 0;
10508}
10509_ACEOF
10510if ac_fn_c_try_link "$LINENO"; then :
10511 eval "$as_CACHEVAR=yes"
10512else
10513 eval "$as_CACHEVAR=no"
10514fi
10515rm -f core conftest.err conftest.$ac_objext \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LDFLAGS=$ax_check_save_flags
10518fi
10519eval ac_res=\$$as_CACHEVAR
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10521$as_echo "$ac_res" >&6; }
10522if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10523
10524if ${WARN_LDFLAGS+:} false; then :
10525
10526 case " $WARN_LDFLAGS " in #(
10527 *" $flag "*) :
10528 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
10529 (: WARN_LDFLAGS already contains $flag) 2>&5
10530 ac_status=$?
10531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10532 test $ac_status = 0; } ;; #(
10533 *) :
10534
10535 as_fn_append WARN_LDFLAGS " $flag"
10536 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10537 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10538 ac_status=$?
10539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10540 test $ac_status = 0; }
10541 ;;
10542esac
10543
10544else
10545
10546 WARN_LDFLAGS=$flag
10547 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10548 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10549 ac_status=$?
10550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10551 test $ac_status = 0; }
10552
10553fi
10554
10555else
10556 :
10557fi
10558
10559done
10560
10561
10562fi
10563 if test "$ax_enable_compile_warnings" = "error"; then :
10564
10565 # "error" flags; -Werror has to be appended unconditionally because
10566 # it's not possible to test for
10567 #
10568 # suggest-attribute=format is disabled because it gives too many false
10569 # positives
10570
10571
10572
10573
10574for flag in -Wl,--fatal-warnings ; do
10575 as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
10577$as_echo_n "checking whether the linker accepts $flag... " >&6; }
10578if eval \${$as_CACHEVAR+:} false; then :
10579 $as_echo_n "(cached) " >&6
10580else
10581
10582 ax_check_save_flags=$LDFLAGS
10583 LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
10584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h. */
10586
10587int
10588main ()
10589{
10590
10591 ;
10592 return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596 eval "$as_CACHEVAR=yes"
10597else
10598 eval "$as_CACHEVAR=no"
10599fi
10600rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LDFLAGS=$ax_check_save_flags
10603fi
10604eval ac_res=\$$as_CACHEVAR
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10606$as_echo "$ac_res" >&6; }
10607if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10608
10609if ${WARN_LDFLAGS+:} false; then :
10610
10611 case " $WARN_LDFLAGS " in #(
10612 *" $flag "*) :
10613 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
10614 (: WARN_LDFLAGS already contains $flag) 2>&5
10615 ac_status=$?
10616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10617 test $ac_status = 0; } ;; #(
10618 *) :
10619
10620 as_fn_append WARN_LDFLAGS " $flag"
10621 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10622 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10623 ac_status=$?
10624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10625 test $ac_status = 0; }
10626 ;;
10627esac
10628
10629else
10630
10631 WARN_LDFLAGS=$flag
10632 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10633 (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10634 ac_status=$?
10635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636 test $ac_status = 0; }
10637
10638fi
10639
10640else
10641 :
10642fi
10643
10644done
10645
10646
10647fi
10648
10649 # Substitute the variables
10650
10651
10652
10653
10654
10655
10656 # Variable names
10657
10658
10659 # Base flags
10660
10661if ${WARN_SCANNERFLAGS+:} false; then :
10662
10663 case " $WARN_SCANNERFLAGS " in #(
10664 *" "*) :
10665 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
10666 (: WARN_SCANNERFLAGS already contains ) 2>&5
10667 ac_status=$?
10668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10669 test $ac_status = 0; } ;; #(
10670 *) :
10671
10672 as_fn_append WARN_SCANNERFLAGS " "
10673 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10674 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10675 ac_status=$?
10676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10677 test $ac_status = 0; }
10678 ;;
10679esac
10680
10681else
10682
10683 WARN_SCANNERFLAGS=
10684 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10685 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10686 ac_status=$?
10687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688 test $ac_status = 0; }
10689
10690fi
10691
10692
10693 if test "$ax_enable_compile_warnings" != "no"; then :
10694
10695 # "yes" flags
10696
10697if ${WARN_SCANNERFLAGS+:} false; then :
10698
10699 case " $WARN_SCANNERFLAGS " in #(
10700 *" --warn-all "*) :
10701 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-all "; } >&5
10702 (: WARN_SCANNERFLAGS already contains --warn-all ) 2>&5
10703 ac_status=$?
10704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705 test $ac_status = 0; } ;; #(
10706 *) :
10707
10708 as_fn_append WARN_SCANNERFLAGS " --warn-all "
10709 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10710 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10711 ac_status=$?
10712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10713 test $ac_status = 0; }
10714 ;;
10715esac
10716
10717else
10718
10719 WARN_SCANNERFLAGS= --warn-all
10720 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10721 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10722 ac_status=$?
10723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724 test $ac_status = 0; }
10725
10726fi
10727
10728
10729fi
10730 if test "$ax_enable_compile_warnings" = "error"; then :
10731
10732 # "error" flags
10733
10734if ${WARN_SCANNERFLAGS+:} false; then :
10735
10736 case " $WARN_SCANNERFLAGS " in #(
10737 *" --warn-error "*) :
10738 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains --warn-error "; } >&5
10739 (: WARN_SCANNERFLAGS already contains --warn-error ) 2>&5
10740 ac_status=$?
10741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742 test $ac_status = 0; } ;; #(
10743 *) :
10744
10745 as_fn_append WARN_SCANNERFLAGS " --warn-error "
10746 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10747 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10748 ac_status=$?
10749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750 test $ac_status = 0; }
10751 ;;
10752esac
10753
10754else
10755
10756 WARN_SCANNERFLAGS= --warn-error
10757 { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10758 (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10759 ac_status=$?
10760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10761 test $ac_status = 0; }
10762
10763fi
10764
10765
10766fi
10767
10768 # Substitute the variables
10769
10770
10771
cristyd95b7a52013-10-23 13:12:53 +000010772# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
10773# compiler.
10774if test "$ax_cv_c_compiler_vendor" != "sun"; then
cristy17491be2014-06-24 01:10:53 +000010775 ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +000010776ac_cpp='$CPP $CPPFLAGS'
10777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779ac_compiler_gnu=$ac_cv_c_compiler_gnu
10780
cristy17491be2014-06-24 01:10:53 +000010781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
10782$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
10783if ${ac_cv_cflags_warn_all+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785else
10786 ac_cv_cflags_warn_all="no, unknown"
10787ac_save_CFLAGS="$CFLAGS"
10788for 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 +000010789do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791/* end confdefs.h. */
10792
10793int
10794main ()
10795{
10796
10797 ;
10798 return 0;
10799}
10800_ACEOF
10801if ac_fn_c_try_compile "$LINENO"; then :
10802 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
10803fi
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805done
cristy17491be2014-06-24 01:10:53 +000010806CFLAGS="$ac_save_CFLAGS"
10807
10808fi
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
10810$as_echo "$ac_cv_cflags_warn_all" >&6; }
10811
10812
10813case ".$ac_cv_cflags_warn_all" in
10814 .ok|.ok,*) ;;
10815 .|.no|.no,*) ;;
cristy146497a2015-05-17 22:46:16 +000010816 *)
10817if ${CFLAGS+:} false; then :
10818
10819 case " $CFLAGS " in #(
10820 *" $ac_cv_cflags_warn_all "*) :
10821 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
cristy17491be2014-06-24 01:10:53 +000010822 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
10823 ac_status=$?
10824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristy146497a2015-05-17 22:46:16 +000010825 test $ac_status = 0; } ;; #(
10826 *) :
10827
10828 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
10829 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
10830 (: CFLAGS="$CFLAGS") 2>&5
cristy17491be2014-06-24 01:10:53 +000010831 ac_status=$?
10832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10833 test $ac_status = 0; }
cristy146497a2015-05-17 22:46:16 +000010834 ;;
10835esac
10836
cristy17491be2014-06-24 01:10:53 +000010837else
cristy146497a2015-05-17 22:46:16 +000010838
10839 CFLAGS=$ac_cv_cflags_warn_all
10840 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
10841 (: CFLAGS="$CFLAGS") 2>&5
10842 ac_status=$?
10843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844 test $ac_status = 0; }
10845
cristy17491be2014-06-24 01:10:53 +000010846fi
10847 ;;
10848esac
10849
10850ac_ext=c
cristyd95b7a52013-10-23 13:12:53 +000010851ac_cpp='$CPP $CPPFLAGS'
10852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854ac_compiler_gnu=$ac_cv_c_compiler_gnu
10855
10856
10857fi
cristyd95b7a52013-10-23 13:12:53 +000010858
10859if test "x$GCC" = "xyes"; then
10860 CFLAGS="$CFLAGS -fexceptions"
10861 touch local.exp
10862else
10863 cat > local.exp <<EOF
10864set CC_FOR_TARGET "$CC"
10865EOF
10866fi
10867
cristy9b86f202012-11-28 21:55:35 +000010868# Check for linker script support
10869
10870 # Check whether --enable-ld-version-script was given.
10871if test "${enable_ld_version_script+set}" = set; then :
10872 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
10873fi
10874
10875 if test -z "$have_ld_version_script"; then
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
10877$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
10878 save_LDFLAGS="$LDFLAGS"
10879 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
10880 cat > conftest.map <<EOF
10881foo
10882EOF
10883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884/* end confdefs.h. */
10885
10886int
10887main ()
10888{
10889
10890 ;
10891 return 0;
10892}
10893_ACEOF
10894if ac_fn_c_try_link "$LINENO"; then :
10895 accepts_syntax_errors=yes
10896else
10897 accepts_syntax_errors=no
10898fi
10899rm -f core conftest.err conftest.$ac_objext \
10900 conftest$ac_exeext conftest.$ac_ext
10901 if test "$accepts_syntax_errors" = no; then
10902 cat > conftest.map <<EOF
10903VERS_1 {
10904 global: sym;
10905};
10906
10907VERS_2 {
10908 global: sym;
10909} VERS_1;
10910EOF
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912/* end confdefs.h. */
10913
10914int
10915main ()
10916{
10917
10918 ;
10919 return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_link "$LINENO"; then :
10923 have_ld_version_script=yes
10924else
10925 have_ld_version_script=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 else
10930 have_ld_version_script=no
10931 fi
10932 rm -f conftest.map
10933 LDFLAGS="$save_LDFLAGS"
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
10935$as_echo "$have_ld_version_script" >&6; }
10936 fi
10937 if test "$have_ld_version_script" = "yes"; then
10938 HAVE_LD_VERSION_SCRIPT_TRUE=
10939 HAVE_LD_VERSION_SCRIPT_FALSE='#'
10940else
10941 HAVE_LD_VERSION_SCRIPT_TRUE='#'
10942 HAVE_LD_VERSION_SCRIPT_FALSE=
10943fi
10944
10945
10946
cristy3ed852e2009-09-05 21:47:34 +000010947#
cristy3ed852e2009-09-05 21:47:34 +000010948# Enable run-time checking.
10949#
10950# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +000010951if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010952 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
10953else
10954 enable_bounds_checking='no'
10955fi
10956
10957
10958if test "$enable_bounds_checking" = yes; then
10959
cristy8b350f62009-11-15 23:12:43 +000010960$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010961
10962fi
10963
10964#
10965# Tests for Windows
10966#
10967
10968
10969
10970GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000010971native_win32_build='no'
10972cygwin_build='no'
10973case "${host_os}" in
10974 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +000010975 cygwin_build='yes'
10976 GDI32_LIBS='-lgdi32'
10977 ;;
10978 mingw* )
cristy3ed852e2009-09-05 21:47:34 +000010979 native_win32_build='yes'
10980 GDI32_LIBS='-lgdi32'
10981 ;;
10982esac
10983if test "${GDI32_LIBS}x" != 'x'; then
10984
cristy8b350f62009-11-15 23:12:43 +000010985$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010986
10987fi
10988
cristy73bd4a52010-10-05 11:24:23 +000010989 if test "${GDI32_LIBS}x" != 'x' ; then
10990 WINGDI32_DELEGATE_TRUE=
10991 WINGDI32_DELEGATE_FALSE='#'
10992else
10993 WINGDI32_DELEGATE_TRUE='#'
10994 WINGDI32_DELEGATE_FALSE=
10995fi
10996
10997 if test "${native_win32_build}" = 'yes' ; then
10998 WIN32_NATIVE_BUILD_TRUE=
10999 WIN32_NATIVE_BUILD_FALSE='#'
11000else
11001 WIN32_NATIVE_BUILD_TRUE='#'
11002 WIN32_NATIVE_BUILD_FALSE=
11003fi
11004
11005 if test "${cygwin_build}" = 'yes' ; then
11006 CYGWIN_BUILD_TRUE=
11007 CYGWIN_BUILD_FALSE='#'
11008else
11009 CYGWIN_BUILD_TRUE='#'
11010 CYGWIN_BUILD_FALSE=
11011fi
11012
11013 if test "x${CC}" = 'xcl.exe' ; then
11014 USING_CL_TRUE=
11015 USING_CL_FALSE='#'
11016else
11017 USING_CL_TRUE='#'
11018 USING_CL_FALSE=
11019fi
11020
cristy3ed852e2009-09-05 21:47:34 +000011021
11022WinPathScript="${srcdirfull}/winpath.sh"
11023
11024
11025#
11026# Compiler flags tweaks
11027#
11028if test "${GCC}" != "yes"; then
11029 case "${host}" in
11030 *-*-hpux* )
11031 # aCC: HP ANSI C++ B3910B A.03.34
11032 CFLAGS="${CFLAGS} -Wp,-H30000"
11033 if test -n "${CXXFLAGS}"; then
11034 CXXFLAGS='-AA'
11035 else
11036 CXXFLAGS="${CXXFLAGS} -AA"
11037 fi
11038 ;;
11039 *-dec-osf5.* )
11040 # Compaq alphaev68-dec-osf5.1 compiler
11041 if test -n "${CXXFLAGS}"; then
11042 CXXFLAGS='-std strict_ansi -noimplicit_include'
11043 else
11044 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
11045 fi
11046 esac
11047fi
11048
11049# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +000011050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +000011051$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011052if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011053 $as_echo_n "(cached) " >&6
11054else
11055
11056im_cv_ld_lazyload='none'
11057case "${host}" in
11058 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
11059 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
11060 im_cv_ld_lazyload='-Wl,-zlazyload'
11061 fi
11062 ;;
11063esac
11064
11065fi
cristy8b350f62009-11-15 23:12:43 +000011066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +000011067$as_echo "$im_cv_ld_lazyload" >&6; }
11068if test "${im_cv_ld_lazyload}" != 'none' ; then
11069 if test -z "${LDFLAGS}" ; then
11070 LDFLAGS="${im_cv_ld_lazyload}"
11071 else
11072 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
11073 fi
11074fi
11075
11076case "$host" in
cristyc37574e2013-02-16 01:04:55 +000011077 *darwin* | *-macos10*)
cristyb3b90d32013-02-16 15:44:08 +000011078 CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
cristyc37574e2013-02-16 01:04:55 +000011079 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +000011080if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011081 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
11082else
11083 build_osxuniversal=no
11084fi
11085
11086
cristyc37574e2013-02-16 01:04:55 +000011087 if test "${build_osxuniversal}" != no ; then
11088 if test "$enable_dependency_tracking" != no ; then
11089 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +000011090Please re-run configure with these options:
11091 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +000011092 " "$LINENO" 5
cristyc37574e2013-02-16 01:04:55 +000011093 fi
11094 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
11095 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
11096 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
cristy3ed852e2009-09-05 21:47:34 +000011097 fi
11098 ;;
11099esac
11100
cristy0151ae12011-10-28 16:32:29 +000011101#
11102# ARCH specific include directory
11103#
11104
cristy670aa3c2011-11-03 00:54:00 +000011105# Check whether --with-includearch-dir was given.
11106if test "${with_includearch_dir+set}" = set; then :
11107 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +000011108else
cristy670aa3c2011-11-03 00:54:00 +000011109 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +000011110fi
11111
11112
cristyd286fd72013-02-24 19:25:33 +000011113eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +000011114
cristy0151ae12011-10-28 16:32:29 +000011115
11116#
11117# ARCH specific configuration directory
11118#
11119
cristy670aa3c2011-11-03 00:54:00 +000011120# Check whether --with-sharearch-dir was given.
11121if test "${with_sharearch_dir+set}" = set; then :
11122 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +000011123else
cristy408ebcd2011-11-14 01:36:57 +000011124 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +000011125fi
11126
11127
cristy670aa3c2011-11-03 00:54:00 +000011128eval "eval SHAREARCH_DIR=$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +000011129
cristy0151ae12011-10-28 16:32:29 +000011130
cristy2ec87cc2013-02-18 17:46:50 +000011131# Path to the pkgconfig folder
11132
11133# Check whether --with-pkgconfigdir was given.
11134if test "${with_pkgconfigdir+set}" = set; then :
11135 withval=$with_pkgconfigdir; pkgconfigdir="$withval"
11136else
11137 pkgconfigdir='${libdir}/pkgconfig'
11138fi
11139
11140
11141
cristy0151ae12011-10-28 16:32:29 +000011142#
cristy3ed852e2009-09-05 21:47:34 +000011143# Enable support for threads
cristy1ae5c992013-07-30 14:55:07 +000011144#
11145# Find Posix threads library
11146#
cristy3ed852e2009-09-05 21:47:34 +000011147
11148# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +000011149if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011150 withval=$with_threads; with_threads=$withval
11151else
11152 with_threads='yes'
11153fi
11154
11155
cristy1ae5c992013-07-30 14:55:07 +000011156THREAD_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +000011157have_threads=no
11158if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000011159
11160
cristy73bd4a52010-10-05 11:24:23 +000011161ac_ext=c
11162ac_cpp='$CPP $CPPFLAGS'
11163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166
11167ax_pthread_ok=no
11168
11169# We used to check for pthread.h first, but this fails if pthread.h
11170# requires special compiler flags (e.g. on True64 or Sequent).
11171# It gets checked for in the link test anyway.
11172
11173# First of all, check if the user has set any of the PTHREAD_LIBS,
11174# etcetera environment variables, and if threads linking works using
11175# them:
11176if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
11177 save_CFLAGS="$CFLAGS"
11178 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11179 save_LIBS="$LIBS"
11180 LIBS="$PTHREAD_LIBS $LIBS"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
11182$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
11183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184/* end confdefs.h. */
11185
11186/* Override any GCC internal prototype to avoid an error.
11187 Use char because int might match the return type of a GCC
11188 builtin and then its argument prototype would still apply. */
11189#ifdef __cplusplus
11190extern "C"
11191#endif
11192char pthread_join ();
11193int
11194main ()
11195{
11196return pthread_join ();
11197 ;
11198 return 0;
11199}
11200_ACEOF
11201if ac_fn_c_try_link "$LINENO"; then :
11202 ax_pthread_ok=yes
11203fi
11204rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11207$as_echo "$ax_pthread_ok" >&6; }
11208 if test x"$ax_pthread_ok" = xno; then
11209 PTHREAD_LIBS=""
11210 PTHREAD_CFLAGS=""
11211 fi
11212 LIBS="$save_LIBS"
11213 CFLAGS="$save_CFLAGS"
11214fi
11215
11216# We must check for the threads library under a number of different
11217# names; the ordering is very important because some systems
11218# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11219# libraries is broken (non-POSIX).
11220
11221# Create a list of thread flags to try. Items starting with a "-" are
11222# C compiler flags, and other items are library names, except for "none"
11223# which indicates that we try without any flags at all, and "pthread-config"
11224# which is a program returning the flags for the Pth emulation library.
11225
cristy2ec87cc2013-02-18 17:46:50 +000011226ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000011227
11228# The ordering *is* (sometimes) important. Some notes on the
11229# individual items follow:
11230
11231# pthreads: AIX (must check this before -lpthread)
11232# none: in case threads are in libc; should be tried before -Kthread and
11233# other compiler flags to prevent continual compiler warnings
11234# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11235# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11236# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11237# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
11238# -pthreads: Solaris/gcc
11239# -mthreads: Mingw32/gcc, Lynx/gcc
11240# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11241# doesn't hurt to check since this sometimes defines pthreads too;
11242# also defines -D_REENTRANT)
11243# ... -mt is also the pthreads flag for HP/aCC
11244# pthread: Linux, etcetera
11245# --thread-safe: KAI C++
11246# pthread-config: use pthread-config program (for GNU Pth library)
11247
cristy2ec87cc2013-02-18 17:46:50 +000011248case ${host_os} in
11249 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011250
11251 # On Solaris (at least, for some versions), libc contains stubbed
11252 # (non-functional) versions of the pthreads routines, so link-based
11253 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
11254 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
11255 # a function called by this macro, so we could check for that, but
11256 # who knows whether they'll stub that too in a future libc.) So,
11257 # we'll just look for -pthreads and -lpthread first:
11258
11259 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
11260 ;;
11261
cristy2ec87cc2013-02-18 17:46:50 +000011262 darwin*)
cristya316db12011-10-24 00:49:45 +000011263 ax_pthread_flags="-pthread $ax_pthread_flags"
11264 ;;
cristy73bd4a52010-10-05 11:24:23 +000011265esac
11266
cristy17491be2014-06-24 01:10:53 +000011267# Clang doesn't consider unrecognized options an error unless we specify
11268# -Werror. We throw in some extra Clang-specific options to ensure that
11269# this doesn't happen for GCC, which also accepts -Werror.
11270
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
11272$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
11273save_CFLAGS="$CFLAGS"
11274ax_pthread_extra_flags="-Werror"
11275CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277/* end confdefs.h. */
11278int foo(void);
11279int
11280main ()
11281{
11282foo()
11283 ;
11284 return 0;
11285}
11286_ACEOF
11287if ac_fn_c_try_compile "$LINENO"; then :
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11289$as_echo "yes" >&6; }
11290else
11291 ax_pthread_extra_flags=
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
11294fi
11295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296CFLAGS="$save_CFLAGS"
11297
cristy73bd4a52010-10-05 11:24:23 +000011298if test x"$ax_pthread_ok" = xno; then
11299for flag in $ax_pthread_flags; do
11300
11301 case $flag in
11302 none)
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11304$as_echo_n "checking whether pthreads work without any flags... " >&6; }
11305 ;;
11306
11307 -*)
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
11309$as_echo_n "checking whether pthreads work with $flag... " >&6; }
11310 PTHREAD_CFLAGS="$flag"
11311 ;;
11312
cristya316db12011-10-24 00:49:45 +000011313 pthread-config)
11314 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000011315set dummy pthread-config; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011318if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011319 $as_echo_n "(cached) " >&6
11320else
11321 if test -n "$ax_pthread_config"; then
11322 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327 IFS=$as_save_IFS
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011331 ac_cv_prog_ax_pthread_config="yes"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333 break 2
11334 fi
11335done
11336 done
11337IFS=$as_save_IFS
11338
11339 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11340fi
11341fi
11342ax_pthread_config=$ac_cv_prog_ax_pthread_config
11343if test -n "$ax_pthread_config"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11345$as_echo "$ax_pthread_config" >&6; }
11346else
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
11349fi
11350
11351
cristya316db12011-10-24 00:49:45 +000011352 if test x"$ax_pthread_config" = xno; then continue; fi
11353 PTHREAD_CFLAGS="`pthread-config --cflags`"
11354 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11355 ;;
cristy73bd4a52010-10-05 11:24:23 +000011356
11357 *)
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
11359$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
11360 PTHREAD_LIBS="-l$flag"
11361 ;;
11362 esac
11363
11364 save_LIBS="$LIBS"
11365 save_CFLAGS="$CFLAGS"
11366 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000011367 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000011368
11369 # Check for various functions. We must include pthread.h,
11370 # since some functions may be macros. (On the Sequent, we
11371 # need a special flag -Kthread to make this header compile.)
11372 # We check for pthread_join because it is in -lpthread on IRIX
11373 # while pthread_create is in libc. We check for pthread_attr_init
11374 # due to DEC craziness with -lpthreads. We check for
11375 # pthread_cleanup_push because it is one of the few pthread
11376 # functions on Solaris that doesn't have a non-functional libc stub.
11377 # We try pthread_create on general principles.
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h. */
11380#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000011381 static void routine(void *a) { a = 0; }
11382 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000011383int
11384main ()
11385{
11386pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000011387 pthread_create(&th, 0, start_routine, 0);
11388 pthread_join(th, 0);
11389 pthread_attr_init(&attr);
11390 pthread_cleanup_push(routine, 0);
11391 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000011392 ;
11393 return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_link "$LINENO"; then :
11397 ax_pthread_ok=yes
11398fi
11399rm -f core conftest.err conftest.$ac_objext \
11400 conftest$ac_exeext conftest.$ac_ext
11401
11402 LIBS="$save_LIBS"
11403 CFLAGS="$save_CFLAGS"
11404
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11406$as_echo "$ax_pthread_ok" >&6; }
11407 if test "x$ax_pthread_ok" = xyes; then
11408 break;
11409 fi
11410
11411 PTHREAD_LIBS=""
11412 PTHREAD_CFLAGS=""
11413done
11414fi
11415
11416# Various other checks:
11417if test "x$ax_pthread_ok" = xyes; then
11418 save_LIBS="$LIBS"
11419 LIBS="$PTHREAD_LIBS $LIBS"
11420 save_CFLAGS="$CFLAGS"
11421 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11422
11423 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000011424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000011425$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000011426 attr_name=unknown
11427 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011429/* end confdefs.h. */
11430#include <pthread.h>
11431int
11432main ()
11433{
cristya316db12011-10-24 00:49:45 +000011434int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000011435 ;
11436 return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_link "$LINENO"; then :
11440 attr_name=$attr; break
11441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000011444 done
cristy73bd4a52010-10-05 11:24:23 +000011445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
11446$as_echo "$attr_name" >&6; }
11447 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
11448
11449cat >>confdefs.h <<_ACEOF
11450#define PTHREAD_CREATE_JOINABLE $attr_name
11451_ACEOF
11452
11453 fi
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
11456$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
11457 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000011458 case ${host_os} in
11459 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
11460 osf* | hpux*) flag="-D_REENTRANT";;
11461 solaris*)
11462 if test "$GCC" = "yes"; then
11463 flag="-D_REENTRANT"
11464 else
cristy17491be2014-06-24 01:10:53 +000011465 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000011466 flag="-mt -D_REENTRANT"
11467 fi
11468 ;;
cristy73bd4a52010-10-05 11:24:23 +000011469 esac
cristy17491be2014-06-24 01:10:53 +000011470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
11471$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000011472 if test "x$flag" != xno; then
11473 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
11474 fi
11475
cristya316db12011-10-24 00:49:45 +000011476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11477$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11478if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480else
11481
11482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000011484#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000011485int
11486main ()
11487{
11488int i = PTHREAD_PRIO_INHERIT;
11489 ;
11490 return 0;
11491}
11492_ACEOF
11493if ac_fn_c_try_link "$LINENO"; then :
11494 ax_cv_PTHREAD_PRIO_INHERIT=yes
11495else
11496 ax_cv_PTHREAD_PRIO_INHERIT=no
11497fi
11498rm -f core conftest.err conftest.$ac_objext \
11499 conftest$ac_exeext conftest.$ac_ext
11500
11501fi
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11503$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11504 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
11505
11506$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11507
11508fi
11509
cristy73bd4a52010-10-05 11:24:23 +000011510 LIBS="$save_LIBS"
11511 CFLAGS="$save_CFLAGS"
11512
cristy23493c42013-04-11 16:04:59 +000011513 # More AIX lossage: compile with *_r variant
11514 if test "x$GCC" != xyes; then
11515 case $host_os in
11516 aix*)
11517 case "x/$CC" in #(
11518 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11519 #handle absolute path differently from PATH based program lookup
11520 case "x$CC" in #(
11521 x/*) :
11522 if as_fn_executable_p ${CC}_r; then :
11523 PTHREAD_CC="${CC}_r"
11524fi ;; #(
11525 *) :
11526 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000011527do
11528 # Extract the first word of "$ac_prog", so it can be a program name with args.
11529set dummy $ac_prog; ac_word=$2
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011532if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011533 $as_echo_n "(cached) " >&6
11534else
11535 if test -n "$PTHREAD_CC"; then
11536 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11537else
11538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539for as_dir in $PATH
11540do
11541 IFS=$as_save_IFS
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011545 ac_cv_prog_PTHREAD_CC="$ac_prog"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547 break 2
11548 fi
11549done
11550 done
11551IFS=$as_save_IFS
11552
11553fi
11554fi
11555PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11556if test -n "$PTHREAD_CC"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11558$as_echo "$PTHREAD_CC" >&6; }
11559else
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
11562fi
11563
11564
11565 test -n "$PTHREAD_CC" && break
11566done
cristy23493c42013-04-11 16:04:59 +000011567test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11568 ;;
11569esac ;; #(
11570 *) :
11571 ;;
11572esac
11573 ;;
11574 esac
cristya316db12011-10-24 00:49:45 +000011575 fi
cristy73bd4a52010-10-05 11:24:23 +000011576fi
11577
cristy23493c42013-04-11 16:04:59 +000011578test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11579
cristy73bd4a52010-10-05 11:24:23 +000011580
11581
11582
11583
11584# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11585if test x"$ax_pthread_ok" = xyes; then
11586
11587$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11588
11589 :
11590else
11591 ax_pthread_ok=no
11592
11593fi
11594ac_ext=c
11595ac_cpp='$CPP $CPPFLAGS'
11596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598ac_compiler_gnu=$ac_cv_c_compiler_gnu
11599
11600
cristy7acf8fb2010-09-23 19:58:53 +000011601 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +000011602 have_threads=yes
11603 DEF_THREAD="$PTHREAD_CFLAGS"
11604 CFLAGS="$CFLAGS $DEF_THREAD"
11605 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
cristy1ae5c992013-07-30 14:55:07 +000011606 THREAD_LIBS="$PTHREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000011607 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +000011608 { $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 +000011609$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
11610 CC="$PTHREAD_CC"
11611 fi
cristy55bf91c2010-09-24 00:29:41 +000011612
11613$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
11614
cristy3ed852e2009-09-05 21:47:34 +000011615 fi
11616fi
cristy1ae5c992013-07-30 14:55:07 +000011617LIBS="$LIBS $THREAD_LIBS"
11618
cristy3ed852e2009-09-05 21:47:34 +000011619
11620# Enable support for OpenMP
11621if test "$have_threads" != 'yes'; then
11622 ac_cv_prog_c_openmp=unsupported
11623fi
11624
11625 OPENMP_CFLAGS=
11626 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000011627if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000011628 enableval=$enable_openmp;
11629fi
11630
11631 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +000011632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +000011633$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011634if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000011635 $as_echo_n "(cached) " >&6
11636else
cristy8b350f62009-11-15 23:12:43 +000011637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011639
11640#ifndef _OPENMP
11641 choke me
11642#endif
11643#include <omp.h>
11644int main () { return omp_get_num_threads (); }
11645
11646_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011647if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011648 ac_cv_prog_c_openmp='none needed'
11649else
cristy8b350f62009-11-15 23:12:43 +000011650 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000011651 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
11652 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000011653 ac_save_CFLAGS=$CFLAGS
11654 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000011655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000011657
11658#ifndef _OPENMP
11659 choke me
11660#endif
11661#include <omp.h>
11662int main () { return omp_get_num_threads (); }
11663
11664_ACEOF
cristy8b350f62009-11-15 23:12:43 +000011665if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000011666 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000011667fi
cristy8b350f62009-11-15 23:12:43 +000011668rm -f core conftest.err conftest.$ac_objext \
11669 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011670 CFLAGS=$ac_save_CFLAGS
11671 if test "$ac_cv_prog_c_openmp" != unsupported; then
11672 break
11673 fi
11674 done
11675fi
cristy8b350f62009-11-15 23:12:43 +000011676rm -f core conftest.err conftest.$ac_objext \
11677 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000011678fi
cristy8b350f62009-11-15 23:12:43 +000011679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000011680$as_echo "$ac_cv_prog_c_openmp" >&6; }
11681 case $ac_cv_prog_c_openmp in #(
11682 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000011683 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000011684 *)
cristy8b350f62009-11-15 23:12:43 +000011685 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000011686 esac
11687 fi
11688
11689
11690CFLAGS="$OPENMP_CFLAGS $CFLAGS"
11691MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
11692
cristy391f1ce2010-09-09 17:23:28 +000011693if test "$enable_openmp" != no; then
11694 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
11695 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
11696 fi
11697fi
cristy3ed852e2009-09-05 21:47:34 +000011698
cristy736173a2009-09-20 21:18:22 +000011699# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +000011700
11701
cristy73bd4a52010-10-05 11:24:23 +000011702ac_ext=c
11703ac_cpp='$CPP $CPPFLAGS'
11704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707
11708ax_pthread_ok=no
11709
11710# We used to check for pthread.h first, but this fails if pthread.h
11711# requires special compiler flags (e.g. on True64 or Sequent).
11712# It gets checked for in the link test anyway.
11713
11714# First of all, check if the user has set any of the PTHREAD_LIBS,
11715# etcetera environment variables, and if threads linking works using
11716# them:
11717if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
11718 save_CFLAGS="$CFLAGS"
11719 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11720 save_LIBS="$LIBS"
11721 LIBS="$PTHREAD_LIBS $LIBS"
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
11723$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725/* end confdefs.h. */
11726
11727/* Override any GCC internal prototype to avoid an error.
11728 Use char because int might match the return type of a GCC
11729 builtin and then its argument prototype would still apply. */
11730#ifdef __cplusplus
11731extern "C"
11732#endif
11733char pthread_join ();
11734int
11735main ()
11736{
11737return pthread_join ();
11738 ;
11739 return 0;
11740}
11741_ACEOF
11742if ac_fn_c_try_link "$LINENO"; then :
11743 ax_pthread_ok=yes
11744fi
11745rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11748$as_echo "$ax_pthread_ok" >&6; }
11749 if test x"$ax_pthread_ok" = xno; then
11750 PTHREAD_LIBS=""
11751 PTHREAD_CFLAGS=""
11752 fi
11753 LIBS="$save_LIBS"
11754 CFLAGS="$save_CFLAGS"
11755fi
11756
11757# We must check for the threads library under a number of different
11758# names; the ordering is very important because some systems
11759# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11760# libraries is broken (non-POSIX).
11761
11762# Create a list of thread flags to try. Items starting with a "-" are
11763# C compiler flags, and other items are library names, except for "none"
11764# which indicates that we try without any flags at all, and "pthread-config"
11765# which is a program returning the flags for the Pth emulation library.
11766
cristy2ec87cc2013-02-18 17:46:50 +000011767ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
cristy73bd4a52010-10-05 11:24:23 +000011768
11769# The ordering *is* (sometimes) important. Some notes on the
11770# individual items follow:
11771
11772# pthreads: AIX (must check this before -lpthread)
11773# none: in case threads are in libc; should be tried before -Kthread and
11774# other compiler flags to prevent continual compiler warnings
11775# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11776# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11777# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11778# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
11779# -pthreads: Solaris/gcc
11780# -mthreads: Mingw32/gcc, Lynx/gcc
11781# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11782# doesn't hurt to check since this sometimes defines pthreads too;
11783# also defines -D_REENTRANT)
11784# ... -mt is also the pthreads flag for HP/aCC
11785# pthread: Linux, etcetera
11786# --thread-safe: KAI C++
11787# pthread-config: use pthread-config program (for GNU Pth library)
11788
cristy2ec87cc2013-02-18 17:46:50 +000011789case ${host_os} in
11790 solaris*)
cristy73bd4a52010-10-05 11:24:23 +000011791
11792 # On Solaris (at least, for some versions), libc contains stubbed
11793 # (non-functional) versions of the pthreads routines, so link-based
11794 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
11795 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
11796 # a function called by this macro, so we could check for that, but
11797 # who knows whether they'll stub that too in a future libc.) So,
11798 # we'll just look for -pthreads and -lpthread first:
11799
11800 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
11801 ;;
11802
cristy2ec87cc2013-02-18 17:46:50 +000011803 darwin*)
cristya316db12011-10-24 00:49:45 +000011804 ax_pthread_flags="-pthread $ax_pthread_flags"
11805 ;;
cristy73bd4a52010-10-05 11:24:23 +000011806esac
11807
cristy17491be2014-06-24 01:10:53 +000011808# Clang doesn't consider unrecognized options an error unless we specify
11809# -Werror. We throw in some extra Clang-specific options to ensure that
11810# this doesn't happen for GCC, which also accepts -Werror.
11811
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
11813$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
11814save_CFLAGS="$CFLAGS"
11815ax_pthread_extra_flags="-Werror"
11816CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
11817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h. */
11819int foo(void);
11820int
11821main ()
11822{
11823foo()
11824 ;
11825 return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_compile "$LINENO"; then :
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830$as_echo "yes" >&6; }
11831else
11832 ax_pthread_extra_flags=
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834$as_echo "no" >&6; }
11835fi
11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837CFLAGS="$save_CFLAGS"
11838
cristy73bd4a52010-10-05 11:24:23 +000011839if test x"$ax_pthread_ok" = xno; then
11840for flag in $ax_pthread_flags; do
11841
11842 case $flag in
11843 none)
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11845$as_echo_n "checking whether pthreads work without any flags... " >&6; }
11846 ;;
11847
11848 -*)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
11850$as_echo_n "checking whether pthreads work with $flag... " >&6; }
11851 PTHREAD_CFLAGS="$flag"
11852 ;;
11853
cristya316db12011-10-24 00:49:45 +000011854 pthread-config)
11855 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +000011856set dummy pthread-config; ac_word=$2
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011859if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011860 $as_echo_n "(cached) " >&6
11861else
11862 if test -n "$ax_pthread_config"; then
11863 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868 IFS=$as_save_IFS
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011872 ac_cv_prog_ax_pthread_config="yes"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874 break 2
11875 fi
11876done
11877 done
11878IFS=$as_save_IFS
11879
11880 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11881fi
11882fi
11883ax_pthread_config=$ac_cv_prog_ax_pthread_config
11884if test -n "$ax_pthread_config"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11886$as_echo "$ax_pthread_config" >&6; }
11887else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
cristya316db12011-10-24 00:49:45 +000011893 if test x"$ax_pthread_config" = xno; then continue; fi
11894 PTHREAD_CFLAGS="`pthread-config --cflags`"
11895 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11896 ;;
cristy73bd4a52010-10-05 11:24:23 +000011897
11898 *)
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
11900$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
11901 PTHREAD_LIBS="-l$flag"
11902 ;;
11903 esac
11904
11905 save_LIBS="$LIBS"
11906 save_CFLAGS="$CFLAGS"
11907 LIBS="$PTHREAD_LIBS $LIBS"
cristy17491be2014-06-24 01:10:53 +000011908 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
cristy73bd4a52010-10-05 11:24:23 +000011909
11910 # Check for various functions. We must include pthread.h,
11911 # since some functions may be macros. (On the Sequent, we
11912 # need a special flag -Kthread to make this header compile.)
11913 # We check for pthread_join because it is in -lpthread on IRIX
11914 # while pthread_create is in libc. We check for pthread_attr_init
11915 # due to DEC craziness with -lpthreads. We check for
11916 # pthread_cleanup_push because it is one of the few pthread
11917 # functions on Solaris that doesn't have a non-functional libc stub.
11918 # We try pthread_create on general principles.
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h. */
11921#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000011922 static void routine(void *a) { a = 0; }
11923 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +000011924int
11925main ()
11926{
11927pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +000011928 pthread_create(&th, 0, start_routine, 0);
11929 pthread_join(th, 0);
11930 pthread_attr_init(&attr);
11931 pthread_cleanup_push(routine, 0);
11932 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +000011933 ;
11934 return 0;
11935}
11936_ACEOF
11937if ac_fn_c_try_link "$LINENO"; then :
11938 ax_pthread_ok=yes
11939fi
11940rm -f core conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
11942
11943 LIBS="$save_LIBS"
11944 CFLAGS="$save_CFLAGS"
11945
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11947$as_echo "$ax_pthread_ok" >&6; }
11948 if test "x$ax_pthread_ok" = xyes; then
11949 break;
11950 fi
11951
11952 PTHREAD_LIBS=""
11953 PTHREAD_CFLAGS=""
11954done
11955fi
11956
11957# Various other checks:
11958if test "x$ax_pthread_ok" = xyes; then
11959 save_LIBS="$LIBS"
11960 LIBS="$PTHREAD_LIBS $LIBS"
11961 save_CFLAGS="$CFLAGS"
11962 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11963
11964 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +000011965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +000011966$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +000011967 attr_name=unknown
11968 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000011970/* end confdefs.h. */
11971#include <pthread.h>
11972int
11973main ()
11974{
cristya316db12011-10-24 00:49:45 +000011975int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +000011976 ;
11977 return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_link "$LINENO"; then :
11981 attr_name=$attr; break
11982fi
11983rm -f core conftest.err conftest.$ac_objext \
11984 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +000011985 done
cristy73bd4a52010-10-05 11:24:23 +000011986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
11987$as_echo "$attr_name" >&6; }
11988 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
11989
11990cat >>confdefs.h <<_ACEOF
11991#define PTHREAD_CREATE_JOINABLE $attr_name
11992_ACEOF
11993
11994 fi
11995
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
11997$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
11998 flag=no
cristy2ec87cc2013-02-18 17:46:50 +000011999 case ${host_os} in
12000 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
12001 osf* | hpux*) flag="-D_REENTRANT";;
12002 solaris*)
12003 if test "$GCC" = "yes"; then
12004 flag="-D_REENTRANT"
12005 else
cristy17491be2014-06-24 01:10:53 +000012006 # TODO: What about Clang on Solaris?
cristy2ec87cc2013-02-18 17:46:50 +000012007 flag="-mt -D_REENTRANT"
12008 fi
12009 ;;
cristy73bd4a52010-10-05 11:24:23 +000012010 esac
cristy17491be2014-06-24 01:10:53 +000012011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
12012$as_echo "$flag" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012013 if test "x$flag" != xno; then
12014 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12015 fi
12016
cristya316db12011-10-24 00:49:45 +000012017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
12018$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
12019if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
12020 $as_echo_n "(cached) " >&6
12021else
12022
12023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024/* end confdefs.h. */
cristy17491be2014-06-24 01:10:53 +000012025#include <pthread.h>
cristya316db12011-10-24 00:49:45 +000012026int
12027main ()
12028{
12029int i = PTHREAD_PRIO_INHERIT;
12030 ;
12031 return 0;
12032}
12033_ACEOF
12034if ac_fn_c_try_link "$LINENO"; then :
12035 ax_cv_PTHREAD_PRIO_INHERIT=yes
12036else
12037 ax_cv_PTHREAD_PRIO_INHERIT=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
12041
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
12044$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
12045 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
12046
12047$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
12048
12049fi
12050
cristy73bd4a52010-10-05 11:24:23 +000012051 LIBS="$save_LIBS"
12052 CFLAGS="$save_CFLAGS"
12053
cristy23493c42013-04-11 16:04:59 +000012054 # More AIX lossage: compile with *_r variant
12055 if test "x$GCC" != xyes; then
12056 case $host_os in
12057 aix*)
12058 case "x/$CC" in #(
12059 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
12060 #handle absolute path differently from PATH based program lookup
12061 case "x$CC" in #(
12062 x/*) :
12063 if as_fn_executable_p ${CC}_r; then :
12064 PTHREAD_CC="${CC}_r"
12065fi ;; #(
12066 *) :
12067 for ac_prog in ${CC}_r
cristy73bd4a52010-10-05 11:24:23 +000012068do
12069 # Extract the first word of "$ac_prog", so it can be a program name with args.
12070set dummy $ac_prog; ac_word=$2
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012073if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012074 $as_echo_n "(cached) " >&6
12075else
12076 if test -n "$PTHREAD_CC"; then
12077 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12078else
12079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080for as_dir in $PATH
12081do
12082 IFS=$as_save_IFS
12083 test -z "$as_dir" && as_dir=.
12084 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012086 ac_cv_prog_PTHREAD_CC="$ac_prog"
12087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088 break 2
12089 fi
12090done
12091 done
12092IFS=$as_save_IFS
12093
12094fi
12095fi
12096PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12097if test -n "$PTHREAD_CC"; then
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12099$as_echo "$PTHREAD_CC" >&6; }
12100else
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102$as_echo "no" >&6; }
12103fi
12104
12105
12106 test -n "$PTHREAD_CC" && break
12107done
cristy23493c42013-04-11 16:04:59 +000012108test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
12109 ;;
12110esac ;; #(
12111 *) :
12112 ;;
12113esac
12114 ;;
12115 esac
cristya316db12011-10-24 00:49:45 +000012116 fi
cristy73bd4a52010-10-05 11:24:23 +000012117fi
12118
cristy23493c42013-04-11 16:04:59 +000012119test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
12120
cristy73bd4a52010-10-05 11:24:23 +000012121
12122
12123
12124
12125# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12126if test x"$ax_pthread_ok" = xyes; then
12127
12128$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
12129
12130 :
12131else
12132 ax_pthread_ok=no
12133
12134fi
12135ac_ext=c
12136ac_cpp='$CPP $CPPFLAGS'
12137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12139ac_compiler_gnu=$ac_cv_c_compiler_gnu
12140
12141
12142
12143# Check whether --enable-opencl was given.
12144if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +000012145 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +000012146else
cristy48794642012-09-02 15:19:08 +000012147 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +000012148fi
12149
12150
cristy48794642012-09-02 15:19:08 +000012151if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000012152 ac_ext=c
12153ac_cpp='$CPP $CPPFLAGS'
12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
cristy75314cc2012-09-15 23:08:29 +000012158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
12159$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
12160if ${ax_cv_c_compiler_ms+:} false; then :
12161 $as_echo_n "(cached) " >&6
12162else
12163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h. */
12165
12166int
12167main ()
12168{
12169#ifndef _MSC_VER
12170 choke me
12171#endif
12172
12173 ;
12174 return 0;
12175}
12176_ACEOF
12177if ac_fn_c_try_compile "$LINENO"; then :
12178 ax_compiler_ms=yes
12179else
12180 ax_compiler_ms=no
12181fi
12182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183ax_cv_c_compiler_ms=$ax_compiler_ms
12184
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
12187$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000012188 if test X$ax_compiler_ms = Xno; then :
12189 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
12190fi
12191
12192 ax_save_CPPFLAGS=$CPPFLAGS
cristyfdc7d122013-08-17 20:46:45 +000012193 ax_save_CL_CFLAGS=$CL_CFLAGS
12194
12195 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000012196 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
12197 for ac_header in CL/cl.h OpenCL/cl.h
12198do :
12199 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12200ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000012201if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000012202 cat >>confdefs.h <<_ACEOF
12203#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12204_ACEOF
cristyfdc7d122013-08-17 20:46:45 +000012205 found_opencl_header='yes'
12206 break;
12207else
12208 found_opencl_header='no'
cristy73bd4a52010-10-05 11:24:23 +000012209fi
12210
12211done
12212
cristyfdc7d122013-08-17 20:46:45 +000012213
12214 if test X$found_opencl_header = Xno; then :
12215 { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
12216 { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
12217 CL_CFLAGS="-I$AMDAPPSDKROOT/include"
12218 CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
12219 for ac_header in CL/cl.h OpenCL/cl.h
12220do :
12221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12224 cat >>confdefs.h <<_ACEOF
12225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12226_ACEOF
12227 found_opencl_header='yes'
12228 break;
12229else
12230 found_opencl_header='no'
12231fi
12232
12233done
12234
12235
12236fi
12237
12238 CPPFLAGS="$ax_save_CPPFLAGS"
cristy73bd4a52010-10-05 11:24:23 +000012239
12240 for ac_header in windows.h
12241do :
12242 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000012243if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000012244 cat >>confdefs.h <<_ACEOF
12245#define HAVE_WINDOWS_H 1
12246_ACEOF
12247
12248fi
12249
12250done
12251
12252
12253
12254
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
12256$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012257if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012258 $as_echo_n "(cached) " >&6
12259else
12260 ax_cv_check_cl_libcl=no
12261 case $host_cpu in
cristyfdc7d122013-08-17 20:46:45 +000012262 x86_64) ax_check_cl_libdir=lib64
12263 ax_check_cl_amd_libdir=x86_64
12264 ;;
12265 *) ax_check_cl_libdir=lib
12266 ax_check_cl_amd_libdir=x86
12267 ;;
cristy73bd4a52010-10-05 11:24:23 +000012268 esac
12269 ax_save_CPPFLAGS=$CPPFLAGS
12270 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
12271 ax_save_LIBS=$LIBS
12272 LIBS=""
12273 ax_check_libs="-lOpenCL -lCL -lclparser"
12274 for ax_lib in $ax_check_libs; do
12275 if test X$ax_compiler_ms = Xyes; then :
12276 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
12277else
12278 ax_try_lib=$ax_lib
12279fi
12280 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
12281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h. */
12283
12284 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12285 # include <windows.h>
12286 # endif
12287 # ifdef HAVE_CL_CL_H
12288 # include <CL/cl.h>
12289 # elif defined(HAVE_OPENCL_CL_H)
12290 # include <OpenCL/cl.h>
12291 # else
12292 # error no CL.h
12293 # endif
12294int
12295main ()
12296{
12297clCreateContextFromType(0,0,0,0,0)
12298 ;
12299 return 0;
12300}
12301_ACEOF
12302if ac_fn_c_try_link "$LINENO"; then :
12303 ax_cv_check_cl_libcl=$ax_try_lib; break
12304else
12305 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"
12306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h. */
12308
12309 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12310 # include <windows.h>
12311 # endif
12312 # ifdef HAVE_CL_CL_H
12313 # include <CL/cl.h>
12314 # elif defined(HAVE_OPENCL_CL_H)
12315 # include <OpenCL/cl.h>
12316 # else
12317 # error no CL.h
12318 # endif
12319int
12320main ()
12321{
12322clCreateContextFromType(0,0,0,0,0)
12323 ;
12324 return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
12328 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
12329else
cristy78c5a0c2010-12-04 20:00:59 +000012330 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 +000012331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332/* end confdefs.h. */
12333
12334 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12335 # include <windows.h>
12336 # endif
12337 # ifdef HAVE_CL_CL_H
12338 # include <CL/cl.h>
12339 # elif defined(HAVE_OPENCL_CL_H)
12340 # include <OpenCL/cl.h>
12341 # else
12342 # error no CL.h
12343 # endif
12344int
12345main ()
12346{
12347clCreateContextFromType(0,0,0,0,0)
12348 ;
12349 return 0;
12350}
12351_ACEOF
12352if ac_fn_c_try_link "$LINENO"; then :
12353 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
cristyfdc7d122013-08-17 20:46:45 +000012354else
12355 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"
12356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357/* end confdefs.h. */
12358
12359 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12360 # include <windows.h>
12361 # endif
12362 # ifdef HAVE_CL_CL_H
12363 # include <CL/cl.h>
12364 # elif defined(HAVE_OPENCL_CL_H)
12365 # include <OpenCL/cl.h>
12366 # else
12367 # error no CL.h
12368 # endif
12369int
12370main ()
12371{
12372clCreateContextFromType(0,0,0,0,0)
12373 ;
12374 return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_link "$LINENO"; then :
12378 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
12379
12380fi
12381rm -f core conftest.err conftest.$ac_objext \
12382 conftest$ac_exeext conftest.$ac_ext
12383
12384
cristy73bd4a52010-10-05 11:24:23 +000012385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387 conftest$ac_exeext conftest.$ac_ext
12388fi
12389rm -f core conftest.err conftest.$ac_objext \
12390 conftest$ac_exeext conftest.$ac_ext
12391fi
12392rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394 done
12395
cristyc3f8b8e2011-12-22 14:55:16 +000012396 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000012397 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000012398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h. */
12400
12401 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12402 # include <windows.h>
12403 # endif
12404 # ifdef HAVE_CL_CL_H
12405 # include <CL/cl.h>
12406 # elif defined(HAVE_OPENCL_CL_H)
12407 # include <OpenCL/cl.h>
12408 # else
12409 # error no CL.h
12410 # endif
12411int
12412main ()
12413{
12414clCreateContextFromType(0,0,0,0,0)
12415 ;
12416 return 0;
12417}
12418_ACEOF
12419if ac_fn_c_try_link "$LINENO"; then :
12420 ax_cv_check_cl_libcl=$LIBS
12421fi
12422rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424fi
12425
12426 LIBS=$ax_save_LIBS
12427 CPPFLAGS=$ax_save_CPPFLAGS
12428fi
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
12430$as_echo "$ax_cv_check_cl_libcl" >&6; }
12431
12432 if test "X$ax_cv_check_cl_libcl" = Xno; then :
12433 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
12434else
12435 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
12436$as_echo "#define _OPENCL 1" >>confdefs.h
12437
12438fi
12439 ac_ext=c
12440ac_cpp='$CPP $CPPFLAGS'
12441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12443ac_compiler_gnu=$ac_cv_c_compiler_gnu
12444
12445fi
12446
12447
12448
cristy0c832c62014-03-07 22:21:04 +000012449#remove static link on Linux
12450CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
12451
cristy73bd4a52010-10-05 11:24:23 +000012452
cristyc7083c12009-10-14 03:16:55 +000012453CFLAGS="$CL_CFLAGS $CFLAGS"
cristyfdc7d122013-08-17 20:46:45 +000012454CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
cristyc7083c12009-10-14 03:16:55 +000012455LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000012456
cristy391f1ce2010-09-09 17:23:28 +000012457if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000012458 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000012459 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
12460 fi
cristyfd9dcd42010-08-08 18:07:02 +000012461fi
cristy2e8b51d2009-10-17 18:26:15 +000012462
cristy3ed852e2009-09-05 21:47:34 +000012463########
12464#
12465# Check for large file support
12466#
12467########
12468# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000012469if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000012470 enableval=$enable_largefile;
12471fi
12472
12473if test "$enable_largefile" != no; then
12474
cristy8b350f62009-11-15 23:12:43 +000012475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000012476$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012477if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000012478 $as_echo_n "(cached) " >&6
12479else
12480 ac_cv_sys_largefile_CC=no
12481 if test "$GCC" != yes; then
12482 ac_save_CC=$CC
12483 while :; do
12484 # IRIX 6.2 and later do not support large files by default,
12485 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000012486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012487/* end confdefs.h. */
12488#include <sys/types.h>
12489 /* Check that off_t can represent 2**63 - 1 correctly.
12490 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12491 since some C++ compilers masquerading as C compilers
12492 incorrectly reject 9223372036854775807. */
12493#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12494 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12495 && LARGE_OFF_T % 2147483647 == 1)
12496 ? 1 : -1];
12497int
12498main ()
12499{
12500
12501 ;
12502 return 0;
12503}
12504_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012505 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012506 break
cristy3ed852e2009-09-05 21:47:34 +000012507fi
cristy3ed852e2009-09-05 21:47:34 +000012508rm -f core conftest.err conftest.$ac_objext
12509 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000012510 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012511 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000012512fi
cristy3ed852e2009-09-05 21:47:34 +000012513rm -f core conftest.err conftest.$ac_objext
12514 break
12515 done
12516 CC=$ac_save_CC
12517 rm -f conftest.$ac_ext
12518 fi
12519fi
cristy8b350f62009-11-15 23:12:43 +000012520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000012521$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12522 if test "$ac_cv_sys_largefile_CC" != no; then
12523 CC=$CC$ac_cv_sys_largefile_CC
12524 fi
12525
cristy8b350f62009-11-15 23:12:43 +000012526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000012527$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012528if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000012529 $as_echo_n "(cached) " >&6
12530else
12531 while :; do
cristy8b350f62009-11-15 23:12:43 +000012532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012533/* end confdefs.h. */
12534#include <sys/types.h>
12535 /* Check that off_t can represent 2**63 - 1 correctly.
12536 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12537 since some C++ compilers masquerading as C compilers
12538 incorrectly reject 9223372036854775807. */
12539#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12540 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12541 && LARGE_OFF_T % 2147483647 == 1)
12542 ? 1 : -1];
12543int
12544main ()
12545{
12546
12547 ;
12548 return 0;
12549}
12550_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012551if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012552 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000012553fi
cristy3ed852e2009-09-05 21:47:34 +000012554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000012555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012556/* end confdefs.h. */
12557#define _FILE_OFFSET_BITS 64
12558#include <sys/types.h>
12559 /* Check that off_t can represent 2**63 - 1 correctly.
12560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12561 since some C++ compilers masquerading as C compilers
12562 incorrectly reject 9223372036854775807. */
12563#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12565 && LARGE_OFF_T % 2147483647 == 1)
12566 ? 1 : -1];
12567int
12568main ()
12569{
12570
12571 ;
12572 return 0;
12573}
12574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012575if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012576 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000012577fi
cristy3ed852e2009-09-05 21:47:34 +000012578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579 ac_cv_sys_file_offset_bits=unknown
12580 break
12581done
12582fi
cristy8b350f62009-11-15 23:12:43 +000012583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000012584$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12585case $ac_cv_sys_file_offset_bits in #(
12586 no | unknown) ;;
12587 *)
12588cat >>confdefs.h <<_ACEOF
12589#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12590_ACEOF
12591;;
12592esac
12593rm -rf conftest*
12594 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000012595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000012596$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012597if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000012598 $as_echo_n "(cached) " >&6
12599else
12600 while :; do
cristy8b350f62009-11-15 23:12:43 +000012601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012602/* end confdefs.h. */
12603#include <sys/types.h>
12604 /* Check that off_t can represent 2**63 - 1 correctly.
12605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12606 since some C++ compilers masquerading as C compilers
12607 incorrectly reject 9223372036854775807. */
12608#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12610 && LARGE_OFF_T % 2147483647 == 1)
12611 ? 1 : -1];
12612int
12613main ()
12614{
12615
12616 ;
12617 return 0;
12618}
12619_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012620if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012621 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000012622fi
cristy3ed852e2009-09-05 21:47:34 +000012623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000012624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012625/* end confdefs.h. */
12626#define _LARGE_FILES 1
12627#include <sys/types.h>
12628 /* Check that off_t can represent 2**63 - 1 correctly.
12629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12630 since some C++ compilers masquerading as C compilers
12631 incorrectly reject 9223372036854775807. */
12632#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12634 && LARGE_OFF_T % 2147483647 == 1)
12635 ? 1 : -1];
12636int
12637main ()
12638{
12639
12640 ;
12641 return 0;
12642}
12643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012644if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012645 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000012646fi
cristy3ed852e2009-09-05 21:47:34 +000012647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 ac_cv_sys_large_files=unknown
12649 break
12650done
12651fi
cristy8b350f62009-11-15 23:12:43 +000012652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000012653$as_echo "$ac_cv_sys_large_files" >&6; }
12654case $ac_cv_sys_large_files in #(
12655 no | unknown) ;;
12656 *)
12657cat >>confdefs.h <<_ACEOF
12658#define _LARGE_FILES $ac_cv_sys_large_files
12659_ACEOF
12660;;
12661esac
12662rm -rf conftest*
12663 fi
cristy14fefe52012-05-21 00:59:18 +000012664
12665
cristy3ed852e2009-09-05 21:47:34 +000012666fi
12667
cristy8b350f62009-11-15 23:12:43 +000012668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000012669$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012670if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000012671 $as_echo_n "(cached) " >&6
12672else
12673 while :; do
cristy8b350f62009-11-15 23:12:43 +000012674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012675/* end confdefs.h. */
12676#include <sys/types.h> /* for off_t */
12677 #include <stdio.h>
12678int
12679main ()
12680{
12681int (*fp) (FILE *, off_t, int) = fseeko;
12682 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12683 ;
12684 return 0;
12685}
12686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012687if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012688 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000012689fi
cristy8b350f62009-11-15 23:12:43 +000012690rm -f core conftest.err conftest.$ac_objext \
12691 conftest$ac_exeext conftest.$ac_ext
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012693/* end confdefs.h. */
12694#define _LARGEFILE_SOURCE 1
12695#include <sys/types.h> /* for off_t */
12696 #include <stdio.h>
12697int
12698main ()
12699{
12700int (*fp) (FILE *, off_t, int) = fseeko;
12701 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12702 ;
12703 return 0;
12704}
12705_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012706if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000012707 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000012708fi
cristy8b350f62009-11-15 23:12:43 +000012709rm -f core conftest.err conftest.$ac_objext \
12710 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012711 ac_cv_sys_largefile_source=unknown
12712 break
12713done
12714fi
cristy8b350f62009-11-15 23:12:43 +000012715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000012716$as_echo "$ac_cv_sys_largefile_source" >&6; }
12717case $ac_cv_sys_largefile_source in #(
12718 no | unknown) ;;
12719 *)
12720cat >>confdefs.h <<_ACEOF
12721#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12722_ACEOF
12723;;
12724esac
12725rm -rf conftest*
12726
12727# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12728# in glibc 2.1.3, but that breaks too many other things.
12729# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12730if test $ac_cv_sys_largefile_source != unknown; then
12731
cristy8b350f62009-11-15 23:12:43 +000012732$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012733
12734fi
12735
12736LFS_CPPFLAGS=''
12737if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000012738 case $ac_cv_sys_file_offset_bits in
12739 no)
12740 # nothing to do here as the host supports LFS fine
12741 ;;
12742 unknown)
cristy8b350f62009-11-15 23:12:43 +000012743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000012744$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000012745 if test "$cross_compiling" = yes; then :
12746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000012747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000012748as_fn_error $? "cannot run test program while cross compiling
12749See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000012750else
cristy8b350f62009-11-15 23:12:43 +000012751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000012753#include <unistd.h>
12754 main () {
12755 exit(!(sizeof(off_t) == 8));
12756 }
cristyda16f162011-02-19 23:52:17 +000012757int
12758main ()
12759{
12760
12761 ;
12762 return 0;
12763}
cristy3ed852e2009-09-05 21:47:34 +000012764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000012765if ac_fn_c_try_run "$LINENO"; then :
12766 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000012767
cristyad38abe2012-12-23 23:03:21 +000012768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000012770else
cristyad38abe2012-12-23 23:03:21 +000012771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000012773fi
cristy8b350f62009-11-15 23:12:43 +000012774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12775 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000012776fi
12777
cristyc1e0cc12011-09-21 16:41:16 +000012778 ;;
12779 *)
12780 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12781 ;;
12782 esac
cristy3ed852e2009-09-05 21:47:34 +000012783 if test "$ac_cv_sys_large_files" != 'no'; then
12784 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
12785 fi
12786 if test "$ac_cv_sys_largefile_source" != 'no'; then
12787 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
12788 fi
12789fi
12790
12791
cristy3ed852e2009-09-05 21:47:34 +000012792# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000012793enable_dlopen=yes
12794
12795
12796
12797case `pwd` in
12798 *\ * | *\ *)
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12800$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12801esac
12802
12803
12804
Cristy15f22012015-11-14 17:51:30 -050012805macro_version='2.4.6'
12806macro_revision='2.4.6'
cristy73bd4a52010-10-05 11:24:23 +000012807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
Cristy15f22012015-11-14 17:51:30 -050012820ltmain=$ac_aux_dir/ltmain.sh
cristy73bd4a52010-10-05 11:24:23 +000012821
cristy0c60a692010-11-04 01:09:47 +000012822# Backslashify metacharacters that are still active within
12823# double-quoted strings.
12824sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12825
12826# Same as above, but do not quote variable references.
12827double_quote_subst='s/\(["`\\]\)/\\\1/g'
12828
12829# Sed substitution to delay expansion of an escaped shell variable in a
12830# double_quote_subst'ed string.
12831delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12832
12833# Sed substitution to delay expansion of an escaped single quote.
12834delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12835
12836# Sed substitution to avoid accidental globbing in evaled expressions
12837no_glob_subst='s/\*/\\\*/g'
12838
cristy73bd4a52010-10-05 11:24:23 +000012839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12840$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012841if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012842 $as_echo_n "(cached) " >&6
12843else
12844 if test -n "$NM"; then
12845 # Let the user override the test.
Cristy15f22012015-11-14 17:51:30 -050012846 lt_cv_path_NM=$NM
cristy73bd4a52010-10-05 11:24:23 +000012847else
Cristy15f22012015-11-14 17:51:30 -050012848 lt_nm_to_check=${ac_tool_prefix}nm
cristy73bd4a52010-10-05 11:24:23 +000012849 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12850 lt_nm_to_check="$lt_nm_to_check nm"
12851 fi
12852 for lt_tmp_nm in $lt_nm_to_check; do
Cristy15f22012015-11-14 17:51:30 -050012853 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000012854 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
Cristy15f22012015-11-14 17:51:30 -050012855 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000012856 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050012857 tmp_nm=$ac_dir/$lt_tmp_nm
12858 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
cristy73bd4a52010-10-05 11:24:23 +000012859 # Check to see if the nm accepts a BSD-compat flag.
Cristy15f22012015-11-14 17:51:30 -050012860 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
cristy73bd4a52010-10-05 11:24:23 +000012861 # nm: unknown option "B" ignored
12862 # Tru64's nm complains that /dev/null is an invalid object file
Cristy15f22012015-11-14 17:51:30 -050012863 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12864 case $build_os in
12865 mingw*) lt_bad_file=conftest.nm/nofile ;;
12866 *) lt_bad_file=/dev/null ;;
12867 esac
12868 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
12869 *$lt_bad_file* | *'Invalid file or object type'*)
cristy73bd4a52010-10-05 11:24:23 +000012870 lt_cv_path_NM="$tmp_nm -B"
Cristy15f22012015-11-14 17:51:30 -050012871 break 2
cristy73bd4a52010-10-05 11:24:23 +000012872 ;;
12873 *)
12874 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12875 */dev/null*)
12876 lt_cv_path_NM="$tmp_nm -p"
Cristy15f22012015-11-14 17:51:30 -050012877 break 2
cristy73bd4a52010-10-05 11:24:23 +000012878 ;;
12879 *)
12880 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12881 continue # so that we can try to find one that supports BSD flags
12882 ;;
12883 esac
12884 ;;
12885 esac
12886 fi
12887 done
Cristy15f22012015-11-14 17:51:30 -050012888 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000012889 done
12890 : ${lt_cv_path_NM=no}
12891fi
12892fi
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12894$as_echo "$lt_cv_path_NM" >&6; }
Cristy15f22012015-11-14 17:51:30 -050012895if test no != "$lt_cv_path_NM"; then
12896 NM=$lt_cv_path_NM
cristy73bd4a52010-10-05 11:24:23 +000012897else
12898 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000012899 if test -n "$DUMPBIN"; then :
12900 # Let the user override the test.
12901 else
12902 if test -n "$ac_tool_prefix"; then
12903 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000012904 do
12905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012909if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012910 $as_echo_n "(cached) " >&6
12911else
12912 if test -n "$DUMPBIN"; then
12913 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12914else
12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918 IFS=$as_save_IFS
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012922 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924 break 2
12925 fi
12926done
12927 done
12928IFS=$as_save_IFS
12929
12930fi
12931fi
12932DUMPBIN=$ac_cv_prog_DUMPBIN
12933if test -n "$DUMPBIN"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12935$as_echo "$DUMPBIN" >&6; }
12936else
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941
12942 test -n "$DUMPBIN" && break
12943 done
12944fi
12945if test -z "$DUMPBIN"; then
12946 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000012947 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000012948do
12949 # Extract the first word of "$ac_prog", so it can be a program name with args.
12950set dummy $ac_prog; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012953if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012954 $as_echo_n "(cached) " >&6
12955else
12956 if test -n "$ac_ct_DUMPBIN"; then
12957 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12958else
12959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962 IFS=$as_save_IFS
12963 test -z "$as_dir" && as_dir=.
12964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012966 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968 break 2
12969 fi
12970done
12971 done
12972IFS=$as_save_IFS
12973
12974fi
12975fi
12976ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12977if test -n "$ac_ct_DUMPBIN"; then
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12979$as_echo "$ac_ct_DUMPBIN" >&6; }
12980else
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983fi
12984
12985
12986 test -n "$ac_ct_DUMPBIN" && break
12987done
12988
12989 if test "x$ac_ct_DUMPBIN" = x; then
12990 DUMPBIN=":"
12991 else
12992 case $cross_compiling:$ac_tool_warned in
12993yes:)
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12996ac_tool_warned=yes ;;
12997esac
12998 DUMPBIN=$ac_ct_DUMPBIN
12999 fi
13000fi
13001
Cristy15f22012015-11-14 17:51:30 -050013002 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
cristy0c60a692010-11-04 01:09:47 +000013003 *COFF*)
Cristy15f22012015-11-14 17:51:30 -050013004 DUMPBIN="$DUMPBIN -symbols -headers"
cristy0c60a692010-11-04 01:09:47 +000013005 ;;
13006 *)
13007 DUMPBIN=:
13008 ;;
13009 esac
13010 fi
cristy73bd4a52010-10-05 11:24:23 +000013011
Cristy15f22012015-11-14 17:51:30 -050013012 if test : != "$DUMPBIN"; then
13013 NM=$DUMPBIN
cristy73bd4a52010-10-05 11:24:23 +000013014 fi
13015fi
13016test -z "$NM" && NM=nm
13017
13018
13019
13020
13021
13022
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13024$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013025if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013026 $as_echo_n "(cached) " >&6
13027else
13028 lt_cv_nm_interface="BSD nm"
13029 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000013030 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013031 (eval "$ac_compile" 2>conftest.err)
13032 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013033 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013034 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13035 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013036 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013037 cat conftest.out >&5
13038 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13039 lt_cv_nm_interface="MS dumpbin"
13040 fi
13041 rm -f conftest*
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13044$as_echo "$lt_cv_nm_interface" >&6; }
13045
13046# find the maximum length of command line arguments
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13048$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013049if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013050 $as_echo_n "(cached) " >&6
13051else
13052 i=0
Cristy15f22012015-11-14 17:51:30 -050013053 teststring=ABCD
cristy73bd4a52010-10-05 11:24:23 +000013054
13055 case $build_os in
13056 msdosdjgpp*)
13057 # On DJGPP, this test can blow up pretty badly due to problems in libc
13058 # (any single argument exceeding 2000 bytes causes a buffer overrun
13059 # during glob expansion). Even if it were fixed, the result of this
13060 # check would be larger than it should be.
13061 lt_cv_sys_max_cmd_len=12288; # 12K is about right
13062 ;;
13063
13064 gnu*)
13065 # Under GNU Hurd, this test is not required because there is
13066 # no limit to the length of command line arguments.
13067 # Libtool will interpret -1 as no limit whatsoever
13068 lt_cv_sys_max_cmd_len=-1;
13069 ;;
13070
13071 cygwin* | mingw* | cegcc*)
13072 # On Win9x/ME, this test blows up -- it succeeds, but takes
13073 # about 5 minutes as the teststring grows exponentially.
13074 # Worse, since 9x/ME are not pre-emptively multitasking,
13075 # you end up with a "frozen" computer, even though with patience
13076 # the test eventually succeeds (with a max line length of 256k).
13077 # Instead, let's just punt: use the minimum linelength reported by
13078 # all of the supported platforms: 8192 (on NT/2K/XP).
13079 lt_cv_sys_max_cmd_len=8192;
13080 ;;
13081
cristy0c60a692010-11-04 01:09:47 +000013082 mint*)
13083 # On MiNT this can take a long time and run out of memory.
13084 lt_cv_sys_max_cmd_len=8192;
13085 ;;
13086
cristy73bd4a52010-10-05 11:24:23 +000013087 amigaos*)
13088 # On AmigaOS with pdksh, this test takes hours, literally.
13089 # So we just punt and use a minimum line length of 8192.
13090 lt_cv_sys_max_cmd_len=8192;
13091 ;;
13092
Cristy15f22012015-11-14 17:51:30 -050013093 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
cristy73bd4a52010-10-05 11:24:23 +000013094 # This has been around since 386BSD, at least. Likely further.
13095 if test -x /sbin/sysctl; then
13096 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13097 elif test -x /usr/sbin/sysctl; then
13098 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13099 else
13100 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
13101 fi
13102 # And add a safety zone
13103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13104 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13105 ;;
13106
13107 interix*)
13108 # We know the value 262144 and hardcode it with a safety zone (like BSD)
13109 lt_cv_sys_max_cmd_len=196608
13110 ;;
13111
cristy99bd5232011-12-07 14:38:20 +000013112 os2*)
13113 # The test takes a long time on OS/2.
13114 lt_cv_sys_max_cmd_len=8192
13115 ;;
13116
cristy73bd4a52010-10-05 11:24:23 +000013117 osf*)
13118 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13119 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13120 # nice to cause kernel panics so lets avoid the loop below.
13121 # First set a reasonable default.
13122 lt_cv_sys_max_cmd_len=16384
13123 #
13124 if test -x /sbin/sysconfig; then
13125 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13126 *1*) lt_cv_sys_max_cmd_len=-1 ;;
13127 esac
13128 fi
13129 ;;
13130 sco3.2v5*)
13131 lt_cv_sys_max_cmd_len=102400
13132 ;;
13133 sysv5* | sco5v6* | sysv4.2uw2*)
13134 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13135 if test -n "$kargmax"; then
13136 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
13137 else
13138 lt_cv_sys_max_cmd_len=32768
13139 fi
13140 ;;
13141 *)
13142 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
Cristy15f22012015-11-14 17:51:30 -050013143 if test -n "$lt_cv_sys_max_cmd_len" && \
13144 test undefined != "$lt_cv_sys_max_cmd_len"; then
cristy73bd4a52010-10-05 11:24:23 +000013145 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13146 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13147 else
13148 # Make teststring a little bigger before we do anything with it.
13149 # a 1K string should be a reasonable start.
Cristy15f22012015-11-14 17:51:30 -050013150 for i in 1 2 3 4 5 6 7 8; do
cristy73bd4a52010-10-05 11:24:23 +000013151 teststring=$teststring$teststring
13152 done
13153 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13154 # If test is not a shell built-in, we'll probably end up computing a
13155 # maximum length that is only half of the actual maximum length, but
13156 # we can't tell.
Cristy15f22012015-11-14 17:51:30 -050013157 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000013158 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Cristy15f22012015-11-14 17:51:30 -050013159 test 17 != "$i" # 1/2 MB should be enough
cristy73bd4a52010-10-05 11:24:23 +000013160 do
13161 i=`expr $i + 1`
13162 teststring=$teststring$teststring
13163 done
13164 # Only check the string length outside the loop.
13165 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13166 teststring=
13167 # Add a significant safety factor because C++ compilers can tack on
13168 # massive amounts of additional arguments before passing them to the
13169 # linker. It appears as though 1/2 is a usable value.
13170 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13171 fi
13172 ;;
13173 esac
13174
13175fi
13176
Cristy15f22012015-11-14 17:51:30 -050013177if test -n "$lt_cv_sys_max_cmd_len"; then
cristy73bd4a52010-10-05 11:24:23 +000013178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13179$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13180else
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13182$as_echo "none" >&6; }
13183fi
13184max_cmd_len=$lt_cv_sys_max_cmd_len
13185
13186
13187
13188
13189
13190
13191: ${CP="cp -f"}
13192: ${MV="mv -f"}
13193: ${RM="rm -f"}
13194
cristy73bd4a52010-10-05 11:24:23 +000013195if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13196 lt_unset=unset
13197else
13198 lt_unset=false
13199fi
13200
13201
13202
13203
13204
13205# test EBCDIC or ASCII
13206case `echo X|tr X '\101'` in
13207 A) # ASCII based system
13208 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13209 lt_SP2NL='tr \040 \012'
13210 lt_NL2SP='tr \015\012 \040\040'
13211 ;;
13212 *) # EBCDIC based system
13213 lt_SP2NL='tr \100 \n'
13214 lt_NL2SP='tr \r\n \100\100'
13215 ;;
13216esac
13217
13218
13219
13220
13221
13222
13223
13224
13225
cristyda16f162011-02-19 23:52:17 +000013226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13227$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
13228if ${lt_cv_to_host_file_cmd+:} false; then :
13229 $as_echo_n "(cached) " >&6
13230else
13231 case $host in
13232 *-*-mingw* )
13233 case $build in
13234 *-*-mingw* ) # actually msys
13235 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13236 ;;
13237 *-*-cygwin* )
13238 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13239 ;;
13240 * ) # otherwise, assume *nix
13241 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13242 ;;
13243 esac
13244 ;;
13245 *-*-cygwin* )
13246 case $build in
13247 *-*-mingw* ) # actually msys
13248 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13249 ;;
13250 *-*-cygwin* )
13251 lt_cv_to_host_file_cmd=func_convert_file_noop
13252 ;;
13253 * ) # otherwise, assume *nix
13254 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13255 ;;
13256 esac
13257 ;;
13258 * ) # unhandled hosts (and "normal" native builds)
13259 lt_cv_to_host_file_cmd=func_convert_file_noop
13260 ;;
13261esac
13262
13263fi
13264
13265to_host_file_cmd=$lt_cv_to_host_file_cmd
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13267$as_echo "$lt_cv_to_host_file_cmd" >&6; }
13268
13269
13270
13271
13272
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13274$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
13275if ${lt_cv_to_tool_file_cmd+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277else
13278 #assume ordinary cross tools, or native build.
13279lt_cv_to_tool_file_cmd=func_convert_file_noop
13280case $host in
13281 *-*-mingw* )
13282 case $build in
13283 *-*-mingw* ) # actually msys
13284 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13285 ;;
13286 esac
13287 ;;
13288esac
13289
13290fi
13291
13292to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13294$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
13295
13296
13297
13298
13299
cristy73bd4a52010-10-05 11:24:23 +000013300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13301$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013302if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013303 $as_echo_n "(cached) " >&6
13304else
13305 lt_cv_ld_reload_flag='-r'
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13308$as_echo "$lt_cv_ld_reload_flag" >&6; }
13309reload_flag=$lt_cv_ld_reload_flag
13310case $reload_flag in
13311"" | " "*) ;;
13312*) reload_flag=" $reload_flag" ;;
13313esac
13314reload_cmds='$LD$reload_flag -o $output$reload_objs'
13315case $host_os in
cristyda16f162011-02-19 23:52:17 +000013316 cygwin* | mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050013317 if test yes != "$GCC"; then
cristyda16f162011-02-19 23:52:17 +000013318 reload_cmds=false
13319 fi
13320 ;;
cristy73bd4a52010-10-05 11:24:23 +000013321 darwin*)
Cristy15f22012015-11-14 17:51:30 -050013322 if test yes = "$GCC"; then
13323 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
cristy73bd4a52010-10-05 11:24:23 +000013324 else
13325 reload_cmds='$LD$reload_flag -o $output$reload_objs'
13326 fi
13327 ;;
13328esac
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338if test -n "$ac_tool_prefix"; then
13339 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13340set dummy ${ac_tool_prefix}objdump; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013343if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013344 $as_echo_n "(cached) " >&6
13345else
13346 if test -n "$OBJDUMP"; then
13347 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352 IFS=$as_save_IFS
13353 test -z "$as_dir" && as_dir=.
13354 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013356 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358 break 2
13359 fi
13360done
13361 done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366OBJDUMP=$ac_cv_prog_OBJDUMP
13367if test -n "$OBJDUMP"; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13369$as_echo "$OBJDUMP" >&6; }
13370else
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375
13376fi
13377if test -z "$ac_cv_prog_OBJDUMP"; then
13378 ac_ct_OBJDUMP=$OBJDUMP
13379 # Extract the first word of "objdump", so it can be a program name with args.
13380set dummy objdump; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013383if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013384 $as_echo_n "(cached) " >&6
13385else
13386 if test -n "$ac_ct_OBJDUMP"; then
13387 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392 IFS=$as_save_IFS
13393 test -z "$as_dir" && as_dir=.
13394 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013396 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398 break 2
13399 fi
13400done
13401 done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13407if test -n "$ac_ct_OBJDUMP"; then
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13409$as_echo "$ac_ct_OBJDUMP" >&6; }
13410else
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415 if test "x$ac_ct_OBJDUMP" = x; then
13416 OBJDUMP="false"
13417 else
13418 case $cross_compiling:$ac_tool_warned in
13419yes:)
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422ac_tool_warned=yes ;;
13423esac
13424 OBJDUMP=$ac_ct_OBJDUMP
13425 fi
13426else
13427 OBJDUMP="$ac_cv_prog_OBJDUMP"
13428fi
13429
13430test -z "$OBJDUMP" && OBJDUMP=objdump
13431
13432
13433
13434
13435
13436
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13438$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013439if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013440 $as_echo_n "(cached) " >&6
13441else
13442 lt_cv_file_magic_cmd='$MAGIC_CMD'
13443lt_cv_file_magic_test_file=
13444lt_cv_deplibs_check_method='unknown'
13445# Need to set the preceding variable on all platforms that support
13446# interlibrary dependencies.
13447# 'none' -- dependencies not supported.
Cristy15f22012015-11-14 17:51:30 -050013448# 'unknown' -- same as none, but documents that we really don't know.
cristy73bd4a52010-10-05 11:24:23 +000013449# 'pass_all' -- all dependencies passed with no checks.
13450# 'test_compile' -- check by making test program.
13451# 'file_magic [[regex]]' -- check by looking for files in library path
Cristy15f22012015-11-14 17:51:30 -050013452# that responds to the $file_magic_cmd with a given extended regex.
13453# If you have 'file' or equivalent on your system and you're not sure
13454# whether 'pass_all' will *always* work, you probably want this one.
cristy73bd4a52010-10-05 11:24:23 +000013455
13456case $host_os in
13457aix[4-9]*)
13458 lt_cv_deplibs_check_method=pass_all
13459 ;;
13460
13461beos*)
13462 lt_cv_deplibs_check_method=pass_all
13463 ;;
13464
13465bsdi[45]*)
13466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13467 lt_cv_file_magic_cmd='/usr/bin/file -L'
13468 lt_cv_file_magic_test_file=/shlib/libc.so
13469 ;;
13470
13471cygwin*)
13472 # func_win32_libid is a shell function defined in ltmain.sh
13473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13474 lt_cv_file_magic_cmd='func_win32_libid'
13475 ;;
13476
13477mingw* | pw32*)
13478 # Base MSYS/MinGW do not provide the 'file' command needed by
13479 # func_win32_libid shell function, so use a weaker test based on 'objdump',
13480 # unless we find 'file', for example because we are cross-compiling.
Cristy15f22012015-11-14 17:51:30 -050013481 if ( file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000013482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13483 lt_cv_file_magic_cmd='func_win32_libid'
13484 else
cristy0c60a692010-11-04 01:09:47 +000013485 # Keep this pattern in sync with the one in func_win32_libid.
13486 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 +000013487 lt_cv_file_magic_cmd='$OBJDUMP -f'
13488 fi
13489 ;;
13490
cristy0c60a692010-11-04 01:09:47 +000013491cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013492 # use the weaker test based on 'objdump'. See mingw*.
13493 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13494 lt_cv_file_magic_cmd='$OBJDUMP -f'
13495 ;;
13496
13497darwin* | rhapsody*)
13498 lt_cv_deplibs_check_method=pass_all
13499 ;;
13500
13501freebsd* | dragonfly*)
13502 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13503 case $host_cpu in
13504 i*86 )
13505 # Not sure whether the presence of OpenBSD here was a mistake.
13506 # Let's accept both of them until this is cleared up.
13507 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13508 lt_cv_file_magic_cmd=/usr/bin/file
13509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13510 ;;
13511 esac
13512 else
13513 lt_cv_deplibs_check_method=pass_all
13514 fi
13515 ;;
13516
cristy0c60a692010-11-04 01:09:47 +000013517haiku*)
13518 lt_cv_deplibs_check_method=pass_all
13519 ;;
13520
cristy73bd4a52010-10-05 11:24:23 +000013521hpux10.20* | hpux11*)
13522 lt_cv_file_magic_cmd=/usr/bin/file
13523 case $host_cpu in
13524 ia64*)
13525 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13526 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13527 ;;
13528 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000013529 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 +000013530 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13531 ;;
13532 *)
cristy0c60a692010-11-04 01:09:47 +000013533 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 +000013534 lt_cv_file_magic_test_file=/usr/lib/libc.sl
13535 ;;
13536 esac
13537 ;;
13538
13539interix[3-9]*)
13540 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13541 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13542 ;;
13543
13544irix5* | irix6* | nonstopux*)
13545 case $LD in
13546 *-32|*"-32 ") libmagic=32-bit;;
13547 *-n32|*"-n32 ") libmagic=N32;;
13548 *-64|*"-64 ") libmagic=64-bit;;
13549 *) libmagic=never-match;;
13550 esac
13551 lt_cv_deplibs_check_method=pass_all
13552 ;;
13553
cristy99bd5232011-12-07 14:38:20 +000013554# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050013555linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000013556 lt_cv_deplibs_check_method=pass_all
13557 ;;
13558
13559netbsd*)
13560 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13561 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13562 else
13563 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13564 fi
13565 ;;
13566
13567newos6*)
13568 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13569 lt_cv_file_magic_cmd=/usr/bin/file
13570 lt_cv_file_magic_test_file=/usr/lib/libnls.so
13571 ;;
13572
13573*nto* | *qnx*)
13574 lt_cv_deplibs_check_method=pass_all
13575 ;;
13576
Cristy15f22012015-11-14 17:51:30 -050013577openbsd* | bitrig*)
13578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cristy73bd4a52010-10-05 11:24:23 +000013579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13580 else
13581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13582 fi
13583 ;;
13584
13585osf3* | osf4* | osf5*)
13586 lt_cv_deplibs_check_method=pass_all
13587 ;;
13588
13589rdos*)
13590 lt_cv_deplibs_check_method=pass_all
13591 ;;
13592
13593solaris*)
13594 lt_cv_deplibs_check_method=pass_all
13595 ;;
13596
13597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13598 lt_cv_deplibs_check_method=pass_all
13599 ;;
13600
13601sysv4 | sysv4.3*)
13602 case $host_vendor in
13603 motorola)
13604 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]'
13605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13606 ;;
13607 ncr)
13608 lt_cv_deplibs_check_method=pass_all
13609 ;;
13610 sequent)
13611 lt_cv_file_magic_cmd='/bin/file'
13612 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13613 ;;
13614 sni)
13615 lt_cv_file_magic_cmd='/bin/file'
13616 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13617 lt_cv_file_magic_test_file=/lib/libc.so
13618 ;;
13619 siemens)
13620 lt_cv_deplibs_check_method=pass_all
13621 ;;
13622 pc)
13623 lt_cv_deplibs_check_method=pass_all
13624 ;;
13625 esac
13626 ;;
13627
13628tpf*)
13629 lt_cv_deplibs_check_method=pass_all
13630 ;;
Cristy15f22012015-11-14 17:51:30 -050013631os2*)
13632 lt_cv_deplibs_check_method=pass_all
13633 ;;
cristy73bd4a52010-10-05 11:24:23 +000013634esac
13635
13636fi
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13638$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000013639
13640file_magic_glob=
13641want_nocaseglob=no
13642if test "$build" = "$host"; then
13643 case $host_os in
13644 mingw* | pw32*)
13645 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13646 want_nocaseglob=yes
13647 else
13648 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13649 fi
13650 ;;
13651 esac
13652fi
13653
cristy73bd4a52010-10-05 11:24:23 +000013654file_magic_cmd=$lt_cv_file_magic_cmd
13655deplibs_check_method=$lt_cv_deplibs_check_method
13656test -z "$deplibs_check_method" && deplibs_check_method=unknown
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
cristyda16f162011-02-19 23:52:17 +000013669
13670
13671
13672
13673
13674
13675
13676
13677
13678
cristy73bd4a52010-10-05 11:24:23 +000013679if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000013680 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13681set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000013682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013684if ${ac_cv_prog_DLLTOOL+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686else
13687 if test -n "$DLLTOOL"; then
13688 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13689else
13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691for as_dir in $PATH
13692do
13693 IFS=$as_save_IFS
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013697 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13699 break 2
13700 fi
13701done
13702 done
13703IFS=$as_save_IFS
13704
13705fi
13706fi
13707DLLTOOL=$ac_cv_prog_DLLTOOL
13708if test -n "$DLLTOOL"; then
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13710$as_echo "$DLLTOOL" >&6; }
13711else
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713$as_echo "no" >&6; }
13714fi
13715
13716
13717fi
13718if test -z "$ac_cv_prog_DLLTOOL"; then
13719 ac_ct_DLLTOOL=$DLLTOOL
13720 # Extract the first word of "dlltool", so it can be a program name with args.
13721set dummy dlltool; ac_word=$2
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723$as_echo_n "checking for $ac_word... " >&6; }
13724if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726else
13727 if test -n "$ac_ct_DLLTOOL"; then
13728 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13729else
13730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731for as_dir in $PATH
13732do
13733 IFS=$as_save_IFS
13734 test -z "$as_dir" && as_dir=.
13735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013737 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13739 break 2
13740 fi
13741done
13742 done
13743IFS=$as_save_IFS
13744
13745fi
13746fi
13747ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13748if test -n "$ac_ct_DLLTOOL"; then
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13750$as_echo "$ac_ct_DLLTOOL" >&6; }
13751else
13752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753$as_echo "no" >&6; }
13754fi
13755
13756 if test "x$ac_ct_DLLTOOL" = x; then
13757 DLLTOOL="false"
13758 else
13759 case $cross_compiling:$ac_tool_warned in
13760yes:)
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13763ac_tool_warned=yes ;;
13764esac
13765 DLLTOOL=$ac_ct_DLLTOOL
13766 fi
13767else
13768 DLLTOOL="$ac_cv_prog_DLLTOOL"
13769fi
13770
13771test -z "$DLLTOOL" && DLLTOOL=dlltool
13772
13773
13774
13775
13776
13777
13778
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13780$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13781if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13782 $as_echo_n "(cached) " >&6
13783else
13784 lt_cv_sharedlib_from_linklib_cmd='unknown'
13785
13786case $host_os in
13787cygwin* | mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050013788 # two different shell functions defined in ltmain.sh;
13789 # decide which one to use based on capabilities of $DLLTOOL
cristyda16f162011-02-19 23:52:17 +000013790 case `$DLLTOOL --help 2>&1` in
13791 *--identify-strict*)
13792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13793 ;;
13794 *)
13795 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13796 ;;
13797 esac
13798 ;;
13799*)
13800 # fallback: assume linklib IS sharedlib
Cristy15f22012015-11-14 17:51:30 -050013801 lt_cv_sharedlib_from_linklib_cmd=$ECHO
cristyda16f162011-02-19 23:52:17 +000013802 ;;
13803esac
13804
13805fi
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13807$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13808sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13809test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13810
13811
13812
13813
13814
13815
13816
13817if test -n "$ac_tool_prefix"; then
13818 for ac_prog in ar
13819 do
13820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823$as_echo_n "checking for $ac_word... " >&6; }
13824if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013825 $as_echo_n "(cached) " >&6
13826else
13827 if test -n "$AR"; then
13828 ac_cv_prog_AR="$AR" # Let the user override the test.
13829else
13830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831for as_dir in $PATH
13832do
13833 IFS=$as_save_IFS
13834 test -z "$as_dir" && as_dir=.
13835 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013837 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000013838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839 break 2
13840 fi
13841done
13842 done
13843IFS=$as_save_IFS
13844
13845fi
13846fi
13847AR=$ac_cv_prog_AR
13848if test -n "$AR"; then
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13850$as_echo "$AR" >&6; }
13851else
13852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853$as_echo "no" >&6; }
13854fi
13855
13856
cristyda16f162011-02-19 23:52:17 +000013857 test -n "$AR" && break
13858 done
cristy73bd4a52010-10-05 11:24:23 +000013859fi
cristyda16f162011-02-19 23:52:17 +000013860if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000013861 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000013862 for ac_prog in ar
13863do
13864 # Extract the first word of "$ac_prog", so it can be a program name with args.
13865set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000013866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013868if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013869 $as_echo_n "(cached) " >&6
13870else
13871 if test -n "$ac_ct_AR"; then
13872 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13873else
13874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875for as_dir in $PATH
13876do
13877 IFS=$as_save_IFS
13878 test -z "$as_dir" && as_dir=.
13879 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000013881 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000013882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883 break 2
13884 fi
13885done
13886 done
13887IFS=$as_save_IFS
13888
13889fi
13890fi
13891ac_ct_AR=$ac_cv_prog_ac_ct_AR
13892if test -n "$ac_ct_AR"; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13894$as_echo "$ac_ct_AR" >&6; }
13895else
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897$as_echo "no" >&6; }
13898fi
13899
cristyda16f162011-02-19 23:52:17 +000013900
13901 test -n "$ac_ct_AR" && break
13902done
13903
cristy73bd4a52010-10-05 11:24:23 +000013904 if test "x$ac_ct_AR" = x; then
13905 AR="false"
13906 else
13907 case $cross_compiling:$ac_tool_warned in
13908yes:)
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13911ac_tool_warned=yes ;;
13912esac
13913 AR=$ac_ct_AR
13914 fi
cristy73bd4a52010-10-05 11:24:23 +000013915fi
13916
cristyda16f162011-02-19 23:52:17 +000013917: ${AR=ar}
13918: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000013919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
cristyda16f162011-02-19 23:52:17 +000013930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13931$as_echo_n "checking for archiver @FILE support... " >&6; }
13932if ${lt_cv_ar_at_file+:} false; then :
13933 $as_echo_n "(cached) " >&6
13934else
13935 lt_cv_ar_at_file=no
13936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h. */
13938
13939int
13940main ()
13941{
13942
13943 ;
13944 return 0;
13945}
13946_ACEOF
13947if ac_fn_c_try_compile "$LINENO"; then :
13948 echo conftest.$ac_objext > conftest.lst
13949 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13951 (eval $lt_ar_try) 2>&5
13952 ac_status=$?
13953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954 test $ac_status = 0; }
Cristy15f22012015-11-14 17:51:30 -050013955 if test 0 -eq "$ac_status"; then
cristyda16f162011-02-19 23:52:17 +000013956 # Ensure the archiver fails upon bogus file names.
13957 rm -f conftest.$ac_objext libconftest.a
13958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13959 (eval $lt_ar_try) 2>&5
13960 ac_status=$?
13961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962 test $ac_status = 0; }
Cristy15f22012015-11-14 17:51:30 -050013963 if test 0 -ne "$ac_status"; then
cristyda16f162011-02-19 23:52:17 +000013964 lt_cv_ar_at_file=@
13965 fi
13966 fi
13967 rm -f conftest.* libconftest.a
13968
13969fi
13970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13974$as_echo "$lt_cv_ar_at_file" >&6; }
13975
Cristy15f22012015-11-14 17:51:30 -050013976if test no = "$lt_cv_ar_at_file"; then
cristyda16f162011-02-19 23:52:17 +000013977 archiver_list_spec=
13978else
13979 archiver_list_spec=$lt_cv_ar_at_file
13980fi
13981
13982
13983
13984
13985
13986
13987
cristy73bd4a52010-10-05 11:24:23 +000013988if test -n "$ac_tool_prefix"; then
13989 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13990set dummy ${ac_tool_prefix}strip; 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_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013994 $as_echo_n "(cached) " >&6
13995else
13996 if test -n "$STRIP"; then
13997 ac_cv_prog_STRIP="$STRIP" # 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_STRIP="${ac_tool_prefix}strip"
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
14016STRIP=$ac_cv_prog_STRIP
14017if test -n "$STRIP"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14019$as_echo "$STRIP" >&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_STRIP"; then
14028 ac_ct_STRIP=$STRIP
14029 # Extract the first word of "strip", so it can be a program name with args.
14030set dummy strip; 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_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014034 $as_echo_n "(cached) " >&6
14035else
14036 if test -n "$ac_ct_STRIP"; then
14037 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # 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_STRIP="strip"
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_STRIP=$ac_cv_prog_ac_ct_STRIP
14057if test -n "$ac_ct_STRIP"; then
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14059$as_echo "$ac_ct_STRIP" >&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_STRIP" = x; then
14066 STRIP=":"
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 STRIP=$ac_ct_STRIP
14075 fi
14076else
14077 STRIP="$ac_cv_prog_STRIP"
14078fi
14079
14080test -z "$STRIP" && STRIP=:
14081
14082
14083
14084
14085
14086
14087if test -n "$ac_tool_prefix"; then
14088 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14089set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014092if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014093 $as_echo_n "(cached) " >&6
14094else
14095 if test -n "$RANLIB"; then
14096 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14097else
14098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099for as_dir in $PATH
14100do
14101 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014105 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107 break 2
14108 fi
14109done
14110 done
14111IFS=$as_save_IFS
14112
14113fi
14114fi
14115RANLIB=$ac_cv_prog_RANLIB
14116if test -n "$RANLIB"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14118$as_echo "$RANLIB" >&6; }
14119else
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121$as_echo "no" >&6; }
14122fi
14123
14124
14125fi
14126if test -z "$ac_cv_prog_RANLIB"; then
14127 ac_ct_RANLIB=$RANLIB
14128 # Extract the first word of "ranlib", so it can be a program name with args.
14129set dummy ranlib; ac_word=$2
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014132if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014133 $as_echo_n "(cached) " >&6
14134else
14135 if test -n "$ac_ct_RANLIB"; then
14136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141 IFS=$as_save_IFS
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000014145 ac_cv_prog_ac_ct_RANLIB="ranlib"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147 break 2
14148 fi
14149done
14150 done
14151IFS=$as_save_IFS
14152
14153fi
14154fi
14155ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14156if test -n "$ac_ct_RANLIB"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14158$as_echo "$ac_ct_RANLIB" >&6; }
14159else
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161$as_echo "no" >&6; }
14162fi
14163
14164 if test "x$ac_ct_RANLIB" = x; then
14165 RANLIB=":"
14166 else
14167 case $cross_compiling:$ac_tool_warned in
14168yes:)
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14171ac_tool_warned=yes ;;
14172esac
14173 RANLIB=$ac_ct_RANLIB
14174 fi
14175else
14176 RANLIB="$ac_cv_prog_RANLIB"
14177fi
14178
14179test -z "$RANLIB" && RANLIB=:
14180
14181
14182
14183
14184
14185
14186# Determine commands to create old-style static archives.
14187old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14188old_postinstall_cmds='chmod 644 $oldlib'
14189old_postuninstall_cmds=
14190
14191if test -n "$RANLIB"; then
14192 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050014193 bitrig* | openbsd*)
cristy99bd5232011-12-07 14:38:20 +000014194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000014195 ;;
14196 *)
cristy99bd5232011-12-07 14:38:20 +000014197 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000014198 ;;
14199 esac
cristy99bd5232011-12-07 14:38:20 +000014200 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000014201fi
14202
cristy0c60a692010-11-04 01:09:47 +000014203case $host_os in
14204 darwin*)
14205 lock_old_archive_extraction=yes ;;
14206 *)
14207 lock_old_archive_extraction=no ;;
14208esac
14209
14210
14211
14212
14213
14214
cristy73bd4a52010-10-05 11:24:23 +000014215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248# If no C compiler was specified, use CC.
14249LTCC=${LTCC-"$CC"}
14250
14251# If no C compiler flags were specified, use CFLAGS.
14252LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14253
14254# Allow CC to be a program name with arguments.
14255compiler=$CC
14256
14257
14258# Check for command to grab the raw symbol name followed by C symbol from nm.
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14260$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014261if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014262 $as_echo_n "(cached) " >&6
14263else
14264
14265# These are sane defaults that work on at least a few old systems.
14266# [They come from Ultrix. What could be older than Ultrix?!! ;)]
14267
14268# Character class describing NM global symbol codes.
14269symcode='[BCDEGRST]'
14270
14271# Regexp to match symbols that can be accessed directly from C.
14272sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14273
14274# Define system-specific variables.
14275case $host_os in
14276aix*)
14277 symcode='[BCDT]'
14278 ;;
14279cygwin* | mingw* | pw32* | cegcc*)
14280 symcode='[ABCDGISTW]'
14281 ;;
14282hpux*)
Cristy15f22012015-11-14 17:51:30 -050014283 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000014284 symcode='[ABCDEGRST]'
14285 fi
14286 ;;
14287irix* | nonstopux*)
14288 symcode='[BCDEGRST]'
14289 ;;
14290osf*)
14291 symcode='[BCDEGQRST]'
14292 ;;
14293solaris*)
14294 symcode='[BDRT]'
14295 ;;
14296sco3.2v5*)
14297 symcode='[DT]'
14298 ;;
14299sysv4.2uw2*)
14300 symcode='[DT]'
14301 ;;
14302sysv5* | sco5v6* | unixware* | OpenUNIX*)
14303 symcode='[ABDT]'
14304 ;;
14305sysv4)
14306 symcode='[DFNSTU]'
14307 ;;
14308esac
14309
14310# If we're using GNU nm, then use its standard symbol codes.
14311case `$NM -V 2>&1` in
14312*GNU* | *'with BFD'*)
14313 symcode='[ABCDGIRSTW]' ;;
14314esac
14315
Cristy15f22012015-11-14 17:51:30 -050014316if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14317 # Gets list of data symbols to import.
14318 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
14319 # Adjust the below global symbol transforms to fixup imported variables.
14320 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14321 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
14322 lt_c_name_lib_hook="\
14323 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
14324 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
14325else
14326 # Disable hooks by default.
14327 lt_cv_sys_global_symbol_to_import=
14328 lt_cdecl_hook=
14329 lt_c_name_hook=
14330 lt_c_name_lib_hook=
14331fi
14332
cristy73bd4a52010-10-05 11:24:23 +000014333# Transform an extracted symbol line into a proper C declaration.
14334# Some systems (esp. on ia64) link data and code symbols differently,
14335# so use this general approach.
Cristy15f22012015-11-14 17:51:30 -050014336lt_cv_sys_global_symbol_to_cdecl="sed -n"\
14337$lt_cdecl_hook\
14338" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14339" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
cristy73bd4a52010-10-05 11:24:23 +000014340
14341# Transform an extracted symbol line into symbol name and symbol address
Cristy15f22012015-11-14 17:51:30 -050014342lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
14343$lt_c_name_hook\
14344" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14345" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
14346
14347# Transform an extracted symbol line into symbol name with lib prefix and
14348# symbol address.
14349lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
14350$lt_c_name_lib_hook\
14351" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
14352" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
14353" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
cristy73bd4a52010-10-05 11:24:23 +000014354
14355# Handle CRLF in mingw tool chain
14356opt_cr=
14357case $build_os in
14358mingw*)
14359 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14360 ;;
14361esac
14362
14363# Try without a prefix underscore, then with it.
14364for ac_symprfx in "" "_"; do
14365
14366 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14367 symxfrm="\\1 $ac_symprfx\\2 \\2"
14368
14369 # Write the raw and C identifiers.
14370 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
Cristy15f22012015-11-14 17:51:30 -050014371 # Fake it for dumpbin and say T for any non-static function,
14372 # D for any global variable and I for any imported variable.
cristy73bd4a52010-10-05 11:24:23 +000014373 # Also find C++ and __fastcall symbols from MSVC++,
14374 # which start with @ or ?.
14375 lt_cv_sys_global_symbol_pipe="$AWK '"\
14376" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000014377" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000014378" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
Cristy15f22012015-11-14 17:51:30 -050014379" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14380" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14381" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
cristy73bd4a52010-10-05 11:24:23 +000014382" \$ 0!~/External *\|/{next};"\
14383" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14384" {if(hide[section]) next};"\
Cristy15f22012015-11-14 17:51:30 -050014385" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14386" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14387" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14388" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
cristy73bd4a52010-10-05 11:24:23 +000014389" ' prfx=^$ac_symprfx"
14390 else
14391 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14392 fi
cristyda16f162011-02-19 23:52:17 +000014393 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000014394
14395 # Check to see that the pipe works correctly.
14396 pipe_works=no
14397
14398 rm -f conftest*
14399 cat > conftest.$ac_ext <<_LT_EOF
14400#ifdef __cplusplus
14401extern "C" {
14402#endif
14403char nm_test_var;
14404void nm_test_func(void);
14405void nm_test_func(void){}
14406#ifdef __cplusplus
14407}
14408#endif
14409int main(){nm_test_var='a';nm_test_func();return(0);}
14410_LT_EOF
14411
14412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14413 (eval $ac_compile) 2>&5
14414 ac_status=$?
14415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14416 test $ac_status = 0; }; then
14417 # Now try to grab the symbols.
14418 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000014419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14420 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000014421 ac_status=$?
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; } && test -s "$nlist"; then
14424 # Try sorting and uniquifying the output.
14425 if sort "$nlist" | uniq > "$nlist"T; then
14426 mv -f "$nlist"T "$nlist"
14427 else
14428 rm -f "$nlist"T
14429 fi
14430
14431 # Make sure that we snagged all the symbols we need.
14432 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14433 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14434 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000014435/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
Cristy15f22012015-11-14 17:51:30 -050014436#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14437/* DATA imports from DLLs on WIN32 can't be const, because runtime
cristyda16f162011-02-19 23:52:17 +000014438 relocations are performed -- see ld's documentation on pseudo-relocs. */
14439# define LT_DLSYM_CONST
Cristy15f22012015-11-14 17:51:30 -050014440#elif defined __osf__
cristyda16f162011-02-19 23:52:17 +000014441/* This system does not cope well with relocations in const data. */
14442# define LT_DLSYM_CONST
14443#else
14444# define LT_DLSYM_CONST const
14445#endif
14446
cristy73bd4a52010-10-05 11:24:23 +000014447#ifdef __cplusplus
14448extern "C" {
14449#endif
14450
14451_LT_EOF
14452 # Now generate the symbol file.
14453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14454
14455 cat <<_LT_EOF >> conftest.$ac_ext
14456
14457/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000014458LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000014459 const char *name;
14460 void *address;
14461}
14462lt__PROGRAM__LTX_preloaded_symbols[] =
14463{
14464 { "@PROGRAM@", (void *) 0 },
14465_LT_EOF
Cristy15f22012015-11-14 17:51:30 -050014466 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014467 cat <<\_LT_EOF >> conftest.$ac_ext
14468 {0, (void *) 0}
14469};
14470
14471/* This works around a problem in FreeBSD linker */
14472#ifdef FREEBSD_WORKAROUND
14473static const void *lt_preloaded_setup() {
14474 return lt__PROGRAM__LTX_preloaded_symbols;
14475}
14476#endif
14477
14478#ifdef __cplusplus
14479}
14480#endif
14481_LT_EOF
14482 # Now try linking the two files.
14483 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000014484 lt_globsym_save_LIBS=$LIBS
14485 lt_globsym_save_CFLAGS=$CFLAGS
Cristy15f22012015-11-14 17:51:30 -050014486 LIBS=conftstm.$ac_objext
cristy73bd4a52010-10-05 11:24:23 +000014487 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14489 (eval $ac_link) 2>&5
14490 ac_status=$?
14491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050014492 test $ac_status = 0; } && test -s conftest$ac_exeext; then
cristy73bd4a52010-10-05 11:24:23 +000014493 pipe_works=yes
14494 fi
cristyda16f162011-02-19 23:52:17 +000014495 LIBS=$lt_globsym_save_LIBS
14496 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014497 else
14498 echo "cannot find nm_test_func in $nlist" >&5
14499 fi
14500 else
14501 echo "cannot find nm_test_var in $nlist" >&5
14502 fi
14503 else
14504 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14505 fi
14506 else
14507 echo "$progname: failed program was:" >&5
14508 cat conftest.$ac_ext >&5
14509 fi
14510 rm -rf conftest* conftst*
14511
14512 # Do not use the global_symbol_pipe unless it works.
Cristy15f22012015-11-14 17:51:30 -050014513 if test yes = "$pipe_works"; then
cristy73bd4a52010-10-05 11:24:23 +000014514 break
14515 else
14516 lt_cv_sys_global_symbol_pipe=
14517 fi
14518done
14519
14520fi
14521
14522if test -z "$lt_cv_sys_global_symbol_pipe"; then
14523 lt_cv_sys_global_symbol_to_cdecl=
14524fi
14525if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14527$as_echo "failed" >&6; }
14528else
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14530$as_echo "ok" >&6; }
14531fi
14532
cristyda16f162011-02-19 23:52:17 +000014533# Response file support.
14534if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14535 nm_file_list_spec='@'
14536elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14537 nm_file_list_spec='@'
14538fi
cristy73bd4a52010-10-05 11:24:23 +000014539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
cristyda16f162011-02-19 23:52:17 +000014560
14561
14562
14563
14564
14565
Cristy15f22012015-11-14 17:51:30 -050014566
14567
14568
14569
14570
14571
14572
14573
14574
14575
cristyda16f162011-02-19 23:52:17 +000014576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14577$as_echo_n "checking for sysroot... " >&6; }
14578
14579# Check whether --with-sysroot was given.
14580if test "${with_sysroot+set}" = set; then :
14581 withval=$with_sysroot;
14582else
14583 with_sysroot=no
14584fi
14585
14586
14587lt_sysroot=
Cristy15f22012015-11-14 17:51:30 -050014588case $with_sysroot in #(
cristyda16f162011-02-19 23:52:17 +000014589 yes)
Cristy15f22012015-11-14 17:51:30 -050014590 if test yes = "$GCC"; then
cristyda16f162011-02-19 23:52:17 +000014591 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14592 fi
14593 ;; #(
14594 /*)
14595 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
14596 ;; #(
14597 no|'')
14598 ;; #(
14599 *)
Cristy15f22012015-11-14 17:51:30 -050014600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14601$as_echo "$with_sysroot" >&6; }
cristyda16f162011-02-19 23:52:17 +000014602 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14603 ;;
14604esac
14605
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14607$as_echo "${lt_sysroot:-no}" >&6; }
14608
14609
14610
14611
14612
Cristy15f22012015-11-14 17:51:30 -050014613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14614$as_echo_n "checking for a working dd... " >&6; }
14615if ${ac_cv_path_lt_DD+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617else
14618 printf 0123456789abcdef0123456789abcdef >conftest.i
14619cat conftest.i conftest.i >conftest2.i
14620: ${lt_DD:=$DD}
14621if test -z "$lt_DD"; then
14622 ac_path_lt_DD_found=false
14623 # Loop through the user's path and test for each of PROGNAME-LIST
14624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627 IFS=$as_save_IFS
14628 test -z "$as_dir" && as_dir=.
14629 for ac_prog in dd; do
14630 for ac_exec_ext in '' $ac_executable_extensions; do
14631 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
14632 as_fn_executable_p "$ac_path_lt_DD" || continue
14633if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14634 cmp -s conftest.i conftest.out \
14635 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14636fi
14637 $ac_path_lt_DD_found && break 3
14638 done
14639 done
14640 done
14641IFS=$as_save_IFS
14642 if test -z "$ac_cv_path_lt_DD"; then
14643 :
14644 fi
14645else
14646 ac_cv_path_lt_DD=$lt_DD
14647fi
14648
14649rm -f conftest.i conftest2.i conftest.out
14650fi
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14652$as_echo "$ac_cv_path_lt_DD" >&6; }
14653
14654
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14656$as_echo_n "checking how to truncate binary pipes... " >&6; }
14657if ${lt_cv_truncate_bin+:} false; then :
14658 $as_echo_n "(cached) " >&6
14659else
14660 printf 0123456789abcdef0123456789abcdef >conftest.i
14661cat conftest.i conftest.i >conftest2.i
14662lt_cv_truncate_bin=
14663if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14664 cmp -s conftest.i conftest.out \
14665 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14666fi
14667rm -f conftest.i conftest2.i conftest.out
14668test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14669fi
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14671$as_echo "$lt_cv_truncate_bin" >&6; }
14672
14673
14674
14675
14676
14677
14678
14679# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14680func_cc_basename ()
14681{
14682 for cc_temp in $*""; do
14683 case $cc_temp in
14684 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14685 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14686 \-*) ;;
14687 *) break;;
14688 esac
14689 done
14690 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14691}
14692
cristy73bd4a52010-10-05 11:24:23 +000014693# Check whether --enable-libtool-lock was given.
14694if test "${enable_libtool_lock+set}" = set; then :
14695 enableval=$enable_libtool_lock;
14696fi
14697
Cristy15f22012015-11-14 17:51:30 -050014698test no = "$enable_libtool_lock" || enable_libtool_lock=yes
cristy73bd4a52010-10-05 11:24:23 +000014699
14700# Some flags need to be propagated to the compiler or linker for good
14701# libtool support.
14702case $host in
14703ia64-*-hpux*)
Cristy15f22012015-11-14 17:51:30 -050014704 # Find out what ABI is being produced by ac_compile, and set mode
14705 # options accordingly.
cristy73bd4a52010-10-05 11:24:23 +000014706 echo 'int i;' > conftest.$ac_ext
14707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14708 (eval $ac_compile) 2>&5
14709 ac_status=$?
14710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711 test $ac_status = 0; }; then
14712 case `/usr/bin/file conftest.$ac_objext` in
14713 *ELF-32*)
Cristy15f22012015-11-14 17:51:30 -050014714 HPUX_IA64_MODE=32
cristy73bd4a52010-10-05 11:24:23 +000014715 ;;
14716 *ELF-64*)
Cristy15f22012015-11-14 17:51:30 -050014717 HPUX_IA64_MODE=64
cristy73bd4a52010-10-05 11:24:23 +000014718 ;;
14719 esac
14720 fi
14721 rm -rf conftest*
14722 ;;
14723*-*-irix6*)
Cristy15f22012015-11-14 17:51:30 -050014724 # Find out what ABI is being produced by ac_compile, and set linker
14725 # options accordingly.
cristy0c60a692010-11-04 01:09:47 +000014726 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000014727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14728 (eval $ac_compile) 2>&5
14729 ac_status=$?
14730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731 test $ac_status = 0; }; then
Cristy15f22012015-11-14 17:51:30 -050014732 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000014733 case `/usr/bin/file conftest.$ac_objext` in
14734 *32-bit*)
14735 LD="${LD-ld} -melf32bsmip"
14736 ;;
14737 *N32*)
14738 LD="${LD-ld} -melf32bmipn32"
14739 ;;
14740 *64-bit*)
14741 LD="${LD-ld} -melf64bmip"
14742 ;;
14743 esac
14744 else
14745 case `/usr/bin/file conftest.$ac_objext` in
14746 *32-bit*)
14747 LD="${LD-ld} -32"
14748 ;;
14749 *N32*)
14750 LD="${LD-ld} -n32"
14751 ;;
14752 *64-bit*)
14753 LD="${LD-ld} -64"
14754 ;;
14755 esac
14756 fi
14757 fi
14758 rm -rf conftest*
14759 ;;
14760
Cristy15f22012015-11-14 17:51:30 -050014761mips64*-*linux*)
14762 # Find out what ABI is being produced by ac_compile, and set linker
14763 # options accordingly.
14764 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14765 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766 (eval $ac_compile) 2>&5
14767 ac_status=$?
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; then
14770 emul=elf
14771 case `/usr/bin/file conftest.$ac_objext` in
14772 *32-bit*)
14773 emul="${emul}32"
14774 ;;
14775 *64-bit*)
14776 emul="${emul}64"
14777 ;;
14778 esac
14779 case `/usr/bin/file conftest.$ac_objext` in
14780 *MSB*)
14781 emul="${emul}btsmip"
14782 ;;
14783 *LSB*)
14784 emul="${emul}ltsmip"
14785 ;;
14786 esac
14787 case `/usr/bin/file conftest.$ac_objext` in
14788 *N32*)
14789 emul="${emul}n32"
14790 ;;
14791 esac
14792 LD="${LD-ld} -m $emul"
14793 fi
14794 rm -rf conftest*
14795 ;;
14796
cristyd95b7a52013-10-23 13:12:53 +000014797x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
cristy73bd4a52010-10-05 11:24:23 +000014798s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Cristy15f22012015-11-14 17:51:30 -050014799 # Find out what ABI is being produced by ac_compile, and set linker
14800 # options accordingly. Note that the listed cases only cover the
14801 # situations where additional linker options are needed (such as when
14802 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14803 # vice versa); the common cases where no linker options are needed do
14804 # not appear in the list.
cristy73bd4a52010-10-05 11:24:23 +000014805 echo 'int i;' > conftest.$ac_ext
14806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14807 (eval $ac_compile) 2>&5
14808 ac_status=$?
14809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810 test $ac_status = 0; }; then
14811 case `/usr/bin/file conftest.o` in
14812 *32-bit*)
14813 case $host in
14814 x86_64-*kfreebsd*-gnu)
14815 LD="${LD-ld} -m elf_i386_fbsd"
14816 ;;
14817 x86_64-*linux*)
Cristy15f22012015-11-14 17:51:30 -050014818 case `/usr/bin/file conftest.o` in
14819 *x86-64*)
14820 LD="${LD-ld} -m elf32_x86_64"
14821 ;;
14822 *)
14823 LD="${LD-ld} -m elf_i386"
14824 ;;
14825 esac
cristy73bd4a52010-10-05 11:24:23 +000014826 ;;
cristya5bda012013-11-03 18:05:38 +000014827 powerpc64le-*linux*)
cristyd95b7a52013-10-23 13:12:53 +000014828 LD="${LD-ld} -m elf32lppclinux"
14829 ;;
cristya5bda012013-11-03 18:05:38 +000014830 powerpc64-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000014831 LD="${LD-ld} -m elf32ppclinux"
14832 ;;
14833 s390x-*linux*)
14834 LD="${LD-ld} -m elf_s390"
14835 ;;
14836 sparc64-*linux*)
14837 LD="${LD-ld} -m elf32_sparc"
14838 ;;
14839 esac
14840 ;;
14841 *64-bit*)
14842 case $host in
14843 x86_64-*kfreebsd*-gnu)
14844 LD="${LD-ld} -m elf_x86_64_fbsd"
14845 ;;
14846 x86_64-*linux*)
14847 LD="${LD-ld} -m elf_x86_64"
14848 ;;
cristyd95b7a52013-10-23 13:12:53 +000014849 powerpcle-*linux*)
14850 LD="${LD-ld} -m elf64lppc"
14851 ;;
14852 powerpc-*linux*)
cristy73bd4a52010-10-05 11:24:23 +000014853 LD="${LD-ld} -m elf64ppc"
14854 ;;
14855 s390*-*linux*|s390*-*tpf*)
14856 LD="${LD-ld} -m elf64_s390"
14857 ;;
14858 sparc*-*linux*)
14859 LD="${LD-ld} -m elf64_sparc"
14860 ;;
14861 esac
14862 ;;
14863 esac
14864 fi
14865 rm -rf conftest*
14866 ;;
14867
14868*-*-sco3.2v5*)
14869 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
Cristy15f22012015-11-14 17:51:30 -050014870 SAVE_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014871 CFLAGS="$CFLAGS -belf"
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14873$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014874if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014875 $as_echo_n "(cached) " >&6
14876else
14877 ac_ext=c
14878ac_cpp='$CPP $CPPFLAGS'
14879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14881ac_compiler_gnu=$ac_cv_c_compiler_gnu
14882
14883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h. */
14885
14886int
14887main ()
14888{
14889
14890 ;
14891 return 0;
14892}
14893_ACEOF
14894if ac_fn_c_try_link "$LINENO"; then :
14895 lt_cv_cc_needs_belf=yes
14896else
14897 lt_cv_cc_needs_belf=no
14898fi
14899rm -f core conftest.err conftest.$ac_objext \
14900 conftest$ac_exeext conftest.$ac_ext
14901 ac_ext=c
14902ac_cpp='$CPP $CPPFLAGS'
14903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14905ac_compiler_gnu=$ac_cv_c_compiler_gnu
14906
14907fi
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14909$as_echo "$lt_cv_cc_needs_belf" >&6; }
Cristy15f22012015-11-14 17:51:30 -050014910 if test yes != "$lt_cv_cc_needs_belf"; then
cristy73bd4a52010-10-05 11:24:23 +000014911 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
Cristy15f22012015-11-14 17:51:30 -050014912 CFLAGS=$SAVE_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000014913 fi
14914 ;;
cristy99bd5232011-12-07 14:38:20 +000014915*-*solaris*)
Cristy15f22012015-11-14 17:51:30 -050014916 # Find out what ABI is being produced by ac_compile, and set linker
14917 # options accordingly.
cristy73bd4a52010-10-05 11:24:23 +000014918 echo 'int i;' > conftest.$ac_ext
14919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14920 (eval $ac_compile) 2>&5
14921 ac_status=$?
14922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14923 test $ac_status = 0; }; then
14924 case `/usr/bin/file conftest.o` in
14925 *64-bit*)
14926 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000014927 yes*)
14928 case $host in
Cristy15f22012015-11-14 17:51:30 -050014929 i?86-*-solaris*|x86_64-*-solaris*)
cristy99bd5232011-12-07 14:38:20 +000014930 LD="${LD-ld} -m elf_x86_64"
14931 ;;
14932 sparc*-*-solaris*)
14933 LD="${LD-ld} -m elf64_sparc"
14934 ;;
14935 esac
14936 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
14937 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
Cristy15f22012015-11-14 17:51:30 -050014938 LD=${LD-ld}_sol2
cristy99bd5232011-12-07 14:38:20 +000014939 fi
14940 ;;
cristy73bd4a52010-10-05 11:24:23 +000014941 *)
14942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14943 LD="${LD-ld} -64"
14944 fi
14945 ;;
14946 esac
14947 ;;
14948 esac
14949 fi
14950 rm -rf conftest*
14951 ;;
14952esac
14953
Cristy15f22012015-11-14 17:51:30 -050014954need_locks=$enable_libtool_lock
cristy73bd4a52010-10-05 11:24:23 +000014955
cristyda16f162011-02-19 23:52:17 +000014956if test -n "$ac_tool_prefix"; then
14957 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14958set dummy ${ac_tool_prefix}mt; ac_word=$2
14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960$as_echo_n "checking for $ac_word... " >&6; }
14961if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963else
14964 if test -n "$MANIFEST_TOOL"; then
14965 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14966else
14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968for as_dir in $PATH
14969do
14970 IFS=$as_save_IFS
14971 test -z "$as_dir" && as_dir=.
14972 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000014973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000014974 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976 break 2
14977 fi
14978done
14979 done
14980IFS=$as_save_IFS
14981
14982fi
14983fi
14984MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14985if test -n "$MANIFEST_TOOL"; then
14986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14987$as_echo "$MANIFEST_TOOL" >&6; }
14988else
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990$as_echo "no" >&6; }
14991fi
14992
14993
14994fi
14995if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14996 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14997 # Extract the first word of "mt", so it can be a program name with args.
14998set dummy mt; ac_word=$2
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15000$as_echo_n "checking for $ac_word... " >&6; }
15001if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15002 $as_echo_n "(cached) " >&6
15003else
15004 if test -n "$ac_ct_MANIFEST_TOOL"; then
15005 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15006else
15007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008for as_dir in $PATH
15009do
15010 IFS=$as_save_IFS
15011 test -z "$as_dir" && as_dir=.
15012 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000015014 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15016 break 2
15017 fi
15018done
15019 done
15020IFS=$as_save_IFS
15021
15022fi
15023fi
15024ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15025if test -n "$ac_ct_MANIFEST_TOOL"; then
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15027$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
15028else
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030$as_echo "no" >&6; }
15031fi
15032
15033 if test "x$ac_ct_MANIFEST_TOOL" = x; then
15034 MANIFEST_TOOL=":"
15035 else
15036 case $cross_compiling:$ac_tool_warned in
15037yes:)
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15040ac_tool_warned=yes ;;
15041esac
15042 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15043 fi
15044else
15045 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15046fi
15047
15048test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15050$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15051if ${lt_cv_path_mainfest_tool+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053else
15054 lt_cv_path_mainfest_tool=no
15055 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15056 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15057 cat conftest.err >&5
15058 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15059 lt_cv_path_mainfest_tool=yes
15060 fi
15061 rm -f conftest*
15062fi
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15064$as_echo "$lt_cv_path_mainfest_tool" >&6; }
Cristy15f22012015-11-14 17:51:30 -050015065if test yes != "$lt_cv_path_mainfest_tool"; then
cristyda16f162011-02-19 23:52:17 +000015066 MANIFEST_TOOL=:
15067fi
15068
15069
15070
15071
15072
cristy73bd4a52010-10-05 11:24:23 +000015073
15074 case $host_os in
15075 rhapsody* | darwin*)
15076 if test -n "$ac_tool_prefix"; then
15077 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15078set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015081if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015082 $as_echo_n "(cached) " >&6
15083else
15084 if test -n "$DSYMUTIL"; then
15085 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15086else
15087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15088for as_dir in $PATH
15089do
15090 IFS=$as_save_IFS
15091 test -z "$as_dir" && as_dir=.
15092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015094 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15096 break 2
15097 fi
15098done
15099 done
15100IFS=$as_save_IFS
15101
15102fi
15103fi
15104DSYMUTIL=$ac_cv_prog_DSYMUTIL
15105if test -n "$DSYMUTIL"; then
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15107$as_echo "$DSYMUTIL" >&6; }
15108else
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110$as_echo "no" >&6; }
15111fi
15112
15113
15114fi
15115if test -z "$ac_cv_prog_DSYMUTIL"; then
15116 ac_ct_DSYMUTIL=$DSYMUTIL
15117 # Extract the first word of "dsymutil", so it can be a program name with args.
15118set dummy dsymutil; ac_word=$2
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15120$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015121if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015122 $as_echo_n "(cached) " >&6
15123else
15124 if test -n "$ac_ct_DSYMUTIL"; then
15125 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15126else
15127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128for as_dir in $PATH
15129do
15130 IFS=$as_save_IFS
15131 test -z "$as_dir" && as_dir=.
15132 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015134 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15136 break 2
15137 fi
15138done
15139 done
15140IFS=$as_save_IFS
15141
15142fi
15143fi
15144ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15145if test -n "$ac_ct_DSYMUTIL"; then
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15147$as_echo "$ac_ct_DSYMUTIL" >&6; }
15148else
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150$as_echo "no" >&6; }
15151fi
15152
15153 if test "x$ac_ct_DSYMUTIL" = x; then
15154 DSYMUTIL=":"
15155 else
15156 case $cross_compiling:$ac_tool_warned in
15157yes:)
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15160ac_tool_warned=yes ;;
15161esac
15162 DSYMUTIL=$ac_ct_DSYMUTIL
15163 fi
15164else
15165 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15166fi
15167
15168 if test -n "$ac_tool_prefix"; then
15169 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15170set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015173if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015174 $as_echo_n "(cached) " >&6
15175else
15176 if test -n "$NMEDIT"; then
15177 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15178else
15179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180for as_dir in $PATH
15181do
15182 IFS=$as_save_IFS
15183 test -z "$as_dir" && as_dir=.
15184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015186 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15188 break 2
15189 fi
15190done
15191 done
15192IFS=$as_save_IFS
15193
15194fi
15195fi
15196NMEDIT=$ac_cv_prog_NMEDIT
15197if test -n "$NMEDIT"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15199$as_echo "$NMEDIT" >&6; }
15200else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202$as_echo "no" >&6; }
15203fi
15204
15205
15206fi
15207if test -z "$ac_cv_prog_NMEDIT"; then
15208 ac_ct_NMEDIT=$NMEDIT
15209 # Extract the first word of "nmedit", so it can be a program name with args.
15210set dummy nmedit; ac_word=$2
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015213if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015214 $as_echo_n "(cached) " >&6
15215else
15216 if test -n "$ac_ct_NMEDIT"; then
15217 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15218else
15219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220for as_dir in $PATH
15221do
15222 IFS=$as_save_IFS
15223 test -z "$as_dir" && as_dir=.
15224 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015226 ac_cv_prog_ac_ct_NMEDIT="nmedit"
15227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15228 break 2
15229 fi
15230done
15231 done
15232IFS=$as_save_IFS
15233
15234fi
15235fi
15236ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15237if test -n "$ac_ct_NMEDIT"; then
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15239$as_echo "$ac_ct_NMEDIT" >&6; }
15240else
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242$as_echo "no" >&6; }
15243fi
15244
15245 if test "x$ac_ct_NMEDIT" = x; then
15246 NMEDIT=":"
15247 else
15248 case $cross_compiling:$ac_tool_warned in
15249yes:)
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15252ac_tool_warned=yes ;;
15253esac
15254 NMEDIT=$ac_ct_NMEDIT
15255 fi
15256else
15257 NMEDIT="$ac_cv_prog_NMEDIT"
15258fi
15259
15260 if test -n "$ac_tool_prefix"; then
15261 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15262set dummy ${ac_tool_prefix}lipo; ac_word=$2
15263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15264$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015265if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015266 $as_echo_n "(cached) " >&6
15267else
15268 if test -n "$LIPO"; then
15269 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15270else
15271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272for as_dir in $PATH
15273do
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
15276 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015278 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15280 break 2
15281 fi
15282done
15283 done
15284IFS=$as_save_IFS
15285
15286fi
15287fi
15288LIPO=$ac_cv_prog_LIPO
15289if test -n "$LIPO"; then
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15291$as_echo "$LIPO" >&6; }
15292else
15293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15294$as_echo "no" >&6; }
15295fi
15296
15297
15298fi
15299if test -z "$ac_cv_prog_LIPO"; then
15300 ac_ct_LIPO=$LIPO
15301 # Extract the first word of "lipo", so it can be a program name with args.
15302set dummy lipo; ac_word=$2
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015305if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015306 $as_echo_n "(cached) " >&6
15307else
15308 if test -n "$ac_ct_LIPO"; then
15309 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15310else
15311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312for as_dir in $PATH
15313do
15314 IFS=$as_save_IFS
15315 test -z "$as_dir" && as_dir=.
15316 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015318 ac_cv_prog_ac_ct_LIPO="lipo"
15319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15320 break 2
15321 fi
15322done
15323 done
15324IFS=$as_save_IFS
15325
15326fi
15327fi
15328ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15329if test -n "$ac_ct_LIPO"; then
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15331$as_echo "$ac_ct_LIPO" >&6; }
15332else
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334$as_echo "no" >&6; }
15335fi
15336
15337 if test "x$ac_ct_LIPO" = x; then
15338 LIPO=":"
15339 else
15340 case $cross_compiling:$ac_tool_warned in
15341yes:)
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15344ac_tool_warned=yes ;;
15345esac
15346 LIPO=$ac_ct_LIPO
15347 fi
15348else
15349 LIPO="$ac_cv_prog_LIPO"
15350fi
15351
15352 if test -n "$ac_tool_prefix"; then
15353 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15354set dummy ${ac_tool_prefix}otool; ac_word=$2
15355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15356$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015357if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015358 $as_echo_n "(cached) " >&6
15359else
15360 if test -n "$OTOOL"; then
15361 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15362else
15363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15364for as_dir in $PATH
15365do
15366 IFS=$as_save_IFS
15367 test -z "$as_dir" && as_dir=.
15368 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015370 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15372 break 2
15373 fi
15374done
15375 done
15376IFS=$as_save_IFS
15377
15378fi
15379fi
15380OTOOL=$ac_cv_prog_OTOOL
15381if test -n "$OTOOL"; then
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15383$as_echo "$OTOOL" >&6; }
15384else
15385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386$as_echo "no" >&6; }
15387fi
15388
15389
15390fi
15391if test -z "$ac_cv_prog_OTOOL"; then
15392 ac_ct_OTOOL=$OTOOL
15393 # Extract the first word of "otool", so it can be a program name with args.
15394set dummy otool; ac_word=$2
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015397if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015398 $as_echo_n "(cached) " >&6
15399else
15400 if test -n "$ac_ct_OTOOL"; then
15401 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15402else
15403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404for as_dir in $PATH
15405do
15406 IFS=$as_save_IFS
15407 test -z "$as_dir" && as_dir=.
15408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015410 ac_cv_prog_ac_ct_OTOOL="otool"
15411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412 break 2
15413 fi
15414done
15415 done
15416IFS=$as_save_IFS
15417
15418fi
15419fi
15420ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15421if test -n "$ac_ct_OTOOL"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15423$as_echo "$ac_ct_OTOOL" >&6; }
15424else
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426$as_echo "no" >&6; }
15427fi
15428
15429 if test "x$ac_ct_OTOOL" = x; then
15430 OTOOL=":"
15431 else
15432 case $cross_compiling:$ac_tool_warned in
15433yes:)
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15436ac_tool_warned=yes ;;
15437esac
15438 OTOOL=$ac_ct_OTOOL
15439 fi
15440else
15441 OTOOL="$ac_cv_prog_OTOOL"
15442fi
15443
15444 if test -n "$ac_tool_prefix"; then
15445 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15446set dummy ${ac_tool_prefix}otool64; ac_word=$2
15447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015449if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015450 $as_echo_n "(cached) " >&6
15451else
15452 if test -n "$OTOOL64"; then
15453 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15454else
15455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458 IFS=$as_save_IFS
15459 test -z "$as_dir" && as_dir=.
15460 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015462 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15464 break 2
15465 fi
15466done
15467 done
15468IFS=$as_save_IFS
15469
15470fi
15471fi
15472OTOOL64=$ac_cv_prog_OTOOL64
15473if test -n "$OTOOL64"; then
15474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15475$as_echo "$OTOOL64" >&6; }
15476else
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478$as_echo "no" >&6; }
15479fi
15480
15481
15482fi
15483if test -z "$ac_cv_prog_OTOOL64"; then
15484 ac_ct_OTOOL64=$OTOOL64
15485 # Extract the first word of "otool64", so it can be a program name with args.
15486set dummy otool64; ac_word=$2
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015489if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015490 $as_echo_n "(cached) " >&6
15491else
15492 if test -n "$ac_ct_OTOOL64"; then
15493 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15494else
15495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496for as_dir in $PATH
15497do
15498 IFS=$as_save_IFS
15499 test -z "$as_dir" && as_dir=.
15500 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015502 ac_cv_prog_ac_ct_OTOOL64="otool64"
15503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15504 break 2
15505 fi
15506done
15507 done
15508IFS=$as_save_IFS
15509
15510fi
15511fi
15512ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15513if test -n "$ac_ct_OTOOL64"; then
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15515$as_echo "$ac_ct_OTOOL64" >&6; }
15516else
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518$as_echo "no" >&6; }
15519fi
15520
15521 if test "x$ac_ct_OTOOL64" = x; then
15522 OTOOL64=":"
15523 else
15524 case $cross_compiling:$ac_tool_warned in
15525yes:)
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15528ac_tool_warned=yes ;;
15529esac
15530 OTOOL64=$ac_ct_OTOOL64
15531 fi
15532else
15533 OTOOL64="$ac_cv_prog_OTOOL64"
15534fi
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15563$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015564if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015565 $as_echo_n "(cached) " >&6
15566else
15567 lt_cv_apple_cc_single_mod=no
Cristy15f22012015-11-14 17:51:30 -050015568 if test -z "$LT_MULTI_MODULE"; then
cristy73bd4a52010-10-05 11:24:23 +000015569 # By default we will add the -single_module flag. You can override
15570 # by either setting the environment variable LT_MULTI_MODULE
15571 # non-empty at configure time, or by adding -multi_module to the
15572 # link flags.
15573 rm -rf libconftest.dylib*
15574 echo "int foo(void){return 1;}" > conftest.c
15575 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15576-dynamiclib -Wl,-single_module conftest.c" >&5
15577 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15578 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15579 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000015580 # If there is a non-empty error log, and "single_module"
15581 # appears in it, assume the flag caused a linker warning
15582 if test -s conftest.err && $GREP single_module conftest.err; then
15583 cat conftest.err >&5
15584 # Otherwise, if the output was created with a 0 exit code from
15585 # the compiler, it worked.
Cristy15f22012015-11-14 17:51:30 -050015586 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
cristy73bd4a52010-10-05 11:24:23 +000015587 lt_cv_apple_cc_single_mod=yes
15588 else
15589 cat conftest.err >&5
15590 fi
15591 rm -rf libconftest.dylib*
15592 rm -f conftest.*
15593 fi
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15596$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000015597
cristy73bd4a52010-10-05 11:24:23 +000015598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15599$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015600if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015601 $as_echo_n "(cached) " >&6
15602else
15603 lt_cv_ld_exported_symbols_list=no
15604 save_LDFLAGS=$LDFLAGS
15605 echo "_main" > conftest.sym
15606 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608/* end confdefs.h. */
15609
15610int
15611main ()
15612{
15613
15614 ;
15615 return 0;
15616}
15617_ACEOF
15618if ac_fn_c_try_link "$LINENO"; then :
15619 lt_cv_ld_exported_symbols_list=yes
15620else
15621 lt_cv_ld_exported_symbols_list=no
15622fi
15623rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050015625 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000015626
15627fi
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15629$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000015630
cristy0c60a692010-11-04 01:09:47 +000015631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15632$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015633if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015634 $as_echo_n "(cached) " >&6
15635else
15636 lt_cv_ld_force_load=no
15637 cat > conftest.c << _LT_EOF
15638int forced_loaded() { return 2;}
15639_LT_EOF
15640 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15641 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15642 echo "$AR cru libconftest.a conftest.o" >&5
15643 $AR cru libconftest.a conftest.o 2>&5
15644 echo "$RANLIB libconftest.a" >&5
15645 $RANLIB libconftest.a 2>&5
15646 cat > conftest.c << _LT_EOF
15647int main() { return 0;}
15648_LT_EOF
15649 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15650 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15651 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000015652 if test -s conftest.err && $GREP force_load conftest.err; then
15653 cat conftest.err >&5
Cristy15f22012015-11-14 17:51:30 -050015654 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
cristy0c60a692010-11-04 01:09:47 +000015655 lt_cv_ld_force_load=yes
15656 else
15657 cat conftest.err >&5
15658 fi
15659 rm -f conftest.err libconftest.a conftest conftest.c
15660 rm -rf conftest.dSYM
15661
15662fi
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15664$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000015665 case $host_os in
15666 rhapsody* | darwin1.[012])
Cristy15f22012015-11-14 17:51:30 -050015667 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000015668 darwin1.*)
Cristy15f22012015-11-14 17:51:30 -050015669 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000015670 darwin*) # darwin 5.x on
15671 # if running on 10.5 or later, the deployment target defaults
15672 # to the OS version, if on x86, and 10.4, the deployment
15673 # target defaults to 10.4. Don't you love it?
15674 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15675 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
Cristy15f22012015-11-14 17:51:30 -050015676 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15677 10.[012][,.]*)
15678 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
cristy73bd4a52010-10-05 11:24:23 +000015679 10.*)
Cristy15f22012015-11-14 17:51:30 -050015680 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
cristy73bd4a52010-10-05 11:24:23 +000015681 esac
15682 ;;
15683 esac
Cristy15f22012015-11-14 17:51:30 -050015684 if test yes = "$lt_cv_apple_cc_single_mod"; then
cristy73bd4a52010-10-05 11:24:23 +000015685 _lt_dar_single_mod='$single_module'
15686 fi
Cristy15f22012015-11-14 17:51:30 -050015687 if test yes = "$lt_cv_ld_exported_symbols_list"; then
15688 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
cristy73bd4a52010-10-05 11:24:23 +000015689 else
Cristy15f22012015-11-14 17:51:30 -050015690 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
cristy73bd4a52010-10-05 11:24:23 +000015691 fi
Cristy15f22012015-11-14 17:51:30 -050015692 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
cristy73bd4a52010-10-05 11:24:23 +000015693 _lt_dsymutil='~$DSYMUTIL $lib || :'
15694 else
15695 _lt_dsymutil=
15696 fi
15697 ;;
15698 esac
15699
Cristy15f22012015-11-14 17:51:30 -050015700# func_munge_path_list VARIABLE PATH
15701# -----------------------------------
15702# VARIABLE is name of variable containing _space_ separated list of
15703# directories to be munged by the contents of PATH, which is string
15704# having a format:
15705# "DIR[:DIR]:"
15706# string "DIR[ DIR]" will be prepended to VARIABLE
15707# ":DIR[:DIR]"
15708# string "DIR[ DIR]" will be appended to VARIABLE
15709# "DIRP[:DIRP]::[DIRA:]DIRA"
15710# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15711# "DIRA[ DIRA]" will be appended to VARIABLE
15712# "DIR[:DIR]"
15713# VARIABLE will be replaced by "DIR[ DIR]"
15714func_munge_path_list ()
15715{
15716 case x$2 in
15717 x)
15718 ;;
15719 *:)
15720 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15721 ;;
15722 x:*)
15723 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15724 ;;
15725 *::*)
15726 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15727 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15728 ;;
15729 *)
15730 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15731 ;;
15732 esac
15733}
15734
cristy73bd4a52010-10-05 11:24:23 +000015735for ac_header in dlfcn.h
15736do :
15737 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15738"
cristyda16f162011-02-19 23:52:17 +000015739if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000015740 cat >>confdefs.h <<_ACEOF
15741#define HAVE_DLFCN_H 1
15742_ACEOF
15743
15744fi
15745
15746done
15747
15748
15749
cristyda16f162011-02-19 23:52:17 +000015750func_stripname_cnf ()
15751{
Cristy15f22012015-11-14 17:51:30 -050015752 case $2 in
15753 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15754 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
cristyda16f162011-02-19 23:52:17 +000015755 esac
15756} # func_stripname_cnf
15757
15758
15759
cristy73bd4a52010-10-05 11:24:23 +000015760
15761
15762# Set options
15763enable_win32_dll=yes
15764
15765case $host in
cristy0c60a692010-11-04 01:09:47 +000015766*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000015767 if test -n "$ac_tool_prefix"; then
15768 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
15769set dummy ${ac_tool_prefix}as; ac_word=$2
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15771$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015772if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015773 $as_echo_n "(cached) " >&6
15774else
15775 if test -n "$AS"; then
15776 ac_cv_prog_AS="$AS" # Let the user override the test.
15777else
15778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779for as_dir in $PATH
15780do
15781 IFS=$as_save_IFS
15782 test -z "$as_dir" && as_dir=.
15783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015785 ac_cv_prog_AS="${ac_tool_prefix}as"
15786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15787 break 2
15788 fi
15789done
15790 done
15791IFS=$as_save_IFS
15792
15793fi
15794fi
15795AS=$ac_cv_prog_AS
15796if test -n "$AS"; then
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
15798$as_echo "$AS" >&6; }
15799else
15800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801$as_echo "no" >&6; }
15802fi
15803
15804
15805fi
15806if test -z "$ac_cv_prog_AS"; then
15807 ac_ct_AS=$AS
15808 # Extract the first word of "as", so it can be a program name with args.
15809set dummy as; ac_word=$2
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015812if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015813 $as_echo_n "(cached) " >&6
15814else
15815 if test -n "$ac_ct_AS"; then
15816 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15817else
15818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819for as_dir in $PATH
15820do
15821 IFS=$as_save_IFS
15822 test -z "$as_dir" && as_dir=.
15823 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015825 ac_cv_prog_ac_ct_AS="as"
15826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15827 break 2
15828 fi
15829done
15830 done
15831IFS=$as_save_IFS
15832
15833fi
15834fi
15835ac_ct_AS=$ac_cv_prog_ac_ct_AS
15836if test -n "$ac_ct_AS"; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
15838$as_echo "$ac_ct_AS" >&6; }
15839else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841$as_echo "no" >&6; }
15842fi
15843
15844 if test "x$ac_ct_AS" = x; then
15845 AS="false"
15846 else
15847 case $cross_compiling:$ac_tool_warned in
15848yes:)
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15851ac_tool_warned=yes ;;
15852esac
15853 AS=$ac_ct_AS
15854 fi
15855else
15856 AS="$ac_cv_prog_AS"
15857fi
15858
15859 if test -n "$ac_tool_prefix"; then
15860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15861set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015864if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015865 $as_echo_n "(cached) " >&6
15866else
15867 if test -n "$DLLTOOL"; then
15868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15869else
15870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871for as_dir in $PATH
15872do
15873 IFS=$as_save_IFS
15874 test -z "$as_dir" && as_dir=.
15875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879 break 2
15880 fi
15881done
15882 done
15883IFS=$as_save_IFS
15884
15885fi
15886fi
15887DLLTOOL=$ac_cv_prog_DLLTOOL
15888if test -n "$DLLTOOL"; then
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15890$as_echo "$DLLTOOL" >&6; }
15891else
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893$as_echo "no" >&6; }
15894fi
15895
15896
15897fi
15898if test -z "$ac_cv_prog_DLLTOOL"; then
15899 ac_ct_DLLTOOL=$DLLTOOL
15900 # Extract the first word of "dlltool", so it can be a program name with args.
15901set dummy dlltool; ac_word=$2
15902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15903$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015904if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015905 $as_echo_n "(cached) " >&6
15906else
15907 if test -n "$ac_ct_DLLTOOL"; then
15908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15909else
15910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911for as_dir in $PATH
15912do
15913 IFS=$as_save_IFS
15914 test -z "$as_dir" && as_dir=.
15915 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015917 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15919 break 2
15920 fi
15921done
15922 done
15923IFS=$as_save_IFS
15924
15925fi
15926fi
15927ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15928if test -n "$ac_ct_DLLTOOL"; then
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15930$as_echo "$ac_ct_DLLTOOL" >&6; }
15931else
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933$as_echo "no" >&6; }
15934fi
15935
15936 if test "x$ac_ct_DLLTOOL" = x; then
15937 DLLTOOL="false"
15938 else
15939 case $cross_compiling:$ac_tool_warned in
15940yes:)
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15943ac_tool_warned=yes ;;
15944esac
15945 DLLTOOL=$ac_ct_DLLTOOL
15946 fi
15947else
15948 DLLTOOL="$ac_cv_prog_DLLTOOL"
15949fi
15950
15951 if test -n "$ac_tool_prefix"; then
15952 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15953set dummy ${ac_tool_prefix}objdump; ac_word=$2
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15955$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015956if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015957 $as_echo_n "(cached) " >&6
15958else
15959 if test -n "$OBJDUMP"; then
15960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15961else
15962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15963for as_dir in $PATH
15964do
15965 IFS=$as_save_IFS
15966 test -z "$as_dir" && as_dir=.
15967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000015968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000015969 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15971 break 2
15972 fi
15973done
15974 done
15975IFS=$as_save_IFS
15976
15977fi
15978fi
15979OBJDUMP=$ac_cv_prog_OBJDUMP
15980if test -n "$OBJDUMP"; then
15981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
15982$as_echo "$OBJDUMP" >&6; }
15983else
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985$as_echo "no" >&6; }
15986fi
15987
15988
15989fi
15990if test -z "$ac_cv_prog_OBJDUMP"; then
15991 ac_ct_OBJDUMP=$OBJDUMP
15992 # Extract the first word of "objdump", so it can be a program name with args.
15993set dummy objdump; ac_word=$2
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15995$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015996if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000015997 $as_echo_n "(cached) " >&6
15998else
15999 if test -n "$ac_ct_OBJDUMP"; then
16000 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16001else
16002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003for as_dir in $PATH
16004do
16005 IFS=$as_save_IFS
16006 test -z "$as_dir" && as_dir=.
16007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000016008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000016009 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011 break 2
16012 fi
16013done
16014 done
16015IFS=$as_save_IFS
16016
16017fi
16018fi
16019ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16020if test -n "$ac_ct_OBJDUMP"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16022$as_echo "$ac_ct_OBJDUMP" >&6; }
16023else
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025$as_echo "no" >&6; }
16026fi
16027
16028 if test "x$ac_ct_OBJDUMP" = x; then
16029 OBJDUMP="false"
16030 else
16031 case $cross_compiling:$ac_tool_warned in
16032yes:)
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16035ac_tool_warned=yes ;;
16036esac
16037 OBJDUMP=$ac_ct_OBJDUMP
16038 fi
16039else
16040 OBJDUMP="$ac_cv_prog_OBJDUMP"
16041fi
16042
16043 ;;
16044esac
16045
16046test -z "$AS" && AS=as
16047
16048
16049
16050
16051
16052test -z "$DLLTOOL" && DLLTOOL=dlltool
16053
16054
16055
16056
16057
16058test -z "$OBJDUMP" && OBJDUMP=objdump
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068 # Check whether --enable-shared was given.
16069if test "${enable_shared+set}" = set; then :
16070 enableval=$enable_shared; p=${PACKAGE-default}
16071 case $enableval in
16072 yes) enable_shared=yes ;;
16073 no) enable_shared=no ;;
16074 *)
16075 enable_shared=no
16076 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050016077 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000016078 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050016079 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016080 if test "X$pkg" = "X$p"; then
16081 enable_shared=yes
16082 fi
16083 done
Cristy15f22012015-11-14 17:51:30 -050016084 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016085 ;;
16086 esac
16087else
16088 enable_shared=yes
16089fi
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099 # Check whether --enable-static was given.
16100if test "${enable_static+set}" = set; then :
16101 enableval=$enable_static; p=${PACKAGE-default}
16102 case $enableval in
16103 yes) enable_static=yes ;;
16104 no) enable_static=no ;;
16105 *)
16106 enable_static=no
16107 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050016108 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000016109 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050016110 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016111 if test "X$pkg" = "X$p"; then
16112 enable_static=yes
16113 fi
16114 done
Cristy15f22012015-11-14 17:51:30 -050016115 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016116 ;;
16117 esac
16118else
16119 enable_static=yes
16120fi
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131# Check whether --with-pic was given.
16132if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000016133 withval=$with_pic; lt_p=${PACKAGE-default}
16134 case $withval in
16135 yes|no) pic_mode=$withval ;;
16136 *)
16137 pic_mode=default
16138 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050016139 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy99bd5232011-12-07 14:38:20 +000016140 for lt_pkg in $withval; do
Cristy15f22012015-11-14 17:51:30 -050016141 IFS=$lt_save_ifs
cristy99bd5232011-12-07 14:38:20 +000016142 if test "X$lt_pkg" = "X$lt_p"; then
16143 pic_mode=yes
16144 fi
16145 done
Cristy15f22012015-11-14 17:51:30 -050016146 IFS=$lt_save_ifs
cristy99bd5232011-12-07 14:38:20 +000016147 ;;
16148 esac
cristy73bd4a52010-10-05 11:24:23 +000016149else
16150 pic_mode=default
16151fi
16152
16153
cristy73bd4a52010-10-05 11:24:23 +000016154
16155
16156
16157
16158
16159
16160 # Check whether --enable-fast-install was given.
16161if test "${enable_fast_install+set}" = set; then :
16162 enableval=$enable_fast_install; p=${PACKAGE-default}
16163 case $enableval in
16164 yes) enable_fast_install=yes ;;
16165 no) enable_fast_install=no ;;
16166 *)
16167 enable_fast_install=no
16168 # Look at the argument we got. We use all the common list separators.
Cristy15f22012015-11-14 17:51:30 -050016169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
cristy73bd4a52010-10-05 11:24:23 +000016170 for pkg in $enableval; do
Cristy15f22012015-11-14 17:51:30 -050016171 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016172 if test "X$pkg" = "X$p"; then
16173 enable_fast_install=yes
16174 fi
16175 done
Cristy15f22012015-11-14 17:51:30 -050016176 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016177 ;;
16178 esac
16179else
16180 enable_fast_install=yes
16181fi
16182
16183
16184
16185
16186
16187
16188
16189
Cristy15f22012015-11-14 17:51:30 -050016190 shared_archive_member_spec=
16191case $host,$enable_shared in
16192power*-*-aix[5-9]*,yes)
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16194$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
16195
16196# Check whether --with-aix-soname was given.
16197if test "${with_aix_soname+set}" = set; then :
16198 withval=$with_aix_soname; case $withval in
16199 aix|svr4|both)
16200 ;;
16201 *)
16202 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16203 ;;
16204 esac
16205 lt_cv_with_aix_soname=$with_aix_soname
16206else
16207 if ${lt_cv_with_aix_soname+:} false; then :
16208 $as_echo_n "(cached) " >&6
16209else
16210 lt_cv_with_aix_soname=aix
16211fi
16212
16213 with_aix_soname=$lt_cv_with_aix_soname
16214fi
16215
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16217$as_echo "$with_aix_soname" >&6; }
16218 if test aix != "$with_aix_soname"; then
16219 # For the AIX way of multilib, we name the shared archive member
16220 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16221 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16222 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16223 # the AIX toolchain works better with OBJECT_MODE set (default 32).
16224 if test 64 = "${OBJECT_MODE-32}"; then
16225 shared_archive_member_spec=shr_64
16226 else
16227 shared_archive_member_spec=shr
16228 fi
16229 fi
16230 ;;
16231*)
16232 with_aix_soname=aix
16233 ;;
16234esac
16235
16236
16237
16238
16239
16240
16241
cristy73bd4a52010-10-05 11:24:23 +000016242
16243
16244
16245# This can be used to rebuild libtool when needed
Cristy15f22012015-11-14 17:51:30 -050016246LIBTOOL_DEPS=$ltmain
cristy73bd4a52010-10-05 11:24:23 +000016247
16248# Always use our own libtool.
16249LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
cristy0c60a692010-11-04 01:09:47 +000016275
cristy99bd5232011-12-07 14:38:20 +000016276
16277
16278
16279
cristy73bd4a52010-10-05 11:24:23 +000016280test -z "$LN_S" && LN_S="ln -s"
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
Cristy15f22012015-11-14 17:51:30 -050016295if test -n "${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000016296 setopt NO_GLOB_SUBST
16297fi
16298
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16300$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016301if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016302 $as_echo_n "(cached) " >&6
16303else
16304 rm -f .libs 2>/dev/null
16305mkdir .libs 2>/dev/null
16306if test -d .libs; then
16307 lt_cv_objdir=.libs
16308else
16309 # MS-DOS does not allow filenames that begin with a dot.
16310 lt_cv_objdir=_libs
16311fi
16312rmdir .libs 2>/dev/null
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16315$as_echo "$lt_cv_objdir" >&6; }
16316objdir=$lt_cv_objdir
16317
16318
16319
16320
16321
16322cat >>confdefs.h <<_ACEOF
16323#define LT_OBJDIR "$lt_cv_objdir/"
16324_ACEOF
16325
16326
16327
16328
cristy73bd4a52010-10-05 11:24:23 +000016329case $host_os in
16330aix3*)
16331 # AIX sometimes has problems with the GCC collect2 program. For some
16332 # reason, if we set the COLLECT_NAMES environment variable, the problems
16333 # vanish in a puff of smoke.
Cristy15f22012015-11-14 17:51:30 -050016334 if test set != "${COLLECT_NAMES+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000016335 COLLECT_NAMES=
16336 export COLLECT_NAMES
16337 fi
16338 ;;
16339esac
16340
cristy73bd4a52010-10-05 11:24:23 +000016341# Global variables:
16342ofile=libtool
16343can_build_shared=yes
16344
Cristy15f22012015-11-14 17:51:30 -050016345# All known linkers require a '.a' archive for static linking (except MSVC,
cristy73bd4a52010-10-05 11:24:23 +000016346# which needs '.lib').
16347libext=a
16348
Cristy15f22012015-11-14 17:51:30 -050016349with_gnu_ld=$lt_cv_prog_gnu_ld
cristy73bd4a52010-10-05 11:24:23 +000016350
Cristy15f22012015-11-14 17:51:30 -050016351old_CC=$CC
16352old_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000016353
16354# Set sane defaults for various variables
16355test -z "$CC" && CC=cc
16356test -z "$LTCC" && LTCC=$CC
16357test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16358test -z "$LD" && LD=ld
16359test -z "$ac_objext" && ac_objext=o
16360
Cristy15f22012015-11-14 17:51:30 -050016361func_cc_basename $compiler
16362cc_basename=$func_cc_basename_result
cristy73bd4a52010-10-05 11:24:23 +000016363
16364
16365# Only perform the check for file, if the check method requires it
16366test -z "$MAGIC_CMD" && MAGIC_CMD=file
16367case $deplibs_check_method in
16368file_magic*)
16369 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16371$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016372if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016373 $as_echo_n "(cached) " >&6
16374else
16375 case $MAGIC_CMD in
16376[\\/*] | ?:[\\/]*)
Cristy15f22012015-11-14 17:51:30 -050016377 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000016378 ;;
16379*)
Cristy15f22012015-11-14 17:51:30 -050016380 lt_save_MAGIC_CMD=$MAGIC_CMD
16381 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000016382 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16383 for ac_dir in $ac_dummy; do
Cristy15f22012015-11-14 17:51:30 -050016384 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016385 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050016386 if test -f "$ac_dir/${ac_tool_prefix}file"; then
16387 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
cristy73bd4a52010-10-05 11:24:23 +000016388 if test -n "$file_magic_test_file"; then
16389 case $deplibs_check_method in
16390 "file_magic "*)
16391 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Cristy15f22012015-11-14 17:51:30 -050016392 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000016393 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16394 $EGREP "$file_magic_regex" > /dev/null; then
16395 :
16396 else
16397 cat <<_LT_EOF 1>&2
16398
16399*** Warning: the command libtool uses to detect shared libraries,
16400*** $file_magic_cmd, produces output that libtool cannot recognize.
16401*** The result is that libtool may fail to recognize shared libraries
16402*** as such. This will affect the creation of libtool libraries that
16403*** depend on shared libraries, but programs linked with such libtool
16404*** libraries will work regardless of this problem. Nevertheless, you
16405*** may want to report the problem to your system manager and/or to
16406*** bug-libtool@gnu.org
16407
16408_LT_EOF
16409 fi ;;
16410 esac
16411 fi
16412 break
16413 fi
16414 done
Cristy15f22012015-11-14 17:51:30 -050016415 IFS=$lt_save_ifs
16416 MAGIC_CMD=$lt_save_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000016417 ;;
16418esac
16419fi
16420
Cristy15f22012015-11-14 17:51:30 -050016421MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000016422if test -n "$MAGIC_CMD"; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16424$as_echo "$MAGIC_CMD" >&6; }
16425else
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427$as_echo "no" >&6; }
16428fi
16429
16430
16431
16432
16433
16434if test -z "$lt_cv_path_MAGIC_CMD"; then
16435 if test -n "$ac_tool_prefix"; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16437$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016438if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016439 $as_echo_n "(cached) " >&6
16440else
16441 case $MAGIC_CMD in
16442[\\/*] | ?:[\\/]*)
Cristy15f22012015-11-14 17:51:30 -050016443 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000016444 ;;
16445*)
Cristy15f22012015-11-14 17:51:30 -050016446 lt_save_MAGIC_CMD=$MAGIC_CMD
16447 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000016448 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16449 for ac_dir in $ac_dummy; do
Cristy15f22012015-11-14 17:51:30 -050016450 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000016451 test -z "$ac_dir" && ac_dir=.
Cristy15f22012015-11-14 17:51:30 -050016452 if test -f "$ac_dir/file"; then
16453 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
cristy73bd4a52010-10-05 11:24:23 +000016454 if test -n "$file_magic_test_file"; then
16455 case $deplibs_check_method in
16456 "file_magic "*)
16457 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Cristy15f22012015-11-14 17:51:30 -050016458 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000016459 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16460 $EGREP "$file_magic_regex" > /dev/null; then
16461 :
16462 else
16463 cat <<_LT_EOF 1>&2
16464
16465*** Warning: the command libtool uses to detect shared libraries,
16466*** $file_magic_cmd, produces output that libtool cannot recognize.
16467*** The result is that libtool may fail to recognize shared libraries
16468*** as such. This will affect the creation of libtool libraries that
16469*** depend on shared libraries, but programs linked with such libtool
16470*** libraries will work regardless of this problem. Nevertheless, you
16471*** may want to report the problem to your system manager and/or to
16472*** bug-libtool@gnu.org
16473
16474_LT_EOF
16475 fi ;;
16476 esac
16477 fi
16478 break
16479 fi
16480 done
Cristy15f22012015-11-14 17:51:30 -050016481 IFS=$lt_save_ifs
16482 MAGIC_CMD=$lt_save_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000016483 ;;
16484esac
16485fi
16486
Cristy15f22012015-11-14 17:51:30 -050016487MAGIC_CMD=$lt_cv_path_MAGIC_CMD
cristy73bd4a52010-10-05 11:24:23 +000016488if test -n "$MAGIC_CMD"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16490$as_echo "$MAGIC_CMD" >&6; }
16491else
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493$as_echo "no" >&6; }
16494fi
16495
16496
16497 else
16498 MAGIC_CMD=:
16499 fi
16500fi
16501
16502 fi
16503 ;;
16504esac
16505
16506# Use C for the default configuration in the libtool script
16507
Cristy15f22012015-11-14 17:51:30 -050016508lt_save_CC=$CC
cristy73bd4a52010-10-05 11:24:23 +000016509ac_ext=c
16510ac_cpp='$CPP $CPPFLAGS'
16511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16513ac_compiler_gnu=$ac_cv_c_compiler_gnu
16514
16515
16516# Source file extension for C test sources.
16517ac_ext=c
16518
16519# Object file extension for compiled C test sources.
16520objext=o
16521objext=$objext
16522
16523# Code to be used in simple compile tests
16524lt_simple_compile_test_code="int some_variable = 0;"
16525
16526# Code to be used in simple link tests
16527lt_simple_link_test_code='int main(){return(0);}'
16528
16529
16530
16531
16532
16533
16534
16535# If no C compiler was specified, use CC.
16536LTCC=${LTCC-"$CC"}
16537
16538# If no C compiler flags were specified, use CFLAGS.
16539LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16540
16541# Allow CC to be a program name with arguments.
16542compiler=$CC
16543
16544# Save the default compiler, since it gets overwritten when the other
16545# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16546compiler_DEFAULT=$CC
16547
16548# save warnings/boilerplate of simple test code
16549ac_outfile=conftest.$ac_objext
16550echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16551eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16552_lt_compiler_boilerplate=`cat conftest.err`
16553$RM conftest*
16554
16555ac_outfile=conftest.$ac_objext
16556echo "$lt_simple_link_test_code" >conftest.$ac_ext
16557eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16558_lt_linker_boilerplate=`cat conftest.err`
16559$RM -r conftest*
16560
16561
16562## CAVEAT EMPTOR:
16563## There is no encapsulation within the following macros, do not change
16564## the running order or otherwise move them around unless you know exactly
16565## what you are doing...
16566if test -n "$compiler"; then
16567
16568lt_prog_compiler_no_builtin_flag=
16569
Cristy15f22012015-11-14 17:51:30 -050016570if test yes = "$GCC"; then
cristy0c60a692010-11-04 01:09:47 +000016571 case $cc_basename in
16572 nvcc*)
16573 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16574 *)
16575 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16576 esac
cristy73bd4a52010-10-05 11:24:23 +000016577
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16579$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016580if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016581 $as_echo_n "(cached) " >&6
16582else
16583 lt_cv_prog_compiler_rtti_exceptions=no
16584 ac_outfile=conftest.$ac_objext
16585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050016586 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000016587 # Insert the option either (1) after the last *FLAGS variable, or
16588 # (2) before a word containing "conftest.", or (3) at the end.
16589 # Note that $ac_compile itself does not contain backslashes and begins
16590 # with a dollar sign (not a hyphen), so the echo should work correctly.
16591 # The option is referenced via a variable to avoid confusing sed.
16592 lt_compile=`echo "$ac_compile" | $SED \
16593 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16595 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000016596 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000016597 (eval "$lt_compile" 2>conftest.err)
16598 ac_status=$?
16599 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000016600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000016601 if (exit $ac_status) && test -s "$ac_outfile"; then
16602 # The compiler can only warn and ignore the option if not recognized
16603 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000016604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000016605 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16606 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16607 lt_cv_prog_compiler_rtti_exceptions=yes
16608 fi
16609 fi
16610 $RM conftest*
16611
16612fi
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16614$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16615
Cristy15f22012015-11-14 17:51:30 -050016616if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
cristy73bd4a52010-10-05 11:24:23 +000016617 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16618else
16619 :
16620fi
16621
16622fi
16623
16624
16625
16626
16627
16628
16629 lt_prog_compiler_wl=
16630lt_prog_compiler_pic=
16631lt_prog_compiler_static=
16632
cristy73bd4a52010-10-05 11:24:23 +000016633
Cristy15f22012015-11-14 17:51:30 -050016634 if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000016635 lt_prog_compiler_wl='-Wl,'
16636 lt_prog_compiler_static='-static'
16637
16638 case $host_os in
16639 aix*)
16640 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050016641 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000016642 # AIX 5 now supports IA64 processor
16643 lt_prog_compiler_static='-Bstatic'
16644 fi
Cristy15f22012015-11-14 17:51:30 -050016645 lt_prog_compiler_pic='-fPIC'
cristy73bd4a52010-10-05 11:24:23 +000016646 ;;
16647
16648 amigaos*)
16649 case $host_cpu in
16650 powerpc)
16651 # see comment about AmigaOS4 .so support
16652 lt_prog_compiler_pic='-fPIC'
16653 ;;
16654 m68k)
16655 # FIXME: we need at least 68020 code to build shared libraries, but
Cristy15f22012015-11-14 17:51:30 -050016656 # adding the '-m68020' flag to GCC prevents building anything better,
16657 # like '-m68040'.
cristy73bd4a52010-10-05 11:24:23 +000016658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16659 ;;
16660 esac
16661 ;;
16662
16663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16664 # PIC is the default for these OSes.
16665 ;;
16666
16667 mingw* | cygwin* | pw32* | os2* | cegcc*)
16668 # This hack is so that the source file can tell whether it is being
16669 # built for inclusion in a dll (and should export symbols for example).
16670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16671 # (--disable-auto-import) libraries
16672 lt_prog_compiler_pic='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050016673 case $host_os in
16674 os2*)
16675 lt_prog_compiler_static='$wl-static'
16676 ;;
16677 esac
cristy73bd4a52010-10-05 11:24:23 +000016678 ;;
16679
16680 darwin* | rhapsody*)
16681 # PIC is the default on this platform
16682 # Common symbols not allowed in MH_DYLIB files
16683 lt_prog_compiler_pic='-fno-common'
16684 ;;
16685
cristy0c60a692010-11-04 01:09:47 +000016686 haiku*)
16687 # PIC is the default for Haiku.
16688 # The "-static" flag exists, but is broken.
16689 lt_prog_compiler_static=
16690 ;;
16691
cristy73bd4a52010-10-05 11:24:23 +000016692 hpux*)
16693 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16694 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16695 # sets the default TLS model and affects inlining.
16696 case $host_cpu in
16697 hppa*64*)
16698 # +Z the default
16699 ;;
16700 *)
16701 lt_prog_compiler_pic='-fPIC'
16702 ;;
16703 esac
16704 ;;
16705
16706 interix[3-9]*)
16707 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16708 # Instead, we relocate shared libraries at runtime.
16709 ;;
16710
16711 msdosdjgpp*)
16712 # Just because we use GCC doesn't mean we suddenly get shared libraries
16713 # on systems that don't support them.
16714 lt_prog_compiler_can_build_shared=no
16715 enable_shared=no
16716 ;;
16717
16718 *nto* | *qnx*)
16719 # QNX uses GNU C++, but need to define -shared option too, otherwise
16720 # it will coredump.
16721 lt_prog_compiler_pic='-fPIC -shared'
16722 ;;
16723
16724 sysv4*MP*)
16725 if test -d /usr/nec; then
16726 lt_prog_compiler_pic=-Kconform_pic
16727 fi
16728 ;;
16729
16730 *)
16731 lt_prog_compiler_pic='-fPIC'
16732 ;;
16733 esac
cristy0c60a692010-11-04 01:09:47 +000016734
16735 case $cc_basename in
16736 nvcc*) # Cuda Compiler Driver 2.2
16737 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000016738 if test -n "$lt_prog_compiler_pic"; then
16739 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16740 fi
cristy0c60a692010-11-04 01:09:47 +000016741 ;;
16742 esac
cristy73bd4a52010-10-05 11:24:23 +000016743 else
16744 # PORTME Check for flag to pass linker flags through the system compiler.
16745 case $host_os in
16746 aix*)
16747 lt_prog_compiler_wl='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050016748 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000016749 # AIX 5 now supports IA64 processor
16750 lt_prog_compiler_static='-Bstatic'
16751 else
16752 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16753 fi
16754 ;;
16755
Cristy15f22012015-11-14 17:51:30 -050016756 darwin* | rhapsody*)
16757 # PIC is the default on this platform
16758 # Common symbols not allowed in MH_DYLIB files
16759 lt_prog_compiler_pic='-fno-common'
16760 case $cc_basename in
16761 nagfor*)
16762 # NAG Fortran compiler
16763 lt_prog_compiler_wl='-Wl,-Wl,,'
16764 lt_prog_compiler_pic='-PIC'
16765 lt_prog_compiler_static='-Bstatic'
16766 ;;
16767 esac
16768 ;;
16769
cristy73bd4a52010-10-05 11:24:23 +000016770 mingw* | cygwin* | pw32* | os2* | cegcc*)
16771 # This hack is so that the source file can tell whether it is being
16772 # built for inclusion in a dll (and should export symbols for example).
16773 lt_prog_compiler_pic='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050016774 case $host_os in
16775 os2*)
16776 lt_prog_compiler_static='$wl-static'
16777 ;;
16778 esac
cristy73bd4a52010-10-05 11:24:23 +000016779 ;;
16780
16781 hpux9* | hpux10* | hpux11*)
16782 lt_prog_compiler_wl='-Wl,'
16783 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16784 # not for PA HP-UX.
16785 case $host_cpu in
16786 hppa*64*|ia64*)
16787 # +Z the default
16788 ;;
16789 *)
16790 lt_prog_compiler_pic='+Z'
16791 ;;
16792 esac
16793 # Is there a better lt_prog_compiler_static that works with the bundled CC?
Cristy15f22012015-11-14 17:51:30 -050016794 lt_prog_compiler_static='$wl-a ${wl}archive'
cristy73bd4a52010-10-05 11:24:23 +000016795 ;;
16796
16797 irix5* | irix6* | nonstopux*)
16798 lt_prog_compiler_wl='-Wl,'
16799 # PIC (with -KPIC) is the default.
16800 lt_prog_compiler_static='-non_shared'
16801 ;;
16802
Cristy15f22012015-11-14 17:51:30 -050016803 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000016804 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050016805 # old Intel for x86_64, which still supported -KPIC.
cristy73bd4a52010-10-05 11:24:23 +000016806 ecc*)
16807 lt_prog_compiler_wl='-Wl,'
16808 lt_prog_compiler_pic='-KPIC'
16809 lt_prog_compiler_static='-static'
16810 ;;
16811 # icc used to be incompatible with GCC.
16812 # ICC 10 doesn't accept -KPIC any more.
16813 icc* | ifort*)
16814 lt_prog_compiler_wl='-Wl,'
16815 lt_prog_compiler_pic='-fPIC'
16816 lt_prog_compiler_static='-static'
16817 ;;
16818 # Lahey Fortran 8.1.
16819 lf95*)
16820 lt_prog_compiler_wl='-Wl,'
16821 lt_prog_compiler_pic='--shared'
16822 lt_prog_compiler_static='--static'
16823 ;;
cristyda16f162011-02-19 23:52:17 +000016824 nagfor*)
16825 # NAG Fortran compiler
16826 lt_prog_compiler_wl='-Wl,-Wl,,'
16827 lt_prog_compiler_pic='-PIC'
16828 lt_prog_compiler_static='-Bstatic'
16829 ;;
Cristy15f22012015-11-14 17:51:30 -050016830 tcc*)
16831 # Fabrice Bellard et al's Tiny C Compiler
16832 lt_prog_compiler_wl='-Wl,'
16833 lt_prog_compiler_pic='-fPIC'
16834 lt_prog_compiler_static='-static'
16835 ;;
cristy0c60a692010-11-04 01:09:47 +000016836 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000016837 # Portland Group compilers (*not* the Pentium gcc compiler,
16838 # which looks to be a dead project)
16839 lt_prog_compiler_wl='-Wl,'
16840 lt_prog_compiler_pic='-fpic'
16841 lt_prog_compiler_static='-Bstatic'
16842 ;;
16843 ccc*)
16844 lt_prog_compiler_wl='-Wl,'
16845 # All Alpha code is PIC.
16846 lt_prog_compiler_static='-non_shared'
16847 ;;
cristy0c60a692010-11-04 01:09:47 +000016848 xl* | bgxl* | bgf* | mpixl*)
16849 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000016850 lt_prog_compiler_wl='-Wl,'
16851 lt_prog_compiler_pic='-qpic'
16852 lt_prog_compiler_static='-qstaticlink'
16853 ;;
16854 *)
16855 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000016856 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000016857 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16858 lt_prog_compiler_pic='-KPIC'
16859 lt_prog_compiler_static='-Bstatic'
16860 lt_prog_compiler_wl=''
16861 ;;
cristy99bd5232011-12-07 14:38:20 +000016862 *Sun\ F* | *Sun*Fortran*)
16863 lt_prog_compiler_pic='-KPIC'
16864 lt_prog_compiler_static='-Bstatic'
16865 lt_prog_compiler_wl='-Qoption ld '
16866 ;;
cristy73bd4a52010-10-05 11:24:23 +000016867 *Sun\ C*)
16868 # Sun C 5.9
16869 lt_prog_compiler_pic='-KPIC'
16870 lt_prog_compiler_static='-Bstatic'
16871 lt_prog_compiler_wl='-Wl,'
16872 ;;
cristy99bd5232011-12-07 14:38:20 +000016873 *Intel*\ [CF]*Compiler*)
16874 lt_prog_compiler_wl='-Wl,'
16875 lt_prog_compiler_pic='-fPIC'
16876 lt_prog_compiler_static='-static'
16877 ;;
16878 *Portland\ Group*)
16879 lt_prog_compiler_wl='-Wl,'
16880 lt_prog_compiler_pic='-fpic'
16881 lt_prog_compiler_static='-Bstatic'
16882 ;;
cristy73bd4a52010-10-05 11:24:23 +000016883 esac
16884 ;;
16885 esac
16886 ;;
16887
16888 newsos6)
16889 lt_prog_compiler_pic='-KPIC'
16890 lt_prog_compiler_static='-Bstatic'
16891 ;;
16892
16893 *nto* | *qnx*)
16894 # QNX uses GNU C++, but need to define -shared option too, otherwise
16895 # it will coredump.
16896 lt_prog_compiler_pic='-fPIC -shared'
16897 ;;
16898
16899 osf3* | osf4* | osf5*)
16900 lt_prog_compiler_wl='-Wl,'
16901 # All OSF/1 code is PIC.
16902 lt_prog_compiler_static='-non_shared'
16903 ;;
16904
16905 rdos*)
16906 lt_prog_compiler_static='-non_shared'
16907 ;;
16908
16909 solaris*)
16910 lt_prog_compiler_pic='-KPIC'
16911 lt_prog_compiler_static='-Bstatic'
16912 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000016913 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000016914 lt_prog_compiler_wl='-Qoption ld ';;
16915 *)
16916 lt_prog_compiler_wl='-Wl,';;
16917 esac
16918 ;;
16919
16920 sunos4*)
16921 lt_prog_compiler_wl='-Qoption ld '
16922 lt_prog_compiler_pic='-PIC'
16923 lt_prog_compiler_static='-Bstatic'
16924 ;;
16925
16926 sysv4 | sysv4.2uw2* | sysv4.3*)
16927 lt_prog_compiler_wl='-Wl,'
16928 lt_prog_compiler_pic='-KPIC'
16929 lt_prog_compiler_static='-Bstatic'
16930 ;;
16931
16932 sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050016933 if test -d /usr/nec; then
cristy73bd4a52010-10-05 11:24:23 +000016934 lt_prog_compiler_pic='-Kconform_pic'
16935 lt_prog_compiler_static='-Bstatic'
16936 fi
16937 ;;
16938
16939 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16940 lt_prog_compiler_wl='-Wl,'
16941 lt_prog_compiler_pic='-KPIC'
16942 lt_prog_compiler_static='-Bstatic'
16943 ;;
16944
16945 unicos*)
16946 lt_prog_compiler_wl='-Wl,'
16947 lt_prog_compiler_can_build_shared=no
16948 ;;
16949
16950 uts4*)
16951 lt_prog_compiler_pic='-pic'
16952 lt_prog_compiler_static='-Bstatic'
16953 ;;
16954
16955 *)
16956 lt_prog_compiler_can_build_shared=no
16957 ;;
16958 esac
16959 fi
16960
16961case $host_os in
Cristy15f22012015-11-14 17:51:30 -050016962 # For platforms that do not support PIC, -DPIC is meaningless:
cristy73bd4a52010-10-05 11:24:23 +000016963 *djgpp*)
16964 lt_prog_compiler_pic=
16965 ;;
16966 *)
16967 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16968 ;;
16969esac
cristy73bd4a52010-10-05 11:24:23 +000016970
cristyda16f162011-02-19 23:52:17 +000016971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16972$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16973if ${lt_cv_prog_compiler_pic+:} false; then :
16974 $as_echo_n "(cached) " >&6
16975else
16976 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16979$as_echo "$lt_cv_prog_compiler_pic" >&6; }
16980lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000016981
16982#
16983# Check to make sure the PIC flag actually works.
16984#
16985if test -n "$lt_prog_compiler_pic"; then
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16987$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016988if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016989 $as_echo_n "(cached) " >&6
16990else
16991 lt_cv_prog_compiler_pic_works=no
16992 ac_outfile=conftest.$ac_objext
16993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050016994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000016995 # Insert the option either (1) after the last *FLAGS variable, or
16996 # (2) before a word containing "conftest.", or (3) at the end.
16997 # Note that $ac_compile itself does not contain backslashes and begins
16998 # with a dollar sign (not a hyphen), so the echo should work correctly.
16999 # The option is referenced via a variable to avoid confusing sed.
17000 lt_compile=`echo "$ac_compile" | $SED \
17001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17003 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017004 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017005 (eval "$lt_compile" 2>conftest.err)
17006 ac_status=$?
17007 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017009 if (exit $ac_status) && test -s "$ac_outfile"; then
17010 # The compiler can only warn and ignore the option if not recognized
17011 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000017012 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17015 lt_cv_prog_compiler_pic_works=yes
17016 fi
17017 fi
17018 $RM conftest*
17019
17020fi
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17022$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17023
Cristy15f22012015-11-14 17:51:30 -050017024if test yes = "$lt_cv_prog_compiler_pic_works"; then
cristy73bd4a52010-10-05 11:24:23 +000017025 case $lt_prog_compiler_pic in
17026 "" | " "*) ;;
17027 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17028 esac
17029else
17030 lt_prog_compiler_pic=
17031 lt_prog_compiler_can_build_shared=no
17032fi
17033
17034fi
17035
17036
17037
17038
17039
17040
cristyda16f162011-02-19 23:52:17 +000017041
17042
17043
17044
17045
cristy73bd4a52010-10-05 11:24:23 +000017046#
17047# Check to make sure the static flag actually works.
17048#
17049wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17051$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017052if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017053 $as_echo_n "(cached) " >&6
17054else
17055 lt_cv_prog_compiler_static_works=no
Cristy15f22012015-11-14 17:51:30 -050017056 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017057 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17058 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17059 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17060 # The linker can only warn and ignore the option if not recognized
17061 # So say no if there are warnings
17062 if test -s conftest.err; then
17063 # Append any errors to the config.log.
17064 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000017065 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017066 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067 if diff conftest.exp conftest.er2 >/dev/null; then
17068 lt_cv_prog_compiler_static_works=yes
17069 fi
17070 else
17071 lt_cv_prog_compiler_static_works=yes
17072 fi
17073 fi
17074 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050017075 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017076
17077fi
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17079$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17080
Cristy15f22012015-11-14 17:51:30 -050017081if test yes = "$lt_cv_prog_compiler_static_works"; then
cristy73bd4a52010-10-05 11:24:23 +000017082 :
17083else
17084 lt_prog_compiler_static=
17085fi
17086
17087
17088
17089
17090
17091
17092
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17094$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017095if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017096 $as_echo_n "(cached) " >&6
17097else
17098 lt_cv_prog_compiler_c_o=no
17099 $RM -r conftest 2>/dev/null
17100 mkdir conftest
17101 cd conftest
17102 mkdir out
17103 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17104
17105 lt_compiler_flag="-o out/conftest2.$ac_objext"
17106 # Insert the option either (1) after the last *FLAGS variable, or
17107 # (2) before a word containing "conftest.", or (3) at the end.
17108 # Note that $ac_compile itself does not contain backslashes and begins
17109 # with a dollar sign (not a hyphen), so the echo should work correctly.
17110 lt_compile=`echo "$ac_compile" | $SED \
17111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17113 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017114 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017115 (eval "$lt_compile" 2>out/conftest.err)
17116 ac_status=$?
17117 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017119 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17120 then
17121 # The compiler can only warn and ignore the option if not recognized
17122 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017123 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017124 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17125 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17126 lt_cv_prog_compiler_c_o=yes
17127 fi
17128 fi
17129 chmod u+w . 2>&5
17130 $RM conftest*
17131 # SGI C++ compiler will create directory out/ii_files/ for
17132 # template instantiation
17133 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17134 $RM out/* && rmdir out
17135 cd ..
17136 $RM -r conftest
17137 $RM conftest*
17138
17139fi
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17141$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17142
17143
17144
17145
17146
17147
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017150if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017151 $as_echo_n "(cached) " >&6
17152else
17153 lt_cv_prog_compiler_c_o=no
17154 $RM -r conftest 2>/dev/null
17155 mkdir conftest
17156 cd conftest
17157 mkdir out
17158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17159
17160 lt_compiler_flag="-o out/conftest2.$ac_objext"
17161 # Insert the option either (1) after the last *FLAGS variable, or
17162 # (2) before a word containing "conftest.", or (3) at the end.
17163 # Note that $ac_compile itself does not contain backslashes and begins
17164 # with a dollar sign (not a hyphen), so the echo should work correctly.
17165 lt_compile=`echo "$ac_compile" | $SED \
17166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000017169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000017170 (eval "$lt_compile" 2>out/conftest.err)
17171 ac_status=$?
17172 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000017173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000017174 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17175 then
17176 # The compiler can only warn and ignore the option if not recognized
17177 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000017178 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000017179 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17180 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17181 lt_cv_prog_compiler_c_o=yes
17182 fi
17183 fi
17184 chmod u+w . 2>&5
17185 $RM conftest*
17186 # SGI C++ compiler will create directory out/ii_files/ for
17187 # template instantiation
17188 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17189 $RM out/* && rmdir out
17190 cd ..
17191 $RM -r conftest
17192 $RM conftest*
17193
17194fi
17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17196$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17197
17198
17199
17200
Cristy15f22012015-11-14 17:51:30 -050017201hard_links=nottested
17202if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
cristy73bd4a52010-10-05 11:24:23 +000017203 # do not overwrite the value of need_locks provided by the user
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17205$as_echo_n "checking if we can lock with hard links... " >&6; }
17206 hard_links=yes
17207 $RM conftest*
17208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17209 touch conftest.a
17210 ln conftest.a conftest.b 2>&5 || hard_links=no
17211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17213$as_echo "$hard_links" >&6; }
Cristy15f22012015-11-14 17:51:30 -050017214 if test no = "$hard_links"; then
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17216$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cristy73bd4a52010-10-05 11:24:23 +000017217 need_locks=warn
17218 fi
17219else
17220 need_locks=no
17221fi
17222
17223
17224
17225
17226
17227
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17229$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17230
17231 runpath_var=
17232 allow_undefined_flag=
17233 always_export_symbols=no
17234 archive_cmds=
17235 archive_expsym_cmds=
17236 compiler_needs_object=no
17237 enable_shared_with_static_runtimes=no
17238 export_dynamic_flag_spec=
17239 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17240 hardcode_automatic=no
17241 hardcode_direct=no
17242 hardcode_direct_absolute=no
17243 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000017244 hardcode_libdir_separator=
17245 hardcode_minus_L=no
17246 hardcode_shlibpath_var=unsupported
17247 inherit_rpath=no
17248 link_all_deplibs=unknown
17249 module_cmds=
17250 module_expsym_cmds=
17251 old_archive_from_new_cmds=
17252 old_archive_from_expsyms_cmds=
17253 thread_safe_flag_spec=
17254 whole_archive_flag_spec=
17255 # include_expsyms should be a list of space-separated symbols to be *always*
17256 # included in the symbol list
17257 include_expsyms=
17258 # exclude_expsyms can be an extended regexp of symbols to exclude
Cristy15f22012015-11-14 17:51:30 -050017259 # it will be wrapped by ' (' and ')$', so one must not match beginning or
17260 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17261 # as well as any symbol that contains 'd'.
cristy73bd4a52010-10-05 11:24:23 +000017262 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17263 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17264 # platforms (ab)use it in PIC code, but their linkers get confused if
17265 # the symbol is explicitly referenced. Since portable code cannot
17266 # rely on this symbol name, it's probably fine to never include it in
17267 # preloaded symbol tables.
17268 # Exclude shared library initialization/finalization symbols.
17269 extract_expsyms_cmds=
17270
17271 case $host_os in
17272 cygwin* | mingw* | pw32* | cegcc*)
17273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17274 # When not using gcc, we currently assume that we are using
17275 # Microsoft Visual C++.
Cristy15f22012015-11-14 17:51:30 -050017276 if test yes != "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000017277 with_gnu_ld=no
17278 fi
17279 ;;
17280 interix*)
17281 # we just hope/assume this is gcc and not c89 (= MSVC++)
17282 with_gnu_ld=yes
17283 ;;
Cristy15f22012015-11-14 17:51:30 -050017284 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000017285 with_gnu_ld=no
17286 ;;
17287 esac
17288
17289 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000017290
17291 # On some targets, GNU ld is compatible enough with the native linker
17292 # that we're better off using the native interface for both.
17293 lt_use_gnu_ld_interface=no
Cristy15f22012015-11-14 17:51:30 -050017294 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000017295 case $host_os in
17296 aix*)
17297 # The AIX port of GNU ld has always aspired to compatibility
17298 # with the native linker. However, as the warning in the GNU ld
17299 # block says, versions before 2.19.5* couldn't really create working
17300 # shared libraries, regardless of the interface used.
17301 case `$LD -v 2>&1` in
17302 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17303 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17304 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17305 *)
17306 lt_use_gnu_ld_interface=yes
17307 ;;
17308 esac
17309 ;;
17310 *)
17311 lt_use_gnu_ld_interface=yes
17312 ;;
17313 esac
17314 fi
17315
Cristy15f22012015-11-14 17:51:30 -050017316 if test yes = "$lt_use_gnu_ld_interface"; then
cristy73bd4a52010-10-05 11:24:23 +000017317 # If archive_cmds runs LD, not CC, wlarc should be empty
Cristy15f22012015-11-14 17:51:30 -050017318 wlarc='$wl'
cristy73bd4a52010-10-05 11:24:23 +000017319
17320 # Set some defaults for GNU ld with shared library support. These
17321 # are reset later if shared libraries are not supported. Putting them
17322 # here allows them to be overridden if necessary.
17323 runpath_var=LD_RUN_PATH
Cristy15f22012015-11-14 17:51:30 -050017324 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17325 export_dynamic_flag_spec='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000017326 # ancient GNU ld didn't support --whole-archive et. al.
17327 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017328 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000017329 else
17330 whole_archive_flag_spec=
17331 fi
17332 supports_anon_versioning=no
Cristy15f22012015-11-14 17:51:30 -050017333 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000017334 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000017335 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17336 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17337 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17338 *\ 2.11.*) ;; # other 2.11 versions
17339 *) supports_anon_versioning=yes ;;
17340 esac
17341
17342 # See if GNU ld supports shared libraries.
17343 case $host_os in
17344 aix[3-9]*)
17345 # On AIX/PPC, the GNU linker is very broken
Cristy15f22012015-11-14 17:51:30 -050017346 if test ia64 != "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000017347 ld_shlibs=no
17348 cat <<_LT_EOF 1>&2
17349
cristy0c60a692010-11-04 01:09:47 +000017350*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000017351*** to be unable to reliably create shared libraries on AIX.
17352*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000017353*** really care for shared libraries, you may want to install binutils
17354*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17355*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000017356
17357_LT_EOF
17358 fi
17359 ;;
17360
17361 amigaos*)
17362 case $host_cpu in
17363 powerpc)
17364 # see comment about AmigaOS4 .so support
Cristy15f22012015-11-14 17:51:30 -050017365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017366 archive_expsym_cmds=''
17367 ;;
17368 m68k)
17369 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)'
17370 hardcode_libdir_flag_spec='-L$libdir'
17371 hardcode_minus_L=yes
17372 ;;
17373 esac
17374 ;;
17375
17376 beos*)
17377 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17378 allow_undefined_flag=unsupported
17379 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17380 # support --undefined. This deserves some investigation. FIXME
Cristy15f22012015-11-14 17:51:30 -050017381 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017382 else
17383 ld_shlibs=no
17384 fi
17385 ;;
17386
17387 cygwin* | mingw* | pw32* | cegcc*)
17388 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17389 # as there is no search path for DLLs.
17390 hardcode_libdir_flag_spec='-L$libdir'
Cristy15f22012015-11-14 17:51:30 -050017391 export_dynamic_flag_spec='$wl--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000017392 allow_undefined_flag=unsupported
17393 always_export_symbols=no
17394 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000017395 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'
17396 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 +000017397
17398 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017399 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17400 # If the export-symbols file already is a .def file, use it as
17401 # is; otherwise, prepend EXPORTS...
17402 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17403 cp $export_symbols $output_objdir/$soname.def;
17404 else
17405 echo EXPORTS > $output_objdir/$soname.def;
17406 cat $export_symbols >> $output_objdir/$soname.def;
17407 fi~
17408 $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 +000017409 else
17410 ld_shlibs=no
17411 fi
17412 ;;
17413
cristy0c60a692010-11-04 01:09:47 +000017414 haiku*)
Cristy15f22012015-11-14 17:51:30 -050017415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy0c60a692010-11-04 01:09:47 +000017416 link_all_deplibs=yes
17417 ;;
17418
Cristy15f22012015-11-14 17:51:30 -050017419 os2*)
17420 hardcode_libdir_flag_spec='-L$libdir'
17421 hardcode_minus_L=yes
17422 allow_undefined_flag=unsupported
17423 shrext_cmds=.dll
17424 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17425 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17426 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17427 $ECHO EXPORTS >> $output_objdir/$libname.def~
17428 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17429 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17430 emximp -o $lib $output_objdir/$libname.def'
17431 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17432 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17433 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17434 $ECHO EXPORTS >> $output_objdir/$libname.def~
17435 prefix_cmds="$SED"~
17436 if test EXPORTS = "`$SED 1q $export_symbols`"; then
17437 prefix_cmds="$prefix_cmds -e 1d";
17438 fi~
17439 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17440 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17441 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17442 emximp -o $lib $output_objdir/$libname.def'
17443 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17444 enable_shared_with_static_runtimes=yes
17445 ;;
17446
cristy73bd4a52010-10-05 11:24:23 +000017447 interix[3-9]*)
17448 hardcode_direct=no
17449 hardcode_shlibpath_var=no
Cristy15f22012015-11-14 17:51:30 -050017450 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17451 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000017452 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17453 # Instead, shared libraries are loaded at an image base (0x10000000 by
17454 # default) and relocated if they conflict, which is a slow very memory
17455 # consuming and fragmenting process. To avoid this, we pick a random,
17456 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17457 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Cristy15f22012015-11-14 17:51:30 -050017458 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17459 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 +000017460 ;;
17461
cristy0c60a692010-11-04 01:09:47 +000017462 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000017463 tmp_diet=no
Cristy15f22012015-11-14 17:51:30 -050017464 if test linux-dietlibc = "$host_os"; then
cristy73bd4a52010-10-05 11:24:23 +000017465 case $cc_basename in
17466 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17467 esac
17468 fi
17469 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
Cristy15f22012015-11-14 17:51:30 -050017470 && test no = "$tmp_diet"
cristy73bd4a52010-10-05 11:24:23 +000017471 then
cristyda16f162011-02-19 23:52:17 +000017472 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000017473 tmp_sharedflag='-shared'
17474 case $cc_basename,$host_cpu in
17475 pgcc*) # Portland Group C compiler
Cristy15f22012015-11-14 17:51:30 -050017476 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 +000017477 tmp_addflag=' $pic_flag'
17478 ;;
cristy0c60a692010-11-04 01:09:47 +000017479 pgf77* | pgf90* | pgf95* | pgfortran*)
17480 # Portland Group f77 and f90 compilers
Cristy15f22012015-11-14 17:51:30 -050017481 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 +000017482 tmp_addflag=' $pic_flag -Mnomain' ;;
17483 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17484 tmp_addflag=' -i_dynamic' ;;
17485 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17486 tmp_addflag=' -i_dynamic -nofor_main' ;;
17487 ifc* | ifort*) # Intel Fortran compiler
17488 tmp_addflag=' -nofor_main' ;;
17489 lf95*) # Lahey Fortran 8.1
17490 whole_archive_flag_spec=
17491 tmp_sharedflag='--shared' ;;
Cristy15f22012015-11-14 17:51:30 -050017492 nagfor*) # NAGFOR 5.3
17493 tmp_sharedflag='-Wl,-shared' ;;
cristy0c60a692010-11-04 01:09:47 +000017494 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000017495 tmp_sharedflag='-qmkshrobj'
17496 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000017497 nvcc*) # Cuda Compiler Driver 2.2
Cristy15f22012015-11-14 17:51:30 -050017498 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 +000017499 compiler_needs_object=yes
17500 ;;
cristy73bd4a52010-10-05 11:24:23 +000017501 esac
17502 case `$CC -V 2>&1 | sed 5q` in
17503 *Sun\ C*) # Sun C 5.9
Cristy15f22012015-11-14 17:51:30 -050017504 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 +000017505 compiler_needs_object=yes
17506 tmp_sharedflag='-G' ;;
17507 *Sun\ F*) # Sun Fortran 8.3
17508 tmp_sharedflag='-G' ;;
17509 esac
Cristy15f22012015-11-14 17:51:30 -050017510 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017511
Cristy15f22012015-11-14 17:51:30 -050017512 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000017513 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050017514 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17515 echo "local: *; };" >> $output_objdir/$libname.ver~
17516 $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 +000017517 fi
17518
17519 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050017520 tcc*)
17521 export_dynamic_flag_spec='-rdynamic'
17522 ;;
cristy0c60a692010-11-04 01:09:47 +000017523 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000017524 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17525 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
Cristy15f22012015-11-14 17:51:30 -050017526 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy0c60a692010-11-04 01:09:47 +000017527 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Cristy15f22012015-11-14 17:51:30 -050017528 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000017529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050017530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17531 echo "local: *; };" >> $output_objdir/$libname.ver~
17532 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017533 fi
17534 ;;
17535 esac
17536 else
17537 ld_shlibs=no
17538 fi
17539 ;;
17540
17541 netbsd*)
17542 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17543 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17544 wlarc=
17545 else
Cristy15f22012015-11-14 17:51:30 -050017546 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17547 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 +000017548 fi
17549 ;;
17550
17551 solaris*)
17552 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17553 ld_shlibs=no
17554 cat <<_LT_EOF 1>&2
17555
17556*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17557*** create shared libraries on Solaris systems. Therefore, libtool
17558*** is disabling shared libraries support. We urge you to upgrade GNU
17559*** binutils to release 2.9.1 or newer. Another option is to modify
17560*** your PATH or compiler configuration so that the native linker is
17561*** used, and then restart.
17562
17563_LT_EOF
17564 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017565 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17566 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 +000017567 else
17568 ld_shlibs=no
17569 fi
17570 ;;
17571
17572 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17573 case `$LD -v 2>&1` in
17574 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17575 ld_shlibs=no
17576 cat <<_LT_EOF 1>&2
17577
Cristy15f22012015-11-14 17:51:30 -050017578*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
cristy73bd4a52010-10-05 11:24:23 +000017579*** reliably create shared libraries on SCO systems. Therefore, libtool
17580*** is disabling shared libraries support. We urge you to upgrade GNU
17581*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17582*** your PATH or compiler configuration so that the native linker is
17583*** used, and then restart.
17584
17585_LT_EOF
17586 ;;
17587 *)
17588 # For security reasons, it is highly recommended that you always
17589 # use absolute paths for naming shared libraries, and exclude the
17590 # DT_RUNPATH tag from executables and libraries. But doing so
17591 # requires that you compile everything twice, which is a pain.
17592 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017593 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17595 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 +000017596 else
17597 ld_shlibs=no
17598 fi
17599 ;;
17600 esac
17601 ;;
17602
17603 sunos4*)
17604 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17605 wlarc=
17606 hardcode_direct=yes
17607 hardcode_shlibpath_var=no
17608 ;;
17609
17610 *)
17611 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17613 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 +000017614 else
17615 ld_shlibs=no
17616 fi
17617 ;;
17618 esac
17619
Cristy15f22012015-11-14 17:51:30 -050017620 if test no = "$ld_shlibs"; then
cristy73bd4a52010-10-05 11:24:23 +000017621 runpath_var=
17622 hardcode_libdir_flag_spec=
17623 export_dynamic_flag_spec=
17624 whole_archive_flag_spec=
17625 fi
17626 else
17627 # PORTME fill in a description of your system's linker (not GNU ld)
17628 case $host_os in
17629 aix3*)
17630 allow_undefined_flag=unsupported
17631 always_export_symbols=yes
17632 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'
17633 # Note: this linker hardcodes the directories in LIBPATH if there
17634 # are no directories specified by -L.
17635 hardcode_minus_L=yes
Cristy15f22012015-11-14 17:51:30 -050017636 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
cristy73bd4a52010-10-05 11:24:23 +000017637 # Neither direct hardcoding nor static linking is supported with a
17638 # broken collect2.
17639 hardcode_direct=unsupported
17640 fi
17641 ;;
17642
17643 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050017644 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000017645 # On IA64, the linker does run time linking by default, so we don't
17646 # have to do anything special.
17647 aix_use_runtimelinking=no
17648 exp_sym_flag='-Bexport'
Cristy15f22012015-11-14 17:51:30 -050017649 no_entry_flag=
cristy73bd4a52010-10-05 11:24:23 +000017650 else
17651 # If we're using GNU nm, then we don't want the "-C" option.
Cristy15f22012015-11-14 17:51:30 -050017652 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17653 # Without the "-l" option, or with the "-B" option, AIX nm treats
17654 # weak defined symbols like other global defined symbols, whereas
17655 # GNU nm marks them as "W".
17656 # While the 'weak' keyword is ignored in the Export File, we need
17657 # it in the Import File for the 'aix-soname' feature, so we have
17658 # to replace the "-B" option with "-P" for AIX nm.
cristy73bd4a52010-10-05 11:24:23 +000017659 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050017660 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 +000017661 else
Cristy15f22012015-11-14 17:51:30 -050017662 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 +000017663 fi
17664 aix_use_runtimelinking=no
17665
17666 # Test if we are trying to use run time linking or normal
17667 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Cristy15f22012015-11-14 17:51:30 -050017668 # have runtime linking enabled, and use it for executables.
17669 # For shared libraries, we enable/disable runtime linking
17670 # depending on the kind of the shared library created -
17671 # when "with_aix_soname,aix_use_runtimelinking" is:
17672 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
17673 # "aix,yes" lib.so shared, rtl:yes, for executables
17674 # lib.a static archive
17675 # "both,no" lib.so.V(shr.o) shared, rtl:yes
17676 # lib.a(lib.so.V) shared, rtl:no, for executables
17677 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17678 # lib.a(lib.so.V) shared, rtl:no
17679 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
17680 # lib.a static archive
cristy73bd4a52010-10-05 11:24:23 +000017681 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17682 for ld_flag in $LDFLAGS; do
Cristy15f22012015-11-14 17:51:30 -050017683 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
cristy73bd4a52010-10-05 11:24:23 +000017684 aix_use_runtimelinking=yes
17685 break
17686 fi
17687 done
Cristy15f22012015-11-14 17:51:30 -050017688 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17689 # With aix-soname=svr4, we create the lib.so.V shared archives only,
17690 # so we don't have lib.a shared libs to link our executables.
17691 # We have to force runtime linking in this case.
17692 aix_use_runtimelinking=yes
17693 LDFLAGS="$LDFLAGS -Wl,-brtl"
17694 fi
cristy73bd4a52010-10-05 11:24:23 +000017695 ;;
17696 esac
17697
17698 exp_sym_flag='-bexport'
17699 no_entry_flag='-bnoentry'
17700 fi
17701
17702 # When large executables or shared objects are built, AIX ld can
17703 # have problems creating the table of contents. If linking a library
17704 # or program results in "error TOC overflow" add -mminimal-toc to
17705 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17706 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17707
17708 archive_cmds=''
17709 hardcode_direct=yes
17710 hardcode_direct_absolute=yes
17711 hardcode_libdir_separator=':'
17712 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050017713 file_list_spec='$wl-f,'
17714 case $with_aix_soname,$aix_use_runtimelinking in
17715 aix,*) ;; # traditional, no import file
17716 svr4,* | *,yes) # use import file
17717 # The Import File defines what to hardcode.
17718 hardcode_direct=no
17719 hardcode_direct_absolute=no
17720 ;;
17721 esac
cristy73bd4a52010-10-05 11:24:23 +000017722
Cristy15f22012015-11-14 17:51:30 -050017723 if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000017724 case $host_os in aix4.[012]|aix4.[012].*)
17725 # We only want to do this on AIX 4.2 and lower, the check
17726 # below for broken collect2 doesn't work under 4.3+
Cristy15f22012015-11-14 17:51:30 -050017727 collect2name=`$CC -print-prog-name=collect2`
cristy73bd4a52010-10-05 11:24:23 +000017728 if test -f "$collect2name" &&
17729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17730 then
17731 # We have reworked collect2
17732 :
17733 else
17734 # We have old collect2
17735 hardcode_direct=unsupported
17736 # It fails to find uninstalled libraries when the uninstalled
17737 # path is not listed in the libpath. Setting hardcode_minus_L
17738 # to unsupported forces relinking
17739 hardcode_minus_L=yes
17740 hardcode_libdir_flag_spec='-L$libdir'
17741 hardcode_libdir_separator=
17742 fi
17743 ;;
17744 esac
17745 shared_flag='-shared'
Cristy15f22012015-11-14 17:51:30 -050017746 if test yes = "$aix_use_runtimelinking"; then
17747 shared_flag="$shared_flag "'$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000017748 fi
Cristy15f22012015-11-14 17:51:30 -050017749 # Need to ensure runtime linking is disabled for the traditional
17750 # shared library, or the linker may eventually find shared libraries
17751 # /with/ Import File - we do not want to mix them.
17752 shared_flag_aix='-shared'
17753 shared_flag_svr4='-shared $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000017754 else
17755 # not using gcc
Cristy15f22012015-11-14 17:51:30 -050017756 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000017757 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17758 # chokes on -Wl,-G. The following line is correct:
17759 shared_flag='-G'
17760 else
Cristy15f22012015-11-14 17:51:30 -050017761 if test yes = "$aix_use_runtimelinking"; then
17762 shared_flag='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000017763 else
Cristy15f22012015-11-14 17:51:30 -050017764 shared_flag='$wl-bM:SRE'
cristy73bd4a52010-10-05 11:24:23 +000017765 fi
Cristy15f22012015-11-14 17:51:30 -050017766 shared_flag_aix='$wl-bM:SRE'
17767 shared_flag_svr4='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000017768 fi
17769 fi
17770
Cristy15f22012015-11-14 17:51:30 -050017771 export_dynamic_flag_spec='$wl-bexpall'
cristy73bd4a52010-10-05 11:24:23 +000017772 # It seems that -bexpall does not export symbols beginning with
17773 # underscore (_), so it is better to generate a list of symbols to export.
17774 always_export_symbols=yes
Cristy15f22012015-11-14 17:51:30 -050017775 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cristy73bd4a52010-10-05 11:24:23 +000017776 # Warning - without using the other runtime loading flags (-brtl),
17777 # -berok will link without error, but may produce a broken library.
17778 allow_undefined_flag='-berok'
17779 # Determine the default libpath from the value encoded in an
17780 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050017781 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000017782 aix_libpath=$lt_cv_aix_libpath
17783else
17784 if ${lt_cv_aix_libpath_+:} false; then :
17785 $as_echo_n "(cached) " >&6
17786else
17787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017788/* end confdefs.h. */
17789
17790int
17791main ()
17792{
17793
17794 ;
17795 return 0;
17796}
17797_ACEOF
17798if ac_fn_c_try_link "$LINENO"; then :
17799
cristyda16f162011-02-19 23:52:17 +000017800 lt_aix_libpath_sed='
17801 /Import File Strings/,/^$/ {
17802 /^0/ {
17803 s/^0 *\([^ ]*\) *$/\1/
17804 p
17805 }
17806 }'
17807 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17808 # Check for a 64-bit object if we didn't find anything.
17809 if test -z "$lt_cv_aix_libpath_"; then
17810 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17811 fi
cristy73bd4a52010-10-05 11:24:23 +000017812fi
17813rm -f core conftest.err conftest.$ac_objext \
17814 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017815 if test -z "$lt_cv_aix_libpath_"; then
Cristy15f22012015-11-14 17:51:30 -050017816 lt_cv_aix_libpath_=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000017817 fi
17818
17819fi
17820
17821 aix_libpath=$lt_cv_aix_libpath_
17822fi
cristy73bd4a52010-10-05 11:24:23 +000017823
Cristy15f22012015-11-14 17:51:30 -050017824 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17825 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 +000017826 else
Cristy15f22012015-11-14 17:51:30 -050017827 if test ia64 = "$host_cpu"; then
17828 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
cristy73bd4a52010-10-05 11:24:23 +000017829 allow_undefined_flag="-z nodefs"
Cristy15f22012015-11-14 17:51:30 -050017830 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 +000017831 else
17832 # Determine the default libpath from the value encoded in an
17833 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050017834 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000017835 aix_libpath=$lt_cv_aix_libpath
17836else
17837 if ${lt_cv_aix_libpath_+:} false; then :
17838 $as_echo_n "(cached) " >&6
17839else
17840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017841/* end confdefs.h. */
17842
17843int
17844main ()
17845{
17846
17847 ;
17848 return 0;
17849}
17850_ACEOF
17851if ac_fn_c_try_link "$LINENO"; then :
17852
cristyda16f162011-02-19 23:52:17 +000017853 lt_aix_libpath_sed='
17854 /Import File Strings/,/^$/ {
17855 /^0/ {
17856 s/^0 *\([^ ]*\) *$/\1/
17857 p
17858 }
17859 }'
17860 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17861 # Check for a 64-bit object if we didn't find anything.
17862 if test -z "$lt_cv_aix_libpath_"; then
17863 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864 fi
cristy73bd4a52010-10-05 11:24:23 +000017865fi
17866rm -f core conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017868 if test -z "$lt_cv_aix_libpath_"; then
Cristy15f22012015-11-14 17:51:30 -050017869 lt_cv_aix_libpath_=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000017870 fi
17871
17872fi
17873
17874 aix_libpath=$lt_cv_aix_libpath_
17875fi
cristy73bd4a52010-10-05 11:24:23 +000017876
Cristy15f22012015-11-14 17:51:30 -050017877 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000017878 # Warning - without using the other run time loading flags,
17879 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050017880 no_undefined_flag=' $wl-bernotok'
17881 allow_undefined_flag=' $wl-berok'
17882 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000017883 # We only use this code for GNU lds that support --whole-archive.
Cristy15f22012015-11-14 17:51:30 -050017884 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy0c60a692010-11-04 01:09:47 +000017885 else
17886 # Exported symbols can be pulled into shared objects from archives
17887 whole_archive_flag_spec='$convenience'
17888 fi
cristy73bd4a52010-10-05 11:24:23 +000017889 archive_cmds_need_lc=yes
Cristy15f22012015-11-14 17:51:30 -050017890 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17891 # -brtl affects multiple linker settings, -berok does not and is overridden later
17892 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17893 if test svr4 != "$with_aix_soname"; then
17894 # This is similar to how AIX traditionally builds its shared libraries.
17895 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'
17896 fi
17897 if test aix != "$with_aix_soname"; then
17898 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'
17899 else
17900 # used by -dlpreopen to get the symbols
17901 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
17902 fi
17903 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
cristy73bd4a52010-10-05 11:24:23 +000017904 fi
17905 fi
17906 ;;
17907
17908 amigaos*)
17909 case $host_cpu in
17910 powerpc)
17911 # see comment about AmigaOS4 .so support
Cristy15f22012015-11-14 17:51:30 -050017912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017913 archive_expsym_cmds=''
17914 ;;
17915 m68k)
17916 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)'
17917 hardcode_libdir_flag_spec='-L$libdir'
17918 hardcode_minus_L=yes
17919 ;;
17920 esac
17921 ;;
17922
17923 bsdi[45]*)
17924 export_dynamic_flag_spec=-rdynamic
17925 ;;
17926
17927 cygwin* | mingw* | pw32* | cegcc*)
17928 # When not using gcc, we currently assume that we are using
17929 # Microsoft Visual C++.
17930 # hardcode_libdir_flag_spec is actually meaningless, as there is
17931 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000017932 case $cc_basename in
17933 cl*)
17934 # Native MSVC
17935 hardcode_libdir_flag_spec=' '
17936 allow_undefined_flag=unsupported
17937 always_export_symbols=yes
17938 file_list_spec='@'
17939 # Tell ltmain to make .lib files, not .a files.
17940 libext=lib
17941 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050017942 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000017943 # FIXME: Setting linknames here is a bad hack.
Cristy15f22012015-11-14 17:51:30 -050017944 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17945 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
17946 cp "$export_symbols" "$output_objdir/$soname.def";
17947 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17948 else
17949 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17950 fi~
17951 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17952 linknames='
cristyda16f162011-02-19 23:52:17 +000017953 # The linker will not automatically build a static lib if we build a DLL.
17954 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17955 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000017956 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000017957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17958 # Don't use ranlib
17959 old_postinstall_cmds='chmod 644 $oldlib'
17960 postlink_cmds='lt_outputfile="@OUTPUT@"~
Cristy15f22012015-11-14 17:51:30 -050017961 lt_tool_outputfile="@TOOL_OUTPUT@"~
17962 case $lt_outputfile in
17963 *.exe|*.EXE) ;;
17964 *)
17965 lt_outputfile=$lt_outputfile.exe
17966 lt_tool_outputfile=$lt_tool_outputfile.exe
17967 ;;
17968 esac~
17969 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17970 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17971 $RM "$lt_outputfile.manifest";
17972 fi'
cristyda16f162011-02-19 23:52:17 +000017973 ;;
17974 *)
17975 # Assume MSVC wrapper
17976 hardcode_libdir_flag_spec=' '
17977 allow_undefined_flag=unsupported
17978 # Tell ltmain to make .lib files, not .a files.
17979 libext=lib
17980 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050017981 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000017982 # FIXME: Setting linknames here is a bad hack.
17983 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17984 # The linker will automatically build a .lib file if we build a DLL.
17985 old_archive_from_new_cmds='true'
17986 # FIXME: Should let the user specify the lib program.
17987 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17988 enable_shared_with_static_runtimes=yes
17989 ;;
17990 esac
cristy73bd4a52010-10-05 11:24:23 +000017991 ;;
17992
17993 darwin* | rhapsody*)
17994
17995
17996 archive_cmds_need_lc=no
17997 hardcode_direct=no
17998 hardcode_automatic=yes
17999 hardcode_shlibpath_var=unsupported
Cristy15f22012015-11-14 17:51:30 -050018000 if test yes = "$lt_cv_ld_force_load"; then
18001 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 +000018002
cristy0c60a692010-11-04 01:09:47 +000018003 else
18004 whole_archive_flag_spec=''
18005 fi
cristy73bd4a52010-10-05 11:24:23 +000018006 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050018007 allow_undefined_flag=$_lt_dar_allow_undefined
cristy73bd4a52010-10-05 11:24:23 +000018008 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050018009 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000018010 *) _lt_dar_can_shared=$GCC ;;
18011 esac
Cristy15f22012015-11-14 17:51:30 -050018012 if test yes = "$_lt_dar_can_shared"; then
cristy0c60a692010-11-04 01:09:47 +000018013 output_verbose_link_cmd=func_echo_all
Cristy15f22012015-11-14 17:51:30 -050018014 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18015 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18016 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"
18017 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 +000018018
18019 else
18020 ld_shlibs=no
18021 fi
18022
18023 ;;
18024
18025 dgux*)
18026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027 hardcode_libdir_flag_spec='-L$libdir'
18028 hardcode_shlibpath_var=no
18029 ;;
18030
cristy73bd4a52010-10-05 11:24:23 +000018031 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18032 # support. Future versions do this automatically, but an explicit c++rt0.o
18033 # does not break anything, and helps significantly (at the cost of a little
18034 # extra space).
18035 freebsd2.2*)
18036 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18037 hardcode_libdir_flag_spec='-R$libdir'
18038 hardcode_direct=yes
18039 hardcode_shlibpath_var=no
18040 ;;
18041
18042 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000018043 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018044 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18045 hardcode_direct=yes
18046 hardcode_minus_L=yes
18047 hardcode_shlibpath_var=no
18048 ;;
18049
18050 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18051 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000018052 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018053 hardcode_libdir_flag_spec='-R$libdir'
18054 hardcode_direct=yes
18055 hardcode_shlibpath_var=no
18056 ;;
18057
18058 hpux9*)
Cristy15f22012015-11-14 17:51:30 -050018059 if test yes = "$GCC"; then
18060 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 +000018061 else
Cristy15f22012015-11-14 17:51:30 -050018062 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 +000018063 fi
Cristy15f22012015-11-14 17:51:30 -050018064 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018065 hardcode_libdir_separator=:
18066 hardcode_direct=yes
18067
18068 # hardcode_minus_L: Not really in the search PATH,
18069 # but as the default location of the library.
18070 hardcode_minus_L=yes
Cristy15f22012015-11-14 17:51:30 -050018071 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000018072 ;;
18073
18074 hpux10*)
Cristy15f22012015-11-14 17:51:30 -050018075 if test yes,no = "$GCC,$with_gnu_ld"; then
18076 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 +000018077 else
18078 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18079 fi
Cristy15f22012015-11-14 17:51:30 -050018080 if test no = "$with_gnu_ld"; then
18081 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018082 hardcode_libdir_separator=:
18083 hardcode_direct=yes
18084 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050018085 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000018086 # hardcode_minus_L: Not really in the search PATH,
18087 # but as the default location of the library.
18088 hardcode_minus_L=yes
18089 fi
18090 ;;
18091
18092 hpux11*)
Cristy15f22012015-11-14 17:51:30 -050018093 if test yes,no = "$GCC,$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000018094 case $host_cpu in
18095 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050018096 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018097 ;;
18098 ia64*)
Cristy15f22012015-11-14 17:51:30 -050018099 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018100 ;;
18101 *)
Cristy15f22012015-11-14 17:51:30 -050018102 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 +000018103 ;;
18104 esac
18105 else
18106 case $host_cpu in
18107 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050018108 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018109 ;;
18110 ia64*)
Cristy15f22012015-11-14 17:51:30 -050018111 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018112 ;;
18113 *)
cristy0c60a692010-11-04 01:09:47 +000018114
18115 # Older versions of the 11.00 compiler do not understand -b yet
18116 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18118$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018119if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018120 $as_echo_n "(cached) " >&6
18121else
18122 lt_cv_prog_compiler__b=no
Cristy15f22012015-11-14 17:51:30 -050018123 save_LDFLAGS=$LDFLAGS
cristy0c60a692010-11-04 01:09:47 +000018124 LDFLAGS="$LDFLAGS -b"
18125 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18127 # The linker can only warn and ignore the option if not recognized
18128 # So say no if there are warnings
18129 if test -s conftest.err; then
18130 # Append any errors to the config.log.
18131 cat conftest.err 1>&5
18132 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18134 if diff conftest.exp conftest.er2 >/dev/null; then
18135 lt_cv_prog_compiler__b=yes
18136 fi
18137 else
18138 lt_cv_prog_compiler__b=yes
18139 fi
18140 fi
18141 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050018142 LDFLAGS=$save_LDFLAGS
cristy0c60a692010-11-04 01:09:47 +000018143
18144fi
18145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18146$as_echo "$lt_cv_prog_compiler__b" >&6; }
18147
Cristy15f22012015-11-14 17:51:30 -050018148if test yes = "$lt_cv_prog_compiler__b"; then
18149 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 +000018150else
18151 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18152fi
18153
cristy73bd4a52010-10-05 11:24:23 +000018154 ;;
18155 esac
18156 fi
Cristy15f22012015-11-14 17:51:30 -050018157 if test no = "$with_gnu_ld"; then
18158 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018159 hardcode_libdir_separator=:
18160
18161 case $host_cpu in
18162 hppa*64*|ia64*)
18163 hardcode_direct=no
18164 hardcode_shlibpath_var=no
18165 ;;
18166 *)
18167 hardcode_direct=yes
18168 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050018169 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000018170
18171 # hardcode_minus_L: Not really in the search PATH,
18172 # but as the default location of the library.
18173 hardcode_minus_L=yes
18174 ;;
18175 esac
18176 fi
18177 ;;
18178
18179 irix5* | irix6* | nonstopux*)
Cristy15f22012015-11-14 17:51:30 -050018180 if test yes = "$GCC"; then
18181 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 +000018182 # Try to use the -exported_symbol ld option, if it does not
18183 # work, assume that -exports_file does not work either and
18184 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000018185 # This should be the same for all languages, so no per-tag cache variable.
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18187$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18188if ${lt_cv_irix_exported_symbol+:} false; then :
18189 $as_echo_n "(cached) " >&6
18190else
Cristy15f22012015-11-14 17:51:30 -050018191 save_LDFLAGS=$LDFLAGS
18192 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
cristyda16f162011-02-19 23:52:17 +000018193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018194/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000018195int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000018196_ACEOF
18197if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000018198 lt_cv_irix_exported_symbol=yes
18199else
18200 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000018201fi
18202rm -f core conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050018204 LDFLAGS=$save_LDFLAGS
cristyda16f162011-02-19 23:52:17 +000018205fi
18206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18207$as_echo "$lt_cv_irix_exported_symbol" >&6; }
Cristy15f22012015-11-14 17:51:30 -050018208 if test yes = "$lt_cv_irix_exported_symbol"; then
18209 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 +000018210 fi
cristy73bd4a52010-10-05 11:24:23 +000018211 else
Cristy15f22012015-11-14 17:51:30 -050018212 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'
18213 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 +000018214 fi
18215 archive_cmds_need_lc='no'
Cristy15f22012015-11-14 17:51:30 -050018216 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018217 hardcode_libdir_separator=:
18218 inherit_rpath=yes
18219 link_all_deplibs=yes
18220 ;;
18221
Cristy15f22012015-11-14 17:51:30 -050018222 linux*)
18223 case $cc_basename in
18224 tcc*)
18225 # Fabrice Bellard et al's Tiny C Compiler
18226 ld_shlibs=yes
18227 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18228 ;;
18229 esac
18230 ;;
18231
cristy73bd4a52010-10-05 11:24:23 +000018232 netbsd*)
18233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18235 else
18236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18237 fi
18238 hardcode_libdir_flag_spec='-R$libdir'
18239 hardcode_direct=yes
18240 hardcode_shlibpath_var=no
18241 ;;
18242
18243 newsos6)
18244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245 hardcode_direct=yes
Cristy15f22012015-11-14 17:51:30 -050018246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018247 hardcode_libdir_separator=:
18248 hardcode_shlibpath_var=no
18249 ;;
18250
18251 *nto* | *qnx*)
18252 ;;
18253
Cristy15f22012015-11-14 17:51:30 -050018254 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000018255 if test -f /usr/libexec/ld.so; then
18256 hardcode_direct=yes
18257 hardcode_shlibpath_var=no
18258 hardcode_direct_absolute=yes
Cristy15f22012015-11-14 17:51:30 -050018259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
cristy73bd4a52010-10-05 11:24:23 +000018260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Cristy15f22012015-11-14 17:51:30 -050018261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18262 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18263 export_dynamic_flag_spec='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000018264 else
Cristy15f22012015-11-14 17:51:30 -050018265 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18266 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018267 fi
18268 else
18269 ld_shlibs=no
18270 fi
18271 ;;
18272
18273 os2*)
18274 hardcode_libdir_flag_spec='-L$libdir'
18275 hardcode_minus_L=yes
18276 allow_undefined_flag=unsupported
Cristy15f22012015-11-14 17:51:30 -050018277 shrext_cmds=.dll
18278 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18279 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18280 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18281 $ECHO EXPORTS >> $output_objdir/$libname.def~
18282 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18284 emximp -o $lib $output_objdir/$libname.def'
18285 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18286 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18287 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18288 $ECHO EXPORTS >> $output_objdir/$libname.def~
18289 prefix_cmds="$SED"~
18290 if test EXPORTS = "`$SED 1q $export_symbols`"; then
18291 prefix_cmds="$prefix_cmds -e 1d";
18292 fi~
18293 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18294 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18296 emximp -o $lib $output_objdir/$libname.def'
18297 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18298 enable_shared_with_static_runtimes=yes
cristy73bd4a52010-10-05 11:24:23 +000018299 ;;
18300
18301 osf3*)
Cristy15f22012015-11-14 17:51:30 -050018302 if test yes = "$GCC"; then
18303 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18304 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 +000018305 else
18306 allow_undefined_flag=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050018307 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 +000018308 fi
18309 archive_cmds_need_lc='no'
Cristy15f22012015-11-14 17:51:30 -050018310 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018311 hardcode_libdir_separator=:
18312 ;;
18313
18314 osf4* | osf5*) # as osf3* with the addition of -msym flag
Cristy15f22012015-11-14 17:51:30 -050018315 if test yes = "$GCC"; then
18316 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18317 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'
18318 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018319 else
18320 allow_undefined_flag=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050018321 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 +000018322 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 -050018323 $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 +000018324
18325 # Both c and cxx compiler support -rpath directly
18326 hardcode_libdir_flag_spec='-rpath $libdir'
18327 fi
18328 archive_cmds_need_lc='no'
18329 hardcode_libdir_separator=:
18330 ;;
18331
18332 solaris*)
18333 no_undefined_flag=' -z defs'
Cristy15f22012015-11-14 17:51:30 -050018334 if test yes = "$GCC"; then
18335 wlarc='$wl'
18336 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 +000018337 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 -050018338 $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 +000018339 else
18340 case `$CC -V 2>&1` in
18341 *"Compilers 5.0"*)
18342 wlarc=''
Cristy15f22012015-11-14 17:51:30 -050018343 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
cristy73bd4a52010-10-05 11:24:23 +000018344 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 -050018345 $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 +000018346 ;;
18347 *)
Cristy15f22012015-11-14 17:51:30 -050018348 wlarc='$wl'
18349 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018350 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 -050018351 $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 +000018352 ;;
18353 esac
18354 fi
18355 hardcode_libdir_flag_spec='-R$libdir'
18356 hardcode_shlibpath_var=no
18357 case $host_os in
18358 solaris2.[0-5] | solaris2.[0-5].*) ;;
18359 *)
18360 # The compiler driver will combine and reorder linker options,
Cristy15f22012015-11-14 17:51:30 -050018361 # but understands '-z linker_flag'. GCC discards it without '$wl',
cristy73bd4a52010-10-05 11:24:23 +000018362 # but is careful enough not to reorder.
18363 # Supported since Solaris 2.6 (maybe 2.5.1?)
Cristy15f22012015-11-14 17:51:30 -050018364 if test yes = "$GCC"; then
18365 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cristy73bd4a52010-10-05 11:24:23 +000018366 else
18367 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18368 fi
18369 ;;
18370 esac
18371 link_all_deplibs=yes
18372 ;;
18373
18374 sunos4*)
Cristy15f22012015-11-14 17:51:30 -050018375 if test sequent = "$host_vendor"; then
cristy73bd4a52010-10-05 11:24:23 +000018376 # Use $CC to link under sequent, because it throws in some extra .o
18377 # files that make .init and .fini sections work.
Cristy15f22012015-11-14 17:51:30 -050018378 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018379 else
18380 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18381 fi
18382 hardcode_libdir_flag_spec='-L$libdir'
18383 hardcode_direct=yes
18384 hardcode_minus_L=yes
18385 hardcode_shlibpath_var=no
18386 ;;
18387
18388 sysv4)
18389 case $host_vendor in
18390 sni)
18391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392 hardcode_direct=yes # is this really true???
18393 ;;
18394 siemens)
18395 ## LD is ld it makes a PLAMLIB
18396 ## CC just makes a GrossModule.
18397 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18398 reload_cmds='$CC -r -o $output$reload_objs'
18399 hardcode_direct=no
18400 ;;
18401 motorola)
18402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18403 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18404 ;;
18405 esac
18406 runpath_var='LD_RUN_PATH'
18407 hardcode_shlibpath_var=no
18408 ;;
18409
18410 sysv4.3*)
18411 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412 hardcode_shlibpath_var=no
18413 export_dynamic_flag_spec='-Bexport'
18414 ;;
18415
18416 sysv4*MP*)
18417 if test -d /usr/nec; then
18418 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18419 hardcode_shlibpath_var=no
18420 runpath_var=LD_RUN_PATH
18421 hardcode_runpath_var=yes
18422 ld_shlibs=yes
18423 fi
18424 ;;
18425
18426 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Cristy15f22012015-11-14 17:51:30 -050018427 no_undefined_flag='$wl-z,text'
cristy73bd4a52010-10-05 11:24:23 +000018428 archive_cmds_need_lc=no
18429 hardcode_shlibpath_var=no
18430 runpath_var='LD_RUN_PATH'
18431
Cristy15f22012015-11-14 17:51:30 -050018432 if test yes = "$GCC"; then
18433 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18434 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018435 else
Cristy15f22012015-11-14 17:51:30 -050018436 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18437 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018438 fi
18439 ;;
18440
18441 sysv5* | sco3.2v5* | sco5v6*)
Cristy15f22012015-11-14 17:51:30 -050018442 # Note: We CANNOT use -z defs as we might desire, because we do not
cristy73bd4a52010-10-05 11:24:23 +000018443 # link with -lc, and that would cause any symbols used from libc to
18444 # always be unresolved, which means just about no library would
18445 # ever link correctly. If we're not using GNU ld we use -z text
18446 # though, which does catch some bad symbols but isn't as heavy-handed
18447 # as -z defs.
Cristy15f22012015-11-14 17:51:30 -050018448 no_undefined_flag='$wl-z,text'
18449 allow_undefined_flag='$wl-z,nodefs'
cristy73bd4a52010-10-05 11:24:23 +000018450 archive_cmds_need_lc=no
18451 hardcode_shlibpath_var=no
Cristy15f22012015-11-14 17:51:30 -050018452 hardcode_libdir_flag_spec='$wl-R,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000018453 hardcode_libdir_separator=':'
18454 link_all_deplibs=yes
Cristy15f22012015-11-14 17:51:30 -050018455 export_dynamic_flag_spec='$wl-Bexport'
cristy73bd4a52010-10-05 11:24:23 +000018456 runpath_var='LD_RUN_PATH'
18457
Cristy15f22012015-11-14 17:51:30 -050018458 if test yes = "$GCC"; then
18459 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018461 else
Cristy15f22012015-11-14 17:51:30 -050018462 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18463 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018464 fi
18465 ;;
18466
18467 uts4*)
18468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18469 hardcode_libdir_flag_spec='-L$libdir'
18470 hardcode_shlibpath_var=no
18471 ;;
18472
18473 *)
18474 ld_shlibs=no
18475 ;;
18476 esac
18477
Cristy15f22012015-11-14 17:51:30 -050018478 if test sni = "$host_vendor"; then
cristy73bd4a52010-10-05 11:24:23 +000018479 case $host in
18480 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
Cristy15f22012015-11-14 17:51:30 -050018481 export_dynamic_flag_spec='$wl-Blargedynsym'
cristy73bd4a52010-10-05 11:24:23 +000018482 ;;
18483 esac
18484 fi
18485 fi
18486
18487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18488$as_echo "$ld_shlibs" >&6; }
Cristy15f22012015-11-14 17:51:30 -050018489test no = "$ld_shlibs" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000018490
18491with_gnu_ld=$with_gnu_ld
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507#
18508# Do we need to explicitly link libc?
18509#
18510case "x$archive_cmds_need_lc" in
18511x|xyes)
18512 # Assume -lc should be added
18513 archive_cmds_need_lc=yes
18514
Cristy15f22012015-11-14 17:51:30 -050018515 if test yes,yes = "$GCC,$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000018516 case $archive_cmds in
18517 *'~'*)
18518 # FIXME: we may have to deal with multi-command sequences.
18519 ;;
18520 '$CC '*)
18521 # Test whether the compiler implicitly links with -lc since on some
18522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18523 # to ld, don't add -lc before -lgcc.
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000018526if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000018527 $as_echo_n "(cached) " >&6
18528else
18529 $RM conftest*
18530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018531
cristy0c60a692010-11-04 01:09:47 +000018532 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000018533 (eval $ac_compile) 2>&5
18534 ac_status=$?
18535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000018537 soname=conftest
18538 lib=conftest
18539 libobjs=conftest.$ac_objext
18540 deplibs=
18541 wl=$lt_prog_compiler_wl
18542 pic_flag=$lt_prog_compiler_pic
18543 compiler_flags=-v
18544 linker_flags=-v
18545 verstring=
18546 output_objdir=.
18547 libname=conftest
18548 lt_save_allow_undefined_flag=$allow_undefined_flag
18549 allow_undefined_flag=
18550 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 +000018551 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18552 ac_status=$?
18553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18554 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000018555 then
18556 lt_cv_archive_cmds_need_lc=no
18557 else
18558 lt_cv_archive_cmds_need_lc=yes
18559 fi
18560 allow_undefined_flag=$lt_save_allow_undefined_flag
18561 else
18562 cat conftest.err 1>&5
18563 fi
18564 $RM conftest*
18565
18566fi
18567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18568$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18569 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000018570 ;;
18571 esac
18572 fi
18573 ;;
18574esac
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
cristy73bd4a52010-10-05 11:24:23 +000018727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18728$as_echo_n "checking dynamic linker characteristics... " >&6; }
18729
Cristy15f22012015-11-14 17:51:30 -050018730if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000018731 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050018732 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18733 *) lt_awk_arg='/^libraries:/' ;;
cristy73bd4a52010-10-05 11:24:23 +000018734 esac
cristy0c60a692010-11-04 01:09:47 +000018735 case $host_os in
Cristy15f22012015-11-14 17:51:30 -050018736 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18737 *) lt_sed_strip_eq='s|=/|/|g' ;;
cristy0c60a692010-11-04 01:09:47 +000018738 esac
18739 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18740 case $lt_search_path_spec in
18741 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000018742 # if the path contains ";" then we assume it to be the separator
18743 # otherwise default to the standard path separator (i.e. ":") - it is
18744 # assumed that no part of a normal pathname contains ";" but that should
18745 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000018746 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18747 ;;
18748 *)
18749 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18750 ;;
18751 esac
cristy73bd4a52010-10-05 11:24:23 +000018752 # Ok, now we have the path, separated by spaces, we can step through it
Cristy15f22012015-11-14 17:51:30 -050018753 # and add multilib dir if necessary...
cristy73bd4a52010-10-05 11:24:23 +000018754 lt_tmp_lt_search_path_spec=
Cristy15f22012015-11-14 17:51:30 -050018755 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18756 # ...but if some path component already ends with the multilib dir we assume
18757 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18758 case "$lt_multi_os_dir; $lt_search_path_spec " in
18759 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18760 lt_multi_os_dir=
18761 ;;
18762 esac
cristy73bd4a52010-10-05 11:24:23 +000018763 for lt_sys_path in $lt_search_path_spec; do
Cristy15f22012015-11-14 17:51:30 -050018764 if test -d "$lt_sys_path$lt_multi_os_dir"; then
18765 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18766 elif test -n "$lt_multi_os_dir"; then
cristy73bd4a52010-10-05 11:24:23 +000018767 test -d "$lt_sys_path" && \
18768 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18769 fi
18770 done
cristy0c60a692010-11-04 01:09:47 +000018771 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Cristy15f22012015-11-14 17:51:30 -050018772BEGIN {RS = " "; FS = "/|\n";} {
18773 lt_foo = "";
18774 lt_count = 0;
cristy73bd4a52010-10-05 11:24:23 +000018775 for (lt_i = NF; lt_i > 0; lt_i--) {
18776 if ($lt_i != "" && $lt_i != ".") {
18777 if ($lt_i == "..") {
18778 lt_count++;
18779 } else {
18780 if (lt_count == 0) {
Cristy15f22012015-11-14 17:51:30 -050018781 lt_foo = "/" $lt_i lt_foo;
cristy73bd4a52010-10-05 11:24:23 +000018782 } else {
18783 lt_count--;
18784 }
18785 }
18786 }
18787 }
18788 if (lt_foo != "") { lt_freq[lt_foo]++; }
18789 if (lt_freq[lt_foo] == 1) { print lt_foo; }
18790}'`
cristy0c60a692010-11-04 01:09:47 +000018791 # AWK program above erroneously prepends '/' to C:/dos/paths
18792 # for these hosts.
18793 case $host_os in
18794 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
Cristy15f22012015-11-14 17:51:30 -050018795 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
cristy0c60a692010-11-04 01:09:47 +000018796 esac
18797 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000018798else
18799 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18800fi
18801library_names_spec=
18802libname_spec='lib$name'
18803soname_spec=
Cristy15f22012015-11-14 17:51:30 -050018804shrext_cmds=.so
cristy73bd4a52010-10-05 11:24:23 +000018805postinstall_cmds=
18806postuninstall_cmds=
18807finish_cmds=
18808finish_eval=
18809shlibpath_var=
18810shlibpath_overrides_runpath=unknown
18811version_type=none
18812dynamic_linker="$host_os ld.so"
18813sys_lib_dlsearch_path_spec="/lib /usr/lib"
18814need_lib_prefix=unknown
18815hardcode_into_libs=no
18816
18817# when you set need_version to no, make sure it does not cause -set_version
18818# flags to be left without arguments
18819need_version=unknown
18820
Cristy15f22012015-11-14 17:51:30 -050018821
18822
cristy73bd4a52010-10-05 11:24:23 +000018823case $host_os in
18824aix3*)
cristy99bd5232011-12-07 14:38:20 +000018825 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050018826 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cristy73bd4a52010-10-05 11:24:23 +000018827 shlibpath_var=LIBPATH
18828
18829 # AIX 3 has no versioning support, so we append a major version to the name.
Cristy15f22012015-11-14 17:51:30 -050018830 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018831 ;;
18832
18833aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000018834 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000018835 need_lib_prefix=no
18836 need_version=no
18837 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050018838 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000018839 # AIX 5 supports IA64
Cristy15f22012015-11-14 17:51:30 -050018840 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018841 shlibpath_var=LD_LIBRARY_PATH
18842 else
18843 # With GCC up to 2.95.x, collect2 would create an import file
18844 # for dependence libraries. The import file would start with
Cristy15f22012015-11-14 17:51:30 -050018845 # the line '#! .'. This would cause the generated library to
18846 # depend on '.', always an invalid library. This was fixed in
cristy73bd4a52010-10-05 11:24:23 +000018847 # development snapshots of GCC prior to 3.0.
18848 case $host_os in
18849 aix4 | aix4.[01] | aix4.[01].*)
18850 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18851 echo ' yes '
Cristy15f22012015-11-14 17:51:30 -050018852 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000018853 :
18854 else
18855 can_build_shared=no
18856 fi
18857 ;;
18858 esac
Cristy15f22012015-11-14 17:51:30 -050018859 # Using Import Files as archive members, it is possible to support
18860 # filename-based versioning of shared library archives on AIX. While
18861 # this would work for both with and without runtime linking, it will
18862 # prevent static linking of such archives. So we do filename-based
18863 # shared library versioning with .so extension only, which is used
18864 # when both runtime linking and shared linking is enabled.
18865 # Unfortunately, runtime linking may impact performance, so we do
18866 # not want this to be the default eventually. Also, we use the
18867 # versioned .so libs for executables only if there is the -brtl
18868 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18869 # To allow for filename-based versioning support, we need to create
18870 # libNAME.so.V as an archive file, containing:
18871 # *) an Import File, referring to the versioned filename of the
18872 # archive as well as the shared archive member, telling the
18873 # bitwidth (32 or 64) of that shared object, and providing the
18874 # list of exported symbols of that shared object, eventually
18875 # decorated with the 'weak' keyword
18876 # *) the shared object with the F_LOADONLY flag set, to really avoid
18877 # it being seen by the linker.
18878 # At run time we better use the real file rather than another symlink,
18879 # but for link time we create the symlink libNAME.so -> libNAME.so.V
18880
18881 case $with_aix_soname,$aix_use_runtimelinking in
18882 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cristy73bd4a52010-10-05 11:24:23 +000018883 # soname into executable. Probably we can add versioning support to
18884 # collect2, so additional links can be useful in future.
Cristy15f22012015-11-14 17:51:30 -050018885 aix,yes) # traditional libtool
18886 dynamic_linker='AIX unversionable lib.so'
cristy73bd4a52010-10-05 11:24:23 +000018887 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18888 # instead of lib<name>.a to let people know that these are not
18889 # typical AIX shared libraries.
Cristy15f22012015-11-14 17:51:30 -050018890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18891 ;;
18892 aix,no) # traditional AIX only
18893 dynamic_linker='AIX lib.a(lib.so.V)'
cristy73bd4a52010-10-05 11:24:23 +000018894 # We preserve .a as extension for shared libraries through AIX4.2
18895 # and later when we are not doing run time linking.
Cristy15f22012015-11-14 17:51:30 -050018896 library_names_spec='$libname$release.a $libname.a'
18897 soname_spec='$libname$release$shared_ext$major'
18898 ;;
18899 svr4,*) # full svr4 only
18900 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18901 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18902 # We do not specify a path in Import Files, so LIBPATH fires.
18903 shlibpath_overrides_runpath=yes
18904 ;;
18905 *,yes) # both, prefer svr4
18906 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18907 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18908 # unpreferred sharedlib libNAME.a needs extra handling
18909 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"'
18910 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"'
18911 # We do not specify a path in Import Files, so LIBPATH fires.
18912 shlibpath_overrides_runpath=yes
18913 ;;
18914 *,no) # both, prefer aix
18915 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18916 library_names_spec='$libname$release.a $libname.a'
18917 soname_spec='$libname$release$shared_ext$major'
18918 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18919 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)'
18920 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"'
18921 ;;
18922 esac
cristy73bd4a52010-10-05 11:24:23 +000018923 shlibpath_var=LIBPATH
18924 fi
18925 ;;
18926
18927amigaos*)
18928 case $host_cpu in
18929 powerpc)
18930 # Since July 2007 AmigaOS4 officially supports .so libraries.
18931 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Cristy15f22012015-11-14 17:51:30 -050018932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018933 ;;
18934 m68k)
18935 library_names_spec='$libname.ixlibrary $libname.a'
18936 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Cristy15f22012015-11-14 17:51:30 -050018937 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 +000018938 ;;
18939 esac
18940 ;;
18941
18942beos*)
Cristy15f22012015-11-14 17:51:30 -050018943 library_names_spec='$libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018944 dynamic_linker="$host_os ld.so"
18945 shlibpath_var=LIBRARY_PATH
18946 ;;
18947
18948bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000018949 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000018950 need_version=no
Cristy15f22012015-11-14 17:51:30 -050018951 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18952 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000018953 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18954 shlibpath_var=LD_LIBRARY_PATH
18955 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18956 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18957 # the default ld.so.conf also contains /usr/contrib/lib and
18958 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18959 # libtool to hard-code these into programs
18960 ;;
18961
18962cygwin* | mingw* | pw32* | cegcc*)
18963 version_type=windows
Cristy15f22012015-11-14 17:51:30 -050018964 shrext_cmds=.dll
cristy73bd4a52010-10-05 11:24:23 +000018965 need_version=no
18966 need_lib_prefix=no
18967
cristyda16f162011-02-19 23:52:17 +000018968 case $GCC,$cc_basename in
18969 yes,*)
18970 # gcc
cristy73bd4a52010-10-05 11:24:23 +000018971 library_names_spec='$libname.dll.a'
18972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050018973 postinstall_cmds='base_file=`basename \$file`~
18974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristy73bd4a52010-10-05 11:24:23 +000018975 dldir=$destdir/`dirname \$dlpath`~
18976 test -d \$dldir || mkdir -p \$dldir~
18977 $install_prog $dir/$dlname \$dldir/$dlname~
18978 chmod a+x \$dldir/$dlname~
18979 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18980 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18981 fi'
18982 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18983 dlpath=$dir/\$dldll~
18984 $RM \$dlpath'
18985 shlibpath_overrides_runpath=yes
18986
18987 case $host_os in
18988 cygwin*)
18989 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050018990 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy0c60a692010-11-04 01:09:47 +000018991
18992 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000018993 ;;
18994 mingw* | cegcc*)
18995 # MinGW DLLs use traditional 'lib' prefix
Cristy15f22012015-11-14 17:51:30 -050018996 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000018997 ;;
18998 pw32*)
18999 # pw32 DLLs use 'pw' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050019000 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 +000019001 ;;
19002 esac
cristyda16f162011-02-19 23:52:17 +000019003 dynamic_linker='Win32 ld.exe'
19004 ;;
19005
19006 *,cl*)
19007 # Native MSVC
19008 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050019009 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19010 library_names_spec='$libname.dll.lib'
cristyda16f162011-02-19 23:52:17 +000019011
19012 case $build_os in
19013 mingw*)
19014 sys_lib_search_path_spec=
19015 lt_save_ifs=$IFS
19016 IFS=';'
19017 for lt_path in $LIB
19018 do
19019 IFS=$lt_save_ifs
19020 # Let DOS variable expansion print the short 8.3 style file name.
19021 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19022 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19023 done
19024 IFS=$lt_save_ifs
19025 # Convert to MSYS style.
19026 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19027 ;;
19028 cygwin*)
19029 # Convert to unix form, then to dos form, then back to unix form
19030 # but this time dos style (no spaces!) so that the unix form looks
19031 # like /cygdrive/c/PROGRA~1:/cygdr...
19032 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19033 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19034 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19035 ;;
19036 *)
Cristy15f22012015-11-14 17:51:30 -050019037 sys_lib_search_path_spec=$LIB
cristyda16f162011-02-19 23:52:17 +000019038 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19039 # It is most probably a Windows format PATH.
19040 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19041 else
19042 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19043 fi
19044 # FIXME: find the short name or the path components, as spaces are
19045 # common. (e.g. "Program Files" -> "PROGRA~1")
19046 ;;
19047 esac
19048
19049 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050019050 postinstall_cmds='base_file=`basename \$file`~
19051 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristyda16f162011-02-19 23:52:17 +000019052 dldir=$destdir/`dirname \$dlpath`~
19053 test -d \$dldir || mkdir -p \$dldir~
19054 $install_prog $dir/$dlname \$dldir/$dlname'
19055 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19056 dlpath=$dir/\$dldll~
19057 $RM \$dlpath'
19058 shlibpath_overrides_runpath=yes
19059 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000019060 ;;
19061
19062 *)
cristyda16f162011-02-19 23:52:17 +000019063 # Assume MSVC wrapper
Cristy15f22012015-11-14 17:51:30 -050019064 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cristyda16f162011-02-19 23:52:17 +000019065 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000019066 ;;
19067 esac
cristy73bd4a52010-10-05 11:24:23 +000019068 # FIXME: first we should search . and the directory the executable is in
19069 shlibpath_var=PATH
19070 ;;
19071
19072darwin* | rhapsody*)
19073 dynamic_linker="$host_os dyld"
19074 version_type=darwin
19075 need_lib_prefix=no
19076 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019077 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19078 soname_spec='$libname$release$major$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000019079 shlibpath_overrides_runpath=yes
19080 shlibpath_var=DYLD_LIBRARY_PATH
19081 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19082
19083 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19084 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19085 ;;
19086
19087dgux*)
cristy99bd5232011-12-07 14:38:20 +000019088 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019089 need_lib_prefix=no
19090 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019091 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19092 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019093 shlibpath_var=LD_LIBRARY_PATH
19094 ;;
19095
cristy73bd4a52010-10-05 11:24:23 +000019096freebsd* | dragonfly*)
19097 # DragonFly does not have aout. When/if they implement a new
19098 # versioning mechanism, adjust this.
19099 if test -x /usr/bin/objformat; then
19100 objformat=`/usr/bin/objformat`
19101 else
19102 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019103 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000019104 *) objformat=elf ;;
19105 esac
19106 fi
19107 version_type=freebsd-$objformat
19108 case $version_type in
19109 freebsd-elf*)
Cristy15f22012015-11-14 17:51:30 -050019110 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19111 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019112 need_version=no
19113 need_lib_prefix=no
19114 ;;
19115 freebsd-*)
Cristy15f22012015-11-14 17:51:30 -050019116 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000019117 need_version=yes
19118 ;;
19119 esac
19120 shlibpath_var=LD_LIBRARY_PATH
19121 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000019122 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000019123 shlibpath_overrides_runpath=yes
19124 ;;
19125 freebsd3.[01]* | freebsdelf3.[01]*)
19126 shlibpath_overrides_runpath=yes
19127 hardcode_into_libs=yes
19128 ;;
19129 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19130 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19131 shlibpath_overrides_runpath=no
19132 hardcode_into_libs=yes
19133 ;;
19134 *) # from 4.6 on, and DragonFly
19135 shlibpath_overrides_runpath=yes
19136 hardcode_into_libs=yes
19137 ;;
19138 esac
19139 ;;
19140
cristy0c60a692010-11-04 01:09:47 +000019141haiku*)
cristy99bd5232011-12-07 14:38:20 +000019142 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000019143 need_lib_prefix=no
19144 need_version=no
19145 dynamic_linker="$host_os runtime_loader"
Cristy15f22012015-11-14 17:51:30 -050019146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19147 soname_spec='$libname$release$shared_ext$major'
cristy0c60a692010-11-04 01:09:47 +000019148 shlibpath_var=LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050019149 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019150 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19151 hardcode_into_libs=yes
19152 ;;
19153
cristy73bd4a52010-10-05 11:24:23 +000019154hpux9* | hpux10* | hpux11*)
19155 # Give a soname corresponding to the major version so that dld.sl refuses to
19156 # link against other versions.
19157 version_type=sunos
19158 need_lib_prefix=no
19159 need_version=no
19160 case $host_cpu in
19161 ia64*)
19162 shrext_cmds='.so'
19163 hardcode_into_libs=yes
19164 dynamic_linker="$host_os dld.so"
19165 shlibpath_var=LD_LIBRARY_PATH
19166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050019167 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19168 soname_spec='$libname$release$shared_ext$major'
19169 if test 32 = "$HPUX_IA64_MODE"; then
cristy73bd4a52010-10-05 11:24:23 +000019170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Cristy15f22012015-11-14 17:51:30 -050019171 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cristy73bd4a52010-10-05 11:24:23 +000019172 else
19173 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Cristy15f22012015-11-14 17:51:30 -050019174 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cristy73bd4a52010-10-05 11:24:23 +000019175 fi
cristy73bd4a52010-10-05 11:24:23 +000019176 ;;
19177 hppa*64*)
19178 shrext_cmds='.sl'
19179 hardcode_into_libs=yes
19180 dynamic_linker="$host_os dld.sl"
19181 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19182 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050019183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19184 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019185 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19186 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19187 ;;
19188 *)
19189 shrext_cmds='.sl'
19190 dynamic_linker="$host_os dld.sl"
19191 shlibpath_var=SHLIB_PATH
19192 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Cristy15f22012015-11-14 17:51:30 -050019193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19194 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019195 ;;
19196 esac
cristy0c60a692010-11-04 01:09:47 +000019197 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000019198 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000019199 # or fails outright, so override atomically:
19200 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000019201 ;;
19202
19203interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000019204 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019205 need_lib_prefix=no
19206 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019207 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19208 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019209 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19210 shlibpath_var=LD_LIBRARY_PATH
19211 shlibpath_overrides_runpath=no
19212 hardcode_into_libs=yes
19213 ;;
19214
19215irix5* | irix6* | nonstopux*)
19216 case $host_os in
19217 nonstopux*) version_type=nonstopux ;;
19218 *)
Cristy15f22012015-11-14 17:51:30 -050019219 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy99bd5232011-12-07 14:38:20 +000019220 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019221 else
19222 version_type=irix
19223 fi ;;
19224 esac
19225 need_lib_prefix=no
19226 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019227 soname_spec='$libname$release$shared_ext$major'
19228 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 +000019229 case $host_os in
19230 irix5* | nonstopux*)
19231 libsuff= shlibsuff=
19232 ;;
19233 *)
19234 case $LD in # libtool.m4 will add one of these switches to LD
19235 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19236 libsuff= shlibsuff= libmagic=32-bit;;
19237 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19238 libsuff=32 shlibsuff=N32 libmagic=N32;;
19239 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19240 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19241 *) libsuff= shlibsuff= libmagic=never-match;;
19242 esac
19243 ;;
19244 esac
19245 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19246 shlibpath_overrides_runpath=no
Cristy15f22012015-11-14 17:51:30 -050019247 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19248 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cristy73bd4a52010-10-05 11:24:23 +000019249 hardcode_into_libs=yes
19250 ;;
19251
19252# No shared lib support for Linux oldld, aout, or coff.
19253linux*oldld* | linux*aout* | linux*coff*)
19254 dynamic_linker=no
19255 ;;
19256
Cristy15f22012015-11-14 17:51:30 -050019257linux*android*)
19258 version_type=none # Android doesn't support versioned libraries.
19259 need_lib_prefix=no
19260 need_version=no
19261 library_names_spec='$libname$release$shared_ext'
19262 soname_spec='$libname$release$shared_ext'
19263 finish_cmds=
19264 shlibpath_var=LD_LIBRARY_PATH
19265 shlibpath_overrides_runpath=yes
19266
19267 # This implies no fast_install, which is unacceptable.
19268 # Some rework will be needed to allow for fast_install
19269 # before this can be enabled.
19270 hardcode_into_libs=yes
19271
19272 dynamic_linker='Android linker'
19273 # Don't embed -rpath directories since the linker doesn't support them.
19274 hardcode_libdir_flag_spec='-L$libdir'
19275 ;;
19276
cristy99bd5232011-12-07 14:38:20 +000019277# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050019278linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy99bd5232011-12-07 14:38:20 +000019279 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019280 need_lib_prefix=no
19281 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019282 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19283 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019284 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19285 shlibpath_var=LD_LIBRARY_PATH
19286 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000019287
cristy73bd4a52010-10-05 11:24:23 +000019288 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000019289 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019290 $as_echo_n "(cached) " >&6
19291else
19292 lt_cv_shlibpath_overrides_runpath=no
19293 save_LDFLAGS=$LDFLAGS
19294 save_libdir=$libdir
19295 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19296 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019298/* end confdefs.h. */
19299
19300int
19301main ()
19302{
19303
19304 ;
19305 return 0;
19306}
19307_ACEOF
19308if ac_fn_c_try_link "$LINENO"; then :
19309 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000019310 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019311fi
19312fi
19313rm -f core conftest.err conftest.$ac_objext \
19314 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000019315 LDFLAGS=$save_LDFLAGS
19316 libdir=$save_libdir
19317
19318fi
19319
19320 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000019321
19322 # This implies no fast_install, which is unacceptable.
19323 # Some rework will be needed to allow for fast_install
19324 # before this can be enabled.
19325 hardcode_into_libs=yes
19326
19327 # Add ABI-specific directories to the system library path.
19328 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19329
Cristy15f22012015-11-14 17:51:30 -050019330 # Ideally, we could use ldconfig to report *all* directores which are
19331 # searched for libraries, however this is still not possible. Aside from not
19332 # being certain /sbin/ldconfig is available, command
19333 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19334 # even though it is searched at run-time. Try to do the best guess by
19335 # appending ld.so.conf contents (and includes) to the search path.
cristy73bd4a52010-10-05 11:24:23 +000019336 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000019337 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 +000019338 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19339 fi
19340
19341 # We used to test for /lib/ld.so.1 and disable shared libraries on
19342 # powerpc, because MkLinux only supported shared libraries with the
19343 # GNU dynamic linker. Since this was broken with cross compilers,
19344 # most powerpc-linux boxes support dynamic linking these days and
19345 # people can always --disable-shared, the test was removed, and we
19346 # assume the GNU/Linux dynamic linker is in use.
19347 dynamic_linker='GNU/Linux ld.so'
19348 ;;
19349
19350netbsd*)
19351 version_type=sunos
19352 need_lib_prefix=no
19353 need_version=no
19354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Cristy15f22012015-11-14 17:51:30 -050019355 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000019356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19357 dynamic_linker='NetBSD (a.out) ld.so'
19358 else
Cristy15f22012015-11-14 17:51:30 -050019359 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19360 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019361 dynamic_linker='NetBSD ld.elf_so'
19362 fi
19363 shlibpath_var=LD_LIBRARY_PATH
19364 shlibpath_overrides_runpath=yes
19365 hardcode_into_libs=yes
19366 ;;
19367
19368newsos6)
cristy99bd5232011-12-07 14:38:20 +000019369 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050019370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000019371 shlibpath_var=LD_LIBRARY_PATH
19372 shlibpath_overrides_runpath=yes
19373 ;;
19374
19375*nto* | *qnx*)
19376 version_type=qnx
19377 need_lib_prefix=no
19378 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019379 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19380 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019381 shlibpath_var=LD_LIBRARY_PATH
19382 shlibpath_overrides_runpath=no
19383 hardcode_into_libs=yes
19384 dynamic_linker='ldqnx.so'
19385 ;;
19386
Cristy15f22012015-11-14 17:51:30 -050019387openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000019388 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050019389 sys_lib_dlsearch_path_spec=/usr/lib
cristy73bd4a52010-10-05 11:24:23 +000019390 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050019391 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19392 need_version=no
19393 else
19394 need_version=yes
19395 fi
19396 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000019397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19398 shlibpath_var=LD_LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050019399 shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000019400 ;;
19401
19402os2*)
19403 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050019404 version_type=windows
19405 shrext_cmds=.dll
19406 need_version=no
cristy73bd4a52010-10-05 11:24:23 +000019407 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050019408 # OS/2 can only load a DLL with a base name of 8 characters or less.
19409 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19410 v=$($ECHO $release$versuffix | tr -d .-);
19411 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19412 $ECHO $n$v`$shared_ext'
19413 library_names_spec='${libname}_dll.$libext'
cristy73bd4a52010-10-05 11:24:23 +000019414 dynamic_linker='OS/2 ld.exe'
Cristy15f22012015-11-14 17:51:30 -050019415 shlibpath_var=BEGINLIBPATH
19416 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19418 postinstall_cmds='base_file=`basename \$file`~
19419 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19420 dldir=$destdir/`dirname \$dlpath`~
19421 test -d \$dldir || mkdir -p \$dldir~
19422 $install_prog $dir/$dlname \$dldir/$dlname~
19423 chmod a+x \$dldir/$dlname~
19424 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19425 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19426 fi'
19427 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19428 dlpath=$dir/\$dldll~
19429 $RM \$dlpath'
cristy73bd4a52010-10-05 11:24:23 +000019430 ;;
19431
19432osf3* | osf4* | osf5*)
19433 version_type=osf
19434 need_lib_prefix=no
19435 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019436 soname_spec='$libname$release$shared_ext$major'
19437 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000019438 shlibpath_var=LD_LIBRARY_PATH
19439 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 -050019440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000019441 ;;
19442
19443rdos*)
19444 dynamic_linker=no
19445 ;;
19446
19447solaris*)
cristy99bd5232011-12-07 14:38:20 +000019448 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019449 need_lib_prefix=no
19450 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019451 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19452 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019453 shlibpath_var=LD_LIBRARY_PATH
19454 shlibpath_overrides_runpath=yes
19455 hardcode_into_libs=yes
19456 # ldd complains unless libraries are executable
19457 postinstall_cmds='chmod +x $lib'
19458 ;;
19459
19460sunos4*)
19461 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050019462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000019463 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19464 shlibpath_var=LD_LIBRARY_PATH
19465 shlibpath_overrides_runpath=yes
Cristy15f22012015-11-14 17:51:30 -050019466 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000019467 need_lib_prefix=no
19468 fi
19469 need_version=yes
19470 ;;
19471
19472sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000019473 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050019474 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19475 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019476 shlibpath_var=LD_LIBRARY_PATH
19477 case $host_vendor in
19478 sni)
19479 shlibpath_overrides_runpath=no
19480 need_lib_prefix=no
19481 runpath_var=LD_RUN_PATH
19482 ;;
19483 siemens)
19484 need_lib_prefix=no
19485 ;;
19486 motorola)
19487 need_lib_prefix=no
19488 need_version=no
19489 shlibpath_overrides_runpath=no
19490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19491 ;;
19492 esac
19493 ;;
19494
19495sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050019496 if test -d /usr/nec; then
cristy99bd5232011-12-07 14:38:20 +000019497 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050019498 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19499 soname_spec='$libname$shared_ext.$major'
cristy73bd4a52010-10-05 11:24:23 +000019500 shlibpath_var=LD_LIBRARY_PATH
19501 fi
19502 ;;
19503
19504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Cristy15f22012015-11-14 17:51:30 -050019505 version_type=sco
cristy73bd4a52010-10-05 11:24:23 +000019506 need_lib_prefix=no
19507 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19509 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019510 shlibpath_var=LD_LIBRARY_PATH
19511 shlibpath_overrides_runpath=yes
19512 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050019513 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000019514 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19515 else
19516 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19517 case $host_os in
19518 sco3.2v5*)
19519 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19520 ;;
19521 esac
19522 fi
19523 sys_lib_dlsearch_path_spec='/usr/lib'
19524 ;;
19525
19526tpf*)
19527 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000019528 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019529 need_lib_prefix=no
19530 need_version=no
Cristy15f22012015-11-14 17:51:30 -050019531 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000019532 shlibpath_var=LD_LIBRARY_PATH
19533 shlibpath_overrides_runpath=no
19534 hardcode_into_libs=yes
19535 ;;
19536
19537uts4*)
cristy99bd5232011-12-07 14:38:20 +000019538 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050019539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19540 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000019541 shlibpath_var=LD_LIBRARY_PATH
19542 ;;
19543
19544*)
19545 dynamic_linker=no
19546 ;;
19547esac
19548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19549$as_echo "$dynamic_linker" >&6; }
Cristy15f22012015-11-14 17:51:30 -050019550test no = "$dynamic_linker" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000019551
19552variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Cristy15f22012015-11-14 17:51:30 -050019553if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000019554 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19555fi
19556
Cristy15f22012015-11-14 17:51:30 -050019557if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19558 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000019559fi
Cristy15f22012015-11-14 17:51:30 -050019560
19561if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19562 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cristy73bd4a52010-10-05 11:24:23 +000019563fi
19564
Cristy15f22012015-11-14 17:51:30 -050019565# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19566configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19567
19568# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19569func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19570
19571# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19572configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19573
19574
19575
19576
19577
19578
cristy73bd4a52010-10-05 11:24:23 +000019579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
cristy0c60a692010-11-04 01:09:47 +000019665
19666
19667
19668
19669
cristy73bd4a52010-10-05 11:24:23 +000019670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19671$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19672hardcode_action=
19673if test -n "$hardcode_libdir_flag_spec" ||
19674 test -n "$runpath_var" ||
Cristy15f22012015-11-14 17:51:30 -050019675 test yes = "$hardcode_automatic"; then
cristy73bd4a52010-10-05 11:24:23 +000019676
19677 # We can hardcode non-existent directories.
Cristy15f22012015-11-14 17:51:30 -050019678 if test no != "$hardcode_direct" &&
cristy73bd4a52010-10-05 11:24:23 +000019679 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19680 # have to relink, otherwise we might link with an installed library
19681 # when we should be linking with a yet-to-be-installed one
Cristy15f22012015-11-14 17:51:30 -050019682 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19683 test no != "$hardcode_minus_L"; then
cristy73bd4a52010-10-05 11:24:23 +000019684 # Linking always hardcodes the temporary library directory.
19685 hardcode_action=relink
19686 else
19687 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19688 hardcode_action=immediate
19689 fi
19690else
19691 # We cannot hardcode anything, or else we can only hardcode existing
19692 # directories.
19693 hardcode_action=unsupported
19694fi
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19696$as_echo "$hardcode_action" >&6; }
19697
Cristy15f22012015-11-14 17:51:30 -050019698if test relink = "$hardcode_action" ||
19699 test yes = "$inherit_rpath"; then
cristy73bd4a52010-10-05 11:24:23 +000019700 # Fast installation is not supported
19701 enable_fast_install=no
Cristy15f22012015-11-14 17:51:30 -050019702elif test yes = "$shlibpath_overrides_runpath" ||
19703 test no = "$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000019704 # Fast installation is not necessary
19705 enable_fast_install=needless
19706fi
19707
19708
19709
19710
19711
19712
Cristy15f22012015-11-14 17:51:30 -050019713 if test yes != "$enable_dlopen"; then
cristy73bd4a52010-10-05 11:24:23 +000019714 enable_dlopen=unknown
19715 enable_dlopen_self=unknown
19716 enable_dlopen_self_static=unknown
19717else
19718 lt_cv_dlopen=no
19719 lt_cv_dlopen_libs=
19720
19721 case $host_os in
19722 beos*)
Cristy15f22012015-11-14 17:51:30 -050019723 lt_cv_dlopen=load_add_on
cristy73bd4a52010-10-05 11:24:23 +000019724 lt_cv_dlopen_libs=
19725 lt_cv_dlopen_self=yes
19726 ;;
19727
19728 mingw* | pw32* | cegcc*)
Cristy15f22012015-11-14 17:51:30 -050019729 lt_cv_dlopen=LoadLibrary
cristy73bd4a52010-10-05 11:24:23 +000019730 lt_cv_dlopen_libs=
19731 ;;
19732
19733 cygwin*)
Cristy15f22012015-11-14 17:51:30 -050019734 lt_cv_dlopen=dlopen
cristy73bd4a52010-10-05 11:24:23 +000019735 lt_cv_dlopen_libs=
19736 ;;
19737
19738 darwin*)
Cristy15f22012015-11-14 17:51:30 -050019739 # if libdl is installed we need to link against it
cristy73bd4a52010-10-05 11:24:23 +000019740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19741$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019742if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019743 $as_echo_n "(cached) " >&6
19744else
19745 ac_check_lib_save_LIBS=$LIBS
19746LIBS="-ldl $LIBS"
19747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748/* end confdefs.h. */
19749
19750/* Override any GCC internal prototype to avoid an error.
19751 Use char because int might match the return type of a GCC
19752 builtin and then its argument prototype would still apply. */
19753#ifdef __cplusplus
19754extern "C"
19755#endif
19756char dlopen ();
19757int
19758main ()
19759{
19760return dlopen ();
19761 ;
19762 return 0;
19763}
19764_ACEOF
19765if ac_fn_c_try_link "$LINENO"; then :
19766 ac_cv_lib_dl_dlopen=yes
19767else
19768 ac_cv_lib_dl_dlopen=no
19769fi
19770rm -f core conftest.err conftest.$ac_objext \
19771 conftest$ac_exeext conftest.$ac_ext
19772LIBS=$ac_check_lib_save_LIBS
19773fi
19774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19775$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019776if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019777 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cristy73bd4a52010-10-05 11:24:23 +000019778else
19779
Cristy15f22012015-11-14 17:51:30 -050019780 lt_cv_dlopen=dyld
cristy73bd4a52010-10-05 11:24:23 +000019781 lt_cv_dlopen_libs=
19782 lt_cv_dlopen_self=yes
19783
19784fi
19785
19786 ;;
19787
Cristy15f22012015-11-14 17:51:30 -050019788 tpf*)
19789 # Don't try to run any link tests for TPF. We know it's impossible
19790 # because TPF is a cross-compiler, and we know how we open DSOs.
19791 lt_cv_dlopen=dlopen
19792 lt_cv_dlopen_libs=
19793 lt_cv_dlopen_self=no
19794 ;;
19795
cristy73bd4a52010-10-05 11:24:23 +000019796 *)
19797 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000019798if test "x$ac_cv_func_shl_load" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019799 lt_cv_dlopen=shl_load
cristy73bd4a52010-10-05 11:24:23 +000019800else
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19802$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019803if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019804 $as_echo_n "(cached) " >&6
19805else
19806 ac_check_lib_save_LIBS=$LIBS
19807LIBS="-ldld $LIBS"
19808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809/* end confdefs.h. */
19810
19811/* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814#ifdef __cplusplus
19815extern "C"
19816#endif
19817char shl_load ();
19818int
19819main ()
19820{
19821return shl_load ();
19822 ;
19823 return 0;
19824}
19825_ACEOF
19826if ac_fn_c_try_link "$LINENO"; then :
19827 ac_cv_lib_dld_shl_load=yes
19828else
19829 ac_cv_lib_dld_shl_load=no
19830fi
19831rm -f core conftest.err conftest.$ac_objext \
19832 conftest$ac_exeext conftest.$ac_ext
19833LIBS=$ac_check_lib_save_LIBS
19834fi
19835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19836$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000019837if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019838 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
cristy73bd4a52010-10-05 11:24:23 +000019839else
19840 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000019841if test "x$ac_cv_func_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019842 lt_cv_dlopen=dlopen
cristy73bd4a52010-10-05 11:24:23 +000019843else
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19845$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019846if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019847 $as_echo_n "(cached) " >&6
19848else
19849 ac_check_lib_save_LIBS=$LIBS
19850LIBS="-ldl $LIBS"
19851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852/* end confdefs.h. */
19853
19854/* Override any GCC internal prototype to avoid an error.
19855 Use char because int might match the return type of a GCC
19856 builtin and then its argument prototype would still apply. */
19857#ifdef __cplusplus
19858extern "C"
19859#endif
19860char dlopen ();
19861int
19862main ()
19863{
19864return dlopen ();
19865 ;
19866 return 0;
19867}
19868_ACEOF
19869if ac_fn_c_try_link "$LINENO"; then :
19870 ac_cv_lib_dl_dlopen=yes
19871else
19872 ac_cv_lib_dl_dlopen=no
19873fi
19874rm -f core conftest.err conftest.$ac_objext \
19875 conftest$ac_exeext conftest.$ac_ext
19876LIBS=$ac_check_lib_save_LIBS
19877fi
19878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019880if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019881 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
cristy73bd4a52010-10-05 11:24:23 +000019882else
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19884$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019885if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019886 $as_echo_n "(cached) " >&6
19887else
19888 ac_check_lib_save_LIBS=$LIBS
19889LIBS="-lsvld $LIBS"
19890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891/* end confdefs.h. */
19892
19893/* Override any GCC internal prototype to avoid an error.
19894 Use char because int might match the return type of a GCC
19895 builtin and then its argument prototype would still apply. */
19896#ifdef __cplusplus
19897extern "C"
19898#endif
19899char dlopen ();
19900int
19901main ()
19902{
19903return dlopen ();
19904 ;
19905 return 0;
19906}
19907_ACEOF
19908if ac_fn_c_try_link "$LINENO"; then :
19909 ac_cv_lib_svld_dlopen=yes
19910else
19911 ac_cv_lib_svld_dlopen=no
19912fi
19913rm -f core conftest.err conftest.$ac_objext \
19914 conftest$ac_exeext conftest.$ac_ext
19915LIBS=$ac_check_lib_save_LIBS
19916fi
19917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19918$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000019919if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019920 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
cristy73bd4a52010-10-05 11:24:23 +000019921else
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19923$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019924if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019925 $as_echo_n "(cached) " >&6
19926else
19927 ac_check_lib_save_LIBS=$LIBS
19928LIBS="-ldld $LIBS"
19929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930/* end confdefs.h. */
19931
19932/* Override any GCC internal prototype to avoid an error.
19933 Use char because int might match the return type of a GCC
19934 builtin and then its argument prototype would still apply. */
19935#ifdef __cplusplus
19936extern "C"
19937#endif
19938char dld_link ();
19939int
19940main ()
19941{
19942return dld_link ();
19943 ;
19944 return 0;
19945}
19946_ACEOF
19947if ac_fn_c_try_link "$LINENO"; then :
19948 ac_cv_lib_dld_dld_link=yes
19949else
19950 ac_cv_lib_dld_dld_link=no
19951fi
19952rm -f core conftest.err conftest.$ac_objext \
19953 conftest$ac_exeext conftest.$ac_ext
19954LIBS=$ac_check_lib_save_LIBS
19955fi
19956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19957$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000019958if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Cristy15f22012015-11-14 17:51:30 -050019959 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
cristy73bd4a52010-10-05 11:24:23 +000019960fi
19961
19962
19963fi
19964
19965
19966fi
19967
19968
19969fi
19970
19971
19972fi
19973
19974
19975fi
19976
19977 ;;
19978 esac
19979
Cristy15f22012015-11-14 17:51:30 -050019980 if test no = "$lt_cv_dlopen"; then
cristy73bd4a52010-10-05 11:24:23 +000019981 enable_dlopen=no
Cristy15f22012015-11-14 17:51:30 -050019982 else
19983 enable_dlopen=yes
cristy73bd4a52010-10-05 11:24:23 +000019984 fi
19985
19986 case $lt_cv_dlopen in
19987 dlopen)
Cristy15f22012015-11-14 17:51:30 -050019988 save_CPPFLAGS=$CPPFLAGS
19989 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
cristy73bd4a52010-10-05 11:24:23 +000019990
Cristy15f22012015-11-14 17:51:30 -050019991 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019992 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19993
Cristy15f22012015-11-14 17:51:30 -050019994 save_LIBS=$LIBS
cristy73bd4a52010-10-05 11:24:23 +000019995 LIBS="$lt_cv_dlopen_libs $LIBS"
19996
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19998$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019999if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020000 $as_echo_n "(cached) " >&6
20001else
Cristy15f22012015-11-14 17:51:30 -050020002 if test yes = "$cross_compiling"; then :
cristy73bd4a52010-10-05 11:24:23 +000020003 lt_cv_dlopen_self=cross
20004else
20005 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20006 lt_status=$lt_dlunknown
20007 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020008#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020009#include "confdefs.h"
20010
20011#if HAVE_DLFCN_H
20012#include <dlfcn.h>
20013#endif
20014
20015#include <stdio.h>
20016
20017#ifdef RTLD_GLOBAL
20018# define LT_DLGLOBAL RTLD_GLOBAL
20019#else
20020# ifdef DL_GLOBAL
20021# define LT_DLGLOBAL DL_GLOBAL
20022# else
20023# define LT_DLGLOBAL 0
20024# endif
20025#endif
20026
20027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20028 find out it does not work in some platform. */
20029#ifndef LT_DLLAZY_OR_NOW
20030# ifdef RTLD_LAZY
20031# define LT_DLLAZY_OR_NOW RTLD_LAZY
20032# else
20033# ifdef DL_LAZY
20034# define LT_DLLAZY_OR_NOW DL_LAZY
20035# else
20036# ifdef RTLD_NOW
20037# define LT_DLLAZY_OR_NOW RTLD_NOW
20038# else
20039# ifdef DL_NOW
20040# define LT_DLLAZY_OR_NOW DL_NOW
20041# else
20042# define LT_DLLAZY_OR_NOW 0
20043# endif
20044# endif
20045# endif
20046# endif
20047#endif
20048
Cristy15f22012015-11-14 17:51:30 -050020049/* When -fvisibility=hidden is used, assume the code has been annotated
cristy0c60a692010-11-04 01:09:47 +000020050 correspondingly for the symbols needed. */
Cristy15f22012015-11-14 17:51:30 -050020051#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020052int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020053#endif
20054
cristyda16f162011-02-19 23:52:17 +000020055int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020056int main ()
20057{
20058 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20059 int status = $lt_dlunknown;
20060
20061 if (self)
20062 {
20063 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020064 else
20065 {
20066 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20067 else puts (dlerror ());
20068 }
cristy73bd4a52010-10-05 11:24:23 +000020069 /* dlclose (self); */
20070 }
20071 else
20072 puts (dlerror ());
20073
20074 return status;
20075}
20076_LT_EOF
20077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20078 (eval $ac_link) 2>&5
20079 ac_status=$?
20080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050020081 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000020082 (./conftest; exit; ) >&5 2>/dev/null
20083 lt_status=$?
20084 case x$lt_status in
20085 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20086 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20087 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20088 esac
20089 else :
20090 # compilation failed
20091 lt_cv_dlopen_self=no
20092 fi
20093fi
20094rm -fr conftest*
20095
20096
20097fi
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20099$as_echo "$lt_cv_dlopen_self" >&6; }
20100
Cristy15f22012015-11-14 17:51:30 -050020101 if test yes = "$lt_cv_dlopen_self"; then
cristy73bd4a52010-10-05 11:24:23 +000020102 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20104$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020105if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020106 $as_echo_n "(cached) " >&6
20107else
Cristy15f22012015-11-14 17:51:30 -050020108 if test yes = "$cross_compiling"; then :
cristy73bd4a52010-10-05 11:24:23 +000020109 lt_cv_dlopen_self_static=cross
20110else
20111 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20112 lt_status=$lt_dlunknown
20113 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000020114#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000020115#include "confdefs.h"
20116
20117#if HAVE_DLFCN_H
20118#include <dlfcn.h>
20119#endif
20120
20121#include <stdio.h>
20122
20123#ifdef RTLD_GLOBAL
20124# define LT_DLGLOBAL RTLD_GLOBAL
20125#else
20126# ifdef DL_GLOBAL
20127# define LT_DLGLOBAL DL_GLOBAL
20128# else
20129# define LT_DLGLOBAL 0
20130# endif
20131#endif
20132
20133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20134 find out it does not work in some platform. */
20135#ifndef LT_DLLAZY_OR_NOW
20136# ifdef RTLD_LAZY
20137# define LT_DLLAZY_OR_NOW RTLD_LAZY
20138# else
20139# ifdef DL_LAZY
20140# define LT_DLLAZY_OR_NOW DL_LAZY
20141# else
20142# ifdef RTLD_NOW
20143# define LT_DLLAZY_OR_NOW RTLD_NOW
20144# else
20145# ifdef DL_NOW
20146# define LT_DLLAZY_OR_NOW DL_NOW
20147# else
20148# define LT_DLLAZY_OR_NOW 0
20149# endif
20150# endif
20151# endif
20152# endif
20153#endif
20154
Cristy15f22012015-11-14 17:51:30 -050020155/* When -fvisibility=hidden is used, assume the code has been annotated
cristy0c60a692010-11-04 01:09:47 +000020156 correspondingly for the symbols needed. */
Cristy15f22012015-11-14 17:51:30 -050020157#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000020158int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000020159#endif
20160
cristyda16f162011-02-19 23:52:17 +000020161int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000020162int main ()
20163{
20164 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20165 int status = $lt_dlunknown;
20166
20167 if (self)
20168 {
20169 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000020170 else
20171 {
20172 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20173 else puts (dlerror ());
20174 }
cristy73bd4a52010-10-05 11:24:23 +000020175 /* dlclose (self); */
20176 }
20177 else
20178 puts (dlerror ());
20179
20180 return status;
20181}
20182_LT_EOF
20183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20184 (eval $ac_link) 2>&5
20185 ac_status=$?
20186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Cristy15f22012015-11-14 17:51:30 -050020187 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000020188 (./conftest; exit; ) >&5 2>/dev/null
20189 lt_status=$?
20190 case x$lt_status in
20191 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20192 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20193 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20194 esac
20195 else :
20196 # compilation failed
20197 lt_cv_dlopen_self_static=no
20198 fi
20199fi
20200rm -fr conftest*
20201
20202
20203fi
20204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20205$as_echo "$lt_cv_dlopen_self_static" >&6; }
20206 fi
20207
Cristy15f22012015-11-14 17:51:30 -050020208 CPPFLAGS=$save_CPPFLAGS
20209 LDFLAGS=$save_LDFLAGS
20210 LIBS=$save_LIBS
cristy73bd4a52010-10-05 11:24:23 +000020211 ;;
20212 esac
20213
20214 case $lt_cv_dlopen_self in
20215 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20216 *) enable_dlopen_self=unknown ;;
20217 esac
20218
20219 case $lt_cv_dlopen_self_static in
20220 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20221 *) enable_dlopen_self_static=unknown ;;
20222 esac
20223fi
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241striplib=
20242old_striplib=
20243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20244$as_echo_n "checking whether stripping libraries is possible... " >&6; }
20245if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20246 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20247 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20249$as_echo "yes" >&6; }
20250else
20251# FIXME - insert some real tests, host_os isn't really good enough
20252 case $host_os in
20253 darwin*)
Cristy15f22012015-11-14 17:51:30 -050020254 if test -n "$STRIP"; then
cristy73bd4a52010-10-05 11:24:23 +000020255 striplib="$STRIP -x"
20256 old_striplib="$STRIP -S"
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20258$as_echo "yes" >&6; }
20259 else
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261$as_echo "no" >&6; }
20262 fi
20263 ;;
20264 *)
20265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20266$as_echo "no" >&6; }
20267 ;;
20268 esac
20269fi
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
Cristy15f22012015-11-14 17:51:30 -050020282 # Report what library types will actually be built
cristy73bd4a52010-10-05 11:24:23 +000020283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20284$as_echo_n "checking if libtool supports shared libraries... " >&6; }
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20286$as_echo "$can_build_shared" >&6; }
20287
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20289$as_echo_n "checking whether to build shared libraries... " >&6; }
Cristy15f22012015-11-14 17:51:30 -050020290 test no = "$can_build_shared" && enable_shared=no
cristy73bd4a52010-10-05 11:24:23 +000020291
20292 # On AIX, shared libraries and static libraries use the same namespace, and
20293 # are all built from PIC.
20294 case $host_os in
20295 aix3*)
Cristy15f22012015-11-14 17:51:30 -050020296 test yes = "$enable_shared" && enable_static=no
cristy73bd4a52010-10-05 11:24:23 +000020297 if test -n "$RANLIB"; then
20298 archive_cmds="$archive_cmds~\$RANLIB \$lib"
20299 postinstall_cmds='$RANLIB $lib'
20300 fi
20301 ;;
20302
20303 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050020304 if test ia64 != "$host_cpu"; then
20305 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
20306 yes,aix,yes) ;; # shared object as lib.so file only
20307 yes,svr4,*) ;; # shared object as lib.so archive member only
20308 yes,*) enable_static=no ;; # shared object in lib.a archive as well
20309 esac
cristy73bd4a52010-10-05 11:24:23 +000020310 fi
20311 ;;
20312 esac
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20314$as_echo "$enable_shared" >&6; }
20315
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20317$as_echo_n "checking whether to build static libraries... " >&6; }
20318 # Make sure either enable_shared or enable_static is yes.
Cristy15f22012015-11-14 17:51:30 -050020319 test yes = "$enable_shared" || enable_static=yes
cristy73bd4a52010-10-05 11:24:23 +000020320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20321$as_echo "$enable_static" >&6; }
20322
20323
20324
20325
20326fi
20327ac_ext=c
20328ac_cpp='$CPP $CPPFLAGS'
20329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20331ac_compiler_gnu=$ac_cv_c_compiler_gnu
20332
Cristy15f22012015-11-14 17:51:30 -050020333CC=$lt_save_CC
cristy73bd4a52010-10-05 11:24:23 +000020334
Cristy15f22012015-11-14 17:51:30 -050020335 if test -n "$CXX" && ( test no != "$CXX" &&
20336 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
20337 (test g++ != "$CXX"))); then
cristy0c60a692010-11-04 01:09:47 +000020338 ac_ext=cpp
20339ac_cpp='$CXXCPP $CPPFLAGS'
20340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20344$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20345if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000020346 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020347 $as_echo_n "(cached) " >&6
20348else
20349 # Double quotes because CXXCPP needs to be expanded
20350 for CXXCPP in "$CXX -E" "/lib/cpp"
20351 do
20352 ac_preproc_ok=false
20353for ac_cxx_preproc_warn_flag in '' yes
20354do
20355 # Use a header file that comes with gcc, so configuring glibc
20356 # with a fresh cross-compiler works.
20357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20358 # <limits.h> exists even on freestanding compilers.
20359 # On the NeXT, cc -E runs the code through the compiler's parser,
20360 # not just through cpp. "Syntax error" is here to catch this case.
20361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362/* end confdefs.h. */
20363#ifdef __STDC__
20364# include <limits.h>
20365#else
20366# include <assert.h>
20367#endif
20368 Syntax error
20369_ACEOF
20370if ac_fn_cxx_try_cpp "$LINENO"; then :
20371
20372else
20373 # Broken: fails on valid input.
20374continue
20375fi
cristyda16f162011-02-19 23:52:17 +000020376rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020377
20378 # OK, works on sane cases. Now check whether nonexistent headers
20379 # can be detected and how.
20380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381/* end confdefs.h. */
20382#include <ac_nonexistent.h>
20383_ACEOF
20384if ac_fn_cxx_try_cpp "$LINENO"; then :
20385 # Broken: success on invalid input.
20386continue
20387else
20388 # Passes both tests.
20389ac_preproc_ok=:
20390break
20391fi
cristyda16f162011-02-19 23:52:17 +000020392rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020393
20394done
20395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000020396rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020397if $ac_preproc_ok; then :
20398 break
20399fi
20400
20401 done
20402 ac_cv_prog_CXXCPP=$CXXCPP
20403
20404fi
20405 CXXCPP=$ac_cv_prog_CXXCPP
20406else
20407 ac_cv_prog_CXXCPP=$CXXCPP
20408fi
20409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20410$as_echo "$CXXCPP" >&6; }
20411ac_preproc_ok=false
20412for ac_cxx_preproc_warn_flag in '' yes
20413do
20414 # Use a header file that comes with gcc, so configuring glibc
20415 # with a fresh cross-compiler works.
20416 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20417 # <limits.h> exists even on freestanding compilers.
20418 # On the NeXT, cc -E runs the code through the compiler's parser,
20419 # not just through cpp. "Syntax error" is here to catch this case.
20420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20421/* end confdefs.h. */
20422#ifdef __STDC__
20423# include <limits.h>
20424#else
20425# include <assert.h>
20426#endif
20427 Syntax error
20428_ACEOF
20429if ac_fn_cxx_try_cpp "$LINENO"; then :
20430
20431else
20432 # Broken: fails on valid input.
20433continue
20434fi
cristyda16f162011-02-19 23:52:17 +000020435rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020436
20437 # OK, works on sane cases. Now check whether nonexistent headers
20438 # can be detected and how.
20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440/* end confdefs.h. */
20441#include <ac_nonexistent.h>
20442_ACEOF
20443if ac_fn_cxx_try_cpp "$LINENO"; then :
20444 # Broken: success on invalid input.
20445continue
20446else
20447 # Passes both tests.
20448ac_preproc_ok=:
20449break
20450fi
cristyda16f162011-02-19 23:52:17 +000020451rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020452
20453done
20454# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000020455rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020456if $ac_preproc_ok; then :
20457
20458else
20459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20461as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20462See \`config.log' for more details" "$LINENO" 5; }
20463fi
20464
20465ac_ext=c
20466ac_cpp='$CPP $CPPFLAGS'
20467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
20471else
20472 _lt_caught_CXX_error=yes
20473fi
cristy73bd4a52010-10-05 11:24:23 +000020474
20475ac_ext=cpp
20476ac_cpp='$CXXCPP $CPPFLAGS'
20477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20480
20481archive_cmds_need_lc_CXX=no
20482allow_undefined_flag_CXX=
20483always_export_symbols_CXX=no
20484archive_expsym_cmds_CXX=
20485compiler_needs_object_CXX=no
20486export_dynamic_flag_spec_CXX=
20487hardcode_direct_CXX=no
20488hardcode_direct_absolute_CXX=no
20489hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000020490hardcode_libdir_separator_CXX=
20491hardcode_minus_L_CXX=no
20492hardcode_shlibpath_var_CXX=unsupported
20493hardcode_automatic_CXX=no
20494inherit_rpath_CXX=no
20495module_cmds_CXX=
20496module_expsym_cmds_CXX=
20497link_all_deplibs_CXX=unknown
20498old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000020499reload_flag_CXX=$reload_flag
20500reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000020501no_undefined_flag_CXX=
20502whole_archive_flag_spec_CXX=
20503enable_shared_with_static_runtimes_CXX=no
20504
20505# Source file extension for C++ test sources.
20506ac_ext=cpp
20507
20508# Object file extension for compiled C++ test sources.
20509objext=o
20510objext_CXX=$objext
20511
20512# No sense in running all these tests if we already determined that
20513# the CXX compiler isn't working. Some variables (like enable_shared)
20514# are currently assumed to apply to all compilers on this platform,
20515# and will be corrupted by setting them based on a non-working compiler.
Cristy15f22012015-11-14 17:51:30 -050020516if test yes != "$_lt_caught_CXX_error"; then
cristy73bd4a52010-10-05 11:24:23 +000020517 # Code to be used in simple compile tests
20518 lt_simple_compile_test_code="int some_variable = 0;"
20519
20520 # Code to be used in simple link tests
20521 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20522
20523 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20524
20525
20526
20527
20528
20529
20530# If no C compiler was specified, use CC.
20531LTCC=${LTCC-"$CC"}
20532
20533# If no C compiler flags were specified, use CFLAGS.
20534LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20535
20536# Allow CC to be a program name with arguments.
20537compiler=$CC
20538
20539
20540 # save warnings/boilerplate of simple test code
20541 ac_outfile=conftest.$ac_objext
20542echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20544_lt_compiler_boilerplate=`cat conftest.err`
20545$RM conftest*
20546
20547 ac_outfile=conftest.$ac_objext
20548echo "$lt_simple_link_test_code" >conftest.$ac_ext
20549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20550_lt_linker_boilerplate=`cat conftest.err`
20551$RM -r conftest*
20552
20553
20554 # Allow CC to be a program name with arguments.
20555 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000020556 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020557 lt_save_LD=$LD
20558 lt_save_GCC=$GCC
20559 GCC=$GXX
20560 lt_save_with_gnu_ld=$with_gnu_ld
20561 lt_save_path_LD=$lt_cv_path_LD
20562 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20563 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20564 else
20565 $as_unset lt_cv_prog_gnu_ld
20566 fi
20567 if test -n "${lt_cv_path_LDCXX+set}"; then
20568 lt_cv_path_LD=$lt_cv_path_LDCXX
20569 else
20570 $as_unset lt_cv_path_LD
20571 fi
20572 test -z "${LDCXX+set}" || LD=$LDCXX
20573 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000020574 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020575 compiler=$CC
20576 compiler_CXX=$CC
Cristy15f22012015-11-14 17:51:30 -050020577 func_cc_basename $compiler
20578cc_basename=$func_cc_basename_result
cristy73bd4a52010-10-05 11:24:23 +000020579
20580
20581 if test -n "$compiler"; then
20582 # We don't want -fno-exception when compiling C++ code, so set the
20583 # no_builtin_flag separately
Cristy15f22012015-11-14 17:51:30 -050020584 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020585 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20586 else
20587 lt_prog_compiler_no_builtin_flag_CXX=
20588 fi
20589
Cristy15f22012015-11-14 17:51:30 -050020590 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020591 # Set up default GNU C++ configuration
20592
20593
20594
20595# Check whether --with-gnu-ld was given.
20596if test "${with_gnu_ld+set}" = set; then :
Cristy15f22012015-11-14 17:51:30 -050020597 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
cristy73bd4a52010-10-05 11:24:23 +000020598else
20599 with_gnu_ld=no
20600fi
20601
20602ac_prog=ld
Cristy15f22012015-11-14 17:51:30 -050020603if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000020604 # Check if gcc -print-prog-name=ld gives a path.
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20606$as_echo_n "checking for ld used by $CC... " >&6; }
20607 case $host in
20608 *-*-mingw*)
Cristy15f22012015-11-14 17:51:30 -050020609 # gcc leaves a trailing carriage return, which upsets mingw
cristy73bd4a52010-10-05 11:24:23 +000020610 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20611 *)
20612 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20613 esac
20614 case $ac_prog in
20615 # Accept absolute paths.
20616 [\\/]* | ?:[\\/]*)
20617 re_direlt='/[^/][^/]*/\.\./'
20618 # Canonicalize the pathname of ld
20619 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20620 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20621 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20622 done
Cristy15f22012015-11-14 17:51:30 -050020623 test -z "$LD" && LD=$ac_prog
cristy73bd4a52010-10-05 11:24:23 +000020624 ;;
20625 "")
20626 # If it fails, then pretend we aren't using GCC.
20627 ac_prog=ld
20628 ;;
20629 *)
20630 # If it is relative, then search for the first ld in PATH.
20631 with_gnu_ld=unknown
20632 ;;
20633 esac
Cristy15f22012015-11-14 17:51:30 -050020634elif test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000020635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20636$as_echo_n "checking for GNU ld... " >&6; }
20637else
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20639$as_echo_n "checking for non-GNU ld... " >&6; }
20640fi
cristyda16f162011-02-19 23:52:17 +000020641if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020642 $as_echo_n "(cached) " >&6
20643else
20644 if test -z "$LD"; then
Cristy15f22012015-11-14 17:51:30 -050020645 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
cristy73bd4a52010-10-05 11:24:23 +000020646 for ac_dir in $PATH; do
Cristy15f22012015-11-14 17:51:30 -050020647 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000020648 test -z "$ac_dir" && ac_dir=.
20649 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Cristy15f22012015-11-14 17:51:30 -050020650 lt_cv_path_LD=$ac_dir/$ac_prog
cristy73bd4a52010-10-05 11:24:23 +000020651 # Check to see if the program is GNU ld. I'd rather use --version,
20652 # but apparently some variants of GNU ld only accept -v.
20653 # Break only if it was the GNU/non-GNU ld that we prefer.
20654 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20655 *GNU* | *'with BFD'*)
Cristy15f22012015-11-14 17:51:30 -050020656 test no != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +000020657 ;;
20658 *)
Cristy15f22012015-11-14 17:51:30 -050020659 test yes != "$with_gnu_ld" && break
cristy73bd4a52010-10-05 11:24:23 +000020660 ;;
20661 esac
20662 fi
20663 done
Cristy15f22012015-11-14 17:51:30 -050020664 IFS=$lt_save_ifs
cristy73bd4a52010-10-05 11:24:23 +000020665else
Cristy15f22012015-11-14 17:51:30 -050020666 lt_cv_path_LD=$LD # Let the user override the test with a path.
cristy73bd4a52010-10-05 11:24:23 +000020667fi
20668fi
20669
Cristy15f22012015-11-14 17:51:30 -050020670LD=$lt_cv_path_LD
cristy73bd4a52010-10-05 11:24:23 +000020671if test -n "$LD"; then
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20673$as_echo "$LD" >&6; }
20674else
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676$as_echo "no" >&6; }
20677fi
cristy98dddb52010-11-04 00:30:15 +000020678test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000020679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20680$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020681if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020682 $as_echo_n "(cached) " >&6
20683else
20684 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20685case `$LD -v 2>&1 </dev/null` in
20686*GNU* | *'with BFD'*)
20687 lt_cv_prog_gnu_ld=yes
20688 ;;
20689*)
20690 lt_cv_prog_gnu_ld=no
20691 ;;
20692esac
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20695$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20696with_gnu_ld=$lt_cv_prog_gnu_ld
20697
20698
20699
20700
20701
20702
20703
20704 # Check if GNU C++ uses GNU ld as the underlying linker, since the
20705 # archiving commands below assume that GNU ld is being used.
Cristy15f22012015-11-14 17:51:30 -050020706 if test yes = "$with_gnu_ld"; then
20707 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20708 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 +000020709
Cristy15f22012015-11-14 17:51:30 -050020710 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20711 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000020712
20713 # If archive_cmds runs LD, not CC, wlarc should be empty
20714 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20715 # investigate it a little bit more. (MM)
Cristy15f22012015-11-14 17:51:30 -050020716 wlarc='$wl'
cristy73bd4a52010-10-05 11:24:23 +000020717
20718 # ancient GNU ld didn't support --whole-archive et. al.
20719 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20720 $GREP 'no-whole-archive' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050020721 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000020722 else
20723 whole_archive_flag_spec_CXX=
20724 fi
20725 else
20726 with_gnu_ld=no
20727 wlarc=
20728
20729 # A generic and very simple default shared library creation
20730 # command for GNU C++ for the case where it uses the native
20731 # linker, instead of GNU ld. If possible, this setting should
20732 # overridden to take advantage of the native linker features on
20733 # the platform it is being used on.
20734 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20735 fi
20736
20737 # Commands to make compiler produce verbose output that lists
20738 # what "hidden" libraries, object files and flags are used when
20739 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000020740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000020741
20742 else
20743 GXX=no
20744 with_gnu_ld=no
20745 wlarc=
20746 fi
20747
20748 # PORTME: fill in a description of your system's C++ link characteristics
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20750$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20751 ld_shlibs_CXX=yes
20752 case $host_os in
20753 aix3*)
20754 # FIXME: insert proper C++ library support
20755 ld_shlibs_CXX=no
20756 ;;
20757 aix[4-9]*)
Cristy15f22012015-11-14 17:51:30 -050020758 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020759 # On IA64, the linker does run time linking by default, so we don't
20760 # have to do anything special.
20761 aix_use_runtimelinking=no
20762 exp_sym_flag='-Bexport'
Cristy15f22012015-11-14 17:51:30 -050020763 no_entry_flag=
cristy73bd4a52010-10-05 11:24:23 +000020764 else
20765 aix_use_runtimelinking=no
20766
20767 # Test if we are trying to use run time linking or normal
20768 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
Cristy15f22012015-11-14 17:51:30 -050020769 # have runtime linking enabled, and use it for executables.
20770 # For shared libraries, we enable/disable runtime linking
20771 # depending on the kind of the shared library created -
20772 # when "with_aix_soname,aix_use_runtimelinking" is:
20773 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
20774 # "aix,yes" lib.so shared, rtl:yes, for executables
20775 # lib.a static archive
20776 # "both,no" lib.so.V(shr.o) shared, rtl:yes
20777 # lib.a(lib.so.V) shared, rtl:no, for executables
20778 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20779 # lib.a(lib.so.V) shared, rtl:no
20780 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
20781 # lib.a static archive
cristy73bd4a52010-10-05 11:24:23 +000020782 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20783 for ld_flag in $LDFLAGS; do
20784 case $ld_flag in
20785 *-brtl*)
20786 aix_use_runtimelinking=yes
20787 break
20788 ;;
20789 esac
20790 done
Cristy15f22012015-11-14 17:51:30 -050020791 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20792 # With aix-soname=svr4, we create the lib.so.V shared archives only,
20793 # so we don't have lib.a shared libs to link our executables.
20794 # We have to force runtime linking in this case.
20795 aix_use_runtimelinking=yes
20796 LDFLAGS="$LDFLAGS -Wl,-brtl"
20797 fi
cristy73bd4a52010-10-05 11:24:23 +000020798 ;;
20799 esac
20800
20801 exp_sym_flag='-bexport'
20802 no_entry_flag='-bnoentry'
20803 fi
20804
20805 # When large executables or shared objects are built, AIX ld can
20806 # have problems creating the table of contents. If linking a library
20807 # or program results in "error TOC overflow" add -mminimal-toc to
20808 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
20809 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20810
20811 archive_cmds_CXX=''
20812 hardcode_direct_CXX=yes
20813 hardcode_direct_absolute_CXX=yes
20814 hardcode_libdir_separator_CXX=':'
20815 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050020816 file_list_spec_CXX='$wl-f,'
20817 case $with_aix_soname,$aix_use_runtimelinking in
20818 aix,*) ;; # no import file
20819 svr4,* | *,yes) # use import file
20820 # The Import File defines what to hardcode.
20821 hardcode_direct_CXX=no
20822 hardcode_direct_absolute_CXX=no
20823 ;;
20824 esac
cristy73bd4a52010-10-05 11:24:23 +000020825
Cristy15f22012015-11-14 17:51:30 -050020826 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000020827 case $host_os in aix4.[012]|aix4.[012].*)
20828 # We only want to do this on AIX 4.2 and lower, the check
20829 # below for broken collect2 doesn't work under 4.3+
Cristy15f22012015-11-14 17:51:30 -050020830 collect2name=`$CC -print-prog-name=collect2`
cristy73bd4a52010-10-05 11:24:23 +000020831 if test -f "$collect2name" &&
20832 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20833 then
20834 # We have reworked collect2
20835 :
20836 else
20837 # We have old collect2
20838 hardcode_direct_CXX=unsupported
20839 # It fails to find uninstalled libraries when the uninstalled
20840 # path is not listed in the libpath. Setting hardcode_minus_L
20841 # to unsupported forces relinking
20842 hardcode_minus_L_CXX=yes
20843 hardcode_libdir_flag_spec_CXX='-L$libdir'
20844 hardcode_libdir_separator_CXX=
20845 fi
20846 esac
20847 shared_flag='-shared'
Cristy15f22012015-11-14 17:51:30 -050020848 if test yes = "$aix_use_runtimelinking"; then
20849 shared_flag=$shared_flag' $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000020850 fi
Cristy15f22012015-11-14 17:51:30 -050020851 # Need to ensure runtime linking is disabled for the traditional
20852 # shared library, or the linker may eventually find shared libraries
20853 # /with/ Import File - we do not want to mix them.
20854 shared_flag_aix='-shared'
20855 shared_flag_svr4='-shared $wl-G'
cristy73bd4a52010-10-05 11:24:23 +000020856 else
20857 # not using gcc
Cristy15f22012015-11-14 17:51:30 -050020858 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000020859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20860 # chokes on -Wl,-G. The following line is correct:
20861 shared_flag='-G'
20862 else
Cristy15f22012015-11-14 17:51:30 -050020863 if test yes = "$aix_use_runtimelinking"; then
20864 shared_flag='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000020865 else
Cristy15f22012015-11-14 17:51:30 -050020866 shared_flag='$wl-bM:SRE'
cristy73bd4a52010-10-05 11:24:23 +000020867 fi
Cristy15f22012015-11-14 17:51:30 -050020868 shared_flag_aix='$wl-bM:SRE'
20869 shared_flag_svr4='$wl-G'
cristy73bd4a52010-10-05 11:24:23 +000020870 fi
20871 fi
20872
Cristy15f22012015-11-14 17:51:30 -050020873 export_dynamic_flag_spec_CXX='$wl-bexpall'
cristy73bd4a52010-10-05 11:24:23 +000020874 # It seems that -bexpall does not export symbols beginning with
20875 # underscore (_), so it is better to generate a list of symbols to
20876 # export.
20877 always_export_symbols_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050020878 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
cristy73bd4a52010-10-05 11:24:23 +000020879 # Warning - without using the other runtime loading flags (-brtl),
20880 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050020881 # The "-G" linker flag allows undefined symbols.
20882 no_undefined_flag_CXX='-bernotok'
cristy73bd4a52010-10-05 11:24:23 +000020883 # Determine the default libpath from the value encoded in an empty
20884 # executable.
Cristy15f22012015-11-14 17:51:30 -050020885 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000020886 aix_libpath=$lt_cv_aix_libpath
20887else
20888 if ${lt_cv_aix_libpath__CXX+:} false; then :
20889 $as_echo_n "(cached) " >&6
20890else
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020892/* end confdefs.h. */
20893
20894int
20895main ()
20896{
20897
20898 ;
20899 return 0;
20900}
20901_ACEOF
20902if ac_fn_cxx_try_link "$LINENO"; then :
20903
cristyda16f162011-02-19 23:52:17 +000020904 lt_aix_libpath_sed='
20905 /Import File Strings/,/^$/ {
20906 /^0/ {
20907 s/^0 *\([^ ]*\) *$/\1/
20908 p
20909 }
20910 }'
20911 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20912 # Check for a 64-bit object if we didn't find anything.
20913 if test -z "$lt_cv_aix_libpath__CXX"; then
20914 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20915 fi
cristy73bd4a52010-10-05 11:24:23 +000020916fi
20917rm -f core conftest.err conftest.$ac_objext \
20918 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000020919 if test -z "$lt_cv_aix_libpath__CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020920 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000020921 fi
20922
20923fi
20924
20925 aix_libpath=$lt_cv_aix_libpath__CXX
20926fi
cristy73bd4a52010-10-05 11:24:23 +000020927
Cristy15f22012015-11-14 17:51:30 -050020928 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000020929
Cristy15f22012015-11-14 17:51:30 -050020930 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 +000020931 else
Cristy15f22012015-11-14 17:51:30 -050020932 if test ia64 = "$host_cpu"; then
20933 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
cristy73bd4a52010-10-05 11:24:23 +000020934 allow_undefined_flag_CXX="-z nodefs"
Cristy15f22012015-11-14 17:51:30 -050020935 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 +000020936 else
20937 # Determine the default libpath from the value encoded in an
20938 # empty executable.
Cristy15f22012015-11-14 17:51:30 -050020939 if test set = "${lt_cv_aix_libpath+set}"; then
cristyda16f162011-02-19 23:52:17 +000020940 aix_libpath=$lt_cv_aix_libpath
20941else
20942 if ${lt_cv_aix_libpath__CXX+:} false; then :
20943 $as_echo_n "(cached) " >&6
20944else
20945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020946/* end confdefs.h. */
20947
20948int
20949main ()
20950{
20951
20952 ;
20953 return 0;
20954}
20955_ACEOF
20956if ac_fn_cxx_try_link "$LINENO"; then :
20957
cristyda16f162011-02-19 23:52:17 +000020958 lt_aix_libpath_sed='
20959 /Import File Strings/,/^$/ {
20960 /^0/ {
20961 s/^0 *\([^ ]*\) *$/\1/
20962 p
20963 }
20964 }'
20965 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20966 # Check for a 64-bit object if we didn't find anything.
20967 if test -z "$lt_cv_aix_libpath__CXX"; then
20968 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20969 fi
cristy73bd4a52010-10-05 11:24:23 +000020970fi
20971rm -f core conftest.err conftest.$ac_objext \
20972 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000020973 if test -z "$lt_cv_aix_libpath__CXX"; then
Cristy15f22012015-11-14 17:51:30 -050020974 lt_cv_aix_libpath__CXX=/usr/lib:/lib
cristyda16f162011-02-19 23:52:17 +000020975 fi
20976
20977fi
20978
20979 aix_libpath=$lt_cv_aix_libpath__CXX
20980fi
cristy73bd4a52010-10-05 11:24:23 +000020981
Cristy15f22012015-11-14 17:51:30 -050020982 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
cristy73bd4a52010-10-05 11:24:23 +000020983 # Warning - without using the other run time loading flags,
20984 # -berok will link without error, but may produce a broken library.
Cristy15f22012015-11-14 17:51:30 -050020985 no_undefined_flag_CXX=' $wl-bernotok'
20986 allow_undefined_flag_CXX=' $wl-berok'
20987 if test yes = "$with_gnu_ld"; then
cristy0c60a692010-11-04 01:09:47 +000020988 # We only use this code for GNU lds that support --whole-archive.
Cristy15f22012015-11-14 17:51:30 -050020989 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy0c60a692010-11-04 01:09:47 +000020990 else
20991 # Exported symbols can be pulled into shared objects from archives
20992 whole_archive_flag_spec_CXX='$convenience'
20993 fi
cristy73bd4a52010-10-05 11:24:23 +000020994 archive_cmds_need_lc_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050020995 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20996 # -brtl affects multiple linker settings, -berok does not and is overridden later
20997 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20998 if test svr4 != "$with_aix_soname"; then
20999 # This is similar to how AIX traditionally builds its shared
21000 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
21001 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'
21002 fi
21003 if test aix != "$with_aix_soname"; then
21004 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'
21005 else
21006 # used by -dlpreopen to get the symbols
21007 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
21008 fi
21009 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
cristy73bd4a52010-10-05 11:24:23 +000021010 fi
21011 fi
21012 ;;
21013
21014 beos*)
21015 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21016 allow_undefined_flag_CXX=unsupported
21017 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21018 # support --undefined. This deserves some investigation. FIXME
Cristy15f22012015-11-14 17:51:30 -050021019 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000021020 else
21021 ld_shlibs_CXX=no
21022 fi
21023 ;;
21024
21025 chorus*)
21026 case $cc_basename in
21027 *)
21028 # FIXME: insert proper C++ library support
21029 ld_shlibs_CXX=no
21030 ;;
21031 esac
21032 ;;
21033
21034 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000021035 case $GXX,$cc_basename in
21036 ,cl* | no,cl*)
21037 # Native MSVC
21038 # hardcode_libdir_flag_spec is actually meaningless, as there is
21039 # no search path for DLLs.
21040 hardcode_libdir_flag_spec_CXX=' '
21041 allow_undefined_flag_CXX=unsupported
21042 always_export_symbols_CXX=yes
21043 file_list_spec_CXX='@'
21044 # Tell ltmain to make .lib files, not .a files.
21045 libext=lib
21046 # Tell ltmain to make .dll files, not .so files.
Cristy15f22012015-11-14 17:51:30 -050021047 shrext_cmds=.dll
cristyda16f162011-02-19 23:52:17 +000021048 # FIXME: Setting linknames here is a bad hack.
Cristy15f22012015-11-14 17:51:30 -050021049 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21050 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21051 cp "$export_symbols" "$output_objdir/$soname.def";
21052 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21053 else
21054 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21055 fi~
21056 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21057 linknames='
cristyda16f162011-02-19 23:52:17 +000021058 # The linker will not automatically build a static lib if we build a DLL.
21059 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
21060 enable_shared_with_static_runtimes_CXX=yes
21061 # Don't use ranlib
21062 old_postinstall_cmds_CXX='chmod 644 $oldlib'
21063 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
Cristy15f22012015-11-14 17:51:30 -050021064 lt_tool_outputfile="@TOOL_OUTPUT@"~
21065 case $lt_outputfile in
21066 *.exe|*.EXE) ;;
21067 *)
21068 lt_outputfile=$lt_outputfile.exe
21069 lt_tool_outputfile=$lt_tool_outputfile.exe
21070 ;;
21071 esac~
21072 func_to_tool_file "$lt_outputfile"~
21073 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21074 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21075 $RM "$lt_outputfile.manifest";
21076 fi'
cristyda16f162011-02-19 23:52:17 +000021077 ;;
21078 *)
21079 # g++
21080 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21081 # as there is no search path for DLLs.
21082 hardcode_libdir_flag_spec_CXX='-L$libdir'
Cristy15f22012015-11-14 17:51:30 -050021083 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
cristyda16f162011-02-19 23:52:17 +000021084 allow_undefined_flag_CXX=unsupported
21085 always_export_symbols_CXX=no
21086 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000021087
cristyda16f162011-02-19 23:52:17 +000021088 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050021089 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'
21090 # If the export-symbols file already is a .def file, use it as
21091 # is; otherwise, prepend EXPORTS...
21092 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
21093 cp $export_symbols $output_objdir/$soname.def;
21094 else
21095 echo EXPORTS > $output_objdir/$soname.def;
21096 cat $export_symbols >> $output_objdir/$soname.def;
21097 fi~
21098 $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 +000021099 else
21100 ld_shlibs_CXX=no
21101 fi
21102 ;;
21103 esac
21104 ;;
cristy73bd4a52010-10-05 11:24:23 +000021105 darwin* | rhapsody*)
21106
21107
21108 archive_cmds_need_lc_CXX=no
21109 hardcode_direct_CXX=no
21110 hardcode_automatic_CXX=yes
21111 hardcode_shlibpath_var_CXX=unsupported
Cristy15f22012015-11-14 17:51:30 -050021112 if test yes = "$lt_cv_ld_force_load"; then
21113 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 +000021114
cristy0c60a692010-11-04 01:09:47 +000021115 else
21116 whole_archive_flag_spec_CXX=''
21117 fi
cristy73bd4a52010-10-05 11:24:23 +000021118 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050021119 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
cristy73bd4a52010-10-05 11:24:23 +000021120 case $cc_basename in
Cristy15f22012015-11-14 17:51:30 -050021121 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000021122 *) _lt_dar_can_shared=$GCC ;;
21123 esac
Cristy15f22012015-11-14 17:51:30 -050021124 if test yes = "$_lt_dar_can_shared"; then
cristy0c60a692010-11-04 01:09:47 +000021125 output_verbose_link_cmd=func_echo_all
Cristy15f22012015-11-14 17:51:30 -050021126 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"
21127 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21128 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"
21129 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"
21130 if test yes != "$lt_cv_apple_cc_single_mod"; then
21131 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"
21132 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 +000021133 fi
21134
21135 else
21136 ld_shlibs_CXX=no
21137 fi
21138
21139 ;;
21140
Cristy15f22012015-11-14 17:51:30 -050021141 os2*)
21142 hardcode_libdir_flag_spec_CXX='-L$libdir'
21143 hardcode_minus_L_CXX=yes
21144 allow_undefined_flag_CXX=unsupported
21145 shrext_cmds=.dll
21146 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21147 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21148 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21149 $ECHO EXPORTS >> $output_objdir/$libname.def~
21150 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21151 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21152 emximp -o $lib $output_objdir/$libname.def'
21153 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21154 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21155 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21156 $ECHO EXPORTS >> $output_objdir/$libname.def~
21157 prefix_cmds="$SED"~
21158 if test EXPORTS = "`$SED 1q $export_symbols`"; then
21159 prefix_cmds="$prefix_cmds -e 1d";
21160 fi~
21161 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21162 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21163 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21164 emximp -o $lib $output_objdir/$libname.def'
21165 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21166 enable_shared_with_static_runtimes_CXX=yes
21167 ;;
21168
cristy73bd4a52010-10-05 11:24:23 +000021169 dgux*)
21170 case $cc_basename in
21171 ec++*)
21172 # FIXME: insert proper C++ library support
21173 ld_shlibs_CXX=no
21174 ;;
21175 ghcx*)
21176 # Green Hills C++ Compiler
21177 # FIXME: insert proper C++ library support
21178 ld_shlibs_CXX=no
21179 ;;
21180 *)
21181 # FIXME: insert proper C++ library support
21182 ld_shlibs_CXX=no
21183 ;;
21184 esac
21185 ;;
21186
cristy99bd5232011-12-07 14:38:20 +000021187 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000021188 # C++ shared libraries reported to be fairly broken before
21189 # switch to ELF
21190 ld_shlibs_CXX=no
21191 ;;
21192
21193 freebsd-elf*)
21194 archive_cmds_need_lc_CXX=no
21195 ;;
21196
21197 freebsd* | dragonfly*)
21198 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21199 # conventions
21200 ld_shlibs_CXX=yes
21201 ;;
21202
cristy0c60a692010-11-04 01:09:47 +000021203 haiku*)
Cristy15f22012015-11-14 17:51:30 -050021204 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
cristy0c60a692010-11-04 01:09:47 +000021205 link_all_deplibs_CXX=yes
21206 ;;
21207
cristy73bd4a52010-10-05 11:24:23 +000021208 hpux9*)
Cristy15f22012015-11-14 17:51:30 -050021209 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021210 hardcode_libdir_separator_CXX=:
Cristy15f22012015-11-14 17:51:30 -050021211 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000021212 hardcode_direct_CXX=yes
21213 hardcode_minus_L_CXX=yes # Not in the search PATH,
21214 # but as the default
21215 # location of the library.
21216
21217 case $cc_basename in
21218 CC*)
21219 # FIXME: insert proper C++ library support
21220 ld_shlibs_CXX=no
21221 ;;
21222 aCC*)
Cristy15f22012015-11-14 17:51:30 -050021223 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 +000021224 # Commands to make compiler produce verbose output that lists
21225 # what "hidden" libraries, object files and flags are used when
21226 # linking a shared library.
21227 #
21228 # There doesn't appear to be a way to prevent this compiler from
21229 # explicitly linking system object files so we need to strip them
21230 # from the output so that they don't get included in the library
21231 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050021232 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 +000021233 ;;
21234 *)
Cristy15f22012015-11-14 17:51:30 -050021235 if test yes = "$GXX"; then
21236 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 +000021237 else
21238 # FIXME: insert proper C++ library support
21239 ld_shlibs_CXX=no
21240 fi
21241 ;;
21242 esac
21243 ;;
21244
21245 hpux10*|hpux11*)
Cristy15f22012015-11-14 17:51:30 -050021246 if test no = "$with_gnu_ld"; then
21247 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021248 hardcode_libdir_separator_CXX=:
21249
21250 case $host_cpu in
21251 hppa*64*|ia64*)
21252 ;;
21253 *)
Cristy15f22012015-11-14 17:51:30 -050021254 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000021255 ;;
21256 esac
21257 fi
21258 case $host_cpu in
21259 hppa*64*|ia64*)
21260 hardcode_direct_CXX=no
21261 hardcode_shlibpath_var_CXX=no
21262 ;;
21263 *)
21264 hardcode_direct_CXX=yes
21265 hardcode_direct_absolute_CXX=yes
21266 hardcode_minus_L_CXX=yes # Not in the search PATH,
21267 # but as the default
21268 # location of the library.
21269 ;;
21270 esac
21271
21272 case $cc_basename in
21273 CC*)
21274 # FIXME: insert proper C++ library support
21275 ld_shlibs_CXX=no
21276 ;;
21277 aCC*)
21278 case $host_cpu in
21279 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050021280 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 +000021281 ;;
21282 ia64*)
Cristy15f22012015-11-14 17:51:30 -050021283 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 +000021284 ;;
21285 *)
Cristy15f22012015-11-14 17:51:30 -050021286 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 +000021287 ;;
21288 esac
21289 # Commands to make compiler produce verbose output that lists
21290 # what "hidden" libraries, object files and flags are used when
21291 # linking a shared library.
21292 #
21293 # There doesn't appear to be a way to prevent this compiler from
21294 # explicitly linking system object files so we need to strip them
21295 # from the output so that they don't get included in the library
21296 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050021297 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 +000021298 ;;
21299 *)
Cristy15f22012015-11-14 17:51:30 -050021300 if test yes = "$GXX"; then
21301 if test no = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000021302 case $host_cpu in
21303 hppa*64*)
Cristy15f22012015-11-14 17:51:30 -050021304 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 +000021305 ;;
21306 ia64*)
Cristy15f22012015-11-14 17:51:30 -050021307 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 +000021308 ;;
21309 *)
Cristy15f22012015-11-14 17:51:30 -050021310 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 +000021311 ;;
21312 esac
21313 fi
21314 else
21315 # FIXME: insert proper C++ library support
21316 ld_shlibs_CXX=no
21317 fi
21318 ;;
21319 esac
21320 ;;
21321
21322 interix[3-9]*)
21323 hardcode_direct_CXX=no
21324 hardcode_shlibpath_var_CXX=no
Cristy15f22012015-11-14 17:51:30 -050021325 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21326 export_dynamic_flag_spec_CXX='$wl-E'
cristy73bd4a52010-10-05 11:24:23 +000021327 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21328 # Instead, shared libraries are loaded at an image base (0x10000000 by
21329 # default) and relocated if they conflict, which is a slow very memory
21330 # consuming and fragmenting process. To avoid this, we pick a random,
21331 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21332 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
Cristy15f22012015-11-14 17:51:30 -050021333 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'
21334 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 +000021335 ;;
21336 irix5* | irix6*)
21337 case $cc_basename in
21338 CC*)
21339 # SGI C++
Cristy15f22012015-11-14 17:51:30 -050021340 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 +000021341
21342 # Archives containing C++ object files must be created using
21343 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
21344 # necessary to make sure instantiated templates are included
21345 # in the archive.
21346 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21347 ;;
21348 *)
Cristy15f22012015-11-14 17:51:30 -050021349 if test yes = "$GXX"; then
21350 if test no = "$with_gnu_ld"; then
21351 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 +000021352 else
Cristy15f22012015-11-14 17:51:30 -050021353 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 +000021354 fi
21355 fi
21356 link_all_deplibs_CXX=yes
21357 ;;
21358 esac
Cristy15f22012015-11-14 17:51:30 -050021359 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021360 hardcode_libdir_separator_CXX=:
21361 inherit_rpath_CXX=yes
21362 ;;
21363
Cristy15f22012015-11-14 17:51:30 -050021364 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000021365 case $cc_basename in
21366 KCC*)
21367 # Kuck and Associates, Inc. (KAI) C++ Compiler
21368
21369 # KCC will only create a shared library if the output file
21370 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21371 # to its proper name (with version) after linking.
Cristy15f22012015-11-14 17:51:30 -050021372 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'
21373 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 +000021374 # Commands to make compiler produce verbose output that lists
21375 # what "hidden" libraries, object files and flags are used when
21376 # linking a shared library.
21377 #
21378 # There doesn't appear to be a way to prevent this compiler from
21379 # explicitly linking system object files so we need to strip them
21380 # from the output so that they don't get included in the library
21381 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050021382 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 +000021383
Cristy15f22012015-11-14 17:51:30 -050021384 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21385 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
cristy73bd4a52010-10-05 11:24:23 +000021386
21387 # Archives containing C++ object files must be created using
21388 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21389 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21390 ;;
21391 icpc* | ecpc* )
21392 # Intel C++
21393 with_gnu_ld=yes
21394 # version 8.0 and above of icpc choke on multiply defined symbols
21395 # if we add $predep_objects and $postdep_objects, however 7.1 and
21396 # earlier do not add the objects themselves.
21397 case `$CC -V 2>&1` in
21398 *"Version 7."*)
Cristy15f22012015-11-14 17:51:30 -050021399 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21400 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 +000021401 ;;
21402 *) # Version 8.0 or newer
21403 tmp_idyn=
21404 case $host_cpu in
21405 ia64*) tmp_idyn=' -i_dynamic';;
21406 esac
Cristy15f22012015-11-14 17:51:30 -050021407 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21408 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 +000021409 ;;
21410 esac
21411 archive_cmds_need_lc_CXX=no
Cristy15f22012015-11-14 17:51:30 -050021412 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21413 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21414 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000021415 ;;
21416 pgCC* | pgcpp*)
21417 # Portland Group C++ compiler
21418 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000021419 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000021420 prelink_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050021421 rm -rf $tpldir~
21422 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21423 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000021424 old_archive_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050021425 rm -rf $tpldir~
21426 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21427 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21428 $RANLIB $oldlib'
cristy73bd4a52010-10-05 11:24:23 +000021429 archive_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050021430 rm -rf $tpldir~
21431 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21432 $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 +000021433 archive_expsym_cmds_CXX='tpldir=Template.dir~
Cristy15f22012015-11-14 17:51:30 -050021434 rm -rf $tpldir~
21435 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21436 $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 +000021437 ;;
cristy0c60a692010-11-04 01:09:47 +000021438 *) # Version 6 and above use weak symbols
Cristy15f22012015-11-14 17:51:30 -050021439 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21440 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 +000021441 ;;
21442 esac
21443
Cristy15f22012015-11-14 17:51:30 -050021444 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
21445 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21446 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 +000021447 ;;
21448 cxx*)
21449 # Compaq C++
Cristy15f22012015-11-14 17:51:30 -050021450 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21451 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 +000021452
21453 runpath_var=LD_RUN_PATH
21454 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21455 hardcode_libdir_separator_CXX=:
21456
21457 # Commands to make compiler produce verbose output that lists
21458 # what "hidden" libraries, object files and flags are used when
21459 # linking a shared library.
21460 #
21461 # There doesn't appear to be a way to prevent this compiler from
21462 # explicitly linking system object files so we need to strip them
21463 # from the output so that they don't get included in the library
21464 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050021465 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 +000021466 ;;
cristy0c60a692010-11-04 01:09:47 +000021467 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000021468 # IBM XL 8.0 on PPC, with GNU ld
Cristy15f22012015-11-14 17:51:30 -050021469 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21470 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21471 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21472 if test yes = "$supports_anon_versioning"; then
cristy73bd4a52010-10-05 11:24:23 +000021473 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
Cristy15f22012015-11-14 17:51:30 -050021474 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21475 echo "local: *; };" >> $output_objdir/$libname.ver~
21476 $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 +000021477 fi
21478 ;;
21479 *)
21480 case `$CC -V 2>&1 | sed 5q` in
21481 *Sun\ C*)
21482 # Sun C++ 5.9
21483 no_undefined_flag_CXX=' -zdefs'
Cristy15f22012015-11-14 17:51:30 -050021484 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21485 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 +000021486 hardcode_libdir_flag_spec_CXX='-R$libdir'
Cristy15f22012015-11-14 17:51:30 -050021487 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 +000021488 compiler_needs_object_CXX=yes
21489
21490 # Not sure whether something based on
21491 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21492 # would be better.
cristy0c60a692010-11-04 01:09:47 +000021493 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000021494
21495 # Archives containing C++ object files must be created using
21496 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21497 # necessary to make sure instantiated templates are included
21498 # in the archive.
21499 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21500 ;;
21501 esac
21502 ;;
21503 esac
21504 ;;
21505
21506 lynxos*)
21507 # FIXME: insert proper C++ library support
21508 ld_shlibs_CXX=no
21509 ;;
21510
21511 m88k*)
21512 # FIXME: insert proper C++ library support
21513 ld_shlibs_CXX=no
21514 ;;
21515
21516 mvs*)
21517 case $cc_basename in
21518 cxx*)
21519 # FIXME: insert proper C++ library support
21520 ld_shlibs_CXX=no
21521 ;;
21522 *)
21523 # FIXME: insert proper C++ library support
21524 ld_shlibs_CXX=no
21525 ;;
21526 esac
21527 ;;
21528
21529 netbsd*)
21530 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21531 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21532 wlarc=
21533 hardcode_libdir_flag_spec_CXX='-R$libdir'
21534 hardcode_direct_CXX=yes
21535 hardcode_shlibpath_var_CXX=no
21536 fi
21537 # Workaround some broken pre-1.5 toolchains
21538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21539 ;;
21540
21541 *nto* | *qnx*)
21542 ld_shlibs_CXX=yes
21543 ;;
21544
Cristy15f22012015-11-14 17:51:30 -050021545 openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000021546 if test -f /usr/libexec/ld.so; then
21547 hardcode_direct_CXX=yes
21548 hardcode_shlibpath_var_CXX=no
21549 hardcode_direct_absolute_CXX=yes
21550 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
Cristy15f22012015-11-14 17:51:30 -050021551 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21552 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
21553 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
21554 export_dynamic_flag_spec_CXX='$wl-E'
21555 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000021556 fi
cristy0c60a692010-11-04 01:09:47 +000021557 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000021558 else
21559 ld_shlibs_CXX=no
21560 fi
21561 ;;
21562
21563 osf3* | osf4* | osf5*)
21564 case $cc_basename in
21565 KCC*)
21566 # Kuck and Associates, Inc. (KAI) C++ Compiler
21567
21568 # KCC will only create a shared library if the output file
21569 # ends with ".so" (or ".sl" for HP-UX), so rename the library
21570 # to its proper name (with version) after linking.
Cristy15f22012015-11-14 17:51:30 -050021571 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 +000021572
Cristy15f22012015-11-14 17:51:30 -050021573 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021574 hardcode_libdir_separator_CXX=:
21575
21576 # Archives containing C++ object files must be created using
21577 # the KAI C++ compiler.
21578 case $host in
21579 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21580 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21581 esac
21582 ;;
21583 RCC*)
21584 # Rational C++ 2.4.1
21585 # FIXME: insert proper C++ library support
21586 ld_shlibs_CXX=no
21587 ;;
21588 cxx*)
21589 case $host in
21590 osf3*)
Cristy15f22012015-11-14 17:51:30 -050021591 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
21592 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'
21593 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021594 ;;
21595 *)
21596 allow_undefined_flag_CXX=' -expect_unresolved \*'
Cristy15f22012015-11-14 17:51:30 -050021597 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 +000021598 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 -050021599 echo "-hidden">> $lib.exp~
21600 $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~
21601 $RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000021602 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21603 ;;
21604 esac
21605
21606 hardcode_libdir_separator_CXX=:
21607
21608 # Commands to make compiler produce verbose output that lists
21609 # what "hidden" libraries, object files and flags are used when
21610 # linking a shared library.
21611 #
21612 # There doesn't appear to be a way to prevent this compiler from
21613 # explicitly linking system object files so we need to strip them
21614 # from the output so that they don't get included in the library
21615 # dependencies.
Cristy15f22012015-11-14 17:51:30 -050021616 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 +000021617 ;;
21618 *)
Cristy15f22012015-11-14 17:51:30 -050021619 if test yes,no = "$GXX,$with_gnu_ld"; then
21620 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
cristy73bd4a52010-10-05 11:24:23 +000021621 case $host in
21622 osf3*)
Cristy15f22012015-11-14 17:51:30 -050021623 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 +000021624 ;;
21625 *)
Cristy15f22012015-11-14 17:51:30 -050021626 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 +000021627 ;;
21628 esac
21629
Cristy15f22012015-11-14 17:51:30 -050021630 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021631 hardcode_libdir_separator_CXX=:
21632
21633 # Commands to make compiler produce verbose output that lists
21634 # what "hidden" libraries, object files and flags are used when
21635 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000021636 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000021637
21638 else
21639 # FIXME: insert proper C++ library support
21640 ld_shlibs_CXX=no
21641 fi
21642 ;;
21643 esac
21644 ;;
21645
21646 psos*)
21647 # FIXME: insert proper C++ library support
21648 ld_shlibs_CXX=no
21649 ;;
21650
21651 sunos4*)
21652 case $cc_basename in
21653 CC*)
21654 # Sun C++ 4.x
21655 # FIXME: insert proper C++ library support
21656 ld_shlibs_CXX=no
21657 ;;
21658 lcc*)
21659 # Lucid
21660 # FIXME: insert proper C++ library support
21661 ld_shlibs_CXX=no
21662 ;;
21663 *)
21664 # FIXME: insert proper C++ library support
21665 ld_shlibs_CXX=no
21666 ;;
21667 esac
21668 ;;
21669
21670 solaris*)
21671 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000021672 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000021673 # Sun C++ 4.2, 5.x and Centerline C++
21674 archive_cmds_need_lc_CXX=yes
21675 no_undefined_flag_CXX=' -zdefs'
Cristy15f22012015-11-14 17:51:30 -050021676 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 +000021677 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 -050021678 $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 +000021679
21680 hardcode_libdir_flag_spec_CXX='-R$libdir'
21681 hardcode_shlibpath_var_CXX=no
21682 case $host_os in
21683 solaris2.[0-5] | solaris2.[0-5].*) ;;
21684 *)
21685 # The compiler driver will combine and reorder linker options,
Cristy15f22012015-11-14 17:51:30 -050021686 # but understands '-z linker_flag'.
cristy73bd4a52010-10-05 11:24:23 +000021687 # Supported since Solaris 2.6 (maybe 2.5.1?)
21688 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21689 ;;
21690 esac
21691 link_all_deplibs_CXX=yes
21692
cristy0c60a692010-11-04 01:09:47 +000021693 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000021694
21695 # Archives containing C++ object files must be created using
21696 # "CC -xar", where "CC" is the Sun C++ compiler. This is
21697 # necessary to make sure instantiated templates are included
21698 # in the archive.
21699 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21700 ;;
21701 gcx*)
21702 # Green Hills C++ Compiler
Cristy15f22012015-11-14 17:51:30 -050021703 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 +000021704
21705 # The C++ compiler must be used to create the archive.
21706 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21707 ;;
21708 *)
21709 # GNU C++ compiler with Solaris linker
Cristy15f22012015-11-14 17:51:30 -050021710 if test yes,no = "$GXX,$with_gnu_ld"; then
21711 no_undefined_flag_CXX=' $wl-z ${wl}defs'
cristy73bd4a52010-10-05 11:24:23 +000021712 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050021713 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 +000021714 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 -050021715 $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 +000021716
21717 # Commands to make compiler produce verbose output that lists
21718 # what "hidden" libraries, object files and flags are used when
21719 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000021720 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000021721 else
Cristy15f22012015-11-14 17:51:30 -050021722 # g++ 2.7 appears to require '-G' NOT '-shared' on this
cristy73bd4a52010-10-05 11:24:23 +000021723 # platform.
Cristy15f22012015-11-14 17:51:30 -050021724 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 +000021725 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 -050021726 $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 +000021727
21728 # Commands to make compiler produce verbose output that lists
21729 # what "hidden" libraries, object files and flags are used when
21730 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000021731 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000021732 fi
21733
Cristy15f22012015-11-14 17:51:30 -050021734 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021735 case $host_os in
21736 solaris2.[0-5] | solaris2.[0-5].*) ;;
21737 *)
Cristy15f22012015-11-14 17:51:30 -050021738 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
cristy73bd4a52010-10-05 11:24:23 +000021739 ;;
21740 esac
21741 fi
21742 ;;
21743 esac
21744 ;;
21745
21746 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Cristy15f22012015-11-14 17:51:30 -050021747 no_undefined_flag_CXX='$wl-z,text'
cristy73bd4a52010-10-05 11:24:23 +000021748 archive_cmds_need_lc_CXX=no
21749 hardcode_shlibpath_var_CXX=no
21750 runpath_var='LD_RUN_PATH'
21751
21752 case $cc_basename in
21753 CC*)
Cristy15f22012015-11-14 17:51:30 -050021754 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21755 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 +000021756 ;;
21757 *)
Cristy15f22012015-11-14 17:51:30 -050021758 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21759 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 +000021760 ;;
21761 esac
21762 ;;
21763
21764 sysv5* | sco3.2v5* | sco5v6*)
Cristy15f22012015-11-14 17:51:30 -050021765 # Note: We CANNOT use -z defs as we might desire, because we do not
cristy73bd4a52010-10-05 11:24:23 +000021766 # link with -lc, and that would cause any symbols used from libc to
21767 # always be unresolved, which means just about no library would
21768 # ever link correctly. If we're not using GNU ld we use -z text
21769 # though, which does catch some bad symbols but isn't as heavy-handed
21770 # as -z defs.
Cristy15f22012015-11-14 17:51:30 -050021771 no_undefined_flag_CXX='$wl-z,text'
21772 allow_undefined_flag_CXX='$wl-z,nodefs'
cristy73bd4a52010-10-05 11:24:23 +000021773 archive_cmds_need_lc_CXX=no
21774 hardcode_shlibpath_var_CXX=no
Cristy15f22012015-11-14 17:51:30 -050021775 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
cristy73bd4a52010-10-05 11:24:23 +000021776 hardcode_libdir_separator_CXX=':'
21777 link_all_deplibs_CXX=yes
Cristy15f22012015-11-14 17:51:30 -050021778 export_dynamic_flag_spec_CXX='$wl-Bexport'
cristy73bd4a52010-10-05 11:24:23 +000021779 runpath_var='LD_RUN_PATH'
21780
21781 case $cc_basename in
21782 CC*)
Cristy15f22012015-11-14 17:51:30 -050021783 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21784 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 +000021785 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
Cristy15f22012015-11-14 17:51:30 -050021786 '"$old_archive_cmds_CXX"
cristy0c60a692010-11-04 01:09:47 +000021787 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
Cristy15f22012015-11-14 17:51:30 -050021788 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000021789 ;;
21790 *)
Cristy15f22012015-11-14 17:51:30 -050021791 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21792 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 +000021793 ;;
21794 esac
21795 ;;
21796
21797 tandem*)
21798 case $cc_basename in
21799 NCC*)
21800 # NonStop-UX NCC 3.20
21801 # FIXME: insert proper C++ library support
21802 ld_shlibs_CXX=no
21803 ;;
21804 *)
21805 # FIXME: insert proper C++ library support
21806 ld_shlibs_CXX=no
21807 ;;
21808 esac
21809 ;;
21810
21811 vxworks*)
21812 # FIXME: insert proper C++ library support
21813 ld_shlibs_CXX=no
21814 ;;
21815
21816 *)
21817 # FIXME: insert proper C++ library support
21818 ld_shlibs_CXX=no
21819 ;;
21820 esac
21821
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21823$as_echo "$ld_shlibs_CXX" >&6; }
Cristy15f22012015-11-14 17:51:30 -050021824 test no = "$ld_shlibs_CXX" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000021825
Cristy15f22012015-11-14 17:51:30 -050021826 GCC_CXX=$GXX
21827 LD_CXX=$LD
cristy73bd4a52010-10-05 11:24:23 +000021828
21829 ## CAVEAT EMPTOR:
21830 ## There is no encapsulation within the following macros, do not change
21831 ## the running order or otherwise move them around unless you know exactly
21832 ## what you are doing...
21833 # Dependencies to place before and after the object being linked:
21834predep_objects_CXX=
21835postdep_objects_CXX=
21836predeps_CXX=
21837postdeps_CXX=
21838compiler_lib_search_path_CXX=
21839
21840cat > conftest.$ac_ext <<_LT_EOF
21841class Foo
21842{
21843public:
21844 Foo (void) { a = 0; }
21845private:
21846 int a;
21847};
21848_LT_EOF
21849
cristyda16f162011-02-19 23:52:17 +000021850
21851_lt_libdeps_save_CFLAGS=$CFLAGS
21852case "$CC $CFLAGS " in #(
21853*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
21854*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000021855*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000021856esac
21857
cristy73bd4a52010-10-05 11:24:23 +000021858if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21859 (eval $ac_compile) 2>&5
21860 ac_status=$?
21861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21862 test $ac_status = 0; }; then
21863 # Parse the compiler output and extract the necessary
21864 # objects, libraries and library flags.
21865
21866 # Sentinel used to keep track of whether or not we are before
21867 # the conftest object file.
21868 pre_test_object_deps_done=no
21869
21870 for p in `eval "$output_verbose_link_cmd"`; do
Cristy15f22012015-11-14 17:51:30 -050021871 case $prev$p in
cristy73bd4a52010-10-05 11:24:23 +000021872
21873 -L* | -R* | -l*)
21874 # Some compilers place space between "-{L,R}" and the path.
21875 # Remove the space.
Cristy15f22012015-11-14 17:51:30 -050021876 if test x-L = "$p" ||
21877 test x-R = "$p"; then
cristy73bd4a52010-10-05 11:24:23 +000021878 prev=$p
21879 continue
cristy73bd4a52010-10-05 11:24:23 +000021880 fi
21881
cristyda16f162011-02-19 23:52:17 +000021882 # Expand the sysroot to ease extracting the directories later.
21883 if test -z "$prev"; then
21884 case $p in
21885 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
21886 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
21887 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
21888 esac
21889 fi
21890 case $p in
21891 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
21892 esac
Cristy15f22012015-11-14 17:51:30 -050021893 if test no = "$pre_test_object_deps_done"; then
21894 case $prev in
cristyda16f162011-02-19 23:52:17 +000021895 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000021896 # Internal compiler library paths should come after those
21897 # provided the user. The postdeps already come after the
21898 # user supplied libs so there is no need to process them.
21899 if test -z "$compiler_lib_search_path_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050021900 compiler_lib_search_path_CXX=$prev$p
cristy73bd4a52010-10-05 11:24:23 +000021901 else
Cristy15f22012015-11-14 17:51:30 -050021902 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
cristy73bd4a52010-10-05 11:24:23 +000021903 fi
21904 ;;
21905 # The "-l" case would never come before the object being
21906 # linked, so don't bother handling this case.
21907 esac
21908 else
21909 if test -z "$postdeps_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050021910 postdeps_CXX=$prev$p
cristy73bd4a52010-10-05 11:24:23 +000021911 else
Cristy15f22012015-11-14 17:51:30 -050021912 postdeps_CXX="${postdeps_CXX} $prev$p"
cristy73bd4a52010-10-05 11:24:23 +000021913 fi
21914 fi
cristyda16f162011-02-19 23:52:17 +000021915 prev=
cristy73bd4a52010-10-05 11:24:23 +000021916 ;;
21917
cristyda16f162011-02-19 23:52:17 +000021918 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000021919 *.$objext)
21920 # This assumes that the test object file only shows up
21921 # once in the compiler output.
21922 if test "$p" = "conftest.$objext"; then
21923 pre_test_object_deps_done=yes
21924 continue
21925 fi
21926
Cristy15f22012015-11-14 17:51:30 -050021927 if test no = "$pre_test_object_deps_done"; then
cristy73bd4a52010-10-05 11:24:23 +000021928 if test -z "$predep_objects_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050021929 predep_objects_CXX=$p
cristy73bd4a52010-10-05 11:24:23 +000021930 else
21931 predep_objects_CXX="$predep_objects_CXX $p"
21932 fi
21933 else
21934 if test -z "$postdep_objects_CXX"; then
Cristy15f22012015-11-14 17:51:30 -050021935 postdep_objects_CXX=$p
cristy73bd4a52010-10-05 11:24:23 +000021936 else
21937 postdep_objects_CXX="$postdep_objects_CXX $p"
21938 fi
21939 fi
21940 ;;
21941
21942 *) ;; # Ignore the rest.
21943
21944 esac
21945 done
21946
21947 # Clean up.
21948 rm -f a.out a.exe
21949else
21950 echo "libtool.m4: error: problem compiling CXX test program"
21951fi
21952
21953$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000021954CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000021955
21956# PORTME: override above test on systems where it is broken
21957case $host_os in
21958interix[3-9]*)
21959 # Interix 3.5 installs completely hosed .la files for C++, so rather than
21960 # hack all around it, let's just trust "g++" to DTRT.
21961 predep_objects_CXX=
21962 postdep_objects_CXX=
21963 postdeps_CXX=
21964 ;;
cristy73bd4a52010-10-05 11:24:23 +000021965esac
21966
21967
21968case " $postdeps_CXX " in
21969*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21970esac
21971 compiler_lib_search_dirs_CXX=
21972if test -n "${compiler_lib_search_path_CXX}"; then
Cristy15f22012015-11-14 17:51:30 -050021973 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
cristy73bd4a52010-10-05 11:24:23 +000021974fi
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006 lt_prog_compiler_wl_CXX=
22007lt_prog_compiler_pic_CXX=
22008lt_prog_compiler_static_CXX=
22009
cristy73bd4a52010-10-05 11:24:23 +000022010
22011 # C++ specific cases for pic, static, wl, etc.
Cristy15f22012015-11-14 17:51:30 -050022012 if test yes = "$GXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022013 lt_prog_compiler_wl_CXX='-Wl,'
22014 lt_prog_compiler_static_CXX='-static'
22015
22016 case $host_os in
22017 aix*)
22018 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050022019 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000022020 # AIX 5 now supports IA64 processor
22021 lt_prog_compiler_static_CXX='-Bstatic'
22022 fi
Cristy15f22012015-11-14 17:51:30 -050022023 lt_prog_compiler_pic_CXX='-fPIC'
cristy73bd4a52010-10-05 11:24:23 +000022024 ;;
22025
22026 amigaos*)
22027 case $host_cpu in
22028 powerpc)
22029 # see comment about AmigaOS4 .so support
22030 lt_prog_compiler_pic_CXX='-fPIC'
22031 ;;
22032 m68k)
22033 # FIXME: we need at least 68020 code to build shared libraries, but
Cristy15f22012015-11-14 17:51:30 -050022034 # adding the '-m68020' flag to GCC prevents building anything better,
22035 # like '-m68040'.
cristy73bd4a52010-10-05 11:24:23 +000022036 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22037 ;;
22038 esac
22039 ;;
22040
22041 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22042 # PIC is the default for these OSes.
22043 ;;
22044 mingw* | cygwin* | os2* | pw32* | cegcc*)
22045 # This hack is so that the source file can tell whether it is being
22046 # built for inclusion in a dll (and should export symbols for example).
22047 # Although the cygwin gcc ignores -fPIC, still need this for old-style
22048 # (--disable-auto-import) libraries
22049 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
Cristy15f22012015-11-14 17:51:30 -050022050 case $host_os in
22051 os2*)
22052 lt_prog_compiler_static_CXX='$wl-static'
22053 ;;
22054 esac
cristy73bd4a52010-10-05 11:24:23 +000022055 ;;
22056 darwin* | rhapsody*)
22057 # PIC is the default on this platform
22058 # Common symbols not allowed in MH_DYLIB files
22059 lt_prog_compiler_pic_CXX='-fno-common'
22060 ;;
22061 *djgpp*)
22062 # DJGPP does not support shared libraries at all
22063 lt_prog_compiler_pic_CXX=
22064 ;;
cristy0c60a692010-11-04 01:09:47 +000022065 haiku*)
22066 # PIC is the default for Haiku.
22067 # The "-static" flag exists, but is broken.
22068 lt_prog_compiler_static_CXX=
22069 ;;
cristy73bd4a52010-10-05 11:24:23 +000022070 interix[3-9]*)
22071 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22072 # Instead, we relocate shared libraries at runtime.
22073 ;;
22074 sysv4*MP*)
22075 if test -d /usr/nec; then
22076 lt_prog_compiler_pic_CXX=-Kconform_pic
22077 fi
22078 ;;
22079 hpux*)
22080 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22081 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
22082 # sets the default TLS model and affects inlining.
22083 case $host_cpu in
22084 hppa*64*)
22085 ;;
22086 *)
22087 lt_prog_compiler_pic_CXX='-fPIC'
22088 ;;
22089 esac
22090 ;;
22091 *qnx* | *nto*)
22092 # QNX uses GNU C++, but need to define -shared option too, otherwise
22093 # it will coredump.
22094 lt_prog_compiler_pic_CXX='-fPIC -shared'
22095 ;;
22096 *)
22097 lt_prog_compiler_pic_CXX='-fPIC'
22098 ;;
22099 esac
22100 else
22101 case $host_os in
22102 aix[4-9]*)
22103 # All AIX code is PIC.
Cristy15f22012015-11-14 17:51:30 -050022104 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000022105 # AIX 5 now supports IA64 processor
22106 lt_prog_compiler_static_CXX='-Bstatic'
22107 else
22108 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22109 fi
22110 ;;
22111 chorus*)
22112 case $cc_basename in
22113 cxch68*)
22114 # Green Hills C++ Compiler
22115 # _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"
22116 ;;
22117 esac
22118 ;;
cristyda16f162011-02-19 23:52:17 +000022119 mingw* | cygwin* | os2* | pw32* | cegcc*)
22120 # This hack is so that the source file can tell whether it is being
22121 # built for inclusion in a dll (and should export symbols for example).
22122 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22123 ;;
cristy73bd4a52010-10-05 11:24:23 +000022124 dgux*)
22125 case $cc_basename in
22126 ec++*)
22127 lt_prog_compiler_pic_CXX='-KPIC'
22128 ;;
22129 ghcx*)
22130 # Green Hills C++ Compiler
22131 lt_prog_compiler_pic_CXX='-pic'
22132 ;;
22133 *)
22134 ;;
22135 esac
22136 ;;
22137 freebsd* | dragonfly*)
22138 # FreeBSD uses GNU C++
22139 ;;
22140 hpux9* | hpux10* | hpux11*)
22141 case $cc_basename in
22142 CC*)
22143 lt_prog_compiler_wl_CXX='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050022144 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22145 if test ia64 != "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000022146 lt_prog_compiler_pic_CXX='+Z'
22147 fi
22148 ;;
22149 aCC*)
22150 lt_prog_compiler_wl_CXX='-Wl,'
Cristy15f22012015-11-14 17:51:30 -050022151 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
cristy73bd4a52010-10-05 11:24:23 +000022152 case $host_cpu in
22153 hppa*64*|ia64*)
22154 # +Z the default
22155 ;;
22156 *)
22157 lt_prog_compiler_pic_CXX='+Z'
22158 ;;
22159 esac
22160 ;;
22161 *)
22162 ;;
22163 esac
22164 ;;
22165 interix*)
22166 # This is c89, which is MS Visual C++ (no shared libs)
22167 # Anyone wants to do a port?
22168 ;;
22169 irix5* | irix6* | nonstopux*)
22170 case $cc_basename in
22171 CC*)
22172 lt_prog_compiler_wl_CXX='-Wl,'
22173 lt_prog_compiler_static_CXX='-non_shared'
22174 # CC pic flag -KPIC is the default.
22175 ;;
22176 *)
22177 ;;
22178 esac
22179 ;;
Cristy15f22012015-11-14 17:51:30 -050022180 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy73bd4a52010-10-05 11:24:23 +000022181 case $cc_basename in
22182 KCC*)
22183 # KAI C++ Compiler
22184 lt_prog_compiler_wl_CXX='--backend -Wl,'
22185 lt_prog_compiler_pic_CXX='-fPIC'
22186 ;;
22187 ecpc* )
Cristy15f22012015-11-14 17:51:30 -050022188 # old Intel C++ for x86_64, which still supported -KPIC.
cristy73bd4a52010-10-05 11:24:23 +000022189 lt_prog_compiler_wl_CXX='-Wl,'
22190 lt_prog_compiler_pic_CXX='-KPIC'
22191 lt_prog_compiler_static_CXX='-static'
22192 ;;
22193 icpc* )
22194 # Intel C++, used to be incompatible with GCC.
22195 # ICC 10 doesn't accept -KPIC any more.
22196 lt_prog_compiler_wl_CXX='-Wl,'
22197 lt_prog_compiler_pic_CXX='-fPIC'
22198 lt_prog_compiler_static_CXX='-static'
22199 ;;
22200 pgCC* | pgcpp*)
22201 # Portland Group C++ compiler
22202 lt_prog_compiler_wl_CXX='-Wl,'
22203 lt_prog_compiler_pic_CXX='-fpic'
22204 lt_prog_compiler_static_CXX='-Bstatic'
22205 ;;
22206 cxx*)
22207 # Compaq C++
22208 # Make sure the PIC flag is empty. It appears that all Alpha
22209 # Linux and Compaq Tru64 Unix objects are PIC.
22210 lt_prog_compiler_pic_CXX=
22211 lt_prog_compiler_static_CXX='-non_shared'
22212 ;;
cristy0c60a692010-11-04 01:09:47 +000022213 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22214 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000022215 lt_prog_compiler_wl_CXX='-Wl,'
22216 lt_prog_compiler_pic_CXX='-qpic'
22217 lt_prog_compiler_static_CXX='-qstaticlink'
22218 ;;
22219 *)
22220 case `$CC -V 2>&1 | sed 5q` in
22221 *Sun\ C*)
22222 # Sun C++ 5.9
22223 lt_prog_compiler_pic_CXX='-KPIC'
22224 lt_prog_compiler_static_CXX='-Bstatic'
22225 lt_prog_compiler_wl_CXX='-Qoption ld '
22226 ;;
22227 esac
22228 ;;
22229 esac
22230 ;;
22231 lynxos*)
22232 ;;
22233 m88k*)
22234 ;;
22235 mvs*)
22236 case $cc_basename in
22237 cxx*)
22238 lt_prog_compiler_pic_CXX='-W c,exportall'
22239 ;;
22240 *)
22241 ;;
22242 esac
22243 ;;
22244 netbsd*)
22245 ;;
22246 *qnx* | *nto*)
22247 # QNX uses GNU C++, but need to define -shared option too, otherwise
22248 # it will coredump.
22249 lt_prog_compiler_pic_CXX='-fPIC -shared'
22250 ;;
22251 osf3* | osf4* | osf5*)
22252 case $cc_basename in
22253 KCC*)
22254 lt_prog_compiler_wl_CXX='--backend -Wl,'
22255 ;;
22256 RCC*)
22257 # Rational C++ 2.4.1
22258 lt_prog_compiler_pic_CXX='-pic'
22259 ;;
22260 cxx*)
22261 # Digital/Compaq C++
22262 lt_prog_compiler_wl_CXX='-Wl,'
22263 # Make sure the PIC flag is empty. It appears that all Alpha
22264 # Linux and Compaq Tru64 Unix objects are PIC.
22265 lt_prog_compiler_pic_CXX=
22266 lt_prog_compiler_static_CXX='-non_shared'
22267 ;;
22268 *)
22269 ;;
22270 esac
22271 ;;
22272 psos*)
22273 ;;
22274 solaris*)
22275 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000022276 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000022277 # Sun C++ 4.2, 5.x and Centerline C++
22278 lt_prog_compiler_pic_CXX='-KPIC'
22279 lt_prog_compiler_static_CXX='-Bstatic'
22280 lt_prog_compiler_wl_CXX='-Qoption ld '
22281 ;;
22282 gcx*)
22283 # Green Hills C++ Compiler
22284 lt_prog_compiler_pic_CXX='-PIC'
22285 ;;
22286 *)
22287 ;;
22288 esac
22289 ;;
22290 sunos4*)
22291 case $cc_basename in
22292 CC*)
22293 # Sun C++ 4.x
22294 lt_prog_compiler_pic_CXX='-pic'
22295 lt_prog_compiler_static_CXX='-Bstatic'
22296 ;;
22297 lcc*)
22298 # Lucid
22299 lt_prog_compiler_pic_CXX='-pic'
22300 ;;
22301 *)
22302 ;;
22303 esac
22304 ;;
22305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22306 case $cc_basename in
22307 CC*)
22308 lt_prog_compiler_wl_CXX='-Wl,'
22309 lt_prog_compiler_pic_CXX='-KPIC'
22310 lt_prog_compiler_static_CXX='-Bstatic'
22311 ;;
22312 esac
22313 ;;
22314 tandem*)
22315 case $cc_basename in
22316 NCC*)
22317 # NonStop-UX NCC 3.20
22318 lt_prog_compiler_pic_CXX='-KPIC'
22319 ;;
22320 *)
22321 ;;
22322 esac
22323 ;;
22324 vxworks*)
22325 ;;
22326 *)
22327 lt_prog_compiler_can_build_shared_CXX=no
22328 ;;
22329 esac
22330 fi
22331
22332case $host_os in
Cristy15f22012015-11-14 17:51:30 -050022333 # For platforms that do not support PIC, -DPIC is meaningless:
cristy73bd4a52010-10-05 11:24:23 +000022334 *djgpp*)
22335 lt_prog_compiler_pic_CXX=
22336 ;;
22337 *)
22338 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22339 ;;
22340esac
cristy73bd4a52010-10-05 11:24:23 +000022341
cristyda16f162011-02-19 23:52:17 +000022342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22343$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22344if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
22345 $as_echo_n "(cached) " >&6
22346else
22347 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
22348fi
22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
22350$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
22351lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000022352
22353#
22354# Check to make sure the PIC flag actually works.
22355#
22356if test -n "$lt_prog_compiler_pic_CXX"; then
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22358$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022359if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000022360 $as_echo_n "(cached) " >&6
22361else
22362 lt_cv_prog_compiler_pic_works_CXX=no
22363 ac_outfile=conftest.$ac_objext
22364 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Cristy15f22012015-11-14 17:51:30 -050022365 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
cristy73bd4a52010-10-05 11:24:23 +000022366 # Insert the option either (1) after the last *FLAGS variable, or
22367 # (2) before a word containing "conftest.", or (3) at the end.
22368 # Note that $ac_compile itself does not contain backslashes and begins
22369 # with a dollar sign (not a hyphen), so the echo should work correctly.
22370 # The option is referenced via a variable to avoid confusing sed.
22371 lt_compile=`echo "$ac_compile" | $SED \
22372 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22373 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22374 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000022375 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000022376 (eval "$lt_compile" 2>conftest.err)
22377 ac_status=$?
22378 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000022379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000022380 if (exit $ac_status) && test -s "$ac_outfile"; then
22381 # The compiler can only warn and ignore the option if not recognized
22382 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000022383 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000022384 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22385 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22386 lt_cv_prog_compiler_pic_works_CXX=yes
22387 fi
22388 fi
22389 $RM conftest*
22390
22391fi
22392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22393$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22394
Cristy15f22012015-11-14 17:51:30 -050022395if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022396 case $lt_prog_compiler_pic_CXX in
22397 "" | " "*) ;;
22398 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22399 esac
22400else
22401 lt_prog_compiler_pic_CXX=
22402 lt_prog_compiler_can_build_shared_CXX=no
22403fi
22404
22405fi
22406
22407
22408
cristyda16f162011-02-19 23:52:17 +000022409
22410
cristy73bd4a52010-10-05 11:24:23 +000022411#
22412# Check to make sure the static flag actually works.
22413#
22414wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22416$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022417if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000022418 $as_echo_n "(cached) " >&6
22419else
22420 lt_cv_prog_compiler_static_works_CXX=no
Cristy15f22012015-11-14 17:51:30 -050022421 save_LDFLAGS=$LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000022422 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22423 echo "$lt_simple_link_test_code" > conftest.$ac_ext
22424 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22425 # The linker can only warn and ignore the option if not recognized
22426 # So say no if there are warnings
22427 if test -s conftest.err; then
22428 # Append any errors to the config.log.
22429 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000022430 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000022431 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22432 if diff conftest.exp conftest.er2 >/dev/null; then
22433 lt_cv_prog_compiler_static_works_CXX=yes
22434 fi
22435 else
22436 lt_cv_prog_compiler_static_works_CXX=yes
22437 fi
22438 fi
22439 $RM -r conftest*
Cristy15f22012015-11-14 17:51:30 -050022440 LDFLAGS=$save_LDFLAGS
cristy73bd4a52010-10-05 11:24:23 +000022441
22442fi
22443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22444$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22445
Cristy15f22012015-11-14 17:51:30 -050022446if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000022447 :
22448else
22449 lt_prog_compiler_static_CXX=
22450fi
22451
22452
22453
22454
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22456$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022457if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000022458 $as_echo_n "(cached) " >&6
22459else
22460 lt_cv_prog_compiler_c_o_CXX=no
22461 $RM -r conftest 2>/dev/null
22462 mkdir conftest
22463 cd conftest
22464 mkdir out
22465 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22466
22467 lt_compiler_flag="-o out/conftest2.$ac_objext"
22468 # Insert the option either (1) after the last *FLAGS variable, or
22469 # (2) before a word containing "conftest.", or (3) at the end.
22470 # Note that $ac_compile itself does not contain backslashes and begins
22471 # with a dollar sign (not a hyphen), so the echo should work correctly.
22472 lt_compile=`echo "$ac_compile" | $SED \
22473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22475 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000022476 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000022477 (eval "$lt_compile" 2>out/conftest.err)
22478 ac_status=$?
22479 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000022480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000022481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22482 then
22483 # The compiler can only warn and ignore the option if not recognized
22484 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000022485 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000022486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22488 lt_cv_prog_compiler_c_o_CXX=yes
22489 fi
22490 fi
22491 chmod u+w . 2>&5
22492 $RM conftest*
22493 # SGI C++ compiler will create directory out/ii_files/ for
22494 # template instantiation
22495 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22496 $RM out/* && rmdir out
22497 cd ..
22498 $RM -r conftest
22499 $RM conftest*
22500
22501fi
22502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22503$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22504
22505
22506
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22508$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022509if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000022510 $as_echo_n "(cached) " >&6
22511else
22512 lt_cv_prog_compiler_c_o_CXX=no
22513 $RM -r conftest 2>/dev/null
22514 mkdir conftest
22515 cd conftest
22516 mkdir out
22517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22518
22519 lt_compiler_flag="-o out/conftest2.$ac_objext"
22520 # Insert the option either (1) after the last *FLAGS variable, or
22521 # (2) before a word containing "conftest.", or (3) at the end.
22522 # Note that $ac_compile itself does not contain backslashes and begins
22523 # with a dollar sign (not a hyphen), so the echo should work correctly.
22524 lt_compile=`echo "$ac_compile" | $SED \
22525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22526 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22527 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000022528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000022529 (eval "$lt_compile" 2>out/conftest.err)
22530 ac_status=$?
22531 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000022532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000022533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
22534 then
22535 # The compiler can only warn and ignore the option if not recognized
22536 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000022537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000022538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22540 lt_cv_prog_compiler_c_o_CXX=yes
22541 fi
22542 fi
22543 chmod u+w . 2>&5
22544 $RM conftest*
22545 # SGI C++ compiler will create directory out/ii_files/ for
22546 # template instantiation
22547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22548 $RM out/* && rmdir out
22549 cd ..
22550 $RM -r conftest
22551 $RM conftest*
22552
22553fi
22554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22555$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22556
22557
22558
22559
Cristy15f22012015-11-14 17:51:30 -050022560hard_links=nottested
22561if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
cristy73bd4a52010-10-05 11:24:23 +000022562 # do not overwrite the value of need_locks provided by the user
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22564$as_echo_n "checking if we can lock with hard links... " >&6; }
22565 hard_links=yes
22566 $RM conftest*
22567 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22568 touch conftest.a
22569 ln conftest.a conftest.b 2>&5 || hard_links=no
22570 ln conftest.a conftest.b 2>/dev/null && hard_links=no
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22572$as_echo "$hard_links" >&6; }
Cristy15f22012015-11-14 17:51:30 -050022573 if test no = "$hard_links"; then
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
22575$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
cristy73bd4a52010-10-05 11:24:23 +000022576 need_locks=warn
22577 fi
22578else
22579 need_locks=no
22580fi
22581
22582
22583
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22585$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22586
22587 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000022588 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000022589 case $host_os in
22590 aix[4-9]*)
22591 # If we're using GNU nm, then we don't want the "-C" option.
Cristy15f22012015-11-14 17:51:30 -050022592 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
22593 # Without the "-l" option, or with the "-B" option, AIX nm treats
22594 # weak defined symbols like other global defined symbols, whereas
22595 # GNU nm marks them as "W".
22596 # While the 'weak' keyword is ignored in the Export File, we need
22597 # it in the Import File for the 'aix-soname' feature, so we have
22598 # to replace the "-B" option with "-P" for AIX nm.
cristy73bd4a52010-10-05 11:24:23 +000022599 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Cristy15f22012015-11-14 17:51:30 -050022600 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 +000022601 else
Cristy15f22012015-11-14 17:51:30 -050022602 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 +000022603 fi
22604 ;;
22605 pw32*)
Cristy15f22012015-11-14 17:51:30 -050022606 export_symbols_cmds_CXX=$ltdll_cmds
cristyda16f162011-02-19 23:52:17 +000022607 ;;
cristy73bd4a52010-10-05 11:24:23 +000022608 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000022609 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000022610 cl*)
22611 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
22612 ;;
cristyda16f162011-02-19 23:52:17 +000022613 *)
22614 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'
22615 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22616 ;;
22617 esac
22618 ;;
cristy73bd4a52010-10-05 11:24:23 +000022619 *)
22620 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000022621 ;;
cristy73bd4a52010-10-05 11:24:23 +000022622 esac
cristy73bd4a52010-10-05 11:24:23 +000022623
22624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22625$as_echo "$ld_shlibs_CXX" >&6; }
Cristy15f22012015-11-14 17:51:30 -050022626test no = "$ld_shlibs_CXX" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000022627
22628with_gnu_ld_CXX=$with_gnu_ld
22629
22630
22631
22632
22633
22634
22635#
22636# Do we need to explicitly link libc?
22637#
22638case "x$archive_cmds_need_lc_CXX" in
22639x|xyes)
22640 # Assume -lc should be added
22641 archive_cmds_need_lc_CXX=yes
22642
Cristy15f22012015-11-14 17:51:30 -050022643 if test yes,yes = "$GCC,$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000022644 case $archive_cmds_CXX in
22645 *'~'*)
22646 # FIXME: we may have to deal with multi-command sequences.
22647 ;;
22648 '$CC '*)
22649 # Test whether the compiler implicitly links with -lc since on some
22650 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22651 # to ld, don't add -lc before -lgcc.
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22653$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022654if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000022655 $as_echo_n "(cached) " >&6
22656else
22657 $RM conftest*
22658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000022659
cristy0c60a692010-11-04 01:09:47 +000022660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000022661 (eval $ac_compile) 2>&5
22662 ac_status=$?
22663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22664 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000022665 soname=conftest
22666 lib=conftest
22667 libobjs=conftest.$ac_objext
22668 deplibs=
22669 wl=$lt_prog_compiler_wl_CXX
22670 pic_flag=$lt_prog_compiler_pic_CXX
22671 compiler_flags=-v
22672 linker_flags=-v
22673 verstring=
22674 output_objdir=.
22675 libname=conftest
22676 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22677 allow_undefined_flag_CXX=
22678 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 +000022679 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22680 ac_status=$?
22681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22682 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000022683 then
22684 lt_cv_archive_cmds_need_lc_CXX=no
22685 else
22686 lt_cv_archive_cmds_need_lc_CXX=yes
22687 fi
22688 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22689 else
22690 cat conftest.err 1>&5
22691 fi
22692 $RM conftest*
22693
22694fi
22695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22696$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22697 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000022698 ;;
22699 esac
22700 fi
22701 ;;
22702esac
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
cristy73bd4a52010-10-05 11:24:23 +000022765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22766$as_echo_n "checking dynamic linker characteristics... " >&6; }
22767
22768library_names_spec=
22769libname_spec='lib$name'
22770soname_spec=
Cristy15f22012015-11-14 17:51:30 -050022771shrext_cmds=.so
cristy73bd4a52010-10-05 11:24:23 +000022772postinstall_cmds=
22773postuninstall_cmds=
22774finish_cmds=
22775finish_eval=
22776shlibpath_var=
22777shlibpath_overrides_runpath=unknown
22778version_type=none
22779dynamic_linker="$host_os ld.so"
22780sys_lib_dlsearch_path_spec="/lib /usr/lib"
22781need_lib_prefix=unknown
22782hardcode_into_libs=no
22783
22784# when you set need_version to no, make sure it does not cause -set_version
22785# flags to be left without arguments
22786need_version=unknown
22787
Cristy15f22012015-11-14 17:51:30 -050022788
22789
cristy73bd4a52010-10-05 11:24:23 +000022790case $host_os in
22791aix3*)
cristy99bd5232011-12-07 14:38:20 +000022792 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050022793 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
cristy73bd4a52010-10-05 11:24:23 +000022794 shlibpath_var=LIBPATH
22795
22796 # AIX 3 has no versioning support, so we append a major version to the name.
Cristy15f22012015-11-14 17:51:30 -050022797 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022798 ;;
22799
22800aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000022801 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000022802 need_lib_prefix=no
22803 need_version=no
22804 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050022805 if test ia64 = "$host_cpu"; then
cristy73bd4a52010-10-05 11:24:23 +000022806 # AIX 5 supports IA64
Cristy15f22012015-11-14 17:51:30 -050022807 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022808 shlibpath_var=LD_LIBRARY_PATH
22809 else
22810 # With GCC up to 2.95.x, collect2 would create an import file
22811 # for dependence libraries. The import file would start with
Cristy15f22012015-11-14 17:51:30 -050022812 # the line '#! .'. This would cause the generated library to
22813 # depend on '.', always an invalid library. This was fixed in
cristy73bd4a52010-10-05 11:24:23 +000022814 # development snapshots of GCC prior to 3.0.
22815 case $host_os in
22816 aix4 | aix4.[01] | aix4.[01].*)
22817 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22818 echo ' yes '
Cristy15f22012015-11-14 17:51:30 -050022819 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
cristy73bd4a52010-10-05 11:24:23 +000022820 :
22821 else
22822 can_build_shared=no
22823 fi
22824 ;;
22825 esac
Cristy15f22012015-11-14 17:51:30 -050022826 # Using Import Files as archive members, it is possible to support
22827 # filename-based versioning of shared library archives on AIX. While
22828 # this would work for both with and without runtime linking, it will
22829 # prevent static linking of such archives. So we do filename-based
22830 # shared library versioning with .so extension only, which is used
22831 # when both runtime linking and shared linking is enabled.
22832 # Unfortunately, runtime linking may impact performance, so we do
22833 # not want this to be the default eventually. Also, we use the
22834 # versioned .so libs for executables only if there is the -brtl
22835 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22836 # To allow for filename-based versioning support, we need to create
22837 # libNAME.so.V as an archive file, containing:
22838 # *) an Import File, referring to the versioned filename of the
22839 # archive as well as the shared archive member, telling the
22840 # bitwidth (32 or 64) of that shared object, and providing the
22841 # list of exported symbols of that shared object, eventually
22842 # decorated with the 'weak' keyword
22843 # *) the shared object with the F_LOADONLY flag set, to really avoid
22844 # it being seen by the linker.
22845 # At run time we better use the real file rather than another symlink,
22846 # but for link time we create the symlink libNAME.so -> libNAME.so.V
22847
22848 case $with_aix_soname,$aix_use_runtimelinking in
22849 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
cristy73bd4a52010-10-05 11:24:23 +000022850 # soname into executable. Probably we can add versioning support to
22851 # collect2, so additional links can be useful in future.
Cristy15f22012015-11-14 17:51:30 -050022852 aix,yes) # traditional libtool
22853 dynamic_linker='AIX unversionable lib.so'
cristy73bd4a52010-10-05 11:24:23 +000022854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22855 # instead of lib<name>.a to let people know that these are not
22856 # typical AIX shared libraries.
Cristy15f22012015-11-14 17:51:30 -050022857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22858 ;;
22859 aix,no) # traditional AIX only
22860 dynamic_linker='AIX lib.a(lib.so.V)'
cristy73bd4a52010-10-05 11:24:23 +000022861 # We preserve .a as extension for shared libraries through AIX4.2
22862 # and later when we are not doing run time linking.
Cristy15f22012015-11-14 17:51:30 -050022863 library_names_spec='$libname$release.a $libname.a'
22864 soname_spec='$libname$release$shared_ext$major'
22865 ;;
22866 svr4,*) # full svr4 only
22867 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22868 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22869 # We do not specify a path in Import Files, so LIBPATH fires.
22870 shlibpath_overrides_runpath=yes
22871 ;;
22872 *,yes) # both, prefer svr4
22873 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22874 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22875 # unpreferred sharedlib libNAME.a needs extra handling
22876 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"'
22877 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"'
22878 # We do not specify a path in Import Files, so LIBPATH fires.
22879 shlibpath_overrides_runpath=yes
22880 ;;
22881 *,no) # both, prefer aix
22882 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22883 library_names_spec='$libname$release.a $libname.a'
22884 soname_spec='$libname$release$shared_ext$major'
22885 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22886 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)'
22887 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"'
22888 ;;
22889 esac
cristy73bd4a52010-10-05 11:24:23 +000022890 shlibpath_var=LIBPATH
22891 fi
22892 ;;
22893
22894amigaos*)
22895 case $host_cpu in
22896 powerpc)
22897 # Since July 2007 AmigaOS4 officially supports .so libraries.
22898 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
Cristy15f22012015-11-14 17:51:30 -050022899 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022900 ;;
22901 m68k)
22902 library_names_spec='$libname.ixlibrary $libname.a'
22903 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Cristy15f22012015-11-14 17:51:30 -050022904 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 +000022905 ;;
22906 esac
22907 ;;
22908
22909beos*)
Cristy15f22012015-11-14 17:51:30 -050022910 library_names_spec='$libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022911 dynamic_linker="$host_os ld.so"
22912 shlibpath_var=LIBRARY_PATH
22913 ;;
22914
22915bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000022916 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000022917 need_version=no
Cristy15f22012015-11-14 17:51:30 -050022918 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22919 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000022920 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22921 shlibpath_var=LD_LIBRARY_PATH
22922 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22923 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22924 # the default ld.so.conf also contains /usr/contrib/lib and
22925 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22926 # libtool to hard-code these into programs
22927 ;;
22928
22929cygwin* | mingw* | pw32* | cegcc*)
22930 version_type=windows
Cristy15f22012015-11-14 17:51:30 -050022931 shrext_cmds=.dll
cristy73bd4a52010-10-05 11:24:23 +000022932 need_version=no
22933 need_lib_prefix=no
22934
cristyda16f162011-02-19 23:52:17 +000022935 case $GCC,$cc_basename in
22936 yes,*)
22937 # gcc
cristy73bd4a52010-10-05 11:24:23 +000022938 library_names_spec='$libname.dll.a'
22939 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050022940 postinstall_cmds='base_file=`basename \$file`~
22941 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristy73bd4a52010-10-05 11:24:23 +000022942 dldir=$destdir/`dirname \$dlpath`~
22943 test -d \$dldir || mkdir -p \$dldir~
22944 $install_prog $dir/$dlname \$dldir/$dlname~
22945 chmod a+x \$dldir/$dlname~
22946 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22947 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22948 fi'
22949 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22950 dlpath=$dir/\$dldll~
22951 $RM \$dlpath'
22952 shlibpath_overrides_runpath=yes
22953
22954 case $host_os in
22955 cygwin*)
22956 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050022957 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy0c60a692010-11-04 01:09:47 +000022958
cristy73bd4a52010-10-05 11:24:23 +000022959 ;;
22960 mingw* | cegcc*)
22961 # MinGW DLLs use traditional 'lib' prefix
Cristy15f22012015-11-14 17:51:30 -050022962 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000022963 ;;
22964 pw32*)
22965 # pw32 DLLs use 'pw' prefix rather than 'lib'
Cristy15f22012015-11-14 17:51:30 -050022966 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 +000022967 ;;
22968 esac
cristyda16f162011-02-19 23:52:17 +000022969 dynamic_linker='Win32 ld.exe'
22970 ;;
22971
22972 *,cl*)
22973 # Native MSVC
22974 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050022975 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22976 library_names_spec='$libname.dll.lib'
cristyda16f162011-02-19 23:52:17 +000022977
22978 case $build_os in
22979 mingw*)
22980 sys_lib_search_path_spec=
22981 lt_save_ifs=$IFS
22982 IFS=';'
22983 for lt_path in $LIB
22984 do
22985 IFS=$lt_save_ifs
22986 # Let DOS variable expansion print the short 8.3 style file name.
22987 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22988 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22989 done
22990 IFS=$lt_save_ifs
22991 # Convert to MSYS style.
22992 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22993 ;;
22994 cygwin*)
22995 # Convert to unix form, then to dos form, then back to unix form
22996 # but this time dos style (no spaces!) so that the unix form looks
22997 # like /cygdrive/c/PROGRA~1:/cygdr...
22998 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22999 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23000 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23001 ;;
23002 *)
Cristy15f22012015-11-14 17:51:30 -050023003 sys_lib_search_path_spec=$LIB
cristyda16f162011-02-19 23:52:17 +000023004 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23005 # It is most probably a Windows format PATH.
23006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23007 else
23008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23009 fi
23010 # FIXME: find the short name or the path components, as spaces are
23011 # common. (e.g. "Program Files" -> "PROGRA~1")
23012 ;;
23013 esac
23014
23015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Cristy15f22012015-11-14 17:51:30 -050023016 postinstall_cmds='base_file=`basename \$file`~
23017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
cristyda16f162011-02-19 23:52:17 +000023018 dldir=$destdir/`dirname \$dlpath`~
23019 test -d \$dldir || mkdir -p \$dldir~
23020 $install_prog $dir/$dlname \$dldir/$dlname'
23021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23022 dlpath=$dir/\$dldll~
23023 $RM \$dlpath'
23024 shlibpath_overrides_runpath=yes
23025 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000023026 ;;
23027
23028 *)
cristyda16f162011-02-19 23:52:17 +000023029 # Assume MSVC wrapper
Cristy15f22012015-11-14 17:51:30 -050023030 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
cristyda16f162011-02-19 23:52:17 +000023031 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000023032 ;;
23033 esac
cristy73bd4a52010-10-05 11:24:23 +000023034 # FIXME: first we should search . and the directory the executable is in
23035 shlibpath_var=PATH
23036 ;;
23037
23038darwin* | rhapsody*)
23039 dynamic_linker="$host_os dyld"
23040 version_type=darwin
23041 need_lib_prefix=no
23042 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023043 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
23044 soname_spec='$libname$release$major$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000023045 shlibpath_overrides_runpath=yes
23046 shlibpath_var=DYLD_LIBRARY_PATH
23047 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23048
23049 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23050 ;;
23051
23052dgux*)
cristy99bd5232011-12-07 14:38:20 +000023053 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000023054 need_lib_prefix=no
23055 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023056 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23057 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023058 shlibpath_var=LD_LIBRARY_PATH
23059 ;;
23060
cristy73bd4a52010-10-05 11:24:23 +000023061freebsd* | dragonfly*)
23062 # DragonFly does not have aout. When/if they implement a new
23063 # versioning mechanism, adjust this.
23064 if test -x /usr/bin/objformat; then
23065 objformat=`/usr/bin/objformat`
23066 else
23067 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000023068 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000023069 *) objformat=elf ;;
23070 esac
23071 fi
23072 version_type=freebsd-$objformat
23073 case $version_type in
23074 freebsd-elf*)
Cristy15f22012015-11-14 17:51:30 -050023075 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23076 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023077 need_version=no
23078 need_lib_prefix=no
23079 ;;
23080 freebsd-*)
Cristy15f22012015-11-14 17:51:30 -050023081 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000023082 need_version=yes
23083 ;;
23084 esac
23085 shlibpath_var=LD_LIBRARY_PATH
23086 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000023087 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000023088 shlibpath_overrides_runpath=yes
23089 ;;
23090 freebsd3.[01]* | freebsdelf3.[01]*)
23091 shlibpath_overrides_runpath=yes
23092 hardcode_into_libs=yes
23093 ;;
23094 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23095 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23096 shlibpath_overrides_runpath=no
23097 hardcode_into_libs=yes
23098 ;;
23099 *) # from 4.6 on, and DragonFly
23100 shlibpath_overrides_runpath=yes
23101 hardcode_into_libs=yes
23102 ;;
23103 esac
23104 ;;
23105
cristy0c60a692010-11-04 01:09:47 +000023106haiku*)
cristy99bd5232011-12-07 14:38:20 +000023107 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000023108 need_lib_prefix=no
23109 need_version=no
23110 dynamic_linker="$host_os runtime_loader"
Cristy15f22012015-11-14 17:51:30 -050023111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23112 soname_spec='$libname$release$shared_ext$major'
cristy0c60a692010-11-04 01:09:47 +000023113 shlibpath_var=LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050023114 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000023115 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23116 hardcode_into_libs=yes
23117 ;;
23118
cristy73bd4a52010-10-05 11:24:23 +000023119hpux9* | hpux10* | hpux11*)
23120 # Give a soname corresponding to the major version so that dld.sl refuses to
23121 # link against other versions.
23122 version_type=sunos
23123 need_lib_prefix=no
23124 need_version=no
23125 case $host_cpu in
23126 ia64*)
23127 shrext_cmds='.so'
23128 hardcode_into_libs=yes
23129 dynamic_linker="$host_os dld.so"
23130 shlibpath_var=LD_LIBRARY_PATH
23131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050023132 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23133 soname_spec='$libname$release$shared_ext$major'
23134 if test 32 = "$HPUX_IA64_MODE"; then
cristy73bd4a52010-10-05 11:24:23 +000023135 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
Cristy15f22012015-11-14 17:51:30 -050023136 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
cristy73bd4a52010-10-05 11:24:23 +000023137 else
23138 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
Cristy15f22012015-11-14 17:51:30 -050023139 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
cristy73bd4a52010-10-05 11:24:23 +000023140 fi
cristy73bd4a52010-10-05 11:24:23 +000023141 ;;
23142 hppa*64*)
23143 shrext_cmds='.sl'
23144 hardcode_into_libs=yes
23145 dynamic_linker="$host_os dld.sl"
23146 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23147 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
Cristy15f22012015-11-14 17:51:30 -050023148 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23149 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023150 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23151 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23152 ;;
23153 *)
23154 shrext_cmds='.sl'
23155 dynamic_linker="$host_os dld.sl"
23156 shlibpath_var=SHLIB_PATH
23157 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
Cristy15f22012015-11-14 17:51:30 -050023158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23159 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023160 ;;
23161 esac
cristy0c60a692010-11-04 01:09:47 +000023162 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000023163 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000023164 # or fails outright, so override atomically:
23165 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000023166 ;;
23167
23168interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000023169 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000023170 need_lib_prefix=no
23171 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23173 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023174 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23175 shlibpath_var=LD_LIBRARY_PATH
23176 shlibpath_overrides_runpath=no
23177 hardcode_into_libs=yes
23178 ;;
23179
23180irix5* | irix6* | nonstopux*)
23181 case $host_os in
23182 nonstopux*) version_type=nonstopux ;;
23183 *)
Cristy15f22012015-11-14 17:51:30 -050023184 if test yes = "$lt_cv_prog_gnu_ld"; then
cristy99bd5232011-12-07 14:38:20 +000023185 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000023186 else
23187 version_type=irix
23188 fi ;;
23189 esac
23190 need_lib_prefix=no
23191 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023192 soname_spec='$libname$release$shared_ext$major'
23193 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 +000023194 case $host_os in
23195 irix5* | nonstopux*)
23196 libsuff= shlibsuff=
23197 ;;
23198 *)
23199 case $LD in # libtool.m4 will add one of these switches to LD
23200 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23201 libsuff= shlibsuff= libmagic=32-bit;;
23202 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23203 libsuff=32 shlibsuff=N32 libmagic=N32;;
23204 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23205 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23206 *) libsuff= shlibsuff= libmagic=never-match;;
23207 esac
23208 ;;
23209 esac
23210 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23211 shlibpath_overrides_runpath=no
Cristy15f22012015-11-14 17:51:30 -050023212 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
23213 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
cristy73bd4a52010-10-05 11:24:23 +000023214 hardcode_into_libs=yes
23215 ;;
23216
23217# No shared lib support for Linux oldld, aout, or coff.
23218linux*oldld* | linux*aout* | linux*coff*)
23219 dynamic_linker=no
23220 ;;
23221
Cristy15f22012015-11-14 17:51:30 -050023222linux*android*)
23223 version_type=none # Android doesn't support versioned libraries.
23224 need_lib_prefix=no
23225 need_version=no
23226 library_names_spec='$libname$release$shared_ext'
23227 soname_spec='$libname$release$shared_ext'
23228 finish_cmds=
23229 shlibpath_var=LD_LIBRARY_PATH
23230 shlibpath_overrides_runpath=yes
23231
23232 # This implies no fast_install, which is unacceptable.
23233 # Some rework will be needed to allow for fast_install
23234 # before this can be enabled.
23235 hardcode_into_libs=yes
23236
23237 dynamic_linker='Android linker'
23238 # Don't embed -rpath directories since the linker doesn't support them.
23239 hardcode_libdir_flag_spec_CXX='-L$libdir'
23240 ;;
23241
cristy99bd5232011-12-07 14:38:20 +000023242# This must be glibc/ELF.
Cristy15f22012015-11-14 17:51:30 -050023243linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
cristy99bd5232011-12-07 14:38:20 +000023244 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000023245 need_lib_prefix=no
23246 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23248 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23250 shlibpath_var=LD_LIBRARY_PATH
23251 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000023252
cristy73bd4a52010-10-05 11:24:23 +000023253 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000023254 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000023255 $as_echo_n "(cached) " >&6
23256else
23257 lt_cv_shlibpath_overrides_runpath=no
23258 save_LDFLAGS=$LDFLAGS
23259 save_libdir=$libdir
23260 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23261 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000023263/* end confdefs.h. */
23264
23265int
23266main ()
23267{
23268
23269 ;
23270 return 0;
23271}
23272_ACEOF
23273if ac_fn_cxx_try_link "$LINENO"; then :
23274 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000023275 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000023276fi
23277fi
23278rm -f core conftest.err conftest.$ac_objext \
23279 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000023280 LDFLAGS=$save_LDFLAGS
23281 libdir=$save_libdir
23282
23283fi
23284
23285 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000023286
23287 # This implies no fast_install, which is unacceptable.
23288 # Some rework will be needed to allow for fast_install
23289 # before this can be enabled.
23290 hardcode_into_libs=yes
23291
23292 # Add ABI-specific directories to the system library path.
23293 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
23294
Cristy15f22012015-11-14 17:51:30 -050023295 # Ideally, we could use ldconfig to report *all* directores which are
23296 # searched for libraries, however this is still not possible. Aside from not
23297 # being certain /sbin/ldconfig is available, command
23298 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
23299 # even though it is searched at run-time. Try to do the best guess by
23300 # appending ld.so.conf contents (and includes) to the search path.
cristy73bd4a52010-10-05 11:24:23 +000023301 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000023302 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 +000023303 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
23304 fi
23305
23306 # We used to test for /lib/ld.so.1 and disable shared libraries on
23307 # powerpc, because MkLinux only supported shared libraries with the
23308 # GNU dynamic linker. Since this was broken with cross compilers,
23309 # most powerpc-linux boxes support dynamic linking these days and
23310 # people can always --disable-shared, the test was removed, and we
23311 # assume the GNU/Linux dynamic linker is in use.
23312 dynamic_linker='GNU/Linux ld.so'
23313 ;;
23314
23315netbsd*)
23316 version_type=sunos
23317 need_lib_prefix=no
23318 need_version=no
23319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Cristy15f22012015-11-14 17:51:30 -050023320 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000023321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23322 dynamic_linker='NetBSD (a.out) ld.so'
23323 else
Cristy15f22012015-11-14 17:51:30 -050023324 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23325 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023326 dynamic_linker='NetBSD ld.elf_so'
23327 fi
23328 shlibpath_var=LD_LIBRARY_PATH
23329 shlibpath_overrides_runpath=yes
23330 hardcode_into_libs=yes
23331 ;;
23332
23333newsos6)
cristy99bd5232011-12-07 14:38:20 +000023334 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050023335 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000023336 shlibpath_var=LD_LIBRARY_PATH
23337 shlibpath_overrides_runpath=yes
23338 ;;
23339
23340*nto* | *qnx*)
23341 version_type=qnx
23342 need_lib_prefix=no
23343 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23345 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023346 shlibpath_var=LD_LIBRARY_PATH
23347 shlibpath_overrides_runpath=no
23348 hardcode_into_libs=yes
23349 dynamic_linker='ldqnx.so'
23350 ;;
23351
Cristy15f22012015-11-14 17:51:30 -050023352openbsd* | bitrig*)
cristy73bd4a52010-10-05 11:24:23 +000023353 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050023354 sys_lib_dlsearch_path_spec=/usr/lib
cristy73bd4a52010-10-05 11:24:23 +000023355 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050023356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
23357 need_version=no
23358 else
23359 need_version=yes
23360 fi
23361 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000023362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23363 shlibpath_var=LD_LIBRARY_PATH
Cristy15f22012015-11-14 17:51:30 -050023364 shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000023365 ;;
23366
23367os2*)
23368 libname_spec='$name'
Cristy15f22012015-11-14 17:51:30 -050023369 version_type=windows
23370 shrext_cmds=.dll
23371 need_version=no
cristy73bd4a52010-10-05 11:24:23 +000023372 need_lib_prefix=no
Cristy15f22012015-11-14 17:51:30 -050023373 # OS/2 can only load a DLL with a base name of 8 characters or less.
23374 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
23375 v=$($ECHO $release$versuffix | tr -d .-);
23376 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
23377 $ECHO $n$v`$shared_ext'
23378 library_names_spec='${libname}_dll.$libext'
cristy73bd4a52010-10-05 11:24:23 +000023379 dynamic_linker='OS/2 ld.exe'
Cristy15f22012015-11-14 17:51:30 -050023380 shlibpath_var=BEGINLIBPATH
23381 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23382 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23383 postinstall_cmds='base_file=`basename \$file`~
23384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
23385 dldir=$destdir/`dirname \$dlpath`~
23386 test -d \$dldir || mkdir -p \$dldir~
23387 $install_prog $dir/$dlname \$dldir/$dlname~
23388 chmod a+x \$dldir/$dlname~
23389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23391 fi'
23392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
23393 dlpath=$dir/\$dldll~
23394 $RM \$dlpath'
cristy73bd4a52010-10-05 11:24:23 +000023395 ;;
23396
23397osf3* | osf4* | osf5*)
23398 version_type=osf
23399 need_lib_prefix=no
23400 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023401 soname_spec='$libname$release$shared_ext$major'
23402 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000023403 shlibpath_var=LD_LIBRARY_PATH
23404 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 -050023405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000023406 ;;
23407
23408rdos*)
23409 dynamic_linker=no
23410 ;;
23411
23412solaris*)
cristy99bd5232011-12-07 14:38:20 +000023413 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000023414 need_lib_prefix=no
23415 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23417 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023418 shlibpath_var=LD_LIBRARY_PATH
23419 shlibpath_overrides_runpath=yes
23420 hardcode_into_libs=yes
23421 # ldd complains unless libraries are executable
23422 postinstall_cmds='chmod +x $lib'
23423 ;;
23424
23425sunos4*)
23426 version_type=sunos
Cristy15f22012015-11-14 17:51:30 -050023427 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
cristy73bd4a52010-10-05 11:24:23 +000023428 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23429 shlibpath_var=LD_LIBRARY_PATH
23430 shlibpath_overrides_runpath=yes
Cristy15f22012015-11-14 17:51:30 -050023431 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000023432 need_lib_prefix=no
23433 fi
23434 need_version=yes
23435 ;;
23436
23437sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000023438 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050023439 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23440 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023441 shlibpath_var=LD_LIBRARY_PATH
23442 case $host_vendor in
23443 sni)
23444 shlibpath_overrides_runpath=no
23445 need_lib_prefix=no
23446 runpath_var=LD_RUN_PATH
23447 ;;
23448 siemens)
23449 need_lib_prefix=no
23450 ;;
23451 motorola)
23452 need_lib_prefix=no
23453 need_version=no
23454 shlibpath_overrides_runpath=no
23455 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23456 ;;
23457 esac
23458 ;;
23459
23460sysv4*MP*)
Cristy15f22012015-11-14 17:51:30 -050023461 if test -d /usr/nec; then
cristy99bd5232011-12-07 14:38:20 +000023462 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050023463 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
23464 soname_spec='$libname$shared_ext.$major'
cristy73bd4a52010-10-05 11:24:23 +000023465 shlibpath_var=LD_LIBRARY_PATH
23466 fi
23467 ;;
23468
23469sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
Cristy15f22012015-11-14 17:51:30 -050023470 version_type=sco
cristy73bd4a52010-10-05 11:24:23 +000023471 need_lib_prefix=no
23472 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023473 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
23474 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023475 shlibpath_var=LD_LIBRARY_PATH
23476 shlibpath_overrides_runpath=yes
23477 hardcode_into_libs=yes
Cristy15f22012015-11-14 17:51:30 -050023478 if test yes = "$with_gnu_ld"; then
cristy73bd4a52010-10-05 11:24:23 +000023479 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23480 else
23481 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23482 case $host_os in
23483 sco3.2v5*)
23484 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23485 ;;
23486 esac
23487 fi
23488 sys_lib_dlsearch_path_spec='/usr/lib'
23489 ;;
23490
23491tpf*)
23492 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000023493 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000023494 need_lib_prefix=no
23495 need_version=no
Cristy15f22012015-11-14 17:51:30 -050023496 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
cristy73bd4a52010-10-05 11:24:23 +000023497 shlibpath_var=LD_LIBRARY_PATH
23498 shlibpath_overrides_runpath=no
23499 hardcode_into_libs=yes
23500 ;;
23501
23502uts4*)
cristy99bd5232011-12-07 14:38:20 +000023503 version_type=linux # correct to gnu/linux during the next big refactor
Cristy15f22012015-11-14 17:51:30 -050023504 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23505 soname_spec='$libname$release$shared_ext$major'
cristy73bd4a52010-10-05 11:24:23 +000023506 shlibpath_var=LD_LIBRARY_PATH
23507 ;;
23508
23509*)
23510 dynamic_linker=no
23511 ;;
23512esac
23513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23514$as_echo "$dynamic_linker" >&6; }
Cristy15f22012015-11-14 17:51:30 -050023515test no = "$dynamic_linker" && can_build_shared=no
cristy73bd4a52010-10-05 11:24:23 +000023516
23517variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
Cristy15f22012015-11-14 17:51:30 -050023518if test yes = "$GCC"; then
cristy73bd4a52010-10-05 11:24:23 +000023519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23520fi
23521
Cristy15f22012015-11-14 17:51:30 -050023522if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
23523 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
cristy73bd4a52010-10-05 11:24:23 +000023524fi
Cristy15f22012015-11-14 17:51:30 -050023525
23526if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
23527 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
cristy73bd4a52010-10-05 11:24:23 +000023528fi
23529
Cristy15f22012015-11-14 17:51:30 -050023530# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
23531configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
23532
23533# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
23534func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
23535
23536# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
23537configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
23538
23539
23540
cristy73bd4a52010-10-05 11:24:23 +000023541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
cristy0c60a692010-11-04 01:09:47 +000023576
23577
cristy73bd4a52010-10-05 11:24:23 +000023578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23579$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23580hardcode_action_CXX=
23581if test -n "$hardcode_libdir_flag_spec_CXX" ||
23582 test -n "$runpath_var_CXX" ||
Cristy15f22012015-11-14 17:51:30 -050023583 test yes = "$hardcode_automatic_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000023584
23585 # We can hardcode non-existent directories.
Cristy15f22012015-11-14 17:51:30 -050023586 if test no != "$hardcode_direct_CXX" &&
cristy73bd4a52010-10-05 11:24:23 +000023587 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23588 # have to relink, otherwise we might link with an installed library
23589 # when we should be linking with a yet-to-be-installed one
Cristy15f22012015-11-14 17:51:30 -050023590 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
23591 test no != "$hardcode_minus_L_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000023592 # Linking always hardcodes the temporary library directory.
23593 hardcode_action_CXX=relink
23594 else
23595 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23596 hardcode_action_CXX=immediate
23597 fi
23598else
23599 # We cannot hardcode anything, or else we can only hardcode existing
23600 # directories.
23601 hardcode_action_CXX=unsupported
23602fi
23603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23604$as_echo "$hardcode_action_CXX" >&6; }
23605
Cristy15f22012015-11-14 17:51:30 -050023606if test relink = "$hardcode_action_CXX" ||
23607 test yes = "$inherit_rpath_CXX"; then
cristy73bd4a52010-10-05 11:24:23 +000023608 # Fast installation is not supported
23609 enable_fast_install=no
Cristy15f22012015-11-14 17:51:30 -050023610elif test yes = "$shlibpath_overrides_runpath" ||
23611 test no = "$enable_shared"; then
cristy73bd4a52010-10-05 11:24:23 +000023612 # Fast installation is not necessary
23613 enable_fast_install=needless
23614fi
23615
23616
23617
23618
23619
23620
23621
23622 fi # test -n "$compiler"
23623
23624 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000023625 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000023626 LDCXX=$LD
23627 LD=$lt_save_LD
23628 GCC=$lt_save_GCC
23629 with_gnu_ld=$lt_save_with_gnu_ld
23630 lt_cv_path_LDCXX=$lt_cv_path_LD
23631 lt_cv_path_LD=$lt_save_path_LD
23632 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23633 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
Cristy15f22012015-11-14 17:51:30 -050023634fi # test yes != "$_lt_caught_CXX_error"
cristy73bd4a52010-10-05 11:24:23 +000023635
23636ac_ext=c
23637ac_cpp='$CPP $CPPFLAGS'
23638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23640ac_compiler_gnu=$ac_cv_c_compiler_gnu
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
cristy99bd5232011-12-07 14:38:20 +000023654
23655
cristy73bd4a52010-10-05 11:24:23 +000023656 ac_config_commands="$ac_config_commands libtool"
23657
23658
23659
23660
23661# Only expand once:
23662
23663
23664
cristy3ed852e2009-09-05 21:47:34 +000023665
23666
cristy3ed852e2009-09-05 21:47:34 +000023667# Check to see if building shared libraries
23668libtool_build_shared_libs='no'
23669if test "$enable_shared" = 'yes'; then
23670 libtool_build_shared_libs='yes'
23671fi
23672
23673# Check to see if building static libraries
23674libtool_build_static_libs='no'
23675if test "$enable_static" = 'yes'; then
23676 libtool_build_static_libs='yes'
23677fi
23678
cristy73bd4a52010-10-05 11:24:23 +000023679 if test "${libtool_build_shared_libs}" = 'yes'; then
23680 WITH_SHARED_LIBS_TRUE=
23681 WITH_SHARED_LIBS_FALSE='#'
23682else
23683 WITH_SHARED_LIBS_TRUE='#'
23684 WITH_SHARED_LIBS_FALSE=
23685fi
23686
cristy3ed852e2009-09-05 21:47:34 +000023687#
23688# Enable support for building loadable modules
23689#
cristyaf4cbf32012-10-16 23:47:41 +000023690build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000023691
23692# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000023693if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023694 withval=$with_modules; with_modules=$withval
23695else
cristy5a1cefd2010-01-06 20:42:35 +000023696 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000023697fi
23698
23699
23700# Only allow building loadable modules if we are building shared libraries
23701if test "$with_modules" != 'no' ; then
23702 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000023703 { $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 +000023704$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000023705 build_modules='no'
23706 else
23707 build_modules='yes'
23708 fi
cristy3ed852e2009-09-05 21:47:34 +000023709fi
cristyc6722092012-10-14 00:19:31 +000023710if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000023711
cristy8b350f62009-11-15 23:12:43 +000023712$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023713
cristyfa161182012-12-19 15:45:28 +000023714 MAGICK_FEATURES="$MAGICK_FEATURES Modules"
cristy3ed852e2009-09-05 21:47:34 +000023715fi
cristyc6722092012-10-14 00:19:31 +000023716 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000023717 WITH_MODULES_TRUE=
23718 WITH_MODULES_FALSE='#'
23719else
23720 WITH_MODULES_TRUE='#'
23721 WITH_MODULES_FALSE=
23722fi
23723
cristy3ed852e2009-09-05 21:47:34 +000023724
cristy3ed852e2009-09-05 21:47:34 +000023725# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000023726# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000023727# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000023728if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023729 enableval=$enable_delegate_build; enable_delegate_build=$enableval
23730else
23731 enable_delegate_build='no'
23732fi
23733
23734
23735# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000023736if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023737 enableval=$enable_deprecated; enable_deprecated=$enableval
23738else
23739 enable_deprecated='no'
23740fi
23741
23742
23743if test "$enable_deprecated" = 'yes'; then
23744
cristy8b350f62009-11-15 23:12:43 +000023745$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023746
23747else
23748 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
23749fi
23750
23751# Build a version of ImageMagick which operates uninstalled.
23752# Used to build distributions located via MAGICK_HOME / executable path
23753# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000023754if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023755 enableval=$enable_installed; enable_installed=$enableval
23756else
23757 enable_installed='yes'
23758fi
23759
23760
23761if test "$enable_installed" = 'yes'; then
23762
cristy8b350f62009-11-15 23:12:43 +000023763$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023764
23765else
23766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
23767fi
23768
23769# Permit enciphering and deciphering image pixels.
23770# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000023771if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023772 enableval=$enable_cipher; enable_cipher=$enableval
23773else
23774 enable_cipher='yes'
23775fi
23776
23777
23778if test "$enable_cipher" = 'yes'; then
23779
cristy8b350f62009-11-15 23:12:43 +000023780$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023781
cristy0f6fc2d2015-05-30 00:49:11 +000023782 MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000023783fi
23784
cristy6e3607c2011-09-13 13:59:17 +000023785# Build a zero-configuration version of ImageMagick.
23786# Check whether --enable-zero-configuration was given.
23787if test "${enable_zero_configuration+set}" = set; then :
23788 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000023789else
cristy6e3607c2011-09-13 13:59:17 +000023790 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000023791fi
23792
23793
cristy6e3607c2011-09-13 13:59:17 +000023794if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000023795
cristy6e3607c2011-09-13 13:59:17 +000023796$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023797
cristy0f6fc2d2015-05-30 00:49:11 +000023798 MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000023799fi
23800
23801# Build a high dynamic range version of ImageMagick.
23802# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000023803if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023804 enableval=$enable_hdri; enable_hdri=$enableval
23805else
cristy191c0b72012-08-12 16:29:52 +000023806 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000023807fi
23808
23809
23810MAGICK_HDRI=""
23811if test "$enable_hdri" = 'yes'; then
23812 MAGICK_HDRI="HDRI"
cristye52f12f2012-12-31 15:32:36 +000023813 magick_hdri_enable='1';
cristyfd9dcd42010-08-08 18:07:02 +000023814 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristye52f12f2012-12-31 15:32:36 +000023815else
23816 magick_hdri_enable='0'
cristy3ed852e2009-09-05 21:47:34 +000023817fi
23818
cristye52f12f2012-12-31 15:32:36 +000023819cat >>confdefs.h <<_ACEOF
23820#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
23821_ACEOF
23822
23823MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
23824CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristy72062382012-12-31 16:49:52 +000023825CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
cristye52f12f2012-12-31 15:32:36 +000023826
Cristy697159d2016-05-31 07:21:31 -040023827# Enable pipes (|) in filenames.
23828# Check whether --enable-pipes was given.
23829if test "${enable_pipes+set}" = set; then :
23830 enableval=$enable_pipes; enable_pipes=$enableval
23831else
23832 enable_pipes='no'
23833fi
23834
23835
23836if test "$enable_pipes" = 'yes'; then
23837
23838$as_echo "#define PIPES_SUPPORT 1" >>confdefs.h
23839
23840 MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
23841fi
23842
cristy3ed852e2009-09-05 21:47:34 +000023843# Build a version of ImageMagick with assert statements.
23844# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000023845if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023846 enableval=$enable_assert; enable_assert=$enableval
23847else
23848 enable_assert='yes'
23849fi
23850
23851
23852if test "$enable_assert" = 'no'; then
23853
cristy8b350f62009-11-15 23:12:43 +000023854$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023855
23856fi
23857
cristya448bd22011-10-14 12:38:13 +000023858# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000023859
23860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
23861$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
23862 # Check whether --enable-maintainer-mode was given.
23863if test "${enable_maintainer_mode+set}" = set; then :
23864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
23865else
23866 USE_MAINTAINER_MODE=no
23867fi
23868
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
23870$as_echo "$USE_MAINTAINER_MODE" >&6; }
23871 if test $USE_MAINTAINER_MODE = yes; then
23872 MAINTAINER_MODE_TRUE=
23873 MAINTAINER_MODE_FALSE='#'
23874else
23875 MAINTAINER_MODE_TRUE='#'
23876 MAINTAINER_MODE_FALSE=
23877fi
23878
23879 MAINT=$MAINTAINER_MODE_TRUE
23880
23881
cristy3ed852e2009-09-05 21:47:34 +000023882
cristy944e51f2013-04-16 18:45:02 +000023883# Enable hugepages support
23884# Check whether --enable-hugepages was given.
23885if test "${enable_hugepages+set}" = set; then :
23886 enableval=$enable_hugepages; enable_hugepages=$enableval
23887else
23888 enable_hugepages='no'
23889fi
23890
23891
cristy3ed852e2009-09-05 21:47:34 +000023892# Enable ccmalloc memory debugging support
23893# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000023894if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023895 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
23896else
23897 enable_ccmalloc='no'
23898fi
23899
23900
23901# Enable Electric Fence memory debugging support
23902# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000023903if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023904 enableval=$enable_efence; enable_efence=$enableval
23905else
23906 enable_efence='no'
23907fi
23908
23909
23910# Enable prof-based profiling support
23911# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000023912if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023913 enableval=$enable_prof; enable_prof=$enableval
23914else
23915 enable_prof='no'
23916fi
23917
23918
23919# Enable gprof-based profiling support
23920# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000023921if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023922 enableval=$enable_gprof; enable_gprof=$enableval
23923else
23924 enable_gprof='no'
23925fi
23926
23927
23928# Enable gcov-based profiling support
23929# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000023930if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023931 enableval=$enable_gcov; enable_gcov=$enableval
23932else
23933 enable_gcov='no'
23934fi
23935
23936
23937enable_profiling='no'
23938if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
23939 enable_profiling='yes'
23940 if test "$libtool_build_shared_libs" = 'yes'; then
23941 echo "Warning: Can not profile code using shared libraries"
23942 fi
23943fi
23944
23945# Magick API method prefix
23946
23947# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000023948if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000023949 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000023950else
cristyfc3d0222012-02-07 15:05:57 +000023951 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000023952fi
23953
23954
cristyfc3d0222012-02-07 15:05:57 +000023955if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000023956
23957cat >>confdefs.h <<_ACEOF
23958#define NAMESPACE_PREFIX $with_method_prefix
23959_ACEOF
23960
cristyfc3d0222012-02-07 15:05:57 +000023961 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000023962fi
23963
cristy71d8c202012-03-20 17:05:01 +000023964# Enable legacy support (default no)
23965# Check whether --enable-legacy-support was given.
23966if test "${enable_legacy_support+set}" = set; then :
23967 enableval=$enable_legacy_support; with_legacy_support=$enableval
23968else
23969 with_legacy_support='no'
23970fi
23971
23972 if test "$with_legacy_support" != 'no'; then
23973 LEGACY_SUPPORT_TRUE=
23974 LEGACY_SUPPORT_FALSE='#'
23975else
23976 LEGACY_SUPPORT_TRUE='#'
23977 LEGACY_SUPPORT_FALSE=
23978fi
23979
23980
cristy3ed852e2009-09-05 21:47:34 +000023981# Number of bits in a Quantum
23982
23983# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000023984if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000023985 withval=$with_quantum_depth; with_quantum_depth=$withval
23986else
23987 with_quantum_depth=16
23988fi
23989
23990
23991if test "$with_quantum_depth" != '8'; then
23992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
23993fi
23994
23995case "${with_quantum_depth}" in
23996 8 ) ;;
23997 16 ) ;;
23998 32 ) ;;
23999 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000024000 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000024001esac
24002QUANTUM_DEPTH="$with_quantum_depth"
24003
24004cat >>confdefs.h <<_ACEOF
cristye52f12f2012-12-31 15:32:36 +000024005#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
cristy3ed852e2009-09-05 21:47:34 +000024006_ACEOF
24007
cristya371edf2013-02-06 13:42:17 +000024008MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristye52f12f2012-12-31 15:32:36 +000024009CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy72062382012-12-31 16:49:52 +000024010CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
cristy3ed852e2009-09-05 21:47:34 +000024011
cristy01ff9f32012-12-01 18:15:29 +000024012# define a lib suffix for abi purpose
cristy7a26abd2012-12-03 00:18:59 +000024013MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
cristye386d192012-12-01 21:05:20 +000024014if test "$enable_hdri" = 'yes'; then
cristy7a26abd2012-12-03 00:18:59 +000024015 MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
cristye386d192012-12-01 21:05:20 +000024016fi
cristy01ff9f32012-12-01 18:15:29 +000024017
24018
cristy3ed852e2009-09-05 21:47:34 +000024019# Set pixel cache threshold
24020
24021# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000024022if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024023 withval=$with_cache; with_cache=$withval
24024else
24025 with_cache=''
24026fi
24027
24028
24029if test "$with_cache" != ''; then
24030
24031cat >>confdefs.h <<_ACEOF
24032#define PixelCacheThreshold $with_cache
24033_ACEOF
24034
24035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
24036fi
24037
24038# Disable/Enable support for full delegate paths
24039
24040# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000024041if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024042 withval=$with_frozenpaths; with_frozenpaths=$withval
24043else
24044 with_frozenpaths='no'
24045fi
24046
24047
24048# Enable build/install of Magick++
24049
24050# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000024051if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024052 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
24053else
24054 with_magick_plus_plus='yes'
24055fi
24056
24057
cristy3a75f062012-09-08 23:29:40 +000024058# Encode the this name into the shared library.
24059
24060# Check whether --with-package-release-name was given.
24061if test "${with_package_release_name+set}" = set; then :
24062 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
24063fi
24064
24065
24066
cristy3ed852e2009-09-05 21:47:34 +000024067# Disable build/install of PerlMagick.
24068
24069# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000024070if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024071 withval=$with_perl; with_perl=$withval
24072else
cristyb5f4e2f2010-04-25 00:49:11 +000024073 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000024074fi
24075
24076
24077# Options to pass when configuring PerlMagick
24078
24079# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000024080if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000024081 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000024082fi
24083
24084
cristy3ed852e2009-09-05 21:47:34 +000024085
cristy3b0097d2014-11-04 15:34:47 +000024086# Enable jemalloc, object-caching memory allocation library.
24087
24088# Check whether --with-jemalloc was given.
24089if test "${with_jemalloc+set}" = set; then :
24090 withval=$with_jemalloc; with_jemalloc=$withval
24091else
24092 with_jemalloc='no'
24093fi
24094
24095if test "$with_jemalloc" != 'yes' ; then
24096 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
24097fi
24098
cristy3ed852e2009-09-05 21:47:34 +000024099# Enable umem, object-caching memory allocation library.
24100
24101# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000024102if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024103 withval=$with_umem; with_umem=$withval
24104else
24105 with_umem='no'
24106fi
24107
24108if test "$with_umem" != 'yes' ; then
24109 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
24110fi
24111
24112#
24113# Specify path to shared libstdc++ if not in normal location
24114#
24115
24116# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000024117if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000024118 withval=$with_libstdc; with_libstdc=$withval
24119else
24120 with_libstdc=''
24121fi
24122
24123
24124if test "$with_libstdc" != ''; then
24125 if test -d "$with_libstdc"; then
24126 LIBSTDCLDFLAGS="-L$with_libstdc"
24127 fi
24128fi
24129
24130
24131# Does gcc required -traditional?
24132if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000024133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000024134$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024135if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024136 $as_echo_n "(cached) " >&6
24137else
24138 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000024139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024140/* end confdefs.h. */
24141#include <sgtty.h>
24142Autoconf TIOCGETP
24143_ACEOF
24144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000024145 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000024146 ac_cv_prog_gcc_traditional=yes
24147else
24148 ac_cv_prog_gcc_traditional=no
24149fi
24150rm -f conftest*
24151
24152
24153 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000024154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024155/* end confdefs.h. */
24156#include <termio.h>
24157Autoconf TCGETA
24158_ACEOF
24159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000024160 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000024161 ac_cv_prog_gcc_traditional=yes
24162fi
24163rm -f conftest*
24164
24165 fi
24166fi
cristy8b350f62009-11-15 23:12:43 +000024167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000024168$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
24169 if test $ac_cv_prog_gcc_traditional = yes; then
24170 CC="$CC -traditional"
24171 fi
24172fi
24173
24174
24175########
24176#
24177# Set defines required to build DLLs and modules using MinGW
24178#
24179########
24180# These options are set for multi-thread DLL module build
24181# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
24182# module: _DLL
24183# executable/Magick++: _DLL _MAGICKMOD_
24184MODULE_EXTRA_CPPFLAGS=''
24185LIBRARY_EXTRA_CPPFLAGS=''
24186if test "${native_win32_build}" = 'yes'; then
24187 if test "${libtool_build_shared_libs}" = 'yes'; then
24188 CPPFLAGS="$CPPFLAGS -D_DLL"
24189 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
24190 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
24191 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000024192 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000024193 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
24194 else
24195 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
24196 fi
24197 else
24198 CPPFLAGS="$CPPFLAGS -D_LIB"
24199 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
24200 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
24201 fi
24202 if test "$with_threads" = 'yes'; then
24203 CPPFLAGS="$CPPFLAGS -D_MT"
24204 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
24205 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
24206 fi
24207fi
24208
24209
24210
24211# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000024212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000024213$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024214if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024215 $as_echo_n "(cached) " >&6
24216else
cristy8b350f62009-11-15 23:12:43 +000024217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024218/* end confdefs.h. */
24219#include <stdlib.h>
24220#include <stdarg.h>
24221#include <string.h>
24222#include <float.h>
24223
24224int
24225main ()
24226{
24227
24228 ;
24229 return 0;
24230}
24231_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024232if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024233 ac_cv_header_stdc=yes
24234else
cristy8b350f62009-11-15 23:12:43 +000024235 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000024236fi
cristy3ed852e2009-09-05 21:47:34 +000024237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238
24239if test $ac_cv_header_stdc = yes; then
24240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000024241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024242/* end confdefs.h. */
24243#include <string.h>
24244
24245_ACEOF
24246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000024247 $EGREP "memchr" >/dev/null 2>&1; then :
24248
cristy3ed852e2009-09-05 21:47:34 +000024249else
24250 ac_cv_header_stdc=no
24251fi
24252rm -f conftest*
24253
24254fi
24255
24256if test $ac_cv_header_stdc = yes; then
24257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000024258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024259/* end confdefs.h. */
24260#include <stdlib.h>
24261
24262_ACEOF
24263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000024264 $EGREP "free" >/dev/null 2>&1; then :
24265
cristy3ed852e2009-09-05 21:47:34 +000024266else
24267 ac_cv_header_stdc=no
24268fi
24269rm -f conftest*
24270
24271fi
24272
24273if test $ac_cv_header_stdc = yes; then
24274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000024275 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024276 :
24277else
cristy8b350f62009-11-15 23:12:43 +000024278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024279/* end confdefs.h. */
24280#include <ctype.h>
24281#include <stdlib.h>
24282#if ((' ' & 0x0FF) == 0x020)
24283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24285#else
24286# define ISLOWER(c) \
24287 (('a' <= (c) && (c) <= 'i') \
24288 || ('j' <= (c) && (c) <= 'r') \
24289 || ('s' <= (c) && (c) <= 'z'))
24290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24291#endif
24292
24293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24294int
24295main ()
24296{
24297 int i;
24298 for (i = 0; i < 256; i++)
24299 if (XOR (islower (i), ISLOWER (i))
24300 || toupper (i) != TOUPPER (i))
24301 return 2;
24302 return 0;
24303}
24304_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024305if ac_fn_c_try_run "$LINENO"; then :
24306
cristy3ed852e2009-09-05 21:47:34 +000024307else
cristy8b350f62009-11-15 23:12:43 +000024308 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000024309fi
cristy8b350f62009-11-15 23:12:43 +000024310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24311 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024312fi
24313
cristy3ed852e2009-09-05 21:47:34 +000024314fi
24315fi
cristy8b350f62009-11-15 23:12:43 +000024316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000024317$as_echo "$ac_cv_header_stdc" >&6; }
24318if test $ac_cv_header_stdc = yes; then
24319
cristy8b350f62009-11-15 23:12:43 +000024320$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024321
24322fi
24323
24324if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000024325 { $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 +000024326 header files. Compilation cannot proceed. Please install the ANSI C
24327 headers and rerun this script." >&5
24328$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
24329 header files. Compilation cannot proceed. Please install the ANSI C
24330 headers and rerun this script." >&2;};
24331fi
cristya0b81c32010-01-22 02:54:33 +000024332
24333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
24334$as_echo_n "checking whether to enable assertions... " >&6; }
24335 # Check whether --enable-assert was given.
24336if test "${enable_assert+set}" = set; then :
24337 enableval=$enable_assert; ac_enable_assert=$enableval
24338 if test "x$enableval" = xno; then :
24339
24340$as_echo "#define NDEBUG 1" >>confdefs.h
24341
24342elif test "x$enableval" != xyes; then :
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
24344$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
24345 ac_enable_assert=yes
24346fi
24347else
24348 ac_enable_assert=yes
24349fi
24350
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
24352$as_echo "$ac_enable_assert" >&6; }
24353
cristy3ed852e2009-09-05 21:47:34 +000024354ac_header_dirent=no
24355for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24356 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000024357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000024358$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024359if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024360 $as_echo_n "(cached) " >&6
24361else
cristy8b350f62009-11-15 23:12:43 +000024362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024363/* end confdefs.h. */
24364#include <sys/types.h>
24365#include <$ac_hdr>
24366
24367int
24368main ()
24369{
24370if ((DIR *) 0)
24371return 0;
24372 ;
24373 return 0;
24374}
24375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 eval "$as_ac_Header=yes"
24378else
cristy8b350f62009-11-15 23:12:43 +000024379 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000024380fi
cristy3ed852e2009-09-05 21:47:34 +000024381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24382fi
cristy8b350f62009-11-15 23:12:43 +000024383eval ac_res=\$$as_ac_Header
24384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000024385$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000024386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024387 cat >>confdefs.h <<_ACEOF
24388#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24389_ACEOF
24390
24391ac_header_dirent=$ac_hdr; break
24392fi
24393
24394done
24395# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24396if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000024397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000024398$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024399if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024400 $as_echo_n "(cached) " >&6
24401else
24402 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024404/* end confdefs.h. */
24405
24406/* Override any GCC internal prototype to avoid an error.
24407 Use char because int might match the return type of a GCC
24408 builtin and then its argument prototype would still apply. */
24409#ifdef __cplusplus
24410extern "C"
24411#endif
24412char opendir ();
24413int
24414main ()
24415{
24416return opendir ();
24417 ;
24418 return 0;
24419}
24420_ACEOF
24421for ac_lib in '' dir; do
24422 if test -z "$ac_lib"; then
24423 ac_res="none required"
24424 else
24425 ac_res=-l$ac_lib
24426 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24427 fi
cristy8b350f62009-11-15 23:12:43 +000024428 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024429 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000024430fi
cristy8b350f62009-11-15 23:12:43 +000024431rm -f core conftest.err conftest.$ac_objext \
24432 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024433 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024434 break
24435fi
24436done
cristyda16f162011-02-19 23:52:17 +000024437if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024438
cristy3ed852e2009-09-05 21:47:34 +000024439else
24440 ac_cv_search_opendir=no
24441fi
24442rm conftest.$ac_ext
24443LIBS=$ac_func_search_save_LIBS
24444fi
cristy8b350f62009-11-15 23:12:43 +000024445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000024446$as_echo "$ac_cv_search_opendir" >&6; }
24447ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000024448if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000024449 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24450
24451fi
24452
24453else
cristy8b350f62009-11-15 23:12:43 +000024454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000024455$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024456if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024457 $as_echo_n "(cached) " >&6
24458else
24459 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024461/* end confdefs.h. */
24462
24463/* Override any GCC internal prototype to avoid an error.
24464 Use char because int might match the return type of a GCC
24465 builtin and then its argument prototype would still apply. */
24466#ifdef __cplusplus
24467extern "C"
24468#endif
24469char opendir ();
24470int
24471main ()
24472{
24473return opendir ();
24474 ;
24475 return 0;
24476}
24477_ACEOF
24478for ac_lib in '' x; do
24479 if test -z "$ac_lib"; then
24480 ac_res="none required"
24481 else
24482 ac_res=-l$ac_lib
24483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24484 fi
cristy8b350f62009-11-15 23:12:43 +000024485 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024486 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000024487fi
cristy8b350f62009-11-15 23:12:43 +000024488rm -f core conftest.err conftest.$ac_objext \
24489 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024490 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024491 break
24492fi
24493done
cristyda16f162011-02-19 23:52:17 +000024494if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024495
cristy3ed852e2009-09-05 21:47:34 +000024496else
24497 ac_cv_search_opendir=no
24498fi
24499rm conftest.$ac_ext
24500LIBS=$ac_func_search_save_LIBS
24501fi
cristy8b350f62009-11-15 23:12:43 +000024502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000024503$as_echo "$ac_cv_search_opendir" >&6; }
24504ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000024505if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000024506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24507
24508fi
24509
24510fi
24511
24512
24513# Check additional headers
Cristyd1f5c0d2016-04-26 10:21:41 -040024514for 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 utime.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000024515do :
24516 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24517ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024518if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024519 cat >>confdefs.h <<_ACEOF
24520#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24521_ACEOF
24522
24523fi
24524
24525done
24526
24527
24528########
24529#
24530# Checks for typedefs, structures, and compiler characteristics.
24531#
24532########
24533
cristy8b350f62009-11-15 23:12:43 +000024534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000024535$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024536if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024537 $as_echo_n "(cached) " >&6
24538else
cristy8b350f62009-11-15 23:12:43 +000024539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024540/* end confdefs.h. */
24541
cristy14fefe52012-05-21 00:59:18 +000024542 #include <stdbool.h>
24543 #ifndef bool
24544 "error: bool is not defined"
24545 #endif
24546 #ifndef false
24547 "error: false is not defined"
24548 #endif
24549 #if false
24550 "error: false is not 0"
24551 #endif
24552 #ifndef true
24553 "error: true is not defined"
24554 #endif
24555 #if true != 1
24556 "error: true is not 1"
24557 #endif
24558 #ifndef __bool_true_false_are_defined
24559 "error: __bool_true_false_are_defined is not defined"
24560 #endif
cristy3ed852e2009-09-05 21:47:34 +000024561
cristy14fefe52012-05-21 00:59:18 +000024562 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000024563
cristy14fefe52012-05-21 00:59:18 +000024564 char a[true == 1 ? 1 : -1];
24565 char b[false == 0 ? 1 : -1];
24566 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24567 char d[(bool) 0.5 == true ? 1 : -1];
24568 /* See body of main program for 'e'. */
24569 char f[(_Bool) 0.0 == false ? 1 : -1];
24570 char g[true];
24571 char h[sizeof (_Bool)];
24572 char i[sizeof s.t];
24573 enum { j = false, k = true, l = false * true, m = true * 256 };
24574 /* The following fails for
24575 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24576 _Bool n[m];
24577 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24578 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24579 /* Catch a bug in an HP-UX C compiler. See
24580 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24581 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24582 */
24583 _Bool q = true;
24584 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000024585
24586int
24587main ()
24588{
24589
cristy14fefe52012-05-21 00:59:18 +000024590 bool e = &s;
24591 *pq |= q;
24592 *pq |= ! q;
24593 /* Refer to every declared value, to avoid compiler optimizations. */
24594 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24595 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000024596
24597 ;
24598 return 0;
24599}
24600_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024601if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024602 ac_cv_header_stdbool_h=yes
24603else
cristy8b350f62009-11-15 23:12:43 +000024604 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000024605fi
cristy3ed852e2009-09-05 21:47:34 +000024606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607fi
cristy8b350f62009-11-15 23:12:43 +000024608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000024609$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000024610 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024611if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024612
24613cat >>confdefs.h <<_ACEOF
24614#define HAVE__BOOL 1
24615_ACEOF
24616
24617
24618fi
24619
cristy14fefe52012-05-21 00:59:18 +000024620
cristy3ed852e2009-09-05 21:47:34 +000024621if test $ac_cv_header_stdbool_h = yes; then
24622
cristy8b350f62009-11-15 23:12:43 +000024623$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024624
24625fi
24626
cristy8b350f62009-11-15 23:12:43 +000024627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000024628$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024629if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024630 $as_echo_n "(cached) " >&6
24631else
cristy8b350f62009-11-15 23:12:43 +000024632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024633/* end confdefs.h. */
24634
24635int
24636main ()
24637{
24638
24639volatile int x;
24640int * volatile y = (int *) 0;
24641return !x && !y;
24642 ;
24643 return 0;
24644}
24645_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024646if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024647 ac_cv_c_volatile=yes
24648else
cristy8b350f62009-11-15 23:12:43 +000024649 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000024650fi
cristy3ed852e2009-09-05 21:47:34 +000024651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24652fi
cristy8b350f62009-11-15 23:12:43 +000024653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000024654$as_echo "$ac_cv_c_volatile" >&6; }
24655if test $ac_cv_c_volatile = no; then
24656
cristy8b350f62009-11-15 23:12:43 +000024657$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024658
24659fi
24660
cristy8b350f62009-11-15 23:12:43 +000024661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000024662$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024663if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024664 $as_echo_n "(cached) " >&6
24665else
cristy8b350f62009-11-15 23:12:43 +000024666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024667/* end confdefs.h. */
24668#define x(y) #y
24669
24670char *s = x(teststring);
24671_ACEOF
24672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000024673 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000024674 ac_cv_c_stringize=no
24675else
24676 ac_cv_c_stringize=yes
24677fi
24678rm -f conftest*
24679
24680fi
cristy8b350f62009-11-15 23:12:43 +000024681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000024682$as_echo "$ac_cv_c_stringize" >&6; }
24683if test $ac_cv_c_stringize = yes; then
24684
cristy8b350f62009-11-15 23:12:43 +000024685$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024686
24687fi
24688
cristy8b350f62009-11-15 23:12:43 +000024689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000024690$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024691if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024692 $as_echo_n "(cached) " >&6
24693else
cristy8b350f62009-11-15 23:12:43 +000024694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024695/* end confdefs.h. */
24696#include <sys/types.h>
24697#include <sys/stat.h>
24698
24699#if defined S_ISBLK && defined S_IFDIR
24700extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24701#endif
24702
24703#if defined S_ISBLK && defined S_IFCHR
24704extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24705#endif
24706
24707#if defined S_ISLNK && defined S_IFREG
24708extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24709#endif
24710
24711#if defined S_ISSOCK && defined S_IFREG
24712extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24713#endif
24714
24715_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024716if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024717 ac_cv_header_stat_broken=no
24718else
cristy8b350f62009-11-15 23:12:43 +000024719 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000024720fi
cristy3ed852e2009-09-05 21:47:34 +000024721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722fi
cristy8b350f62009-11-15 23:12:43 +000024723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000024724$as_echo "$ac_cv_header_stat_broken" >&6; }
24725if test $ac_cv_header_stat_broken = yes; then
24726
cristy8b350f62009-11-15 23:12:43 +000024727$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024728
24729fi
24730
cristy8b350f62009-11-15 23:12:43 +000024731{ $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 +000024732$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024733if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024734 $as_echo_n "(cached) " >&6
24735else
cristy8b350f62009-11-15 23:12:43 +000024736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024737/* end confdefs.h. */
24738#include <sys/types.h>
24739#include <sys/time.h>
24740#include <time.h>
24741
24742int
24743main ()
24744{
24745if ((struct tm *) 0)
24746return 0;
24747 ;
24748 return 0;
24749}
24750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024751if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024752 ac_cv_header_time=yes
24753else
cristy8b350f62009-11-15 23:12:43 +000024754 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000024755fi
cristy3ed852e2009-09-05 21:47:34 +000024756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24757fi
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo "$ac_cv_header_time" >&6; }
24760if test $ac_cv_header_time = yes; then
24761
cristy8b350f62009-11-15 23:12:43 +000024762$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024763
24764fi
24765
cristy8b350f62009-11-15 23:12:43 +000024766{ $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 +000024767$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024768if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024769 $as_echo_n "(cached) " >&6
24770else
cristy8b350f62009-11-15 23:12:43 +000024771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024772/* end confdefs.h. */
24773#include <sys/types.h>
24774#include <time.h>
24775
24776int
24777main ()
24778{
24779struct tm tm;
24780 int *p = &tm.tm_sec;
24781 return !p;
24782 ;
24783 return 0;
24784}
24785_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024786if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024787 ac_cv_struct_tm=time.h
24788else
cristy8b350f62009-11-15 23:12:43 +000024789 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000024790fi
cristy3ed852e2009-09-05 21:47:34 +000024791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792fi
cristy8b350f62009-11-15 23:12:43 +000024793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024794$as_echo "$ac_cv_struct_tm" >&6; }
24795if test $ac_cv_struct_tm = sys/time.h; then
24796
cristy8b350f62009-11-15 23:12:43 +000024797$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024798
24799fi
24800
cristy92703d82010-04-26 00:18:18 +000024801ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
24802#include <$ac_cv_struct_tm>
24803
24804"
cristyda16f162011-02-19 23:52:17 +000024805if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000024806
24807cat >>confdefs.h <<_ACEOF
24808#define HAVE_STRUCT_TM_TM_ZONE 1
24809_ACEOF
24810
24811
24812fi
24813
24814if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24815
24816$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
24817
24818else
24819 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
24820"
cristyda16f162011-02-19 23:52:17 +000024821if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000024822 ac_have_decl=1
24823else
24824 ac_have_decl=0
24825fi
24826
24827cat >>confdefs.h <<_ACEOF
24828#define HAVE_DECL_TZNAME $ac_have_decl
24829_ACEOF
24830
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
24832$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024833if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000024834 $as_echo_n "(cached) " >&6
24835else
24836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24837/* end confdefs.h. */
24838#include <time.h>
24839#if !HAVE_DECL_TZNAME
24840extern char *tzname[];
24841#endif
24842
24843int
24844main ()
24845{
24846return tzname[0][0];
24847 ;
24848 return 0;
24849}
24850_ACEOF
24851if ac_fn_c_try_link "$LINENO"; then :
24852 ac_cv_var_tzname=yes
24853else
24854 ac_cv_var_tzname=no
24855fi
24856rm -f core conftest.err conftest.$ac_objext \
24857 conftest$ac_exeext conftest.$ac_ext
24858fi
24859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
24860$as_echo "$ac_cv_var_tzname" >&6; }
24861 if test $ac_cv_var_tzname = yes; then
24862
24863$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
24864
24865 fi
24866fi
24867
cristy8b350f62009-11-15 23:12:43 +000024868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000024869$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024870if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024871 $as_echo_n "(cached) " >&6
24872else
24873 echo '#! /bin/cat
24874exit 69
24875' >conftest
24876chmod u+x conftest
24877(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
24878if test $? -ne 69; then
24879 ac_cv_sys_interpreter=yes
24880else
24881 ac_cv_sys_interpreter=no
24882fi
24883rm -f conftest
24884fi
cristy8b350f62009-11-15 23:12:43 +000024885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000024886$as_echo "$ac_cv_sys_interpreter" >&6; }
24887interpval=$ac_cv_sys_interpreter
24888
24889
cristye80f9cb2013-01-09 01:09:31 +000024890#
24891# Checks for language qualifiers and semantics.
24892#
24893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
24894$as_echo_n "checking whether char is unsigned... " >&6; }
24895if ${ac_cv_c_char_unsigned+:} false; then :
24896 $as_echo_n "(cached) " >&6
24897else
24898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904static int test_array [1 - 2 * !(((char) -1) < 0)];
24905test_array [0] = 0;
24906return test_array [0];
24907
24908 ;
24909 return 0;
24910}
24911_ACEOF
24912if ac_fn_c_try_compile "$LINENO"; then :
24913 ac_cv_c_char_unsigned=no
24914else
24915 ac_cv_c_char_unsigned=yes
24916fi
24917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918fi
24919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
24920$as_echo "$ac_cv_c_char_unsigned" >&6; }
24921if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24922 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
24923
24924fi
24925
24926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24927$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24928if ${ac_cv_c_const+:} false; then :
24929 $as_echo_n "(cached) " >&6
24930else
24931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932/* end confdefs.h. */
24933
24934int
24935main ()
24936{
24937
24938#ifndef __cplusplus
24939 /* Ultrix mips cc rejects this sort of thing. */
24940 typedef int charset[2];
24941 const charset cs = { 0, 0 };
24942 /* SunOS 4.1.1 cc rejects this. */
24943 char const *const *pcpcc;
24944 char **ppc;
24945 /* NEC SVR4.0.2 mips cc rejects this. */
24946 struct point {int x, y;};
24947 static struct point const zero = {0,0};
24948 /* AIX XL C 1.02.0.0 rejects this.
24949 It does not let you subtract one const X* pointer from another in
24950 an arm of an if-expression whose if-part is not a constant
24951 expression */
24952 const char *g = "string";
24953 pcpcc = &g + (g ? g-g : 0);
24954 /* HPUX 7.0 cc rejects these. */
24955 ++pcpcc;
24956 ppc = (char**) pcpcc;
24957 pcpcc = (char const *const *) ppc;
24958 { /* SCO 3.2v4 cc rejects this sort of thing. */
24959 char tx;
24960 char *t = &tx;
24961 char const *s = 0 ? (char *) 0 : (char const *) 0;
24962
24963 *t++ = 0;
24964 if (s) return 0;
24965 }
24966 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24967 int x[] = {25, 17};
24968 const int *foo = &x[0];
24969 ++foo;
24970 }
24971 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24972 typedef const int *iptr;
24973 iptr p = 0;
24974 ++p;
24975 }
24976 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24977 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24978 struct s { int j; const int *ap[3]; } bx;
24979 struct s *b = &bx; b->j = 5;
24980 }
24981 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24982 const int foo = 10;
24983 if (!foo) return 0;
24984 }
24985 return !cs[0] && !zero.x;
24986#endif
24987
24988 ;
24989 return 0;
24990}
24991_ACEOF
24992if ac_fn_c_try_compile "$LINENO"; then :
24993 ac_cv_c_const=yes
24994else
24995 ac_cv_c_const=no
24996fi
24997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24998fi
24999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25000$as_echo "$ac_cv_c_const" >&6; }
25001if test $ac_cv_c_const = no; then
25002
25003$as_echo "#define const /**/" >>confdefs.h
25004
25005fi
25006
cristy8b350f62009-11-15 23:12:43 +000025007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000025008$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025009if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025010 $as_echo_n "(cached) " >&6
25011else
25012 ac_cv_c_inline=no
25013for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000025014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025015/* end confdefs.h. */
25016#ifndef __cplusplus
25017typedef int foo_t;
25018static $ac_kw foo_t static_foo () {return 0; }
25019$ac_kw foo_t foo () {return 0; }
25020#endif
25021
25022_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025023if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025024 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000025025fi
cristy3ed852e2009-09-05 21:47:34 +000025026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027 test "$ac_cv_c_inline" != no && break
25028done
25029
25030fi
cristy8b350f62009-11-15 23:12:43 +000025031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000025032$as_echo "$ac_cv_c_inline" >&6; }
25033
cristy3ed852e2009-09-05 21:47:34 +000025034case $ac_cv_c_inline in
25035 inline | yes) ;;
25036 *)
25037 case $ac_cv_c_inline in
25038 no) ac_val=;;
25039 *) ac_val=$ac_cv_c_inline;;
25040 esac
25041 cat >>confdefs.h <<_ACEOF
25042#ifndef __cplusplus
25043#define inline $ac_val
25044#endif
25045_ACEOF
25046 ;;
25047esac
25048
cristy8b350f62009-11-15 23:12:43 +000025049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000025050$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025051if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025052 $as_echo_n "(cached) " >&6
25053else
25054 ac_cv_c_restrict=no
25055 # The order here caters to the fact that C++ does not require restrict.
25056 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000025057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025058/* end confdefs.h. */
25059typedef int * int_ptr;
25060 int foo (int_ptr $ac_kw ip) {
25061 return ip[0];
25062 }
25063int
25064main ()
25065{
25066int s[1];
25067 int * $ac_kw t = s;
25068 t[0] = 0;
25069 return foo(t)
25070 ;
25071 return 0;
25072}
25073_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025074if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000025076fi
cristy3ed852e2009-09-05 21:47:34 +000025077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25078 test "$ac_cv_c_restrict" != no && break
25079 done
25080
25081fi
cristy8b350f62009-11-15 23:12:43 +000025082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000025083$as_echo "$ac_cv_c_restrict" >&6; }
25084
cristy3ed852e2009-09-05 21:47:34 +000025085 case $ac_cv_c_restrict in
25086 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000025087 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025088 ;;
25089 *) cat >>confdefs.h <<_ACEOF
25090#define restrict $ac_cv_c_restrict
25091_ACEOF
25092 ;;
25093 esac
25094
cristye80f9cb2013-01-09 01:09:31 +000025095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
25096$as_echo_n "checking for working volatile... " >&6; }
25097if ${ac_cv_c_volatile+:} false; then :
25098 $as_echo_n "(cached) " >&6
25099else
25100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101/* end confdefs.h. */
25102
25103int
25104main ()
25105{
25106
25107volatile int x;
25108int * volatile y = (int *) 0;
25109return !x && !y;
25110 ;
25111 return 0;
25112}
25113_ACEOF
25114if ac_fn_c_try_compile "$LINENO"; then :
25115 ac_cv_c_volatile=yes
25116else
25117 ac_cv_c_volatile=no
25118fi
25119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120fi
25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
25122$as_echo "$ac_cv_c_volatile" >&6; }
25123if test $ac_cv_c_volatile = no; then
25124
25125$as_echo "#define volatile /**/" >>confdefs.h
25126
25127fi
25128
cristy3ed852e2009-09-05 21:47:34 +000025129
25130# If words are stored with the most significant byte first (like
25131# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000025132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000025133$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025134if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025135 $as_echo_n "(cached) " >&6
25136else
25137 ac_cv_c_bigendian=unknown
25138 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000025139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025140/* end confdefs.h. */
25141#ifndef __APPLE_CC__
25142 not a universal capable compiler
25143 #endif
25144 typedef int dummy;
25145
25146_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025147if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025148
25149 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000025150 # there are at least two -arch flags with different values.
25151 ac_arch=
25152 ac_prev=
25153 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25154 if test -n "$ac_prev"; then
25155 case $ac_word in
25156 i?86 | x86_64 | ppc | ppc64)
25157 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25158 ac_arch=$ac_word
25159 else
25160 ac_cv_c_bigendian=universal
25161 break
25162 fi
25163 ;;
25164 esac
25165 ac_prev=
25166 elif test "x$ac_word" = "x-arch"; then
25167 ac_prev=arch
25168 fi
25169 done
cristy3ed852e2009-09-05 21:47:34 +000025170fi
cristy3ed852e2009-09-05 21:47:34 +000025171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 if test $ac_cv_c_bigendian = unknown; then
25173 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000025174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025175/* end confdefs.h. */
25176#include <sys/types.h>
25177 #include <sys/param.h>
25178
25179int
25180main ()
25181{
25182#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25183 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25184 && LITTLE_ENDIAN)
25185 bogus endian macros
25186 #endif
25187
25188 ;
25189 return 0;
25190}
25191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025192if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025193 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000025194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025195/* end confdefs.h. */
25196#include <sys/types.h>
25197 #include <sys/param.h>
25198
25199int
25200main ()
25201{
25202#if BYTE_ORDER != BIG_ENDIAN
25203 not big endian
25204 #endif
25205
25206 ;
25207 return 0;
25208}
25209_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025210if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025211 ac_cv_c_bigendian=yes
25212else
cristy8b350f62009-11-15 23:12:43 +000025213 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000025214fi
cristy3ed852e2009-09-05 21:47:34 +000025215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025216fi
cristy3ed852e2009-09-05 21:47:34 +000025217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25218 fi
25219 if test $ac_cv_c_bigendian = unknown; then
25220 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000025221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025222/* end confdefs.h. */
25223#include <limits.h>
25224
25225int
25226main ()
25227{
25228#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25229 bogus endian macros
25230 #endif
25231
25232 ;
25233 return 0;
25234}
25235_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025236if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025237 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000025238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025239/* end confdefs.h. */
25240#include <limits.h>
25241
25242int
25243main ()
25244{
25245#ifndef _BIG_ENDIAN
25246 not big endian
25247 #endif
25248
25249 ;
25250 return 0;
25251}
25252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025253if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025254 ac_cv_c_bigendian=yes
25255else
cristy8b350f62009-11-15 23:12:43 +000025256 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000025257fi
cristy3ed852e2009-09-05 21:47:34 +000025258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025259fi
cristy3ed852e2009-09-05 21:47:34 +000025260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261 fi
25262 if test $ac_cv_c_bigendian = unknown; then
25263 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000025264 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025265 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000025266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025267/* end confdefs.h. */
25268short int ascii_mm[] =
25269 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25270 short int ascii_ii[] =
25271 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25272 int use_ascii (int i) {
25273 return ascii_mm[i] + ascii_ii[i];
25274 }
25275 short int ebcdic_ii[] =
25276 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25277 short int ebcdic_mm[] =
25278 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25279 int use_ebcdic (int i) {
25280 return ebcdic_mm[i] + ebcdic_ii[i];
25281 }
25282 extern int foo;
25283
25284int
25285main ()
25286{
25287return use_ascii (foo) == use_ebcdic (foo);
25288 ;
25289 return 0;
25290}
25291_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025292if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025293 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25294 ac_cv_c_bigendian=yes
25295 fi
25296 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25297 if test "$ac_cv_c_bigendian" = unknown; then
25298 ac_cv_c_bigendian=no
25299 else
25300 # finding both strings is unlikely to happen, but who knows?
25301 ac_cv_c_bigendian=unknown
25302 fi
25303 fi
cristy3ed852e2009-09-05 21:47:34 +000025304fi
cristy3ed852e2009-09-05 21:47:34 +000025305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25306else
cristy8b350f62009-11-15 23:12:43 +000025307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025308/* end confdefs.h. */
25309$ac_includes_default
25310int
25311main ()
25312{
25313
25314 /* Are we little or big endian? From Harbison&Steele. */
25315 union
25316 {
25317 long int l;
25318 char c[sizeof (long int)];
25319 } u;
25320 u.l = 1;
25321 return u.c[sizeof (long int) - 1] == 1;
25322
25323 ;
25324 return 0;
25325}
25326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025327if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 ac_cv_c_bigendian=no
25329else
cristy8b350f62009-11-15 23:12:43 +000025330 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000025331fi
cristy8b350f62009-11-15 23:12:43 +000025332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25333 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025334fi
25335
cristy3ed852e2009-09-05 21:47:34 +000025336 fi
25337fi
cristy8b350f62009-11-15 23:12:43 +000025338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000025339$as_echo "$ac_cv_c_bigendian" >&6; }
25340 case $ac_cv_c_bigendian in #(
25341 yes)
cristy8b350f62009-11-15 23:12:43 +000025342 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025343;; #(
25344 no)
25345 ;; #(
25346 universal)
25347
cristy8b350f62009-11-15 23:12:43 +000025348$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025349
25350 ;; #(
25351 *)
cristy98dddb52010-11-04 00:30:15 +000025352 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000025353 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000025354 esac
25355
25356
cristy501c8042011-05-26 17:46:28 +000025357# Define to a suitable type, if standard headers do not define it.
25358ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
25359case $ac_cv_c_int8_t in #(
25360 no|yes) ;; #(
25361 *)
cristy3ed852e2009-09-05 21:47:34 +000025362
25363cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000025364#define int8_t $ac_cv_c_int8_t
25365_ACEOF
25366;;
25367esac
25368
25369ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
25370case $ac_cv_c_int16_t in #(
25371 no|yes) ;; #(
25372 *)
25373
25374cat >>confdefs.h <<_ACEOF
25375#define int16_t $ac_cv_c_int16_t
25376_ACEOF
25377;;
25378esac
25379
25380ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
25381case $ac_cv_c_int32_t in #(
25382 no|yes) ;; #(
25383 *)
25384
25385cat >>confdefs.h <<_ACEOF
25386#define int32_t $ac_cv_c_int32_t
25387_ACEOF
25388;;
25389esac
25390
25391ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
25392case $ac_cv_c_int64_t in #(
25393 no|yes) ;; #(
25394 *)
25395
25396cat >>confdefs.h <<_ACEOF
25397#define int64_t $ac_cv_c_int64_t
25398_ACEOF
25399;;
25400esac
25401
25402
cristy045228a2013-06-23 11:00:16 +000025403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
25404$as_echo_n "checking for unsigned long long int... " >&6; }
25405if ${ac_cv_type_unsigned_long_long_int+:} false; then :
cristy501c8042011-05-26 17:46:28 +000025406 $as_echo_n "(cached) " >&6
25407else
cristy045228a2013-06-23 11:00:16 +000025408 ac_cv_type_unsigned_long_long_int=yes
25409 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000025411/* end confdefs.h. */
25412
25413 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000025414 implementations with broken preprocessors. Perhaps this can
25415 be revisited in 2012. In the meantime, code should not expect
25416 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000025417 /* Test literals. */
25418 long long int ll = 9223372036854775807ll;
25419 long long int nll = -9223372036854775807LL;
25420 unsigned long long int ull = 18446744073709551615ULL;
25421 /* Test constant expressions. */
25422 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000025423 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000025424 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000025425 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000025426 int i = 63;
25427int
25428main ()
25429{
25430/* Test availability of runtime routines for shift and division. */
25431 long long int llmax = 9223372036854775807ll;
25432 unsigned long long int ullmax = 18446744073709551615ull;
25433 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000025434 | (llmax / ll) | (llmax % ll)
25435 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
25436 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000025437 ;
25438 return 0;
25439}
25440
25441_ACEOF
25442if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000025443
25444else
25445 ac_cv_type_unsigned_long_long_int=no
25446fi
25447rm -f core conftest.err conftest.$ac_objext \
25448 conftest$ac_exeext conftest.$ac_ext
25449 fi
25450fi
25451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
25452$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
25453 if test $ac_cv_type_unsigned_long_long_int = yes; then
25454
25455$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
25456
25457 fi
25458
25459
25460
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
25462$as_echo_n "checking for long long int... " >&6; }
25463if ${ac_cv_type_long_long_int+:} false; then :
25464 $as_echo_n "(cached) " >&6
25465else
cristy501c8042011-05-26 17:46:28 +000025466 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000025467 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000025468 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
25469 if test $ac_cv_type_long_long_int = yes; then
25470 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000025471 :
cristy501c8042011-05-26 17:46:28 +000025472else
25473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h. */
25475#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000025476 #ifndef LLONG_MAX
25477 # define HALF \
25478 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
25479 # define LLONG_MAX (HALF - 1 + HALF)
25480 #endif
cristy501c8042011-05-26 17:46:28 +000025481int
25482main ()
25483{
25484long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000025485 int i;
25486 for (i = 0; ; i++)
25487 {
25488 long long int m = n << i;
25489 if (m >> i != n)
25490 return 1;
25491 if (LLONG_MAX / 2 < m)
25492 break;
25493 }
25494 return 0;
cristy501c8042011-05-26 17:46:28 +000025495 ;
25496 return 0;
25497}
25498_ACEOF
25499if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000025500
cristy501c8042011-05-26 17:46:28 +000025501else
25502 ac_cv_type_long_long_int=no
25503fi
25504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25505 conftest.$ac_objext conftest.beam conftest.$ac_ext
25506fi
25507
cristy5ed9c6e2013-07-14 21:20:31 +000025508 fi
cristy045228a2013-06-23 11:00:16 +000025509 fi
cristy501c8042011-05-26 17:46:28 +000025510fi
25511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
25512$as_echo "$ac_cv_type_long_long_int" >&6; }
25513 if test $ac_cv_type_long_long_int = yes; then
25514
25515$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
25516
25517 fi
25518
25519
25520
25521 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
25522if test "x$ac_cv_type_intmax_t" = xyes; then :
25523
25524$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
25525
25526else
25527 test $ac_cv_type_long_long_int = yes \
25528 && ac_type='long long int' \
25529 || ac_type='long int'
25530
25531cat >>confdefs.h <<_ACEOF
25532#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000025533_ACEOF
25534
25535fi
25536
25537
cristy501c8042011-05-26 17:46:28 +000025538
25539 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25540if test "x$ac_cv_type_intptr_t" = xyes; then :
25541
25542$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025543
cristy3ed852e2009-09-05 21:47:34 +000025544else
cristy501c8042011-05-26 17:46:28 +000025545 for ac_type in 'int' 'long int' 'long long int'; do
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547/* end confdefs.h. */
25548$ac_includes_default
25549int
25550main ()
25551{
25552static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000025553test_array [0] = 0;
25554return test_array [0];
cristy501c8042011-05-26 17:46:28 +000025555
25556 ;
25557 return 0;
25558}
25559_ACEOF
25560if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025561
25562cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000025563#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000025564_ACEOF
25565
cristy501c8042011-05-26 17:46:28 +000025566 ac_type=
25567fi
25568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25569 test -z "$ac_type" && break
25570 done
cristy3ed852e2009-09-05 21:47:34 +000025571fi
25572
25573
cristy3ed852e2009-09-05 21:47:34 +000025574
cristy501c8042011-05-26 17:46:28 +000025575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
25576$as_echo_n "checking for long double... " >&6; }
25577if ${ac_cv_type_long_double+:} false; then :
25578 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000025579else
cristy501c8042011-05-26 17:46:28 +000025580 if test "$GCC" = yes; then
25581 ac_cv_type_long_double=yes
25582 else
25583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584/* end confdefs.h. */
25585/* The Stardent Vistra knows sizeof (long double), but does
25586 not support it. */
25587 long double foo = 0.0L;
25588int
25589main ()
25590{
25591static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
25592 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000025593test_array [0] = 0;
25594return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000025595
cristy501c8042011-05-26 17:46:28 +000025596 ;
25597 return 0;
25598}
cristy3ed852e2009-09-05 21:47:34 +000025599_ACEOF
cristy501c8042011-05-26 17:46:28 +000025600if ac_fn_c_try_compile "$LINENO"; then :
25601 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000025602else
cristy501c8042011-05-26 17:46:28 +000025603 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000025604fi
cristy501c8042011-05-26 17:46:28 +000025605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606 fi
cristy3ed852e2009-09-05 21:47:34 +000025607fi
cristy501c8042011-05-26 17:46:28 +000025608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
25609$as_echo "$ac_cv_type_long_double" >&6; }
25610 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000025611
cristy501c8042011-05-26 17:46:28 +000025612$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025613
cristy501c8042011-05-26 17:46:28 +000025614 fi
25615
cristy3ed852e2009-09-05 21:47:34 +000025616
cristy8b350f62009-11-15 23:12:43 +000025617 { $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 +000025618$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025619if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025620 $as_echo_n "(cached) " >&6
25621else
cristy8b350f62009-11-15 23:12:43 +000025622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025623/* end confdefs.h. */
25624#include <float.h>
25625 long double const a[] =
25626 {
25627 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
25628 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
25629 };
25630 long double
25631 f (long double x)
25632 {
25633 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
25634 + (x ? f (x) : 'c'));
25635 }
25636
25637int
25638main ()
25639{
25640static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
25641 + (DBL_MANT_DIG < LDBL_MANT_DIG)
25642 - (LDBL_MAX_EXP < DBL_MAX_EXP)
25643 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
25644 && (int) LDBL_EPSILON == 0
25645 )];
cristy14fefe52012-05-21 00:59:18 +000025646test_array [0] = 0;
25647return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000025648
25649 ;
25650 return 0;
25651}
25652_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025653if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025654 ac_cv_type_long_double_wider=yes
25655else
cristy8b350f62009-11-15 23:12:43 +000025656 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000025657fi
cristy3ed852e2009-09-05 21:47:34 +000025658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659fi
cristy8b350f62009-11-15 23:12:43 +000025660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000025661$as_echo "$ac_cv_type_long_double_wider" >&6; }
25662 if test $ac_cv_type_long_double_wider = yes; then
25663
cristy8b350f62009-11-15 23:12:43 +000025664$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025665
25666 fi
25667
25668
cristy045228a2013-06-23 11:00:16 +000025669
cristy501c8042011-05-26 17:46:28 +000025670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
25671$as_echo_n "checking for long long int... " >&6; }
25672if ${ac_cv_type_long_long_int+:} false; then :
25673 $as_echo_n "(cached) " >&6
25674else
cristy501c8042011-05-26 17:46:28 +000025675 ac_cv_type_long_long_int=yes
cristy045228a2013-06-23 11:00:16 +000025676 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
cristy5ed9c6e2013-07-14 21:20:31 +000025677 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
25678 if test $ac_cv_type_long_long_int = yes; then
25679 if test "$cross_compiling" = yes; then :
cristy045228a2013-06-23 11:00:16 +000025680 :
cristy501c8042011-05-26 17:46:28 +000025681else
25682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683/* end confdefs.h. */
25684#include <limits.h>
cristy5ed9c6e2013-07-14 21:20:31 +000025685 #ifndef LLONG_MAX
25686 # define HALF \
25687 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
25688 # define LLONG_MAX (HALF - 1 + HALF)
25689 #endif
cristy501c8042011-05-26 17:46:28 +000025690int
25691main ()
25692{
25693long long int n = 1;
cristy5ed9c6e2013-07-14 21:20:31 +000025694 int i;
25695 for (i = 0; ; i++)
25696 {
25697 long long int m = n << i;
25698 if (m >> i != n)
25699 return 1;
25700 if (LLONG_MAX / 2 < m)
25701 break;
25702 }
25703 return 0;
cristy501c8042011-05-26 17:46:28 +000025704 ;
25705 return 0;
25706}
25707_ACEOF
25708if ac_fn_c_try_run "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000025709
cristy501c8042011-05-26 17:46:28 +000025710else
25711 ac_cv_type_long_long_int=no
25712fi
25713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25714 conftest.$ac_objext conftest.beam conftest.$ac_ext
25715fi
25716
cristy5ed9c6e2013-07-14 21:20:31 +000025717 fi
cristy045228a2013-06-23 11:00:16 +000025718 fi
cristy501c8042011-05-26 17:46:28 +000025719fi
25720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
25721$as_echo "$ac_cv_type_long_long_int" >&6; }
25722 if test $ac_cv_type_long_long_int = yes; then
25723
25724$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
25725
25726 fi
25727
25728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
25729$as_echo_n "checking for mbstate_t... " >&6; }
25730if ${ac_cv_type_mbstate_t+:} false; then :
25731 $as_echo_n "(cached) " >&6
25732else
25733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25734/* end confdefs.h. */
25735$ac_includes_default
25736# include <wchar.h>
25737int
25738main ()
25739{
25740mbstate_t x; return sizeof x;
25741 ;
25742 return 0;
25743}
25744_ACEOF
25745if ac_fn_c_try_compile "$LINENO"; then :
25746 ac_cv_type_mbstate_t=yes
25747else
25748 ac_cv_type_mbstate_t=no
25749fi
25750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751fi
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
25753$as_echo "$ac_cv_type_mbstate_t" >&6; }
25754 if test $ac_cv_type_mbstate_t = yes; then
25755
25756$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
25757
25758 else
25759
25760$as_echo "#define mbstate_t int" >>confdefs.h
25761
25762 fi
25763ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25764if test "x$ac_cv_type_mode_t" = xyes; then :
25765
25766else
25767
25768cat >>confdefs.h <<_ACEOF
25769#define mode_t int
25770_ACEOF
25771
25772fi
25773
25774ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25775if test "x$ac_cv_type_off_t" = xyes; then :
25776
25777else
25778
25779cat >>confdefs.h <<_ACEOF
25780#define off_t long int
25781_ACEOF
25782
25783fi
25784
25785ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25786if test "x$ac_cv_type_pid_t" = xyes; then :
25787
25788else
25789
25790cat >>confdefs.h <<_ACEOF
25791#define pid_t int
25792_ACEOF
25793
25794fi
25795
25796ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25797if test "x$ac_cv_type_size_t" = xyes; then :
25798
25799else
25800
25801cat >>confdefs.h <<_ACEOF
25802#define size_t unsigned int
25803_ACEOF
25804
25805fi
25806
25807ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
25808if test "x$ac_cv_type_ssize_t" = xyes; then :
25809
25810else
25811
25812cat >>confdefs.h <<_ACEOF
25813#define ssize_t int
25814_ACEOF
25815
25816fi
25817
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
25819$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
25820if ${ac_cv_type_uid_t+:} false; then :
25821 $as_echo_n "(cached) " >&6
25822else
25823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824/* end confdefs.h. */
25825#include <sys/types.h>
25826
25827_ACEOF
25828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25829 $EGREP "uid_t" >/dev/null 2>&1; then :
25830 ac_cv_type_uid_t=yes
25831else
25832 ac_cv_type_uid_t=no
25833fi
25834rm -f conftest*
25835
25836fi
25837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
25838$as_echo "$ac_cv_type_uid_t" >&6; }
25839if test $ac_cv_type_uid_t = no; then
25840
25841$as_echo "#define uid_t int" >>confdefs.h
25842
25843
25844$as_echo "#define gid_t int" >>confdefs.h
25845
25846fi
25847
25848ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
25849case $ac_cv_c_uint8_t in #(
25850 no|yes) ;; #(
25851 *)
25852
25853$as_echo "#define _UINT8_T 1" >>confdefs.h
25854
25855
25856cat >>confdefs.h <<_ACEOF
25857#define uint8_t $ac_cv_c_uint8_t
25858_ACEOF
25859;;
25860 esac
25861
25862ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
25863case $ac_cv_c_uint16_t in #(
25864 no|yes) ;; #(
25865 *)
25866
25867
25868cat >>confdefs.h <<_ACEOF
25869#define uint16_t $ac_cv_c_uint16_t
25870_ACEOF
25871;;
25872 esac
25873
25874ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
25875case $ac_cv_c_uint32_t in #(
25876 no|yes) ;; #(
25877 *)
25878
25879$as_echo "#define _UINT32_T 1" >>confdefs.h
25880
25881
25882cat >>confdefs.h <<_ACEOF
25883#define uint32_t $ac_cv_c_uint32_t
25884_ACEOF
25885;;
25886 esac
25887
25888ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
25889case $ac_cv_c_uint64_t in #(
25890 no|yes) ;; #(
25891 *)
25892
25893$as_echo "#define _UINT64_T 1" >>confdefs.h
25894
25895
25896cat >>confdefs.h <<_ACEOF
25897#define uint64_t $ac_cv_c_uint64_t
25898_ACEOF
25899;;
25900 esac
25901
25902
cristy501c8042011-05-26 17:46:28 +000025903
25904 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
25905if test "x$ac_cv_type_uintmax_t" = xyes; then :
25906
25907$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
25908
25909else
25910 test $ac_cv_type_unsigned_long_long_int = yes \
25911 && ac_type='unsigned long long int' \
25912 || ac_type='unsigned long int'
25913
25914cat >>confdefs.h <<_ACEOF
25915#define uintmax_t $ac_type
25916_ACEOF
25917
25918fi
25919
25920
25921
25922 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
25923if test "x$ac_cv_type_uintptr_t" = xyes; then :
25924
25925$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
25926
25927else
25928 for ac_type in 'unsigned int' 'unsigned long int' \
25929 'unsigned long long int'; do
25930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25931/* end confdefs.h. */
25932$ac_includes_default
25933int
25934main ()
25935{
25936static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000025937test_array [0] = 0;
25938return test_array [0];
cristy501c8042011-05-26 17:46:28 +000025939
25940 ;
25941 return 0;
25942}
25943_ACEOF
25944if ac_fn_c_try_compile "$LINENO"; then :
25945
25946cat >>confdefs.h <<_ACEOF
25947#define uintptr_t $ac_type
25948_ACEOF
25949
25950 ac_type=
25951fi
25952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25953 test -z "$ac_type" && break
25954 done
25955fi
25956
25957
25958
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
25960$as_echo_n "checking for unsigned long long int... " >&6; }
25961if ${ac_cv_type_unsigned_long_long_int+:} false; then :
25962 $as_echo_n "(cached) " >&6
25963else
cristy045228a2013-06-23 11:00:16 +000025964 ac_cv_type_unsigned_long_long_int=yes
25965 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy501c8042011-05-26 17:46:28 +000025967/* end confdefs.h. */
25968
25969 /* For now, do not test the preprocessor; as of 2007 there are too many
cristy5ed9c6e2013-07-14 21:20:31 +000025970 implementations with broken preprocessors. Perhaps this can
25971 be revisited in 2012. In the meantime, code should not expect
25972 #if to work with literals wider than 32 bits. */
cristy501c8042011-05-26 17:46:28 +000025973 /* Test literals. */
25974 long long int ll = 9223372036854775807ll;
25975 long long int nll = -9223372036854775807LL;
25976 unsigned long long int ull = 18446744073709551615ULL;
25977 /* Test constant expressions. */
25978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
cristy5ed9c6e2013-07-14 21:20:31 +000025979 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000025980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
cristy5ed9c6e2013-07-14 21:20:31 +000025981 ? 1 : -1)];
cristy501c8042011-05-26 17:46:28 +000025982 int i = 63;
25983int
25984main ()
25985{
25986/* Test availability of runtime routines for shift and division. */
25987 long long int llmax = 9223372036854775807ll;
25988 unsigned long long int ullmax = 18446744073709551615ull;
25989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
cristy5ed9c6e2013-07-14 21:20:31 +000025990 | (llmax / ll) | (llmax % ll)
25991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
25992 | (ullmax / ull) | (ullmax % ull));
cristy501c8042011-05-26 17:46:28 +000025993 ;
25994 return 0;
25995}
25996
25997_ACEOF
25998if ac_fn_c_try_link "$LINENO"; then :
cristy045228a2013-06-23 11:00:16 +000025999
cristy501c8042011-05-26 17:46:28 +000026000else
26001 ac_cv_type_unsigned_long_long_int=no
26002fi
26003rm -f core conftest.err conftest.$ac_objext \
26004 conftest$ac_exeext conftest.$ac_ext
cristy045228a2013-06-23 11:00:16 +000026005 fi
cristy501c8042011-05-26 17:46:28 +000026006fi
26007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
26008$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
26009 if test $ac_cv_type_unsigned_long_long_int = yes; then
26010
26011$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
26012
26013 fi
26014
26015
cristy708922a2015-05-17 02:33:56 +000026016ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
26017"
cristy98beafc2015-05-14 19:55:55 +000026018if test "x$ac_cv_type_locale_t" = xyes; then :
26019
26020cat >>confdefs.h <<_ACEOF
26021#define HAVE_LOCALE_T 1
26022_ACEOF
26023
26024
26025fi
26026
26027
cristyfec31822013-05-23 12:32:12 +000026028# Float_t and double_t are intended to be the the most efficient type.
26029ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
26030"
26031if test "x$ac_cv_type_float_t" = xyes; then :
26032
26033cat >>confdefs.h <<_ACEOF
26034#define HAVE_FLOAT_T 1
26035_ACEOF
26036
26037
26038fi
26039
26040ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
26041"
26042if test "x$ac_cv_type_double_t" = xyes; then :
26043
26044cat >>confdefs.h <<_ACEOF
26045#define HAVE_DOUBLE_T 1
26046_ACEOF
26047
26048
26049fi
26050
26051# The cast to long int works around a bug in the HP C Compiler
26052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26054# This bug is HP SR number 8606223364.
26055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
26056$as_echo_n "checking size of float_t... " >&6; }
26057if ${ac_cv_sizeof_float_t+:} false; then :
26058 $as_echo_n "(cached) " >&6
26059else
26060 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
26061"; then :
26062
26063else
26064 if test "$ac_cv_type_float_t" = yes; then
26065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26067as_fn_error 77 "cannot compute sizeof (float_t)
26068See \`config.log' for more details" "$LINENO" 5; }
26069 else
26070 ac_cv_sizeof_float_t=0
26071 fi
26072fi
26073
26074fi
26075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
26076$as_echo "$ac_cv_sizeof_float_t" >&6; }
26077
26078
26079
26080cat >>confdefs.h <<_ACEOF
26081#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
26082_ACEOF
26083
26084
26085# The cast to long int works around a bug in the HP C Compiler
26086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26088# This bug is HP SR number 8606223364.
26089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
26090$as_echo_n "checking size of double_t... " >&6; }
26091if ${ac_cv_sizeof_double_t+:} false; then :
26092 $as_echo_n "(cached) " >&6
26093else
26094 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
26095"; then :
26096
26097else
26098 if test "$ac_cv_type_double_t" = yes; then
26099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26101as_fn_error 77 "cannot compute sizeof (double_t)
26102See \`config.log' for more details" "$LINENO" 5; }
26103 else
26104 ac_cv_sizeof_double_t=0
26105 fi
26106fi
26107
26108fi
26109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
26110$as_echo "$ac_cv_sizeof_double_t" >&6; }
26111
26112
26113
26114cat >>confdefs.h <<_ACEOF
26115#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
26116_ACEOF
26117
26118
26119
cristy9b86f202012-11-28 21:55:35 +000026120# Get size of float, double and long double for comparaison.
26121# The cast to long int works around a bug in the HP C Compiler
26122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26124# This bug is HP SR number 8606223364.
26125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
26126$as_echo_n "checking size of float... " >&6; }
26127if ${ac_cv_sizeof_float+:} false; then :
26128 $as_echo_n "(cached) " >&6
26129else
26130 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
26131
26132else
26133 if test "$ac_cv_type_float" = yes; then
26134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26136as_fn_error 77 "cannot compute sizeof (float)
26137See \`config.log' for more details" "$LINENO" 5; }
26138 else
26139 ac_cv_sizeof_float=0
26140 fi
26141fi
26142
26143fi
26144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
26145$as_echo "$ac_cv_sizeof_float" >&6; }
26146
26147
26148
26149cat >>confdefs.h <<_ACEOF
26150#define SIZEOF_FLOAT $ac_cv_sizeof_float
26151_ACEOF
26152
26153
26154# The cast to long int works around a bug in the HP C Compiler
26155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26157# This bug is HP SR number 8606223364.
26158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
26159$as_echo_n "checking size of double... " >&6; }
26160if ${ac_cv_sizeof_double+:} false; then :
26161 $as_echo_n "(cached) " >&6
26162else
26163 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
26164
26165else
26166 if test "$ac_cv_type_double" = yes; then
26167 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26169as_fn_error 77 "cannot compute sizeof (double)
26170See \`config.log' for more details" "$LINENO" 5; }
26171 else
26172 ac_cv_sizeof_double=0
26173 fi
26174fi
26175
26176fi
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
26178$as_echo "$ac_cv_sizeof_double" >&6; }
26179
26180
26181
26182cat >>confdefs.h <<_ACEOF
26183#define SIZEOF_DOUBLE $ac_cv_sizeof_double
26184_ACEOF
26185
26186
cristy9e2b6242014-03-25 11:49:41 +000026187# The cast to long int works around a bug in the HP C Compiler
cristyfec31822013-05-23 12:32:12 +000026188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26190# This bug is HP SR number 8606223364.
26191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
26192$as_echo_n "checking size of long double... " >&6; }
26193if ${ac_cv_sizeof_long_double+:} false; then :
26194 $as_echo_n "(cached) " >&6
26195else
26196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
26197
26198else
26199 if test "$ac_cv_type_long_double" = yes; then
26200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26202as_fn_error 77 "cannot compute sizeof (long double)
26203See \`config.log' for more details" "$LINENO" 5; }
26204 else
26205 ac_cv_sizeof_long_double=0
26206 fi
26207fi
26208
26209fi
26210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
26211$as_echo "$ac_cv_sizeof_long_double" >&6; }
26212
26213
26214
26215cat >>confdefs.h <<_ACEOF
26216#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
26217_ACEOF
26218
26219
cristyf0cf9a22012-10-24 12:05:01 +000026220
cristy3ed852e2009-09-05 21:47:34 +000026221# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
26222# The cast to long int works around a bug in the HP C Compiler
26223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26225# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000026227$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026228if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026229 $as_echo_n "(cached) " >&6
26230else
cristy8b350f62009-11-15 23:12:43 +000026231 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 +000026232
cristy3ed852e2009-09-05 21:47:34 +000026233else
cristy8b350f62009-11-15 23:12:43 +000026234 if test "$ac_cv_type_signed_short" = yes; then
26235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026237as_fn_error 77 "cannot compute sizeof (signed short)
26238See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026239 else
26240 ac_cv_sizeof_signed_short=0
26241 fi
26242fi
cristy8b350f62009-11-15 23:12:43 +000026243
cristy3ed852e2009-09-05 21:47:34 +000026244fi
cristy8b350f62009-11-15 23:12:43 +000026245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000026246$as_echo "$ac_cv_sizeof_signed_short" >&6; }
26247
26248
26249
26250cat >>confdefs.h <<_ACEOF
26251#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
26252_ACEOF
26253
26254
26255
26256# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
26257# The cast to long int works around a bug in the HP C Compiler
26258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26260# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000026262$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026263if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026264 $as_echo_n "(cached) " >&6
26265else
cristy8b350f62009-11-15 23:12:43 +000026266 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 +000026267
cristy3ed852e2009-09-05 21:47:34 +000026268else
cristy8b350f62009-11-15 23:12:43 +000026269 if test "$ac_cv_type_unsigned_short" = yes; then
26270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026272as_fn_error 77 "cannot compute sizeof (unsigned short)
26273See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026274 else
26275 ac_cv_sizeof_unsigned_short=0
26276 fi
26277fi
cristy8b350f62009-11-15 23:12:43 +000026278
cristy3ed852e2009-09-05 21:47:34 +000026279fi
cristy8b350f62009-11-15 23:12:43 +000026280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000026281$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
26282
26283
26284
26285cat >>confdefs.h <<_ACEOF
26286#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
26287_ACEOF
26288
26289
26290
26291# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
26292# The cast to long int works around a bug in the HP C Compiler
26293# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26294# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26295# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000026297$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026298if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026299 $as_echo_n "(cached) " >&6
26300else
cristy8b350f62009-11-15 23:12:43 +000026301 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 +000026302
cristy3ed852e2009-09-05 21:47:34 +000026303else
cristy8b350f62009-11-15 23:12:43 +000026304 if test "$ac_cv_type_signed_int" = yes; then
26305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026307as_fn_error 77 "cannot compute sizeof (signed int)
26308See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026309 else
26310 ac_cv_sizeof_signed_int=0
26311 fi
26312fi
cristy8b350f62009-11-15 23:12:43 +000026313
cristy3ed852e2009-09-05 21:47:34 +000026314fi
cristy8b350f62009-11-15 23:12:43 +000026315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000026316$as_echo "$ac_cv_sizeof_signed_int" >&6; }
26317
26318
26319
26320cat >>confdefs.h <<_ACEOF
26321#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
26322_ACEOF
26323
26324
26325
26326# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
26327# The cast to long int works around a bug in the HP C Compiler
26328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26330# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000026332$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026333if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026334 $as_echo_n "(cached) " >&6
26335else
cristy8b350f62009-11-15 23:12:43 +000026336 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 +000026337
cristy3ed852e2009-09-05 21:47:34 +000026338else
cristy8b350f62009-11-15 23:12:43 +000026339 if test "$ac_cv_type_unsigned_int" = yes; then
26340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026342as_fn_error 77 "cannot compute sizeof (unsigned int)
26343See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026344 else
26345 ac_cv_sizeof_unsigned_int=0
26346 fi
26347fi
cristy8b350f62009-11-15 23:12:43 +000026348
cristy3ed852e2009-09-05 21:47:34 +000026349fi
cristy8b350f62009-11-15 23:12:43 +000026350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000026351$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
26352
26353
26354
26355cat >>confdefs.h <<_ACEOF
26356#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26357_ACEOF
26358
26359
26360
26361# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
26362# The cast to long int works around a bug in the HP C Compiler
26363# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26364# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26365# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026367$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026368if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026369 $as_echo_n "(cached) " >&6
26370else
cristy8b350f62009-11-15 23:12:43 +000026371 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 +000026372
cristy3ed852e2009-09-05 21:47:34 +000026373else
cristy8b350f62009-11-15 23:12:43 +000026374 if test "$ac_cv_type_signed_long" = yes; then
26375 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026377as_fn_error 77 "cannot compute sizeof (signed long)
26378See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026379 else
26380 ac_cv_sizeof_signed_long=0
26381 fi
26382fi
cristy8b350f62009-11-15 23:12:43 +000026383
cristy3ed852e2009-09-05 21:47:34 +000026384fi
cristy8b350f62009-11-15 23:12:43 +000026385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026386$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26387
26388
26389
26390cat >>confdefs.h <<_ACEOF
26391#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26392_ACEOF
26393
26394
26395
26396# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26397# The cast to long int works around a bug in the HP C Compiler
26398# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26399# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26400# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026402$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026403if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026404 $as_echo_n "(cached) " >&6
26405else
cristy8b350f62009-11-15 23:12:43 +000026406 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 +000026407
cristy3ed852e2009-09-05 21:47:34 +000026408else
cristy8b350f62009-11-15 23:12:43 +000026409 if test "$ac_cv_type_unsigned_long" = yes; then
26410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026412as_fn_error 77 "cannot compute sizeof (unsigned long)
26413See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026414 else
26415 ac_cv_sizeof_unsigned_long=0
26416 fi
26417fi
cristy8b350f62009-11-15 23:12:43 +000026418
cristy3ed852e2009-09-05 21:47:34 +000026419fi
cristy8b350f62009-11-15 23:12:43 +000026420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026421$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26422
26423
26424
26425cat >>confdefs.h <<_ACEOF
26426#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26427_ACEOF
26428
26429
26430
26431# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26432# 'signed long long' is not supported then the value defined is zero.
26433# The cast to long int works around a bug in the HP C Compiler
26434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26436# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026438$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026439if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026440 $as_echo_n "(cached) " >&6
26441else
cristy8b350f62009-11-15 23:12:43 +000026442 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 +000026443
cristy3ed852e2009-09-05 21:47:34 +000026444else
cristy8b350f62009-11-15 23:12:43 +000026445 if test "$ac_cv_type_signed_long_long" = yes; then
26446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026448as_fn_error 77 "cannot compute sizeof (signed long long)
26449See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026450 else
26451 ac_cv_sizeof_signed_long_long=0
26452 fi
26453fi
cristy8b350f62009-11-15 23:12:43 +000026454
cristy3ed852e2009-09-05 21:47:34 +000026455fi
cristy8b350f62009-11-15 23:12:43 +000026456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026457$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
26458
26459
26460
26461cat >>confdefs.h <<_ACEOF
26462#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
26463_ACEOF
26464
26465
26466
26467# Obtain size of a 'unsigned long long' and define as
26468# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
26469# supported then the value defined is zero.
26470# The cast to long int works around a bug in the HP C Compiler
26471# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26472# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26473# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026475$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026476if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026477 $as_echo_n "(cached) " >&6
26478else
cristy8b350f62009-11-15 23:12:43 +000026479 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 +000026480
cristy3ed852e2009-09-05 21:47:34 +000026481else
cristy8b350f62009-11-15 23:12:43 +000026482 if test "$ac_cv_type_unsigned_long_long" = yes; then
26483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026485as_fn_error 77 "cannot compute sizeof (unsigned long long)
26486See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026487 else
26488 ac_cv_sizeof_unsigned_long_long=0
26489 fi
26490fi
cristy8b350f62009-11-15 23:12:43 +000026491
cristy3ed852e2009-09-05 21:47:34 +000026492fi
cristy8b350f62009-11-15 23:12:43 +000026493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000026494$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
26495
26496
26497
26498cat >>confdefs.h <<_ACEOF
26499#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
26500_ACEOF
26501
26502
26503
cristyfec31822013-05-23 12:32:12 +000026504# Obtain size of off_t and define as SIZEOF_OFF_T
26505# The cast to long int works around a bug in the HP C Compiler
26506# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26507# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26508# This bug is HP SR number 8606223364.
26509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26510$as_echo_n "checking size of off_t... " >&6; }
26511if ${ac_cv_sizeof_off_t+:} false; then :
26512 $as_echo_n "(cached) " >&6
26513else
26514 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
26515
26516else
26517 if test "$ac_cv_type_off_t" = yes; then
26518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26520as_fn_error 77 "cannot compute sizeof (off_t)
26521See \`config.log' for more details" "$LINENO" 5; }
26522 else
26523 ac_cv_sizeof_off_t=0
26524 fi
26525fi
26526
26527fi
26528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26529$as_echo "$ac_cv_sizeof_off_t" >&6; }
26530
26531
26532
26533cat >>confdefs.h <<_ACEOF
26534#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26535_ACEOF
26536
26537
26538
26539# Obtain size of size_t and define as SIZEOF_SIZE_T
26540# The cast to long int works around a bug in the HP C Compiler
26541# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26542# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26543# This bug is HP SR number 8606223364.
26544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26545$as_echo_n "checking size of size_t... " >&6; }
26546if ${ac_cv_sizeof_size_t+:} false; then :
26547 $as_echo_n "(cached) " >&6
26548else
26549 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
26550
26551else
26552 if test "$ac_cv_type_size_t" = yes; then
26553 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26555as_fn_error 77 "cannot compute sizeof (size_t)
26556See \`config.log' for more details" "$LINENO" 5; }
26557 else
26558 ac_cv_sizeof_size_t=0
26559 fi
26560fi
26561
26562fi
26563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26564$as_echo "$ac_cv_sizeof_size_t" >&6; }
26565
26566
26567
26568cat >>confdefs.h <<_ACEOF
26569#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26570_ACEOF
26571
26572
26573
26574# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
26575# The cast to long int works around a bug in the HP C Compiler
26576# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26577# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26578# This bug is HP SR number 8606223364.
26579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
26580$as_echo_n "checking size of ssize_t... " >&6; }
26581if ${ac_cv_sizeof_ssize_t+:} false; then :
26582 $as_echo_n "(cached) " >&6
26583else
26584 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
26585
26586else
26587 if test "$ac_cv_type_ssize_t" = yes; then
26588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26590as_fn_error 77 "cannot compute sizeof (ssize_t)
26591See \`config.log' for more details" "$LINENO" 5; }
26592 else
26593 ac_cv_sizeof_ssize_t=0
26594 fi
26595fi
26596
26597fi
26598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
26599$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
26600
26601
26602
26603cat >>confdefs.h <<_ACEOF
26604#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
26605_ACEOF
26606
26607
26608
cristy3ed852e2009-09-05 21:47:34 +000026609# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
26610# The cast to long int works around a bug in the HP C Compiler
26611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26613# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000026614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000026615$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026616if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026617 $as_echo_n "(cached) " >&6
26618else
cristy8b350f62009-11-15 23:12:43 +000026619 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 +000026620
cristy3ed852e2009-09-05 21:47:34 +000026621else
cristy8b350f62009-11-15 23:12:43 +000026622 if test "$ac_cv_type_unsigned_intp" = yes; then
26623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000026624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000026625as_fn_error 77 "cannot compute sizeof (unsigned int*)
26626See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000026627 else
26628 ac_cv_sizeof_unsigned_intp=0
26629 fi
26630fi
cristy8b350f62009-11-15 23:12:43 +000026631
cristy3ed852e2009-09-05 21:47:34 +000026632fi
cristy8b350f62009-11-15 23:12:43 +000026633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026634$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
26635
26636
26637
26638cat >>confdefs.h <<_ACEOF
26639#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
26640_ACEOF
26641
26642
26643
26644#
26645# Compute sized types for current CPU and compiler options.
26646#
26647
cristy8b350f62009-11-15 23:12:43 +000026648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026649$as_echo_n "checking for signed 8-bit type... " >&6; }
26650INT8_T='signed char'
cristyad38abe2012-12-23 23:03:21 +000026651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
26652$as_echo "$INT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026653
26654
cristy8b350f62009-11-15 23:12:43 +000026655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026656$as_echo_n "checking for unsigned 8-bit type... " >&6; }
26657UINT8_T='unsigned char'
cristyad38abe2012-12-23 23:03:21 +000026658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
26659$as_echo "$UINT8_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026660
26661
cristy8b350f62009-11-15 23:12:43 +000026662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026663$as_echo_n "checking for signed 16-bit type... " >&6; }
26664INT16_T='signed short'
cristyad38abe2012-12-23 23:03:21 +000026665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
26666$as_echo "$INT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026667
26668
cristy8b350f62009-11-15 23:12:43 +000026669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026670$as_echo_n "checking for unsigned 16-bit type... " >&6; }
26671UINT16_T='unsigned short'
cristyad38abe2012-12-23 23:03:21 +000026672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
26673$as_echo "$UINT16_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026674
26675
cristy8b350f62009-11-15 23:12:43 +000026676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026677$as_echo_n "checking for signed 32-bit type... " >&6; }
26678INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000026679INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000026680if test $ac_cv_sizeof_signed_int -eq 4; then
26681 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000026682 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000026683elif test $ac_cv_sizeof_signed_long -eq 4; then
26684 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000026685 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000026686fi
cristyad38abe2012-12-23 23:03:21 +000026687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
26688$as_echo "$INT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026689
26690
cristy6d5e20f2011-04-25 13:48:54 +000026691
cristy8b350f62009-11-15 23:12:43 +000026692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026693$as_echo_n "checking for unsigned 32-bit type... " >&6; }
26694UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000026695UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000026696if test $ac_cv_sizeof_unsigned_int -eq 4; then
26697 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000026698 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000026699elif test $ac_cv_sizeof_unsigned_long -eq 4; then
26700 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000026701 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000026702fi
cristyad38abe2012-12-23 23:03:21 +000026703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
26704$as_echo "$UINT32_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026705
26706
cristy6d5e20f2011-04-25 13:48:54 +000026707
cristy8b350f62009-11-15 23:12:43 +000026708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026709$as_echo_n "checking for signed 64-bit type... " >&6; }
26710INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000026711INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000026712if test $ac_cv_sizeof_signed_long -eq 8; then
26713 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000026714 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000026715elif test $ac_cv_sizeof_signed_long_long -eq 8; then
26716 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000026717 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000026718fi
cristy3a99dcf2011-12-17 01:29:40 +000026719case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000026720 mingw* )
26721 INT64_F='"I64"'
26722 ;;
26723esac
cristyad38abe2012-12-23 23:03:21 +000026724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
26725$as_echo "$INT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026726
26727
cristy6d5e20f2011-04-25 13:48:54 +000026728
cristy8b350f62009-11-15 23:12:43 +000026729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026730$as_echo_n "checking for unsigned 64-bit type... " >&6; }
26731UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000026732UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000026733if test $ac_cv_sizeof_unsigned_long -eq 8; then
26734 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000026735 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000026736elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
26737 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000026738 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000026739fi
cristy3a99dcf2011-12-17 01:29:40 +000026740case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000026741 mingw* )
26742 UINT64_F='"I64"'
26743 ;;
26744esac
cristyad38abe2012-12-23 23:03:21 +000026745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
26746$as_echo "$UINT64_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026747
26748
cristy6d5e20f2011-04-25 13:48:54 +000026749
cristy8b350f62009-11-15 23:12:43 +000026750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026751$as_echo_n "checking for unsigned maximum type... " >&6; }
26752UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000026753UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000026754if test "$UINT64_T" != 'none'; then
26755 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000026756 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000026757elif test "$UINT32_T" != 'none'; then
26758 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000026759 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000026760fi
cristyad38abe2012-12-23 23:03:21 +000026761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
26762$as_echo "$UINTMAX_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026763
26764
cristy6d5e20f2011-04-25 13:48:54 +000026765
cristy8b350f62009-11-15 23:12:43 +000026766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000026767$as_echo_n "checking for pointer difference type... " >&6; }
26768UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000026769UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000026770if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
26771 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000026772 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000026773elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
26774 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000026775 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000026776fi
cristyad38abe2012-12-23 23:03:21 +000026777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
26778$as_echo "$UINTPTR_T" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026779
26780
cristy6d5e20f2011-04-25 13:48:54 +000026781
cristy8b350f62009-11-15 23:12:43 +000026782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000026783$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026785/* end confdefs.h. */
26786
26787int
26788main ()
26789{
26790{ const char *func = __func__; return(func != 0 ? 0 : 1); }
26791 ;
26792 return 0;
26793}
26794_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026795if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000026796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26797$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026798else
cristyad38abe2012-12-23 23:03:21 +000026799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26800$as_echo "no" >&6; }
cristy8b350f62009-11-15 23:12:43 +000026801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000026802$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000026803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026804/* end confdefs.h. */
26805
26806int
26807main ()
26808{
26809{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
26810 ;
26811 return 0;
26812}
26813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026814if ac_fn_c_try_compile "$LINENO"; then :
cristyad38abe2012-12-23 23:03:21 +000026815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26816$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026817
cristy8b350f62009-11-15 23:12:43 +000026818$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026819
26820else
cristyad38abe2012-12-23 23:03:21 +000026821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000026823
cristy8b350f62009-11-15 23:12:43 +000026824$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026825
26826fi
cristy3ed852e2009-09-05 21:47:34 +000026827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26828fi
cristy3ed852e2009-09-05 21:47:34 +000026829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26830
26831########
26832#
26833# Check for functions
26834#
26835########
cristy8b350f62009-11-15 23:12:43 +000026836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000026837$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026838if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026839 $as_echo_n "(cached) " >&6
26840else
cristy8b350f62009-11-15 23:12:43 +000026841 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026842 ac_cv_func_closedir_void=yes
26843else
cristy8b350f62009-11-15 23:12:43 +000026844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026845/* end confdefs.h. */
26846$ac_includes_default
26847#include <$ac_header_dirent>
26848#ifndef __cplusplus
26849int closedir ();
26850#endif
26851
26852int
26853main ()
26854{
26855return closedir (opendir (".")) != 0;
26856 ;
26857 return 0;
26858}
26859_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026860if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 ac_cv_func_closedir_void=no
26862else
cristy8b350f62009-11-15 23:12:43 +000026863 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000026864fi
cristy8b350f62009-11-15 23:12:43 +000026865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26866 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026867fi
26868
cristy3ed852e2009-09-05 21:47:34 +000026869fi
cristy8b350f62009-11-15 23:12:43 +000026870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo "$ac_cv_func_closedir_void" >&6; }
26872if test $ac_cv_func_closedir_void = yes; then
26873
cristy8b350f62009-11-15 23:12:43 +000026874$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026875
26876fi
26877
cristycd4c5312009-11-22 01:19:08 +000026878
26879
26880
26881 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000026882do :
26883 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000026884ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
26885"
cristy98dddb52010-11-04 00:30:15 +000026886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000026887 cat >>confdefs.h <<_ACEOF
26888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26889_ACEOF
26890
26891fi
26892
26893done
26894
cristycd4c5312009-11-22 01:19:08 +000026895
26896
26897
26898
26899
26900
26901
cristy3ed852e2009-09-05 21:47:34 +000026902for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000026903do :
26904 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000026905if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026906 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026907#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000026908_ACEOF
26909
26910fi
26911done
26912
cristy8b350f62009-11-15 23:12:43 +000026913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000026914$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026915if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026916 $as_echo_n "(cached) " >&6
26917else
cristy8b350f62009-11-15 23:12:43 +000026918 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000026919 ac_cv_func_mmap_fixed_mapped=no
26920else
cristy8b350f62009-11-15 23:12:43 +000026921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026922/* end confdefs.h. */
26923$ac_includes_default
26924/* malloc might have been renamed as rpl_malloc. */
26925#undef malloc
26926
26927/* Thanks to Mike Haertel and Jim Avera for this test.
26928 Here is a matrix of mmap possibilities:
26929 mmap private not fixed
26930 mmap private fixed at somewhere currently unmapped
26931 mmap private fixed at somewhere already mapped
26932 mmap shared not fixed
26933 mmap shared fixed at somewhere currently unmapped
26934 mmap shared fixed at somewhere already mapped
26935 For private mappings, we should verify that changes cannot be read()
26936 back from the file, nor mmap's back from the file at a different
26937 address. (There have been systems where private was not correctly
26938 implemented like the infamous i386 svr4.0, and systems where the
26939 VM page cache was not coherent with the file system buffer cache
26940 like early versions of FreeBSD and possibly contemporary NetBSD.)
26941 For shared mappings, we should conversely verify that changes get
26942 propagated back to all the places they're supposed to be.
26943
26944 Grep wants private fixed already mapped.
26945 The main things grep needs to know about mmap are:
26946 * does it exist and is it safe to write into the mmap'd area
26947 * how to use it (BSD variants) */
26948
26949#include <fcntl.h>
26950#include <sys/mman.h>
26951
26952#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
26953char *malloc ();
26954#endif
26955
26956/* This mess was copied from the GNU getpagesize.h. */
26957#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000026958# ifdef _SC_PAGESIZE
26959# define getpagesize() sysconf(_SC_PAGESIZE)
26960# else /* no _SC_PAGESIZE */
26961# ifdef HAVE_SYS_PARAM_H
26962# include <sys/param.h>
26963# ifdef EXEC_PAGESIZE
26964# define getpagesize() EXEC_PAGESIZE
26965# else /* no EXEC_PAGESIZE */
26966# ifdef NBPG
26967# define getpagesize() NBPG * CLSIZE
26968# ifndef CLSIZE
26969# define CLSIZE 1
26970# endif /* no CLSIZE */
26971# else /* no NBPG */
26972# ifdef NBPC
26973# define getpagesize() NBPC
26974# else /* no NBPC */
26975# ifdef PAGESIZE
26976# define getpagesize() PAGESIZE
26977# endif /* PAGESIZE */
26978# endif /* no NBPC */
26979# endif /* no NBPG */
26980# endif /* no EXEC_PAGESIZE */
26981# else /* no HAVE_SYS_PARAM_H */
26982# define getpagesize() 8192 /* punt totally */
26983# endif /* no HAVE_SYS_PARAM_H */
26984# endif /* no _SC_PAGESIZE */
26985
26986#endif /* no HAVE_GETPAGESIZE */
26987
26988int
26989main ()
26990{
26991 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000026992 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000026993 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000026994 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000026995
26996 pagesize = getpagesize ();
26997
26998 /* First, make a file with some known garbage in it. */
26999 data = (char *) malloc (pagesize);
27000 if (!data)
27001 return 1;
27002 for (i = 0; i < pagesize; ++i)
27003 *(data + i) = rand ();
27004 umask (0);
27005 fd = creat ("conftest.mmap", 0600);
27006 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000027007 return 2;
cristy3ed852e2009-09-05 21:47:34 +000027008 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000027009 return 3;
cristy3ed852e2009-09-05 21:47:34 +000027010 close (fd);
27011
cristycd4c5312009-11-22 01:19:08 +000027012 /* Next, check that the tail of a page is zero-filled. File must have
27013 non-zero length, otherwise we risk SIGBUS for entire page. */
27014 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
27015 if (fd2 < 0)
27016 return 4;
cristyc54f5d42009-11-27 21:36:31 +000027017 cdata2 = "";
27018 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000027019 return 5;
cristyc54f5d42009-11-27 21:36:31 +000027020 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000027021 if (data2 == MAP_FAILED)
27022 return 6;
27023 for (i = 0; i < pagesize; ++i)
27024 if (*(data2 + i))
27025 return 7;
27026 close (fd2);
27027 if (munmap (data2, pagesize))
27028 return 8;
27029
cristy3ed852e2009-09-05 21:47:34 +000027030 /* Next, try to mmap the file at a fixed address which already has
27031 something else allocated at it. If we can, also make sure that
27032 we see the same garbage. */
27033 fd = open ("conftest.mmap", O_RDWR);
27034 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000027035 return 9;
cristy3ed852e2009-09-05 21:47:34 +000027036 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27037 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000027038 return 10;
cristy3ed852e2009-09-05 21:47:34 +000027039 for (i = 0; i < pagesize; ++i)
27040 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000027041 return 11;
cristy3ed852e2009-09-05 21:47:34 +000027042
27043 /* Finally, make sure that changes to the mapped area do not
27044 percolate back to the file as seen by read(). (This is a bug on
27045 some variants of i386 svr4.0.) */
27046 for (i = 0; i < pagesize; ++i)
27047 *(data2 + i) = *(data2 + i) + 1;
27048 data3 = (char *) malloc (pagesize);
27049 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000027050 return 12;
cristy3ed852e2009-09-05 21:47:34 +000027051 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000027052 return 13;
cristy3ed852e2009-09-05 21:47:34 +000027053 for (i = 0; i < pagesize; ++i)
27054 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000027055 return 14;
cristy3ed852e2009-09-05 21:47:34 +000027056 close (fd);
27057 return 0;
27058}
27059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027060if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027061 ac_cv_func_mmap_fixed_mapped=yes
27062else
cristy8b350f62009-11-15 23:12:43 +000027063 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000027064fi
cristy8b350f62009-11-15 23:12:43 +000027065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27066 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027067fi
27068
cristy3ed852e2009-09-05 21:47:34 +000027069fi
cristy8b350f62009-11-15 23:12:43 +000027070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000027071$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
27072if test $ac_cv_func_mmap_fixed_mapped = yes; then
27073
cristy8b350f62009-11-15 23:12:43 +000027074$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027075
27076fi
cristycd4c5312009-11-22 01:19:08 +000027077rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000027078
cristy3ed852e2009-09-05 21:47:34 +000027079for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000027080do :
27081 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027082if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027083 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027084#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000027085_ACEOF
27086
27087fi
27088
27089done
27090
cristy3ed852e2009-09-05 21:47:34 +000027091for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000027092do :
27093 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27094ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000027095if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000027096 cat >>confdefs.h <<_ACEOF
27097#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27098_ACEOF
27099
27100fi
27101done
27102
27103if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000027105$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027106if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027107 $as_echo_n "(cached) " >&6
27108else
cristy8b350f62009-11-15 23:12:43 +000027109 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027110 ac_cv_func_fork_works=cross
27111else
cristy8b350f62009-11-15 23:12:43 +000027112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027113/* end confdefs.h. */
27114$ac_includes_default
27115int
27116main ()
27117{
27118
27119 /* By Ruediger Kuhlmann. */
27120 return fork () < 0;
27121
27122 ;
27123 return 0;
27124}
27125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027126if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027127 ac_cv_func_fork_works=yes
27128else
cristy8b350f62009-11-15 23:12:43 +000027129 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000027130fi
cristy8b350f62009-11-15 23:12:43 +000027131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27132 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027133fi
27134
cristy3ed852e2009-09-05 21:47:34 +000027135fi
cristy8b350f62009-11-15 23:12:43 +000027136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027137$as_echo "$ac_cv_func_fork_works" >&6; }
27138
27139else
27140 ac_cv_func_fork_works=$ac_cv_func_fork
27141fi
27142if test "x$ac_cv_func_fork_works" = xcross; then
27143 case $host in
27144 *-*-amigaos* | *-*-msdosdjgpp*)
27145 # Override, as these systems have only a dummy fork() stub
27146 ac_cv_func_fork_works=no
27147 ;;
27148 *)
27149 ac_cv_func_fork_works=yes
27150 ;;
27151 esac
cristy8b350f62009-11-15 23:12:43 +000027152 { $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 +000027153$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27154fi
27155ac_cv_func_vfork_works=$ac_cv_func_vfork
27156if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000027157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000027158$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027159if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027160 $as_echo_n "(cached) " >&6
27161else
cristy8b350f62009-11-15 23:12:43 +000027162 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027163 ac_cv_func_vfork_works=cross
27164else
cristy8b350f62009-11-15 23:12:43 +000027165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027166/* end confdefs.h. */
27167/* Thanks to Paul Eggert for this test. */
27168$ac_includes_default
27169#include <sys/wait.h>
27170#ifdef HAVE_VFORK_H
27171# include <vfork.h>
27172#endif
27173/* On some sparc systems, changes by the child to local and incoming
27174 argument registers are propagated back to the parent. The compiler
27175 is told about this with #include <vfork.h>, but some compilers
27176 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
27177 static variable whose address is put into a register that is
27178 clobbered by the vfork. */
27179static void
27180#ifdef __cplusplus
27181sparc_address_test (int arg)
27182# else
27183sparc_address_test (arg) int arg;
27184#endif
27185{
27186 static pid_t child;
27187 if (!child) {
27188 child = vfork ();
27189 if (child < 0) {
27190 perror ("vfork");
27191 _exit(2);
27192 }
27193 if (!child) {
27194 arg = getpid();
27195 write(-1, "", 0);
27196 _exit (arg);
27197 }
27198 }
27199}
27200
27201int
27202main ()
27203{
27204 pid_t parent = getpid ();
27205 pid_t child;
27206
27207 sparc_address_test (0);
27208
27209 child = vfork ();
27210
27211 if (child == 0) {
27212 /* Here is another test for sparc vfork register problems. This
27213 test uses lots of local variables, at least as many local
27214 variables as main has allocated so far including compiler
27215 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
27216 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
27217 reuse the register of parent for one of the local variables,
27218 since it will think that parent can't possibly be used any more
27219 in this routine. Assigning to the local variable will thus
27220 munge parent in the parent process. */
27221 pid_t
27222 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27223 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27224 /* Convince the compiler that p..p7 are live; otherwise, it might
27225 use the same hardware register for all 8 local variables. */
27226 if (p != p1 || p != p2 || p != p3 || p != p4
27227 || p != p5 || p != p6 || p != p7)
27228 _exit(1);
27229
27230 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27231 from child file descriptors. If the child closes a descriptor
27232 before it execs or exits, this munges the parent's descriptor
27233 as well. Test for this by closing stdout in the child. */
27234 _exit(close(fileno(stdout)) != 0);
27235 } else {
27236 int status;
27237 struct stat st;
27238
27239 while (wait(&status) != child)
27240 ;
27241 return (
27242 /* Was there some problem with vforking? */
27243 child < 0
27244
27245 /* Did the child fail? (This shouldn't happen.) */
27246 || status
27247
27248 /* Did the vfork/compiler bug occur? */
27249 || parent != getpid()
27250
27251 /* Did the file descriptor bug occur? */
27252 || fstat(fileno(stdout), &st) != 0
27253 );
27254 }
27255}
27256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027257if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027258 ac_cv_func_vfork_works=yes
27259else
cristy8b350f62009-11-15 23:12:43 +000027260 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000027261fi
cristy8b350f62009-11-15 23:12:43 +000027262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27263 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027264fi
27265
cristy3ed852e2009-09-05 21:47:34 +000027266fi
cristy8b350f62009-11-15 23:12:43 +000027267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027268$as_echo "$ac_cv_func_vfork_works" >&6; }
27269
27270fi;
27271if test "x$ac_cv_func_fork_works" = xcross; then
27272 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000027273 { $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 +000027274$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27275fi
27276
27277if test "x$ac_cv_func_vfork_works" = xyes; then
27278
cristy8b350f62009-11-15 23:12:43 +000027279$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027280
27281else
27282
cristy8b350f62009-11-15 23:12:43 +000027283$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027284
27285fi
27286if test "x$ac_cv_func_fork_works" = xyes; then
27287
cristy8b350f62009-11-15 23:12:43 +000027288$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027289
27290fi
27291
cristy8b350f62009-11-15 23:12:43 +000027292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000027293$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027294if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027295 $as_echo_n "(cached) " >&6
27296else
cristy8b350f62009-11-15 23:12:43 +000027297 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027298 ac_cv_func_memcmp_working=no
27299else
cristy8b350f62009-11-15 23:12:43 +000027300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027301/* end confdefs.h. */
27302$ac_includes_default
27303int
27304main ()
27305{
27306
27307 /* Some versions of memcmp are not 8-bit clean. */
27308 char c0 = '\100', c1 = '\200', c2 = '\201';
27309 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27310 return 1;
27311
27312 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27313 or more and with at least one buffer not starting on a 4-byte boundary.
27314 William Lewis provided this test program. */
27315 {
27316 char foo[21];
27317 char bar[21];
27318 int i;
27319 for (i = 0; i < 4; i++)
27320 {
27321 char *a = foo + i;
27322 char *b = bar + i;
27323 strcpy (a, "--------01111111");
27324 strcpy (b, "--------10000000");
27325 if (memcmp (a, b, 16) >= 0)
27326 return 1;
27327 }
27328 return 0;
27329 }
27330
27331 ;
27332 return 0;
27333}
27334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027335if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027336 ac_cv_func_memcmp_working=yes
27337else
cristy8b350f62009-11-15 23:12:43 +000027338 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000027339fi
cristy8b350f62009-11-15 23:12:43 +000027340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27341 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027342fi
27343
cristy3ed852e2009-09-05 21:47:34 +000027344fi
cristy8b350f62009-11-15 23:12:43 +000027345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000027346$as_echo "$ac_cv_func_memcmp_working" >&6; }
27347test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27348 *" memcmp.$ac_objext "* ) ;;
27349 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27350 ;;
27351esac
27352
27353
cristy3ed852e2009-09-05 21:47:34 +000027354for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000027355do :
27356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27357ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000027358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000027359 cat >>confdefs.h <<_ACEOF
27360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27361_ACEOF
27362
27363fi
27364
27365done
27366
cristy8b350f62009-11-15 23:12:43 +000027367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000027368$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027369if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027370 $as_echo_n "(cached) " >&6
27371else
27372 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27373 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27374 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000027375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027376/* end confdefs.h. */
27377$ac_includes_default
27378#ifdef HAVE_SYS_SELECT_H
27379# include <sys/select.h>
27380#endif
27381#ifdef HAVE_SYS_SOCKET_H
27382# include <sys/socket.h>
27383#endif
27384
27385int
27386main ()
27387{
27388extern int select ($ac_arg1,
27389 $ac_arg234, $ac_arg234, $ac_arg234,
27390 $ac_arg5);
27391 ;
27392 return 0;
27393}
27394_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027395if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027396 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000027397fi
cristy3ed852e2009-09-05 21:47:34 +000027398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27399 done
27400 done
27401done
27402# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000027403: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000027404
27405fi
cristy8b350f62009-11-15 23:12:43 +000027406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000027407$as_echo "$ac_cv_func_select_args" >&6; }
27408ac_save_IFS=$IFS; IFS=','
27409set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27410IFS=$ac_save_IFS
27411shift
27412
27413cat >>confdefs.h <<_ACEOF
27414#define SELECT_TYPE_ARG1 $1
27415_ACEOF
27416
27417
27418cat >>confdefs.h <<_ACEOF
27419#define SELECT_TYPE_ARG234 ($2)
27420_ACEOF
27421
27422
27423cat >>confdefs.h <<_ACEOF
27424#define SELECT_TYPE_ARG5 ($3)
27425_ACEOF
27426
27427rm -f conftest*
27428
cristyda16f162011-02-19 23:52:17 +000027429if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027430 $as_echo_n "(cached) " >&6
27431else
27432 ac_cv_func_setvbuf_reversed=no
27433fi
27434
27435
cristy8b350f62009-11-15 23:12:43 +000027436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000027437$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027438if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027439 $as_echo_n "(cached) " >&6
27440else
cristy8b350f62009-11-15 23:12:43 +000027441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027442/* end confdefs.h. */
27443#include <sys/types.h>
27444#include <signal.h>
27445
27446int
27447main ()
27448{
27449return *(signal (0, 0)) (0) == 1;
27450 ;
27451 return 0;
27452}
27453_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027454if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027455 ac_cv_type_signal=int
27456else
cristy8b350f62009-11-15 23:12:43 +000027457 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000027458fi
cristy3ed852e2009-09-05 21:47:34 +000027459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27460fi
cristy8b350f62009-11-15 23:12:43 +000027461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000027462$as_echo "$ac_cv_type_signal" >&6; }
27463
27464cat >>confdefs.h <<_ACEOF
27465#define RETSIGTYPE $ac_cv_type_signal
27466_ACEOF
27467
27468
cristy8b350f62009-11-15 23:12:43 +000027469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000027470$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027471if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027472 $as_echo_n "(cached) " >&6
27473else
cristy8b350f62009-11-15 23:12:43 +000027474 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000027475 ac_cv_func_strtod=no
27476else
cristy8b350f62009-11-15 23:12:43 +000027477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027478/* end confdefs.h. */
27479
27480$ac_includes_default
27481#ifndef strtod
27482double strtod ();
27483#endif
27484int
27485main()
27486{
27487 {
27488 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
27489 char *string = " +69";
27490 char *term;
27491 double value;
27492 value = strtod (string, &term);
27493 if (value != 69 || term != (string + 4))
27494 return 1;
27495 }
27496
27497 {
27498 /* Under Solaris 2.4, strtod returns the wrong value for the
27499 terminating character under some conditions. */
27500 char *string = "NaN";
27501 char *term;
27502 strtod (string, &term);
27503 if (term != string && *(term - 1) == 0)
27504 return 1;
27505 }
27506 return 0;
27507}
27508
27509_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027510if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 ac_cv_func_strtod=yes
27512else
cristy8b350f62009-11-15 23:12:43 +000027513 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000027514fi
cristy8b350f62009-11-15 23:12:43 +000027515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27516 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027517fi
27518
cristy3ed852e2009-09-05 21:47:34 +000027519fi
cristy8b350f62009-11-15 23:12:43 +000027520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000027521$as_echo "$ac_cv_func_strtod" >&6; }
27522if test $ac_cv_func_strtod = no; then
27523 case " $LIBOBJS " in
27524 *" strtod.$ac_objext "* ) ;;
27525 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
27526 ;;
27527esac
27528
cristy8b350f62009-11-15 23:12:43 +000027529ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000027530if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027531
cristy3ed852e2009-09-05 21:47:34 +000027532fi
27533
cristy3ed852e2009-09-05 21:47:34 +000027534if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000027535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000027536$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027537if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027538 $as_echo_n "(cached) " >&6
27539else
27540 ac_check_lib_save_LIBS=$LIBS
27541LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027543/* end confdefs.h. */
27544
27545/* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27548#ifdef __cplusplus
27549extern "C"
27550#endif
27551char pow ();
27552int
27553main ()
27554{
27555return pow ();
27556 ;
27557 return 0;
27558}
27559_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027560if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027561 ac_cv_lib_m_pow=yes
27562else
cristy8b350f62009-11-15 23:12:43 +000027563 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000027564fi
cristy8b350f62009-11-15 23:12:43 +000027565rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027567LIBS=$ac_check_lib_save_LIBS
27568fi
cristy8b350f62009-11-15 23:12:43 +000027569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000027570$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000027571if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027572 POW_LIB=-lm
27573else
cristy8b350f62009-11-15 23:12:43 +000027574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000027575$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
27576fi
27577
27578fi
27579
27580fi
27581
cristy7d4a1d62011-10-13 15:54:12 +000027582ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
27583if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
27584 ac_have_decl=1
27585else
27586 ac_have_decl=0
27587fi
27588
27589cat >>confdefs.h <<_ACEOF
27590#define HAVE_DECL_STRERROR_R $ac_have_decl
27591_ACEOF
27592
27593for ac_func in strerror_r
27594do :
27595 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
27596if test "x$ac_cv_func_strerror_r" = xyes; then :
27597 cat >>confdefs.h <<_ACEOF
27598#define HAVE_STRERROR_R 1
27599_ACEOF
27600
27601fi
27602done
27603
27604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
27605$as_echo_n "checking whether strerror_r returns char *... " >&6; }
27606if ${ac_cv_func_strerror_r_char_p+:} false; then :
27607 $as_echo_n "(cached) " >&6
27608else
27609
27610 ac_cv_func_strerror_r_char_p=no
27611 if test $ac_cv_have_decl_strerror_r = yes; then
27612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27613/* end confdefs.h. */
27614$ac_includes_default
27615int
27616main ()
27617{
27618
27619 char buf[100];
27620 char x = *strerror_r (0, buf, sizeof buf);
27621 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000027622 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000027623
27624 ;
27625 return 0;
27626}
27627_ACEOF
27628if ac_fn_c_try_compile "$LINENO"; then :
27629 ac_cv_func_strerror_r_char_p=yes
27630fi
27631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27632 else
27633 # strerror_r is not declared. Choose between
27634 # systems that have relatively inaccessible declarations for the
27635 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
27636 # former has a strerror_r that returns char*, while the latter
27637 # has a strerror_r that returns `int'.
27638 # This test should segfault on the DEC system.
27639 if test "$cross_compiling" = yes; then :
27640 :
27641else
27642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27643/* end confdefs.h. */
27644$ac_includes_default
27645 extern char *strerror_r ();
27646int
27647main ()
27648{
27649char buf[100];
27650 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000027651 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000027652 ;
27653 return 0;
27654}
27655_ACEOF
27656if ac_fn_c_try_run "$LINENO"; then :
27657 ac_cv_func_strerror_r_char_p=yes
27658fi
27659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27660 conftest.$ac_objext conftest.beam conftest.$ac_ext
27661fi
27662
27663 fi
27664
27665fi
27666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
27667$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
27668if test $ac_cv_func_strerror_r_char_p = yes; then
27669
27670$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
27671
27672fi
27673
cristy3ed852e2009-09-05 21:47:34 +000027674for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000027675do :
27676 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000027677if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027678 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027679#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000027680_ACEOF
27681
cristy8b350f62009-11-15 23:12:43 +000027682ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000027683if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027684
cristy8b350f62009-11-15 23:12:43 +000027685$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027686
27687fi
27688
27689fi
27690done
27691
27692
27693
cristy161b9262010-03-20 19:34:32 +000027694#
27695# Find math library
27696#
27697MATH_LIBS=''
27698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
27699$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027700if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000027701 $as_echo_n "(cached) " >&6
27702else
27703 ac_check_lib_save_LIBS=$LIBS
27704LIBS="-lm $LIBS"
27705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27706/* end confdefs.h. */
27707
27708/* Override any GCC internal prototype to avoid an error.
27709 Use char because int might match the return type of a GCC
27710 builtin and then its argument prototype would still apply. */
27711#ifdef __cplusplus
27712extern "C"
27713#endif
27714char sqrt ();
27715int
27716main ()
27717{
27718return sqrt ();
27719 ;
27720 return 0;
27721}
27722_ACEOF
27723if ac_fn_c_try_link "$LINENO"; then :
27724 ac_cv_lib_m_sqrt=yes
27725else
27726 ac_cv_lib_m_sqrt=no
27727fi
27728rm -f core conftest.err conftest.$ac_objext \
27729 conftest$ac_exeext conftest.$ac_ext
27730LIBS=$ac_check_lib_save_LIBS
27731fi
27732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
27733$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000027734if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000027735 MATH_LIBS="-lm"
27736fi
27737
27738LIBS="$MATH_LIBS $LIBS"
27739
27740
cristy85572162013-01-04 19:19:32 +000027741#
27742# Find socket library
27743#
cristy8a5d7f42013-01-06 15:24:33 +000027744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
27745$as_echo_n "checking for library containing gethostbyname... " >&6; }
27746if ${ac_cv_search_gethostbyname+:} false; then :
27747 $as_echo_n "(cached) " >&6
27748else
27749 ac_func_search_save_LIBS=$LIBS
27750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751/* end confdefs.h. */
27752
27753/* Override any GCC internal prototype to avoid an error.
27754 Use char because int might match the return type of a GCC
27755 builtin and then its argument prototype would still apply. */
27756#ifdef __cplusplus
27757extern "C"
27758#endif
27759char gethostbyname ();
27760int
27761main ()
27762{
27763return gethostbyname ();
27764 ;
27765 return 0;
27766}
27767_ACEOF
27768for ac_lib in '' resolv nsl; do
27769 if test -z "$ac_lib"; then
27770 ac_res="none required"
27771 else
27772 ac_res=-l$ac_lib
27773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27774 fi
27775 if ac_fn_c_try_link "$LINENO"; then :
27776 ac_cv_search_gethostbyname=$ac_res
27777fi
27778rm -f core conftest.err conftest.$ac_objext \
27779 conftest$ac_exeext
27780 if ${ac_cv_search_gethostbyname+:} false; then :
27781 break
27782fi
27783done
27784if ${ac_cv_search_gethostbyname+:} false; then :
27785
27786else
27787 ac_cv_search_gethostbyname=no
27788fi
27789rm conftest.$ac_ext
27790LIBS=$ac_func_search_save_LIBS
27791fi
27792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
27793$as_echo "$ac_cv_search_gethostbyname" >&6; }
27794ac_res=$ac_cv_search_gethostbyname
27795if test "$ac_res" != no; then :
27796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27797
27798fi
27799
cristy85572162013-01-04 19:19:32 +000027800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
27801$as_echo_n "checking for library containing socket... " >&6; }
27802if ${ac_cv_search_socket+:} false; then :
27803 $as_echo_n "(cached) " >&6
27804else
27805 ac_func_search_save_LIBS=$LIBS
27806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807/* end confdefs.h. */
27808
27809/* Override any GCC internal prototype to avoid an error.
27810 Use char because int might match the return type of a GCC
27811 builtin and then its argument prototype would still apply. */
27812#ifdef __cplusplus
27813extern "C"
27814#endif
27815char socket ();
27816int
27817main ()
27818{
27819return socket ();
27820 ;
27821 return 0;
27822}
27823_ACEOF
27824for ac_lib in '' socket; do
27825 if test -z "$ac_lib"; then
27826 ac_res="none required"
27827 else
27828 ac_res=-l$ac_lib
27829 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27830 fi
27831 if ac_fn_c_try_link "$LINENO"; then :
27832 ac_cv_search_socket=$ac_res
27833fi
27834rm -f core conftest.err conftest.$ac_objext \
27835 conftest$ac_exeext
27836 if ${ac_cv_search_socket+:} false; then :
27837 break
27838fi
27839done
27840if ${ac_cv_search_socket+:} false; then :
27841
27842else
27843 ac_cv_search_socket=no
27844fi
27845rm conftest.$ac_ext
27846LIBS=$ac_func_search_save_LIBS
27847fi
27848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
27849$as_echo "$ac_cv_search_socket" >&6; }
27850ac_res=$ac_cv_search_socket
27851if test "$ac_res" != no; then :
27852 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27853
cristy85572162013-01-04 19:19:32 +000027854
cristy8a5d7f42013-01-06 15:24:33 +000027855$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
cristy85572162013-01-04 19:19:32 +000027856
cristy03f187e2013-01-24 00:22:19 +000027857 MAGICK_FEATURES="DPC $MAGICK_FEATURES"
cristy85572162013-01-04 19:19:32 +000027858
27859fi
27860
27861
Cristyf3132f92016-06-05 12:14:20 -040027862for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio erf _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 +000027863do :
27864 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000027866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000027867 cat >>confdefs.h <<_ACEOF
27868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27869_ACEOF
27870
27871fi
27872done
27873
27874
cristye43a45e2009-09-28 14:49:00 +000027875#
27876# Check for clock_gettime().
27877#
cristy8b350f62009-11-15 23:12:43 +000027878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000027879$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027880if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000027881 $as_echo_n "(cached) " >&6
27882else
27883 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000027884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000027885/* end confdefs.h. */
27886
27887/* Override any GCC internal prototype to avoid an error.
27888 Use char because int might match the return type of a GCC
27889 builtin and then its argument prototype would still apply. */
27890#ifdef __cplusplus
27891extern "C"
27892#endif
27893char clock_gettime ();
27894int
27895main ()
27896{
27897return clock_gettime ();
27898 ;
27899 return 0;
27900}
27901_ACEOF
27902for ac_lib in '' rt; do
27903 if test -z "$ac_lib"; then
27904 ac_res="none required"
27905 else
27906 ac_res=-l$ac_lib
27907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27908 fi
cristy8b350f62009-11-15 23:12:43 +000027909 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000027910 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000027911fi
cristy8b350f62009-11-15 23:12:43 +000027912rm -f core conftest.err conftest.$ac_objext \
27913 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000027914 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000027915 break
27916fi
27917done
cristyda16f162011-02-19 23:52:17 +000027918if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000027919
cristye43a45e2009-09-28 14:49:00 +000027920else
27921 ac_cv_search_clock_gettime=no
27922fi
27923rm conftest.$ac_ext
27924LIBS=$ac_func_search_save_LIBS
27925fi
cristy8b350f62009-11-15 23:12:43 +000027926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000027927$as_echo "$ac_cv_search_clock_gettime" >&6; }
27928ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000027929if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000027930 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27931
27932
cristy8b350f62009-11-15 23:12:43 +000027933$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000027934
cristy8b350f62009-11-15 23:12:43 +000027935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000027936$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000027937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000027938/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000027939
27940 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000027941int
27942main ()
27943{
27944clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000027945 ;
27946 return 0;
27947}
27948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027949if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000027950
cristyad38abe2012-12-23 23:03:21 +000027951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27952$as_echo "yes" >&6; }
cristye43a45e2009-09-28 14:49:00 +000027953
cristy8b350f62009-11-15 23:12:43 +000027954$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000027955
27956
27957else
cristyad38abe2012-12-23 23:03:21 +000027958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27959$as_echo "no" >&6; }
cristye43a45e2009-09-28 14:49:00 +000027960
27961fi
cristye43a45e2009-09-28 14:49:00 +000027962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963
27964else
27965
cristy8b350f62009-11-15 23:12:43 +000027966 for ac_func in gettimeofday ftime
27967do :
27968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000027970if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000027971 cat >>confdefs.h <<_ACEOF
27972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27973_ACEOF
27974 break
27975fi
27976done
27977
27978
27979
27980fi
27981
27982
cristy3ed852e2009-09-05 21:47:34 +000027983########
27984#
27985# Check for function prototypes
27986#
27987########
27988
cristy8b350f62009-11-15 23:12:43 +000027989ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000027990#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000027991"
cristyda16f162011-02-19 23:52:17 +000027992if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000027993 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000027994else
cristy8b350f62009-11-15 23:12:43 +000027995 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000027996fi
27997
cristy3ed852e2009-09-05 21:47:34 +000027998cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027999#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000028000_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028001ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000028002#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000028003"
cristyda16f162011-02-19 23:52:17 +000028004if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000028005 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000028006else
cristy8b350f62009-11-15 23:12:43 +000028007 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000028008fi
28009
cristy3ed852e2009-09-05 21:47:34 +000028010cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028011#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000028012_ACEOF
28013
28014
cristy8b350f62009-11-15 23:12:43 +000028015ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000028016#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000028017"
cristyda16f162011-02-19 23:52:17 +000028018if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000028019 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000028020else
cristy8b350f62009-11-15 23:12:43 +000028021 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000028022fi
28023
cristy3ed852e2009-09-05 21:47:34 +000028024cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028025#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000028026_ACEOF
28027
28028
cristy8b350f62009-11-15 23:12:43 +000028029ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000028030#include <stdio.h>
28031#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000028032"
cristyda16f162011-02-19 23:52:17 +000028033if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000028034 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000028035else
cristy8b350f62009-11-15 23:12:43 +000028036 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000028037fi
28038
cristy3ed852e2009-09-05 21:47:34 +000028039cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028040#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000028041_ACEOF
28042
28043
cristy3ed852e2009-09-05 21:47:34 +000028044########
28045#
28046# C++ Support Tests (For Magick++)
28047#
28048########
28049have_magick_plus_plus='no'
28050if test "$with_magick_plus_plus" = 'yes'; then
28051 OLIBS="$LIBS"
28052 LIBS=''
28053 ac_ext=cpp
28054ac_cpp='$CXXCPP $CPPFLAGS'
28055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28058
28059
28060 # Full set of headers used...
28061 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
28062 # functional iomanip iosfwd iostream iterator list string strstream utility
28063 ac_ext=cpp
28064ac_cpp='$CXXCPP $CPPFLAGS'
28065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28068
28069 ac_ext=cpp
28070ac_cpp='$CXXCPP $CPPFLAGS'
28071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28074if test -z "$CXX"; then
28075 if test -n "$CCC"; then
28076 CXX=$CCC
28077 else
28078 if test -n "$ac_tool_prefix"; then
28079 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28080 do
28081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028084$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028085if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028086 $as_echo_n "(cached) " >&6
28087else
28088 if test -n "$CXX"; then
28089 ac_cv_prog_CXX="$CXX" # Let the user override the test.
28090else
28091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28092for as_dir in $PATH
28093do
28094 IFS=$as_save_IFS
28095 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028096 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000028098 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028100 break 2
28101 fi
28102done
cristy8b350f62009-11-15 23:12:43 +000028103 done
cristy3ed852e2009-09-05 21:47:34 +000028104IFS=$as_save_IFS
28105
28106fi
28107fi
28108CXX=$ac_cv_prog_CXX
28109if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000028110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028111$as_echo "$CXX" >&6; }
28112else
cristy8b350f62009-11-15 23:12:43 +000028113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028114$as_echo "no" >&6; }
28115fi
28116
28117
28118 test -n "$CXX" && break
28119 done
28120fi
28121if test -z "$CXX"; then
28122 ac_ct_CXX=$CXX
28123 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28124do
28125 # Extract the first word of "$ac_prog", so it can be a program name with args.
28126set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000028127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000028128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028129if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028130 $as_echo_n "(cached) " >&6
28131else
28132 if test -n "$ac_ct_CXX"; then
28133 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28134else
28135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28136for as_dir in $PATH
28137do
28138 IFS=$as_save_IFS
28139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000028140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000028142 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000028143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028144 break 2
28145 fi
28146done
cristy8b350f62009-11-15 23:12:43 +000028147 done
cristy3ed852e2009-09-05 21:47:34 +000028148IFS=$as_save_IFS
28149
28150fi
28151fi
28152ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28153if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000028154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028155$as_echo "$ac_ct_CXX" >&6; }
28156else
cristy8b350f62009-11-15 23:12:43 +000028157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000028158$as_echo "no" >&6; }
28159fi
28160
28161
28162 test -n "$ac_ct_CXX" && break
28163done
28164
28165 if test "x$ac_ct_CXX" = x; then
28166 CXX="g++"
28167 else
28168 case $cross_compiling:$ac_tool_warned in
28169yes:)
cristy8b350f62009-11-15 23:12:43 +000028170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000028171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28172ac_tool_warned=yes ;;
28173esac
28174 CXX=$ac_ct_CXX
28175 fi
28176fi
28177
28178 fi
28179fi
28180# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000028181$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182set X $ac_compile
28183ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000028184for ac_option in --version -v -V -qversion; do
28185 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000028186case "(($ac_try" in
28187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188 *) ac_try_echo=$ac_try;;
28189esac
cristy8b350f62009-11-15 23:12:43 +000028190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28191$as_echo "$ac_try_echo"; } >&5
28192 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000028193 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000028194 if test -s conftest.err; then
28195 sed '10a\
28196... rest of stderr output deleted ...
28197 10q' conftest.err >conftest.er1
28198 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000028199 fi
cristycd4c5312009-11-22 01:19:08 +000028200 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000028201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28202 test $ac_status = 0; }
28203done
cristy3ed852e2009-09-05 21:47:34 +000028204
cristy8b350f62009-11-15 23:12:43 +000028205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000028206$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028207if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028208 $as_echo_n "(cached) " >&6
28209else
cristy8b350f62009-11-15 23:12:43 +000028210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028211/* end confdefs.h. */
28212
28213int
28214main ()
28215{
28216#ifndef __GNUC__
28217 choke me
28218#endif
28219
28220 ;
28221 return 0;
28222}
28223_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028224if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028225 ac_compiler_gnu=yes
28226else
cristy8b350f62009-11-15 23:12:43 +000028227 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000028228fi
cristy3ed852e2009-09-05 21:47:34 +000028229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28231
28232fi
cristy8b350f62009-11-15 23:12:43 +000028233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000028234$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
28235if test $ac_compiler_gnu = yes; then
28236 GXX=yes
28237else
28238 GXX=
28239fi
28240ac_test_CXXFLAGS=${CXXFLAGS+set}
28241ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000028242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028244if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028245 $as_echo_n "(cached) " >&6
28246else
28247 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
28248 ac_cxx_werror_flag=yes
28249 ac_cv_prog_cxx_g=no
28250 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000028251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028252/* end confdefs.h. */
28253
28254int
28255main ()
28256{
28257
28258 ;
28259 return 0;
28260}
28261_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028262if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028263 ac_cv_prog_cxx_g=yes
28264else
cristy8b350f62009-11-15 23:12:43 +000028265 CXXFLAGS=""
28266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028267/* end confdefs.h. */
28268
28269int
28270main ()
28271{
28272
28273 ;
28274 return 0;
28275}
28276_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028277if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028278
cristy8b350f62009-11-15 23:12:43 +000028279else
28280 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000028281 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000028282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028283/* end confdefs.h. */
28284
28285int
28286main ()
28287{
28288
28289 ;
28290 return 0;
28291}
28292_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028293if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028294 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000028295fi
cristy3ed852e2009-09-05 21:47:34 +000028296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28297fi
cristy3ed852e2009-09-05 21:47:34 +000028298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299fi
cristy3ed852e2009-09-05 21:47:34 +000028300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28302fi
cristy8b350f62009-11-15 23:12:43 +000028303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000028304$as_echo "$ac_cv_prog_cxx_g" >&6; }
28305if test "$ac_test_CXXFLAGS" = set; then
28306 CXXFLAGS=$ac_save_CXXFLAGS
28307elif test $ac_cv_prog_cxx_g = yes; then
28308 if test "$GXX" = yes; then
28309 CXXFLAGS="-g -O2"
28310 else
28311 CXXFLAGS="-g"
28312 fi
28313else
28314 if test "$GXX" = yes; then
28315 CXXFLAGS="-O2"
28316 else
28317 CXXFLAGS=
28318 fi
28319fi
28320ac_ext=cpp
28321ac_cpp='$CXXCPP $CPPFLAGS'
28322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28325
cristy73bd4a52010-10-05 11:24:23 +000028326depcc="$CXX" am_compiler_list=
28327
28328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28329$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028330if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028331 $as_echo_n "(cached) " >&6
28332else
28333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28334 # We make a subdir and do the tests there. Otherwise we can end up
28335 # making bogus files that we don't know about and never remove. For
28336 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000028337 # making a dummy file named 'D' -- because '-MD' means "put the output
28338 # in D".
cristy7247bba2012-02-05 16:37:27 +000028339 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000028340 mkdir conftest.dir
28341 # Copy depcomp to subdir because otherwise we won't find it if we're
28342 # using a relative directory.
28343 cp "$am_depcomp" conftest.dir
28344 cd conftest.dir
28345 # We will build objects and dependencies in a subdirectory because
28346 # it helps to detect inapplicable dependency modes. For instance
28347 # both Tru64's cc and ICC support -MD to output dependencies as a
28348 # side effect of compilation, but ICC will put the dependencies in
28349 # the current directory while Tru64 will put them in the object
28350 # directory.
28351 mkdir sub
28352
28353 am_cv_CXX_dependencies_compiler_type=none
28354 if test "$am_compiler_list" = ""; then
28355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28356 fi
28357 am__universal=false
28358 case " $depcc " in #(
28359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
28360 esac
28361
28362 for depmode in $am_compiler_list; do
28363 # Setup a source with many dependencies, because some compilers
28364 # like to wrap large dependency lists on column 80 (with \), and
28365 # we should not choose a depcomp mode which is confused by this.
28366 #
28367 # We need to recreate these files for each test, as the compiler may
28368 # overwrite some of them when testing with obscure command lines.
28369 # This happens at least with the AIX C compiler.
28370 : > sub/conftest.c
28371 for i in 1 2 3 4 5 6; do
28372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000028373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28374 # Solaris 10 /bin/sh.
28375 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000028376 done
28377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28378
cristyc0890a62012-07-19 00:18:20 +000028379 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000028380 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000028381 # handle '-M -o', and we need to detect this. Also, some Intel
28382 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000028383 am__obj=sub/conftest.${OBJEXT-o}
28384 am__minus_obj="-o $am__obj"
28385 case $depmode in
28386 gcc)
28387 # This depmode causes a compiler race in universal mode.
28388 test "$am__universal" = false || continue
28389 ;;
28390 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000028391 # After this tag, mechanisms are not by side-effect, so they'll
28392 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000028393 if test "x$enable_dependency_tracking" = xyes; then
28394 continue
28395 else
28396 break
28397 fi
28398 ;;
cristy7247bba2012-02-05 16:37:27 +000028399 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000028400 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000028401 # not run yet. These depmodes are late enough in the game, and
28402 # so weak that their functioning should not be impacted.
28403 am__obj=conftest.${OBJEXT-o}
28404 am__minus_obj=
28405 ;;
28406 none) break ;;
28407 esac
28408 if depmode=$depmode \
28409 source=sub/conftest.c object=$am__obj \
28410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
28411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
28412 >/dev/null 2>conftest.err &&
28413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
28414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
28415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
28416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
28417 # icc doesn't choke on unknown options, it will just issue warnings
28418 # or remarks (even with -Werror). So we grep stderr for any message
28419 # that says an option was ignored or not supported.
28420 # When given -MP, icc 7.0 and 7.1 complain thusly:
28421 # icc: Command line warning: ignoring option '-M'; no argument required
28422 # The diagnosis changed in icc 8.0:
28423 # icc: Command line remark: option '-MP' not supported
28424 if (grep 'ignoring option' conftest.err ||
28425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
28426 am_cv_CXX_dependencies_compiler_type=$depmode
28427 break
28428 fi
28429 fi
28430 done
28431
28432 cd ..
28433 rm -rf conftest.dir
28434else
28435 am_cv_CXX_dependencies_compiler_type=none
28436fi
28437
28438fi
28439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
28440$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
28441CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
28442
28443 if
28444 test "x$enable_dependency_tracking" != xno \
28445 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
28446 am__fastdepCXX_TRUE=
28447 am__fastdepCXX_FALSE='#'
28448else
28449 am__fastdepCXX_TRUE='#'
28450 am__fastdepCXX_FALSE=
28451fi
28452
28453
cristy146497a2015-05-17 22:46:16 +000028454 { $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 +000028455$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028456if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028457 $as_echo_n "(cached) " >&6
28458else
cristy146497a2015-05-17 22:46:16 +000028459 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000028460ac_cpp='$CXXCPP $CPPFLAGS'
28461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28464
cristy146497a2015-05-17 22:46:16 +000028465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000028466/* end confdefs.h. */
cristy146497a2015-05-17 22:46:16 +000028467 int f(int x){return 1;}
28468 int f(char x){return 1;}
28469 int f(bool x){return 1;}
cristy73bd4a52010-10-05 11:24:23 +000028470int
28471main ()
28472{
28473bool b = true; return f(b);
28474 ;
28475 return 0;
28476}
28477_ACEOF
28478if ac_fn_cxx_try_compile "$LINENO"; then :
28479 ax_cv_cxx_bool=yes
28480else
28481 ax_cv_cxx_bool=no
28482fi
28483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy146497a2015-05-17 22:46:16 +000028484 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000028485ac_cpp='$CXXCPP $CPPFLAGS'
28486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28489
28490
28491fi
28492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
28493$as_echo "$ax_cv_cxx_bool" >&6; }
cristy146497a2015-05-17 22:46:16 +000028494 if test "X$ax_cv_cxx_bool" = Xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000028495
28496$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
28497
28498fi
28499
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
28501$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028502if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028503 $as_echo_n "(cached) " >&6
28504else
cristy17491be2014-06-24 01:10:53 +000028505 ac_ext=cpp
cristy73bd4a52010-10-05 11:24:23 +000028506ac_cpp='$CXXCPP $CPPFLAGS'
28507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28510
28511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28512/* end confdefs.h. */
28513namespace Outer { namespace Inner { int i = 0; }}
cristy17491be2014-06-24 01:10:53 +000028514 using namespace Outer::Inner; int foo(void) { return i;}
cristy73bd4a52010-10-05 11:24:23 +000028515_ACEOF
28516if ac_fn_cxx_try_compile "$LINENO"; then :
28517 ax_cv_cxx_namespaces=yes
28518else
28519 ax_cv_cxx_namespaces=no
28520fi
28521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28522 ac_ext=cpp
28523ac_cpp='$CXXCPP $CPPFLAGS'
28524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28527
28528
28529fi
28530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
28531$as_echo "$ax_cv_cxx_namespaces" >&6; }
28532if test "$ax_cv_cxx_namespaces" = yes; then
28533
28534$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
28535
28536fi
28537
28538
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
28540$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028541if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028542 $as_echo_n "(cached) " >&6
28543else
28544
28545 ac_ext=cpp
28546ac_cpp='$CXXCPP $CPPFLAGS'
28547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28550
28551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28552/* end confdefs.h. */
28553#include <iostream>
28554 std::istream& is = std::cin;
28555int
28556main ()
28557{
28558
28559 ;
28560 return 0;
28561}
28562_ACEOF
28563if ac_fn_cxx_try_compile "$LINENO"; then :
28564 ax_cv_cxx_have_std_namespace=yes
28565else
28566 ax_cv_cxx_have_std_namespace=no
28567fi
28568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569 ac_ext=cpp
28570ac_cpp='$CXXCPP $CPPFLAGS'
28571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28574
28575
28576fi
28577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
28578$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
28579 if test "$ax_cv_cxx_have_std_namespace" = yes; then
28580
28581$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
28582
28583 fi
28584
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
28586$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028587if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028588 $as_echo_n "(cached) " >&6
28589else
28590
28591
28592 ac_ext=cpp
28593ac_cpp='$CXXCPP $CPPFLAGS'
28594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28597
28598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28599/* end confdefs.h. */
28600#include <iostream>
28601#include <map>
28602#include <iomanip>
28603#include <cmath>
28604#ifdef HAVE_NAMESPACES
28605using namespace std;
28606#endif
28607int
28608main ()
28609{
28610return 0;
28611 ;
28612 return 0;
28613}
28614_ACEOF
28615if ac_fn_cxx_try_compile "$LINENO"; then :
28616 ac_cv_cxx_have_std_libs=yes
28617else
28618 ac_cv_cxx_have_std_libs=no
28619fi
28620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621 ac_ext=cpp
28622ac_cpp='$CXXCPP $CPPFLAGS'
28623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28626
28627
28628fi
28629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
28630$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
28631if test "$ac_cv_cxx_have_std_libs" = yes; then
28632
28633$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
28634
28635fi
28636
cristy3ed852e2009-09-05 21:47:34 +000028637
28638 OPENMP_CXXFLAGS=
28639 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000028640if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028641 enableval=$enable_openmp;
28642fi
28643
28644 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000028645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
28646$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028647if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028648 $as_echo_n "(cached) " >&6
28649else
cristy8b350f62009-11-15 23:12:43 +000028650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28651/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000028652
28653#ifndef _OPENMP
28654 choke me
28655#endif
28656#include <omp.h>
28657int main () { return omp_get_num_threads (); }
28658
28659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028660if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028661 ac_cv_prog_cxx_openmp='none needed'
28662else
cristy8b350f62009-11-15 23:12:43 +000028663 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000028664 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
28665 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000028666 ac_save_CXXFLAGS=$CXXFLAGS
28667 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000028668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000028670
28671#ifndef _OPENMP
28672 choke me
28673#endif
28674#include <omp.h>
28675int main () { return omp_get_num_threads (); }
28676
28677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028678if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000028680fi
cristy8b350f62009-11-15 23:12:43 +000028681rm -f core conftest.err conftest.$ac_objext \
28682 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028683 CXXFLAGS=$ac_save_CXXFLAGS
28684 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
28685 break
28686 fi
28687 done
28688fi
cristy8b350f62009-11-15 23:12:43 +000028689rm -f core conftest.err conftest.$ac_objext \
28690 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028691fi
cristy8b350f62009-11-15 23:12:43 +000028692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000028693$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
28694 case $ac_cv_prog_cxx_openmp in #(
28695 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000028696 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000028697 *)
cristy8b350f62009-11-15 23:12:43 +000028698 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000028699 esac
28700 fi
28701
28702
28703 ac_ext=c
28704ac_cpp='$CPP $CPPFLAGS'
28705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28707ac_compiler_gnu=$ac_cv_c_compiler_gnu
28708
28709
cristy8b350f62009-11-15 23:12:43 +000028710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000028711$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
28712 if \
cristy964cb7f2010-04-25 23:18:00 +000028713 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000028714 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000028715 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000028716 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000028717 have_magick_plus_plus='yes'
28718 else
28719 have_magick_plus_plus='no (failed tests)'
28720 fi
cristyad38abe2012-12-23 23:03:21 +000028721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
28722$as_echo "$have_magick_plus_plus" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028723 LIBS="$OLIBS"
28724fi
cristy73bd4a52010-10-05 11:24:23 +000028725 if test "$have_magick_plus_plus" = 'yes'; then
28726 WITH_MAGICK_PLUS_PLUS_TRUE=
28727 WITH_MAGICK_PLUS_PLUS_FALSE='#'
28728else
28729 WITH_MAGICK_PLUS_PLUS_TRUE='#'
28730 WITH_MAGICK_PLUS_PLUS_FALSE=
28731fi
28732
cristy3ed852e2009-09-05 21:47:34 +000028733
28734# Only check for delegate libraries in subdirectories if requested.
28735if test "$enable_delegate_build" != 'no'; then
28736 # Check for delegate sub-directories and add -I & -L options as required.
28737 # This presumes that delegates are installed as detailed in the ImageMagick
28738 # README. If delegates are installed in a standard location where the
28739 # compiler will automatically find them then these options should not be
28740 # required.
28741
28742 #
28743 # Most delegates have includes in the same directory as the library, but not all...
28744 #
28745 # Includes
cristy834307f2015-01-25 00:43:41 +000028746 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 +000028747 if test -d "$builddir/$dir"; then
28748 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
28749 else
28750 if test -d "$srcdirfull/$dir"; then
28751 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
28752 fi
28753 fi
28754 done
28755
28756 # Libraries
cristy834307f2015-01-25 00:43:41 +000028757 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 +000028758 if test -d "$builddir/$dir/.libs"; then
28759 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
28760 else
28761 if test -d "$srcdirfull/$dir/.libs"; then
28762 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
28763 fi
28764 fi
28765 if test -d "$builddir/$dir"; then
28766 LDFLAGS="$LDFLAGS -L$builddir/$dir"
28767 else
28768 if test -d "$srcdirfull/$dir"; then
28769 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
28770 fi
28771 fi
28772 done
28773fi
28774
28775# Assume that delegate headers reside under same directory as ImageMagick
28776# installation prefix.
cristybdabdd62013-03-04 17:43:36 +000028777MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000028778
28779#
28780# Find the X11 RGB database
28781#
cristy8b350f62009-11-15 23:12:43 +000028782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000028783$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028784if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028785 $as_echo_n "(cached) " >&6
28786else
28787 # Look for the header file in a standard set of common directories.
28788# Check X11 before X11Rn because it is often a symlink to the current release.
28789 for ac_dir in \
28790 /lib/usr/lib/X11 \
28791 /usr/X11/lib \
28792 /usr/X11R4/lib \
28793 /usr/X11R5/lib \
28794 /usr/X11R6/lib \
28795 /usr/X11R7/lib \
28796 /usr/X386/lib \
28797 /usr/XFree86/lib/X11 \
28798 /usr/athena/lib \
28799 /usr/lib \
28800 /usr/lib/X11 \
28801 /usr/lib/X11R4 \
28802 /usr/lib/X11R5 \
28803 /usr/lib/X11R6 \
28804 /usr/lib/X11R7 \
28805 /usr/local/X11/lib \
28806 /usr/local/X11R4/lib \
28807 /usr/local/X11R5/lib \
28808 /usr/local/X11R6/lib \
28809 /usr/local/lib \
28810 /usr/local/lib/X11 \
28811 /usr/local/lib/X11R4 \
28812 /usr/local/lib/X11R5 \
28813 /usr/local/lib/X11R6 \
28814 /usr/local/lib/X11R7 \
28815 /usr/local/x11r5/lib \
28816 /usr/lpp/Xamples/lib \
28817 /usr/openwin/lib \
28818 /usr/openwin/share/lib \
28819 /usr/unsupported/lib \
28820 /usr/x386/lib \
28821 ; do
28822 if test -f "$ac_dir/X11/rgb.txt"; then
28823 im_cv_x_configure="$ac_dir/X11/"
28824 break
28825 elif test -f "$ac_dir/rgb.txt"; then
28826 im_cv_x_configure="$ac_dir/"
28827 break
28828 fi
28829
28830 done
28831fi
cristy8b350f62009-11-15 23:12:43 +000028832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000028833$as_echo "$im_cv_x_configure" >&6; }
28834X11_CONFIGURE_PATH="$im_cv_x_configure"
28835case "${build_os}" in
28836 mingw* )
28837 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
28838 ;;
28839esac
28840
28841cat >>confdefs.h <<_ACEOF
28842#define X11_CONFIGURE_PATH "$X11ConfigurePath"
28843_ACEOF
28844
28845
28846#
28847# Find OpenMP library
28848#
28849GOMP_LIBS=''
28850if test "$enable_openmp" != 'no'; then
28851 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000028852 # Open64 (passes for GCC but uses different OpenMP implementation)
28853 if test "x$GOMP_LIBS" = x ; then
28854 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
28856$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
28857if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
28858 $as_echo_n "(cached) " >&6
28859else
28860 ac_check_lib_save_LIBS=$LIBS
28861LIBS="-lopenmp $LIBS"
28862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28863/* end confdefs.h. */
28864
28865/* Override any GCC internal prototype to avoid an error.
28866 Use char because int might match the return type of a GCC
28867 builtin and then its argument prototype would still apply. */
28868#ifdef __cplusplus
28869extern "C"
28870#endif
28871char omp_get_num_procs ();
28872int
28873main ()
28874{
28875return omp_get_num_procs ();
28876 ;
28877 return 0;
28878}
28879_ACEOF
28880if ac_fn_c_try_link "$LINENO"; then :
28881 ac_cv_lib_openmp_omp_get_num_procs=yes
28882else
28883 ac_cv_lib_openmp_omp_get_num_procs=no
28884fi
28885rm -f core conftest.err conftest.$ac_objext \
28886 conftest$ac_exeext conftest.$ac_ext
28887LIBS=$ac_check_lib_save_LIBS
28888fi
28889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
28890$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
28891if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
28892 GOMP_LIBS="-lopenmp"
28893fi
28894
28895 fi
28896 fi
28897 # GCC
28898 if test "x$GOMP_LIBS" = x ; then
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000028900$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028901if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028902 $as_echo_n "(cached) " >&6
28903else
28904 ac_check_lib_save_LIBS=$LIBS
28905LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028907/* end confdefs.h. */
28908
28909/* Override any GCC internal prototype to avoid an error.
28910 Use char because int might match the return type of a GCC
28911 builtin and then its argument prototype would still apply. */
28912#ifdef __cplusplus
28913extern "C"
28914#endif
28915char GOMP_parallel_start ();
28916int
28917main ()
28918{
28919return GOMP_parallel_start ();
28920 ;
28921 return 0;
28922}
28923_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028924if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028925 ac_cv_lib_gomp_GOMP_parallel_start=yes
28926else
cristy8b350f62009-11-15 23:12:43 +000028927 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000028928fi
cristy8b350f62009-11-15 23:12:43 +000028929rm -f core conftest.err conftest.$ac_objext \
28930 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028931LIBS=$ac_check_lib_save_LIBS
28932fi
cristy8b350f62009-11-15 23:12:43 +000028933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000028934$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000028935if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028936 GOMP_LIBS="-lgomp"
28937fi
cristy18307f12011-12-30 01:20:16 +000028938
28939 fi
cristy3ed852e2009-09-05 21:47:34 +000028940 else
cristy18307f12011-12-30 01:20:16 +000028941 # Sun CC
28942 if test "x$GOMP_LIBS" = x ; then
28943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028944$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028945if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028946 $as_echo_n "(cached) " >&6
28947else
28948 ac_check_lib_save_LIBS=$LIBS
28949LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028951/* end confdefs.h. */
28952
28953/* Override any GCC internal prototype to avoid an error.
28954 Use char because int might match the return type of a GCC
28955 builtin and then its argument prototype would still apply. */
28956#ifdef __cplusplus
28957extern "C"
28958#endif
28959char sunw_mp_register_warn ();
28960int
28961main ()
28962{
28963return sunw_mp_register_warn ();
28964 ;
28965 return 0;
28966}
28967_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028968if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028969 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
28970else
cristy8b350f62009-11-15 23:12:43 +000028971 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000028972fi
cristy8b350f62009-11-15 23:12:43 +000028973rm -f core conftest.err conftest.$ac_objext \
28974 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028975LIBS=$ac_check_lib_save_LIBS
28976fi
cristy8b350f62009-11-15 23:12:43 +000028977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000028978$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000028979if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028980 GOMP_LIBS="-lmtsk"
28981fi
cristy18307f12011-12-30 01:20:16 +000028982
28983 fi
28984 # AIX xlc
28985 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000028986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000028987$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028988if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028989 $as_echo_n "(cached) " >&6
28990else
28991 ac_check_lib_save_LIBS=$LIBS
28992LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028994/* end confdefs.h. */
28995
28996/* Override any GCC internal prototype to avoid an error.
28997 Use char because int might match the return type of a GCC
28998 builtin and then its argument prototype would still apply. */
28999#ifdef __cplusplus
29000extern "C"
29001#endif
29002char _xlsmpFlush ();
29003int
29004main ()
29005{
29006return _xlsmpFlush ();
29007 ;
29008 return 0;
29009}
29010_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029011if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029012 ac_cv_lib_xlsmp__xlsmpFlush=yes
29013else
cristy8b350f62009-11-15 23:12:43 +000029014 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000029015fi
cristy8b350f62009-11-15 23:12:43 +000029016rm -f core conftest.err conftest.$ac_objext \
29017 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029018LIBS=$ac_check_lib_save_LIBS
29019fi
cristy8b350f62009-11-15 23:12:43 +000029020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000029021$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000029022if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029023 GOMP_LIBS="-lxlsmp"
29024fi
cristy18307f12011-12-30 01:20:16 +000029025
29026 fi
29027 # SGI IRIX 6.5 MIPSpro C/C++
29028 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000029029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000029030$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029031if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029032 $as_echo_n "(cached) " >&6
29033else
29034 ac_check_lib_save_LIBS=$LIBS
29035LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029037/* end confdefs.h. */
29038
29039/* Override any GCC internal prototype to avoid an error.
29040 Use char because int might match the return type of a GCC
29041 builtin and then its argument prototype would still apply. */
29042#ifdef __cplusplus
29043extern "C"
29044#endif
29045char mp_destroy ();
29046int
29047main ()
29048{
29049return mp_destroy ();
29050 ;
29051 return 0;
29052}
29053_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029054if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029055 ac_cv_lib_mp_mp_destroy=yes
29056else
cristy8b350f62009-11-15 23:12:43 +000029057 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000029058fi
cristy8b350f62009-11-15 23:12:43 +000029059rm -f core conftest.err conftest.$ac_objext \
29060 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029061LIBS=$ac_check_lib_save_LIBS
29062fi
cristy8b350f62009-11-15 23:12:43 +000029063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000029064$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000029065if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029066 GOMP_LIBS="-lmp"
29067fi
cristy18307f12011-12-30 01:20:16 +000029068
29069 fi
cristy3ed852e2009-09-05 21:47:34 +000029070 fi
29071 LIBS="$GOMP_LIBS $LIBS"
29072fi
29073
29074
cristy12ac8192014-11-04 13:59:13 +000029075#
cristy3b0097d2014-11-04 15:34:47 +000029076# Check for jemalloc.
cristy12ac8192014-11-04 13:59:13 +000029077#
cristy3b0097d2014-11-04 15:34:47 +000029078have_jemalloc='no'
29079JEMALLOC_LIBS=''
29080if test "$with_jemalloc" != 'no'; then
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
29082$as_echo_n "checking for JEMALLOC support ... " >&6; }
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29084$as_echo "" >&6; }
29085 failed=0
29086 passed=0
29087 ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
29088if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000029089 passed=`expr $passed + 1`
29090else
29091 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000029092fi
29093
29094
cristy3b0097d2014-11-04 15:34:47 +000029095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
29096$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
29097if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
cristy12ac8192014-11-04 13:59:13 +000029098 $as_echo_n "(cached) " >&6
29099else
29100 ac_check_lib_save_LIBS=$LIBS
29101LIBS="-ljemalloc $LIBS"
29102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29103/* end confdefs.h. */
29104
29105/* Override any GCC internal prototype to avoid an error.
29106 Use char because int might match the return type of a GCC
29107 builtin and then its argument prototype would still apply. */
29108#ifdef __cplusplus
29109extern "C"
29110#endif
cristy3b0097d2014-11-04 15:34:47 +000029111char malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000029112int
29113main ()
29114{
cristy3b0097d2014-11-04 15:34:47 +000029115return malloc_stats_print ();
cristy12ac8192014-11-04 13:59:13 +000029116 ;
29117 return 0;
29118}
29119_ACEOF
29120if ac_fn_c_try_link "$LINENO"; then :
cristy3b0097d2014-11-04 15:34:47 +000029121 ac_cv_lib_jemalloc_malloc_stats_print=yes
cristy12ac8192014-11-04 13:59:13 +000029122else
cristy3b0097d2014-11-04 15:34:47 +000029123 ac_cv_lib_jemalloc_malloc_stats_print=no
cristy12ac8192014-11-04 13:59:13 +000029124fi
29125rm -f core conftest.err conftest.$ac_objext \
29126 conftest$ac_exeext conftest.$ac_ext
29127LIBS=$ac_check_lib_save_LIBS
29128fi
cristy3b0097d2014-11-04 15:34:47 +000029129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
29130$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
29131if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
cristy22007ae2014-11-04 15:59:22 +000029132 passed=`expr $passed + 1`
29133else
29134 failed=`expr $failed + 1`
cristy12ac8192014-11-04 13:59:13 +000029135fi
29136
cristy3b0097d2014-11-04 15:34:47 +000029137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
29138$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
29139 if test $passed -gt 0; then
29140 if test $failed -gt 0; then
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29142$as_echo "no -- some components failed test" >&6; }
29143 have_jemalloc='no (failed tests)'
29144 else
29145 JEMALLOC_LIBS='-ljemalloc'
29146 LIBS="$JEMALLOC_LIBS $LIBS"
cristy12ac8192014-11-04 13:59:13 +000029147
cristy3b0097d2014-11-04 15:34:47 +000029148$as_echo "#define HasJEMALLOC 1" >>confdefs.h
cristy12ac8192014-11-04 13:59:13 +000029149
cristy3b0097d2014-11-04 15:34:47 +000029150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29151$as_echo "yes" >&6; }
29152 have_jemalloc='yes'
29153 fi
cristy12ac8192014-11-04 13:59:13 +000029154 else
cristy3b0097d2014-11-04 15:34:47 +000029155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29156$as_echo "no" >&6; }
cristy12ac8192014-11-04 13:59:13 +000029157 fi
29158fi
cristy3b0097d2014-11-04 15:34:47 +000029159 if test "$have_jemalloc" = 'yes'; then
29160 HasJEMALLOC_TRUE=
29161 HasJEMALLOC_FALSE='#'
29162else
29163 HasJEMALLOC_TRUE='#'
29164 HasJEMALLOC_FALSE=
cristy12ac8192014-11-04 13:59:13 +000029165fi
29166
cristy3b0097d2014-11-04 15:34:47 +000029167
29168
cristy3ed852e2009-09-05 21:47:34 +000029169#
29170# Check for umem.
29171#
29172have_umem='no'
29173UMEM_LIBS=''
29174if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000029175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000029176$as_echo_n "checking for UMEM support ... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29178$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029179 failed=0
29180 passed=0
cristy8b350f62009-11-15 23:12:43 +000029181 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029182if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029183 passed=`expr $passed + 1`
29184else
29185 failed=`expr $failed + 1`
29186fi
29187
29188
cristy8b350f62009-11-15 23:12:43 +000029189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000029190$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029191if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029192 $as_echo_n "(cached) " >&6
29193else
29194 ac_check_lib_save_LIBS=$LIBS
29195LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029197/* end confdefs.h. */
29198
29199/* Override any GCC internal prototype to avoid an error.
29200 Use char because int might match the return type of a GCC
29201 builtin and then its argument prototype would still apply. */
29202#ifdef __cplusplus
29203extern "C"
29204#endif
29205char umem_alloc ();
29206int
29207main ()
29208{
29209return umem_alloc ();
29210 ;
29211 return 0;
29212}
29213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029215 ac_cv_lib_umem_umem_alloc=yes
29216else
cristy8b350f62009-11-15 23:12:43 +000029217 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000029218fi
cristy8b350f62009-11-15 23:12:43 +000029219rm -f core conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029221LIBS=$ac_check_lib_save_LIBS
29222fi
cristy8b350f62009-11-15 23:12:43 +000029223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000029224$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000029225if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029226 passed=`expr $passed + 1`
29227else
29228 failed=`expr $failed + 1`
29229fi
29230
cristy8b350f62009-11-15 23:12:43 +000029231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000029232$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029233if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029234 $as_echo_n "(cached) " >&6
29235else
29236 ac_check_lib_save_LIBS=$LIBS
29237LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029239/* end confdefs.h. */
29240
29241/* Override any GCC internal prototype to avoid an error.
29242 Use char because int might match the return type of a GCC
29243 builtin and then its argument prototype would still apply. */
29244#ifdef __cplusplus
29245extern "C"
29246#endif
29247char umem_free ();
29248int
29249main ()
29250{
29251return umem_free ();
29252 ;
29253 return 0;
29254}
29255_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029256if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029257 ac_cv_lib_umem_umem_free=yes
29258else
cristy8b350f62009-11-15 23:12:43 +000029259 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000029260fi
cristy8b350f62009-11-15 23:12:43 +000029261rm -f core conftest.err conftest.$ac_objext \
29262 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029263LIBS=$ac_check_lib_save_LIBS
29264fi
cristy8b350f62009-11-15 23:12:43 +000029265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000029266$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000029267if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029268 passed=`expr $passed + 1`
29269else
29270 failed=`expr $failed + 1`
29271fi
29272
cristy8b350f62009-11-15 23:12:43 +000029273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029274$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
29275 if test $passed -gt 0; then
29276 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29278$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029279 have_umem='no (failed tests)'
29280 else
29281 UMEM_LIBS='-lumem'
29282 LIBS="$UMEM_LIBS $LIBS"
29283
cristy8b350f62009-11-15 23:12:43 +000029284$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029285
cristyad38abe2012-12-23 23:03:21 +000029286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29287$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029288 have_umem='yes'
29289 fi
29290 else
cristyad38abe2012-12-23 23:03:21 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29292$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029293 fi
29294fi
cristy73bd4a52010-10-05 11:24:23 +000029295 if test "$have_umem" = 'yes'; then
29296 HasUMEM_TRUE=
29297 HasUMEM_FALSE='#'
29298else
29299 HasUMEM_TRUE='#'
29300 HasUMEM_FALSE=
29301fi
29302
cristy3ed852e2009-09-05 21:47:34 +000029303
29304
29305#
29306# Add support for ccmalloc memory debugging library if requested
29307#
29308have_ccmalloc='no'
29309CCMALLOC_LIBS=''
29310if test "$enable_ccmalloc" = 'yes'; then
29311 # Extract the first word of "ccmalloc", so it can be a program name with args.
29312set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000029313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000029314$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029315if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029316 $as_echo_n "(cached) " >&6
29317else
29318 case $CCMALLOCDelegate in
29319 [\\/]* | ?:[\\/]*)
29320 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
29321 ;;
29322 *)
29323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29324for as_dir in $PATH
29325do
29326 IFS=$as_save_IFS
29327 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000029328 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000029330 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000029331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000029332 break 2
29333 fi
29334done
cristy8b350f62009-11-15 23:12:43 +000029335 done
cristy3ed852e2009-09-05 21:47:34 +000029336IFS=$as_save_IFS
29337
29338 ;;
29339esac
29340fi
29341CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
29342if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000029343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000029344$as_echo "$CCMALLOCDelegate" >&6; }
29345else
cristy8b350f62009-11-15 23:12:43 +000029346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029347$as_echo "no" >&6; }
29348fi
29349
29350
29351 if test -n "$CCMALLOCDelegate"; then
29352 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
29353 OLIBS="$LIBS"
29354 # Assume that gcc is used with ccmalloc.
29355 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000029356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000029357$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029358if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029359 $as_echo_n "(cached) " >&6
29360else
29361 ac_check_lib_save_LIBS=$LIBS
29362LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029364/* end confdefs.h. */
29365
29366/* Override any GCC internal prototype to avoid an error.
29367 Use char because int might match the return type of a GCC
29368 builtin and then its argument prototype would still apply. */
29369#ifdef __cplusplus
29370extern "C"
29371#endif
29372char ccmalloc_malloc ();
29373int
29374main ()
29375{
29376return ccmalloc_malloc ();
29377 ;
29378 return 0;
29379}
29380_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029381if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029382 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
29383else
cristy8b350f62009-11-15 23:12:43 +000029384 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000029385fi
cristy8b350f62009-11-15 23:12:43 +000029386rm -f core conftest.err conftest.$ac_objext \
29387 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029388LIBS=$ac_check_lib_save_LIBS
29389fi
cristy8b350f62009-11-15 23:12:43 +000029390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000029391$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000029392if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029393 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
29394fi
29395
29396 if test -n "$CCMALLOC_LIBS"; then
29397 LIBS="$OLIBS"
29398 LIBS="$LIBS $CCMALLOC_LIBS"
29399 have_ccmalloc='yes'
29400 else
29401 LIBS="$OLIBS"
29402 fi
29403 fi
29404fi
29405
29406#
cristy944e51f2013-04-16 18:45:02 +000029407# Add support for 'huge pages' if requested
29408#
29409if test "x$enable_hugepages" != "xno"; then :
29410
29411
29412$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
29413
29414
29415fi
29416
29417#
cristy3ed852e2009-09-05 21:47:34 +000029418# Add support for efence memory debugging library if requested
29419#
29420if test "$enable_efence" = 'yes'; then
29421 EFENCE_LIBS='-lefence'
29422 LIBS="$EFENCE_LIBS $LIBS"
29423fi
29424
cristy3ed852e2009-09-05 21:47:34 +000029425
29426#
29427# Check for BZLIB
29428#
29429
29430
29431# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000029432if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029433 withval=$with_bzlib; with_bzlib=$withval
29434else
29435 with_bzlib='yes'
29436fi
29437
29438
29439if test "$with_bzlib" != 'yes'; then
29440 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
29441fi
29442
29443have_bzlib='no'
29444if test "$with_bzlib" != 'no'; then
29445 BZLIB_LIBS=''
cristyad38abe2012-12-23 23:03:21 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29447$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000029448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000029449$as_echo_n "checking for BZLIB... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000029450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29451$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029452 failed=0
29453 passed=0
29454 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000029455 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029456if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029457 passed=`expr $passed + 1`
29458else
29459 failed=`expr $failed + 1`
29460fi
29461
29462
cristy8b350f62009-11-15 23:12:43 +000029463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029464$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029465if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029466 $as_echo_n "(cached) " >&6
29467else
29468 ac_check_lib_save_LIBS=$LIBS
29469LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029471/* end confdefs.h. */
29472
29473/* Override any GCC internal prototype to avoid an error.
29474 Use char because int might match the return type of a GCC
29475 builtin and then its argument prototype would still apply. */
29476#ifdef __cplusplus
29477extern "C"
29478#endif
29479char BZ2_bzDecompress ();
29480int
29481main ()
29482{
29483return BZ2_bzDecompress ();
29484 ;
29485 return 0;
29486}
29487_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029488if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029489 ac_cv_lib_bz2_BZ2_bzDecompress=yes
29490else
cristy8b350f62009-11-15 23:12:43 +000029491 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000029492fi
cristy8b350f62009-11-15 23:12:43 +000029493rm -f core conftest.err conftest.$ac_objext \
29494 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029495LIBS=$ac_check_lib_save_LIBS
29496fi
cristy8b350f62009-11-15 23:12:43 +000029497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000029498$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000029499if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029500 found_libbz=`expr $found_libbz + 1`
29501fi
29502
29503 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029505$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029506if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029507 $as_echo_n "(cached) " >&6
29508else
29509 ac_check_lib_save_LIBS=$LIBS
29510LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029512/* end confdefs.h. */
29513
29514/* Override any GCC internal prototype to avoid an error.
29515 Use char because int might match the return type of a GCC
29516 builtin and then its argument prototype would still apply. */
29517#ifdef __cplusplus
29518extern "C"
29519#endif
29520char _imp__BZ2_decompress ();
29521int
29522main ()
29523{
29524return _imp__BZ2_decompress ();
29525 ;
29526 return 0;
29527}
29528_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029529if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029530 ac_cv_lib_bz2__imp__BZ2_decompress=yes
29531else
cristy8b350f62009-11-15 23:12:43 +000029532 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000029533fi
cristy8b350f62009-11-15 23:12:43 +000029534rm -f core conftest.err conftest.$ac_objext \
29535 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029536LIBS=$ac_check_lib_save_LIBS
29537fi
cristy8b350f62009-11-15 23:12:43 +000029538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000029539$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000029540if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029541 found_libbz=`expr $found_libbz + 1`
29542fi
29543
29544 fi
29545 if test $found_libbz -gt 0; then
29546 passed=`expr $passed + 1`
29547 else
29548 failed=`expr $failed + 1`
29549 fi
cristy8b350f62009-11-15 23:12:43 +000029550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029551$as_echo_n "checking if BZLIB package is complete... " >&6; }
29552 if test $passed -gt 0; then
29553 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000029554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29555$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029556 have_bzlib='no (failed tests)'
29557 else
29558 BZLIB_LIBS='-lbz2'
29559 LIBS="$BZLIB_LIBS $LIBS"
29560
cristy8b350f62009-11-15 23:12:43 +000029561$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029562
cristyad38abe2012-12-23 23:03:21 +000029563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29564$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029565 have_bzlib='yes'
29566 fi
29567 else
cristyad38abe2012-12-23 23:03:21 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29569$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029570 fi
29571fi
cristy73bd4a52010-10-05 11:24:23 +000029572 if test "$have_bzlib" = 'yes'; then
29573 BZLIB_DELEGATE_TRUE=
29574 BZLIB_DELEGATE_FALSE='#'
29575else
29576 BZLIB_DELEGATE_TRUE='#'
29577 BZLIB_DELEGATE_FALSE=
29578fi
29579
cristy3ed852e2009-09-05 21:47:34 +000029580
29581
29582#
29583# Find the X11 include and library directories.
29584#
29585IPC_LIBS=''
29586X11_LIBS=''
29587XEXT_LIBS=''
29588XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000029589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000029590$as_echo_n "checking for X... " >&6; }
29591
29592
29593# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000029594if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000029595 withval=$with_x;
29596fi
29597
29598# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29599if test "x$with_x" = xno; then
29600 # The user explicitly disabled X.
29601 have_x=disabled
29602else
29603 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000029604 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000029605 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000029606 $as_echo_n "(cached) " >&6
29607else
29608 # One or both of the vars are not set, and there is no cached value.
29609ac_x_includes=no ac_x_libraries=no
29610rm -f -r conftest.dir
29611if mkdir conftest.dir; then
29612 cd conftest.dir
29613 cat >Imakefile <<'_ACEOF'
29614incroot:
29615 @echo incroot='${INCROOT}'
29616usrlibdir:
29617 @echo usrlibdir='${USRLIBDIR}'
29618libdir:
29619 @echo libdir='${LIBDIR}'
29620_ACEOF
29621 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000029622 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000029623 for ac_var in incroot usrlibdir libdir; do
29624 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29625 done
29626 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29627 for ac_extension in a so sl dylib la dll; do
29628 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29629 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29630 ac_im_usrlibdir=$ac_im_libdir; break
29631 fi
29632 done
29633 # Screen out bogus values from the imake configuration. They are
29634 # bogus both because they are the default anyway, and because
29635 # using them would break gcc on systems where it needs fixed includes.
29636 case $ac_im_incroot in
29637 /usr/include) ac_x_includes= ;;
29638 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29639 esac
29640 case $ac_im_usrlibdir in
29641 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
29642 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29643 esac
29644 fi
29645 cd ..
29646 rm -f -r conftest.dir
29647fi
29648
29649# Standard set of common directories for X headers.
29650# Check X11 before X11Rn because it is often a symlink to the current release.
29651ac_x_header_dirs='
29652/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000029653/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000029654/usr/X11R6/include
29655/usr/X11R5/include
29656/usr/X11R4/include
29657
29658/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000029659/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000029660/usr/include/X11R6
29661/usr/include/X11R5
29662/usr/include/X11R4
29663
29664/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000029665/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000029666/usr/local/X11R6/include
29667/usr/local/X11R5/include
29668/usr/local/X11R4/include
29669
29670/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000029671/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000029672/usr/local/include/X11R6
29673/usr/local/include/X11R5
29674/usr/local/include/X11R4
29675
29676/usr/X386/include
29677/usr/x386/include
29678/usr/XFree86/include/X11
29679
29680/usr/include
29681/usr/local/include
29682/usr/unsupported/include
29683/usr/athena/include
29684/usr/local/x11r5/include
29685/usr/lpp/Xamples/include
29686
29687/usr/openwin/include
29688/usr/openwin/share/include'
29689
29690if test "$ac_x_includes" = no; then
29691 # Guess where to find include files, by looking for Xlib.h.
29692 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000029693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000029694/* end confdefs.h. */
29695#include <X11/Xlib.h>
29696_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029697if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000029698 # We can compile using X headers with no special include directory.
29699ac_x_includes=
29700else
cristyc7083c12009-10-14 03:16:55 +000029701 for ac_dir in $ac_x_header_dirs; do
29702 if test -r "$ac_dir/X11/Xlib.h"; then
29703 ac_x_includes=$ac_dir
29704 break
29705 fi
29706done
29707fi
cristyda16f162011-02-19 23:52:17 +000029708rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000029709fi # $ac_x_includes = no
29710
29711if test "$ac_x_libraries" = no; then
29712 # Check for the libraries.
29713 # See if we find them without any special options.
29714 # Don't add to $LIBS permanently.
29715 ac_save_LIBS=$LIBS
29716 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000029718/* end confdefs.h. */
29719#include <X11/Xlib.h>
29720int
29721main ()
29722{
29723XrmInitialize ()
29724 ;
29725 return 0;
29726}
29727_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029728if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000029729 LIBS=$ac_save_LIBS
29730# We can link X programs with no special library path.
29731ac_x_libraries=
29732else
cristy8b350f62009-11-15 23:12:43 +000029733 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000029734for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29735do
29736 # Don't even attempt the hair of trying to link an X program!
29737 for ac_extension in a so sl dylib la dll; do
29738 if test -r "$ac_dir/libX11.$ac_extension"; then
29739 ac_x_libraries=$ac_dir
29740 break 2
29741 fi
29742 done
29743done
29744fi
cristy8b350f62009-11-15 23:12:43 +000029745rm -f core conftest.err conftest.$ac_objext \
29746 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000029747fi # $ac_x_libraries = no
29748
29749case $ac_x_includes,$ac_x_libraries in #(
29750 no,* | *,no | *\'*)
29751 # Didn't find X, or a directory has "'" in its name.
29752 ac_cv_have_x="have_x=no";; #(
29753 *)
29754 # Record where we found X for the cache.
29755 ac_cv_have_x="have_x=yes\
29756 ac_x_includes='$ac_x_includes'\
29757 ac_x_libraries='$ac_x_libraries'"
29758esac
29759fi
29760;; #(
29761 *) have_x=yes;;
29762 esac
29763 eval "$ac_cv_have_x"
29764fi # $with_x != no
29765
29766if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000029767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000029768$as_echo "$have_x" >&6; }
29769 no_x=yes
29770else
29771 # If each of the values was on the command line, it overrides each guess.
29772 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29773 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29774 # Update the cache value to reflect the command line values.
29775 ac_cv_have_x="have_x=yes\
29776 ac_x_includes='$x_includes'\
29777 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000029779$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29780fi
29781
cristy3ed852e2009-09-05 21:47:34 +000029782if test "$no_x" = yes; then
29783 # Not all programs may use this symbol, but it does not hurt to define it.
29784
cristy8b350f62009-11-15 23:12:43 +000029785$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029786
29787 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29788else
29789 if test -n "$x_includes"; then
29790 X_CFLAGS="$X_CFLAGS -I$x_includes"
29791 fi
29792
29793 # It would also be nice to do this for all -L options, not just this one.
29794 if test -n "$x_libraries"; then
29795 X_LIBS="$X_LIBS -L$x_libraries"
29796 # For Solaris; some versions of Sun CC require a space after -R and
29797 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000029798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000029799$as_echo_n "checking whether -R must be followed by a space... " >&6; }
29800 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29801 ac_xsave_c_werror_flag=$ac_c_werror_flag
29802 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000029803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029804/* end confdefs.h. */
29805
29806int
29807main ()
29808{
29809
29810 ;
29811 return 0;
29812}
29813_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029814if ac_fn_c_try_link "$LINENO"; then :
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000029816$as_echo "no" >&6; }
29817 X_LIBS="$X_LIBS -R$x_libraries"
29818else
cristy8b350f62009-11-15 23:12:43 +000029819 LIBS="$ac_xsave_LIBS -R $x_libraries"
29820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029821/* end confdefs.h. */
29822
29823int
29824main ()
29825{
29826
29827 ;
29828 return 0;
29829}
29830_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029831if ac_fn_c_try_link "$LINENO"; then :
29832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000029833$as_echo "yes" >&6; }
29834 X_LIBS="$X_LIBS -R $x_libraries"
29835else
cristy8b350f62009-11-15 23:12:43 +000029836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000029837$as_echo "neither works" >&6; }
29838fi
cristy8b350f62009-11-15 23:12:43 +000029839rm -f core conftest.err conftest.$ac_objext \
29840 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029841fi
cristy8b350f62009-11-15 23:12:43 +000029842rm -f core conftest.err conftest.$ac_objext \
29843 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029844 ac_c_werror_flag=$ac_xsave_c_werror_flag
29845 LIBS=$ac_xsave_LIBS
29846 fi
29847
29848 # Check for system-dependent libraries X programs must link with.
29849 # Do this before checking for the system-independent R6 libraries
29850 # (-lICE), since we may need -lsocket or whatever for X linking.
29851
29852 if test "$ISC" = yes; then
29853 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29854 else
29855 # Martyn Johnson says this is needed for Ultrix, if the X
29856 # libraries were built with DECnet support. And Karl Berry says
29857 # the Alpha needs dnet_stub (dnet does not exist).
29858 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000029859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029860/* end confdefs.h. */
29861
29862/* Override any GCC internal prototype to avoid an error.
29863 Use char because int might match the return type of a GCC
29864 builtin and then its argument prototype would still apply. */
29865#ifdef __cplusplus
29866extern "C"
29867#endif
29868char XOpenDisplay ();
29869int
29870main ()
29871{
29872return XOpenDisplay ();
29873 ;
29874 return 0;
29875}
29876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029877if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029878
cristy8b350f62009-11-15 23:12:43 +000029879else
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000029881$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029882if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029883 $as_echo_n "(cached) " >&6
29884else
29885 ac_check_lib_save_LIBS=$LIBS
29886LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029888/* end confdefs.h. */
29889
29890/* Override any GCC internal prototype to avoid an error.
29891 Use char because int might match the return type of a GCC
29892 builtin and then its argument prototype would still apply. */
29893#ifdef __cplusplus
29894extern "C"
29895#endif
29896char dnet_ntoa ();
29897int
29898main ()
29899{
29900return dnet_ntoa ();
29901 ;
29902 return 0;
29903}
29904_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029905if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029906 ac_cv_lib_dnet_dnet_ntoa=yes
29907else
cristy8b350f62009-11-15 23:12:43 +000029908 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000029909fi
cristy8b350f62009-11-15 23:12:43 +000029910rm -f core conftest.err conftest.$ac_objext \
29911 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029912LIBS=$ac_check_lib_save_LIBS
29913fi
cristy8b350f62009-11-15 23:12:43 +000029914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000029915$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000029916if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029917 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29918fi
29919
29920 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000029921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000029922$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029923if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029924 $as_echo_n "(cached) " >&6
29925else
29926 ac_check_lib_save_LIBS=$LIBS
29927LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029929/* end confdefs.h. */
29930
29931/* Override any GCC internal prototype to avoid an error.
29932 Use char because int might match the return type of a GCC
29933 builtin and then its argument prototype would still apply. */
29934#ifdef __cplusplus
29935extern "C"
29936#endif
29937char dnet_ntoa ();
29938int
29939main ()
29940{
29941return dnet_ntoa ();
29942 ;
29943 return 0;
29944}
29945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029946if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 ac_cv_lib_dnet_stub_dnet_ntoa=yes
29948else
cristy8b350f62009-11-15 23:12:43 +000029949 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000029950fi
cristy8b350f62009-11-15 23:12:43 +000029951rm -f core conftest.err conftest.$ac_objext \
29952 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029953LIBS=$ac_check_lib_save_LIBS
29954fi
cristy8b350f62009-11-15 23:12:43 +000029955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000029956$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000029957if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029958 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29959fi
29960
29961 fi
29962fi
cristy8b350f62009-11-15 23:12:43 +000029963rm -f core conftest.err conftest.$ac_objext \
29964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029965 LIBS="$ac_xsave_LIBS"
29966
29967 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29968 # to get the SysV transport functions.
29969 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29970 # needs -lnsl.
29971 # The nsl library prevents programs from opening the X display
29972 # on Irix 5.2, according to T.E. Dickey.
29973 # The functions gethostbyname, getservbyname, and inet_addr are
29974 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000029975 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000029976if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029977
cristy3ed852e2009-09-05 21:47:34 +000029978fi
29979
cristy3ed852e2009-09-05 21:47:34 +000029980 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000029981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000029982$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029983if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029984 $as_echo_n "(cached) " >&6
29985else
29986 ac_check_lib_save_LIBS=$LIBS
29987LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029989/* end confdefs.h. */
29990
29991/* Override any GCC internal prototype to avoid an error.
29992 Use char because int might match the return type of a GCC
29993 builtin and then its argument prototype would still apply. */
29994#ifdef __cplusplus
29995extern "C"
29996#endif
29997char gethostbyname ();
29998int
29999main ()
30000{
30001return gethostbyname ();
30002 ;
30003 return 0;
30004}
30005_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030006if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030007 ac_cv_lib_nsl_gethostbyname=yes
30008else
cristy8b350f62009-11-15 23:12:43 +000030009 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000030010fi
cristy8b350f62009-11-15 23:12:43 +000030011rm -f core conftest.err conftest.$ac_objext \
30012 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030013LIBS=$ac_check_lib_save_LIBS
30014fi
cristy8b350f62009-11-15 23:12:43 +000030015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000030016$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000030017if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30019fi
30020
30021 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000030022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000030023$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030024if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030025 $as_echo_n "(cached) " >&6
30026else
30027 ac_check_lib_save_LIBS=$LIBS
30028LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030030/* end confdefs.h. */
30031
30032/* Override any GCC internal prototype to avoid an error.
30033 Use char because int might match the return type of a GCC
30034 builtin and then its argument prototype would still apply. */
30035#ifdef __cplusplus
30036extern "C"
30037#endif
30038char gethostbyname ();
30039int
30040main ()
30041{
30042return gethostbyname ();
30043 ;
30044 return 0;
30045}
30046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030048 ac_cv_lib_bsd_gethostbyname=yes
30049else
cristy8b350f62009-11-15 23:12:43 +000030050 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000030051fi
cristy8b350f62009-11-15 23:12:43 +000030052rm -f core conftest.err conftest.$ac_objext \
30053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030054LIBS=$ac_check_lib_save_LIBS
30055fi
cristy8b350f62009-11-15 23:12:43 +000030056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000030057$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000030058if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30060fi
30061
30062 fi
30063 fi
30064
30065 # lieder@skyler.mavd.honeywell.com says without -lsocket,
30066 # socket/setsockopt and other routines are undefined under SCO ODT
30067 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
30068 # on later versions), says Simon Leinen: it contains gethostby*
30069 # variants that don't use the name server (or something). -lsocket
30070 # must be given before -lnsl if both are needed. We assume that
30071 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000030072 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000030073if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030074
cristy3ed852e2009-09-05 21:47:34 +000030075fi
30076
cristy3ed852e2009-09-05 21:47:34 +000030077 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000030078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000030079$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030080if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030081 $as_echo_n "(cached) " >&6
30082else
30083 ac_check_lib_save_LIBS=$LIBS
30084LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030086/* end confdefs.h. */
30087
30088/* Override any GCC internal prototype to avoid an error.
30089 Use char because int might match the return type of a GCC
30090 builtin and then its argument prototype would still apply. */
30091#ifdef __cplusplus
30092extern "C"
30093#endif
30094char connect ();
30095int
30096main ()
30097{
30098return connect ();
30099 ;
30100 return 0;
30101}
30102_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030103if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030104 ac_cv_lib_socket_connect=yes
30105else
cristy8b350f62009-11-15 23:12:43 +000030106 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000030107fi
cristy8b350f62009-11-15 23:12:43 +000030108rm -f core conftest.err conftest.$ac_objext \
30109 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030110LIBS=$ac_check_lib_save_LIBS
30111fi
cristy8b350f62009-11-15 23:12:43 +000030112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000030113$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000030114if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030115 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30116fi
30117
30118 fi
30119
30120 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000030121 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000030122if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030123
cristy3ed852e2009-09-05 21:47:34 +000030124fi
30125
cristy3ed852e2009-09-05 21:47:34 +000030126 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000030127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000030128$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030129if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030130 $as_echo_n "(cached) " >&6
30131else
30132 ac_check_lib_save_LIBS=$LIBS
30133LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030135/* end confdefs.h. */
30136
30137/* Override any GCC internal prototype to avoid an error.
30138 Use char because int might match the return type of a GCC
30139 builtin and then its argument prototype would still apply. */
30140#ifdef __cplusplus
30141extern "C"
30142#endif
30143char remove ();
30144int
30145main ()
30146{
30147return remove ();
30148 ;
30149 return 0;
30150}
30151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030152if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030153 ac_cv_lib_posix_remove=yes
30154else
cristy8b350f62009-11-15 23:12:43 +000030155 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000030156fi
cristy8b350f62009-11-15 23:12:43 +000030157rm -f core conftest.err conftest.$ac_objext \
30158 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030159LIBS=$ac_check_lib_save_LIBS
30160fi
cristy8b350f62009-11-15 23:12:43 +000030161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000030162$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000030163if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030164 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30165fi
30166
30167 fi
30168
30169 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000030170 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000030171if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030172
cristy3ed852e2009-09-05 21:47:34 +000030173fi
30174
cristy3ed852e2009-09-05 21:47:34 +000030175 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000030176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000030177$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030178if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030179 $as_echo_n "(cached) " >&6
30180else
30181 ac_check_lib_save_LIBS=$LIBS
30182LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030184/* end confdefs.h. */
30185
30186/* Override any GCC internal prototype to avoid an error.
30187 Use char because int might match the return type of a GCC
30188 builtin and then its argument prototype would still apply. */
30189#ifdef __cplusplus
30190extern "C"
30191#endif
30192char shmat ();
30193int
30194main ()
30195{
30196return shmat ();
30197 ;
30198 return 0;
30199}
30200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030201if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030202 ac_cv_lib_ipc_shmat=yes
30203else
cristy8b350f62009-11-15 23:12:43 +000030204 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000030205fi
cristy8b350f62009-11-15 23:12:43 +000030206rm -f core conftest.err conftest.$ac_objext \
30207 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030208LIBS=$ac_check_lib_save_LIBS
30209fi
cristy8b350f62009-11-15 23:12:43 +000030210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000030211$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000030212if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30214fi
30215
30216 fi
30217 fi
30218
30219 # Check for libraries that X11R6 Xt/Xaw programs need.
30220 ac_save_LDFLAGS=$LDFLAGS
30221 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30222 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30223 # check for ICE first), but we must link in the order -lSM -lICE or
30224 # we get undefined symbols. So assume we have SM if we have ICE.
30225 # These have to be linked with before -lX11, unlike the other
30226 # libraries we check for below, so use a different variable.
30227 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000030228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000030229$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030230if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030231 $as_echo_n "(cached) " >&6
30232else
30233 ac_check_lib_save_LIBS=$LIBS
30234LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030236/* end confdefs.h. */
30237
30238/* Override any GCC internal prototype to avoid an error.
30239 Use char because int might match the return type of a GCC
30240 builtin and then its argument prototype would still apply. */
30241#ifdef __cplusplus
30242extern "C"
30243#endif
30244char IceConnectionNumber ();
30245int
30246main ()
30247{
30248return IceConnectionNumber ();
30249 ;
30250 return 0;
30251}
30252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030254 ac_cv_lib_ICE_IceConnectionNumber=yes
30255else
cristy8b350f62009-11-15 23:12:43 +000030256 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000030257fi
cristy8b350f62009-11-15 23:12:43 +000030258rm -f core conftest.err conftest.$ac_objext \
30259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030260LIBS=$ac_check_lib_save_LIBS
30261fi
cristy8b350f62009-11-15 23:12:43 +000030262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000030263$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000030264if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030265 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30266fi
30267
30268 LDFLAGS=$ac_save_LDFLAGS
30269
30270fi
30271
30272if test "$no_x" != 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000030273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30274$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000030276$as_echo_n "checking for X11... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30278$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030279 LDFLAGS="$LDFLAGS $X_LIBS"
30280 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
30281 LIBS="$X11_LIBS $LIBS"
30282 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
30283
30284
cristy8b350f62009-11-15 23:12:43 +000030285$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030286
30287 #
30288 # Check for X11 shared memory extension
30289 #
30290 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000030291 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000030292if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030293 have_shmctl='yes'
30294fi
30295
30296 if test "$have_shmctl" != 'yes'; then
30297 PERSIST_LIBS=$LIBS
30298 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000030299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030300/* end confdefs.h. */
30301
30302/* Override any GCC internal prototype to avoid an error.
30303 Use char because int might match the return type of a GCC
30304 builtin and then its argument prototype would still apply. */
30305#ifdef __cplusplus
30306extern "C"
30307#endif
30308char shmctl ();
30309int
30310main ()
30311{
30312return shmctl ();
30313 ;
30314 return 0;
30315}
30316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030317if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030318 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000030319fi
cristy8b350f62009-11-15 23:12:43 +000030320rm -f core conftest.err conftest.$ac_objext \
30321 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030322 LIBS=$PERSIST_LIBS
30323 fi
30324
30325 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030327$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030328if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030329 $as_echo_n "(cached) " >&6
30330else
30331 ac_check_lib_save_LIBS=$LIBS
30332LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030334/* end confdefs.h. */
30335
30336/* Override any GCC internal prototype to avoid an error.
30337 Use char because int might match the return type of a GCC
30338 builtin and then its argument prototype would still apply. */
30339#ifdef __cplusplus
30340extern "C"
30341#endif
30342char XShmAttach ();
30343int
30344main ()
30345{
30346return XShmAttach ();
30347 ;
30348 return 0;
30349}
30350_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030351if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030352 ac_cv_lib_Xext_XShmAttach=yes
30353else
cristy8b350f62009-11-15 23:12:43 +000030354 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000030355fi
cristy8b350f62009-11-15 23:12:43 +000030356rm -f core conftest.err conftest.$ac_objext \
30357 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030358LIBS=$ac_check_lib_save_LIBS
30359fi
cristy8b350f62009-11-15 23:12:43 +000030360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000030361$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000030362if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030363 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000030364$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030365
30366fi
30367
30368 fi
30369
30370 #
30371 # Check for X11 shape extension
30372 #
cristy8b350f62009-11-15 23:12:43 +000030373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000030374$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030375if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030376 $as_echo_n "(cached) " >&6
30377else
30378 ac_check_lib_save_LIBS=$LIBS
30379LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030381/* 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 XShapeCombineMask ();
30390int
30391main ()
30392{
30393return XShapeCombineMask ();
30394 ;
30395 return 0;
30396}
30397_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030398if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030399 ac_cv_lib_Xext_XShapeCombineMask=yes
30400else
cristy8b350f62009-11-15 23:12:43 +000030401 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000030402fi
cristy8b350f62009-11-15 23:12:43 +000030403rm -f core conftest.err conftest.$ac_objext \
30404 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030405LIBS=$ac_check_lib_save_LIBS
30406fi
cristy8b350f62009-11-15 23:12:43 +000030407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000030408$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000030409if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030410 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000030411$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030412
30413fi
30414
cristy8b350f62009-11-15 23:12:43 +000030415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000030416$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030417if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030418 $as_echo_n "(cached) " >&6
30419else
30420 ac_check_lib_save_LIBS=$LIBS
30421LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030423/* end confdefs.h. */
30424
30425/* Override any GCC internal prototype to avoid an error.
30426 Use char because int might match the return type of a GCC
30427 builtin and then its argument prototype would still apply. */
30428#ifdef __cplusplus
30429extern "C"
30430#endif
30431char XtSetEventDispatcher ();
30432int
30433main ()
30434{
30435return XtSetEventDispatcher ();
30436 ;
30437 return 0;
30438}
30439_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030440if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030441 ac_cv_lib_Xt_XtSetEventDispatcher=yes
30442else
cristy8b350f62009-11-15 23:12:43 +000030443 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000030444fi
cristy8b350f62009-11-15 23:12:43 +000030445rm -f core conftest.err conftest.$ac_objext \
30446 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030447LIBS=$ac_check_lib_save_LIBS
30448fi
cristy8b350f62009-11-15 23:12:43 +000030449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000030450$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000030451if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030452 XT_LIBS='-lXt'
30453fi
30454
30455 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
30456fi
30457if test "$no_x" != 'yes'; then
30458 have_x='yes'
30459else
30460 have_x='no'
30461fi
cristy73bd4a52010-10-05 11:24:23 +000030462 if test "$have_x" = 'yes'; then
30463 X11_DELEGATE_TRUE=
30464 X11_DELEGATE_FALSE='#'
30465else
30466 X11_DELEGATE_TRUE='#'
30467 X11_DELEGATE_FALSE=
30468fi
30469
cristy3ed852e2009-09-05 21:47:34 +000030470
30471
30472
30473
30474#
30475# Check for ZLIB
30476#
30477
30478# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000030479if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030480 withval=$with_zlib; with_zlib=$withval
30481else
30482 with_zlib='yes'
30483fi
30484
30485
30486if test "$with_zlib" != 'yes'; then
30487 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
30488fi
30489
30490have_zlib='no'
cristy32f75d42015-06-05 18:46:23 +000030491ZLIB_CFLAGS=""
30492ZLIB_LIBS=""
30493ZLIB_PKG=""
30494if test "x$with_zlib" = "xyes"; then
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030496$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000030497
30498pkg_failed=no
30499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000030500$as_echo_n "checking for ZLIB... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000030501
30502if test -n "$ZLIB_CFLAGS"; then
30503 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
30504 elif test -n "$PKG_CONFIG"; then
30505 if test -n "$PKG_CONFIG" && \
30506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
30507 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
30508 ac_status=$?
30509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30510 test $ac_status = 0; }; then
30511 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
30512 test "x$?" != "x0" && pkg_failed=yes
cristy3ed852e2009-09-05 21:47:34 +000030513else
cristy32f75d42015-06-05 18:46:23 +000030514 pkg_failed=yes
30515fi
30516 else
30517 pkg_failed=untried
30518fi
30519if test -n "$ZLIB_LIBS"; then
30520 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
30521 elif test -n "$PKG_CONFIG"; then
30522 if test -n "$PKG_CONFIG" && \
30523 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
30524 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
30525 ac_status=$?
30526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30527 test $ac_status = 0; }; then
30528 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
30529 test "x$?" != "x0" && pkg_failed=yes
30530else
30531 pkg_failed=yes
30532fi
30533 else
30534 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000030535fi
30536
30537
cristy3ed852e2009-09-05 21:47:34 +000030538
cristy32f75d42015-06-05 18:46:23 +000030539if test $pkg_failed = yes; then
30540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030542
cristy32f75d42015-06-05 18:46:23 +000030543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30544 _pkg_short_errors_supported=yes
cristy3ed852e2009-09-05 21:47:34 +000030545else
cristy32f75d42015-06-05 18:46:23 +000030546 _pkg_short_errors_supported=no
cristy3ed852e2009-09-05 21:47:34 +000030547fi
cristy32f75d42015-06-05 18:46:23 +000030548 if test $_pkg_short_errors_supported = yes; then
30549 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
cristy3ed852e2009-09-05 21:47:34 +000030550 else
cristy32f75d42015-06-05 18:46:23 +000030551 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
30552 fi
30553 # Put the nasty error message in config.log where it belongs
30554 echo "$ZLIB_PKG_ERRORS" >&5
30555
30556 have_zlib=no
30557elif test $pkg_failed = untried; then
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30559$as_echo "no" >&6; }
30560 have_zlib=no
30561else
30562 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
30563 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30565$as_echo "yes" >&6; }
30566 have_zlib=yes
30567fi
30568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30569$as_echo "" >&6; }
30570fi
30571
30572if test "$have_zlib" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030573
cristy8b350f62009-11-15 23:12:43 +000030574$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030575
cristy32f75d42015-06-05 18:46:23 +000030576 CFLAGS="$ZLIB_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030577fi
cristy32f75d42015-06-05 18:46:23 +000030578
cristy73bd4a52010-10-05 11:24:23 +000030579 if test "$have_zlib" = 'yes'; then
30580 ZLIB_DELEGATE_TRUE=
30581 ZLIB_DELEGATE_FALSE='#'
30582else
30583 ZLIB_DELEGATE_TRUE='#'
30584 ZLIB_DELEGATE_FALSE=
30585fi
30586
cristy3ed852e2009-09-05 21:47:34 +000030587
30588
cristy32f75d42015-06-05 18:46:23 +000030589
30590
cristy5eef09f2012-10-16 12:08:28 +000030591# whether modules are built or not.
30592with_ltdl='yes'
30593have_ltdl='no'
30594LTDL_LIBS=''
30595if test "$build_modules" != 'no' ; then
cristyad38abe2012-12-23 23:03:21 +000030596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30597$as_echo "-------------------------------------------------------------" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000030598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
30599$as_echo_n "checking for libltdl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30601$as_echo "" >&6; }
cristy5eef09f2012-10-16 12:08:28 +000030602 failed=0
30603 passed=0
30604 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
30605if test "x$ac_cv_header_ltdl_h" = xyes; then :
30606 passed=`expr $passed + 1`
30607else
30608 failed=`expr $failed + 1`
30609fi
30610
30611
30612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
30613$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
30614if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
30615 $as_echo_n "(cached) " >&6
30616else
30617 ac_check_lib_save_LIBS=$LIBS
30618LIBS="-lltdl $LIBS"
30619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620/* end confdefs.h. */
30621
30622/* Override any GCC internal prototype to avoid an error.
30623 Use char because int might match the return type of a GCC
30624 builtin and then its argument prototype would still apply. */
30625#ifdef __cplusplus
30626extern "C"
30627#endif
30628char lt_dlinit ();
30629int
30630main ()
30631{
30632return lt_dlinit ();
30633 ;
30634 return 0;
30635}
30636_ACEOF
30637if ac_fn_c_try_link "$LINENO"; then :
30638 ac_cv_lib_ltdl_lt_dlinit=yes
30639else
30640 ac_cv_lib_ltdl_lt_dlinit=no
30641fi
30642rm -f core conftest.err conftest.$ac_objext \
30643 conftest$ac_exeext conftest.$ac_ext
30644LIBS=$ac_check_lib_save_LIBS
30645fi
30646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
30647$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
30648if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
30649 passed=`expr $passed + 1`
30650else
30651 failed=`expr $failed + 1`
30652fi
30653
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
30655$as_echo_n "checking if libltdl package is complete... " >&6; }
30656 if test $passed -gt 0 ; then
30657 if test $failed -gt 0 ; then
30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30659$as_echo "no -- some components failed test" >&6; }
30660 have_ltdl='no (failed tests)'
30661 else
30662 LTDL_LIBS='-lltdl'
30663 LIBS="$LTDL_LIBS $LIBS"
30664
30665$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
30666
30667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30668$as_echo "yes" >&6; }
30669 have_ltdl='yes'
30670 fi
30671 else
30672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30673$as_echo "no" >&6; }
30674 fi
cristyaf4cbf32012-10-16 23:47:41 +000030675 if test "$have_ltdl" != 'yes' ; then
30676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30678as_fn_error 1 "libltdl is required for modules build
30679See \`config.log' for more details" "$LINENO" 5; }
30680 fi
cristy5eef09f2012-10-16 12:08:28 +000030681fi
30682 if test "$have_ltdl" != 'no'; then
30683 WITH_LTDL_TRUE=
30684 WITH_LTDL_FALSE='#'
30685else
30686 WITH_LTDL_TRUE='#'
30687 WITH_LTDL_FALSE=
30688fi
30689
30690
cristy3ed852e2009-09-05 21:47:34 +000030691#
30692# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
30693#
30694LIB_DL=''
30695if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000030697$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030698if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030699 $as_echo_n "(cached) " >&6
30700else
30701 ac_check_lib_save_LIBS=$LIBS
30702LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030704/* end confdefs.h. */
30705
30706/* Override any GCC internal prototype to avoid an error.
30707 Use char because int might match the return type of a GCC
30708 builtin and then its argument prototype would still apply. */
30709#ifdef __cplusplus
30710extern "C"
30711#endif
30712char dlopen ();
30713int
30714main ()
30715{
30716return dlopen ();
30717 ;
30718 return 0;
30719}
30720_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030721if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030722 ac_cv_lib_dl_dlopen=yes
30723else
cristy8b350f62009-11-15 23:12:43 +000030724 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000030725fi
cristy8b350f62009-11-15 23:12:43 +000030726rm -f core conftest.err conftest.$ac_objext \
30727 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030728LIBS=$ac_check_lib_save_LIBS
30729fi
cristy8b350f62009-11-15 23:12:43 +000030730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030731$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030732if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030733 LIB_DL='-ldl'
30734fi
30735
30736 LIBS="$LIB_DL $LIBS"
30737fi
30738
30739
30740
30741#
cristy5a3dc992014-12-05 19:50:04 +000030742# Set Apple font directory.
30743#
30744
30745# Check whether --with-apple-font-dir was given.
30746if test "${with_apple_font_dir+set}" = set; then :
30747 withval=$with_apple_font_dir; with_apple_font_dir=$withval
30748else
30749 with_apple_font_dir='default'
30750fi
30751
30752
30753if test "$with_apple_font_dir" != 'default'; then
30754 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
30755fi
30756
30757
30758#
cristy3ed852e2009-09-05 21:47:34 +000030759# Check for Autotrace delegate library.
30760#
30761
30762# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000030763if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030764 withval=$with_autotrace; with_autotrace=$withval
30765else
30766 with_autotrace='no'
30767fi
30768
30769
30770if test "$with_autotrace" != 'yes'; then
30771 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
30772fi
30773
30774have_autotrace='no'
30775AUTOTRACE_CFLAGS=""
30776AUTOTRACE_LIBS=""
30777AUTOTRACE_PKG=""
30778if test "x$with_autotrace" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000030779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000030780$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030781
30782pkg_failed=no
30783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
30784$as_echo_n "checking for AUTOTRACE... " >&6; }
30785
30786if test -n "$AUTOTRACE_CFLAGS"; then
30787 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
30788 elif test -n "$PKG_CONFIG"; then
30789 if test -n "$PKG_CONFIG" && \
30790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
30791 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
30792 ac_status=$?
30793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30794 test $ac_status = 0; }; then
30795 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030796 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030797else
30798 pkg_failed=yes
30799fi
30800 else
30801 pkg_failed=untried
30802fi
30803if test -n "$AUTOTRACE_LIBS"; then
30804 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
30805 elif test -n "$PKG_CONFIG"; then
30806 if test -n "$PKG_CONFIG" && \
30807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
30808 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
30809 ac_status=$?
30810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30811 test $ac_status = 0; }; then
30812 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000030813 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000030814else
30815 pkg_failed=yes
30816fi
30817 else
30818 pkg_failed=untried
30819fi
30820
30821
30822
30823if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000030824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030826
30827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30828 _pkg_short_errors_supported=yes
30829else
30830 _pkg_short_errors_supported=no
30831fi
30832 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000030833 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030834 else
cristy146497a2015-05-17 22:46:16 +000030835 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000030836 fi
30837 # Put the nasty error message in config.log where it belongs
30838 echo "$AUTOTRACE_PKG_ERRORS" >&5
30839
cristy146497a2015-05-17 22:46:16 +000030840 have_autotrace=no
cristy73bd4a52010-10-05 11:24:23 +000030841elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000030842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000030844 have_autotrace=no
30845else
30846 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
30847 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
30848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30849$as_echo "yes" >&6; }
30850 have_autotrace=yes
30851fi
cristy32f75d42015-06-05 18:46:23 +000030852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000030853$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030854fi
30855
30856if test "$have_autotrace" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030857
cristy8b350f62009-11-15 23:12:43 +000030858$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030859
cristy32f75d42015-06-05 18:46:23 +000030860 CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000030861fi
30862
cristy73bd4a52010-10-05 11:24:23 +000030863 if test "$have_autotrace" = 'yes'; then
30864 AUTOTRACE_DELEGATE_TRUE=
30865 AUTOTRACE_DELEGATE_FALSE='#'
30866else
30867 AUTOTRACE_DELEGATE_TRUE='#'
30868 AUTOTRACE_DELEGATE_FALSE=
30869fi
30870
cristy3ed852e2009-09-05 21:47:34 +000030871
30872
30873
30874
30875#
30876# Check for Display Postscript delegate library.
30877#
30878
30879# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000030880if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030881 withval=$with_dps; with_dps=$withval
30882else
30883 with_dps='yes'
30884fi
30885
30886
30887if test "$with_dps" != 'yes'; then
30888 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
30889fi
30890
30891have_dps='no'
30892DPS_LIBS=''
30893if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000030894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30895$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000030896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000030897$as_echo_n "checking for DPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000030898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30899$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000030900 failed=0
30901 passed=0
30902 PERSIST_CPPFLAGS="$CPPFLAGS"
30903 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000030904 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 +000030905if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030906 passed=`expr $passed + 1`
30907else
30908 failed=`expr $failed + 1`
30909fi
30910
30911
30912 # DPS issues:
30913 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
30914 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
30915 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
30916 # ImageMagick itself doesn't use -lXt.
30917 have_libdps='no'
30918 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000030919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000030920$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030921if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030922 $as_echo_n "(cached) " >&6
30923else
30924 ac_check_lib_save_LIBS=$LIBS
30925LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030927/* end confdefs.h. */
30928
30929/* Override any GCC internal prototype to avoid an error.
30930 Use char because int might match the return type of a GCC
30931 builtin and then its argument prototype would still apply. */
30932#ifdef __cplusplus
30933extern "C"
30934#endif
30935char DPSInitialize ();
30936int
30937main ()
30938{
30939return DPSInitialize ();
30940 ;
30941 return 0;
30942}
30943_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030944if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030945 ac_cv_lib_dps_DPSInitialize=yes
30946else
cristy8b350f62009-11-15 23:12:43 +000030947 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000030948fi
cristy8b350f62009-11-15 23:12:43 +000030949rm -f core conftest.err conftest.$ac_objext \
30950 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030951LIBS=$ac_check_lib_save_LIBS
30952fi
cristy8b350f62009-11-15 23:12:43 +000030953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000030954$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000030955if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030956 have_libdps='yes'
30957else
30958 have_libdps='no'
30959fi
30960
30961 if test "$have_libdps" != 'yes'; then
30962 # Unset cache variable so we can try again.
30963 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000030964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000030965$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030966if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030967 $as_echo_n "(cached) " >&6
30968else
30969 ac_check_lib_save_LIBS=$LIBS
30970LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030972/* end confdefs.h. */
30973
30974/* Override any GCC internal prototype to avoid an error.
30975 Use char because int might match the return type of a GCC
30976 builtin and then its argument prototype would still apply. */
30977#ifdef __cplusplus
30978extern "C"
30979#endif
30980char DPSInitialize ();
30981int
30982main ()
30983{
30984return DPSInitialize ();
30985 ;
30986 return 0;
30987}
30988_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030989if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030990 ac_cv_lib_dps_DPSInitialize=yes
30991else
cristy8b350f62009-11-15 23:12:43 +000030992 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000030993fi
cristy8b350f62009-11-15 23:12:43 +000030994rm -f core conftest.err conftest.$ac_objext \
30995 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030996LIBS=$ac_check_lib_save_LIBS
30997fi
cristy8b350f62009-11-15 23:12:43 +000030998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000030999$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000031000if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031001 have_libdps='yes'
31002else
31003 have_libdps='no'
31004fi
31005
31006 if test "$have_libdps" = 'yes'; then
31007 LIBDPS_XT='-lXt'
31008 fi
31009 fi
31010 if test "$have_libdps" = 'yes'; then
31011 passed=`expr $passed + 1`
31012 else
31013 failed=`expr $failed + 1`
31014 fi
cristy8b350f62009-11-15 23:12:43 +000031015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000031016$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031017if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031018 $as_echo_n "(cached) " >&6
31019else
31020 ac_check_lib_save_LIBS=$LIBS
31021LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031023/* end confdefs.h. */
31024
31025/* Override any GCC internal prototype to avoid an error.
31026 Use char because int might match the return type of a GCC
31027 builtin and then its argument prototype would still apply. */
31028#ifdef __cplusplus
31029extern "C"
31030#endif
31031char XDPSPixelsPerPoint ();
31032int
31033main ()
31034{
31035return XDPSPixelsPerPoint ();
31036 ;
31037 return 0;
31038}
31039_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031040if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031041 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
31042else
cristy8b350f62009-11-15 23:12:43 +000031043 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000031044fi
cristy8b350f62009-11-15 23:12:43 +000031045rm -f core conftest.err conftest.$ac_objext \
31046 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031047LIBS=$ac_check_lib_save_LIBS
31048fi
cristy8b350f62009-11-15 23:12:43 +000031049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000031050$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000031051if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031052 passed=`expr $passed + 1`
31053else
31054 failed=`expr $failed + 1`
31055fi
31056
cristy8b350f62009-11-15 23:12:43 +000031057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031058$as_echo_n "checking if DPS package is complete... " >&6; }
31059 if test $passed -gt 0; then
31060 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31062$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031063 have_dps='no (failed tests)'
31064 CPPFLAGS="$PERSIST_CPPFLAGS"
31065 else
31066 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
31067 LIBS="$DPS_LIBS $LIBS"
31068
cristy8b350f62009-11-15 23:12:43 +000031069$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031070
cristyad38abe2012-12-23 23:03:21 +000031071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31072$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031073 have_dps='yes'
31074 fi
31075 else
cristyad38abe2012-12-23 23:03:21 +000031076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31077$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031078 CPPFLAGS=$PERSIST_CPPFLAGS
31079 fi
31080fi
cristy73bd4a52010-10-05 11:24:23 +000031081 if test "$have_dps" = 'yes'; then
31082 DPS_DELEGATE_TRUE=
31083 DPS_DELEGATE_FALSE='#'
31084else
31085 DPS_DELEGATE_TRUE='#'
31086 DPS_DELEGATE_FALSE=
31087fi
31088
cristy3ed852e2009-09-05 21:47:34 +000031089
31090
31091
31092#
cristy430a7312010-01-21 20:44:04 +000031093# Set DejaVu font directory.
31094#
31095
31096# Check whether --with-dejavu-font-dir was given.
31097if test "${with_dejavu_font_dir+set}" = set; then :
31098 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
31099else
31100 with_dejavu_font_dir='default'
31101fi
31102
31103
31104if test "$with_dejavu_font_dir" != 'default'; then
31105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
31106fi
31107
31108
31109#
cristy3ed852e2009-09-05 21:47:34 +000031110# Check for FFTW delegate library.
31111#
31112
31113# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000031114if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031115 withval=$with_fftw; with_fftw=$withval
31116else
31117 with_fftw='yes'
31118fi
31119
31120
31121if test "$with_fftw" != 'yes'; then
31122 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
31123fi
31124
cristy81beccd2011-10-03 18:17:24 +000031125have_fftw='no'
cristy32f75d42015-06-05 18:46:23 +000031126FFTW_CFLAGS=""
31127FFTW_LIBS=""
31128FFTW_PKG=""
31129if test "x$with_fftw" = "xyes"; then
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031131$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031132
31133pkg_failed=no
31134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
31135$as_echo_n "checking for fftw3... " >&6; }
31136
31137if test -n "$fftw3_CFLAGS"; then
31138 pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
31139 elif test -n "$PKG_CONFIG"; then
31140 if test -n "$PKG_CONFIG" && \
31141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
31142 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
31143 ac_status=$?
31144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31145 test $ac_status = 0; }; then
31146 pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
31147 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000031148else
cristy32f75d42015-06-05 18:46:23 +000031149 pkg_failed=yes
31150fi
31151 else
31152 pkg_failed=untried
31153fi
31154if test -n "$fftw3_LIBS"; then
31155 pkg_cv_fftw3_LIBS="$fftw3_LIBS"
31156 elif test -n "$PKG_CONFIG"; then
31157 if test -n "$PKG_CONFIG" && \
31158 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
31159 ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
31160 ac_status=$?
31161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31162 test $ac_status = 0; }; then
31163 pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
31164 test "x$?" != "x0" && pkg_failed=yes
31165else
31166 pkg_failed=yes
31167fi
31168 else
31169 pkg_failed=untried
cristy3ed852e2009-09-05 21:47:34 +000031170fi
31171
cristy81beccd2011-10-03 18:17:24 +000031172
cristy81beccd2011-10-03 18:17:24 +000031173
cristy32f75d42015-06-05 18:46:23 +000031174if test $pkg_failed = yes; then
31175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31176$as_echo "no" >&6; }
cristy81beccd2011-10-03 18:17:24 +000031177
cristy32f75d42015-06-05 18:46:23 +000031178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31179 _pkg_short_errors_supported=yes
31180else
31181 _pkg_short_errors_supported=no
31182fi
31183 if test $_pkg_short_errors_supported = yes; then
31184 fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
cristy81beccd2011-10-03 18:17:24 +000031185 else
cristy32f75d42015-06-05 18:46:23 +000031186 fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
31187 fi
31188 # Put the nasty error message in config.log where it belongs
31189 echo "$fftw3_PKG_ERRORS" >&5
31190
31191 have_fftw=no
31192elif test $pkg_failed = untried; then
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31194$as_echo "no" >&6; }
31195 have_fftw=no
31196else
31197 fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
31198 fftw3_LIBS=$pkg_cv_fftw3_LIBS
31199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31200$as_echo "yes" >&6; }
31201 have_fftw=yes
31202fi
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31204$as_echo "" >&6; }
31205fi
31206
31207if test "$have_fftw" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031208
cristy8b350f62009-11-15 23:12:43 +000031209$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031210
cristyb74ab6e2015-06-06 12:39:54 +000031211 FFTW_CFLAGS="$fftw3_CFLAGS"
31212 FFTW_LIBS="$fftw3_LIBS"
cristy32f75d42015-06-05 18:46:23 +000031213 CFLAGS="$fftw3_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031214fi
cristy32f75d42015-06-05 18:46:23 +000031215
cristy73bd4a52010-10-05 11:24:23 +000031216 if test "$have_fftw" = 'yes'; then
31217 FFTW_DELEGATE_TRUE=
31218 FFTW_DELEGATE_FALSE='#'
31219else
31220 FFTW_DELEGATE_TRUE='#'
31221 FFTW_DELEGATE_FALSE=
31222fi
31223
cristy3ed852e2009-09-05 21:47:34 +000031224
31225
31226
cristy32f75d42015-06-05 18:46:23 +000031227
cristy3ed852e2009-09-05 21:47:34 +000031228#
Cristy6d2f14b2016-04-26 01:41:09 -040031229# Check for FLIF delegate library.
31230#
31231
31232# Check whether --with-flif was given.
31233if test "${with_flif+set}" = set; then :
31234 withval=$with_flif; with_flif=$withval
31235else
31236 with_flif='yes'
31237fi
31238
31239
31240if test "$with_flif" != 'yes'; then
31241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
31242fi
31243
31244have_flif='no'
31245FLIF_LIBS=''
31246if test "$with_flif" != 'no'; then
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31248$as_echo "-------------------------------------------------------------" >&6; }
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
31250$as_echo_n "checking for FLIF... " >&6; }
31251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31252$as_echo "" >&6; }
31253 failed=0
31254 passed=0
31255 ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
31256if test "x$ac_cv_header_flif_h" = xyes; then :
31257 passed=`expr $passed + 1`
31258else
31259 failed=`expr $failed + 1`
31260fi
31261
31262
31263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
31264$as_echo_n "checking for flif_create_decoder in -lflif... " >&6; }
31265if ${ac_cv_lib_flif_flif_create_decoder+:} false; then :
31266 $as_echo_n "(cached) " >&6
31267else
31268 ac_check_lib_save_LIBS=$LIBS
31269LIBS="-lflif $LIBS"
31270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31271/* end confdefs.h. */
31272
31273/* Override any GCC internal prototype to avoid an error.
31274 Use char because int might match the return type of a GCC
31275 builtin and then its argument prototype would still apply. */
31276#ifdef __cplusplus
31277extern "C"
31278#endif
31279char flif_create_decoder ();
31280int
31281main ()
31282{
31283return flif_create_decoder ();
31284 ;
31285 return 0;
31286}
31287_ACEOF
31288if ac_fn_c_try_link "$LINENO"; then :
31289 ac_cv_lib_flif_flif_create_decoder=yes
31290else
31291 ac_cv_lib_flif_flif_create_decoder=no
31292fi
31293rm -f core conftest.err conftest.$ac_objext \
31294 conftest$ac_exeext conftest.$ac_ext
31295LIBS=$ac_check_lib_save_LIBS
31296fi
31297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
31298$as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; }
31299if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then :
31300 passed=`expr $passed + 1`
31301else
31302 failed=`expr $failed + 1`
31303fi
31304
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
31306$as_echo_n "checking if FLIF package is complete... " >&6; }
31307 if test $passed -gt 0; then
31308 if test $failed -gt 0; then
31309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31310$as_echo "no -- some components failed test" >&6; }
31311 have_flif='no (failed tests)'
31312 else
31313 FLIF_LIBS='-lflif'
31314 LIBS="$FLIF_LIBS $LIBS"
31315
31316$as_echo "#define FLIF_DELEGATE 1" >>confdefs.h
31317
31318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31319$as_echo "yes" >&6; }
31320 have_flif='yes'
31321 fi
31322 else
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31324$as_echo "no" >&6; }
31325 fi
31326fi
31327 if test "$have_flif" = 'yes'; then
31328 FLIF_DELEGATE_TRUE=
31329 FLIF_DELEGATE_FALSE='#'
31330else
31331 FLIF_DELEGATE_TRUE='#'
31332 FLIF_DELEGATE_FALSE=
31333fi
31334
31335
31336
31337
31338#
cristy3ed852e2009-09-05 21:47:34 +000031339# Check for FlashPIX delegate library.
31340#
31341
31342# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000031343if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031344 withval=$with_fpx; with_fpx=$withval
31345else
31346 with_fpx='yes'
31347fi
31348
31349
31350if test "$with_fpx" != 'yes'; then
31351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
31352fi
31353
31354have_fpx='no'
31355FPX_LIBS=''
31356if test "$with_fpx" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31358$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000031360$as_echo_n "checking for FlashPIX... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31362$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031363 failed=0
31364 passed=0
31365 ac_ext=cpp
31366ac_cpp='$CXXCPP $CPPFLAGS'
31367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31370
31371
cristy8b350f62009-11-15 23:12:43 +000031372ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031373if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031374 passed=`expr $passed + 1`
31375else
31376 failed=`expr $failed + 1`
31377fi
31378
31379
cristy8b350f62009-11-15 23:12:43 +000031380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000031381$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031382if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031383 $as_echo_n "(cached) " >&6
31384else
31385 ac_check_lib_save_LIBS=$LIBS
31386LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031388/* end confdefs.h. */
31389
31390/* Override any GCC internal prototype to avoid an error.
31391 Use char because int might match the return type of a GCC
31392 builtin and then its argument prototype would still apply. */
31393#ifdef __cplusplus
31394extern "C"
31395#endif
31396char FPX_OpenImageByFilename ();
31397int
31398main ()
31399{
31400return FPX_OpenImageByFilename ();
31401 ;
31402 return 0;
31403}
31404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031405if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031406 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
31407else
cristy8b350f62009-11-15 23:12:43 +000031408 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000031409fi
cristy8b350f62009-11-15 23:12:43 +000031410rm -f core conftest.err conftest.$ac_objext \
31411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031412LIBS=$ac_check_lib_save_LIBS
31413fi
cristy8b350f62009-11-15 23:12:43 +000031414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000031415$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000031416if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031417 passed=`expr $passed + 1`
31418else
31419 failed=`expr $failed + 1`
31420fi
31421
31422 ac_ext=c
31423ac_cpp='$CPP $CPPFLAGS'
31424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31426ac_compiler_gnu=$ac_cv_c_compiler_gnu
31427
cristy8b350f62009-11-15 23:12:43 +000031428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031429$as_echo_n "checking if FlashPIX package is complete... " >&6; }
31430 if test $passed -gt 0; then
31431 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000031432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31433$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031434 have_fpx='no (failed tests)'
31435 else
31436 FPX_LIBS='-lfpx'
31437
cristy8b350f62009-11-15 23:12:43 +000031438$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031439
cristyad38abe2012-12-23 23:03:21 +000031440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31441$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031442 have_fpx='yes'
31443 PERLMAINCC="$CXX"
31444 fi
31445 else
cristyad38abe2012-12-23 23:03:21 +000031446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031448 fi
31449fi
cristy73bd4a52010-10-05 11:24:23 +000031450 if test "$have_fpx" = 'yes'; then
31451 FPX_DELEGATE_TRUE=
31452 FPX_DELEGATE_FALSE='#'
31453else
31454 FPX_DELEGATE_TRUE='#'
31455 FPX_DELEGATE_FALSE=
31456fi
31457
cristy3ed852e2009-09-05 21:47:34 +000031458
cristy853d9902014-08-21 18:50:43 +000031459
31460
31461#
31462# Check for DJVU delegate library.
31463#
31464
31465# Check whether --with-djvu was given.
31466if test "${with_djvu+set}" = set; then :
31467 withval=$with_djvu; with_djvu=$withval
31468else
31469 with_djvu='yes'
31470fi
31471
31472
31473if test "$with_djvu" != 'yes'; then
31474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
31475fi
31476
31477have_djvu='no'
cristy32f75d42015-06-05 18:46:23 +000031478DJVU_CFLAGS=""
31479DJVU_LIBS=""
31480DJVU_PKG=""
31481if test "x$with_djvu" = "xyes"; then
31482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy853d9902014-08-21 18:50:43 +000031483$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000031484
31485pkg_failed=no
31486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
31487$as_echo_n "checking for ddjvuapi... " >&6; }
31488
31489if test -n "$ddjvuapi_CFLAGS"; then
31490 pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
31491 elif test -n "$PKG_CONFIG"; then
31492 if test -n "$PKG_CONFIG" && \
31493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
31494 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
31495 ac_status=$?
31496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31497 test $ac_status = 0; }; then
31498 pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
31499 test "x$?" != "x0" && pkg_failed=yes
cristy853d9902014-08-21 18:50:43 +000031500else
cristy32f75d42015-06-05 18:46:23 +000031501 pkg_failed=yes
31502fi
31503 else
31504 pkg_failed=untried
31505fi
31506if test -n "$ddjvuapi_LIBS"; then
31507 pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
31508 elif test -n "$PKG_CONFIG"; then
31509 if test -n "$PKG_CONFIG" && \
31510 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
31511 ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
31512 ac_status=$?
31513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31514 test $ac_status = 0; }; then
31515 pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
31516 test "x$?" != "x0" && pkg_failed=yes
31517else
31518 pkg_failed=yes
31519fi
31520 else
31521 pkg_failed=untried
cristy853d9902014-08-21 18:50:43 +000031522fi
31523
31524
cristy853d9902014-08-21 18:50:43 +000031525
cristy32f75d42015-06-05 18:46:23 +000031526if test $pkg_failed = yes; then
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31528$as_echo "no" >&6; }
cristy853d9902014-08-21 18:50:43 +000031529
cristy32f75d42015-06-05 18:46:23 +000031530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31531 _pkg_short_errors_supported=yes
31532else
31533 _pkg_short_errors_supported=no
31534fi
31535 if test $_pkg_short_errors_supported = yes; then
31536 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
cristy853d9902014-08-21 18:50:43 +000031537 else
cristy32f75d42015-06-05 18:46:23 +000031538 ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
31539 fi
31540 # Put the nasty error message in config.log where it belongs
31541 echo "$ddjvuapi_PKG_ERRORS" >&5
31542
31543 have_djvu=no
31544elif test $pkg_failed = untried; then
31545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31546$as_echo "no" >&6; }
31547 have_djvu=no
31548else
31549 ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
31550 ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31552$as_echo "yes" >&6; }
31553 have_djvu=yes
31554fi
31555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31556$as_echo "" >&6; }
31557fi
31558
31559if test "$have_djvu" = 'yes'; then
cristy853d9902014-08-21 18:50:43 +000031560
31561$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
31562
cristyc83c2cc2015-06-06 16:35:26 +000031563 DJVU_CFLAGS="$ddjvuapi_CFLAGS"
31564 DJVU_LIBS="$ddjvuapi_LIBS"
31565 CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
cristy853d9902014-08-21 18:50:43 +000031566fi
cristy32f75d42015-06-05 18:46:23 +000031567
cristy853d9902014-08-21 18:50:43 +000031568 if test "$have_djvu" = 'yes'; then
31569 DJVU_DELEGATE_TRUE=
31570 DJVU_DELEGATE_FALSE='#'
31571else
31572 DJVU_DELEGATE_TRUE='#'
31573 DJVU_DELEGATE_FALSE=
31574fi
31575
31576
cristy3ed852e2009-09-05 21:47:34 +000031577
31578
cristy32f75d42015-06-05 18:46:23 +000031579
cristy3ed852e2009-09-05 21:47:34 +000031580#
31581# Check for fontconfig delegate library.
31582#
31583
31584# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000031585if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031586 withval=$with_fontconfig; with_fontconfig=$withval
31587else
cristyfc3d0222012-02-07 15:05:57 +000031588 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000031589fi
31590
31591
31592if test "$with_fontconfig" != 'yes'; then
31593 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
31594fi
31595
31596have_fontconfig='no'
31597FONTCONFIG_CFLAGS=""
31598FONTCONFIG_LIBS=""
31599FONTCONFIG_PKG=""
31600if test "x$with_fontconfig" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031602$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031603
31604pkg_failed=no
31605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
31606$as_echo_n "checking for FONTCONFIG... " >&6; }
31607
31608if test -n "$FONTCONFIG_CFLAGS"; then
31609 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
31610 elif test -n "$PKG_CONFIG"; then
31611 if test -n "$PKG_CONFIG" && \
31612 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
31613 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
31614 ac_status=$?
31615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31616 test $ac_status = 0; }; then
31617 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031618 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031619else
31620 pkg_failed=yes
31621fi
31622 else
31623 pkg_failed=untried
31624fi
31625if test -n "$FONTCONFIG_LIBS"; then
31626 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
31627 elif test -n "$PKG_CONFIG"; then
31628 if test -n "$PKG_CONFIG" && \
31629 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
31630 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
31631 ac_status=$?
31632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31633 test $ac_status = 0; }; then
31634 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031635 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000031636else
31637 pkg_failed=yes
31638fi
31639 else
31640 pkg_failed=untried
31641fi
31642
31643
31644
31645if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31647$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031648
31649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31650 _pkg_short_errors_supported=yes
31651else
31652 _pkg_short_errors_supported=no
31653fi
31654 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031655 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031656 else
cristy146497a2015-05-17 22:46:16 +000031657 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000031658 fi
31659 # Put the nasty error message in config.log where it belongs
31660 echo "$FONTCONFIG_PKG_ERRORS" >&5
31661
cristy146497a2015-05-17 22:46:16 +000031662 have_fontconfig=no
cristy73bd4a52010-10-05 11:24:23 +000031663elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31665$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000031666 have_fontconfig=no
31667else
31668 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
31669 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
31670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31671$as_echo "yes" >&6; }
31672 have_fontconfig=yes
31673fi
cristy32f75d42015-06-05 18:46:23 +000031674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031675$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031676fi
31677
31678if test "$have_fontconfig" = 'yes'; then
31679
cristy8b350f62009-11-15 23:12:43 +000031680$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031681
cristy32f75d42015-06-05 18:46:23 +000031682 CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031683fi
31684
cristy73bd4a52010-10-05 11:24:23 +000031685 if test "$have_fontconfig" = 'yes'; then
31686 FONTCONFIG_DELEGATE_TRUE=
31687 FONTCONFIG_DELEGATE_FALSE='#'
31688else
31689 FONTCONFIG_DELEGATE_TRUE='#'
31690 FONTCONFIG_DELEGATE_FALSE=
31691fi
31692
cristy3ed852e2009-09-05 21:47:34 +000031693
31694
31695
31696
31697#
cristy03f187e2013-01-24 00:22:19 +000031698# Check for the Freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000031699#
31700
31701# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000031702if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031703 withval=$with_freetype; with_freetype=$withval
31704else
31705 with_freetype='yes'
31706fi
31707
31708
cristy3ed852e2009-09-05 21:47:34 +000031709if test "$with_freetype" != 'yes'; then
31710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
31711fi
31712
cristy81beccd2011-10-03 18:17:24 +000031713have_freetype='no'
cristy03f187e2013-01-24 00:22:19 +000031714FREETYPE_CFLAGS=""
31715FREETYPE_LIBS=""
31716FREETYPE_PKG=""
31717if test "x$with_freetype" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000031718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000031719$as_echo "-------------------------------------------------------------" >&6; }
cristy03f187e2013-01-24 00:22:19 +000031720
31721pkg_failed=no
31722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
31723$as_echo_n "checking for FREETYPE... " >&6; }
31724
31725if test -n "$FREETYPE_CFLAGS"; then
31726 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
31727 elif test -n "$PKG_CONFIG"; then
31728 if test -n "$PKG_CONFIG" && \
31729 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
31730 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
31731 ac_status=$?
31732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31733 test $ac_status = 0; }; then
31734 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031735 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000031736else
31737 pkg_failed=yes
31738fi
31739 else
31740 pkg_failed=untried
31741fi
31742if test -n "$FREETYPE_LIBS"; then
31743 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
31744 elif test -n "$PKG_CONFIG"; then
31745 if test -n "$PKG_CONFIG" && \
31746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
31747 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
31748 ac_status=$?
31749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31750 test $ac_status = 0; }; then
31751 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000031752 test "x$?" != "x0" && pkg_failed=yes
cristy03f187e2013-01-24 00:22:19 +000031753else
31754 pkg_failed=yes
31755fi
31756 else
31757 pkg_failed=untried
31758fi
31759
31760
31761
31762if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000031763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31764$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000031765
31766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31767 _pkg_short_errors_supported=yes
31768else
31769 _pkg_short_errors_supported=no
31770fi
31771 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000031772 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000031773 else
cristy146497a2015-05-17 22:46:16 +000031774 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
cristy03f187e2013-01-24 00:22:19 +000031775 fi
31776 # Put the nasty error message in config.log where it belongs
31777 echo "$FREETYPE_PKG_ERRORS" >&5
31778
cristy146497a2015-05-17 22:46:16 +000031779 have_freetype=no
cristy03f187e2013-01-24 00:22:19 +000031780elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000031781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31782$as_echo "no" >&6; }
cristy03f187e2013-01-24 00:22:19 +000031783 have_freetype=no
31784else
31785 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
31786 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31788$as_echo "yes" >&6; }
31789 have_freetype=yes
31790fi
cristy32f75d42015-06-05 18:46:23 +000031791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000031792$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031793fi
31794
cristy03f187e2013-01-24 00:22:19 +000031795if test "$have_freetype" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031796
cristy8b350f62009-11-15 23:12:43 +000031797$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031798
cristy32f75d42015-06-05 18:46:23 +000031799 CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000031800fi
cristy03f187e2013-01-24 00:22:19 +000031801
cristy73bd4a52010-10-05 11:24:23 +000031802 if test "$have_freetype" = 'yes'; then
31803 FREETYPE_DELEGATE_TRUE=
31804 FREETYPE_DELEGATE_FALSE='#'
31805else
31806 FREETYPE_DELEGATE_TRUE='#'
31807 FREETYPE_DELEGATE_FALSE=
31808fi
31809
cristy3ed852e2009-09-05 21:47:34 +000031810
31811
31812
cristy03f187e2013-01-24 00:22:19 +000031813
cristy3ed852e2009-09-05 21:47:34 +000031814#
Cristy17f8c722016-01-31 09:42:56 -050031815# Check for the raqm delegate library.
31816#
31817
31818# Check whether --with-raqm was given.
31819if test "${with_raqm+set}" = set; then :
31820 withval=$with_raqm; with_raqm=$withval
31821else
31822 with_raqm='yes'
31823fi
31824
31825
31826if test "$with_raqm" != 'yes'; then
31827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
31828fi
31829
31830have_raqm='no'
31831RAQM_CFLAGS=""
31832RAQM_LIBS=""
31833RAQM_PKG=""
31834if test "x$with_raqm" = "xyes"; then
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31836$as_echo "-------------------------------------------------------------" >&6; }
31837
31838pkg_failed=no
31839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAQM" >&5
31840$as_echo_n "checking for RAQM... " >&6; }
31841
31842if test -n "$RAQM_CFLAGS"; then
31843 pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
31844 elif test -n "$PKG_CONFIG"; then
31845 if test -n "$PKG_CONFIG" && \
31846 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
31847 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
31848 ac_status=$?
31849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31850 test $ac_status = 0; }; then
31851 pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
31852 test "x$?" != "x0" && pkg_failed=yes
31853else
31854 pkg_failed=yes
31855fi
31856 else
31857 pkg_failed=untried
31858fi
31859if test -n "$RAQM_LIBS"; then
31860 pkg_cv_RAQM_LIBS="$RAQM_LIBS"
31861 elif test -n "$PKG_CONFIG"; then
31862 if test -n "$PKG_CONFIG" && \
31863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
31864 ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
31865 ac_status=$?
31866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31867 test $ac_status = 0; }; then
31868 pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
31869 test "x$?" != "x0" && pkg_failed=yes
31870else
31871 pkg_failed=yes
31872fi
31873 else
31874 pkg_failed=untried
31875fi
31876
31877
31878
31879if test $pkg_failed = yes; then
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881$as_echo "no" >&6; }
31882
31883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31884 _pkg_short_errors_supported=yes
31885else
31886 _pkg_short_errors_supported=no
31887fi
31888 if test $_pkg_short_errors_supported = yes; then
31889 RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
31890 else
31891 RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
31892 fi
31893 # Put the nasty error message in config.log where it belongs
31894 echo "$RAQM_PKG_ERRORS" >&5
31895
31896 have_raqm=no
31897elif test $pkg_failed = untried; then
31898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31899$as_echo "no" >&6; }
31900 have_raqm=no
31901else
31902 RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
31903 RAQM_LIBS=$pkg_cv_RAQM_LIBS
31904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31905$as_echo "yes" >&6; }
31906 have_raqm=yes
31907fi
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31909$as_echo "" >&6; }
31910fi
31911
31912if test "$have_raqm" = 'yes'; then
31913
31914$as_echo "#define RAQM_DELEGATE 1" >>confdefs.h
31915
31916 CFLAGS="$RAQM_CFLAGS $CFLAGS"
31917fi
31918
31919 if test "$have_raqm" = 'yes'; then
31920 RAQM_DELEGATE_TRUE=
31921 RAQM_DELEGATE_FALSE='#'
31922else
31923 RAQM_DELEGATE_TRUE='#'
31924 RAQM_DELEGATE_FALSE=
31925fi
31926
31927
31928
31929
31930
31931#
cristy3ed852e2009-09-05 21:47:34 +000031932# Check for Ghostscript library or framework.
31933#
31934# Test for iapi.h & test for gsapi_new_instance in -lgs
31935# or -framework Ghostscript
31936
31937
31938# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000031939if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031940 withval=$with_gslib; with_gslib=$withval
31941else
31942 with_gslib='no'
31943fi
31944
31945
cristyb7931f12009-09-25 10:22:21 +000031946gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000031947if test "$with_gslib" != 'yes'; then
31948 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
31949fi
31950
31951have_gslib='no'
31952GS_LIBS=''
31953if test "$with_gslib" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000031954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31955$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000031956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000031957$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000031958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31959$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000031960 framework=0
cristy3ed852e2009-09-05 21:47:34 +000031961 failed=0
31962 passed=0
cristy8b350f62009-11-15 23:12:43 +000031963 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 +000031964if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031965 passed=`expr $passed + 1`
31966else
31967 failed=`expr $failed + 1`
31968fi
31969
31970
cristy8b350f62009-11-15 23:12:43 +000031971 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 +000031972if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031973 passed=`expr $passed + 1`
31974else
31975 failed=`expr $failed + 1`
31976fi
31977
31978
cristy73bd4a52010-10-05 11:24:23 +000031979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
31980$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031981if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000031982 $as_echo_n "(cached) " >&6
31983else
31984 ac_check_framework_save_LIBS=$LIBS
31985LIBS="-framework Ghostscript $LIBS"
31986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31987/* end confdefs.h. */
31988
31989/* Override any GCC internal prototype to avoid an error.
31990 Use char because int might match the return type of a GCC
31991 builtin and then its argument prototype would still apply. */
31992#ifdef __cplusplus
31993extern "C"
31994#endif
31995char gsapi_new_instance ();
31996int
31997main ()
31998{
31999return gsapi_new_instance ();
32000 ;
32001 return 0;
32002}
32003_ACEOF
32004if ac_fn_c_try_link "$LINENO"; then :
32005 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
32006else
32007 ac_cv_framework_Ghostscript_gsapi_new_instance=no
32008fi
32009rm -f core conftest.err conftest.$ac_objext \
32010 conftest$ac_exeext conftest.$ac_ext
32011LIBS=$ac_check_framework_save_LIBS
32012fi
32013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
32014$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
32015if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
32016 framework=`expr $framework + 1`
32017else
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032019$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032020if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032021 $as_echo_n "(cached) " >&6
32022else
32023 ac_check_lib_save_LIBS=$LIBS
32024LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032026/* end confdefs.h. */
32027
32028/* Override any GCC internal prototype to avoid an error.
32029 Use char because int might match the return type of a GCC
32030 builtin and then its argument prototype would still apply. */
32031#ifdef __cplusplus
32032extern "C"
32033#endif
32034char gsapi_new_instance ();
32035int
32036main ()
32037{
32038return gsapi_new_instance ();
32039 ;
32040 return 0;
32041}
32042_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032043if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032044 ac_cv_lib_gs_gsapi_new_instance=yes
32045else
cristy8b350f62009-11-15 23:12:43 +000032046 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000032047fi
cristy8b350f62009-11-15 23:12:43 +000032048rm -f core conftest.err conftest.$ac_objext \
32049 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032050LIBS=$ac_check_lib_save_LIBS
32051fi
cristy8b350f62009-11-15 23:12:43 +000032052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000032053$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000032054if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032055 passed=`expr $passed + 1`
32056else
32057 failed=`expr $failed + 1`
32058fi
cristy73bd4a52010-10-05 11:24:23 +000032059
32060fi
cristy8b350f62009-11-15 23:12:43 +000032061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032062$as_echo_n "checking if Ghostscript package is complete... " >&6; }
32063 if test $passed -gt 0; then
32064 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32066$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032067 have_gslib='no (failed tests)'
32068 else
32069 if test $framework -gt 0; then
32070 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000032071 gslib_framework='yes'
cristyad38abe2012-12-23 23:03:21 +000032072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
32073$as_echo "yes, using framework." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032074 else
cristyad38abe2012-12-23 23:03:21 +000032075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
32076$as_echo "yes, using library." >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032077 GS_LIBS='-lgs'
32078 fi
32079 LIBS="$GS_LIBS $LIBS"
32080
cristy8b350f62009-11-15 23:12:43 +000032081$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032082
32083 have_gslib='yes'
32084 fi
32085 else
cristyad38abe2012-12-23 23:03:21 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32087$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032088 fi
32089fi
cristy73bd4a52010-10-05 11:24:23 +000032090 if test "$have_gslib" = 'yes'; then
32091 GS_DELEGATE_TRUE=
32092 GS_DELEGATE_FALSE='#'
32093else
32094 GS_DELEGATE_TRUE='#'
32095 GS_DELEGATE_FALSE=
32096fi
32097
cristy3ed852e2009-09-05 21:47:34 +000032098
32099
32100# Set default font search path
32101
32102# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000032103if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032104 withval=$with_fontpath; with_fontpath=$withval
32105else
32106 with_fontpath=''
32107fi
32108
32109
32110if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
32111 with_fontpath=''
32112else
32113
32114cat >>confdefs.h <<_ACEOF
32115#define MAGICK_FONT_PATH "$with_fontpath"
32116_ACEOF
32117
32118fi
32119if test "$with_fontpath=" != ''; then
32120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
32121fi
32122
32123# Set Ghostscript font directory
32124
32125# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032126if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032127 withval=$with_gs_font_dir; with_gs_font_dir=$withval
32128else
32129 with_gs_font_dir='default'
32130fi
32131
32132
32133if test "$with_gs_font_dir" != 'default'; then
32134 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
32135fi
32136
32137
32138#
32139# Check for GVC delegate library.
32140#
32141
32142# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000032143if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032144 withval=$with_gvc; with_gvc=$withval
32145else
cristy86e31f32015-06-06 15:47:32 +000032146 with_gvc='yes'
cristy3ed852e2009-09-05 21:47:34 +000032147fi
32148
32149
32150if test "$with_gvc" != 'yes'; then
32151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
32152fi
32153
32154GVC_PKG=""
32155if test "x$with_gvc" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032157$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032158
32159pkg_failed=no
32160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
32161$as_echo_n "checking for GVC... " >&6; }
32162
32163if test -n "$GVC_CFLAGS"; then
32164 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
32165 elif test -n "$PKG_CONFIG"; then
32166 if test -n "$PKG_CONFIG" && \
32167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
32168 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
32169 ac_status=$?
32170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32171 test $ac_status = 0; }; then
32172 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032173 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032174else
32175 pkg_failed=yes
32176fi
32177 else
32178 pkg_failed=untried
32179fi
32180if test -n "$GVC_LIBS"; then
32181 pkg_cv_GVC_LIBS="$GVC_LIBS"
32182 elif test -n "$PKG_CONFIG"; then
32183 if test -n "$PKG_CONFIG" && \
32184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
32185 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
32186 ac_status=$?
32187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32188 test $ac_status = 0; }; then
32189 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032190 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032191else
32192 pkg_failed=yes
32193fi
32194 else
32195 pkg_failed=untried
32196fi
32197
32198
32199
32200if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32202$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032203
32204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32205 _pkg_short_errors_supported=yes
32206else
32207 _pkg_short_errors_supported=no
32208fi
32209 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032210 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032211 else
cristy146497a2015-05-17 22:46:16 +000032212 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032213 fi
32214 # Put the nasty error message in config.log where it belongs
32215 echo "$GVC_PKG_ERRORS" >&5
32216
cristy146497a2015-05-17 22:46:16 +000032217 have_gvc=no
cristy73bd4a52010-10-05 11:24:23 +000032218elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32220$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032221 have_gvc=no
32222else
32223 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
32224 GVC_LIBS=$pkg_cv_GVC_LIBS
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32226$as_echo "yes" >&6; }
32227 have_gvc=yes
32228fi
cristy32f75d42015-06-05 18:46:23 +000032229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000032230$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032231fi
32232
32233if test "$have_gvc" = 'yes'; then
32234
cristy8b350f62009-11-15 23:12:43 +000032235$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032236
cristy32f75d42015-06-05 18:46:23 +000032237 CFLAGS="$GVC_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032238fi
32239
cristy73bd4a52010-10-05 11:24:23 +000032240 if test "$have_gvc" = 'yes'; then
32241 GVC_DELEGATE_TRUE=
32242 GVC_DELEGATE_FALSE='#'
32243else
32244 GVC_DELEGATE_TRUE='#'
32245 GVC_DELEGATE_FALSE=
32246fi
32247
cristy3ed852e2009-09-05 21:47:34 +000032248
32249
32250
32251
32252#
32253# Check for JBIG delegate library.
32254#
32255
32256
32257# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000032258if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032259 withval=$with_jbig; with_jbig=$withval
32260else
32261 with_jbig='yes'
32262fi
32263
32264
32265have_jbig='no'
32266JBIG_LIBS=''
32267if test "$with_jbig" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32269$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000032271$as_echo_n "checking for JBIG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32273$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032274 failed=0
32275 passed=0
cristy8b350f62009-11-15 23:12:43 +000032276 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032277if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032278 passed=`expr $passed + 1`
32279else
32280 failed=`expr $failed + 1`
32281fi
32282
32283
cristy8b350f62009-11-15 23:12:43 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000032285$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032286if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032287 $as_echo_n "(cached) " >&6
32288else
32289 ac_check_lib_save_LIBS=$LIBS
32290LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032292/* end confdefs.h. */
32293
32294/* Override any GCC internal prototype to avoid an error.
32295 Use char because int might match the return type of a GCC
32296 builtin and then its argument prototype would still apply. */
32297#ifdef __cplusplus
32298extern "C"
32299#endif
32300char jbg_dec_init ();
32301int
32302main ()
32303{
32304return jbg_dec_init ();
32305 ;
32306 return 0;
32307}
32308_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032309if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032310 ac_cv_lib_jbig_jbg_dec_init=yes
32311else
cristy8b350f62009-11-15 23:12:43 +000032312 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000032313fi
cristy8b350f62009-11-15 23:12:43 +000032314rm -f core conftest.err conftest.$ac_objext \
32315 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032316LIBS=$ac_check_lib_save_LIBS
32317fi
cristy8b350f62009-11-15 23:12:43 +000032318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000032319$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000032320if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032321 passed=`expr $passed + 1`
32322else
32323 failed=`expr $failed + 1`
32324fi
32325
cristy8b350f62009-11-15 23:12:43 +000032326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032327$as_echo_n "checking if JBIG package is complete... " >&6; }
32328 if test $passed -gt 0; then
32329 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32331$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032332 have_jbig='no (failed tests)'
32333 else
32334 JBIG_LIBS='-ljbig'
32335 LIBS="$JBIG_LIBS $LIBS"
32336
cristy8b350f62009-11-15 23:12:43 +000032337$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032338
cristyad38abe2012-12-23 23:03:21 +000032339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32340$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032341 have_jbig='yes'
32342 fi
32343 else
cristyad38abe2012-12-23 23:03:21 +000032344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32345$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032346 fi
32347fi
cristy73bd4a52010-10-05 11:24:23 +000032348 if test "$have_jbig" = 'yes'; then
32349 JBIG_DELEGATE_TRUE=
32350 JBIG_DELEGATE_FALSE='#'
32351else
32352 JBIG_DELEGATE_TRUE='#'
32353 JBIG_DELEGATE_FALSE=
32354fi
32355
cristy3ed852e2009-09-05 21:47:34 +000032356
32357
32358
32359#
32360# Check for JPEG delegate library.
32361#
32362
32363# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000032364if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032365 withval=$with_jpeg; with_jpeg=$withval
32366else
32367 with_jpeg='yes'
32368fi
32369
32370
32371if test "$with_jpeg" != 'yes'; then
32372 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
32373fi
32374
32375have_jpeg='no'
32376JPEG_LIBS=''
32377if test "$with_jpeg" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000032378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32379$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000032381$as_echo_n "checking for JPEG... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000032382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32383$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032384 failed=0
32385 passed=0
cristy8b350f62009-11-15 23:12:43 +000032386 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032387if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032388 passed=`expr $passed + 1`
32389else
32390 failed=`expr $failed + 1`
32391fi
32392
32393
cristy8b350f62009-11-15 23:12:43 +000032394 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032395if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032396 passed=`expr $passed + 1`
32397else
32398 failed=`expr $failed + 1`
32399fi
32400
32401
cristy8b350f62009-11-15 23:12:43 +000032402 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032403if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032404 passed=`expr $passed + 1`
32405else
32406 failed=`expr $failed + 1`
32407fi
32408
32409
cristy8b350f62009-11-15 23:12:43 +000032410 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032411if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032412 passed=`expr $passed + 1`
32413else
32414 failed=`expr $failed + 1`
32415fi
32416
32417
cristy8b350f62009-11-15 23:12:43 +000032418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000032419$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032420if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032421 $as_echo_n "(cached) " >&6
32422else
32423 ac_check_lib_save_LIBS=$LIBS
32424LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032426/* end confdefs.h. */
32427
32428/* Override any GCC internal prototype to avoid an error.
32429 Use char because int might match the return type of a GCC
32430 builtin and then its argument prototype would still apply. */
32431#ifdef __cplusplus
32432extern "C"
32433#endif
32434char jpeg_read_header ();
32435int
32436main ()
32437{
32438return jpeg_read_header ();
32439 ;
32440 return 0;
32441}
32442_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032443if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032444 ac_cv_lib_jpeg_jpeg_read_header=yes
32445else
cristy8b350f62009-11-15 23:12:43 +000032446 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000032447fi
cristy8b350f62009-11-15 23:12:43 +000032448rm -f core conftest.err conftest.$ac_objext \
32449 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032450LIBS=$ac_check_lib_save_LIBS
32451fi
cristy8b350f62009-11-15 23:12:43 +000032452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000032453$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000032454if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032455 passed=`expr $passed + 1`
32456else
32457 failed=`expr $failed + 1`
32458fi
32459
32460
32461# Test for compatible JPEG library
32462if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000032463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000032464$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032465if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032466 $as_echo_n "(cached) " >&6
32467else
cristy8b350f62009-11-15 23:12:43 +000032468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032469/* end confdefs.h. */
32470#include <stdio.h>
32471#include <stdlib.h>
32472#include <jpeglib.h>
32473
32474int
32475main ()
32476{
32477
32478#if JPEG_LIB_VERSION < 62
32479#error IJG JPEG library must be version 6b or newer!
32480#endif
32481return 0;
32482
32483 ;
32484 return 0;
32485}
32486_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032487if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032488 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
32489else
cristy8b350f62009-11-15 23:12:43 +000032490 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000032491fi
cristy3ed852e2009-09-05 21:47:34 +000032492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32493fi
cristy8b350f62009-11-15 23:12:43 +000032494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000032495$as_echo "$ac_cv_jpeg_version_ok" >&6; }
32496fi
cristy8b350f62009-11-15 23:12:43 +000032497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032498$as_echo_n "checking if JPEG package is complete... " >&6; }
32499 if test $passed -gt 0; then
32500 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000032501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32502$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032503 have_jpeg='no (failed tests)'
32504 else
32505 JPEG_LIBS='-ljpeg'
32506 LIBS="$JPEG_LIBS $LIBS"
32507
cristy8b350f62009-11-15 23:12:43 +000032508$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032509
cristyad38abe2012-12-23 23:03:21 +000032510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32511$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032512 have_jpeg='yes'
32513 fi
32514 else
cristyad38abe2012-12-23 23:03:21 +000032515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32516$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032517 fi
32518fi
cristy73bd4a52010-10-05 11:24:23 +000032519 if test "$have_jpeg" = 'yes'; then
32520 JPEG_DELEGATE_TRUE=
32521 JPEG_DELEGATE_FALSE='#'
32522else
32523 JPEG_DELEGATE_TRUE='#'
32524 JPEG_DELEGATE_FALSE=
32525fi
32526
cristy3ed852e2009-09-05 21:47:34 +000032527
32528
32529
32530#
cristy3ed852e2009-09-05 21:47:34 +000032531# Check for LCMS delegate library.
32532#
32533
32534# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000032535if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032536 withval=$with_lcms; with_lcms=$withval
32537else
32538 with_lcms='yes'
32539fi
32540
cristy71203402010-06-18 13:12:03 +000032541if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
32543fi
32544
cristy71203402010-06-18 13:12:03 +000032545have_lcms='no'
cristy32f75d42015-06-05 18:46:23 +000032546LCMS_CFLAGS=""
32547LCMS_LIBS=""
32548LCMS_PKG=""
32549if test "x$with_lcms" = "xyes"; then
32550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032551$as_echo "-------------------------------------------------------------" >&6; }
cristy71203402010-06-18 13:12:03 +000032552
cristy32f75d42015-06-05 18:46:23 +000032553pkg_failed=no
cristyb054e072015-06-05 20:35:43 +000032554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
32555$as_echo_n "checking for LCMS2... " >&6; }
32556
32557if test -n "$LCMS2_CFLAGS"; then
32558 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
32559 elif test -n "$PKG_CONFIG"; then
32560 if test -n "$PKG_CONFIG" && \
32561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
32562 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
32563 ac_status=$?
32564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32565 test $ac_status = 0; }; then
32566 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
32567 test "x$?" != "x0" && pkg_failed=yes
32568else
32569 pkg_failed=yes
32570fi
32571 else
32572 pkg_failed=untried
32573fi
32574if test -n "$LCMS2_LIBS"; then
32575 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
32576 elif test -n "$PKG_CONFIG"; then
32577 if test -n "$PKG_CONFIG" && \
32578 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
32579 ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
32580 ac_status=$?
32581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32582 test $ac_status = 0; }; then
32583 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
32584 test "x$?" != "x0" && pkg_failed=yes
32585else
32586 pkg_failed=yes
32587fi
32588 else
32589 pkg_failed=untried
32590fi
32591
32592
32593
32594if test $pkg_failed = yes; then
32595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32596$as_echo "no" >&6; }
32597
32598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32599 _pkg_short_errors_supported=yes
32600else
32601 _pkg_short_errors_supported=no
32602fi
32603 if test $_pkg_short_errors_supported = yes; then
32604 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
32605 else
32606 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
32607 fi
32608 # Put the nasty error message in config.log where it belongs
32609 echo "$LCMS2_PKG_ERRORS" >&5
32610
32611 have_lcms=no
32612elif test $pkg_failed = untried; then
32613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32614$as_echo "no" >&6; }
32615 have_lcms=no
32616else
32617 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
32618 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
32619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32620$as_echo "yes" >&6; }
32621 have_lcms=yes
32622fi
32623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32624$as_echo "" >&6; }
32625fi
32626
32627if test "$have_lcms" = 'yes'; then
32628
32629$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
32630
cristyb74ab6e2015-06-06 12:39:54 +000032631 LCMS_CFLAGS="$LCMS2_CFLAGS"
32632 LCMS_LIBS="$LCMS2_LIBS"
cristyb054e072015-06-05 20:35:43 +000032633 CFLAGS="$LCMS2_CFLAGS $CFLAGS"
cristyd6ac47f2015-06-06 13:46:55 +000032634 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
32635if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
32636 have_lcms_header='yes'
32637fi
32638
32639
32640 if test "$have_lcms_header" = 'yes'; then
32641
32642$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
32643
cristybc8ef1c2015-06-06 14:32:21 +000032644 else
32645
32646$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
32647
cristyd6ac47f2015-06-06 13:46:55 +000032648 fi
cristy32f75d42015-06-05 18:46:23 +000032649fi
32650
32651 if test "$have_lcms" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +000032652 LCMS_DELEGATE_TRUE=
32653 LCMS_DELEGATE_FALSE='#'
32654else
32655 LCMS_DELEGATE_TRUE='#'
32656 LCMS_DELEGATE_FALSE=
32657fi
32658
cristy71203402010-06-18 13:12:03 +000032659
cristy3ed852e2009-09-05 21:47:34 +000032660
32661
32662
32663#
cristy99db3872014-01-01 15:11:34 +000032664# Check for the OpenJP2 delegate library.
32665#
32666
32667# Check whether --with-openjp2 was given.
32668if test "${with_openjp2+set}" = set; then :
32669 withval=$with_openjp2; with_openjp2=$withval
32670else
32671 with_openjp2='yes'
32672fi
32673
32674
32675if test "$with_openjp2" != 'yes'; then
32676 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
32677fi
32678
32679have_openjp2='no'
32680LIBOPENJP2_CFLAGS=""
32681LIBOPENJP2_LIBS=""
32682LIBOPENJP2_PKG=""
32683if test "x$with_openjp2" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000032684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy99db3872014-01-01 15:11:34 +000032685$as_echo "-------------------------------------------------------------" >&6; }
32686
32687pkg_failed=no
32688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
32689$as_echo_n "checking for LIBOPENJP2... " >&6; }
32690
32691if test -n "$LIBOPENJP2_CFLAGS"; then
32692 pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
32693 elif test -n "$PKG_CONFIG"; then
32694 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000032695 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
32696 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000032697 ac_status=$?
32698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32699 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000032700 pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032701 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000032702else
32703 pkg_failed=yes
32704fi
32705 else
32706 pkg_failed=untried
32707fi
32708if test -n "$LIBOPENJP2_LIBS"; then
32709 pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
32710 elif test -n "$PKG_CONFIG"; then
32711 if test -n "$PKG_CONFIG" && \
cristybc964932014-05-08 21:45:03 +000032712 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
32713 ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
cristy99db3872014-01-01 15:11:34 +000032714 ac_status=$?
32715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32716 test $ac_status = 0; }; then
cristybc964932014-05-08 21:45:03 +000032717 pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032718 test "x$?" != "x0" && pkg_failed=yes
cristy99db3872014-01-01 15:11:34 +000032719else
32720 pkg_failed=yes
32721fi
32722 else
32723 pkg_failed=untried
32724fi
32725
32726
32727
32728if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32730$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000032731
32732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32733 _pkg_short_errors_supported=yes
32734else
32735 _pkg_short_errors_supported=no
32736fi
32737 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032738 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000032739 else
cristy146497a2015-05-17 22:46:16 +000032740 LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
cristy99db3872014-01-01 15:11:34 +000032741 fi
32742 # Put the nasty error message in config.log where it belongs
32743 echo "$LIBOPENJP2_PKG_ERRORS" >&5
32744
cristy146497a2015-05-17 22:46:16 +000032745 have_openjp2=no
cristy99db3872014-01-01 15:11:34 +000032746elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32748$as_echo "no" >&6; }
cristy99db3872014-01-01 15:11:34 +000032749 have_openjp2=no
32750else
32751 LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
32752 LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
32753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32754$as_echo "yes" >&6; }
32755 have_openjp2=yes
32756fi
cristy32f75d42015-06-05 18:46:23 +000032757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy99db3872014-01-01 15:11:34 +000032758$as_echo "" >&6; }
32759fi
32760
32761if test "$have_openjp2" = 'yes'; then
32762
32763$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
32764
cristy32f75d42015-06-05 18:46:23 +000032765 CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
cristy99db3872014-01-01 15:11:34 +000032766fi
32767
32768 if test "$have_openjp2" = 'yes'; then
32769 LIBOPENJP2_DELEGATE_TRUE=
32770 LIBOPENJP2_DELEGATE_FALSE='#'
32771else
32772 LIBOPENJP2_DELEGATE_TRUE='#'
32773 LIBOPENJP2_DELEGATE_FALSE=
32774fi
32775
32776
32777
32778
32779
32780
32781#
cristy3ed852e2009-09-05 21:47:34 +000032782# Check for the LQR (Liquid Rescale) delegate library.
32783#
32784
32785# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000032786if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032787 withval=$with_lqr; with_lqr=$withval
32788else
32789 with_lqr='yes'
32790fi
32791
32792
32793if test "$with_lqr" != 'yes'; then
32794 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
32795fi
32796
32797have_lqr='no'
32798LQR_CFLAGS=""
32799LQR_LIBS=""
32800LQR_PKG=""
32801if test "x$with_lqr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000032802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032803$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032804
32805pkg_failed=no
32806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
32807$as_echo_n "checking for LQR... " >&6; }
32808
32809if test -n "$LQR_CFLAGS"; then
32810 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
32811 elif test -n "$PKG_CONFIG"; then
32812 if test -n "$PKG_CONFIG" && \
32813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
32814 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
32815 ac_status=$?
32816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32817 test $ac_status = 0; }; then
32818 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032819 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032820else
32821 pkg_failed=yes
32822fi
32823 else
32824 pkg_failed=untried
32825fi
32826if test -n "$LQR_LIBS"; then
32827 pkg_cv_LQR_LIBS="$LQR_LIBS"
32828 elif test -n "$PKG_CONFIG"; then
32829 if test -n "$PKG_CONFIG" && \
32830 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
32831 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
32832 ac_status=$?
32833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32834 test $ac_status = 0; }; then
32835 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032836 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000032837else
32838 pkg_failed=yes
32839fi
32840 else
32841 pkg_failed=untried
32842fi
32843
32844
32845
32846if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32848$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032849
32850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32851 _pkg_short_errors_supported=yes
32852else
32853 _pkg_short_errors_supported=no
32854fi
32855 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032856 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032857 else
cristy146497a2015-05-17 22:46:16 +000032858 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000032859 fi
32860 # Put the nasty error message in config.log where it belongs
32861 echo "$LQR_PKG_ERRORS" >&5
32862
cristy146497a2015-05-17 22:46:16 +000032863 have_lqr=no
cristy73bd4a52010-10-05 11:24:23 +000032864elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32866$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000032867 have_lqr=no
32868else
32869 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
32870 LQR_LIBS=$pkg_cv_LQR_LIBS
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32872$as_echo "yes" >&6; }
32873 have_lqr=yes
32874fi
cristy32f75d42015-06-05 18:46:23 +000032875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000032876$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032877fi
32878
32879if test "$have_lqr" = 'yes'; then
32880
cristy8b350f62009-11-15 23:12:43 +000032881$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032882
cristy32f75d42015-06-05 18:46:23 +000032883 CFLAGS="$LQR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000032884fi
32885
cristy73bd4a52010-10-05 11:24:23 +000032886 if test "$have_lqr" = 'yes'; then
32887 LQR_DELEGATE_TRUE=
32888 LQR_DELEGATE_FALSE='#'
32889else
32890 LQR_DELEGATE_TRUE='#'
32891 LQR_DELEGATE_FALSE=
32892fi
32893
cristy3ed852e2009-09-05 21:47:34 +000032894
32895
32896
32897
cristy81beccd2011-10-03 18:17:24 +000032898# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000032899
32900# Check whether --with-lzma was given.
32901if test "${with_lzma+set}" = set; then :
32902 withval=$with_lzma; with_lzma=$withval
32903else
32904 with_lzma='yes'
32905fi
32906
cristy81beccd2011-10-03 18:17:24 +000032907if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000032908 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
32909fi
32910
cristyb94e5002011-11-14 13:20:10 +000032911LZMA_PKG=""
32912if test "x$with_lzma" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000032914$as_echo "-------------------------------------------------------------" >&6; }
cristyb94e5002011-11-14 13:20:10 +000032915
32916pkg_failed=no
32917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000032918$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000032919
32920if test -n "$LZMA_CFLAGS"; then
32921 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
32922 elif test -n "$PKG_CONFIG"; then
32923 if test -n "$PKG_CONFIG" && \
32924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
32925 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
32926 ac_status=$?
32927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32928 test $ac_status = 0; }; then
32929 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032930 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000032931else
32932 pkg_failed=yes
32933fi
32934 else
32935 pkg_failed=untried
32936fi
32937if test -n "$LZMA_LIBS"; then
32938 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
32939 elif test -n "$PKG_CONFIG"; then
32940 if test -n "$PKG_CONFIG" && \
32941 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
32942 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
32943 ac_status=$?
32944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32945 test $ac_status = 0; }; then
32946 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000032947 test "x$?" != "x0" && pkg_failed=yes
cristyb94e5002011-11-14 13:20:10 +000032948else
32949 pkg_failed=yes
32950fi
32951 else
32952 pkg_failed=untried
32953fi
32954
32955
32956
32957if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000032958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32959$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000032960
32961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32962 _pkg_short_errors_supported=yes
32963else
32964 _pkg_short_errors_supported=no
32965fi
32966 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000032967 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000032968 else
cristy146497a2015-05-17 22:46:16 +000032969 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
cristyb94e5002011-11-14 13:20:10 +000032970 fi
32971 # Put the nasty error message in config.log where it belongs
32972 echo "$LZMA_PKG_ERRORS" >&5
32973
cristy146497a2015-05-17 22:46:16 +000032974 have_lzma=no
cristyb94e5002011-11-14 13:20:10 +000032975elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000032976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32977$as_echo "no" >&6; }
cristyb94e5002011-11-14 13:20:10 +000032978 have_lzma=no
32979else
32980 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
32981 LZMA_LIBS=$pkg_cv_LZMA_LIBS
32982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32983$as_echo "yes" >&6; }
32984 have_lzma=yes
32985fi
cristy32f75d42015-06-05 18:46:23 +000032986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000032987$as_echo "" >&6; }
cristyfbb0ef02010-12-19 02:32:11 +000032988fi
32989
cristyb94e5002011-11-14 13:20:10 +000032990if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000032991
32992$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
32993
cristy32f75d42015-06-05 18:46:23 +000032994 CFLAGS="$LZMA_CFLAGS $CFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000032995fi
cristyb94e5002011-11-14 13:20:10 +000032996
cristyfbb0ef02010-12-19 02:32:11 +000032997 if test "$have_lzma" = 'yes'; then
32998 LZMA_DELEGATE_TRUE=
32999 LZMA_DELEGATE_FALSE='#'
33000else
33001 LZMA_DELEGATE_TRUE='#'
33002 LZMA_DELEGATE_FALSE=
33003fi
33004
33005
33006
33007
cristyb94e5002011-11-14 13:20:10 +000033008
cristy3ed852e2009-09-05 21:47:34 +000033009#
33010# Check for the OpenEXR delegate library.
33011#
33012
33013# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000033014if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000033015 withval=$with_openexr; with_openexr=$withval
33016else
33017 with_openexr='yes'
33018fi
33019
33020
33021if test "$with_openexr" != 'yes'; then
33022 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
33023fi
33024
33025have_openexr='no'
33026OPENEXR_CFLAGS=""
33027OPENEXR_LIBS=""
33028OPENEXR_PKG=""
33029if test "x$with_openexr" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000033030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000033031$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033032
33033pkg_failed=no
33034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
33035$as_echo_n "checking for OPENEXR... " >&6; }
33036
33037if test -n "$OPENEXR_CFLAGS"; then
33038 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
33039 elif test -n "$PKG_CONFIG"; then
33040 if test -n "$PKG_CONFIG" && \
33041 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
33042 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
33043 ac_status=$?
33044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33045 test $ac_status = 0; }; then
33046 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033047 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000033048else
33049 pkg_failed=yes
33050fi
33051 else
33052 pkg_failed=untried
33053fi
33054if test -n "$OPENEXR_LIBS"; then
33055 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
33056 elif test -n "$PKG_CONFIG"; then
33057 if test -n "$PKG_CONFIG" && \
33058 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
33059 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
33060 ac_status=$?
33061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33062 test $ac_status = 0; }; then
33063 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033064 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000033065else
33066 pkg_failed=yes
33067fi
33068 else
33069 pkg_failed=untried
33070fi
33071
33072
33073
33074if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000033075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33076$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033077
33078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33079 _pkg_short_errors_supported=yes
33080else
33081 _pkg_short_errors_supported=no
33082fi
33083 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000033084 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000033085 else
cristy146497a2015-05-17 22:46:16 +000033086 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000033087 fi
33088 # Put the nasty error message in config.log where it belongs
33089 echo "$OPENEXR_PKG_ERRORS" >&5
33090
cristy146497a2015-05-17 22:46:16 +000033091 have_openexr=no
cristy73bd4a52010-10-05 11:24:23 +000033092elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000033093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33094$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033095 have_openexr=no
33096else
33097 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
33098 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
33099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33100$as_echo "yes" >&6; }
33101 have_openexr=yes
33102fi
cristy32f75d42015-06-05 18:46:23 +000033103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000033104$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033105fi
33106
33107if test "$have_openexr" = 'yes'; then
33108
cristy8b350f62009-11-15 23:12:43 +000033109$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033110
cristy32f75d42015-06-05 18:46:23 +000033111 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000033112fi
33113
cristy73bd4a52010-10-05 11:24:23 +000033114 if test "$have_openexr" = 'yes'; then
33115 OPENEXR_DELEGATE_TRUE=
33116 OPENEXR_DELEGATE_FALSE='#'
33117else
33118 OPENEXR_DELEGATE_TRUE='#'
33119 OPENEXR_DELEGATE_FALSE=
33120fi
33121
cristy3ed852e2009-09-05 21:47:34 +000033122
33123
33124
33125
33126#
cristy41cbe8a2011-10-27 01:35:18 +000033127# Check for PANGO delegate library.
33128#
33129
33130# Check whether --with-pango was given.
33131if test "${with_pango+set}" = set; then :
33132 withval=$with_pango; with_pango=$withval
33133else
cristyfc3d0222012-02-07 15:05:57 +000033134 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000033135fi
33136
33137
33138if test "$with_pango" != 'yes'; then
33139 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
33140fi
33141
33142have_pango='no'
cristya054b762012-03-26 23:16:00 +000033143have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000033144PANGO_CFLAGS=""
33145PANGO_LIBS=""
33146PANGO_PKG=""
33147if test "x$with_pango" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000033148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristy41cbe8a2011-10-27 01:35:18 +000033149$as_echo "-------------------------------------------------------------" >&6; }
33150
33151pkg_failed=no
33152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
33153$as_echo_n "checking for PANGO... " >&6; }
33154
33155if test -n "$PANGO_CFLAGS"; then
33156 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
33157 elif test -n "$PKG_CONFIG"; then
33158 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000033159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
33160 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000033161 ac_status=$?
33162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33163 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000033164 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033165 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000033166else
33167 pkg_failed=yes
33168fi
33169 else
33170 pkg_failed=untried
33171fi
33172if test -n "$PANGO_LIBS"; then
33173 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
33174 elif test -n "$PKG_CONFIG"; then
33175 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000033176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
33177 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000033178 ac_status=$?
33179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33180 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000033181 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033182 test "x$?" != "x0" && pkg_failed=yes
cristy41cbe8a2011-10-27 01:35:18 +000033183else
33184 pkg_failed=yes
33185fi
33186 else
33187 pkg_failed=untried
33188fi
33189
33190
33191
33192if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000033193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33194$as_echo "no" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000033195
33196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33197 _pkg_short_errors_supported=yes
33198else
33199 _pkg_short_errors_supported=no
33200fi
33201 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000033202 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000033203 else
cristy146497a2015-05-17 22:46:16 +000033204 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000033205 fi
33206 # Put the nasty error message in config.log where it belongs
33207 echo "$PANGO_PKG_ERRORS" >&5
33208
cristy146497a2015-05-17 22:46:16 +000033209 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000033210elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000033211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33212$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000033213 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000033214else
33215 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
33216 PANGO_LIBS=$pkg_cv_PANGO_LIBS
33217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33218$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000033219 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000033220fi
cristy32f75d42015-06-05 18:46:23 +000033221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy41cbe8a2011-10-27 01:35:18 +000033222$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000033223
33224pkg_failed=no
33225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
33226$as_echo_n "checking for PANGO... " >&6; }
33227
33228if test -n "$PANGO_CFLAGS"; then
33229 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
33230 elif test -n "$PKG_CONFIG"; then
33231 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000033232 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
33233 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000033234 ac_status=$?
33235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33236 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000033237 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033238 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000033239else
33240 pkg_failed=yes
33241fi
33242 else
33243 pkg_failed=untried
33244fi
33245if test -n "$PANGO_LIBS"; then
33246 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
33247 elif test -n "$PKG_CONFIG"; then
33248 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000033249 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
33250 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000033251 ac_status=$?
33252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33253 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000033254 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033255 test "x$?" != "x0" && pkg_failed=yes
cristy7dc48ed2011-10-28 14:11:43 +000033256else
33257 pkg_failed=yes
33258fi
33259 else
33260 pkg_failed=untried
33261fi
33262
33263
33264
33265if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000033266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33267$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000033268
33269if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33270 _pkg_short_errors_supported=yes
33271else
33272 _pkg_short_errors_supported=no
33273fi
33274 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000033275 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000033276 else
cristy146497a2015-05-17 22:46:16 +000033277 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000033278 fi
33279 # Put the nasty error message in config.log where it belongs
33280 echo "$PANGO_PKG_ERRORS" >&5
33281
cristy146497a2015-05-17 22:46:16 +000033282 have_pango=no
cristy7dc48ed2011-10-28 14:11:43 +000033283elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000033284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33285$as_echo "no" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000033286 have_pango=no
33287else
33288 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
33289 PANGO_LIBS=$pkg_cv_PANGO_LIBS
33290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33291$as_echo "yes" >&6; }
33292 have_pango=yes
33293fi
cristy32f75d42015-06-05 18:46:23 +000033294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristy7dc48ed2011-10-28 14:11:43 +000033295$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000033296fi
33297
33298if test "$have_pango" = 'yes'; then
33299
33300$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
33301
cristy32f75d42015-06-05 18:46:23 +000033302 CFLAGS="$PANGO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000033303fi
33304
cristya054b762012-03-26 23:16:00 +000033305if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000033306
cristya054b762012-03-26 23:16:00 +000033307$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000033308
cristy32f75d42015-06-05 18:46:23 +000033309 CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000033310fi
33311
33312 if test "$have_pango" = 'yes'; then
33313 PANGO_DELEGATE_TRUE=
33314 PANGO_DELEGATE_FALSE='#'
33315else
33316 PANGO_DELEGATE_TRUE='#'
33317 PANGO_DELEGATE_FALSE=
33318fi
33319
cristya054b762012-03-26 23:16:00 +000033320 if test "$have_pangocairo" = 'yes'; then
33321 PANGOCAIRO_DELEGATE_TRUE=
33322 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000033323else
cristya054b762012-03-26 23:16:00 +000033324 PANGOCAIRO_DELEGATE_TRUE='#'
33325 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000033326fi
33327
33328
33329
33330
33331
33332#
cristy3ed852e2009-09-05 21:47:34 +000033333# Check for PNG delegate library.
33334#
33335
33336# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000033337if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000033338 withval=$with_png; with_png=$withval
33339else
33340 with_png='yes'
33341fi
33342
33343
33344if test "$with_png" != 'yes'; then
33345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
33346fi
33347
cristy81beccd2011-10-03 18:17:24 +000033348have_png='no'
cristy32f75d42015-06-05 18:46:23 +000033349PNG_CFLAGS=""
33350PNG_LIBS=""
33351PNG_PKG=""
33352if test "x$with_png" = "xyes"; then
cristyad38abe2012-12-23 23:03:21 +000033353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33354$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000033355
33356pkg_failed=no
33357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
33358$as_echo_n "checking for PNG... " >&6; }
33359
33360if test -n "$PNG_CFLAGS"; then
33361 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
33362 elif test -n "$PKG_CONFIG"; then
33363 if test -n "$PKG_CONFIG" && \
33364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
33365 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
33366 ac_status=$?
33367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33368 test $ac_status = 0; }; then
33369 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
33370 test "x$?" != "x0" && pkg_failed=yes
33371else
33372 pkg_failed=yes
33373fi
33374 else
33375 pkg_failed=untried
33376fi
33377if test -n "$PNG_LIBS"; then
33378 pkg_cv_PNG_LIBS="$PNG_LIBS"
33379 elif test -n "$PKG_CONFIG"; then
33380 if test -n "$PKG_CONFIG" && \
33381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
33382 ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
33383 ac_status=$?
33384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33385 test $ac_status = 0; }; then
33386 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
33387 test "x$?" != "x0" && pkg_failed=yes
33388else
33389 pkg_failed=yes
33390fi
33391 else
33392 pkg_failed=untried
33393fi
33394
33395
33396
33397if test $pkg_failed = yes; then
33398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33399$as_echo "no" >&6; }
33400
33401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33402 _pkg_short_errors_supported=yes
33403else
33404 _pkg_short_errors_supported=no
33405fi
33406 if test $_pkg_short_errors_supported = yes; then
33407 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
33408 else
33409 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
33410 fi
33411 # Put the nasty error message in config.log where it belongs
33412 echo "$PNG_PKG_ERRORS" >&5
33413
33414 have_png=no
33415elif test $pkg_failed = untried; then
33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33417$as_echo "no" >&6; }
33418 have_png=no
33419else
33420 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
33421 PNG_LIBS=$pkg_cv_PNG_LIBS
33422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33423$as_echo "yes" >&6; }
33424 have_png=yes
33425fi
cristyad38abe2012-12-23 23:03:21 +000033426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33427$as_echo "" >&6; }
cristy64877302011-08-23 19:10:31 +000033428fi
33429
cristy32f75d42015-06-05 18:46:23 +000033430if test "$have_png" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000033431
cristy8b350f62009-11-15 23:12:43 +000033432$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033433
cristy32f75d42015-06-05 18:46:23 +000033434 CFLAGS="$PNG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000033435fi
cristy64877302011-08-23 19:10:31 +000033436
cristy73bd4a52010-10-05 11:24:23 +000033437 if test "$have_png" = 'yes'; then
33438 PNG_DELEGATE_TRUE=
33439 PNG_DELEGATE_FALSE='#'
33440else
33441 PNG_DELEGATE_TRUE='#'
33442 PNG_DELEGATE_FALSE=
33443fi
33444
cristy3ed852e2009-09-05 21:47:34 +000033445
cristy50d3f5c2011-09-10 20:09:06 +000033446
cristy3ed852e2009-09-05 21:47:34 +000033447
33448
33449#
33450# Check for RSVG delegate library.
33451#
33452
33453# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000033454if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000033455 withval=$with_rsvg; with_rsvg=$withval
33456else
cristy1164d5f2012-08-15 00:58:25 +000033457 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000033458fi
33459
33460
33461if test "$with_rsvg" != 'yes'; then
33462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
33463fi
33464
33465have_rsvg='no'
33466have_cairo='no'
33467RSVG_CFLAGS=""
33468RSVG_LIBS=""
33469RSVG_PKG=""
33470if test "x$with_rsvg" = "xyes"; then
cristy32f75d42015-06-05 18:46:23 +000033471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000033472$as_echo "-------------------------------------------------------------" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033473
33474pkg_failed=no
33475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
33476$as_echo_n "checking for RSVG... " >&6; }
33477
33478if test -n "$RSVG_CFLAGS"; then
33479 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
33480 elif test -n "$PKG_CONFIG"; then
33481 if test -n "$PKG_CONFIG" && \
33482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
33483 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
33484 ac_status=$?
33485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33486 test $ac_status = 0; }; then
33487 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033488 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000033489else
33490 pkg_failed=yes
33491fi
33492 else
33493 pkg_failed=untried
33494fi
33495if test -n "$RSVG_LIBS"; then
33496 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
33497 elif test -n "$PKG_CONFIG"; then
33498 if test -n "$PKG_CONFIG" && \
33499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
33500 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
33501 ac_status=$?
33502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33503 test $ac_status = 0; }; then
33504 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033505 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000033506else
33507 pkg_failed=yes
33508fi
33509 else
33510 pkg_failed=untried
33511fi
33512
33513
33514
33515if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000033516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33517$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033518
33519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33520 _pkg_short_errors_supported=yes
33521else
33522 _pkg_short_errors_supported=no
33523fi
33524 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000033525 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 +000033526 else
cristy146497a2015-05-17 22:46:16 +000033527 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000033528 fi
33529 # Put the nasty error message in config.log where it belongs
33530 echo "$RSVG_PKG_ERRORS" >&5
33531
cristy146497a2015-05-17 22:46:16 +000033532 have_rsvg=no
cristy73bd4a52010-10-05 11:24:23 +000033533elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000033534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33535$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033536 have_rsvg=no
33537else
33538 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
33539 RSVG_LIBS=$pkg_cv_RSVG_LIBS
33540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33541$as_echo "yes" >&6; }
33542 have_rsvg=yes
33543fi
cristy32f75d42015-06-05 18:46:23 +000033544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000033545$as_echo "" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033546
33547pkg_failed=no
33548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
33549$as_echo_n "checking for CAIRO_SVG... " >&6; }
33550
33551if test -n "$CAIRO_SVG_CFLAGS"; then
33552 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
33553 elif test -n "$PKG_CONFIG"; then
33554 if test -n "$PKG_CONFIG" && \
33555 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
33556 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
33557 ac_status=$?
33558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33559 test $ac_status = 0; }; then
33560 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033561 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000033562else
33563 pkg_failed=yes
33564fi
33565 else
33566 pkg_failed=untried
33567fi
33568if test -n "$CAIRO_SVG_LIBS"; then
33569 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
33570 elif test -n "$PKG_CONFIG"; then
33571 if test -n "$PKG_CONFIG" && \
33572 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
33573 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
33574 ac_status=$?
33575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33576 test $ac_status = 0; }; then
33577 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
cristy146497a2015-05-17 22:46:16 +000033578 test "x$?" != "x0" && pkg_failed=yes
cristy73bd4a52010-10-05 11:24:23 +000033579else
33580 pkg_failed=yes
33581fi
33582 else
33583 pkg_failed=untried
33584fi
33585
33586
33587
33588if test $pkg_failed = yes; then
cristy146497a2015-05-17 22:46:16 +000033589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033591
33592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33593 _pkg_short_errors_supported=yes
33594else
33595 _pkg_short_errors_supported=no
33596fi
33597 if test $_pkg_short_errors_supported = yes; then
cristy146497a2015-05-17 22:46:16 +000033598 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000033599 else
cristy146497a2015-05-17 22:46:16 +000033600 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
cristy73bd4a52010-10-05 11:24:23 +000033601 fi
33602 # Put the nasty error message in config.log where it belongs
33603 echo "$CAIRO_SVG_PKG_ERRORS" >&5
33604
cristy146497a2015-05-17 22:46:16 +000033605 have_cairo=no
cristy73bd4a52010-10-05 11:24:23 +000033606elif test $pkg_failed = untried; then
cristy146497a2015-05-17 22:46:16 +000033607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33608$as_echo "no" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000033609 have_cairo=no
33610else
33611 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
33612 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
33613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33614$as_echo "yes" >&6; }
33615 have_cairo=yes
33616fi
cristy32f75d42015-06-05 18:46:23 +000033617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
cristyad38abe2012-12-23 23:03:21 +000033618$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033619fi
33620
33621if test "$have_rsvg" = 'yes'; then
33622
cristy8b350f62009-11-15 23:12:43 +000033623$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033624
cristy32f75d42015-06-05 18:46:23 +000033625 CFLAGS="$RSVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000033626fi
33627
33628if test "$have_cairo" = 'yes'; then
33629
cristy8b350f62009-11-15 23:12:43 +000033630$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033631
cristy32f75d42015-06-05 18:46:23 +000033632 CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000033633fi
33634
cristy73bd4a52010-10-05 11:24:23 +000033635 if test "$have_rsvg" = 'yes'; then
33636 RSVG_DELEGATE_TRUE=
33637 RSVG_DELEGATE_FALSE='#'
33638else
33639 RSVG_DELEGATE_TRUE='#'
33640 RSVG_DELEGATE_FALSE=
33641fi
33642
33643 if test "$have_cairo" = 'yes'; then
33644 CAIRO_DELEGATE_TRUE=
33645 CAIRO_DELEGATE_FALSE='#'
33646else
33647 CAIRO_DELEGATE_TRUE='#'
33648 CAIRO_DELEGATE_FALSE=
33649fi
33650
cristy3ed852e2009-09-05 21:47:34 +000033651
33652
33653
33654
33655#
33656# Check for TIFF delegate library.
33657#
33658
33659# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000033660if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000033661 withval=$with_tiff; with_tiff=$withval
33662else
33663 with_tiff='yes'
33664fi
33665
33666
33667if test "$with_tiff" != 'yes'; then
33668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
33669fi
33670
33671have_tiff='no'
33672TIFF_LIBS=''
33673if test "$with_tiff" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000033674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33675$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000033676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo_n "checking for TIFF... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33679$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033680 failed=0
33681 passed=0
cristy8b350f62009-11-15 23:12:43 +000033682 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000033683if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033684 passed=`expr $passed + 1`
33685else
33686 failed=`expr $failed + 1`
33687fi
33688
33689
cristy8b350f62009-11-15 23:12:43 +000033690 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000033691if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033692 passed=`expr $passed + 1`
33693else
33694 failed=`expr $failed + 1`
33695fi
33696
33697
cristy8b350f62009-11-15 23:12:43 +000033698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033700if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033701 $as_echo_n "(cached) " >&6
33702else
33703 ac_check_lib_save_LIBS=$LIBS
33704LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033706/* end confdefs.h. */
33707
33708/* Override any GCC internal prototype to avoid an error.
33709 Use char because int might match the return type of a GCC
33710 builtin and then its argument prototype would still apply. */
33711#ifdef __cplusplus
33712extern "C"
33713#endif
33714char TIFFOpen ();
33715int
33716main ()
33717{
33718return TIFFOpen ();
33719 ;
33720 return 0;
33721}
33722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033724 ac_cv_lib_tiff_TIFFOpen=yes
33725else
cristy8b350f62009-11-15 23:12:43 +000033726 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000033727fi
cristy8b350f62009-11-15 23:12:43 +000033728rm -f core conftest.err conftest.$ac_objext \
33729 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033730LIBS=$ac_check_lib_save_LIBS
33731fi
cristy8b350f62009-11-15 23:12:43 +000033732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000033733$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000033734if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033735 passed=`expr $passed + 1`
33736else
33737 failed=`expr $failed + 1`
33738fi
33739
cristy8b350f62009-11-15 23:12:43 +000033740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000033741$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033742if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033743 $as_echo_n "(cached) " >&6
33744else
33745 ac_check_lib_save_LIBS=$LIBS
33746LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033748/* end confdefs.h. */
33749
33750/* Override any GCC internal prototype to avoid an error.
33751 Use char because int might match the return type of a GCC
33752 builtin and then its argument prototype would still apply. */
33753#ifdef __cplusplus
33754extern "C"
33755#endif
33756char TIFFClientOpen ();
33757int
33758main ()
33759{
33760return TIFFClientOpen ();
33761 ;
33762 return 0;
33763}
33764_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033765if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033766 ac_cv_lib_tiff_TIFFClientOpen=yes
33767else
cristy8b350f62009-11-15 23:12:43 +000033768 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000033769fi
cristy8b350f62009-11-15 23:12:43 +000033770rm -f core conftest.err conftest.$ac_objext \
33771 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033772LIBS=$ac_check_lib_save_LIBS
33773fi
cristy8b350f62009-11-15 23:12:43 +000033774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000033775$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000033776if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033777 passed=`expr $passed + 1`
33778else
33779 failed=`expr $failed + 1`
33780fi
33781
cristy8b350f62009-11-15 23:12:43 +000033782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000033783$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033784if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033785 $as_echo_n "(cached) " >&6
33786else
33787 ac_check_lib_save_LIBS=$LIBS
33788LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033790/* end confdefs.h. */
33791
33792/* Override any GCC internal prototype to avoid an error.
33793 Use char because int might match the return type of a GCC
33794 builtin and then its argument prototype would still apply. */
33795#ifdef __cplusplus
33796extern "C"
33797#endif
33798char TIFFIsByteSwapped ();
33799int
33800main ()
33801{
33802return TIFFIsByteSwapped ();
33803 ;
33804 return 0;
33805}
33806_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033807if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033808 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
33809else
cristy8b350f62009-11-15 23:12:43 +000033810 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000033811fi
cristy8b350f62009-11-15 23:12:43 +000033812rm -f core conftest.err conftest.$ac_objext \
33813 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033814LIBS=$ac_check_lib_save_LIBS
33815fi
cristy8b350f62009-11-15 23:12:43 +000033816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000033817$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000033818if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033819 passed=`expr $passed + 1`
33820else
33821 failed=`expr $failed + 1`
33822fi
33823
cristy8b350f62009-11-15 23:12:43 +000033824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000033825$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033826if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033827 $as_echo_n "(cached) " >&6
33828else
33829 ac_check_lib_save_LIBS=$LIBS
33830LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033832/* end confdefs.h. */
33833
33834/* Override any GCC internal prototype to avoid an error.
33835 Use char because int might match the return type of a GCC
33836 builtin and then its argument prototype would still apply. */
33837#ifdef __cplusplus
33838extern "C"
33839#endif
33840char TIFFReadRGBATile ();
33841int
33842main ()
33843{
33844return TIFFReadRGBATile ();
33845 ;
33846 return 0;
33847}
33848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033850 ac_cv_lib_tiff_TIFFReadRGBATile=yes
33851else
cristy8b350f62009-11-15 23:12:43 +000033852 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000033853fi
cristy8b350f62009-11-15 23:12:43 +000033854rm -f core conftest.err conftest.$ac_objext \
33855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033856LIBS=$ac_check_lib_save_LIBS
33857fi
cristy8b350f62009-11-15 23:12:43 +000033858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000033860if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033861 passed=`expr $passed + 1`
33862else
33863 failed=`expr $failed + 1`
33864fi
33865
cristy8b350f62009-11-15 23:12:43 +000033866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000033867$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033868if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033869 $as_echo_n "(cached) " >&6
33870else
33871 ac_check_lib_save_LIBS=$LIBS
33872LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000033873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033874/* end confdefs.h. */
33875
33876/* Override any GCC internal prototype to avoid an error.
33877 Use char because int might match the return type of a GCC
33878 builtin and then its argument prototype would still apply. */
33879#ifdef __cplusplus
33880extern "C"
33881#endif
33882char TIFFReadRGBAStrip ();
33883int
33884main ()
33885{
33886return TIFFReadRGBAStrip ();
33887 ;
33888 return 0;
33889}
33890_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033891if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000033892 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
33893else
cristy8b350f62009-11-15 23:12:43 +000033894 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000033895fi
cristy8b350f62009-11-15 23:12:43 +000033896rm -f core conftest.err conftest.$ac_objext \
33897 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000033898LIBS=$ac_check_lib_save_LIBS
33899fi
cristy8b350f62009-11-15 23:12:43 +000033900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000033902if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033903 passed=`expr $passed + 1`
33904else
33905 failed=`expr $failed + 1`
33906fi
33907
cristy8b350f62009-11-15 23:12:43 +000033908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000033909$as_echo_n "checking if TIFF package is complete... " >&6; }
33910 if test $passed -gt 0; then
33911 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33913$as_echo "no -- some components failed test" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033914 have_tiff='no (failed tests)'
33915 else
33916 TIFF_LIBS='-ltiff'
33917 LIBS="$TIFF_LIBS $LIBS"
33918
cristy8b350f62009-11-15 23:12:43 +000033919$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000033920
cristyad38abe2012-12-23 23:03:21 +000033921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33922$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033923 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000033924 for ac_header in tiffconf.h
33925do :
33926 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000033927if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000033928 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000033929#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000033930_ACEOF
33931
33932fi
33933
33934done
33935
cristy8b350f62009-11-15 23:12:43 +000033936 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000033937 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
33938 TIFFSetTagExtender TIFFSetWarningHandlerExt \
33939 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000033940do :
33941 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000033943if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000033944 cat >>confdefs.h <<_ACEOF
33945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33946_ACEOF
33947
33948fi
33949done
33950
33951 fi
33952 else
cristyad38abe2012-12-23 23:03:21 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33954$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000033955 fi
33956fi
cristy73bd4a52010-10-05 11:24:23 +000033957 if test "$have_tiff" = 'yes'; then
33958 TIFF_DELEGATE_TRUE=
33959 TIFF_DELEGATE_FALSE='#'
33960else
33961 TIFF_DELEGATE_TRUE='#'
33962 TIFF_DELEGATE_FALSE=
33963fi
33964
cristy3ed852e2009-09-05 21:47:34 +000033965
33966
33967
33968#
cristyb1860752011-03-14 00:27:46 +000033969# Check for WEBP delegate library.
33970#
33971
33972# Check whether --with-webp was given.
33973if test "${with_webp+set}" = set; then :
33974 withval=$with_webp; with_webp=$withval
33975else
33976 with_webp='yes'
33977fi
33978
33979
33980if test "$with_webp" != 'yes'; then
33981 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
33982fi
33983
33984have_webp='no'
33985WEBP_LIBS=''
33986if test "$with_webp" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000033987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33988$as_echo "-------------------------------------------------------------" >&6; }
cristyb1860752011-03-14 00:27:46 +000033989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
33990$as_echo_n "checking for WEBP... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000033991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33992$as_echo "" >&6; }
cristyb1860752011-03-14 00:27:46 +000033993 failed=0
33994 passed=0
33995 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
33996if test "x$ac_cv_header_webp_decode_h" = xyes; then :
33997 passed=`expr $passed + 1`
33998else
33999 failed=`expr $failed + 1`
34000fi
34001
34002
cristy6d670312013-03-22 23:23:01 +000034003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
34004$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
34005if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
cristyb1860752011-03-14 00:27:46 +000034006 $as_echo_n "(cached) " >&6
34007else
34008 ac_check_lib_save_LIBS=$LIBS
34009LIBS="-lwebp $LIBS"
34010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34011/* end confdefs.h. */
34012
34013/* Override any GCC internal prototype to avoid an error.
34014 Use char because int might match the return type of a GCC
34015 builtin and then its argument prototype would still apply. */
34016#ifdef __cplusplus
34017extern "C"
34018#endif
cristy6d670312013-03-22 23:23:01 +000034019char WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000034020int
34021main ()
34022{
cristy6d670312013-03-22 23:23:01 +000034023return WebPPictureInitInternal ();
cristyb1860752011-03-14 00:27:46 +000034024 ;
34025 return 0;
34026}
34027_ACEOF
34028if ac_fn_c_try_link "$LINENO"; then :
cristy6d670312013-03-22 23:23:01 +000034029 ac_cv_lib_webp_WebPPictureInitInternal=yes
cristyb1860752011-03-14 00:27:46 +000034030else
cristy6d670312013-03-22 23:23:01 +000034031 ac_cv_lib_webp_WebPPictureInitInternal=no
cristyb1860752011-03-14 00:27:46 +000034032fi
34033rm -f core conftest.err conftest.$ac_objext \
34034 conftest$ac_exeext conftest.$ac_ext
34035LIBS=$ac_check_lib_save_LIBS
34036fi
cristy6d670312013-03-22 23:23:01 +000034037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
34038$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
34039if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
cristyb1860752011-03-14 00:27:46 +000034040 passed=`expr $passed + 1`
34041else
34042 failed=`expr $failed + 1`
34043fi
34044
34045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
34046$as_echo_n "checking if WEBP package is complete... " >&6; }
34047 if test $passed -gt 0; then
34048 if test $failed -gt 0; then
cristyad38abe2012-12-23 23:03:21 +000034049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34050$as_echo "no -- some components failed test" >&6; }
cristyb1860752011-03-14 00:27:46 +000034051 have_webp='no (failed tests)'
34052 else
34053 WEBP_LIBS='-lwebp'
34054 LIBS="$WEBP_LIBS $LIBS"
34055
34056$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
34057
cristyad38abe2012-12-23 23:03:21 +000034058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34059$as_echo "yes" >&6; }
cristyb1860752011-03-14 00:27:46 +000034060 have_webp='yes'
34061 fi
34062 else
cristyad38abe2012-12-23 23:03:21 +000034063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34064$as_echo "no" >&6; }
cristyb1860752011-03-14 00:27:46 +000034065 fi
34066fi
34067 if test "$have_webp" = 'yes'; then
34068 WEBP_DELEGATE_TRUE=
34069 WEBP_DELEGATE_FALSE='#'
34070else
34071 WEBP_DELEGATE_TRUE='#'
34072 WEBP_DELEGATE_FALSE=
34073fi
34074
34075
34076
34077
34078#
cristy3ed852e2009-09-05 21:47:34 +000034079# Set Windows font directory.
34080#
34081
34082# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000034083if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000034084 withval=$with_windows_font_dir; with_windows_font_dir=$withval
34085else
cristy5a3dc992014-12-05 19:50:04 +000034086 with_windows_font_dir='default'
cristy3ed852e2009-09-05 21:47:34 +000034087fi
34088
cristy5a3dc992014-12-05 19:50:04 +000034089
34090if test "$with_windows_font_dir" != 'default'; then
cristy3ed852e2009-09-05 21:47:34 +000034091 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
34092fi
34093
34094
34095#
34096# Check for WMF delegate library.
34097#
34098
34099# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000034100if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000034101 withval=$with_wmf; with_wmf=$withval
34102else
cristy32f75d42015-06-05 18:46:23 +000034103 with_wmf='yes'
cristy3ed852e2009-09-05 21:47:34 +000034104fi
34105
34106
34107if test "$with_wmf" != 'yes'; then
34108 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
34109fi
34110
34111have_wmf='no'
cristyebc8f692015-06-16 10:36:30 +000034112WMF_LIBS=''
34113WMF_CFLAGS=''
34114OLIBS="$LIBS"
34115if test "$with_wmf" != 'no'; then
34116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
34117$as_echo_n "checking for WMF support ... " >&6; }
cristy32f75d42015-06-05 18:46:23 +000034118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34119$as_echo "" >&6; }
cristyebc8f692015-06-16 10:36:30 +000034120
34121 have_libwmflite='no'
34122 have_libwmf_ipa_h='no'
34123
34124 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
34125"
34126if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
34127 have_libwmf_ipa_h='yes'
cristy03f7cf92011-12-15 01:40:41 +000034128fi
34129
cristyebc8f692015-06-16 10:36:30 +000034130
34131 if test "$have_libwmf_ipa_h" = 'yes'; then
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
34133$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
34134if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
34135 $as_echo_n "(cached) " >&6
34136else
34137 ac_check_lib_save_LIBS=$LIBS
34138LIBS="-lwmflite $LIBS"
34139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34140/* end confdefs.h. */
34141
34142/* Override any GCC internal prototype to avoid an error.
34143 Use char because int might match the return type of a GCC
34144 builtin and then its argument prototype would still apply. */
34145#ifdef __cplusplus
34146extern "C"
34147#endif
34148char wmf_lite_create ();
34149int
34150main ()
34151{
34152return wmf_lite_create ();
34153 ;
34154 return 0;
34155}
34156_ACEOF
34157if ac_fn_c_try_link "$LINENO"; then :
34158 ac_cv_lib_wmflite_wmf_lite_create=yes
34159else
34160 ac_cv_lib_wmflite_wmf_lite_create=no
34161fi
34162rm -f core conftest.err conftest.$ac_objext \
34163 conftest$ac_exeext conftest.$ac_ext
34164LIBS=$ac_check_lib_save_LIBS
34165fi
34166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
34167$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
34168if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
34169 have_libwmflite='yes'
34170fi
34171
34172 if test "$have_libwmflite" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000034173
cristy8b350f62009-11-15 23:12:43 +000034174$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000034175
cristyebc8f692015-06-16 10:36:30 +000034176 WMF_LIBS='-lwmflite'
34177 LIBS="$WMF_LIBS $LIBS"
34178 have_wmf='yes'
34179 else
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34181$as_echo "no -- some components failed test" >&6; }
34182 have_wmf='no (failed tests)'
34183 have_wmflite='no (failed tests)'
34184 LIBS="$OLIBS"
34185 WMF_LIBS=''
34186 fi
34187 fi
cristy3ed852e2009-09-05 21:47:34 +000034188fi
cristyebc8f692015-06-16 10:36:30 +000034189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
34190$as_echo_n "checking if WMF package is complete ... " >&6; }
34191if test "$have_wmf" = 'yes'; then
34192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34193$as_echo "yes" >&6; }
34194else
34195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34196$as_echo "no" >&6; }
34197fi
cristy73bd4a52010-10-05 11:24:23 +000034198 if test "$have_wmf" = 'yes'; then
34199 WMF_DELEGATE_TRUE=
34200 WMF_DELEGATE_FALSE='#'
34201else
34202 WMF_DELEGATE_TRUE='#'
34203 WMF_DELEGATE_FALSE=
34204fi
34205
cristy3ed852e2009-09-05 21:47:34 +000034206
34207
34208
cristy81beccd2011-10-03 18:17:24 +000034209
cristy3ed852e2009-09-05 21:47:34 +000034210#
34211# Check for XML delegate library.
34212#
34213
34214# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000034215if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000034216 withval=$with_xml; with_xml=$withval
34217else
cristyfc3d0222012-02-07 15:05:57 +000034218 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000034219fi
34220
34221
cristy81beccd2011-10-03 18:17:24 +000034222if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000034223 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
34224fi
34225
cristy81beccd2011-10-03 18:17:24 +000034226have_xml='no'
cristy32f75d42015-06-05 18:46:23 +000034227XML_CFLAGS=""
34228XML_LIBS=""
34229XML_PKG=""
34230if test "x$with_xml" = "xyes"; then
34231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
cristyad38abe2012-12-23 23:03:21 +000034232$as_echo "-------------------------------------------------------------" >&6; }
cristy32f75d42015-06-05 18:46:23 +000034233
34234pkg_failed=no
34235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
cristy81beccd2011-10-03 18:17:24 +000034236$as_echo_n "checking for XML... " >&6; }
cristy81beccd2011-10-03 18:17:24 +000034237
cristy32f75d42015-06-05 18:46:23 +000034238if test -n "$XML_CFLAGS"; then
34239 pkg_cv_XML_CFLAGS="$XML_CFLAGS"
34240 elif test -n "$PKG_CONFIG"; then
34241 if test -n "$PKG_CONFIG" && \
34242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
34243 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
34244 ac_status=$?
34245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34246 test $ac_status = 0; }; then
34247 pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
34248 test "x$?" != "x0" && pkg_failed=yes
cristy81beccd2011-10-03 18:17:24 +000034249else
cristy32f75d42015-06-05 18:46:23 +000034250 pkg_failed=yes
34251fi
34252 else
34253 pkg_failed=untried
34254fi
34255if test -n "$XML_LIBS"; then
34256 pkg_cv_XML_LIBS="$XML_LIBS"
34257 elif test -n "$PKG_CONFIG"; then
34258 if test -n "$PKG_CONFIG" && \
34259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
34260 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
34261 ac_status=$?
34262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34263 test $ac_status = 0; }; then
34264 pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
34265 test "x$?" != "x0" && pkg_failed=yes
34266else
34267 pkg_failed=yes
34268fi
34269 else
34270 pkg_failed=untried
34271fi
34272
34273
34274
34275if test $pkg_failed = yes; then
34276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy81beccd2011-10-03 18:17:24 +000034277$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034278
cristy32f75d42015-06-05 18:46:23 +000034279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34280 _pkg_short_errors_supported=yes
cristy81beccd2011-10-03 18:17:24 +000034281else
cristy32f75d42015-06-05 18:46:23 +000034282 _pkg_short_errors_supported=no
cristy81beccd2011-10-03 18:17:24 +000034283fi
cristy32f75d42015-06-05 18:46:23 +000034284 if test $_pkg_short_errors_supported = yes; then
34285 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 +000034286 else
cristy32f75d42015-06-05 18:46:23 +000034287 XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
34288 fi
34289 # Put the nasty error message in config.log where it belongs
34290 echo "$XML_PKG_ERRORS" >&5
34291
34292 have_xml=no
34293elif test $pkg_failed = untried; then
34294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34295$as_echo "no" >&6; }
34296 have_xml=no
34297else
34298 XML_CFLAGS=$pkg_cv_XML_CFLAGS
34299 XML_LIBS=$pkg_cv_XML_LIBS
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34301$as_echo "yes" >&6; }
34302 have_xml=yes
34303fi
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34305$as_echo "" >&6; }
34306fi
34307
34308if test "$have_xml" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000034309
cristy8b350f62009-11-15 23:12:43 +000034310$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000034311
cristy32f75d42015-06-05 18:46:23 +000034312 CFLAGS="$XML_CFLAGS $CFLAGS"
cristy3ed852e2009-09-05 21:47:34 +000034313fi
cristy32f75d42015-06-05 18:46:23 +000034314
cristy73bd4a52010-10-05 11:24:23 +000034315 if test "$have_xml" = 'yes'; then
34316 XML_DELEGATE_TRUE=
34317 XML_DELEGATE_FALSE='#'
34318else
34319 XML_DELEGATE_TRUE='#'
34320 XML_DELEGATE_FALSE=
34321fi
34322
cristy3ed852e2009-09-05 21:47:34 +000034323
34324
34325
cristy32f75d42015-06-05 18:46:23 +000034326
cristy3ed852e2009-09-05 21:47:34 +000034327# Substitute compiler name to build/link PerlMagick
34328#
34329
34330
34331#
34332# Configure install Paths
34333#
cristy7def36a2011-10-28 19:04:41 +000034334
cristy2a11bef2011-10-28 18:33:11 +000034335# Path to ImageMagick header files
cristybdabdd62013-03-04 17:43:36 +000034336INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristye52f12f2012-12-31 15:32:36 +000034337INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
34338DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000034339case "${build_os}" in
34340 mingw* )
34341 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
34342 ;;
34343esac
34344
34345cat >>confdefs.h <<_ACEOF
34346#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
34347_ACEOF
34348
34349
cristy3ed852e2009-09-05 21:47:34 +000034350
cristye52f12f2012-12-31 15:32:36 +000034351# Path to ImageMagick header files (arch part)
34352INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
34353DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
34354case "${build_os}" in
34355 mingw* )
34356 DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
34357 ;;
34358esac
34359
34360cat >>confdefs.h <<_ACEOF
34361#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
34362_ACEOF
34363
34364
34365
cristy3ed852e2009-09-05 21:47:34 +000034366# Subdirectory under lib to place ImageMagick lib files
34367LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
34368
34369cat >>confdefs.h <<_ACEOF
34370#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
34371_ACEOF
34372
34373
34374# Path to ImageMagick bin directory
34375EXECUTABLE_PATH="${BIN_DIR}"
34376DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
34377case "${build_os}" in
34378 mingw* )
34379 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
34380 ;;
34381esac
34382
34383cat >>confdefs.h <<_ACEOF
34384#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
34385_ACEOF
34386
34387
34388
34389# Path to ImageMagick lib
34390LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
34391DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
34392case "${build_os}" in
34393 mingw* )
34394 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
34395 ;;
34396esac
34397
34398cat >>confdefs.h <<_ACEOF
34399#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
34400_ACEOF
34401
34402
34403
cristy3ed852e2009-09-05 21:47:34 +000034404#
cristy8d0ff762013-03-10 20:33:28 +000034405# path to local binaries
34406if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
34407 LIB_BIN_BASEDIRNAME="bin"
34408fi
34409
34410cat >>confdefs.h <<_ACEOF
34411#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
34412_ACEOF
34413
34414
34415
34416if test "x$LIB_BIN_DIR" = "x"; then
34417 LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34418fi
34419
34420
34421LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
34422
34423LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
34424
34425
34426#
cristy01ff9f32012-12-01 18:15:29 +000034427# path to modules lib
34428if test "x$MODULES_BASEDIRNAME" = "x"; then
34429 MODULES_BASEDIRNAME="modules"
34430fi
cristy3ed852e2009-09-05 21:47:34 +000034431
34432cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000034433#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000034434_ACEOF
34435
cristy01ff9f32012-12-01 18:15:29 +000034436
34437
34438if test "x$MODULES_DIRNAME" = "x"; then
cristy4bdbd342012-12-03 18:41:18 +000034439 MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34440else
cristy3ed852e2009-09-05 21:47:34 +000034441
34442cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000034443#define MODULES_DIRNAME "$MODULES_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000034444_ACEOF
34445
cristycf4a3c22012-12-02 21:47:25 +000034446fi
cristy01ff9f32012-12-01 18:15:29 +000034447
34448
cristy371d4812012-12-01 19:48:10 +000034449MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000034450
34451MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
34452
34453
34454#
34455# path to coders lib
34456if test "x$CODER_DIRNAME" = "x"; then
34457 CODER_DIRNAME="coders"
34458fi
34459
34460cat >>confdefs.h <<_ACEOF
34461#define CODER_DIRNAME "$CODER_DIRNAME"
34462_ACEOF
34463
34464
34465
cristy371d4812012-12-01 19:48:10 +000034466CODER_RELATIVE_PATH="${CODER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000034467CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000034468
34469
34470#
34471# Subdirectory under lib to place ImageMagick filter module files
cristy01ff9f32012-12-01 18:15:29 +000034472#
34473# path to coders lib
34474if test "x$FILTER_DIRNAME" = "x"; then
34475 FILTER_DIRNAME="filters"
34476fi
cristy3ed852e2009-09-05 21:47:34 +000034477
34478cat >>confdefs.h <<_ACEOF
cristy01ff9f32012-12-01 18:15:29 +000034479#define FILTER_DIRNAME "$FILTER_DIRNAME"
cristy3ed852e2009-09-05 21:47:34 +000034480_ACEOF
34481
cristy3ed852e2009-09-05 21:47:34 +000034482
cristy3ed852e2009-09-05 21:47:34 +000034483
cristy371d4812012-12-01 19:48:10 +000034484FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
cristy01ff9f32012-12-01 18:15:29 +000034485FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
cristy3ed852e2009-09-05 21:47:34 +000034486
34487
34488#
34489# Path to ImageMagick documentation files
Cristye35bdc62015-09-19 18:29:00 -040034490DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34491DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
34492DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000034493case "${build_os}" in
34494 mingw* )
34495 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
34496 ;;
34497esac
34498
34499cat >>confdefs.h <<_ACEOF
34500#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
34501_ACEOF
34502
34503
34504
cristydd17feb2014-03-05 02:06:32 +000034505#
34506# Enable/Disable documentation
34507# Check whether --enable-docs was given.
34508if test "${enable_docs+set}" = set; then :
34509 enableval=$enable_docs; wantdocs=$enableval
34510else
cristy02272312014-03-07 00:55:25 +000034511 wantdocs=yes
cristydd17feb2014-03-05 02:06:32 +000034512fi
34513
cristy02272312014-03-07 00:55:25 +000034514 if test "$wantdocs" = "yes"; then
cristydd17feb2014-03-05 02:06:32 +000034515 INSTALL_DOC_TRUE=
34516 INSTALL_DOC_FALSE='#'
34517else
34518 INSTALL_DOC_TRUE='#'
34519 INSTALL_DOC_FALSE=
34520fi
34521
34522
cristy2a11bef2011-10-28 18:33:11 +000034523# Subdirectory to place architecture-dependent configuration files
cristybdabdd62013-03-04 17:43:36 +000034524CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy45dbd322011-03-27 16:40:38 +000034525
34526cat >>confdefs.h <<_ACEOF
34527#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
34528_ACEOF
34529
cristy7def36a2011-10-28 19:04:41 +000034530CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000034531DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
34532case "${build_os}" in
34533 mingw* )
34534 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
34535 ;;
34536esac
34537
34538cat >>confdefs.h <<_ACEOF
34539#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
34540_ACEOF
34541
34542
34543
cristy2a11bef2011-10-28 18:33:11 +000034544# Subdirectory to place architecture-independent configuration files
cristybdabdd62013-03-04 17:43:36 +000034545SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
cristy3ed852e2009-09-05 21:47:34 +000034546
34547cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000034548#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000034549_ACEOF
34550
cristy670aa3c2011-11-03 00:54:00 +000034551SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000034552DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000034553case "${build_os}" in
34554 mingw* )
cristy4f820712011-04-01 12:35:43 +000034555 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000034556 ;;
34557esac
34558
34559cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000034560#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000034561_ACEOF
34562
34563
34564
cristy54378032012-12-04 15:52:20 +000034565#
34566# Subdirectory to place architecture-dependent configuration files.
34567if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
34568 SHAREARCH_BASEDIRNAME="config"
34569fi
cristy670aa3c2011-11-03 00:54:00 +000034570
34571cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000034572#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000034573_ACEOF
34574
cristy54378032012-12-04 15:52:20 +000034575
34576
34577if test "x$SHAREARCH_DIRNAME" = "x"; then
34578 SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34579else
cristy670aa3c2011-11-03 00:54:00 +000034580
34581cat >>confdefs.h <<_ACEOF
cristy54378032012-12-04 15:52:20 +000034582#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
cristy670aa3c2011-11-03 00:54:00 +000034583_ACEOF
34584
cristy54378032012-12-04 15:52:20 +000034585fi
34586
34587
34588SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
34589
34590SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
cristy670aa3c2011-11-03 00:54:00 +000034591
34592
cristy3ed852e2009-09-05 21:47:34 +000034593#
34594# program_transform_name is formed for use in a Makefile, so create a
34595# modified version for use in a shell script.
34596configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
34597
34598# Default delegate definitions
cristyad38abe2012-12-23 23:03:21 +000034599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34600$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000034601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000034603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34604$as_echo "" >&6; }
cristy16b412d2014-12-15 11:09:48 +000034605BPGDecodeDelegateDefault='bpgdec'
34606BPGEncodeDelegateDefault='bpgenc'
cristy3d7f8062009-09-24 20:45:35 +000034607BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000034608BrowseDelegateDefault='xdg-open'
cristy3ed852e2009-09-05 21:47:34 +000034609DNGDecodeDelegateDefault='ufraw-batch'
cristy66f238e2014-05-16 12:21:48 +000034610DOCDecodeDelegateDefault='soffice'
cristy3ed852e2009-09-05 21:47:34 +000034611GVCDecodeDelegateDefault='dot'
34612DVIDecodeDelegateDefault='dvips'
cristy3ed852e2009-09-05 21:47:34 +000034613EditorDelegateDefault='xterm'
Cristy59748702016-05-12 21:35:47 -040034614ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
34615DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
34616MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
cristy3ed852e2009-09-05 21:47:34 +000034617HPGLDecodeDelegateDefault='hp2xx'
34618HTMLDecodeDelegateDefault='html2ps'
34619ILBMDecodeDelegateDefault='ilbmtoppm'
34620ILBMEncodeDelegateDefault='ppmtoilbm'
cristy71f53d52013-04-27 13:33:59 +000034621JXRDecodeDelegateDefault='JxrDecApp'
34622JXREncodeDelegateDefault='JxrEncApp'
cristy3ed852e2009-09-05 21:47:34 +000034623LPDelegateDefault='lp'
34624LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000034625LaunchDelegateDefault='gimp'
cristy81ab5af2013-10-06 18:28:39 +000034626MPEGDecodeDelegateDefault='avconv'
34627MPEGEncodeDelegateDefault='avconv'
cristy935c86e2010-06-05 23:50:07 +000034628MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000034629MVDelegateDefault='mv'
34630PCLDelegateDefault='pcl6'
cristy3ed852e2009-09-05 21:47:34 +000034631if test "$native_win32_build" = 'yes'; then
34632 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000034633elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000034634 PSDelegateDefault='gsc'
34635else
34636 PSDelegateDefault='gs'
34637fi
cristy3ed852e2009-09-05 21:47:34 +000034638RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000034639RSVGDecodeDelegateDefault='rsvg-convert'
cristyec6934f2012-08-14 18:38:40 +000034640SVGDecodeDelegateDefault='inkscape'
cristy16db5ed2010-07-29 13:32:02 +000034641UniconvertorDelegateDefault='uniconvertor'
cristy86e86092013-08-04 17:43:57 +000034642WebPDecodeDelegateDefault='dwebp'
34643WebPEncodeDelegateDefault='cwebp'
Cristydc553c12016-05-09 13:27:06 -040034644WWWDecodeDelegateDefault='curl'
cristy3ed852e2009-09-05 21:47:34 +000034645XPSDelegateDefault='gxps'
cristy3ed852e2009-09-05 21:47:34 +000034646
34647# Search for delegates
Cristy06c41ab2016-04-30 10:23:22 -040034648# Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
34649set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
cristy16b412d2014-12-15 11:09:48 +000034650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34651$as_echo_n "checking for $ac_word... " >&6; }
Cristy06c41ab2016-04-30 10:23:22 -040034652if ${ac_cv_path_BPGDecodeDelegate+:} false; then :
cristy16b412d2014-12-15 11:09:48 +000034653 $as_echo_n "(cached) " >&6
34654else
Cristy06c41ab2016-04-30 10:23:22 -040034655 case $BPGDecodeDelegate in
cristy16b412d2014-12-15 11:09:48 +000034656 [\\/]* | ?:[\\/]*)
Cristy06c41ab2016-04-30 10:23:22 -040034657 ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
cristy16b412d2014-12-15 11:09:48 +000034658 ;;
34659 *)
34660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34661for as_dir in $PATH
34662do
34663 IFS=$as_save_IFS
34664 test -z "$as_dir" && as_dir=.
34665 for ac_exec_ext in '' $ac_executable_extensions; do
34666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cristy06c41ab2016-04-30 10:23:22 -040034667 ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy16b412d2014-12-15 11:09:48 +000034668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34669 break 2
34670 fi
34671done
34672 done
34673IFS=$as_save_IFS
34674
Cristy06c41ab2016-04-30 10:23:22 -040034675 test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
cristy16b412d2014-12-15 11:09:48 +000034676 ;;
34677esac
34678fi
Cristy06c41ab2016-04-30 10:23:22 -040034679BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
34680if test -n "$BPGDecodeDelegate"; then
34681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
34682$as_echo "$BPGDecodeDelegate" >&6; }
cristy16b412d2014-12-15 11:09:48 +000034683else
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34685$as_echo "no" >&6; }
34686fi
34687
34688
Cristy06c41ab2016-04-30 10:23:22 -040034689# Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
34690set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
cristy16b412d2014-12-15 11:09:48 +000034691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34692$as_echo_n "checking for $ac_word... " >&6; }
Cristy06c41ab2016-04-30 10:23:22 -040034693if ${ac_cv_path_BPGEncodeDelegate+:} false; then :
cristy16b412d2014-12-15 11:09:48 +000034694 $as_echo_n "(cached) " >&6
34695else
Cristy06c41ab2016-04-30 10:23:22 -040034696 case $BPGEncodeDelegate in
cristy16b412d2014-12-15 11:09:48 +000034697 [\\/]* | ?:[\\/]*)
Cristy06c41ab2016-04-30 10:23:22 -040034698 ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
cristy16b412d2014-12-15 11:09:48 +000034699 ;;
34700 *)
34701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34702for as_dir in $PATH
34703do
34704 IFS=$as_save_IFS
34705 test -z "$as_dir" && as_dir=.
34706 for ac_exec_ext in '' $ac_executable_extensions; do
34707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Cristy06c41ab2016-04-30 10:23:22 -040034708 ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy16b412d2014-12-15 11:09:48 +000034709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34710 break 2
34711 fi
34712done
34713 done
34714IFS=$as_save_IFS
34715
Cristy06c41ab2016-04-30 10:23:22 -040034716 test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
cristy16b412d2014-12-15 11:09:48 +000034717 ;;
34718esac
34719fi
Cristy06c41ab2016-04-30 10:23:22 -040034720BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
34721if test -n "$BPGEncodeDelegate"; then
34722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
34723$as_echo "$BPGEncodeDelegate" >&6; }
cristy16b412d2014-12-15 11:09:48 +000034724else
34725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34726$as_echo "no" >&6; }
34727fi
34728
34729
cristy3ed852e2009-09-05 21:47:34 +000034730# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
34731set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034733$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034734if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034735 $as_echo_n "(cached) " >&6
34736else
34737 case $BlenderDecodeDelegate in
34738 [\\/]* | ?:[\\/]*)
34739 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
34740 ;;
34741 *)
34742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34743for as_dir in $PATH
34744do
34745 IFS=$as_save_IFS
34746 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034747 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034749 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034751 break 2
34752 fi
34753done
cristy8b350f62009-11-15 23:12:43 +000034754 done
cristy3ed852e2009-09-05 21:47:34 +000034755IFS=$as_save_IFS
34756
34757 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
34758 ;;
34759esac
34760fi
34761BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
34762if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034764$as_echo "$BlenderDecodeDelegate" >&6; }
34765else
cristy8b350f62009-11-15 23:12:43 +000034766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034767$as_echo "no" >&6; }
34768fi
34769
34770
cristyc59f0e72012-08-27 12:59:33 +000034771for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
34772do
34773 # Extract the first word of "$ac_prog", so it can be a program name with args.
34774set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034776$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034777if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034778 $as_echo_n "(cached) " >&6
34779else
34780 case $BrowseDelegate in
34781 [\\/]* | ?:[\\/]*)
34782 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
34783 ;;
34784 *)
34785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34786for as_dir in $PATH
34787do
34788 IFS=$as_save_IFS
34789 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034790 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034792 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034794 break 2
34795 fi
34796done
cristy8b350f62009-11-15 23:12:43 +000034797 done
cristy3ed852e2009-09-05 21:47:34 +000034798IFS=$as_save_IFS
34799
cristy3ed852e2009-09-05 21:47:34 +000034800 ;;
34801esac
34802fi
34803BrowseDelegate=$ac_cv_path_BrowseDelegate
34804if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034806$as_echo "$BrowseDelegate" >&6; }
34807else
cristy8b350f62009-11-15 23:12:43 +000034808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034809$as_echo "no" >&6; }
34810fi
34811
34812
cristyc59f0e72012-08-27 12:59:33 +000034813 test -n "$BrowseDelegate" && break
34814done
34815test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
34816
cristy3ed852e2009-09-05 21:47:34 +000034817# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
34818set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034820$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034821if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034822 $as_echo_n "(cached) " >&6
34823else
34824 case $DNGDecodeDelegate in
34825 [\\/]* | ?:[\\/]*)
34826 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
34827 ;;
34828 *)
34829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34830for as_dir in $PATH
34831do
34832 IFS=$as_save_IFS
34833 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034836 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034838 break 2
34839 fi
34840done
cristy8b350f62009-11-15 23:12:43 +000034841 done
cristy3ed852e2009-09-05 21:47:34 +000034842IFS=$as_save_IFS
34843
34844 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
34845 ;;
34846esac
34847fi
34848DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
34849if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034851$as_echo "$DNGDecodeDelegate" >&6; }
34852else
cristy8b350f62009-11-15 23:12:43 +000034853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034854$as_echo "no" >&6; }
34855fi
34856
34857
cristy66f238e2014-05-16 12:21:48 +000034858# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
34859set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034861$as_echo_n "checking for $ac_word... " >&6; }
cristy66f238e2014-05-16 12:21:48 +000034862if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034863 $as_echo_n "(cached) " >&6
34864else
cristy66f238e2014-05-16 12:21:48 +000034865 case $DOCDecodeDelegate in
cristy3ed852e2009-09-05 21:47:34 +000034866 [\\/]* | ?:[\\/]*)
cristy66f238e2014-05-16 12:21:48 +000034867 ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
cristy3ed852e2009-09-05 21:47:34 +000034868 ;;
34869 *)
34870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34871for as_dir in $PATH
34872do
34873 IFS=$as_save_IFS
34874 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034875 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy66f238e2014-05-16 12:21:48 +000034877 ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034879 break 2
34880 fi
34881done
cristy8b350f62009-11-15 23:12:43 +000034882 done
cristy3ed852e2009-09-05 21:47:34 +000034883IFS=$as_save_IFS
34884
cristy66f238e2014-05-16 12:21:48 +000034885 test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
cristy3ed852e2009-09-05 21:47:34 +000034886 ;;
34887esac
34888fi
cristy66f238e2014-05-16 12:21:48 +000034889DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
34890if test -n "$DOCDecodeDelegate"; then
34891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
34892$as_echo "$DOCDecodeDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000034893else
cristy8b350f62009-11-15 23:12:43 +000034894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034895$as_echo "no" >&6; }
34896fi
34897
34898
34899# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
34900set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034902$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034903if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034904 $as_echo_n "(cached) " >&6
34905else
34906 case $DVIDecodeDelegate in
34907 [\\/]* | ?:[\\/]*)
34908 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
34909 ;;
34910 *)
34911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34912for as_dir in $PATH
34913do
34914 IFS=$as_save_IFS
34915 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034916 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034918 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034920 break 2
34921 fi
34922done
cristy8b350f62009-11-15 23:12:43 +000034923 done
cristy3ed852e2009-09-05 21:47:34 +000034924IFS=$as_save_IFS
34925
34926 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
34927 ;;
34928esac
34929fi
34930DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
34931if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034933$as_echo "$DVIDecodeDelegate" >&6; }
34934else
cristy8b350f62009-11-15 23:12:43 +000034935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034936$as_echo "no" >&6; }
34937fi
34938
34939
cristy3ed852e2009-09-05 21:47:34 +000034940# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
34941set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034943$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034944if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034945 $as_echo_n "(cached) " >&6
34946else
34947 case $ConvertDelegate in
34948 [\\/]* | ?:[\\/]*)
34949 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
34950 ;;
34951 *)
34952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34953for as_dir in $PATH
34954do
34955 IFS=$as_save_IFS
34956 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034957 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034959 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034961 break 2
34962 fi
34963done
cristy8b350f62009-11-15 23:12:43 +000034964 done
cristy3ed852e2009-09-05 21:47:34 +000034965IFS=$as_save_IFS
34966
34967 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
34968 ;;
34969esac
34970fi
34971ConvertDelegate=$ac_cv_path_ConvertDelegate
34972if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034974$as_echo "$ConvertDelegate" >&6; }
34975else
cristy8b350f62009-11-15 23:12:43 +000034976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034977$as_echo "no" >&6; }
34978fi
34979
34980
34981# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
34982set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034984$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034985if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034986 $as_echo_n "(cached) " >&6
34987else
34988 case $DisplayDelegate in
34989 [\\/]* | ?:[\\/]*)
34990 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
34991 ;;
34992 *)
34993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34994for as_dir in $PATH
34995do
34996 IFS=$as_save_IFS
34997 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035000 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035002 break 2
35003 fi
35004done
cristy8b350f62009-11-15 23:12:43 +000035005 done
cristy3ed852e2009-09-05 21:47:34 +000035006IFS=$as_save_IFS
35007
35008 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
35009 ;;
35010esac
35011fi
35012DisplayDelegate=$ac_cv_path_DisplayDelegate
35013if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035015$as_echo "$DisplayDelegate" >&6; }
35016else
cristy8b350f62009-11-15 23:12:43 +000035017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035018$as_echo "no" >&6; }
35019fi
35020
35021
cristy66f238e2014-05-16 12:21:48 +000035022# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
35023set dummy "$EditorDelegateDefault"; ac_word=$2
35024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35025$as_echo_n "checking for $ac_word... " >&6; }
35026if ${ac_cv_path_EditorDelegate+:} false; then :
35027 $as_echo_n "(cached) " >&6
35028else
35029 case $EditorDelegate in
35030 [\\/]* | ?:[\\/]*)
35031 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
35032 ;;
35033 *)
35034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35035for as_dir in $PATH
35036do
35037 IFS=$as_save_IFS
35038 test -z "$as_dir" && as_dir=.
35039 for ac_exec_ext in '' $ac_executable_extensions; do
35040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35041 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
35042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35043 break 2
35044 fi
35045done
35046 done
35047IFS=$as_save_IFS
35048
35049 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
35050 ;;
35051esac
35052fi
35053EditorDelegate=$ac_cv_path_EditorDelegate
35054if test -n "$EditorDelegate"; then
35055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
35056$as_echo "$EditorDelegate" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000035057else
cristy8b350f62009-11-15 23:12:43 +000035058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035059$as_echo "no" >&6; }
35060fi
35061
35062
cristy66f238e2014-05-16 12:21:48 +000035063# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
35064set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
35065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35066$as_echo_n "checking for $ac_word... " >&6; }
35067if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
35068 $as_echo_n "(cached) " >&6
35069else
35070 case $GVCDecodeDelegate in
35071 [\\/]* | ?:[\\/]*)
35072 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
35073 ;;
35074 *)
35075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35076for as_dir in $PATH
35077do
35078 IFS=$as_save_IFS
35079 test -z "$as_dir" && as_dir=.
35080 for ac_exec_ext in '' $ac_executable_extensions; do
35081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35082 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35084 break 2
35085 fi
35086done
35087 done
35088IFS=$as_save_IFS
35089
35090 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
35091 ;;
35092esac
35093fi
35094GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
35095if test -n "$GVCDecodeDelegate"; then
35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
35097$as_echo "$GVCDecodeDelegate" >&6; }
35098else
35099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35100$as_echo "no" >&6; }
35101fi
35102
35103
cristy3ed852e2009-09-05 21:47:34 +000035104# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
35105set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035107$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035108if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035109 $as_echo_n "(cached) " >&6
35110else
35111 case $HPGLDecodeDelegate in
35112 [\\/]* | ?:[\\/]*)
35113 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
35114 ;;
35115 *)
35116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35117for as_dir in $PATH
35118do
35119 IFS=$as_save_IFS
35120 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035121 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035123 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035125 break 2
35126 fi
35127done
cristy8b350f62009-11-15 23:12:43 +000035128 done
cristy3ed852e2009-09-05 21:47:34 +000035129IFS=$as_save_IFS
35130
35131 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
35132 ;;
35133esac
35134fi
35135HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
35136if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035138$as_echo "$HPGLDecodeDelegate" >&6; }
35139else
cristy8b350f62009-11-15 23:12:43 +000035140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035141$as_echo "no" >&6; }
35142fi
35143
35144
35145# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
35146set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035148$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035149if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035150 $as_echo_n "(cached) " >&6
35151else
35152 case $HTMLDecodeDelegate in
35153 [\\/]* | ?:[\\/]*)
35154 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
35155 ;;
35156 *)
35157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35158for as_dir in $PATH
35159do
35160 IFS=$as_save_IFS
35161 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035164 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035166 break 2
35167 fi
35168done
cristy8b350f62009-11-15 23:12:43 +000035169 done
cristy3ed852e2009-09-05 21:47:34 +000035170IFS=$as_save_IFS
35171
35172 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
35173 ;;
35174esac
35175fi
35176HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
35177if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035179$as_echo "$HTMLDecodeDelegate" >&6; }
35180else
cristy8b350f62009-11-15 23:12:43 +000035181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035182$as_echo "no" >&6; }
35183fi
35184
35185
35186# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
35187set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035189$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035190if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035191 $as_echo_n "(cached) " >&6
35192else
35193 case $ILBMDecodeDelegate in
35194 [\\/]* | ?:[\\/]*)
35195 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
35196 ;;
35197 *)
35198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35199for as_dir in $PATH
35200do
35201 IFS=$as_save_IFS
35202 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035203 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035205 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035207 break 2
35208 fi
35209done
cristy8b350f62009-11-15 23:12:43 +000035210 done
cristy3ed852e2009-09-05 21:47:34 +000035211IFS=$as_save_IFS
35212
35213 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
35214 ;;
35215esac
35216fi
35217ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
35218if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035220$as_echo "$ILBMDecodeDelegate" >&6; }
35221else
cristy8b350f62009-11-15 23:12:43 +000035222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035223$as_echo "no" >&6; }
35224fi
35225
35226
35227# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
35228set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035230$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035231if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035232 $as_echo_n "(cached) " >&6
35233else
35234 case $ILBMEncodeDelegate in
35235 [\\/]* | ?:[\\/]*)
35236 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
35237 ;;
35238 *)
35239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35240for as_dir in $PATH
35241do
35242 IFS=$as_save_IFS
35243 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035244 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035246 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035248 break 2
35249 fi
35250done
cristy8b350f62009-11-15 23:12:43 +000035251 done
cristy3ed852e2009-09-05 21:47:34 +000035252IFS=$as_save_IFS
35253
35254 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
35255 ;;
35256esac
35257fi
35258ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
35259if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035261$as_echo "$ILBMEncodeDelegate" >&6; }
35262else
cristy8b350f62009-11-15 23:12:43 +000035263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035264$as_echo "no" >&6; }
35265fi
35266
35267
cristy71f53d52013-04-27 13:33:59 +000035268# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
35269set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
35270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35271$as_echo_n "checking for $ac_word... " >&6; }
35272if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
35273 $as_echo_n "(cached) " >&6
35274else
35275 case $JXRDecodeDelegate in
35276 [\\/]* | ?:[\\/]*)
35277 ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
35278 ;;
35279 *)
35280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35281for as_dir in $PATH
35282do
35283 IFS=$as_save_IFS
35284 test -z "$as_dir" && as_dir=.
35285 for ac_exec_ext in '' $ac_executable_extensions; do
35286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35287 ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35289 break 2
35290 fi
35291done
35292 done
35293IFS=$as_save_IFS
35294
35295 test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
35296 ;;
35297esac
35298fi
35299JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
35300if test -n "$JXRDecodeDelegate"; then
35301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
35302$as_echo "$JXRDecodeDelegate" >&6; }
35303else
35304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35305$as_echo "no" >&6; }
35306fi
35307
35308
35309# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
35310set dummy "$JXREncodeDelegateDefault"; ac_word=$2
35311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35312$as_echo_n "checking for $ac_word... " >&6; }
35313if ${ac_cv_path_JXREncodeDelegate+:} false; then :
35314 $as_echo_n "(cached) " >&6
35315else
35316 case $JXREncodeDelegate in
35317 [\\/]* | ?:[\\/]*)
35318 ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
35319 ;;
35320 *)
35321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35322for as_dir in $PATH
35323do
35324 IFS=$as_save_IFS
35325 test -z "$as_dir" && as_dir=.
35326 for ac_exec_ext in '' $ac_executable_extensions; do
35327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35328 ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35330 break 2
35331 fi
35332done
35333 done
35334IFS=$as_save_IFS
35335
35336 test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
35337 ;;
35338esac
35339fi
35340JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
35341if test -n "$JXREncodeDelegate"; then
35342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
35343$as_echo "$JXREncodeDelegate" >&6; }
35344else
35345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35346$as_echo "no" >&6; }
35347fi
35348
35349
cristy3ed852e2009-09-05 21:47:34 +000035350# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
35351set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035353$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035354if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035355 $as_echo_n "(cached) " >&6
35356else
35357 case $LPDelegate in
35358 [\\/]* | ?:[\\/]*)
35359 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
35360 ;;
35361 *)
35362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35363for as_dir in $PATH
35364do
35365 IFS=$as_save_IFS
35366 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035367 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035369 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035371 break 2
35372 fi
35373done
cristy8b350f62009-11-15 23:12:43 +000035374 done
cristy3ed852e2009-09-05 21:47:34 +000035375IFS=$as_save_IFS
35376
35377 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
35378 ;;
35379esac
35380fi
35381LPDelegate=$ac_cv_path_LPDelegate
35382if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035384$as_echo "$LPDelegate" >&6; }
35385else
cristy8b350f62009-11-15 23:12:43 +000035386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035387$as_echo "no" >&6; }
35388fi
35389
35390
35391# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
35392set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035394$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035395if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035396 $as_echo_n "(cached) " >&6
35397else
35398 case $LPRDelegate in
35399 [\\/]* | ?:[\\/]*)
35400 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
35401 ;;
35402 *)
35403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35404for as_dir in $PATH
35405do
35406 IFS=$as_save_IFS
35407 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035408 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035410 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035412 break 2
35413 fi
35414done
cristy8b350f62009-11-15 23:12:43 +000035415 done
cristy3ed852e2009-09-05 21:47:34 +000035416IFS=$as_save_IFS
35417
35418 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
35419 ;;
35420esac
35421fi
35422LPRDelegate=$ac_cv_path_LPRDelegate
35423if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035425$as_echo "$LPRDelegate" >&6; }
35426else
cristy8b350f62009-11-15 23:12:43 +000035427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035428$as_echo "no" >&6; }
35429fi
35430
35431
cristy3ed852e2009-09-05 21:47:34 +000035432# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
35433set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035435$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035436if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035437 $as_echo_n "(cached) " >&6
35438else
35439 case $LaunchDelegate in
35440 [\\/]* | ?:[\\/]*)
35441 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
35442 ;;
35443 *)
35444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35445for as_dir in $PATH
35446do
35447 IFS=$as_save_IFS
35448 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035449 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035451 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035453 break 2
35454 fi
35455done
cristy8b350f62009-11-15 23:12:43 +000035456 done
cristy3ed852e2009-09-05 21:47:34 +000035457IFS=$as_save_IFS
35458
35459 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
35460 ;;
35461esac
35462fi
35463LaunchDelegate=$ac_cv_path_LaunchDelegate
35464if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035466$as_echo "$LaunchDelegate" >&6; }
35467else
cristy8b350f62009-11-15 23:12:43 +000035468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035469$as_echo "no" >&6; }
35470fi
35471
35472
cristy66f238e2014-05-16 12:21:48 +000035473# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
35474set dummy "$MogrifyDelegateDefault"; ac_word=$2
35475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35476$as_echo_n "checking for $ac_word... " >&6; }
35477if ${ac_cv_path_MogrifyDelegate+:} false; then :
35478 $as_echo_n "(cached) " >&6
35479else
35480 case $MogrifyDelegate in
35481 [\\/]* | ?:[\\/]*)
35482 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
35483 ;;
35484 *)
35485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35486for as_dir in $PATH
35487do
35488 IFS=$as_save_IFS
35489 test -z "$as_dir" && as_dir=.
35490 for ac_exec_ext in '' $ac_executable_extensions; do
35491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35492 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
35493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35494 break 2
35495 fi
35496done
35497 done
35498IFS=$as_save_IFS
35499
35500 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
35501 ;;
35502esac
35503fi
35504MogrifyDelegate=$ac_cv_path_MogrifyDelegate
35505if test -n "$MogrifyDelegate"; then
35506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
35507$as_echo "$MogrifyDelegate" >&6; }
35508else
35509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35510$as_echo "no" >&6; }
35511fi
35512
35513
cristy3ed852e2009-09-05 21:47:34 +000035514# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
35515set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035517$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035518if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035519 $as_echo_n "(cached) " >&6
35520else
35521 case $MPEGDecodeDelegate in
35522 [\\/]* | ?:[\\/]*)
35523 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
35524 ;;
35525 *)
35526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35527for as_dir in $PATH
35528do
35529 IFS=$as_save_IFS
35530 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035531 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035533 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035535 break 2
35536 fi
35537done
cristy8b350f62009-11-15 23:12:43 +000035538 done
cristy3ed852e2009-09-05 21:47:34 +000035539IFS=$as_save_IFS
35540
35541 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
35542 ;;
35543esac
35544fi
35545MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
35546if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035548$as_echo "$MPEGDecodeDelegate" >&6; }
35549else
cristy8b350f62009-11-15 23:12:43 +000035550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035551$as_echo "no" >&6; }
35552fi
35553
35554
cristy058d15f2014-08-21 18:53:03 +000035555if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000035556 MPEGDecodeDelegateDefault='ffmpeg'
35557 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
35558set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
35559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35560$as_echo_n "checking for $ac_word... " >&6; }
35561if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
35562 $as_echo_n "(cached) " >&6
35563else
35564 case $MPEGDecodeDelegate in
35565 [\\/]* | ?:[\\/]*)
35566 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
35567 ;;
35568 *)
35569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35570for as_dir in $PATH
35571do
35572 IFS=$as_save_IFS
35573 test -z "$as_dir" && as_dir=.
35574 for ac_exec_ext in '' $ac_executable_extensions; do
35575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35576 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35578 break 2
35579 fi
35580done
35581 done
35582IFS=$as_save_IFS
35583
35584 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
35585 ;;
35586esac
35587fi
35588MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
35589if test -n "$MPEGDecodeDelegate"; then
35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
35591$as_echo "$MPEGDecodeDelegate" >&6; }
35592else
35593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35594$as_echo "no" >&6; }
35595fi
35596
35597
35598fi;
cristy3ed852e2009-09-05 21:47:34 +000035599# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
35600set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035602$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035603if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035604 $as_echo_n "(cached) " >&6
35605else
35606 case $MPEGEncodeDelegate in
35607 [\\/]* | ?:[\\/]*)
35608 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
35609 ;;
35610 *)
35611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35612for as_dir in $PATH
35613do
35614 IFS=$as_save_IFS
35615 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035616 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035618 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035620 break 2
35621 fi
35622done
cristy8b350f62009-11-15 23:12:43 +000035623 done
cristy3ed852e2009-09-05 21:47:34 +000035624IFS=$as_save_IFS
35625
35626 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
35627 ;;
35628esac
35629fi
35630MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
35631if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035633$as_echo "$MPEGEncodeDelegate" >&6; }
35634else
cristy8b350f62009-11-15 23:12:43 +000035635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035636$as_echo "no" >&6; }
35637fi
35638
35639
cristy058d15f2014-08-21 18:53:03 +000035640if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
cristy81ab5af2013-10-06 18:28:39 +000035641 MPEGEncodeDelegateDefault='ffmpeg'
35642 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
35643set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
35644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35645$as_echo_n "checking for $ac_word... " >&6; }
35646if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
35647 $as_echo_n "(cached) " >&6
35648else
35649 case $MPEGEncodeDelegate in
35650 [\\/]* | ?:[\\/]*)
35651 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
35652 ;;
35653 *)
35654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35655for as_dir in $PATH
35656do
35657 IFS=$as_save_IFS
35658 test -z "$as_dir" && as_dir=.
35659 for ac_exec_ext in '' $ac_executable_extensions; do
35660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35661 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35663 break 2
35664 fi
35665done
35666 done
35667IFS=$as_save_IFS
35668
35669 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
35670 ;;
35671esac
35672fi
35673MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
35674if test -n "$MPEGEncodeDelegate"; then
35675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
35676$as_echo "$MPEGEncodeDelegate" >&6; }
35677else
35678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35679$as_echo "no" >&6; }
35680fi
35681
35682
35683fi;
cristy935c86e2010-06-05 23:50:07 +000035684# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
35685set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
35686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35687$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035688if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000035689 $as_echo_n "(cached) " >&6
35690else
35691 case $MrSIDDecodeDelegate in
35692 [\\/]* | ?:[\\/]*)
35693 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
35694 ;;
35695 *)
35696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35697for as_dir in $PATH
35698do
35699 IFS=$as_save_IFS
35700 test -z "$as_dir" && as_dir=.
35701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000035703 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35705 break 2
35706 fi
35707done
35708 done
35709IFS=$as_save_IFS
35710
35711 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
35712 ;;
35713esac
35714fi
35715MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
35716if test -n "$MrSIDDecodeDelegate"; then
35717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
35718$as_echo "$MrSIDDecodeDelegate" >&6; }
35719else
35720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35721$as_echo "no" >&6; }
35722fi
35723
35724
cristy3ed852e2009-09-05 21:47:34 +000035725# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
35726set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035729if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035730 $as_echo_n "(cached) " >&6
35731else
35732 case $MVDelegate in
35733 [\\/]* | ?:[\\/]*)
35734 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
35735 ;;
35736 *)
35737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35738for as_dir in $PATH
35739do
35740 IFS=$as_save_IFS
35741 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035744 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035746 break 2
35747 fi
35748done
cristy8b350f62009-11-15 23:12:43 +000035749 done
cristy3ed852e2009-09-05 21:47:34 +000035750IFS=$as_save_IFS
35751
35752 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
35753 ;;
35754esac
35755fi
35756MVDelegate=$ac_cv_path_MVDelegate
35757if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035759$as_echo "$MVDelegate" >&6; }
35760else
cristy8b350f62009-11-15 23:12:43 +000035761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035762$as_echo "no" >&6; }
35763fi
35764
35765
35766# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
35767set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035769$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035770if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035771 $as_echo_n "(cached) " >&6
35772else
35773 case $PCLDelegate in
35774 [\\/]* | ?:[\\/]*)
35775 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
35776 ;;
35777 *)
35778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35779for as_dir in $PATH
35780do
35781 IFS=$as_save_IFS
35782 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035785 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035787 break 2
35788 fi
35789done
cristy8b350f62009-11-15 23:12:43 +000035790 done
cristy3ed852e2009-09-05 21:47:34 +000035791IFS=$as_save_IFS
35792
35793 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
35794 ;;
35795esac
35796fi
35797PCLDelegate=$ac_cv_path_PCLDelegate
35798if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035800$as_echo "$PCLDelegate" >&6; }
35801else
cristy8b350f62009-11-15 23:12:43 +000035802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035803$as_echo "no" >&6; }
35804fi
35805
35806
cristy3ed852e2009-09-05 21:47:34 +000035807for ac_prog in gsx gsc "$PSDelegateDefault"
35808do
35809 # Extract the first word of "$ac_prog", so it can be a program name with args.
35810set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035812$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035813if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035814 $as_echo_n "(cached) " >&6
35815else
35816 case $PSDelegate in
35817 [\\/]* | ?:[\\/]*)
35818 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
35819 ;;
35820 *)
35821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35822for as_dir in $PATH
35823do
35824 IFS=$as_save_IFS
35825 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035828 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035830 break 2
35831 fi
35832done
cristy8b350f62009-11-15 23:12:43 +000035833 done
cristy3ed852e2009-09-05 21:47:34 +000035834IFS=$as_save_IFS
35835
35836 ;;
35837esac
35838fi
35839PSDelegate=$ac_cv_path_PSDelegate
35840if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035842$as_echo "$PSDelegate" >&6; }
35843else
cristy8b350f62009-11-15 23:12:43 +000035844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035845$as_echo "no" >&6; }
35846fi
35847
35848
35849 test -n "$PSDelegate" && break
35850done
35851test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
35852
cristy3ed852e2009-09-05 21:47:34 +000035853# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
35854set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035856$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035857if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035858 $as_echo_n "(cached) " >&6
35859else
35860 case $RMDelegate in
35861 [\\/]* | ?:[\\/]*)
35862 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
35863 ;;
35864 *)
35865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35866for as_dir in $PATH
35867do
35868 IFS=$as_save_IFS
35869 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035872 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035874 break 2
35875 fi
35876done
cristy8b350f62009-11-15 23:12:43 +000035877 done
cristy3ed852e2009-09-05 21:47:34 +000035878IFS=$as_save_IFS
35879
35880 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
35881 ;;
35882esac
35883fi
35884RMDelegate=$ac_cv_path_RMDelegate
35885if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000035886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000035887$as_echo "$RMDelegate" >&6; }
35888else
cristy8b350f62009-11-15 23:12:43 +000035889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035890$as_echo "no" >&6; }
35891fi
35892
35893
cristy4689cf02010-02-17 21:15:45 +000035894# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
35895set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
35896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35897$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035898if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000035899 $as_echo_n "(cached) " >&6
35900else
35901 case $RSVGDecodeDelegate in
35902 [\\/]* | ?:[\\/]*)
35903 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
35904 ;;
35905 *)
35906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35907for as_dir in $PATH
35908do
35909 IFS=$as_save_IFS
35910 test -z "$as_dir" && as_dir=.
35911 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000035913 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35915 break 2
35916 fi
35917done
35918 done
35919IFS=$as_save_IFS
35920
35921 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
35922 ;;
35923esac
35924fi
35925RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
35926if test -n "$RSVGDecodeDelegate"; then
35927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
35928$as_echo "$RSVGDecodeDelegate" >&6; }
35929else
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35931$as_echo "no" >&6; }
35932fi
35933
35934
cristyec6934f2012-08-14 18:38:40 +000035935# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
35936set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
35937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35938$as_echo_n "checking for $ac_word... " >&6; }
35939if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
35940 $as_echo_n "(cached) " >&6
35941else
35942 case $SVGDecodeDelegate in
35943 [\\/]* | ?:[\\/]*)
35944 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
35945 ;;
35946 *)
35947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35948for as_dir in $PATH
35949do
35950 IFS=$as_save_IFS
35951 test -z "$as_dir" && as_dir=.
35952 for ac_exec_ext in '' $ac_executable_extensions; do
35953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35954 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35956 break 2
35957 fi
35958done
35959 done
35960IFS=$as_save_IFS
35961
35962 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35963 ;;
35964esac
35965fi
35966SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35967if test -n "$SVGDecodeDelegate"; then
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35969$as_echo "$SVGDecodeDelegate" >&6; }
35970else
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972$as_echo "no" >&6; }
35973fi
35974
35975
cristy5ac9ac82010-07-29 13:24:24 +000035976# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35977set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035980if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000035981 $as_echo_n "(cached) " >&6
35982else
35983 case $UniconvertorDelegate in
35984 [\\/]* | ?:[\\/]*)
35985 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35986 ;;
35987 *)
35988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35989for as_dir in $PATH
35990do
35991 IFS=$as_save_IFS
35992 test -z "$as_dir" && as_dir=.
35993 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000035995 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35997 break 2
35998 fi
35999done
36000 done
36001IFS=$as_save_IFS
36002
36003 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
36004 ;;
36005esac
36006fi
36007UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
36008if test -n "$UniconvertorDelegate"; then
36009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
36010$as_echo "$UniconvertorDelegate" >&6; }
36011else
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36013$as_echo "no" >&6; }
36014fi
36015
36016
cristy86e86092013-08-04 17:43:57 +000036017# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
36018set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
36019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36020$as_echo_n "checking for $ac_word... " >&6; }
36021if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
36022 $as_echo_n "(cached) " >&6
36023else
36024 case $WebPDecodeDelegate in
36025 [\\/]* | ?:[\\/]*)
36026 ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
36027 ;;
36028 *)
36029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36030for as_dir in $PATH
36031do
36032 IFS=$as_save_IFS
36033 test -z "$as_dir" && as_dir=.
36034 for ac_exec_ext in '' $ac_executable_extensions; do
36035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36036 ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
36037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36038 break 2
36039 fi
36040done
36041 done
36042IFS=$as_save_IFS
36043
36044 test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
36045 ;;
36046esac
36047fi
36048WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
36049if test -n "$WebPDecodeDelegate"; then
36050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
36051$as_echo "$WebPDecodeDelegate" >&6; }
36052else
36053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36054$as_echo "no" >&6; }
36055fi
36056
36057
36058# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
36059set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
36060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36061$as_echo_n "checking for $ac_word... " >&6; }
36062if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
36063 $as_echo_n "(cached) " >&6
36064else
36065 case $WebPEncodeDelegate in
36066 [\\/]* | ?:[\\/]*)
36067 ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
36068 ;;
36069 *)
36070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36071for as_dir in $PATH
36072do
36073 IFS=$as_save_IFS
36074 test -z "$as_dir" && as_dir=.
36075 for ac_exec_ext in '' $ac_executable_extensions; do
36076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36077 ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
36078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36079 break 2
36080 fi
36081done
36082 done
36083IFS=$as_save_IFS
36084
36085 test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
36086 ;;
36087esac
36088fi
36089WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
36090if test -n "$WebPEncodeDelegate"; then
36091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
36092$as_echo "$WebPEncodeDelegate" >&6; }
36093else
36094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36095$as_echo "no" >&6; }
36096fi
36097
36098
Cristydc553c12016-05-09 13:27:06 -040036099# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
36100set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
36101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36102$as_echo_n "checking for $ac_word... " >&6; }
36103if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
36104 $as_echo_n "(cached) " >&6
36105else
36106 case $WWWDecodeDelegate in
36107 [\\/]* | ?:[\\/]*)
36108 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
36109 ;;
36110 *)
36111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36112for as_dir in $PATH
36113do
36114 IFS=$as_save_IFS
36115 test -z "$as_dir" && as_dir=.
36116 for ac_exec_ext in '' $ac_executable_extensions; do
36117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36118 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
36119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36120 break 2
36121 fi
36122done
36123 done
36124IFS=$as_save_IFS
36125
36126 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
36127 ;;
36128esac
36129fi
36130WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
36131if test -n "$WWWDecodeDelegate"; then
36132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
36133$as_echo "$WWWDecodeDelegate" >&6; }
36134else
36135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36136$as_echo "no" >&6; }
36137fi
36138
36139
cristy3ed852e2009-09-05 21:47:34 +000036140# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
36141set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036143$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036144if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036145 $as_echo_n "(cached) " >&6
36146else
36147 case $XPSDelegate in
36148 [\\/]* | ?:[\\/]*)
36149 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
36150 ;;
36151 *)
36152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36153for as_dir in $PATH
36154do
36155 IFS=$as_save_IFS
36156 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036157 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036159 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036161 break 2
36162 fi
36163done
cristy8b350f62009-11-15 23:12:43 +000036164 done
cristy3ed852e2009-09-05 21:47:34 +000036165IFS=$as_save_IFS
36166
36167 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
36168 ;;
36169esac
36170fi
36171XPSDelegate=$ac_cv_path_XPSDelegate
36172if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000036173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000036174$as_echo "$XPSDelegate" >&6; }
36175else
cristy8b350f62009-11-15 23:12:43 +000036176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036177$as_echo "no" >&6; }
36178fi
36179
36180
cristy3ed852e2009-09-05 21:47:34 +000036181
36182# Prefer lpr to lp; lp needs options tacked on.
36183if test "$LPRDelegate" != no; then
36184 PrintDelegate="$LPRDelegate"
36185else
36186 PrintDelegate="$LPDelegate -c -s"
36187fi
36188
36189
36190# Installed ImageMagick utiltity paths
36191ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
36192DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
36193MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
36194
36195# Set delegate booleans
cristy81ab5af2013-10-06 18:28:39 +000036196have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000036197have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
36198have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
36199have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000036200have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000036201have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
36202have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000036203have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
36204
36205#
36206# Test for font directories
36207#
36208type_include_files=''
36209
Cristy6263d532016-05-01 18:39:52 -040036210# Apple fonts.
cristy5a3dc992014-12-05 19:50:04 +000036211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
36212$as_echo_n "checking for Apple fonts directory... " >&6; }
36213apple_font_dir=''
36214if test "${with_apple_font_dir}" != 'default'; then
36215 apple_font_dir="${with_apple_font_dir}/"
36216else
36217 for font_dir in '/Library/Fonts/'; do
36218 if test -f "${font_dir}Arial.ttf"; then
36219 apple_font_dir="${font_dir}"
36220 break 1
36221 fi
36222 done
36223fi
36224if test "${apple_font_dir}x" != 'x'; then
36225 type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
36226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
36227$as_echo "$apple_font_dir" >&6; }
36228else
36229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36230$as_echo "not found!" >&6; };
36231fi
36232
36233
cristy430a7312010-01-21 20:44:04 +000036234# Dejavu fonts.
36235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
36236$as_echo_n "checking for Dejavu fonts directory... " >&6; }
36237dejavu_font_dir=''
36238if test "${with_dejavu_font_dir}" != 'default'; then
36239 dejavu_font_dir="${with_dejavu_font_dir}/"
36240else
36241 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
36242 if test -f "${font_dir}DejaVuSerif.ttf"; then
36243 dejavu_font_dir="${font_dir}"
36244 break 1
36245 fi
36246 done
36247fi
36248if test "${dejavu_font_dir}x" != 'x'; then
36249 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristyad38abe2012-12-23 23:03:21 +000036250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
36251$as_echo "$dejavu_font_dir" >&6; }
cristy430a7312010-01-21 20:44:04 +000036252else
cristyad38abe2012-12-23 23:03:21 +000036253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36254$as_echo "not found!" >&6; };
cristy430a7312010-01-21 20:44:04 +000036255fi
36256
36257
cristy3ed852e2009-09-05 21:47:34 +000036258# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000036259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000036260$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
36261ghostscript_font_dir=''
36262if test "${with_gs_font_dir}" != 'default'; then
36263 ghostscript_font_dir="${with_gs_font_dir}/"
36264else
36265 if test "${native_win32_build}" = 'yes'; then
36266 # Native Windows Build
36267 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
36268 if test -f "${font_dir}a010013l.pfb"; then
36269 ghostscript_font_dir="$font_dir"
36270 break 1
36271 fi
36272 done
36273 if test "${PSDelegate}" != 'gswin32c'; then
36274 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
36275 fi
36276 else
36277 # Linux / Mac OS X / Unix Build
36278 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
36279 if test -f "${font_dir}a010013l.pfb"; then
36280 ghostscript_font_dir="${font_dir}"
36281 break 1
36282 fi
36283 done
36284 if test "${ghostscript_font_dir}x" = 'x'; then
36285 if test "$PSDelegate" != 'gs'; then
36286 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
36287 fi
36288 fi
36289 fi
36290fi
36291if test "${ghostscript_font_dir}x" != 'x'; then
36292 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristyad38abe2012-12-23 23:03:21 +000036293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
36294$as_echo "$ghostscript_font_dir" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036295else
cristyad38abe2012-12-23 23:03:21 +000036296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36297$as_echo "not found!" >&6; };
cristy3ed852e2009-09-05 21:47:34 +000036298fi
36299
36300case "${build_os}" in
36301 mingw* )
36302 PSDelegate=`$WinPathScript "$PSDelegate" 1`
36303 ;;
36304esac
36305
cristy5a3dc992014-12-05 19:50:04 +000036306# Windows fonts.
36307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
36308$as_echo_n "checking for Windows fonts directory... " >&6; }
36309windows_font_dir=''
36310if test "${with_windows_font_dir}" != 'default'; then
36311 windows_font_dir="${with_windows_font_dir}/"
36312else
36313 for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
36314 if test -f "${font_dir}arial.ttf"; then
36315 windows_font_dir="${font_dir}"
36316 break 1
36317 fi
36318 done
36319fi
36320if test "${windows_font_dir}x" != 'x'; then
36321 type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
36322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
36323$as_echo "$windows_font_dir" >&6; }
36324else
36325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36326$as_echo "not found!" >&6; };
36327fi
36328
36329
cristy3ed852e2009-09-05 21:47:34 +000036330
36331
36332#
36333# Handle case where user doesn't want frozen paths
36334#
36335if test "$with_frozenpaths" != 'yes'; then
36336 # Re-set delegate definitions to default (no paths)
Cristy06c41ab2016-04-30 10:23:22 -040036337 BPGDecodeDelegate="$BPGDecodeDelegateDefault"
36338 BPGEncodeDelegate="$BPGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036339 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036340 BrowseDelegate="$BrowseDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036341 ConvertDelegate="$ConvertDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000036342 DisplayDelegate="$DisplayDelegateDefault"
36343 DNGDecodeDelegate="$DNGDecodeDelegateDefault"
cristy66f238e2014-05-16 12:21:48 +000036344 DOCDecodeDelegate="$DOCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036345 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036346 EditorDelegate="$EditorDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000036347 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036348 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
36349 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
36350 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
36351 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
cristy71f53d52013-04-27 13:33:59 +000036352 JXRDecodeDelegate="$JXRDecodeDelegateDefault"
36353 JXREncodeDelegate="$JXREncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036354 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036355 LaunchDelegate="$LaunchDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036356 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
36357 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036358 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000036359 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036360 PCLDelegate="$PCLDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036361 PSDelegate="$PSDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000036362 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000036363 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036364 ShowImageDelegate="$ShowImageDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000036365 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy86e86092013-08-04 17:43:57 +000036366 WebPDecodeDelegate="$WebPDecodeDelegateDefault"
36367 WebPEncodeDelegate="$WebPEncodeDelegateDefault"
Cristydc553c12016-05-09 13:27:06 -040036368 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036369 XPSDelegate="$XPSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000036370fi
36371
36372# Delegate substitutions
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
cristy3ed852e2009-09-05 21:47:34 +000036402#
36403# RPM support.
36404#
36405RPM=''
36406for ac_prog in gnutar gtar tar
36407do
36408 # Extract the first word of "$ac_prog", so it can be a program name with args.
36409set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036411$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036412if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036413 $as_echo_n "(cached) " >&6
36414else
36415 if test -n "$TAR"; then
36416 ac_cv_prog_TAR="$TAR" # Let the user override the test.
36417else
36418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36419for as_dir in $PATH
36420do
36421 IFS=$as_save_IFS
36422 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036423 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036425 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000036426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036427 break 2
36428 fi
36429done
cristy8b350f62009-11-15 23:12:43 +000036430 done
cristy3ed852e2009-09-05 21:47:34 +000036431IFS=$as_save_IFS
36432
36433fi
36434fi
36435TAR=$ac_cv_prog_TAR
36436if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000036437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000036438$as_echo "$TAR" >&6; }
36439else
cristy8b350f62009-11-15 23:12:43 +000036440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036441$as_echo "no" >&6; }
36442fi
36443
36444
36445 test -n "$TAR" && break
36446done
36447
36448for ac_prog in perl
36449do
36450 # Extract the first word of "$ac_prog", so it can be a program name with args.
36451set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036453$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036454if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036455 $as_echo_n "(cached) " >&6
36456else
36457 if test -n "$PERL"; then
36458 ac_cv_prog_PERL="$PERL" # Let the user override the test.
36459else
36460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36461for as_dir in $PATH
36462do
36463 IFS=$as_save_IFS
36464 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036465 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036467 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000036468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036469 break 2
36470 fi
36471done
cristy8b350f62009-11-15 23:12:43 +000036472 done
cristy3ed852e2009-09-05 21:47:34 +000036473IFS=$as_save_IFS
36474
36475fi
36476fi
36477PERL=$ac_cv_prog_PERL
36478if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036480$as_echo "$PERL" >&6; }
36481else
cristy8b350f62009-11-15 23:12:43 +000036482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036483$as_echo "no" >&6; }
36484fi
36485
36486
36487 test -n "$PERL" && break
36488done
36489
36490for ac_prog in rpmbuild rpm
36491do
36492 # Extract the first word of "$ac_prog", so it can be a program name with args.
36493set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036495$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036496if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036497 $as_echo_n "(cached) " >&6
36498else
36499 if test -n "$RPM"; then
36500 ac_cv_prog_RPM="$RPM" # Let the user override the test.
36501else
36502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36503for as_dir in $PATH
36504do
36505 IFS=$as_save_IFS
36506 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036507 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036509 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000036510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036511 break 2
36512 fi
36513done
cristy8b350f62009-11-15 23:12:43 +000036514 done
cristy3ed852e2009-09-05 21:47:34 +000036515IFS=$as_save_IFS
36516
36517fi
36518fi
36519RPM=$ac_cv_prog_RPM
36520if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000036521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000036522$as_echo "$RPM" >&6; }
36523else
cristy8b350f62009-11-15 23:12:43 +000036524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036525$as_echo "no" >&6; }
36526fi
36527
36528
36529 test -n "$RPM" && break
36530done
36531
36532
cristy73bd4a52010-10-05 11:24:23 +000036533ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
36534
36535
36536AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
36537
36538
36539AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
36540
36541
36542AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
36543
36544
36545 if test "x$RPM" != "x" ; then
36546 RPM_DELEGATE_TRUE=
36547 RPM_DELEGATE_FALSE='#'
36548else
36549 RPM_DELEGATE_TRUE='#'
36550 RPM_DELEGATE_FALSE=
36551fi
36552
cristy3ed852e2009-09-05 21:47:34 +000036553
36554#
36555# 7ZIP support (http://p7zip.sourceforge.net/)
36556#
36557P7ZIP=''
36558for ac_prog in 7za
36559do
36560 # Extract the first word of "$ac_prog", so it can be a program name with args.
36561set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036563$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036564if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036565 $as_echo_n "(cached) " >&6
36566else
36567 if test -n "$P7ZIP"; then
36568 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
36569else
36570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36571for as_dir in $PATH
36572do
36573 IFS=$as_save_IFS
36574 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036575 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036577 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000036578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036579 break 2
36580 fi
36581done
cristy8b350f62009-11-15 23:12:43 +000036582 done
cristy3ed852e2009-09-05 21:47:34 +000036583IFS=$as_save_IFS
36584
36585fi
36586fi
36587P7ZIP=$ac_cv_prog_P7ZIP
36588if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000036589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000036590$as_echo "$P7ZIP" >&6; }
36591else
cristy8b350f62009-11-15 23:12:43 +000036592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036593$as_echo "no" >&6; }
36594fi
36595
36596
36597 test -n "$P7ZIP" && break
36598done
36599
36600
cristy73bd4a52010-10-05 11:24:23 +000036601 if test "x$P7ZIP" != "x" ; then
36602 P7ZIP_DELEGATE_TRUE=
36603 P7ZIP_DELEGATE_FALSE='#'
36604else
36605 P7ZIP_DELEGATE_TRUE='#'
36606 P7ZIP_DELEGATE_FALSE=
36607fi
36608
cristy3ed852e2009-09-05 21:47:34 +000036609
36610#
36611# ZIP support (http://www.info-zip.org/Zip.html)
36612#
36613ZIP=''
36614for ac_prog in zip
36615do
36616 # Extract the first word of "$ac_prog", so it can be a program name with args.
36617set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036619$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036620if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036621 $as_echo_n "(cached) " >&6
36622else
36623 if test -n "$ZIP"; then
36624 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
36625else
36626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36627for as_dir in $PATH
36628do
36629 IFS=$as_save_IFS
36630 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036631 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036633 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000036634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036635 break 2
36636 fi
36637done
cristy8b350f62009-11-15 23:12:43 +000036638 done
cristy3ed852e2009-09-05 21:47:34 +000036639IFS=$as_save_IFS
36640
36641fi
36642fi
36643ZIP=$ac_cv_prog_ZIP
36644if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000036645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000036646$as_echo "$ZIP" >&6; }
36647else
cristy8b350f62009-11-15 23:12:43 +000036648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036649$as_echo "no" >&6; }
36650fi
36651
36652
36653 test -n "$ZIP" && break
36654done
36655
36656
cristy73bd4a52010-10-05 11:24:23 +000036657 if test "x$ZIP" != "x" ; then
36658 ZIP_DELEGATE_TRUE=
36659 ZIP_DELEGATE_FALSE='#'
36660else
36661 ZIP_DELEGATE_TRUE='#'
36662 ZIP_DELEGATE_FALSE=
36663fi
36664
cristy3ed852e2009-09-05 21:47:34 +000036665
36666#
36667# GhostPCL related configuration.
36668#
36669PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000036670PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000036671PCLMonoDevice=pbmraw
36672if test -z "$PCLVersion"; then
36673 PCLVersion='unknown'
36674fi
36675if test $have_pcl = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000036676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36677$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036679$as_echo_n "checking for PCL... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36681$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036682 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000036683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036684$as_echo_n "checking for pcl color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036685 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036686 :
36687 else
36688 PCLColorDevice=ppmraw
36689 fi
cristyad38abe2012-12-23 23:03:21 +000036690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
36691$as_echo "$PCLColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036692
36693 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036695$as_echo_n "checking for pcl CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036696 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036697 :
36698 else
36699 PCLCMYKDevice=$PCLColorDevice
36700 fi
cristyad38abe2012-12-23 23:03:21 +000036701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
36702$as_echo "$PCLCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036703
36704 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036706$as_echo_n "checking for pcl mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036707 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036708 :
36709 else
36710 PCLMonoDevice=$PCLColorDevice
36711 fi
cristyad38abe2012-12-23 23:03:21 +000036712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
36713$as_echo "$PCLMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036714fi
36715
36716
36717
36718
36719
36720
36721#
36722# GhostXPS related configuration.
36723#
36724XPSColorDevice=ppmraw
36725XPSCMYKDevice=bmpsep8
36726XPSMonoDevice=pbmraw
36727if test -z "$XPSVersion"; then
36728 XPSVersion='unknown'
36729fi
36730if test $have_xps = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000036731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36732$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036734$as_echo_n "checking for XPS... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36736$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036737 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036739$as_echo_n "checking for xps color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036740 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036741 :
36742 else
36743 XPSColorDevice=ppmraw
36744 fi
cristyad38abe2012-12-23 23:03:21 +000036745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
36746$as_echo "$XPSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036747
36748 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036750$as_echo_n "checking for xps CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036751 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036752 :
36753 else
36754 XPSCMYKDevice=$XPSColorDevice
36755 fi
cristyad38abe2012-12-23 23:03:21 +000036756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
36757$as_echo "$XPSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036758
36759 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036761$as_echo_n "checking for xps mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036762 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036763 :
36764 else
36765 XPSMonoDevice=$XPSColorDevice
36766 fi
cristyad38abe2012-12-23 23:03:21 +000036767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
36768$as_echo "$XPSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036769fi
36770
36771
36772
36773
36774
36775
36776#
36777# Ghostscript related configuration.
36778#
cristya97426c2011-02-04 01:41:27 +000036779GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000036780GSColorDevice=pnmraw
cristy63970c52015-06-06 16:09:04 +000036781GSCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000036782GSMonoDevice=pbmraw
36783GSPDFDevice=pdfwrite
cristyb096ea52013-10-26 20:56:38 +000036784GSPSDevice=ps2write
cristya5b91e72015-01-07 15:39:36 +000036785GSEPSDevice=eps2write
cristy3ed852e2009-09-05 21:47:34 +000036786GSVersion='unknown'
36787if test $have_gs = 'yes'; then
cristyad38abe2012-12-23 23:03:21 +000036788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36789$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000036791$as_echo_n "checking for Ghostscript... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36793$as_echo "" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000036795$as_echo_n "checking for Ghostscript version... " >&6; }
36796 if GSVersion=`$PSDelegate --version`; then
36797 :
36798 else
36799 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36800 fi
cristyad38abe2012-12-23 23:03:21 +000036801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36802$as_echo "$GSVersion" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036803
cristy3ed852e2009-09-05 21:47:34 +000036804 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000036805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036806$as_echo_n "checking for gs color device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036807 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036808 :
36809 else
cristy63970c52015-06-06 16:09:04 +000036810 GSColorDevice=ppmraw
cristy3ed852e2009-09-05 21:47:34 +000036811 fi
cristyad38abe2012-12-23 23:03:21 +000036812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36813$as_echo "$GSColorDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036814
cristy63970c52015-06-06 16:09:04 +000036815 # GSAlphaDevice
36816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
36817$as_echo_n "checking for gs alpha device... " >&6; }
36818 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36819 :
36820 else
36821 GSAlphaDevice=$GSColorDevice
36822 fi
36823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36824$as_echo "$GSAlphaDevice" >&6; }
36825
cristy3ed852e2009-09-05 21:47:34 +000036826 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000036827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036828$as_echo_n "checking for gs CMYK device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036829 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036830 :
36831 else
cristy63970c52015-06-06 16:09:04 +000036832 GSCMYKDevice=pam
cristy3ed852e2009-09-05 21:47:34 +000036833 fi
cristyad38abe2012-12-23 23:03:21 +000036834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36835$as_echo "$GSCMYKDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036836
36837 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000036838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036839$as_echo_n "checking for gs mono device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036840 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036841 :
36842 else
36843 GSMonoDevice=$GSColorDevice
36844 fi
cristyad38abe2012-12-23 23:03:21 +000036845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36846$as_echo "$GSMonoDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036847
36848 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000036849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036850$as_echo_n "checking for gs PDF writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036851 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036852 :
36853 else
36854 GSPDFDevice=nodevice
36855 fi
cristy63970c52015-06-06 16:09:04 +000036856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
cristyad38abe2012-12-23 23:03:21 +000036857$as_echo "$GSPDFDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036858
36859 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000036860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036861$as_echo_n "checking for gs PS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036862 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036863 :
36864 else
cristy15308162015-01-09 23:43:12 +000036865 GSPSDevice=pswrite
cristy3ed852e2009-09-05 21:47:34 +000036866 fi
cristyad38abe2012-12-23 23:03:21 +000036867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36868$as_echo "$GSPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036869
36870 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000036871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000036872$as_echo_n "checking for gs EPS writing device... " >&6; }
cristy86e31f32015-06-06 15:47:32 +000036873 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
cristy3ed852e2009-09-05 21:47:34 +000036874 :
36875 else
cristy15308162015-01-09 23:43:12 +000036876 GSEPSDevice=epswrite
cristy3ed852e2009-09-05 21:47:34 +000036877 fi
cristyad38abe2012-12-23 23:03:21 +000036878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36879$as_echo "$GSEPSDevice" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036880fi
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891#
36892# PerlMagick-related configuration
36893#
36894
36895# Look for PERL if PerlMagick requested
36896# If name/path of desired PERL interpreter is specified, look for that one first
36897have_perl='no'
36898if test "$with_perl" != 'no'; then
cristyad38abe2012-12-23 23:03:21 +000036899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36900$as_echo "-------------------------------------------------------------" >&6; }
cristy8b350f62009-11-15 23:12:43 +000036901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036902$as_echo_n "checking for Perl... " >&6; }
cristyad38abe2012-12-23 23:03:21 +000036903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36904$as_echo "" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000036905 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000036906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000036907$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036908if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036909 $as_echo_n "(cached) " >&6
36910else
36911 ac_cv_path_PERL="$with_perl"
36912fi
cristy8b350f62009-11-15 23:12:43 +000036913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036914$as_echo "$ac_cv_path_PERL" >&6; };
36915 PERL=$ac_cv_path_PERL
36916 have_perl="$ac_cv_path_PERL"
36917 else
36918 for ac_prog in perl perl5
36919do
36920 # Extract the first word of "$ac_prog", so it can be a program name with args.
36921set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000036922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000036923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000036924if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000036925 $as_echo_n "(cached) " >&6
36926else
36927 case $PERL in
36928 [\\/]* | ?:[\\/]*)
36929 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36930 ;;
36931 *)
36932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36933for as_dir in $PATH
36934do
36935 IFS=$as_save_IFS
36936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000036938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000036939 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000036940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000036941 break 2
36942 fi
36943done
cristy8b350f62009-11-15 23:12:43 +000036944 done
cristy3ed852e2009-09-05 21:47:34 +000036945IFS=$as_save_IFS
36946
36947 ;;
36948esac
36949fi
36950PERL=$ac_cv_path_PERL
36951if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000036952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000036953$as_echo "$PERL" >&6; }
36954else
cristy8b350f62009-11-15 23:12:43 +000036955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000036956$as_echo "no" >&6; }
36957fi
36958
36959
36960 test -n "$PERL" && break
36961done
36962 if test "$ac_cv_path_PERL"; then
36963 have_perl="$ac_cv_path_PERL"
36964 fi
36965 fi
36966fi
36967
cristy949301e2010-01-06 01:38:40 +000036968if test "$with_perl" != 'yes' ; then
36969 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36970fi
36971
36972PERL_SUPPORTS_DESTDIR='no'
36973
cristy3ed852e2009-09-05 21:47:34 +000036974with_perl_static='no'
36975with_perl_dynamic='no'
36976if test "$have_perl" != 'no'; then
36977 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36978 with_perl_static='yes'
36979 fi
36980 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36981 with_perl_dynamic='yes'
36982 fi
36983 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000036984
36985
36986
36987
36988 if test -n "$PERL"; then :
36989
36990 ax_perl_version="5.8.1"
36991
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36993$as_echo_n "checking for perl version... " >&6; }
36994
cristy17491be2014-06-24 01:10:53 +000036995 perl_version=`$PERL --version 2>&1 \
36996 | $SED -n -e '/This is perl/b inspect
36997b
36998: inspect
36999s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
cristy73bd4a52010-10-05 11:24:23 +000037000
37001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
37002$as_echo "$perl_version" >&6; }
37003
37004 PERL_VERSION=$perl_version
37005
37006
37007
37008
37009
37010 # Used to indicate true or false condition
37011 ax_compare_version=false
37012
37013 # Convert the two version strings to be compared into a format that
37014 # allows a simple string comparison. The end result is that a version
37015 # string of the form 1.12.5-r617 will be converted to the form
37016 # 0001001200050617. In other words, each number is zero padded to four
37017 # digits, and non digits are removed.
37018
37019 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
37020 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
37021 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
37022 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
37023 -e 's/[^0-9]//g'`
37024
37025
37026 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
37027 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
37028 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
37029 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
37030 -e 's/[^0-9]//g'`
37031
37032
37033 ax_compare_version=`echo "x$ax_compare_version_A
37034x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
37035
37036
37037
37038 if test "$ax_compare_version" = "true" ; then
37039
37040 :
37041 PERL_SUPPORTS_DESTDIR='yes'
37042
37043 else
37044 :
37045 PERL_SUPPORTS_DESTDIR='no'
37046
37047 fi
37048
37049
37050else
37051
37052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
37053$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
37054 PERL_SUPPORTS_DESTDIR='no'
37055
cristy3ed852e2009-09-05 21:47:34 +000037056fi
cristy73bd4a52010-10-05 11:24:23 +000037057
37058fi
37059 if test "$have_perl" != 'no'; then
37060 WITH_PERL_TRUE=
37061 WITH_PERL_FALSE='#'
37062else
37063 WITH_PERL_TRUE='#'
37064 WITH_PERL_FALSE=
37065fi
37066
37067 if test $with_perl_static = 'yes'; then
37068 WITH_PERL_STATIC_TRUE=
37069 WITH_PERL_STATIC_FALSE='#'
37070else
37071 WITH_PERL_STATIC_TRUE='#'
37072 WITH_PERL_STATIC_FALSE=
37073fi
37074
37075 if test $with_perl_dynamic = 'yes'; then
37076 WITH_PERL_DYNAMIC_TRUE=
37077 WITH_PERL_DYNAMIC_FALSE='#'
37078else
37079 WITH_PERL_DYNAMIC_TRUE='#'
37080 WITH_PERL_DYNAMIC_FALSE=
37081fi
37082
cristy3ed852e2009-09-05 21:47:34 +000037083
37084
37085# Determine path to pick up MagickCore library from for use with building PerlMagick
37086MAGICKCORE_PATH="${LIB_DIR}"
37087if test $with_perl_static = 'yes'; then
37088 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
37089 libtool_objdir=$objdir
37090
37091 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000037092 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000037093fi
37094
37095
cristy2a3eb392012-12-17 13:39:20 +000037096# Create a simple string containing format names for all delegate libraries.
cristy422d5502012-12-22 22:20:57 +000037097MAGICK_DELEGATES=''
cristy2a3eb392012-12-17 13:39:20 +000037098if test "$have_autotrace" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037099 MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
cristy3ed852e2009-09-05 21:47:34 +000037100fi
cristy2a3eb392012-12-17 13:39:20 +000037101if test "$have_bzlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037102 MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
cristy2a3eb392012-12-17 13:39:20 +000037103fi
37104if test "$have_dps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037105 MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
cristy2a3eb392012-12-17 13:39:20 +000037106fi
37107if test "$have_djvu" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037108 MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
cristy2a3eb392012-12-17 13:39:20 +000037109fi
cristy81ab5af2013-10-06 18:28:39 +000037110if test "$have_avconv" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037111 MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
cristy2a3eb392012-12-17 13:39:20 +000037112fi
37113if test "$have_fftw" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037114 MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
cristy2a3eb392012-12-17 13:39:20 +000037115fi
Cristy6d2f14b2016-04-26 01:41:09 -040037116if test "$have_flif" = 'yes' ; then
37117 MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
37118fi
cristy2a3eb392012-12-17 13:39:20 +000037119if test "$have_fpx" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037120 MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
cristy2a3eb392012-12-17 13:39:20 +000037121fi
37122if test "$have_fontconfig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037123 MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
cristy2a3eb392012-12-17 13:39:20 +000037124fi
37125if test "$have_freetype" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037126 MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
cristy2a3eb392012-12-17 13:39:20 +000037127fi
37128if test "$have_gslib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037129 MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
cristy2a3eb392012-12-17 13:39:20 +000037130fi
37131if test "$have_jbig" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037132 MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
cristy2a3eb392012-12-17 13:39:20 +000037133fi
37134if test "$have_png$have_jpeg" = 'yesyes' ; then
cristy422d5502012-12-22 22:20:57 +000037135 MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
cristy2a3eb392012-12-17 13:39:20 +000037136fi
cristy2a3eb392012-12-17 13:39:20 +000037137if test "$have_jpeg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037138 MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
cristy2a3eb392012-12-17 13:39:20 +000037139fi
37140if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037141 MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
cristy2a3eb392012-12-17 13:39:20 +000037142fi
37143if test "$have_lqr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037144 MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
cristy2a3eb392012-12-17 13:39:20 +000037145fi
37146if test "$have_lzma" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037147 MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
cristy2a3eb392012-12-17 13:39:20 +000037148fi
37149if test "$have_openexr" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037150 MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
cristy2a3eb392012-12-17 13:39:20 +000037151fi
cristy99db3872014-01-01 15:11:34 +000037152if test "$have_openjp2" = 'yes' ; then
37153 MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
cristy3fe09452014-01-01 12:29:14 +000037154fi
cristy2a3eb392012-12-17 13:39:20 +000037155if test "$have_pango" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037156 MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
cristy2a3eb392012-12-17 13:39:20 +000037157fi
37158if test "$have_png" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037159 MAGICK_DELEGATES="$MAGICK_DELEGATES png"
cristy2a3eb392012-12-17 13:39:20 +000037160fi
37161have_ps='no'
37162if test "$have_dps" = 'yes' || \
37163 test "$have_gs" = 'yes' || \
37164 test "${native_win32_build}" = 'yes' ; then
37165 have_ps='yes'
37166fi
37167if test "$have_ps" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037168 MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
cristy2a3eb392012-12-17 13:39:20 +000037169fi
Cristy5572ef62016-02-06 16:10:00 -050037170if test "$have_raqm" = 'yes' ; then
37171 MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
37172fi
cristy2a3eb392012-12-17 13:39:20 +000037173if test "$have_ra_ppm" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037174 MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
cristy2a3eb392012-12-17 13:39:20 +000037175fi
37176if test "$have_rsvg" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037177 MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
cristy2a3eb392012-12-17 13:39:20 +000037178fi
37179if test "$have_tiff" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037180 MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
cristy2a3eb392012-12-17 13:39:20 +000037181fi
37182if test "$have_ttf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037183 MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
cristy2a3eb392012-12-17 13:39:20 +000037184fi
cristy3b640ed2013-07-29 00:27:59 +000037185if test "$have_webp" = 'yes' ; then
37186 MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
37187fi
cristy2a3eb392012-12-17 13:39:20 +000037188if test "$have_wmf" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037189 MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
cristy2a3eb392012-12-17 13:39:20 +000037190fi
37191if test "$have_x" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037192 MAGICK_DELEGATES="$MAGICK_DELEGATES x"
cristy2a3eb392012-12-17 13:39:20 +000037193fi
37194if test "$have_xml" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037195 MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
cristy2a3eb392012-12-17 13:39:20 +000037196fi
37197if test "$have_zlib" = 'yes' ; then
cristy422d5502012-12-22 22:20:57 +000037198 MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
cristy2a3eb392012-12-17 13:39:20 +000037199fi
cristyead532a2015-06-05 00:49:30 +000037200
cristy2a3eb392012-12-17 13:39:20 +000037201# Remove extraneous spaces from output variables (asthetic)
cristy422d5502012-12-22 22:20:57 +000037202MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/ */ /g'`
cristy2a3eb392012-12-17 13:39:20 +000037203MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/ */ /g'`
cristy3ed852e2009-09-05 21:47:34 +000037204
37205
cristyfa161182012-12-19 15:45:28 +000037206
cristy3ed852e2009-09-05 21:47:34 +000037207#
37208# Handle special compiler flags
37209#
37210
37211# Add '-p' if prof source profiling support enabled
37212if test "$enable_prof" = 'yes'; then
37213 CFLAGS="-p $CFLAGS"
37214 CXXFLAGS="-p $CXXFLAGS"
37215 LDFLAGS="-p $LDFLAGS"
37216fi
37217
37218# Add '-pg' if gprof source profiling support enabled
37219if test "$enable_gprof" = 'yes'; then
37220 CFLAGS="-pg $CFLAGS"
37221 CXXFLAGS="-pg $CXXFLAGS"
37222 LDFLAGS="-pg $LDFLAGS"
37223fi
37224
37225# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
37226# This is a gcc-specific feature
37227if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000037228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000037229$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000037230if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000037231 $as_echo_n "(cached) " >&6
37232else
37233 ac_check_lib_save_LIBS=$LIBS
37234LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000037235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000037236/* end confdefs.h. */
37237
37238/* Override any GCC internal prototype to avoid an error.
37239 Use char because int might match the return type of a GCC
37240 builtin and then its argument prototype would still apply. */
37241#ifdef __cplusplus
37242extern "C"
37243#endif
37244char _gcov_init ();
37245int
37246main ()
37247{
37248return _gcov_init ();
37249 ;
37250 return 0;
37251}
37252_ACEOF
cristy8b350f62009-11-15 23:12:43 +000037253if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000037254 ac_cv_lib_gcov__gcov_init=yes
37255else
cristy8b350f62009-11-15 23:12:43 +000037256 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000037257fi
cristy8b350f62009-11-15 23:12:43 +000037258rm -f core conftest.err conftest.$ac_objext \
37259 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000037260LIBS=$ac_check_lib_save_LIBS
37261fi
cristy8b350f62009-11-15 23:12:43 +000037262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000037263$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000037264if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000037265 cat >>confdefs.h <<_ACEOF
37266#define HAVE_LIBGCOV 1
37267_ACEOF
37268
37269 LIBS="-lgcov $LIBS"
37270
37271fi
37272
cristy8b350f62009-11-15 23:12:43 +000037273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000037274$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000037275if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000037276 $as_echo_n "(cached) " >&6
37277else
37278 ac_check_lib_save_LIBS=$LIBS
37279LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000037280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000037281/* end confdefs.h. */
37282
37283/* Override any GCC internal prototype to avoid an error.
37284 Use char because int might match the return type of a GCC
37285 builtin and then its argument prototype would still apply. */
37286#ifdef __cplusplus
37287extern "C"
37288#endif
37289char __gcov_init ();
37290int
37291main ()
37292{
37293return __gcov_init ();
37294 ;
37295 return 0;
37296}
37297_ACEOF
cristy8b350f62009-11-15 23:12:43 +000037298if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000037299 ac_cv_lib_gcov___gcov_init=yes
37300else
cristy8b350f62009-11-15 23:12:43 +000037301 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000037302fi
cristy8b350f62009-11-15 23:12:43 +000037303rm -f core conftest.err conftest.$ac_objext \
37304 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000037305LIBS=$ac_check_lib_save_LIBS
37306fi
cristy8b350f62009-11-15 23:12:43 +000037307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000037308$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000037309if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000037310 cat >>confdefs.h <<_ACEOF
37311#define HAVE_LIBGCOV 1
37312_ACEOF
37313
37314 LIBS="-lgcov $LIBS"
37315
37316fi
37317
37318 case "$target_os" in
37319 darwin*)
37320 OSX_GCOV_LDFLAG="-Wl,-single_module"
37321 ;;
37322 *)
37323 OSX_GCOV_LDFLAG=""
37324 ;;
37325 esac
37326
37327 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
37328 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
37329 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
37330fi
37331
37332#
37333# Build library dependency list for libMagickCore
37334#
37335
cristyc6722092012-10-14 00:19:31 +000037336if test "$build_modules" != 'no'; then
Cristy6d2f14b2016-04-26 01:41:09 -040037337 MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $FLIF_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 +000037338else
Cristy6d2f14b2016-04-26 01:41:09 -040037339 MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_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 +000037340fi
37341
37342
cristy3ed852e2009-09-05 21:47:34 +000037343# Pass only user-provided LIBS as "global" libraries
37344LIBS=$USER_LIBS
37345
37346#AC_SUBST(CPPFLAGS)
37347
37348#AC_SUBST(LDFLAGS)
37349#AC_SUBST(X_PRE_LIBS)
37350#AC_SUBST(X_LIBS)
37351#AC_SUBST(X_EXTRA_LIBS)
37352
37353MAGICK_CFLAGS=$CFLAGS
37354MAGICK_CXXFLAGS="$CXXFLAGS"
37355MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
37356MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
37357MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristy31b9e072013-10-17 15:02:53 +000037358MAGICK_LIBS="$MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000037359
37360
37361
37362
37363
37364
37365
37366
37367# Set configured scripts to executable.
37368ac_config_commands="$ac_config_commands default"
37369
cristy2bd4b6e2012-07-22 15:29:11 +000037370ac_config_commands="$ac_config_commands magick.sh.in"
37371
cristy3ed852e2009-09-05 21:47:34 +000037372ac_config_commands="$ac_config_commands MagickCore-config.in"
37373
cristy3ed852e2009-09-05 21:47:34 +000037374ac_config_commands="$ac_config_commands MagickWand-config.in"
37375
cristy3ed852e2009-09-05 21:47:34 +000037376ac_config_commands="$ac_config_commands Magick++-config.in"
37377
37378ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
37379
37380
cristyad38abe2012-12-23 23:03:21 +000037381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
37382$as_echo "-------------------------------------------------------------" >&6; }
37383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
37384$as_echo "Update ImageMagick configuration" >&6; }
cristy9af1cbf2014-12-28 22:03:09 +000037385
37386rm -f magick-version
37387
37388result_dejavu_font_dir='none'
37389if test "${dejavu_font_dir}x" != 'x'; then
37390 result_dejavu_font_dir=$dejavu_font_dir
37391fi
37392
37393result_ghostscript_font_dir='none'
37394if test "${ghostscript_font_dir}x" != 'x'; then
37395 result_ghostscript_font_dir=$ghostscript_font_dir
37396fi
37397
37398result_windows_font_dir='none'
37399if test "${windows_font_dir}x" != 'x'; then
37400 result_windows_font_dir=${windows_font_dir}
37401fi
37402
37403# ==============================================================================
37404# Generate build environment
37405# ==============================================================================
Cristy540ea6e2016-04-01 12:06:50 -040037406ac_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/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy9af1cbf2014-12-28 22:03:09 +000037407
cristy3ed852e2009-09-05 21:47:34 +000037408cat >confcache <<\_ACEOF
37409# This file is a shell script that caches the results of configure
37410# tests run on this system so they can be shared between configure
37411# scripts and configure runs, see configure's option --config-cache.
37412# It is not useful on other systems. If it contains results you don't
37413# want to keep, you may remove or edit it.
37414#
37415# config.status only pays attention to the cache file if you give it
37416# the --recheck option to rerun configure.
37417#
37418# `ac_cv_env_foo' variables (set or unset) will be overridden when
37419# loading this file, other *unset* `ac_cv_foo' will be assigned the
37420# following values.
37421
37422_ACEOF
37423
37424# The following way of writing the cache mishandles newlines in values,
37425# but we know of no workaround that is simple, portable, and efficient.
37426# So, we kill variables containing newlines.
37427# Ultrix sh set writes to stderr and can't be redirected directly,
37428# and sets the high bit in the cache file unless we assign to the vars.
37429(
37430 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37431 eval ac_val=\$$ac_var
37432 case $ac_val in #(
37433 *${as_nl}*)
37434 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000037435 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000037436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37437 esac
37438 case $ac_var in #(
37439 _ | IFS | as_nl) ;; #(
37440 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000037441 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000037442 esac ;;
37443 esac
37444 done
37445
37446 (set) 2>&1 |
37447 case $as_nl`(ac_space=' '; set) 2>&1` in #(
37448 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000037449 # `set' does not quote correctly, so add quotes: double-quote
37450 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000037451 sed -n \
37452 "s/'/'\\\\''/g;
37453 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37454 ;; #(
37455 *)
37456 # `set' quotes correctly as required by POSIX, so do not add quotes.
37457 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37458 ;;
37459 esac |
37460 sort
37461) |
37462 sed '
37463 /^ac_cv_env_/b end
37464 t clear
37465 :clear
37466 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37467 t end
37468 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37469 :end' >>confcache
37470if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37471 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000037472 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000037473 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037474$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000037475 if test ! -f "$cache_file" || test -h "$cache_file"; then
37476 cat confcache >"$cache_file"
37477 else
37478 case $cache_file in #(
37479 */* | ?:*)
37480 mv -f confcache "$cache_file"$$ &&
37481 mv -f "$cache_file"$$ "$cache_file" ;; #(
37482 *)
37483 mv -f confcache "$cache_file" ;;
37484 esac
37485 fi
37486 fi
cristy3ed852e2009-09-05 21:47:34 +000037487 else
cristy8b350f62009-11-15 23:12:43 +000037488 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037489$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37490 fi
37491fi
37492rm -f confcache
37493
37494test "x$prefix" = xNONE && prefix=$ac_default_prefix
37495# Let make expand exec_prefix.
37496test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37497
37498DEFS=-DHAVE_CONFIG_H
37499
37500ac_libobjs=
37501ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000037502U=
cristy3ed852e2009-09-05 21:47:34 +000037503for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37504 # 1. Remove the extension, and $U if already installed.
37505 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37506 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37507 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
37508 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000037509 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37510 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000037511done
37512LIBOBJS=$ac_libobjs
37513
37514LTLIBOBJS=$ac_ltlibobjs
37515
37516
cristyc0890a62012-07-19 00:18:20 +000037517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37518$as_echo_n "checking that generated files are newer than configure... " >&6; }
37519 if test -n "$am_sleep_pid"; then
37520 # Hide warnings about reused PIDs.
37521 wait $am_sleep_pid 2>/dev/null
37522 fi
37523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37524$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000037525 if test -n "$EXEEXT"; then
37526 am__EXEEXT_TRUE=
37527 am__EXEEXT_FALSE='#'
37528else
37529 am__EXEEXT_TRUE='#'
37530 am__EXEEXT_FALSE=
37531fi
cristy3ed852e2009-09-05 21:47:34 +000037532
cristy9af1cbf2014-12-28 22:03:09 +000037533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37534$as_echo_n "checking that generated files are newer than configure... " >&6; }
37535 if test -n "$am_sleep_pid"; then
37536 # Hide warnings about reused PIDs.
37537 wait $am_sleep_pid 2>/dev/null
37538 fi
37539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37540$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000037541if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037542 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037543Usually this means the macro was only invoked conditionally." "$LINENO" 5
37544fi
37545if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037546 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037547Usually this means the macro was only invoked conditionally." "$LINENO" 5
37548fi
37549if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037550 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037551Usually this means the macro was only invoked conditionally." "$LINENO" 5
37552fi
37553if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037554 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037555Usually this means the macro was only invoked conditionally." "$LINENO" 5
37556fi
cristy9b86f202012-11-28 21:55:35 +000037557if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
37558 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
37559Usually this means the macro was only invoked conditionally." "$LINENO" 5
37560fi
cristy73bd4a52010-10-05 11:24:23 +000037561if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037562 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037563Usually this means the macro was only invoked conditionally." "$LINENO" 5
37564fi
37565if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037566 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037567Usually this means the macro was only invoked conditionally." "$LINENO" 5
37568fi
37569if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037570 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037571Usually this means the macro was only invoked conditionally." "$LINENO" 5
37572fi
37573if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037574 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037575Usually this means the macro was only invoked conditionally." "$LINENO" 5
37576fi
cristy73bd4a52010-10-05 11:24:23 +000037577if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037578 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037579Usually this means the macro was only invoked conditionally." "$LINENO" 5
37580fi
37581if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037582 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037583Usually this means the macro was only invoked conditionally." "$LINENO" 5
37584fi
cristy73bd4a52010-10-05 11:24:23 +000037585if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037586 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037587Usually this means the macro was only invoked conditionally." "$LINENO" 5
37588fi
cristy71d8c202012-03-20 17:05:01 +000037589if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
37590 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
37591Usually this means the macro was only invoked conditionally." "$LINENO" 5
37592fi
cristy73bd4a52010-10-05 11:24:23 +000037593
37594if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037595 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037596Usually this means the macro was only invoked conditionally." "$LINENO" 5
37597fi
37598if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037599 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037600Usually this means the macro was only invoked conditionally." "$LINENO" 5
37601fi
cristy3b0097d2014-11-04 15:34:47 +000037602if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
37603 as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
37604Usually this means the macro was only invoked conditionally." "$LINENO" 5
37605fi
cristy73bd4a52010-10-05 11:24:23 +000037606if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037607 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037608Usually this means the macro was only invoked conditionally." "$LINENO" 5
37609fi
37610if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037611 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037612Usually this means the macro was only invoked conditionally." "$LINENO" 5
37613fi
37614if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037615 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037616Usually this means the macro was only invoked conditionally." "$LINENO" 5
37617fi
37618if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037619 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037620Usually this means the macro was only invoked conditionally." "$LINENO" 5
37621fi
cristy5eef09f2012-10-16 12:08:28 +000037622if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
37623 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
37624Usually this means the macro was only invoked conditionally." "$LINENO" 5
37625fi
cristy73bd4a52010-10-05 11:24:23 +000037626if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037627 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037628Usually this means the macro was only invoked conditionally." "$LINENO" 5
37629fi
37630if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037631 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037632Usually this means the macro was only invoked conditionally." "$LINENO" 5
37633fi
cristy73bd4a52010-10-05 11:24:23 +000037634if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037635 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037636Usually this means the macro was only invoked conditionally." "$LINENO" 5
37637fi
Cristy6d2f14b2016-04-26 01:41:09 -040037638if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
37639 as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
37640Usually this means the macro was only invoked conditionally." "$LINENO" 5
37641fi
cristy73bd4a52010-10-05 11:24:23 +000037642if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037643 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037644Usually this means the macro was only invoked conditionally." "$LINENO" 5
37645fi
cristy853d9902014-08-21 18:50:43 +000037646if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
37647 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
37648Usually this means the macro was only invoked conditionally." "$LINENO" 5
37649fi
cristy73bd4a52010-10-05 11:24:23 +000037650if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037651 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037652Usually this means the macro was only invoked conditionally." "$LINENO" 5
37653fi
37654if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037655 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037656Usually this means the macro was only invoked conditionally." "$LINENO" 5
37657fi
Cristy17f8c722016-01-31 09:42:56 -050037658if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
37659 as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
37660Usually this means the macro was only invoked conditionally." "$LINENO" 5
37661fi
cristy73bd4a52010-10-05 11:24:23 +000037662if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037663 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037664Usually this means the macro was only invoked conditionally." "$LINENO" 5
37665fi
37666if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037667 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037668Usually this means the macro was only invoked conditionally." "$LINENO" 5
37669fi
37670if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037671 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037672Usually this means the macro was only invoked conditionally." "$LINENO" 5
37673fi
37674if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037675 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037676Usually this means the macro was only invoked conditionally." "$LINENO" 5
37677fi
cristy73bd4a52010-10-05 11:24:23 +000037678if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037679 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037680Usually this means the macro was only invoked conditionally." "$LINENO" 5
37681fi
cristy99db3872014-01-01 15:11:34 +000037682if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
37683 as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
37684Usually this means the macro was only invoked conditionally." "$LINENO" 5
37685fi
cristy73bd4a52010-10-05 11:24:23 +000037686if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037687 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037688Usually this means the macro was only invoked conditionally." "$LINENO" 5
37689fi
cristyfbb0ef02010-12-19 02:32:11 +000037690if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
37691 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
37692Usually this means the macro was only invoked conditionally." "$LINENO" 5
37693fi
cristy73bd4a52010-10-05 11:24:23 +000037694if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037695 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037696Usually this means the macro was only invoked conditionally." "$LINENO" 5
37697fi
cristy41cbe8a2011-10-27 01:35:18 +000037698if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
37699 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
37700Usually this means the macro was only invoked conditionally." "$LINENO" 5
37701fi
cristya054b762012-03-26 23:16:00 +000037702if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
37703 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000037704Usually this means the macro was only invoked conditionally." "$LINENO" 5
37705fi
cristy73bd4a52010-10-05 11:24:23 +000037706if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037707 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037708Usually this means the macro was only invoked conditionally." "$LINENO" 5
37709fi
37710if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037711 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037712Usually this means the macro was only invoked conditionally." "$LINENO" 5
37713fi
37714if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037715 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037716Usually this means the macro was only invoked conditionally." "$LINENO" 5
37717fi
37718if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037719 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037720Usually this means the macro was only invoked conditionally." "$LINENO" 5
37721fi
cristyb1860752011-03-14 00:27:46 +000037722if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
37723 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
37724Usually this means the macro was only invoked conditionally." "$LINENO" 5
37725fi
cristy73bd4a52010-10-05 11:24:23 +000037726if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037727 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037728Usually this means the macro was only invoked conditionally." "$LINENO" 5
37729fi
37730if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037731 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037732Usually this means the macro was only invoked conditionally." "$LINENO" 5
37733fi
cristydd17feb2014-03-05 02:06:32 +000037734if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
37735 as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
37736Usually this means the macro was only invoked conditionally." "$LINENO" 5
37737fi
cristy73bd4a52010-10-05 11:24:23 +000037738if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037739 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037740Usually this means the macro was only invoked conditionally." "$LINENO" 5
37741fi
37742if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037743 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037744Usually this means the macro was only invoked conditionally." "$LINENO" 5
37745fi
37746if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037747 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037748Usually this means the macro was only invoked conditionally." "$LINENO" 5
37749fi
37750if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037751 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037752Usually this means the macro was only invoked conditionally." "$LINENO" 5
37753fi
37754if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037755 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037756Usually this means the macro was only invoked conditionally." "$LINENO" 5
37757fi
37758if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000037759 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000037760Usually this means the macro was only invoked conditionally." "$LINENO" 5
37761fi
cristy3ed852e2009-09-05 21:47:34 +000037762
cristyda16f162011-02-19 23:52:17 +000037763: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000037764ac_write_fail=0
37765ac_clean_files_save=$ac_clean_files
37766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000037767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000037768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000037769as_write_fail=0
37770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000037771#! $SHELL
37772# Generated by $as_me.
37773# Run this file to recreate the current configuration.
37774# Compiler output produced by configure, useful for debugging
37775# configure, is in config.log if it exists.
37776
37777debug=false
37778ac_cs_recheck=false
37779ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000037780
cristy8b350f62009-11-15 23:12:43 +000037781SHELL=\${CONFIG_SHELL-$SHELL}
37782export SHELL
37783_ASEOF
37784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37785## -------------------- ##
37786## M4sh Initialization. ##
37787## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000037788
37789# Be more Bourne compatible
37790DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000037791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000037792 emulate sh
37793 NULLCMD=:
37794 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37795 # is contrary to our usage. Disable this feature.
37796 alias -g '${1+"$@"}'='"$@"'
37797 setopt NO_GLOB_SUBST
37798else
cristy8b350f62009-11-15 23:12:43 +000037799 case `(set -o) 2>/dev/null` in #(
37800 *posix*) :
37801 set -o posix ;; #(
37802 *) :
37803 ;;
cristy3ed852e2009-09-05 21:47:34 +000037804esac
cristy3ed852e2009-09-05 21:47:34 +000037805fi
37806
37807
cristy3ed852e2009-09-05 21:47:34 +000037808as_nl='
37809'
37810export as_nl
37811# Printing a long string crashes Solaris 7 /usr/bin/printf.
37812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000037815# Prefer a ksh shell builtin over an external printf program on Solaris,
37816# but without wasting forks for bash or zsh.
37817if test -z "$BASH_VERSION$ZSH_VERSION" \
37818 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37819 as_echo='print -r --'
37820 as_echo_n='print -rn --'
37821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000037822 as_echo='printf %s\n'
37823 as_echo_n='printf %s'
37824else
37825 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37826 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37827 as_echo_n='/usr/ucb/echo -n'
37828 else
37829 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37830 as_echo_n_body='eval
37831 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000037832 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000037833 *"$as_nl"*)
37834 expr "X$arg" : "X\\(.*\\)$as_nl";
37835 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37836 esac;
37837 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37838 '
37839 export as_echo_n_body
37840 as_echo_n='sh -c $as_echo_n_body as_echo'
37841 fi
37842 export as_echo_body
37843 as_echo='sh -c $as_echo_body as_echo'
37844fi
37845
37846# The user is always right.
37847if test "${PATH_SEPARATOR+set}" != set; then
37848 PATH_SEPARATOR=:
37849 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37850 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37851 PATH_SEPARATOR=';'
37852 }
37853fi
37854
cristy3ed852e2009-09-05 21:47:34 +000037855
37856# IFS
37857# We need space, tab and new line, in precisely that order. Quoting is
37858# there to prevent editors from complaining about space-tab.
37859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37860# splitting by setting IFS to empty value.)
37861IFS=" "" $as_nl"
37862
37863# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000037864as_myself=
cristy8b350f62009-11-15 23:12:43 +000037865case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000037866 *[\\/]* ) as_myself=$0 ;;
37867 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37868for as_dir in $PATH
37869do
37870 IFS=$as_save_IFS
37871 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000037872 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37873 done
cristy3ed852e2009-09-05 21:47:34 +000037874IFS=$as_save_IFS
37875
37876 ;;
37877esac
37878# We did not find ourselves, most probably we were run as `sh COMMAND'
37879# in which case we are not to be found in the path.
37880if test "x$as_myself" = x; then
37881 as_myself=$0
37882fi
37883if test ! -f "$as_myself"; then
37884 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000037885 exit 1
cristy3ed852e2009-09-05 21:47:34 +000037886fi
37887
cristy8b350f62009-11-15 23:12:43 +000037888# Unset variables that we do not need and which cause bugs (e.g. in
37889# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37890# suppresses any "Segmentation fault" message there. '((' could
37891# trigger a bug in pdksh 5.2.14.
37892for as_var in BASH_ENV ENV MAIL MAILPATH
37893do eval test x\${$as_var+set} = xset \
37894 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000037895done
37896PS1='$ '
37897PS2='> '
37898PS4='+ '
37899
37900# NLS nuisances.
37901LC_ALL=C
37902export LC_ALL
37903LANGUAGE=C
37904export LANGUAGE
37905
cristy8b350f62009-11-15 23:12:43 +000037906# CDPATH.
37907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37908
37909
cristy98dddb52010-11-04 00:30:15 +000037910# as_fn_error STATUS ERROR [LINENO LOG_FD]
37911# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000037912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000037914# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000037915as_fn_error ()
37916{
cristy98dddb52010-11-04 00:30:15 +000037917 as_status=$1; test $as_status -eq 0 && as_status=1
37918 if test "$4"; then
37919 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37920 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000037921 fi
cristy98dddb52010-11-04 00:30:15 +000037922 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000037923 as_fn_exit $as_status
37924} # as_fn_error
37925
37926
37927# as_fn_set_status STATUS
37928# -----------------------
37929# Set $? to STATUS, without forking.
37930as_fn_set_status ()
37931{
37932 return $1
37933} # as_fn_set_status
37934
37935# as_fn_exit STATUS
37936# -----------------
37937# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37938as_fn_exit ()
37939{
37940 set +e
37941 as_fn_set_status $1
37942 exit $1
37943} # as_fn_exit
37944
37945# as_fn_unset VAR
37946# ---------------
37947# Portably unset VAR.
37948as_fn_unset ()
37949{
37950 { eval $1=; unset $1;}
37951}
37952as_unset=as_fn_unset
37953# as_fn_append VAR VALUE
37954# ----------------------
37955# Append the text in VALUE to the end of the definition contained in VAR. Take
37956# advantage of any shell optimizations that allow amortized linear growth over
37957# repeated appends, instead of the typical quadratic growth present in naive
37958# implementations.
37959if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37960 eval 'as_fn_append ()
37961 {
37962 eval $1+=\$2
37963 }'
37964else
37965 as_fn_append ()
37966 {
37967 eval $1=\$$1\$2
37968 }
37969fi # as_fn_append
37970
37971# as_fn_arith ARG...
37972# ------------------
37973# Perform arithmetic evaluation on the ARGs, and store the result in the
37974# global $as_val. Take advantage of shells that can avoid forks. The arguments
37975# must be portable across $(()) and expr.
37976if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37977 eval 'as_fn_arith ()
37978 {
37979 as_val=$(( $* ))
37980 }'
37981else
37982 as_fn_arith ()
37983 {
37984 as_val=`expr "$@" || test $? -eq 1`
37985 }
37986fi # as_fn_arith
37987
37988
cristy3ed852e2009-09-05 21:47:34 +000037989if expr a : '\(a\)' >/dev/null 2>&1 &&
37990 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37991 as_expr=expr
37992else
37993 as_expr=false
37994fi
37995
37996if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37997 as_basename=basename
37998else
37999 as_basename=false
38000fi
38001
cristy8b350f62009-11-15 23:12:43 +000038002if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38003 as_dirname=dirname
38004else
38005 as_dirname=false
38006fi
cristy3ed852e2009-09-05 21:47:34 +000038007
cristy3ed852e2009-09-05 21:47:34 +000038008as_me=`$as_basename -- "$0" ||
38009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38010 X"$0" : 'X\(//\)$' \| \
38011 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38012$as_echo X/"$0" |
38013 sed '/^.*\/\([^/][^/]*\)\/*$/{
38014 s//\1/
38015 q
38016 }
38017 /^X\/\(\/\/\)$/{
38018 s//\1/
38019 q
38020 }
38021 /^X\/\(\/\).*/{
38022 s//\1/
38023 q
38024 }
38025 s/.*/./; q'`
38026
cristy8b350f62009-11-15 23:12:43 +000038027# Avoid depending upon Character Ranges.
38028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38031as_cr_digits='0123456789'
38032as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000038033
38034ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000038035case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000038036-n*)
cristy8b350f62009-11-15 23:12:43 +000038037 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000038038 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000038039 xy) ECHO_C='\c';;
38040 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
38041 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000038042 esac;;
38043*)
38044 ECHO_N='-n';;
38045esac
cristy3ed852e2009-09-05 21:47:34 +000038046
38047rm -f conf$$ conf$$.exe conf$$.file
38048if test -d conf$$.dir; then
38049 rm -f conf$$.dir/conf$$.file
38050else
38051 rm -f conf$$.dir
38052 mkdir conf$$.dir 2>/dev/null
38053fi
38054if (echo >conf$$.file) 2>/dev/null; then
38055 if ln -s conf$$.file conf$$ 2>/dev/null; then
38056 as_ln_s='ln -s'
38057 # ... but there are two gotchas:
38058 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38059 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000038060 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000038061 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000038062 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000038063 elif ln conf$$.file conf$$ 2>/dev/null; then
38064 as_ln_s=ln
38065 else
cristy14fefe52012-05-21 00:59:18 +000038066 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000038067 fi
38068else
cristy14fefe52012-05-21 00:59:18 +000038069 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000038070fi
38071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38072rmdir conf$$.dir 2>/dev/null
38073
cristy8b350f62009-11-15 23:12:43 +000038074
38075# as_fn_mkdir_p
38076# -------------
38077# Create "$as_dir" as a directory, including parents if necessary.
38078as_fn_mkdir_p ()
38079{
38080
38081 case $as_dir in #(
38082 -*) as_dir=./$as_dir;;
38083 esac
38084 test -d "$as_dir" || eval $as_mkdir_p || {
38085 as_dirs=
38086 while :; do
38087 case $as_dir in #(
38088 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38089 *) as_qdir=$as_dir;;
38090 esac
38091 as_dirs="'$as_qdir' $as_dirs"
38092 as_dir=`$as_dirname -- "$as_dir" ||
38093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38094 X"$as_dir" : 'X\(//\)[^/]' \| \
38095 X"$as_dir" : 'X\(//\)$' \| \
38096 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38097$as_echo X"$as_dir" |
38098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38099 s//\1/
38100 q
38101 }
38102 /^X\(\/\/\)[^/].*/{
38103 s//\1/
38104 q
38105 }
38106 /^X\(\/\/\)$/{
38107 s//\1/
38108 q
38109 }
38110 /^X\(\/\).*/{
38111 s//\1/
38112 q
38113 }
38114 s/.*/./; q'`
38115 test -d "$as_dir" && break
38116 done
38117 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000038118 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000038119
38120
38121} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000038122if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000038123 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000038124else
38125 test -d ./-p && rmdir ./-p
38126 as_mkdir_p=false
38127fi
38128
cristy14fefe52012-05-21 00:59:18 +000038129
38130# as_fn_executable_p FILE
38131# -----------------------
38132# Test if FILE is an executable regular file.
38133as_fn_executable_p ()
38134{
38135 test -f "$1" && test -x "$1"
38136} # as_fn_executable_p
38137as_test_x='test -x'
38138as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000038139
38140# Sed expression to map a string onto a valid CPP name.
38141as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38142
38143# Sed expression to map a string onto a valid variable name.
38144as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38145
38146
38147exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000038148## ----------------------------------- ##
38149## Main body of $CONFIG_STATUS script. ##
38150## ----------------------------------- ##
38151_ASEOF
38152test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000038153
cristy8b350f62009-11-15 23:12:43 +000038154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38155# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000038156# report actual input values of CONFIG_FILES etc. instead of their
38157# values after options handling.
38158ac_log="
Cristy814561c2016-07-11 12:42:00 -040038159This file was extended by ImageMagick $as_me 7.0.2-5, which was
cristy14fefe52012-05-21 00:59:18 +000038160generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000038161
38162 CONFIG_FILES = $CONFIG_FILES
38163 CONFIG_HEADERS = $CONFIG_HEADERS
38164 CONFIG_LINKS = $CONFIG_LINKS
38165 CONFIG_COMMANDS = $CONFIG_COMMANDS
38166 $ $0 $@
38167
38168on `(hostname || uname -n) 2>/dev/null | sed 1q`
38169"
38170
38171_ACEOF
38172
38173case $ac_config_files in *"
38174"*) set x $ac_config_files; shift; ac_config_files=$*;;
38175esac
38176
38177case $ac_config_headers in *"
38178"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38179esac
38180
38181
38182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38183# Files that config.status was made for.
38184config_files="$ac_config_files"
38185config_headers="$ac_config_headers"
38186config_commands="$ac_config_commands"
38187
38188_ACEOF
38189
38190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38191ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000038192\`$as_me' instantiates files and other configuration actions
38193from templates according to the current configuration. Unless the files
38194and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000038195
cristy8b350f62009-11-15 23:12:43 +000038196Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000038197
38198 -h, --help print this help, then exit
38199 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000038200 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000038201 -q, --quiet, --silent
38202 do not print progress messages
38203 -d, --debug don't remove temporary files
38204 --recheck update $as_me by reconfiguring in the same conditions
38205 --file=FILE[:TEMPLATE]
38206 instantiate the configuration file FILE
38207 --header=FILE[:TEMPLATE]
38208 instantiate the configuration header FILE
38209
38210Configuration files:
38211$config_files
38212
38213Configuration headers:
38214$config_headers
38215
38216Configuration commands:
38217$config_commands
38218
Cristy6720ed72016-02-09 09:27:35 -050038219Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
38220ImageMagick home page: <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000038221
38222_ACEOF
38223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000038224ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000038225ac_cs_version="\\
Cristy814561c2016-07-11 12:42:00 -040038226ImageMagick config.status 7.0.2-5
cristy14fefe52012-05-21 00:59:18 +000038227configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000038228 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000038229
cristy14fefe52012-05-21 00:59:18 +000038230Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000038231This config.status script is free software; the Free Software Foundation
38232gives unlimited permission to copy, distribute and modify it."
38233
38234ac_pwd='$ac_pwd'
38235srcdir='$srcdir'
38236INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000038237MKDIR_P='$MKDIR_P'
38238AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000038239test -n "\$AWK" || AWK=awk
38240_ACEOF
38241
38242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38243# The default lists apply if the user does not specify any file.
38244ac_need_defaults=:
38245while test $# != 0
38246do
38247 case $1 in
cristyda16f162011-02-19 23:52:17 +000038248 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000038249 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38250 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38251 ac_shift=:
38252 ;;
cristyda16f162011-02-19 23:52:17 +000038253 --*=)
38254 ac_option=`expr "X$1" : 'X\([^=]*\)='`
38255 ac_optarg=
38256 ac_shift=:
38257 ;;
cristy3ed852e2009-09-05 21:47:34 +000038258 *)
38259 ac_option=$1
38260 ac_optarg=$2
38261 ac_shift=shift
38262 ;;
38263 esac
38264
38265 case $ac_option in
38266 # Handling of the options.
38267 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38268 ac_cs_recheck=: ;;
38269 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38270 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000038271 --config | --confi | --conf | --con | --co | --c )
38272 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000038273 --debug | --debu | --deb | --de | --d | -d )
38274 debug=: ;;
38275 --file | --fil | --fi | --f )
38276 $ac_shift
38277 case $ac_optarg in
38278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000038279 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000038280 esac
cristy8b350f62009-11-15 23:12:43 +000038281 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000038282 ac_need_defaults=false;;
38283 --header | --heade | --head | --hea )
38284 $ac_shift
38285 case $ac_optarg in
38286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38287 esac
cristy8b350f62009-11-15 23:12:43 +000038288 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000038289 ac_need_defaults=false;;
38290 --he | --h)
38291 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000038292 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000038293Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000038294 --help | --hel | -h )
38295 $as_echo "$ac_cs_usage"; exit ;;
38296 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38297 | -silent | --silent | --silen | --sile | --sil | --si | --s)
38298 ac_cs_silent=: ;;
38299
38300 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000038301 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000038302Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000038303
cristy8b350f62009-11-15 23:12:43 +000038304 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000038305 ac_need_defaults=false ;;
38306
38307 esac
38308 shift
38309done
38310
38311ac_configure_extra_args=
38312
38313if $ac_cs_silent; then
38314 exec 6>/dev/null
38315 ac_configure_extra_args="$ac_configure_extra_args --silent"
38316fi
38317
38318_ACEOF
38319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38320if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000038321 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000038322 shift
38323 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38324 CONFIG_SHELL='$SHELL'
38325 export CONFIG_SHELL
38326 exec "\$@"
38327fi
38328
38329_ACEOF
38330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38331exec 5>>config.log
38332{
38333 echo
38334 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38335## Running $as_me. ##
38336_ASBOX
38337 $as_echo "$ac_log"
38338} >&5
38339
38340_ACEOF
38341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000038342#
38343# INIT-COMMANDS
38344#
38345PACKAGE="$PACKAGE"
38346AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38347
38348
38349# The HP-UX ksh and POSIX shell print the target directory to stdout
38350# if CDPATH is set.
38351(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38352
38353sed_quote_subst='$sed_quote_subst'
38354double_quote_subst='$double_quote_subst'
38355delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000038356SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38357Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38358GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38359EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38360FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38361SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38362ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38363LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38364macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38365macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38366AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
38367DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38368OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38369enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38370enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38371pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38372enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050038373shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000038374PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38381NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38382LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38383max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38384ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38385exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38386lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38387lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38388lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038389lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38390lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038391reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38392reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38393deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38394file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038395file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38396want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38397sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038398AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38399AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038400archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038401STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38402RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38403old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38404old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38405old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38406lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38407CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38408CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38409compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38410GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38411lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38412lt_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 -050038413lt_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 +000038414lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38415lt_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 -050038416lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038417nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38418lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050038419lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038420objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38421MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38422lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038423lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038424lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038425lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38426lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38427need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038428MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038429DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38430NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38431LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38432OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38433OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38434libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38435shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38436extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38437archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38438enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38439export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38440whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38441compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38442old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38443old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38444archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38445archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38446module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38447module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38448with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38449allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38450no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38451hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038452hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38453hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38454hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38455hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38456hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38457hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38458inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38459link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038460always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38461export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38462exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38463include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38464prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038465postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038466file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38467variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38468need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38469need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38470version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38471runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38472shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38473shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38474libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38475library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38476soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38477install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38478postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38479postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38480finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38481finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38482hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38483sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
Cristy15f22012015-11-14 17:51:30 -050038484configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38485configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038486hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38487enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38488enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38489enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38490old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38491striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38492compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38493predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38494postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38495predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38496postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38497compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38498LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38499reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38500reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38501old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38502compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38503GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38504lt_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 +000038505lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038506lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038507lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38508lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38509archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38510enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38511export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38512whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38513compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38514old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38515old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38516archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38517archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38518module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38519module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38520with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38521allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38522no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38523hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038524hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38525hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38526hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38527hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38528hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38529hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38530inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38531link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038532always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38533export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38534exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38535include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38536prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000038537postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000038538file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38539hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38540compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38541predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38542postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38543predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38544postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38545compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000038546
38547LTCC='$LTCC'
38548LTCFLAGS='$LTCFLAGS'
38549compiler='$compiler_DEFAULT'
38550
cristy0c60a692010-11-04 01:09:47 +000038551# A function that is used when there is no print builtin or printf.
38552func_fallback_echo ()
38553{
38554 eval 'cat <<_LTECHO_EOF
38555\$1
38556_LTECHO_EOF'
38557}
38558
cristy73bd4a52010-10-05 11:24:23 +000038559# Quote evaled strings.
38560for var in SED \
38561GREP \
38562EGREP \
38563FGREP \
cristy0c60a692010-11-04 01:09:47 +000038564SHELL \
38565ECHO \
cristy73bd4a52010-10-05 11:24:23 +000038566LD \
cristy0c60a692010-11-04 01:09:47 +000038567AS \
38568DLLTOOL \
38569OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000038570PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000038571NM \
38572LN_S \
38573lt_SP2NL \
38574lt_NL2SP \
38575reload_flag \
38576deplibs_check_method \
38577file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000038578file_magic_glob \
38579want_nocaseglob \
38580sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000038581AR \
38582AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000038583archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000038584STRIP \
38585RANLIB \
38586CC \
38587CFLAGS \
38588compiler \
38589lt_cv_sys_global_symbol_pipe \
38590lt_cv_sys_global_symbol_to_cdecl \
Cristy15f22012015-11-14 17:51:30 -050038591lt_cv_sys_global_symbol_to_import \
cristy73bd4a52010-10-05 11:24:23 +000038592lt_cv_sys_global_symbol_to_c_name_address \
38593lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Cristy15f22012015-11-14 17:51:30 -050038594lt_cv_nm_interface \
cristyda16f162011-02-19 23:52:17 +000038595nm_file_list_spec \
Cristy15f22012015-11-14 17:51:30 -050038596lt_cv_truncate_bin \
cristy73bd4a52010-10-05 11:24:23 +000038597lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000038598lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000038599lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000038600lt_prog_compiler_static \
38601lt_cv_prog_compiler_c_o \
38602need_locks \
cristyda16f162011-02-19 23:52:17 +000038603MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000038604DSYMUTIL \
38605NMEDIT \
38606LIPO \
38607OTOOL \
38608OTOOL64 \
38609shrext_cmds \
38610export_dynamic_flag_spec \
38611whole_archive_flag_spec \
38612compiler_needs_object \
38613with_gnu_ld \
38614allow_undefined_flag \
38615no_undefined_flag \
38616hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000038617hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000038618exclude_expsyms \
38619include_expsyms \
38620file_list_spec \
38621variables_saved_for_relink \
38622libname_spec \
38623library_names_spec \
38624soname_spec \
cristy0c60a692010-11-04 01:09:47 +000038625install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000038626finish_eval \
38627old_striplib \
38628striplib \
38629compiler_lib_search_dirs \
38630predep_objects \
38631postdep_objects \
38632predeps \
38633postdeps \
38634compiler_lib_search_path \
38635LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000038636reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038637compiler_CXX \
38638lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038639lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000038640lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038641lt_prog_compiler_static_CXX \
38642lt_cv_prog_compiler_c_o_CXX \
38643export_dynamic_flag_spec_CXX \
38644whole_archive_flag_spec_CXX \
38645compiler_needs_object_CXX \
38646with_gnu_ld_CXX \
38647allow_undefined_flag_CXX \
38648no_undefined_flag_CXX \
38649hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038650hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038651exclude_expsyms_CXX \
38652include_expsyms_CXX \
38653file_list_spec_CXX \
38654compiler_lib_search_dirs_CXX \
38655predep_objects_CXX \
38656postdep_objects_CXX \
38657predeps_CXX \
38658postdeps_CXX \
38659compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000038660 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000038661 *[\\\\\\\`\\"\\\$]*)
Cristy15f22012015-11-14 17:51:30 -050038662 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
cristy73bd4a52010-10-05 11:24:23 +000038663 ;;
38664 *)
38665 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38666 ;;
38667 esac
38668done
38669
38670# Double-quote double-evaled strings.
38671for var in reload_cmds \
38672old_postinstall_cmds \
38673old_postuninstall_cmds \
38674old_archive_cmds \
38675extract_expsyms_cmds \
38676old_archive_from_new_cmds \
38677old_archive_from_expsyms_cmds \
38678archive_cmds \
38679archive_expsym_cmds \
38680module_cmds \
38681module_expsym_cmds \
38682export_symbols_cmds \
38683prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000038684postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000038685postinstall_cmds \
38686postuninstall_cmds \
38687finish_cmds \
38688sys_lib_search_path_spec \
Cristy15f22012015-11-14 17:51:30 -050038689configure_time_dlsearch_path \
38690configure_time_lt_sys_library_path \
cristy0c60a692010-11-04 01:09:47 +000038691reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000038692old_archive_cmds_CXX \
38693old_archive_from_new_cmds_CXX \
38694old_archive_from_expsyms_cmds_CXX \
38695archive_cmds_CXX \
38696archive_expsym_cmds_CXX \
38697module_cmds_CXX \
38698module_expsym_cmds_CXX \
38699export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000038700prelink_cmds_CXX \
38701postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000038702 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000038703 *[\\\\\\\`\\"\\\$]*)
Cristy15f22012015-11-14 17:51:30 -050038704 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 +000038705 ;;
38706 *)
38707 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38708 ;;
38709 esac
38710done
38711
cristy73bd4a52010-10-05 11:24:23 +000038712ac_aux_dir='$ac_aux_dir'
cristy73bd4a52010-10-05 11:24:23 +000038713
Cristy15f22012015-11-14 17:51:30 -050038714# See if we are running on zsh, and set the options that allow our
cristy73bd4a52010-10-05 11:24:23 +000038715# commands through without removal of \ escapes INIT.
Cristy15f22012015-11-14 17:51:30 -050038716if test -n "\${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000038717 setopt NO_GLOB_SUBST
38718fi
38719
38720
38721 PACKAGE='$PACKAGE'
38722 VERSION='$VERSION'
cristy73bd4a52010-10-05 11:24:23 +000038723 RM='$RM'
38724 ofile='$ofile'
38725
38726
38727
38728
38729
38730
cristy3ed852e2009-09-05 21:47:34 +000038731_ACEOF
38732
38733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38734
38735# Handling of arguments.
38736for ac_config_target in $ac_config_targets
38737do
38738 case $ac_config_target in
38739 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy01ff9f32012-12-01 18:15:29 +000038740 "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
cristy9af1cbf2014-12-28 22:03:09 +000038741 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38742 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38743 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38744 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
38745 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
38746 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
38747 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
38748 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
cristy305c5dd2012-09-13 00:30:13 +000038749 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000038750 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
38751 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
38752 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
38753 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
38754 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000038755 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy5a3dc992014-12-05 19:50:04 +000038756 "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
cristy430a7312010-01-21 20:44:04 +000038757 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000038758 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
38759 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
38760 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
38761 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
38762 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000038763 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000038764 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000038765 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
38766 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
38767 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000038768 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38769 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
cristy3ed852e2009-09-05 21:47:34 +000038770 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
cristy8d0ff762013-03-10 20:33:28 +000038771 "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
cristy3e049f82013-02-13 13:26:53 +000038772 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
cristy8d0ff762013-03-10 20:33:28 +000038773 "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
cristycf0cbcc2013-02-13 23:32:58 +000038774 "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
38775 "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
38776 "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
38777 "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
cristy3ed852e2009-09-05 21:47:34 +000038778 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
38779 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
38780 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
38781 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
38782 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
38783 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
38784 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
38785 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
38786 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
Cristy540ea6e2016-04-01 12:06:50 -040038787 "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
38788 "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
cristy3ed852e2009-09-05 21:47:34 +000038789 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
38790 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
38791 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000038792 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
38793 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000038794
cristy98dddb52010-11-04 00:30:15 +000038795 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000038796 esac
38797done
38798
38799
38800# If the user did not use the arguments to specify the items to instantiate,
38801# then the envvar interface is used. Set only those that are not.
38802# We use the long form for the default assignment because of an extremely
38803# bizarre bug on SunOS 4.1.3.
38804if $ac_need_defaults; then
38805 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38806 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38807 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38808fi
38809
38810# Have a temporary directory for convenience. Make it in the build tree
38811# simply because there is no reason against having it here, and in addition,
38812# creating and moving files from /tmp can sometimes cause problems.
38813# Hook for its removal unless debugging.
38814# Note that there is a small window in which the directory will not be cleaned:
38815# after its creation but before its name has been assigned to `$tmp'.
38816$debug ||
38817{
cristyda16f162011-02-19 23:52:17 +000038818 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000038819 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000038820 : "${ac_tmp:=$tmp}"
38821 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000038822' 0
cristy8b350f62009-11-15 23:12:43 +000038823 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000038824}
38825# Create a (secure) tmp directory for tmp files.
38826
38827{
38828 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000038829 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000038830} ||
38831{
38832 tmp=./conf$$-$RANDOM
38833 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000038834} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000038835ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000038836
38837# Set up the scripts for CONFIG_FILES section.
38838# No need to generate them if there are no CONFIG_FILES.
38839# This happens for instance with `./config.status config.h'.
38840if test -n "$CONFIG_FILES"; then
38841
38842
cristy8b350f62009-11-15 23:12:43 +000038843ac_cr=`echo X | tr X '\015'`
38844# On cygwin, bash can eat \r inside `` if the user requested igncr.
38845# But we know of no other shell where ac_cr would be empty at this
38846# point, so we can use a bashism as a fallback.
38847if test "x$ac_cr" = x; then
38848 eval ac_cr=\$\'\\r\'
38849fi
cristy3ed852e2009-09-05 21:47:34 +000038850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000038852 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000038853else
38854 ac_cs_awk_cr=$ac_cr
38855fi
38856
cristyda16f162011-02-19 23:52:17 +000038857echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000038858_ACEOF
38859
38860
38861{
38862 echo "cat >conf$$subs.awk <<_ACEOF" &&
38863 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38864 echo "_ACEOF"
38865} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038866 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38867ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000038868ac_delim='%!_!# '
38869for ac_last_try in false false false false false :; do
38870 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000038871 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038872
38873 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38874 if test $ac_delim_n = $ac_delim_num; then
38875 break
38876 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000038877 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038878 else
38879 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38880 fi
38881done
38882rm -f conf$$subs.sh
38883
38884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000038885cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038886_ACEOF
38887sed -n '
38888h
38889s/^/S["/; s/!.*/"]=/
38890p
38891g
38892s/^[^!]*!//
38893:repl
38894t repl
38895s/'"$ac_delim"'$//
38896t delim
38897:nl
38898h
cristycd4c5312009-11-22 01:19:08 +000038899s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038900t more1
38901s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38902p
38903n
38904b repl
38905:more1
38906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38907p
38908g
38909s/.\{148\}//
38910t nl
38911:delim
38912h
cristycd4c5312009-11-22 01:19:08 +000038913s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000038914t more2
38915s/["\\]/\\&/g; s/^/"/; s/$/"/
38916p
38917b
38918:more2
38919s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38920p
38921g
38922s/.\{148\}//
38923t delim
38924' <conf$$subs.awk | sed '
38925/^[^""]/{
38926 N
38927 s/\n//
38928}
38929' >>$CONFIG_STATUS || ac_write_fail=1
38930rm -f conf$$subs.awk
38931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38932_ACAWK
cristyda16f162011-02-19 23:52:17 +000038933cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000038934 for (key in S) S_is_set[key] = 1
38935 FS = ""
38936
38937}
38938{
38939 line = $ 0
38940 nfields = split(line, field, "@")
38941 substed = 0
38942 len = length(field[1])
38943 for (i = 2; i < nfields; i++) {
38944 key = field[i]
38945 keylen = length(key)
38946 if (S_is_set[key]) {
38947 value = S[key]
38948 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38949 len += length(value) + length(field[++i])
38950 substed = 1
38951 } else
38952 len += 1 + keylen
38953 }
38954
38955 print line
38956}
38957
38958_ACAWK
38959_ACEOF
38960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38961if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38962 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38963else
38964 cat
cristyda16f162011-02-19 23:52:17 +000038965fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000038966 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038967_ACEOF
38968
cristy98dddb52010-11-04 00:30:15 +000038969# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38970# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000038971# trailing colons and then remove the whole line if VPATH becomes empty
38972# (actually we leave an empty line to preserve line numbers).
38973if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000038974 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38975h
38976s///
38977s/^/:/
38978s/[ ]*$/:/
38979s/:\$(srcdir):/:/g
38980s/:\${srcdir}:/:/g
38981s/:@srcdir@:/:/g
38982s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000038983s/:*$//
cristy98dddb52010-11-04 00:30:15 +000038984x
38985s/\(=[ ]*\).*/\1/
38986G
38987s/\n//
cristy3ed852e2009-09-05 21:47:34 +000038988s/^[^=]*=[ ]*$//
38989}'
38990fi
38991
38992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38993fi # test -n "$CONFIG_FILES"
38994
38995# Set up the scripts for CONFIG_HEADERS section.
38996# No need to generate them if there are no CONFIG_HEADERS.
38997# This happens for instance with `./config.status Makefile'.
38998if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000038999cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000039000BEGIN {
39001_ACEOF
39002
39003# Transform confdefs.h into an awk script `defines.awk', embedded as
39004# here-document in config.status, that substitutes the proper values into
39005# config.h.in to produce config.h.
39006
39007# Create a delimiter string that does not exist in confdefs.h, to ease
39008# handling of long lines.
39009ac_delim='%!_!# '
39010for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000039011 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
39012 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000039013 break
39014 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000039015 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039016 else
39017 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39018 fi
39019done
39020
39021# For the awk script, D is an array of macro values keyed by name,
39022# likewise P contains macro parameters if any. Preserve backslash
39023# newline sequences.
39024
39025ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39026sed -n '
39027s/.\{148\}/&'"$ac_delim"'/g
39028t rset
39029:rset
39030s/^[ ]*#[ ]*define[ ][ ]*/ /
39031t def
39032d
39033:def
39034s/\\$//
39035t bsnl
39036s/["\\]/\\&/g
39037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
39038D["\1"]=" \3"/p
39039s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
39040d
39041:bsnl
39042s/["\\]/\\&/g
39043s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
39044D["\1"]=" \3\\\\\\n"\\/p
39045t cont
39046s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
39047t cont
39048d
39049:cont
39050n
39051s/.\{148\}/&'"$ac_delim"'/g
39052t clear
39053:clear
39054s/\\$//
39055t bsnlc
39056s/["\\]/\\&/g; s/^/"/; s/$/"/p
39057d
39058:bsnlc
39059s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
39060b cont
39061' <confdefs.h | sed '
39062s/'"$ac_delim"'/"\\\
39063"/g' >>$CONFIG_STATUS || ac_write_fail=1
39064
39065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39066 for (key in D) D_is_set[key] = 1
39067 FS = ""
39068}
39069/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39070 line = \$ 0
39071 split(line, arg, " ")
39072 if (arg[1] == "#") {
39073 defundef = arg[2]
39074 mac1 = arg[3]
39075 } else {
39076 defundef = substr(arg[1], 2)
39077 mac1 = arg[2]
39078 }
39079 split(mac1, mac2, "(") #)
39080 macro = mac2[1]
39081 prefix = substr(line, 1, index(line, defundef) - 1)
39082 if (D_is_set[macro]) {
39083 # Preserve the white space surrounding the "#".
39084 print prefix "define", macro P[macro] D[macro]
39085 next
39086 } else {
39087 # Replace #undef with comments. This is necessary, for example,
39088 # in the case of _POSIX_SOURCE, which is predefined and required
39089 # on some systems where configure will not decide to define it.
39090 if (defundef == "undef") {
39091 print "/*", prefix defundef, macro, "*/"
39092 next
39093 }
39094 }
39095}
39096{ print }
39097_ACAWK
39098_ACEOF
39099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000039100 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039101fi # test -n "$CONFIG_HEADERS"
39102
39103
39104eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39105shift
39106for ac_tag
39107do
39108 case $ac_tag in
39109 :[FHLC]) ac_mode=$ac_tag; continue;;
39110 esac
39111 case $ac_mode$ac_tag in
39112 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000039113 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000039114 :[FH]-) ac_tag=-:-;;
39115 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39116 esac
39117 ac_save_IFS=$IFS
39118 IFS=:
39119 set x $ac_tag
39120 IFS=$ac_save_IFS
39121 shift
39122 ac_file=$1
39123 shift
39124
39125 case $ac_mode in
39126 :L) ac_source=$1;;
39127 :[FH])
39128 ac_file_inputs=
39129 for ac_f
39130 do
39131 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000039132 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000039133 *) # Look for the file first in the build tree, then in the source tree
39134 # (if the path is not absolute). The absolute path cannot be DOS-style,
39135 # because $ac_f cannot contain `:'.
39136 test -f "$ac_f" ||
39137 case $ac_f in
39138 [\\/$]*) false;;
39139 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39140 esac ||
cristy98dddb52010-11-04 00:30:15 +000039141 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000039142 esac
39143 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000039144 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000039145 done
39146
39147 # Let's still pretend it is `configure' which instantiates (i.e., don't
39148 # use $as_me), people would be surprised to read:
39149 # /* config.h. Generated by config.status. */
39150 configure_input='Generated from '`
39151 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39152 `' by configure.'
39153 if test x"$ac_file" != x-; then
39154 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000039155 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000039156$as_echo "$as_me: creating $ac_file" >&6;}
39157 fi
39158 # Neutralize special characters interpreted by sed in replacement strings.
39159 case $configure_input in #(
39160 *\&* | *\|* | *\\* )
39161 ac_sed_conf_input=`$as_echo "$configure_input" |
39162 sed 's/[\\\\&|]/\\\\&/g'`;; #(
39163 *) ac_sed_conf_input=$configure_input;;
39164 esac
39165
39166 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000039167 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000039168 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000039169 esac
39170 ;;
39171 esac
39172
39173 ac_dir=`$as_dirname -- "$ac_file" ||
39174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39175 X"$ac_file" : 'X\(//\)[^/]' \| \
39176 X"$ac_file" : 'X\(//\)$' \| \
39177 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39178$as_echo X"$ac_file" |
39179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39180 s//\1/
39181 q
39182 }
39183 /^X\(\/\/\)[^/].*/{
39184 s//\1/
39185 q
39186 }
39187 /^X\(\/\/\)$/{
39188 s//\1/
39189 q
39190 }
39191 /^X\(\/\).*/{
39192 s//\1/
39193 q
39194 }
39195 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000039196 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000039197 ac_builddir=.
39198
39199case "$ac_dir" in
39200.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39201*)
39202 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39203 # A ".." for each directory in $ac_dir_suffix.
39204 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39205 case $ac_top_builddir_sub in
39206 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39207 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39208 esac ;;
39209esac
39210ac_abs_top_builddir=$ac_pwd
39211ac_abs_builddir=$ac_pwd$ac_dir_suffix
39212# for backward compatibility:
39213ac_top_builddir=$ac_top_build_prefix
39214
39215case $srcdir in
39216 .) # We are building in place.
39217 ac_srcdir=.
39218 ac_top_srcdir=$ac_top_builddir_sub
39219 ac_abs_top_srcdir=$ac_pwd ;;
39220 [\\/]* | ?:[\\/]* ) # Absolute name.
39221 ac_srcdir=$srcdir$ac_dir_suffix;
39222 ac_top_srcdir=$srcdir
39223 ac_abs_top_srcdir=$srcdir ;;
39224 *) # Relative name.
39225 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39226 ac_top_srcdir=$ac_top_build_prefix$srcdir
39227 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39228esac
39229ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39230
39231
39232 case $ac_mode in
39233 :F)
39234 #
39235 # CONFIG_FILE
39236 #
39237
39238 case $INSTALL in
39239 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39240 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39241 esac
cristy73bd4a52010-10-05 11:24:23 +000039242 ac_MKDIR_P=$MKDIR_P
39243 case $MKDIR_P in
39244 [\\/$]* | ?:[\\/]* ) ;;
39245 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39246 esac
cristy3ed852e2009-09-05 21:47:34 +000039247_ACEOF
39248
39249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39250# If the template does not know about datarootdir, expand it.
39251# FIXME: This hack should be removed a few years after 2.60.
39252ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000039253ac_sed_dataroot='
39254/datarootdir/ {
39255 p
39256 q
39257}
39258/@datadir@/p
39259/@docdir@/p
39260/@infodir@/p
39261/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000039262/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000039263case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39264*datarootdir*) ac_datarootdir_seen=yes;;
39265*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000039266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000039267$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39268_ACEOF
39269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39270 ac_datarootdir_hack='
39271 s&@datadir@&$datadir&g
39272 s&@docdir@&$docdir&g
39273 s&@infodir@&$infodir&g
39274 s&@localedir@&$localedir&g
39275 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000039276 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000039277esac
39278_ACEOF
39279
39280# Neutralize VPATH when `$srcdir' = `.'.
39281# Shell code in configure.ac might set extrasub.
39282# FIXME: do we really want to maintain this feature?
39283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39284ac_sed_extra="$ac_vpsub
39285$extrasub
39286_ACEOF
39287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39288:t
39289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39290s|@configure_input@|$ac_sed_conf_input|;t t
39291s&@top_builddir@&$ac_top_builddir_sub&;t t
39292s&@top_build_prefix@&$ac_top_build_prefix&;t t
39293s&@srcdir@&$ac_srcdir&;t t
39294s&@abs_srcdir@&$ac_abs_srcdir&;t t
39295s&@top_srcdir@&$ac_top_srcdir&;t t
39296s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39297s&@builddir@&$ac_builddir&;t t
39298s&@abs_builddir@&$ac_abs_builddir&;t t
39299s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39300s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000039301s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000039302$ac_datarootdir_hack
39303"
cristyda16f162011-02-19 23:52:17 +000039304eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
39305 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039306
39307test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000039308 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39309 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
39310 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000039311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000039312which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000039313$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000039314which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000039315
cristyda16f162011-02-19 23:52:17 +000039316 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000039317 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000039318 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39319 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000039320 esac \
cristy98dddb52010-11-04 00:30:15 +000039321 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039322 ;;
39323 :H)
39324 #
39325 # CONFIG_HEADER
39326 #
39327 if test x"$ac_file" != x-; then
39328 {
39329 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000039330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39331 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000039332 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000039333 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000039334 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000039335$as_echo "$as_me: $ac_file is unchanged" >&6;}
39336 else
39337 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000039338 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000039339 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039340 fi
39341 else
39342 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000039343 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000039344 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000039345 fi
cristy73bd4a52010-10-05 11:24:23 +000039346# Compute "$ac_file"'s index in $config_headers.
39347_am_arg="$ac_file"
39348_am_stamp_count=1
39349for _am_header in $config_headers :; do
39350 case $_am_header in
39351 $_am_arg | $_am_arg:* )
39352 break ;;
39353 * )
39354 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39355 esac
39356done
39357echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39358$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39359 X"$_am_arg" : 'X\(//\)[^/]' \| \
39360 X"$_am_arg" : 'X\(//\)$' \| \
39361 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39362$as_echo X"$_am_arg" |
39363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39364 s//\1/
39365 q
39366 }
39367 /^X\(\/\/\)[^/].*/{
39368 s//\1/
39369 q
39370 }
39371 /^X\(\/\/\)$/{
39372 s//\1/
39373 q
39374 }
39375 /^X\(\/\).*/{
39376 s//\1/
39377 q
39378 }
39379 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000039380 ;;
39381
cristy8b350f62009-11-15 23:12:43 +000039382 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000039383$as_echo "$as_me: executing $ac_file commands" >&6;}
39384 ;;
39385 esac
39386
39387
39388 case $ac_file$ac_mode in
cristy01ff9f32012-12-01 18:15:29 +000039389 "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
cristy73bd4a52010-10-05 11:24:23 +000039390ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
39391ac_prefix_conf_PKG=`echo MagickCore`
39392ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
39393ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
39394ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
39395if test ".$ac_prefix_conf_INP" = "."; then
39396 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
39397 case "$ac_file" in
39398 *.h) ac_prefix_conf_INP=$ac_file ;;
39399 *)
39400 esac
39401 test ".$ac_prefix_conf_INP" != "." && break
39402 done
39403fi
39404if test ".$ac_prefix_conf_INP" = "."; then
39405 case "$ac_prefix_conf_OUT" in
39406 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
39407 ;;
39408 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
39409 ;;
39410 *) ac_prefix_conf_INP=config.h
39411 ;;
39412 esac
39413fi
39414if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000039415 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000039416else
39417 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
39418 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
39419 fi fi
39420 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
39421$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
39422 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000039423 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
39424 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
39425 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
39426 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
39427 $as_echo "#endif/" >> conftest.prefix
39428 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
39429 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
39430 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000039431 # now executing _script on _DEF input to create _OUT output file
39432 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
39433 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
39434 echo ' ' >>$tmp/pconfig.h
39435 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
39436
39437 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
39438 echo ' ' >>$tmp/pconfig.h
39439 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
39440 echo "#endif" >>$tmp/pconfig.h
39441 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
39443$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
39444 else
39445 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
39446$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39447 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
39448 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
39449 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
39450$as_echo X"$ac_prefix_conf_OUT" |
39451 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39452 s//\1/
39453 q
39454 }
39455 /^X\(\/\/\)[^/].*/{
39456 s//\1/
39457 q
39458 }
39459 /^X\(\/\/\)$/{
39460 s//\1/
39461 q
39462 }
39463 /^X\(\/\).*/{
39464 s//\1/
39465 q
39466 }
39467 s/.*/./; q'`
39468 as_dir="$ac_dir"; as_fn_mkdir_p
39469 rm -f "$ac_prefix_conf_OUT"
39470 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
39471 fi
cristy73bd4a52010-10-05 11:24:23 +000039472 else
cristy98dddb52010-11-04 00:30:15 +000039473 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 +000039474 fi
39475 rm -f conftest.*
39476fi
39477 ;;
39478 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
cristy58d34aa2013-01-24 15:11:54 +000039479 # Older Autoconf quotes --file arguments for eval, but not when files
cristy73bd4a52010-10-05 11:24:23 +000039480 # are listed without --file. Let's play safe and only enable the eval
39481 # if we detect the quoting.
39482 case $CONFIG_FILES in
39483 *\'*) eval set x "$CONFIG_FILES" ;;
39484 *) set x $CONFIG_FILES ;;
39485 esac
39486 shift
39487 for mf
39488 do
39489 # Strip MF so we end up with the name of the file.
39490 mf=`echo "$mf" | sed -e 's/:.*$//'`
39491 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000039492 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000039493 # some people rename them; so instead we look at the file content.
39494 # Grep'ing the first line is not enough: some people post-process
39495 # each Makefile.in and add a new line on top of each file to say so.
39496 # Grep'ing the whole file is not good either: AIX grep has a line
39497 # limit of 2048, but all sed's we know have understand at least 4000.
39498 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39499 dirpart=`$as_dirname -- "$mf" ||
39500$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39501 X"$mf" : 'X\(//\)[^/]' \| \
39502 X"$mf" : 'X\(//\)$' \| \
39503 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39504$as_echo X"$mf" |
39505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39506 s//\1/
39507 q
39508 }
39509 /^X\(\/\/\)[^/].*/{
39510 s//\1/
39511 q
39512 }
39513 /^X\(\/\/\)$/{
39514 s//\1/
39515 q
39516 }
39517 /^X\(\/\).*/{
39518 s//\1/
39519 q
39520 }
39521 s/.*/./; q'`
39522 else
39523 continue
39524 fi
39525 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000039526 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000039527 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39528 test -z "$DEPDIR" && continue
39529 am__include=`sed -n 's/^am__include = //p' < "$mf"`
cristybced8142013-05-31 01:23:57 +000039530 test -z "$am__include" && continue
cristy73bd4a52010-10-05 11:24:23 +000039531 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000039532 # Find all dependency output files, they are included files with
39533 # $(DEPDIR) in their names. We invoke sed twice because it is the
39534 # simplest approach to changing $(DEPDIR) to its actual value in the
39535 # expansion.
39536 for file in `sed -n "
39537 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000039538 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000039539 # Make sure the directory exists.
39540 test -f "$dirpart/$file" && continue
39541 fdir=`$as_dirname -- "$file" ||
39542$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39543 X"$file" : 'X\(//\)[^/]' \| \
39544 X"$file" : 'X\(//\)$' \| \
39545 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39546$as_echo X"$file" |
39547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39548 s//\1/
39549 q
39550 }
39551 /^X\(\/\/\)[^/].*/{
39552 s//\1/
39553 q
39554 }
39555 /^X\(\/\/\)$/{
39556 s//\1/
39557 q
39558 }
39559 /^X\(\/\).*/{
39560 s//\1/
39561 q
39562 }
39563 s/.*/./; q'`
39564 as_dir=$dirpart/$fdir; as_fn_mkdir_p
39565 # echo "creating $dirpart/$file"
39566 echo '# dummy' > "$dirpart/$file"
39567 done
39568 done
39569}
39570 ;;
39571 "libtool":C)
39572
Cristy15f22012015-11-14 17:51:30 -050039573 # See if we are running on zsh, and set the options that allow our
cristy73bd4a52010-10-05 11:24:23 +000039574 # commands through without removal of \ escapes.
Cristy15f22012015-11-14 17:51:30 -050039575 if test -n "${ZSH_VERSION+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000039576 setopt NO_GLOB_SUBST
39577 fi
39578
Cristy15f22012015-11-14 17:51:30 -050039579 cfgfile=${ofile}T
cristy73bd4a52010-10-05 11:24:23 +000039580 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39581 $RM "$cfgfile"
39582
39583 cat <<_LT_EOF >> "$cfgfile"
39584#! $SHELL
Cristy15f22012015-11-14 17:51:30 -050039585# Generated automatically by $as_me ($PACKAGE) $VERSION
cristy73bd4a52010-10-05 11:24:23 +000039586# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39587# NOTE: Changes made to this file will be lost: look at ltmain.sh.
Cristy15f22012015-11-14 17:51:30 -050039588
39589# Provide generalized library-building support services.
39590# Written by Gordon Matzigkeit, 1996
39591
39592# Copyright (C) 2014 Free Software Foundation, Inc.
39593# This is free software; see the source for copying conditions. There is NO
39594# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39595
39596# GNU Libtool is free software; you can redistribute it and/or modify
39597# it under the terms of the GNU General Public License as published by
39598# the Free Software Foundation; either version 2 of of the License, or
39599# (at your option) any later version.
cristy73bd4a52010-10-05 11:24:23 +000039600#
Cristy15f22012015-11-14 17:51:30 -050039601# As a special exception to the GNU General Public License, if you
39602# distribute this file as part of a program or library that is built
39603# using GNU Libtool, you may include this file under the same
39604# distribution terms that you use for the rest of that program.
cristy73bd4a52010-10-05 11:24:23 +000039605#
Cristy15f22012015-11-14 17:51:30 -050039606# GNU Libtool is distributed in the hope that it will be useful, but
39607# WITHOUT ANY WARRANTY; without even the implied warranty of
cristy73bd4a52010-10-05 11:24:23 +000039608# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39609# GNU General Public License for more details.
39610#
39611# You should have received a copy of the GNU General Public License
Cristy15f22012015-11-14 17:51:30 -050039612# along with this program. If not, see <http://www.gnu.org/licenses/>.
cristy73bd4a52010-10-05 11:24:23 +000039613
39614
39615# The names of the tagged configurations supported by this script.
Cristy15f22012015-11-14 17:51:30 -050039616available_tags='CXX '
39617
39618# Configured defaults for sys_lib_dlsearch_path munging.
39619: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
cristy73bd4a52010-10-05 11:24:23 +000039620
39621# ### BEGIN LIBTOOL CONFIG
39622
39623# A sed program that does not truncate output.
39624SED=$lt_SED
39625
39626# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39627Xsed="\$SED -e 1s/^X//"
39628
39629# A grep program that handles long lines.
39630GREP=$lt_GREP
39631
39632# An ERE matcher.
39633EGREP=$lt_EGREP
39634
39635# A literal string matcher.
39636FGREP=$lt_FGREP
39637
cristy0c60a692010-11-04 01:09:47 +000039638# Shell to use when invoking shell scripts.
39639SHELL=$lt_SHELL
39640
39641# An echo program that protects backslashes.
39642ECHO=$lt_ECHO
39643
cristy73bd4a52010-10-05 11:24:23 +000039644# Which release of libtool.m4 was used?
39645macro_version=$macro_version
39646macro_revision=$macro_revision
39647
39648# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000039649AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000039650
39651# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000039652DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000039653
39654# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000039655OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000039656
39657# Whether or not to build shared libraries.
39658build_libtool_libs=$enable_shared
39659
39660# Whether or not to build static libraries.
39661build_old_libs=$enable_static
39662
39663# What type of objects to build.
39664pic_mode=$pic_mode
39665
39666# Whether or not to optimize for fast installation.
39667fast_install=$enable_fast_install
39668
Cristy15f22012015-11-14 17:51:30 -050039669# Shared archive member basename,for filename based shared library versioning on AIX.
39670shared_archive_member_spec=$shared_archive_member_spec
39671
cristy99bd5232011-12-07 14:38:20 +000039672# The PATH separator for the build system.
39673PATH_SEPARATOR=$lt_PATH_SEPARATOR
39674
cristy73bd4a52010-10-05 11:24:23 +000039675# The host system.
39676host_alias=$host_alias
39677host=$host
39678host_os=$host_os
39679
39680# The build system.
39681build_alias=$build_alias
39682build=$build
39683build_os=$build_os
39684
39685# A BSD- or MS-compatible name lister.
39686NM=$lt_NM
39687
39688# Whether we need soft or hard links.
39689LN_S=$lt_LN_S
39690
39691# What is the maximum length of a command?
39692max_cmd_len=$max_cmd_len
39693
39694# Object file suffix (normally "o").
39695objext=$ac_objext
39696
39697# Executable file suffix (normally "").
39698exeext=$exeext
39699
39700# whether the shell understands "unset".
39701lt_unset=$lt_unset
39702
39703# turn spaces into newlines.
39704SP2NL=$lt_lt_SP2NL
39705
39706# turn newlines into spaces.
39707NL2SP=$lt_lt_NL2SP
39708
cristyda16f162011-02-19 23:52:17 +000039709# convert \$build file names to \$host format.
39710to_host_file_cmd=$lt_cv_to_host_file_cmd
39711
39712# convert \$build files to toolchain format.
39713to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39714
cristy73bd4a52010-10-05 11:24:23 +000039715# Method to check whether dependent libraries are shared objects.
39716deplibs_check_method=$lt_deplibs_check_method
39717
cristyda16f162011-02-19 23:52:17 +000039718# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000039719file_magic_cmd=$lt_file_magic_cmd
39720
cristyda16f162011-02-19 23:52:17 +000039721# How to find potential files when deplibs_check_method = "file_magic".
39722file_magic_glob=$lt_file_magic_glob
39723
39724# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39725want_nocaseglob=$lt_want_nocaseglob
39726
39727# Command to associate shared and link libraries.
39728sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39729
cristy73bd4a52010-10-05 11:24:23 +000039730# The archiver.
39731AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000039732
39733# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000039734AR_FLAGS=$lt_AR_FLAGS
39735
cristyda16f162011-02-19 23:52:17 +000039736# How to feed a file listing to the archiver.
39737archiver_list_spec=$lt_archiver_list_spec
39738
cristy73bd4a52010-10-05 11:24:23 +000039739# A symbol stripping program.
39740STRIP=$lt_STRIP
39741
39742# Commands used to install an old-style archive.
39743RANLIB=$lt_RANLIB
39744old_postinstall_cmds=$lt_old_postinstall_cmds
39745old_postuninstall_cmds=$lt_old_postuninstall_cmds
39746
cristy0c60a692010-11-04 01:09:47 +000039747# Whether to use a lock for old archive extraction.
39748lock_old_archive_extraction=$lock_old_archive_extraction
39749
cristy73bd4a52010-10-05 11:24:23 +000039750# A C compiler.
39751LTCC=$lt_CC
39752
39753# LTCC compiler flags.
39754LTCFLAGS=$lt_CFLAGS
39755
39756# Take the output of nm and produce a listing of raw symbols and C names.
39757global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39758
39759# Transform the output of nm in a proper C declaration.
39760global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39761
Cristy15f22012015-11-14 17:51:30 -050039762# Transform the output of nm into a list of symbols to manually relocate.
39763global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39764
cristy73bd4a52010-10-05 11:24:23 +000039765# Transform the output of nm in a C name address pair.
39766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39767
39768# Transform the output of nm in a C name address pair when lib prefix is needed.
39769global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39770
Cristy15f22012015-11-14 17:51:30 -050039771# The name lister interface.
39772nm_interface=$lt_lt_cv_nm_interface
39773
cristyda16f162011-02-19 23:52:17 +000039774# Specify filename containing input files for \$NM.
39775nm_file_list_spec=$lt_nm_file_list_spec
39776
Cristy15f22012015-11-14 17:51:30 -050039777# The root where to search for dependent libraries,and where our libraries should be installed.
cristyda16f162011-02-19 23:52:17 +000039778lt_sysroot=$lt_sysroot
39779
Cristy15f22012015-11-14 17:51:30 -050039780# Command to truncate a binary pipe.
39781lt_truncate_bin=$lt_lt_cv_truncate_bin
39782
cristy73bd4a52010-10-05 11:24:23 +000039783# The name of the directory that contains temporary libtool files.
39784objdir=$objdir
39785
cristy73bd4a52010-10-05 11:24:23 +000039786# Used to examine libraries when file_magic_cmd begins with "file".
39787MAGIC_CMD=$MAGIC_CMD
39788
39789# Must we lock files when doing compilation?
39790need_locks=$lt_need_locks
39791
cristyda16f162011-02-19 23:52:17 +000039792# Manifest tool.
39793MANIFEST_TOOL=$lt_MANIFEST_TOOL
39794
cristy73bd4a52010-10-05 11:24:23 +000039795# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39796DSYMUTIL=$lt_DSYMUTIL
39797
39798# Tool to change global to local symbols on Mac OS X.
39799NMEDIT=$lt_NMEDIT
39800
39801# Tool to manipulate fat objects and archives on Mac OS X.
39802LIPO=$lt_LIPO
39803
39804# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39805OTOOL=$lt_OTOOL
39806
39807# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39808OTOOL64=$lt_OTOOL64
39809
39810# Old archive suffix (normally "a").
39811libext=$libext
39812
39813# Shared library suffix (normally ".so").
39814shrext_cmds=$lt_shrext_cmds
39815
39816# The commands to extract the exported symbol list from a shared archive.
39817extract_expsyms_cmds=$lt_extract_expsyms_cmds
39818
39819# Variables whose values should be saved in libtool wrapper scripts and
39820# restored at link time.
39821variables_saved_for_relink=$lt_variables_saved_for_relink
39822
39823# Do we need the "lib" prefix for modules?
39824need_lib_prefix=$need_lib_prefix
39825
39826# Do we need a version for libraries?
39827need_version=$need_version
39828
39829# Library versioning type.
39830version_type=$version_type
39831
39832# Shared library runtime path variable.
39833runpath_var=$runpath_var
39834
39835# Shared library path variable.
39836shlibpath_var=$shlibpath_var
39837
39838# Is shlibpath searched before the hard-coded library search path?
39839shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39840
39841# Format of library name prefix.
39842libname_spec=$lt_libname_spec
39843
39844# List of archive names. First name is the real one, the rest are links.
39845# The last name is the one that the linker finds with -lNAME
39846library_names_spec=$lt_library_names_spec
39847
39848# The coded name of the library, if different from the real name.
39849soname_spec=$lt_soname_spec
39850
cristy0c60a692010-11-04 01:09:47 +000039851# Permission mode override for installation of shared libraries.
39852install_override_mode=$lt_install_override_mode
39853
cristy73bd4a52010-10-05 11:24:23 +000039854# Command to use after installation of a shared archive.
39855postinstall_cmds=$lt_postinstall_cmds
39856
39857# Command to use after uninstallation of a shared archive.
39858postuninstall_cmds=$lt_postuninstall_cmds
39859
39860# Commands used to finish a libtool library installation in a directory.
39861finish_cmds=$lt_finish_cmds
39862
39863# As "finish_cmds", except a single script fragment to be evaled but
39864# not shown.
39865finish_eval=$lt_finish_eval
39866
39867# Whether we should hardcode library paths into libraries.
39868hardcode_into_libs=$hardcode_into_libs
39869
39870# Compile-time system search path for libraries.
39871sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39872
Cristy15f22012015-11-14 17:51:30 -050039873# Detected run-time system search path for libraries.
39874sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39875
39876# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39877configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
cristy73bd4a52010-10-05 11:24:23 +000039878
39879# Whether dlopen is supported.
39880dlopen_support=$enable_dlopen
39881
39882# Whether dlopen of programs is supported.
39883dlopen_self=$enable_dlopen_self
39884
39885# Whether dlopen of statically linked programs is supported.
39886dlopen_self_static=$enable_dlopen_self_static
39887
39888# Commands to strip libraries.
39889old_striplib=$lt_old_striplib
39890striplib=$lt_striplib
39891
39892
39893# The linker used to build libraries.
39894LD=$lt_LD
39895
cristy0c60a692010-11-04 01:09:47 +000039896# How to create reloadable object files.
39897reload_flag=$lt_reload_flag
39898reload_cmds=$lt_reload_cmds
39899
cristy73bd4a52010-10-05 11:24:23 +000039900# Commands used to build an old-style archive.
39901old_archive_cmds=$lt_old_archive_cmds
39902
39903# A language specific compiler.
39904CC=$lt_compiler
39905
39906# Is the compiler the GNU compiler?
39907with_gcc=$GCC
39908
39909# Compiler flag to turn off builtin functions.
39910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39911
cristy73bd4a52010-10-05 11:24:23 +000039912# Additional compiler flags for building library objects.
39913pic_flag=$lt_lt_prog_compiler_pic
39914
cristyda16f162011-02-19 23:52:17 +000039915# How to pass a linker flag through the compiler.
39916wl=$lt_lt_prog_compiler_wl
39917
cristy73bd4a52010-10-05 11:24:23 +000039918# Compiler flag to prevent dynamic linking.
39919link_static_flag=$lt_lt_prog_compiler_static
39920
39921# Does compiler simultaneously support -c and -o options?
39922compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39923
39924# Whether or not to add -lc for building shared libraries.
39925build_libtool_need_lc=$archive_cmds_need_lc
39926
39927# Whether or not to disallow shared libs when runtime libs are static.
39928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39929
39930# Compiler flag to allow reflexive dlopens.
39931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39932
39933# Compiler flag to generate shared objects directly from archives.
39934whole_archive_flag_spec=$lt_whole_archive_flag_spec
39935
39936# Whether the compiler copes with passing no objects directly.
39937compiler_needs_object=$lt_compiler_needs_object
39938
39939# Create an old-style archive from a shared archive.
39940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39941
39942# Create a temporary old-style archive to link instead of a shared archive.
39943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39944
39945# Commands used to build a shared archive.
39946archive_cmds=$lt_archive_cmds
39947archive_expsym_cmds=$lt_archive_expsym_cmds
39948
39949# Commands used to build a loadable module if different from building
39950# a shared archive.
39951module_cmds=$lt_module_cmds
39952module_expsym_cmds=$lt_module_expsym_cmds
39953
39954# Whether we are building with GNU ld or not.
39955with_gnu_ld=$lt_with_gnu_ld
39956
39957# Flag that allows shared libraries with undefined symbols to be built.
39958allow_undefined_flag=$lt_allow_undefined_flag
39959
39960# Flag that enforces no undefined symbols.
39961no_undefined_flag=$lt_no_undefined_flag
39962
39963# Flag to hardcode \$libdir into a binary during linking.
39964# This must work even if \$libdir does not exist
39965hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39966
cristy73bd4a52010-10-05 11:24:23 +000039967# Whether we need a single "-rpath" flag with a separated argument.
39968hardcode_libdir_separator=$lt_hardcode_libdir_separator
39969
Cristy15f22012015-11-14 17:51:30 -050039970# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000039971# DIR into the resulting binary.
39972hardcode_direct=$hardcode_direct
39973
Cristy15f22012015-11-14 17:51:30 -050039974# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000039975# DIR into the resulting binary and the resulting library dependency is
Cristy15f22012015-11-14 17:51:30 -050039976# "absolute",i.e impossible to change by setting \$shlibpath_var if the
cristy73bd4a52010-10-05 11:24:23 +000039977# library is relocated.
39978hardcode_direct_absolute=$hardcode_direct_absolute
39979
39980# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39981# into the resulting binary.
39982hardcode_minus_L=$hardcode_minus_L
39983
39984# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39985# into the resulting binary.
39986hardcode_shlibpath_var=$hardcode_shlibpath_var
39987
39988# Set to "yes" if building a shared library automatically hardcodes DIR
39989# into the library and all subsequent libraries and executables linked
39990# against it.
39991hardcode_automatic=$hardcode_automatic
39992
39993# Set to yes if linker adds runtime paths of dependent libraries
39994# to runtime path list.
39995inherit_rpath=$inherit_rpath
39996
39997# Whether libtool must link a program against all its dependency libraries.
39998link_all_deplibs=$link_all_deplibs
39999
cristy73bd4a52010-10-05 11:24:23 +000040000# Set to "yes" if exported symbols are required.
40001always_export_symbols=$always_export_symbols
40002
40003# The commands to list exported symbols.
40004export_symbols_cmds=$lt_export_symbols_cmds
40005
40006# Symbols that should not be listed in the preloaded symbols.
40007exclude_expsyms=$lt_exclude_expsyms
40008
40009# Symbols that must always be exported.
40010include_expsyms=$lt_include_expsyms
40011
40012# Commands necessary for linking programs (against libraries) with templates.
40013prelink_cmds=$lt_prelink_cmds
40014
cristyda16f162011-02-19 23:52:17 +000040015# Commands necessary for finishing linking programs.
40016postlink_cmds=$lt_postlink_cmds
40017
cristy73bd4a52010-10-05 11:24:23 +000040018# Specify filename containing input files.
40019file_list_spec=$lt_file_list_spec
40020
40021# How to hardcode a shared library path into an executable.
40022hardcode_action=$hardcode_action
40023
40024# The directories searched by this compiler when creating a shared library.
40025compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
40026
40027# Dependencies to place before and after the objects being linked to
40028# create a shared library.
40029predep_objects=$lt_predep_objects
40030postdep_objects=$lt_postdep_objects
40031predeps=$lt_predeps
40032postdeps=$lt_postdeps
40033
40034# The library search path used internally by the compiler when linking
40035# a shared library.
40036compiler_lib_search_path=$lt_compiler_lib_search_path
40037
40038# ### END LIBTOOL CONFIG
40039
40040_LT_EOF
40041
Cristy15f22012015-11-14 17:51:30 -050040042 cat <<'_LT_EOF' >> "$cfgfile"
40043
40044# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
40045
40046# func_munge_path_list VARIABLE PATH
40047# -----------------------------------
40048# VARIABLE is name of variable containing _space_ separated list of
40049# directories to be munged by the contents of PATH, which is string
40050# having a format:
40051# "DIR[:DIR]:"
40052# string "DIR[ DIR]" will be prepended to VARIABLE
40053# ":DIR[:DIR]"
40054# string "DIR[ DIR]" will be appended to VARIABLE
40055# "DIRP[:DIRP]::[DIRA:]DIRA"
40056# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
40057# "DIRA[ DIRA]" will be appended to VARIABLE
40058# "DIR[:DIR]"
40059# VARIABLE will be replaced by "DIR[ DIR]"
40060func_munge_path_list ()
40061{
40062 case x$2 in
40063 x)
40064 ;;
40065 *:)
40066 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
40067 ;;
40068 x:*)
40069 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
40070 ;;
40071 *::*)
40072 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
40073 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
40074 ;;
40075 *)
40076 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
40077 ;;
40078 esac
40079}
40080
40081
40082# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
40083func_cc_basename ()
40084{
40085 for cc_temp in $*""; do
40086 case $cc_temp in
40087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40089 \-*) ;;
40090 *) break;;
40091 esac
40092 done
40093 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
40094}
40095
40096
40097# ### END FUNCTIONS SHARED WITH CONFIGURE
40098
40099_LT_EOF
40100
cristy73bd4a52010-10-05 11:24:23 +000040101 case $host_os in
40102 aix3*)
40103 cat <<\_LT_EOF >> "$cfgfile"
40104# AIX sometimes has problems with the GCC collect2 program. For some
40105# reason, if we set the COLLECT_NAMES environment variable, the problems
40106# vanish in a puff of smoke.
Cristy15f22012015-11-14 17:51:30 -050040107if test set != "${COLLECT_NAMES+set}"; then
cristy73bd4a52010-10-05 11:24:23 +000040108 COLLECT_NAMES=
40109 export COLLECT_NAMES
40110fi
40111_LT_EOF
40112 ;;
40113 esac
40114
40115
Cristy15f22012015-11-14 17:51:30 -050040116ltmain=$ac_aux_dir/ltmain.sh
cristy73bd4a52010-10-05 11:24:23 +000040117
40118
40119 # We use sed instead of cat because bash on DJGPP gets confused if
40120 # if finds mixed CR/LF and LF-only lines. Since sed operates in
40121 # text mode, it properly converts lines to CR/LF. This bash problem
40122 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000040123 sed '$q' "$ltmain" >> "$cfgfile" \
40124 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000040125
cristyda16f162011-02-19 23:52:17 +000040126 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000040127 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40128 chmod +x "$ofile"
40129
40130
40131 cat <<_LT_EOF >> "$ofile"
40132
40133# ### BEGIN LIBTOOL TAG CONFIG: CXX
40134
40135# The linker used to build libraries.
40136LD=$lt_LD_CXX
40137
cristy0c60a692010-11-04 01:09:47 +000040138# How to create reloadable object files.
40139reload_flag=$lt_reload_flag_CXX
40140reload_cmds=$lt_reload_cmds_CXX
40141
cristy73bd4a52010-10-05 11:24:23 +000040142# Commands used to build an old-style archive.
40143old_archive_cmds=$lt_old_archive_cmds_CXX
40144
40145# A language specific compiler.
40146CC=$lt_compiler_CXX
40147
40148# Is the compiler the GNU compiler?
40149with_gcc=$GCC_CXX
40150
40151# Compiler flag to turn off builtin functions.
40152no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
40153
cristy73bd4a52010-10-05 11:24:23 +000040154# Additional compiler flags for building library objects.
40155pic_flag=$lt_lt_prog_compiler_pic_CXX
40156
cristyda16f162011-02-19 23:52:17 +000040157# How to pass a linker flag through the compiler.
40158wl=$lt_lt_prog_compiler_wl_CXX
40159
cristy73bd4a52010-10-05 11:24:23 +000040160# Compiler flag to prevent dynamic linking.
40161link_static_flag=$lt_lt_prog_compiler_static_CXX
40162
40163# Does compiler simultaneously support -c and -o options?
40164compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
40165
40166# Whether or not to add -lc for building shared libraries.
40167build_libtool_need_lc=$archive_cmds_need_lc_CXX
40168
40169# Whether or not to disallow shared libs when runtime libs are static.
40170allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
40171
40172# Compiler flag to allow reflexive dlopens.
40173export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
40174
40175# Compiler flag to generate shared objects directly from archives.
40176whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
40177
40178# Whether the compiler copes with passing no objects directly.
40179compiler_needs_object=$lt_compiler_needs_object_CXX
40180
40181# Create an old-style archive from a shared archive.
40182old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
40183
40184# Create a temporary old-style archive to link instead of a shared archive.
40185old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
40186
40187# Commands used to build a shared archive.
40188archive_cmds=$lt_archive_cmds_CXX
40189archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
40190
40191# Commands used to build a loadable module if different from building
40192# a shared archive.
40193module_cmds=$lt_module_cmds_CXX
40194module_expsym_cmds=$lt_module_expsym_cmds_CXX
40195
40196# Whether we are building with GNU ld or not.
40197with_gnu_ld=$lt_with_gnu_ld_CXX
40198
40199# Flag that allows shared libraries with undefined symbols to be built.
40200allow_undefined_flag=$lt_allow_undefined_flag_CXX
40201
40202# Flag that enforces no undefined symbols.
40203no_undefined_flag=$lt_no_undefined_flag_CXX
40204
40205# Flag to hardcode \$libdir into a binary during linking.
40206# This must work even if \$libdir does not exist
40207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
40208
cristy73bd4a52010-10-05 11:24:23 +000040209# Whether we need a single "-rpath" flag with a separated argument.
40210hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
40211
Cristy15f22012015-11-14 17:51:30 -050040212# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000040213# DIR into the resulting binary.
40214hardcode_direct=$hardcode_direct_CXX
40215
Cristy15f22012015-11-14 17:51:30 -050040216# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
cristy73bd4a52010-10-05 11:24:23 +000040217# DIR into the resulting binary and the resulting library dependency is
Cristy15f22012015-11-14 17:51:30 -050040218# "absolute",i.e impossible to change by setting \$shlibpath_var if the
cristy73bd4a52010-10-05 11:24:23 +000040219# library is relocated.
40220hardcode_direct_absolute=$hardcode_direct_absolute_CXX
40221
40222# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40223# into the resulting binary.
40224hardcode_minus_L=$hardcode_minus_L_CXX
40225
40226# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40227# into the resulting binary.
40228hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
40229
40230# Set to "yes" if building a shared library automatically hardcodes DIR
40231# into the library and all subsequent libraries and executables linked
40232# against it.
40233hardcode_automatic=$hardcode_automatic_CXX
40234
40235# Set to yes if linker adds runtime paths of dependent libraries
40236# to runtime path list.
40237inherit_rpath=$inherit_rpath_CXX
40238
40239# Whether libtool must link a program against all its dependency libraries.
40240link_all_deplibs=$link_all_deplibs_CXX
40241
cristy73bd4a52010-10-05 11:24:23 +000040242# Set to "yes" if exported symbols are required.
40243always_export_symbols=$always_export_symbols_CXX
40244
40245# The commands to list exported symbols.
40246export_symbols_cmds=$lt_export_symbols_cmds_CXX
40247
40248# Symbols that should not be listed in the preloaded symbols.
40249exclude_expsyms=$lt_exclude_expsyms_CXX
40250
40251# Symbols that must always be exported.
40252include_expsyms=$lt_include_expsyms_CXX
40253
40254# Commands necessary for linking programs (against libraries) with templates.
40255prelink_cmds=$lt_prelink_cmds_CXX
40256
cristyda16f162011-02-19 23:52:17 +000040257# Commands necessary for finishing linking programs.
40258postlink_cmds=$lt_postlink_cmds_CXX
40259
cristy73bd4a52010-10-05 11:24:23 +000040260# Specify filename containing input files.
40261file_list_spec=$lt_file_list_spec_CXX
40262
40263# How to hardcode a shared library path into an executable.
40264hardcode_action=$hardcode_action_CXX
40265
40266# The directories searched by this compiler when creating a shared library.
40267compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
40268
40269# Dependencies to place before and after the objects being linked to
40270# create a shared library.
40271predep_objects=$lt_predep_objects_CXX
40272postdep_objects=$lt_postdep_objects_CXX
40273predeps=$lt_predeps_CXX
40274postdeps=$lt_postdeps_CXX
40275
40276# The library search path used internally by the compiler when linking
40277# a shared library.
40278compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
40279
40280# ### END LIBTOOL TAG CONFIG: CXX
40281_LT_EOF
40282
40283 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000040284 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000040285 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000040286 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000040287 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
40288 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
40289
40290 esac
40291done # for ac_tag
40292
40293
cristy8b350f62009-11-15 23:12:43 +000040294as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000040295_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000040296ac_clean_files=$ac_clean_files_save
40297
40298test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000040299 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000040300
40301
40302# configure is writing to config.log, and then calls config.status.
40303# config.status does its own redirection, appending to config.log.
40304# Unfortunately, on DOS this fails, as config.log is still kept open
40305# by configure, so config.status won't be able to write to it; its
40306# output is simply discarded. So we exec the FD to /dev/null,
40307# effectively closing config.log, so it can be properly (re)opened and
40308# appended to by config.status. When coming back to configure, we
40309# need to make the FD available again.
40310if test "$no_create" != yes; then
40311 ac_cs_success=:
40312 ac_config_status_args=
40313 test "$silent" = yes &&
40314 ac_config_status_args="$ac_config_status_args --quiet"
40315 exec 5>/dev/null
40316 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40317 exec 5>>config.log
40318 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40319 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000040320 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000040321fi
40322if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000040323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000040324$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40325fi
40326
40327
cristy9af1cbf2014-12-28 22:03:09 +000040328# ==============================================================================
40329# ImageMagick Configuration
40330# ==============================================================================
40331{ $as_echo "$as_me:${as_lineno-$LINENO}:
40332==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000040333ImageMagick is configured as follows. Please verify that this configuration
40334matches your expectations.
40335
cristy9af1cbf2014-12-28 22:03:09 +000040336 Host system type: $host
40337 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000040338
Cristy15f22012015-11-14 17:51:30 -050040339 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000040340 ------------------------------------------------------------------------------
40341 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
40342 Static libraries --enable-static=$enable_static $libtool_build_static_libs
40343 Module support --with-modules=$build_modules $build_modules
40344 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
40345 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
40346 High Dynamic Range Imagery
40347 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000040348
Cristy15f22012015-11-14 17:51:30 -050040349 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000040350
cristy9af1cbf2014-12-28 22:03:09 +000040351 Delegate Library Configuration:
40352 BZLIB --with-bzlib=$with_bzlib $have_bzlib
40353 Autotrace --with-autotrace=$with_autotrace $have_autotrace
40354 DJVU --with-djvu=$with_djvu $have_djvu
40355 DPS --with-dps=$with_dps $have_dps
40356 FFTW --with-fftw=$with_fftw $have_fftw
Cristy6d2f14b2016-04-26 01:41:09 -040040357 FLIF --with-flif=$with_flif $have_flif
cristy9af1cbf2014-12-28 22:03:09 +000040358 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000040359 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000040360 FreeType --with-freetype=$with_freetype $have_freetype
40361 Ghostscript lib --with-gslib=$with_gslib $have_gslib
40362 Graphviz --with-gvc=$with_gvc $have_gvc
40363 JBIG --with-jbig=$with_jbig $have_jbig
40364 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000040365 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000040366 LQR --with-lqr=$with_lqr $have_lqr
40367 LTDL --with-ltdl=$with_ltdl $have_ltdl
40368 LZMA --with-lzma=$with_lzma $have_lzma
40369 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
40370 OpenEXR --with-openexr=$with_openexr $have_openexr
Cristy15f22012015-11-14 17:51:30 -050040371 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000040372 PANGO --with-pango=$with_pango $have_pango
40373 PERL --with-perl=$with_perl $have_perl
40374 PNG --with-png=$with_png $have_png
Cristy5572ef62016-02-06 16:10:00 -050040375 RAQM --with-raqm=$with_raqm $have_raqm
cristy9af1cbf2014-12-28 22:03:09 +000040376 RSVG --with-rsvg=$with_rsvg $have_rsvg
40377 TIFF --with-tiff=$with_tiff $have_tiff
40378 WEBP --with-webp=$with_webp $have_webp
40379 WMF --with-wmf=$with_wmf $have_wmf
40380 X11 --with-x=$with_x $have_x
40381 XML --with-xml=$with_xml $have_xml
40382 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000040383
cristy9af1cbf2014-12-28 22:03:09 +000040384 Delegate Program Configuration:
40385 GhostPCL None $PCLDelegate ($PCLVersion)
40386 GhostXPS None $XPSDelegate ($XPSVersion)
40387 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000040388
cristy9af1cbf2014-12-28 22:03:09 +000040389 Font Configuration:
40390 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
40391 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
40392 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
40393 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000040394
cristy9af1cbf2014-12-28 22:03:09 +000040395 X11 Configuration:
40396 X_CFLAGS = $X_CFLAGS
40397 X_PRE_LIBS = $X_PRE_LIBS
40398 X_LIBS = $X_LIBS
40399 X_EXTRA_LIBS = $X_EXTRA_LIBS
40400
40401 Options used to compile and link:
40402 PREFIX = $PREFIX_DIR
40403 EXEC-PREFIX = $EXEC_PREFIX_DIR
40404 VERSION = $PACKAGE_VERSION
40405 CC = $CC
40406 CFLAGS = $CFLAGS
40407 CPPFLAGS = $CPPFLAGS
40408 PCFLAGS = $PCFLAGS
40409 DEFS = $DEFS
40410 LDFLAGS = $LDFLAGS
40411 LIBS = $LIBS
40412 CXX = $CXX
40413 CXXFLAGS = $CXXFLAGS
40414 FEATURES = $MAGICK_FEATURES
40415 DELEGATES = $MAGICK_DELEGATES
40416==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000040417" >&5
cristy9af1cbf2014-12-28 22:03:09 +000040418$as_echo "$as_me:
40419==============================================================================
cristy3ed852e2009-09-05 21:47:34 +000040420ImageMagick is configured as follows. Please verify that this configuration
40421matches your expectations.
40422
cristy9af1cbf2014-12-28 22:03:09 +000040423 Host system type: $host
40424 Build system type: $build
cristy3ed852e2009-09-05 21:47:34 +000040425
Cristy15f22012015-11-14 17:51:30 -050040426 Option Value
cristy9af1cbf2014-12-28 22:03:09 +000040427 ------------------------------------------------------------------------------
40428 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
40429 Static libraries --enable-static=$enable_static $libtool_build_static_libs
40430 Module support --with-modules=$build_modules $build_modules
40431 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
40432 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
40433 High Dynamic Range Imagery
40434 --enable-hdri=$enable_hdri $enable_hdri
cristy3ed852e2009-09-05 21:47:34 +000040435
Cristy15f22012015-11-14 17:51:30 -050040436 Install documentation: $wantdocs
cristy3ed852e2009-09-05 21:47:34 +000040437
cristy9af1cbf2014-12-28 22:03:09 +000040438 Delegate Library Configuration:
40439 BZLIB --with-bzlib=$with_bzlib $have_bzlib
40440 Autotrace --with-autotrace=$with_autotrace $have_autotrace
40441 DJVU --with-djvu=$with_djvu $have_djvu
40442 DPS --with-dps=$with_dps $have_dps
40443 FFTW --with-fftw=$with_fftw $have_fftw
Cristy6d2f14b2016-04-26 01:41:09 -040040444 FLIF --with-flif=$with_flif $have_flif
cristy9af1cbf2014-12-28 22:03:09 +000040445 FlashPIX --with-fpx=$with_fpx $have_fpx
cristybc8ef1c2015-06-06 14:32:21 +000040446 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
cristy9af1cbf2014-12-28 22:03:09 +000040447 FreeType --with-freetype=$with_freetype $have_freetype
40448 Ghostscript lib --with-gslib=$with_gslib $have_gslib
40449 Graphviz --with-gvc=$with_gvc $have_gvc
40450 JBIG --with-jbig=$with_jbig $have_jbig
40451 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
cristyd6ac47f2015-06-06 13:46:55 +000040452 LCMS --with-lcms=$with_lcms $have_lcms
cristy9af1cbf2014-12-28 22:03:09 +000040453 LQR --with-lqr=$with_lqr $have_lqr
40454 LTDL --with-ltdl=$with_ltdl $have_ltdl
40455 LZMA --with-lzma=$with_lzma $have_lzma
40456 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
40457 OpenEXR --with-openexr=$with_openexr $have_openexr
Cristy15f22012015-11-14 17:51:30 -050040458 OpenJP2 --with-openjp2=$with_openjp2 $have_openjp2
cristy9af1cbf2014-12-28 22:03:09 +000040459 PANGO --with-pango=$with_pango $have_pango
40460 PERL --with-perl=$with_perl $have_perl
40461 PNG --with-png=$with_png $have_png
Cristy5572ef62016-02-06 16:10:00 -050040462 RAQM --with-raqm=$with_raqm $have_raqm
cristy9af1cbf2014-12-28 22:03:09 +000040463 RSVG --with-rsvg=$with_rsvg $have_rsvg
40464 TIFF --with-tiff=$with_tiff $have_tiff
40465 WEBP --with-webp=$with_webp $have_webp
40466 WMF --with-wmf=$with_wmf $have_wmf
40467 X11 --with-x=$with_x $have_x
40468 XML --with-xml=$with_xml $have_xml
40469 ZLIB --with-zlib=$with_zlib $have_zlib
cristy5a3dc992014-12-05 19:50:04 +000040470
cristy9af1cbf2014-12-28 22:03:09 +000040471 Delegate Program Configuration:
40472 GhostPCL None $PCLDelegate ($PCLVersion)
40473 GhostXPS None $XPSDelegate ($XPSVersion)
40474 Ghostscript None $PSDelegate ($GSVersion)
cristy5a3dc992014-12-05 19:50:04 +000040475
cristy9af1cbf2014-12-28 22:03:09 +000040476 Font Configuration:
40477 Apple fonts --with-apple-font-dir=$with_apple_font_dir $result_apple_font_dir
40478 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
40479 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
40480 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy3ed852e2009-09-05 21:47:34 +000040481
cristy9af1cbf2014-12-28 22:03:09 +000040482 X11 Configuration:
40483 X_CFLAGS = $X_CFLAGS
40484 X_PRE_LIBS = $X_PRE_LIBS
40485 X_LIBS = $X_LIBS
40486 X_EXTRA_LIBS = $X_EXTRA_LIBS
40487
40488 Options used to compile and link:
40489 PREFIX = $PREFIX_DIR
40490 EXEC-PREFIX = $EXEC_PREFIX_DIR
40491 VERSION = $PACKAGE_VERSION
40492 CC = $CC
40493 CFLAGS = $CFLAGS
40494 CPPFLAGS = $CPPFLAGS
40495 PCFLAGS = $PCFLAGS
40496 DEFS = $DEFS
40497 LDFLAGS = $LDFLAGS
40498 LIBS = $LIBS
40499 CXX = $CXX
40500 CXXFLAGS = $CXXFLAGS
40501 FEATURES = $MAGICK_FEATURES
40502 DELEGATES = $MAGICK_DELEGATES
40503==============================================================================
40504" >&6;}