1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.8-32.
4#
5# Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20  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
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_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
43# 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
50  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;
60      case $arg in #(
61      *"$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
83
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.
92as_myself=
93case $0 in #((
94  *[\\/]* ) 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=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$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
113  exit 1
114fi
115
116# 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 || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# 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;}
162if 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
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  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
201test \$(( 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"
210  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 :
249  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
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: 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."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
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
378# 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
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# 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
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  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
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if 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
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_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
468# 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
474
475
476  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.  :-)
481  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" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # 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
503  # 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
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
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.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
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
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
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
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# 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=
589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
592PACKAGE_TARNAME='ImageMagick'
593PACKAGE_VERSION='7.0.8-32'
594PACKAGE_STRING='ImageMagick 7.0.8-32'
595PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues'
596PACKAGE_URL='https://imagemagick.org'
597
598ac_unique_file="MagickCore/MagickCore.h"
599# 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
635ac_header_list=
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639MAGICK_LIBS
640MAGICK_LDFLAGS
641MAGICK_PCFLAGS
642MAGICK_CPPFLAGS
643MAGICK_CXXFLAGS
644MAGICK_CFLAGS
645MAGICK_EXTRA_DEP_LIBS
646MAGICK_DEP_LIBS
647OSX_GCOV_LDFLAG
648MAGICK_FEATURES
649MAGICK_DELEGATES
650MAGICKCORE_PATH
651PERL_SUPPORTS_DESTDIR
652WITH_PERL_DYNAMIC_FALSE
653WITH_PERL_DYNAMIC_TRUE
654WITH_PERL_STATIC_FALSE
655WITH_PERL_STATIC_TRUE
656WITH_PERL_FALSE
657WITH_PERL_TRUE
658PERL_VERSION
659GSVersion
660GSPSDevice
661GSPDFDevice
662GSMonoDevice
663GSEPSDevice
664GSColorDevice
665GSCMYKDevice
666GSAlphaDevice
667XPSVersion
668XPSCMYKDevice
669XPSColorDevice
670XPSMonoDevice
671PCLVersion
672PCLCMYKDevice
673PCLColorDevice
674PCLMonoDevice
675ZIP_DELEGATE_FALSE
676ZIP_DELEGATE_TRUE
677ZIP
678P7ZIP_DELEGATE_FALSE
679P7ZIP_DELEGATE_TRUE
680P7ZIP
681RPM_DELEGATE_FALSE
682RPM_DELEGATE_TRUE
683RPM
684PERL
685TAR
686ShowImageDelegate
687type_include_files
688windows_font_dir
689urw_base35_font_dir
690ghostscript_font_dir
691dejavu_font_dir
692apple_font_dir
693PrintDelegate
694XPSDelegate
695WWWDecodeDelegate
696WebPEncodeDelegate
697WebPDecodeDelegate
698UniconvertorDelegate
699SVGDecodeDelegate
700RSVGDecodeDelegate
701RMDelegate
702PSDelegate
703PCLDelegate
704MVDelegate
705MrSIDDecodeDelegate
706MPEGEncodeDelegate
707MPEGDecodeDelegate
708MogrifyDelegate
709LaunchDelegate
710LPRDelegate
711LPDelegate
712LEPDelegate
713JXREncodeDelegate
714JXRDecodeDelegate
715ILBMEncodeDelegate
716ILBMDecodeDelegate
717HTMLDecodeDelegate
718HPGLDecodeDelegate
719GVCDecodeDelegate
720EditorDelegate
721DisplayDelegate
722ConvertDelegate
723DVIDecodeDelegate
724DOCDecodeDelegate
725DNGDecodeDelegate
726BrowseDelegate
727BlenderDecodeDelegate
728BPGEncodeDelegate
729BPGDecodeDelegate
730SHAREARCH_PATH
731SHAREARCH_RELATIVE_PATH
732SHAREARCH_DIRNAME
733SHAREARCH_BASEDIRNAME
734SHARE_PATH
735CONFIGURE_PATH
736INSTALL_DOC_FALSE
737INSTALL_DOC_TRUE
738DOCUMENTATION_PATH
739FILTER_PATH
740FILTER_DIRNAME
741CODER_PATH
742CODER_DIRNAME
743MODULES_PATH
744MODULES_RELATIVE_PATH
745MODULES_DIRNAME
746MODULES_BASEDIRNAME
747LIB_BIN_DIR_PATH
748LIB_BIN_DIR_RELATIVE_PATH
749LIB_BIN_DIR
750LIB_BIN_BASEDIRNAME
751LIBRARY_PATH
752EXECUTABLE_PATH
753INCLUDEARCH_PATH
754INCLUDE_PATH
755PERLMAINCC
756XML_DELEGATE_FALSE
757XML_DELEGATE_TRUE
758XML_LIBS
759XML_CFLAGS
760WMF_LIBS
761WMF_CFLAGS
762WMF_DELEGATE_FALSE
763WMF_DELEGATE_TRUE
764WEBPMUX_DELEGATE_FALSE
765WEBPMUX_DELEGATE_TRUE
766WEBP_DELEGATE_FALSE
767WEBP_DELEGATE_TRUE
768WEBPMUX_LIBS
769WEBPMUX_CFLAGS
770WEBP_LIBS
771WEBP_CFLAGS
772TIFF_LIBS
773TIFF_DELEGATE_FALSE
774TIFF_DELEGATE_TRUE
775CAIRO_DELEGATE_FALSE
776CAIRO_DELEGATE_TRUE
777RSVG_DELEGATE_FALSE
778RSVG_DELEGATE_TRUE
779CAIRO_SVG_LIBS
780CAIRO_SVG_CFLAGS
781RSVG_LIBS
782RSVG_CFLAGS
783RAW_R_DELEGATE_FALSE
784RAW_R_DELEGATE_TRUE
785RAW_R_LIBS
786RAW_R_CFLAGS
787PNG_DELEGATE_FALSE
788PNG_DELEGATE_TRUE
789PNG_LIBS
790PNG_CFLAGS
791PANGOCAIRO_DELEGATE_FALSE
792PANGOCAIRO_DELEGATE_TRUE
793PANGO_DELEGATE_FALSE
794PANGO_DELEGATE_TRUE
795PANGO_LIBS
796PANGO_CFLAGS
797OPENEXR_DELEGATE_FALSE
798OPENEXR_DELEGATE_TRUE
799OPENEXR_LIBS
800OPENEXR_CFLAGS
801LZMA_DELEGATE_FALSE
802LZMA_DELEGATE_TRUE
803LZMA_LIBS
804LZMA_CFLAGS
805LQR_DELEGATE_FALSE
806LQR_DELEGATE_TRUE
807LQR_LIBS
808LQR_CFLAGS
809LIBOPENJP2_DELEGATE_FALSE
810LIBOPENJP2_DELEGATE_TRUE
811LIBOPENJP2_LIBS
812LIBOPENJP2_CFLAGS
813LCMS_LIBS
814LCMS_CFLAGS
815LCMS_DELEGATE_FALSE
816LCMS_DELEGATE_TRUE
817LCMS2_LIBS
818LCMS2_CFLAGS
819JPEG_LIBS
820JPEG_DELEGATE_FALSE
821JPEG_DELEGATE_TRUE
822JBIG_LIBS
823JBIG_DELEGATE_FALSE
824JBIG_DELEGATE_TRUE
825HEIC_DELEGATE_FALSE
826HEIC_DELEGATE_TRUE
827HEIF_LIBS
828HEIF_CFLAGS
829GVC_DELEGATE_FALSE
830GVC_DELEGATE_TRUE
831GVC_LIBS
832GVC_CFLAGS
833GS_LIBS
834GS_DELEGATE_FALSE
835GS_DELEGATE_TRUE
836RAQM_DELEGATE_FALSE
837RAQM_DELEGATE_TRUE
838RAQM_LIBS
839RAQM_CFLAGS
840FREETYPE_DELEGATE_FALSE
841FREETYPE_DELEGATE_TRUE
842FREETYPE_LIBS
843FREETYPE_CFLAGS
844FONTCONFIG_DELEGATE_FALSE
845FONTCONFIG_DELEGATE_TRUE
846FONTCONFIG_LIBS
847FONTCONFIG_CFLAGS
848DJVU_LIBS
849DJVU_CFLAGS
850DJVU_DELEGATE_FALSE
851DJVU_DELEGATE_TRUE
852ddjvuapi_LIBS
853ddjvuapi_CFLAGS
854FPX_LIBS
855FPX_DELEGATE_FALSE
856FPX_DELEGATE_TRUE
857FLIF_LIBS
858FLIF_DELEGATE_FALSE
859FLIF_DELEGATE_TRUE
860FFTW_LIBS
861FFTW_CFLAGS
862FFTW_DELEGATE_FALSE
863FFTW_DELEGATE_TRUE
864fftw3_LIBS
865fftw3_CFLAGS
866DPS_LIBS
867DPS_DELEGATE_FALSE
868DPS_DELEGATE_TRUE
869AUTOTRACE_DELEGATE_FALSE
870AUTOTRACE_DELEGATE_TRUE
871AUTOTRACE_LIBS
872AUTOTRACE_CFLAGS
873LIB_DL
874WITH_LTDL_FALSE
875WITH_LTDL_TRUE
876ZSTD_LIBS
877ZSTD_CFLAGS
878ZSTD_DELEGATE_FALSE
879ZSTD_DELEGATE_TRUE
880LIBZSTD_LIBS
881LIBZSTD_CFLAGS
882ZLIB_DELEGATE_FALSE
883ZLIB_DELEGATE_TRUE
884ZLIB_LIBS
885ZLIB_CFLAGS
886XEXT_LIBS
887X11_LIBS
888X11_DELEGATE_FALSE
889X11_DELEGATE_TRUE
890X_EXTRA_LIBS
891X_LIBS
892X_PRE_LIBS
893X_CFLAGS
894XMKMF
895BZLIB_LIBS
896BZLIB_DELEGATE_FALSE
897BZLIB_DELEGATE_TRUE
898CCMALLOCDelegate
899UMEM_LIBS
900HasUMEM_FALSE
901HasUMEM_TRUE
902JEMALLOC_LIBS
903HasJEMALLOC_FALSE
904HasJEMALLOC_TRUE
905GOMP_LIBS
906WITH_MAGICK_PLUS_PLUS_FALSE
907WITH_MAGICK_PLUS_PLUS_TRUE
908OPENMP_CXXFLAGS
909MATH_LIBS
910POW_LIB
911LIBOBJS
912UINTPTR_F
913UINTPTR_T
914UINTMAX_F
915UINTMAX_T
916UINT64_F
917UINT64_T
918INT64_F
919INT64_T
920UINT32_F
921UINT32_T
922INT32_F
923INT32_T
924UINT16_T
925INT16_T
926UINT8_T
927INT8_T
928LIBRARY_EXTRA_CPPFLAGS
929MODULE_EXTRA_CPPFLAGS
930LIBSTDCLDFLAGS
931PERL_MAKE_OPTIONS
932MAGICK_LT_RELEASE_OPTS
933MAGICK_ABI_SUFFIX
934QUANTUM_DEPTH
935WITH_UTILITIES_FALSE
936WITH_UTILITIES_TRUE
937LEGACY_SUPPORT_FALSE
938LEGACY_SUPPORT_TRUE
939MAINT
940MAINTAINER_MODE_FALSE
941MAINTAINER_MODE_TRUE
942MAGICK_HDRI
943WITH_MODULES_FALSE
944WITH_MODULES_TRUE
945WITH_SHARED_LIBS_FALSE
946WITH_SHARED_LIBS_TRUE
947LIBTOOL_DEPS
948CXXCPP
949LT_SYS_LIBRARY_PATH
950OTOOL64
951OTOOL
952LIPO
953NMEDIT
954DSYMUTIL
955MANIFEST_TOOL
956RANLIB
957NM
958ac_ct_DUMPBIN
959DUMPBIN
960LIBTOOL
961OBJDUMP
962DLLTOOL
963AS
964LFS_CPPFLAGS
965CL_LIBS
966CL_CFLAGS
967OPENMP_CFLAGS
968THREAD_LIBS
969PTHREAD_CFLAGS
970PTHREAD_LIBS
971PTHREAD_CC
972ax_pthread_config
973pkgconfigdir
974SHAREARCH_DIR
975INCLUDEARCH_DIR
976WinPathScript
977USING_CL_FALSE
978USING_CL_TRUE
979CYGWIN_BUILD_FALSE
980CYGWIN_BUILD_TRUE
981WIN32_NATIVE_BUILD_FALSE
982WIN32_NATIVE_BUILD_TRUE
983WINGDI32_DELEGATE_FALSE
984WINGDI32_DELEGATE_TRUE
985WS2_32_LIBS
986OLE_LIBS
987GDI32_LIBS
988HAVE_LD_VERSION_SCRIPT_FALSE
989HAVE_LD_VERSION_SCRIPT_TRUE
990PKG_CONFIG_LIBDIR
991PKG_CONFIG_PATH
992PKG_CONFIG
993PRTDIAG
994LN_S
995LD
996FGREP
997SED
998am__fastdepCXX_FALSE
999am__fastdepCXX_TRUE
1000CXXDEPMODE
1001ac_ct_CXX
1002CXXFLAGS
1003CXX
1004ac_ct_AR
1005AR
1006EGREP
1007GREP
1008CPP
1009am__fastdepCC_FALSE
1010am__fastdepCC_TRUE
1011CCDEPMODE
1012am__nodep
1013AMDEPBACKSLASH
1014AMDEP_FALSE
1015AMDEP_TRUE
1016am__include
1017DEPDIR
1018OBJEXT
1019EXEEXT
1020ac_ct_CC
1021CPPFLAGS
1022LDFLAGS
1023CFLAGS
1024CC
1025DIRSEP
1026MAGICK_FILTER_MODULE_PATH
1027MAGICK_CONFIGURE_BUILD_PATH
1028MAGICK_CONFIGURE_SRC_PATH
1029MAGICK_CODER_MODULE_PATH
1030MAN_DIR
1031INFO_DIR
1032PERSISTINCLUDE_DIR
1033INCLUDE_DIR
1034LIB_DIR
1035LOCALSTATE_DIR
1036SHAREDSTATE_DIR
1037SYSCONF_DIR
1038DOC_DIR
1039DATA_DIR
1040LIBEXEC_DIR
1041SBIN_DIR
1042BIN_DIR
1043EXEC_PREFIX_DIR
1044PREFIX_DIR
1045CONFIG_STATUS_DEPENDENCIES
1046MAGICKPP_LIB_VERSION_TEXT
1047MAGICKPP_LIB_VERSION
1048MAGICK_LIB_VERSION_NUMBER
1049MAGICK_LIB_VERSION_TEXT
1050MAGICK_LIB_VERSION
1051PACKAGE_VERSION_ADDENDUM
1052PACKAGE_RELEASE_DATE
1053PACKAGE_LIB_VERSION_NUMBER
1054PACKAGE_LIB_VERSION
1055PACKAGE_CHANGE_DATE
1056PACKAGE_RELEASE
1057PACKAGE_PERL_VERSION
1058MAGICKPP_LIBRARY_VERSION_INFO
1059MAGICKPP_LIBRARY_CURRENT_MIN
1060MAGICKPP_LIBRARY_AGE
1061MAGICKPP_LIBRARY_REVISION
1062MAGICKPP_LIBRARY_CURRENT
1063MAGICK_LIBRARY_VERSION_INFO
1064MAGICK_LIBRARY_CURRENT_MIN
1065MAGICK_LIBRARY_AGE
1066MAGICK_LIBRARY_REVISION
1067MAGICK_LIBRARY_CURRENT
1068MAGICK_GIT_REVISION
1069MAGICK_VERSION
1070MAGICK_PATCHLEVEL_VERSION
1071MAGICK_MICRO_VERSION
1072MAGICK_MINOR_VERSION
1073MAGICK_MAJOR_VERSION
1074MAGICK_TARGET_OS
1075MAGICK_TARGET_VENDOR
1076MAGICK_TARGET_CPU
1077CONFIGURE_ARGS
1078DISTCHECK_CONFIG_FLAGS
1079AM_BACKSLASH
1080AM_DEFAULT_VERBOSITY
1081AM_DEFAULT_V
1082AM_V
1083am__untar
1084am__tar
1085AMTAR
1086am__leading_dot
1087SET_MAKE
1088AWK
1089mkdir_p
1090MKDIR_P
1091INSTALL_STRIP_PROGRAM
1092STRIP
1093install_sh
1094MAKEINFO
1095AUTOHEADER
1096AUTOMAKE
1097AUTOCONF
1098ACLOCAL
1099VERSION
1100PACKAGE
1101CYGPATH_W
1102am__isrc
1103INSTALL_DATA
1104INSTALL_SCRIPT
1105INSTALL_PROGRAM
1106target_os
1107target_vendor
1108target_cpu
1109target
1110host_os
1111host_vendor
1112host_cpu
1113host
1114build_os
1115build_vendor
1116build_cpu
1117build
1118target_alias
1119host_alias
1120build_alias
1121LIBS
1122ECHO_T
1123ECHO_N
1124ECHO_C
1125DEFS
1126mandir
1127localedir
1128libdir
1129psdir
1130pdfdir
1131dvidir
1132htmldir
1133infodir
1134docdir
1135oldincludedir
1136includedir
1137localstatedir
1138sharedstatedir
1139sysconfdir
1140datadir
1141datarootdir
1142libexecdir
1143sbindir
1144bindir
1145program_transform_name
1146prefix
1147exec_prefix
1148PACKAGE_URL
1149PACKAGE_BUGREPORT
1150PACKAGE_STRING
1151PACKAGE_VERSION
1152PACKAGE_TARNAME
1153PACKAGE_NAME
1154PATH_SEPARATOR
1155SHELL
1156am__quote'
1157ac_subst_files=''
1158ac_user_opts='
1159enable_option_checking
1160enable_silent_rules
1161enable_reproducible_build
1162enable_dependency_tracking
1163with_gnu_ld
1164with_dmalloc
1165with_gcc_arch
1166enable_ld_version_script
1167enable_bounds_checking
1168enable_osx_universal_binary
1169with_includearch_dir
1170with_sharearch_dir
1171with_pkgconfigdir
1172with_threads
1173enable_openmp
1174enable_opencl
1175enable_largefile
1176enable_shared
1177enable_static
1178with_pic
1179enable_fast_install
1180with_aix_soname
1181with_sysroot
1182enable_libtool_lock
1183with_modules
1184enable_delegate_build
1185enable_deprecated
1186enable_installed
1187enable_cipher
1188enable_zero_configuration
1189enable_hdri
1190enable_pipes
1191enable_assert
1192enable_maintainer_mode
1193enable_hugepages
1194enable_ccmalloc
1195enable_efence
1196enable_prof
1197enable_gprof
1198enable_gcov
1199with_method_prefix
1200enable_legacy_support
1201with_utilities
1202with_quantum_depth
1203with_cache
1204with_frozenpaths
1205with_magick_plus_plus
1206with_package_release_name
1207with_perl
1208with_perl_options
1209with_jemalloc
1210with_umem
1211with_libstdc
1212with_bzlib
1213with_x
1214with_zlib
1215with_zstd
1216with_apple_font_dir
1217with_autotrace
1218with_dps
1219with_dejavu_font_dir
1220with_fftw
1221with_flif
1222with_fpx
1223with_djvu
1224with_fontconfig
1225with_freetype
1226with_raqm
1227with_gslib
1228with_fontpath
1229with_gs_font_dir
1230with_gvc
1231with_heic
1232with_jbig
1233with_jpeg
1234with_lcms
1235with_openjp2
1236with_lqr
1237with_lzma
1238with_openexr
1239with_pango
1240with_png
1241with_raw
1242with_rsvg
1243with_tiff
1244with_urw_base35_font_dir
1245with_webp
1246with_windows_font_dir
1247with_wmf
1248with_xml
1249enable_docs
1250'
1251      ac_precious_vars='build_alias
1252host_alias
1253target_alias
1254CC
1255CFLAGS
1256LDFLAGS
1257LIBS
1258CPPFLAGS
1259CPP
1260CXX
1261CXXFLAGS
1262CCC
1263PKG_CONFIG
1264PKG_CONFIG_PATH
1265PKG_CONFIG_LIBDIR
1266LT_SYS_LIBRARY_PATH
1267CXXCPP
1268XMKMF
1269ZLIB_CFLAGS
1270ZLIB_LIBS
1271LIBZSTD_CFLAGS
1272LIBZSTD_LIBS
1273AUTOTRACE_CFLAGS
1274AUTOTRACE_LIBS
1275fftw3_CFLAGS
1276fftw3_LIBS
1277ddjvuapi_CFLAGS
1278ddjvuapi_LIBS
1279FONTCONFIG_CFLAGS
1280FONTCONFIG_LIBS
1281FREETYPE_CFLAGS
1282FREETYPE_LIBS
1283RAQM_CFLAGS
1284RAQM_LIBS
1285GVC_CFLAGS
1286GVC_LIBS
1287HEIF_CFLAGS
1288HEIF_LIBS
1289LCMS2_CFLAGS
1290LCMS2_LIBS
1291LIBOPENJP2_CFLAGS
1292LIBOPENJP2_LIBS
1293LQR_CFLAGS
1294LQR_LIBS
1295LZMA_CFLAGS
1296LZMA_LIBS
1297OPENEXR_CFLAGS
1298OPENEXR_LIBS
1299PANGO_CFLAGS
1300PANGO_LIBS
1301PNG_CFLAGS
1302PNG_LIBS
1303RAW_R_CFLAGS
1304RAW_R_LIBS
1305RSVG_CFLAGS
1306RSVG_LIBS
1307CAIRO_SVG_CFLAGS
1308CAIRO_SVG_LIBS
1309WEBP_CFLAGS
1310WEBP_LIBS
1311WEBPMUX_CFLAGS
1312WEBPMUX_LIBS
1313XML_CFLAGS
1314XML_LIBS'
1315
1316
1317# Initialize some variables set by options.
1318ac_init_help=
1319ac_init_version=false
1320ac_unrecognized_opts=
1321ac_unrecognized_sep=
1322# The variables have the same names as the options, with
1323# dashes changed to underlines.
1324cache_file=/dev/null
1325exec_prefix=NONE
1326no_create=
1327no_recursion=
1328prefix=NONE
1329program_prefix=NONE
1330program_suffix=NONE
1331program_transform_name=s,x,x,
1332silent=
1333site=
1334srcdir=
1335verbose=
1336x_includes=NONE
1337x_libraries=NONE
1338
1339# Installation directory options.
1340# These are left unexpanded so users can "make install exec_prefix=/foo"
1341# and all the variables that are supposed to be based on exec_prefix
1342# by default will actually change.
1343# Use braces instead of parens because sh, perl, etc. also accept them.
1344# (The list follows the same order as the GNU Coding Standards.)
1345bindir='${exec_prefix}/bin'
1346sbindir='${exec_prefix}/sbin'
1347libexecdir='${exec_prefix}/libexec'
1348datarootdir='${prefix}/share'
1349datadir='${datarootdir}'
1350sysconfdir='${prefix}/etc'
1351sharedstatedir='${prefix}/com'
1352localstatedir='${prefix}/var'
1353includedir='${prefix}/include'
1354oldincludedir='/usr/include'
1355docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1356infodir='${datarootdir}/info'
1357htmldir='${docdir}'
1358dvidir='${docdir}'
1359pdfdir='${docdir}'
1360psdir='${docdir}'
1361libdir='${exec_prefix}/lib'
1362localedir='${datarootdir}/locale'
1363mandir='${datarootdir}/man'
1364
1365ac_prev=
1366ac_dashdash=
1367for ac_option
1368do
1369  # If the previous option needs an argument, assign it.
1370  if test -n "$ac_prev"; then
1371    eval $ac_prev=\$ac_option
1372    ac_prev=
1373    continue
1374  fi
1375
1376  case $ac_option in
1377  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1378  *=)   ac_optarg= ;;
1379  *)    ac_optarg=yes ;;
1380  esac
1381
1382  # Accept the important Cygnus configure options, so we can diagnose typos.
1383
1384  case $ac_dashdash$ac_option in
1385  --)
1386    ac_dashdash=yes ;;
1387
1388  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1389    ac_prev=bindir ;;
1390  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1391    bindir=$ac_optarg ;;
1392
1393  -build | --build | --buil | --bui | --bu)
1394    ac_prev=build_alias ;;
1395  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1396    build_alias=$ac_optarg ;;
1397
1398  -cache-file | --cache-file | --cache-fil | --cache-fi \
1399  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1400    ac_prev=cache_file ;;
1401  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1402  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1403    cache_file=$ac_optarg ;;
1404
1405  --config-cache | -C)
1406    cache_file=config.cache ;;
1407
1408  -datadir | --datadir | --datadi | --datad)
1409    ac_prev=datadir ;;
1410  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1411    datadir=$ac_optarg ;;
1412
1413  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1414  | --dataroo | --dataro | --datar)
1415    ac_prev=datarootdir ;;
1416  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1417  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1418    datarootdir=$ac_optarg ;;
1419
1420  -disable-* | --disable-*)
1421    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1422    # Reject names that are not valid shell variable names.
1423    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1424      as_fn_error $? "invalid feature name: $ac_useropt"
1425    ac_useropt_orig=$ac_useropt
1426    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1427    case $ac_user_opts in
1428      *"
1429"enable_$ac_useropt"
1430"*) ;;
1431      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1432	 ac_unrecognized_sep=', ';;
1433    esac
1434    eval enable_$ac_useropt=no ;;
1435
1436  -docdir | --docdir | --docdi | --doc | --do)
1437    ac_prev=docdir ;;
1438  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1439    docdir=$ac_optarg ;;
1440
1441  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1442    ac_prev=dvidir ;;
1443  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1444    dvidir=$ac_optarg ;;
1445
1446  -enable-* | --enable-*)
1447    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1448    # Reject names that are not valid shell variable names.
1449    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1450      as_fn_error $? "invalid feature name: $ac_useropt"
1451    ac_useropt_orig=$ac_useropt
1452    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1453    case $ac_user_opts in
1454      *"
1455"enable_$ac_useropt"
1456"*) ;;
1457      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1458	 ac_unrecognized_sep=', ';;
1459    esac
1460    eval enable_$ac_useropt=\$ac_optarg ;;
1461
1462  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1463  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1464  | --exec | --exe | --ex)
1465    ac_prev=exec_prefix ;;
1466  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1467  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1468  | --exec=* | --exe=* | --ex=*)
1469    exec_prefix=$ac_optarg ;;
1470
1471  -gas | --gas | --ga | --g)
1472    # Obsolete; use --with-gas.
1473    with_gas=yes ;;
1474
1475  -help | --help | --hel | --he | -h)
1476    ac_init_help=long ;;
1477  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1478    ac_init_help=recursive ;;
1479  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1480    ac_init_help=short ;;
1481
1482  -host | --host | --hos | --ho)
1483    ac_prev=host_alias ;;
1484  -host=* | --host=* | --hos=* | --ho=*)
1485    host_alias=$ac_optarg ;;
1486
1487  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1488    ac_prev=htmldir ;;
1489  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1490  | --ht=*)
1491    htmldir=$ac_optarg ;;
1492
1493  -includedir | --includedir | --includedi | --included | --include \
1494  | --includ | --inclu | --incl | --inc)
1495    ac_prev=includedir ;;
1496  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1497  | --includ=* | --inclu=* | --incl=* | --inc=*)
1498    includedir=$ac_optarg ;;
1499
1500  -infodir | --infodir | --infodi | --infod | --info | --inf)
1501    ac_prev=infodir ;;
1502  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1503    infodir=$ac_optarg ;;
1504
1505  -libdir | --libdir | --libdi | --libd)
1506    ac_prev=libdir ;;
1507  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1508    libdir=$ac_optarg ;;
1509
1510  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1511  | --libexe | --libex | --libe)
1512    ac_prev=libexecdir ;;
1513  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1514  | --libexe=* | --libex=* | --libe=*)
1515    libexecdir=$ac_optarg ;;
1516
1517  -localedir | --localedir | --localedi | --localed | --locale)
1518    ac_prev=localedir ;;
1519  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1520    localedir=$ac_optarg ;;
1521
1522  -localstatedir | --localstatedir | --localstatedi | --localstated \
1523  | --localstate | --localstat | --localsta | --localst | --locals)
1524    ac_prev=localstatedir ;;
1525  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1526  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1527    localstatedir=$ac_optarg ;;
1528
1529  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1530    ac_prev=mandir ;;
1531  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1532    mandir=$ac_optarg ;;
1533
1534  -nfp | --nfp | --nf)
1535    # Obsolete; use --without-fp.
1536    with_fp=no ;;
1537
1538  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1539  | --no-cr | --no-c | -n)
1540    no_create=yes ;;
1541
1542  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1543  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1544    no_recursion=yes ;;
1545
1546  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1547  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1548  | --oldin | --oldi | --old | --ol | --o)
1549    ac_prev=oldincludedir ;;
1550  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1551  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1552  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1553    oldincludedir=$ac_optarg ;;
1554
1555  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1556    ac_prev=prefix ;;
1557  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1558    prefix=$ac_optarg ;;
1559
1560  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1561  | --program-pre | --program-pr | --program-p)
1562    ac_prev=program_prefix ;;
1563  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1564  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1565    program_prefix=$ac_optarg ;;
1566
1567  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1568  | --program-suf | --program-su | --program-s)
1569    ac_prev=program_suffix ;;
1570  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1571  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1572    program_suffix=$ac_optarg ;;
1573
1574  -program-transform-name | --program-transform-name \
1575  | --program-transform-nam | --program-transform-na \
1576  | --program-transform-n | --program-transform- \
1577  | --program-transform | --program-transfor \
1578  | --program-transfo | --program-transf \
1579  | --program-trans | --program-tran \
1580  | --progr-tra | --program-tr | --program-t)
1581    ac_prev=program_transform_name ;;
1582  -program-transform-name=* | --program-transform-name=* \
1583  | --program-transform-nam=* | --program-transform-na=* \
1584  | --program-transform-n=* | --program-transform-=* \
1585  | --program-transform=* | --program-transfor=* \
1586  | --program-transfo=* | --program-transf=* \
1587  | --program-trans=* | --program-tran=* \
1588  | --progr-tra=* | --program-tr=* | --program-t=*)
1589    program_transform_name=$ac_optarg ;;
1590
1591  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1592    ac_prev=pdfdir ;;
1593  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1594    pdfdir=$ac_optarg ;;
1595
1596  -psdir | --psdir | --psdi | --psd | --ps)
1597    ac_prev=psdir ;;
1598  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1599    psdir=$ac_optarg ;;
1600
1601  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1602  | -silent | --silent | --silen | --sile | --sil)
1603    silent=yes ;;
1604
1605  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1606    ac_prev=sbindir ;;
1607  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1608  | --sbi=* | --sb=*)
1609    sbindir=$ac_optarg ;;
1610
1611  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1612  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1613  | --sharedst | --shareds | --shared | --share | --shar \
1614  | --sha | --sh)
1615    ac_prev=sharedstatedir ;;
1616  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1617  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1618  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1619  | --sha=* | --sh=*)
1620    sharedstatedir=$ac_optarg ;;
1621
1622  -site | --site | --sit)
1623    ac_prev=site ;;
1624  -site=* | --site=* | --sit=*)
1625    site=$ac_optarg ;;
1626
1627  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1628    ac_prev=srcdir ;;
1629  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1630    srcdir=$ac_optarg ;;
1631
1632  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1633  | --syscon | --sysco | --sysc | --sys | --sy)
1634    ac_prev=sysconfdir ;;
1635  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1636  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1637    sysconfdir=$ac_optarg ;;
1638
1639  -target | --target | --targe | --targ | --tar | --ta | --t)
1640    ac_prev=target_alias ;;
1641  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1642    target_alias=$ac_optarg ;;
1643
1644  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1645    verbose=yes ;;
1646
1647  -version | --version | --versio | --versi | --vers | -V)
1648    ac_init_version=: ;;
1649
1650  -with-* | --with-*)
1651    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1652    # Reject names that are not valid shell variable names.
1653    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1654      as_fn_error $? "invalid package name: $ac_useropt"
1655    ac_useropt_orig=$ac_useropt
1656    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1657    case $ac_user_opts in
1658      *"
1659"with_$ac_useropt"
1660"*) ;;
1661      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1662	 ac_unrecognized_sep=', ';;
1663    esac
1664    eval with_$ac_useropt=\$ac_optarg ;;
1665
1666  -without-* | --without-*)
1667    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1668    # Reject names that are not valid shell variable names.
1669    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1670      as_fn_error $? "invalid package name: $ac_useropt"
1671    ac_useropt_orig=$ac_useropt
1672    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1673    case $ac_user_opts in
1674      *"
1675"with_$ac_useropt"
1676"*) ;;
1677      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1678	 ac_unrecognized_sep=', ';;
1679    esac
1680    eval with_$ac_useropt=no ;;
1681
1682  --x)
1683    # Obsolete; use --with-x.
1684    with_x=yes ;;
1685
1686  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1687  | --x-incl | --x-inc | --x-in | --x-i)
1688    ac_prev=x_includes ;;
1689  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1690  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1691    x_includes=$ac_optarg ;;
1692
1693  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1694  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1695    ac_prev=x_libraries ;;
1696  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1697  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1698    x_libraries=$ac_optarg ;;
1699
1700  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1701Try \`$0 --help' for more information"
1702    ;;
1703
1704  *=*)
1705    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1706    # Reject names that are not valid shell variable names.
1707    case $ac_envvar in #(
1708      '' | [0-9]* | *[!_$as_cr_alnum]* )
1709      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1710    esac
1711    eval $ac_envvar=\$ac_optarg
1712    export $ac_envvar ;;
1713
1714  *)
1715    # FIXME: should be removed in autoconf 3.0.
1716    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1717    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1718      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1719    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1720    ;;
1721
1722  esac
1723done
1724
1725if test -n "$ac_prev"; then
1726  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1727  as_fn_error $? "missing argument to $ac_option"
1728fi
1729
1730if test -n "$ac_unrecognized_opts"; then
1731  case $enable_option_checking in
1732    no) ;;
1733    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1734    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1735  esac
1736fi
1737
1738# Check all directory arguments for consistency.
1739for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1740		datadir sysconfdir sharedstatedir localstatedir includedir \
1741		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1742		libdir localedir mandir
1743do
1744  eval ac_val=\$$ac_var
1745  # Remove trailing slashes.
1746  case $ac_val in
1747    */ )
1748      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1749      eval $ac_var=\$ac_val;;
1750  esac
1751  # Be sure to have absolute directory names.
1752  case $ac_val in
1753    [\\/$]* | ?:[\\/]* )  continue;;
1754    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1755  esac
1756  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1757done
1758
1759# There might be people who depend on the old broken behavior: `$host'
1760# used to hold the argument of --host etc.
1761# FIXME: To remove some day.
1762build=$build_alias
1763host=$host_alias
1764target=$target_alias
1765
1766# FIXME: To remove some day.
1767if test "x$host_alias" != x; then
1768  if test "x$build_alias" = x; then
1769    cross_compiling=maybe
1770  elif test "x$build_alias" != "x$host_alias"; then
1771    cross_compiling=yes
1772  fi
1773fi
1774
1775ac_tool_prefix=
1776test -n "$host_alias" && ac_tool_prefix=$host_alias-
1777
1778test "$silent" = yes && exec 6>/dev/null
1779
1780
1781ac_pwd=`pwd` && test -n "$ac_pwd" &&
1782ac_ls_di=`ls -di .` &&
1783ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1784  as_fn_error $? "working directory cannot be determined"
1785test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1786  as_fn_error $? "pwd does not report name of working directory"
1787
1788
1789# Find the source files, if location was not specified.
1790if test -z "$srcdir"; then
1791  ac_srcdir_defaulted=yes
1792  # Try the directory containing this script, then the parent directory.
1793  ac_confdir=`$as_dirname -- "$as_myself" ||
1794$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1795	 X"$as_myself" : 'X\(//\)[^/]' \| \
1796	 X"$as_myself" : 'X\(//\)$' \| \
1797	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1798$as_echo X"$as_myself" |
1799    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1800	    s//\1/
1801	    q
1802	  }
1803	  /^X\(\/\/\)[^/].*/{
1804	    s//\1/
1805	    q
1806	  }
1807	  /^X\(\/\/\)$/{
1808	    s//\1/
1809	    q
1810	  }
1811	  /^X\(\/\).*/{
1812	    s//\1/
1813	    q
1814	  }
1815	  s/.*/./; q'`
1816  srcdir=$ac_confdir
1817  if test ! -r "$srcdir/$ac_unique_file"; then
1818    srcdir=..
1819  fi
1820else
1821  ac_srcdir_defaulted=no
1822fi
1823if test ! -r "$srcdir/$ac_unique_file"; then
1824  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1825  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1826fi
1827ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1828ac_abs_confdir=`(
1829	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1830	pwd)`
1831# When building in place, set srcdir=.
1832if test "$ac_abs_confdir" = "$ac_pwd"; then
1833  srcdir=.
1834fi
1835# Remove unnecessary trailing slashes from srcdir.
1836# Double slashes in file names in object file debugging info
1837# mess up M-x gdb in Emacs.
1838case $srcdir in
1839*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1840esac
1841for ac_var in $ac_precious_vars; do
1842  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1843  eval ac_env_${ac_var}_value=\$${ac_var}
1844  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1845  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1846done
1847
1848#
1849# Report the --help message.
1850#
1851if test "$ac_init_help" = "long"; then
1852  # Omit some internal or obsolete options to make the list less imposing.
1853  # This message is too long to be a string in the A/UX 3.1 sh.
1854  cat <<_ACEOF
1855\`configure' configures ImageMagick 7.0.8-32 to adapt to many kinds of systems.
1856
1857Usage: $0 [OPTION]... [VAR=VALUE]...
1858
1859To assign environment variables (e.g., CC, CFLAGS...), specify them as
1860VAR=VALUE.  See below for descriptions of some of the useful variables.
1861
1862Defaults for the options are specified in brackets.
1863
1864Configuration:
1865  -h, --help              display this help and exit
1866      --help=short        display options specific to this package
1867      --help=recursive    display the short help of all the included packages
1868  -V, --version           display version information and exit
1869  -q, --quiet, --silent   do not print \`checking ...' messages
1870      --cache-file=FILE   cache test results in FILE [disabled]
1871  -C, --config-cache      alias for \`--cache-file=config.cache'
1872  -n, --no-create         do not create output files
1873      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1874
1875Installation directories:
1876  --prefix=PREFIX         install architecture-independent files in PREFIX
1877                          [$ac_default_prefix]
1878  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1879                          [PREFIX]
1880
1881By default, \`make install' will install all the files in
1882\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1883an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1884for instance \`--prefix=\$HOME'.
1885
1886For better control, use the options below.
1887
1888Fine tuning of the installation directories:
1889  --bindir=DIR            user executables [EPREFIX/bin]
1890  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1891  --libexecdir=DIR        program executables [EPREFIX/libexec]
1892  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1893  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1894  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1895  --libdir=DIR            object code libraries [EPREFIX/lib]
1896  --includedir=DIR        C header files [PREFIX/include]
1897  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1898  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1899  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1900  --infodir=DIR           info documentation [DATAROOTDIR/info]
1901  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1902  --mandir=DIR            man documentation [DATAROOTDIR/man]
1903  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1904  --htmldir=DIR           html documentation [DOCDIR]
1905  --dvidir=DIR            dvi documentation [DOCDIR]
1906  --pdfdir=DIR            pdf documentation [DOCDIR]
1907  --psdir=DIR             ps documentation [DOCDIR]
1908_ACEOF
1909
1910  cat <<\_ACEOF
1911
1912Program names:
1913  --program-prefix=PREFIX            prepend PREFIX to installed program names
1914  --program-suffix=SUFFIX            append SUFFIX to installed program names
1915  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1916
1917X features:
1918  --x-includes=DIR    X include files are in DIR
1919  --x-libraries=DIR   X library files are in DIR
1920
1921System types:
1922  --build=BUILD     configure for building on BUILD [guessed]
1923  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1924  --target=TARGET   configure for building compilers for TARGET [HOST]
1925_ACEOF
1926fi
1927
1928if test -n "$ac_init_help"; then
1929  case $ac_init_help in
1930     short | recursive ) echo "Configuration of ImageMagick 7.0.8-32:";;
1931   esac
1932  cat <<\_ACEOF
1933
1934Optional Features:
1935  --disable-option-checking  ignore unrecognized --enable/--with options
1936  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1937  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1938  --enable-silent-rules   less verbose build output (undo: "make V=1")
1939  --disable-silent-rules  verbose build output (undo: "make V=0")
1940  --enable-reproducible-build
1941                          enable reproducible build
1942  --enable-dependency-tracking
1943                          do not reject slow dependency extractors
1944  --disable-dependency-tracking
1945                          speeds up one-time build
1946  --enable-ld-version-script
1947                          enable linker version script (default is enabled
1948                          when possible)
1949  --enable-bounds-checking
1950                          enable run-time bounds-checking
1951  --enable-osx-universal-binary
1952                          build universal binary on OS X [[default=no]]
1953  --disable-openmp        do not use OpenMP
1954  --disable-opencl        do not use OpenCL
1955  --disable-largefile     omit support for large files
1956  --enable-shared[=PKGS]  build shared libraries [default=yes]
1957  --enable-static[=PKGS]  build static libraries [default=yes]
1958  --enable-fast-install[=PKGS]
1959                          optimize for fast installation [default=yes]
1960  --disable-libtool-lock  avoid locking (might break parallel builds)
1961  --enable-delegate-build look for delegate libraries in build directory
1962  --disable-deprecated    exclude deprecated methods in MagickCore and
1963                          MagickWand APIs
1964  --disable-installed     Formally install ImageMagick under PREFIX
1965  --disable-cipher        disable enciphering and deciphering image pixels
1966  --enable-zero-configuration
1967                          enable self-contained, embeddable,
1968                          zero-configuration ImageMagick
1969  --enable-hdri           accurately represent the wide range of intensity
1970                          levels found in real scenes
1971  --enable-pipes          enable pipes (|) in filenames
1972  --disable-assert        disable assert() statements in build
1973  --enable-maintainer-mode
1974                          enable make rules and dependencies not useful (and
1975                          sometimes confusing) to the casual installer
1976  --enable-hugepages      enable 'huge pages' support
1977  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1978  --enable-efence         enable 'efence' memory debug support
1979  --enable-prof           enable 'prof' profiling support
1980  --enable-gprof          enable 'gprof' profiling support
1981  --enable-gcov           enable 'gcov' profiling support
1982  --enable-legacy-support install legacy command-line utilities (default disabled)
1983  --disable-assert        turn off assertions
1984  --disable-docs          disable building of documentation
1985
1986Optional Packages:
1987  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1988  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1989  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1990  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1991  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1992                          instead of guessing
1993  --includearch-dir=DIR   ARCH specific include directory
1994  --sharearch-dir=DIR     ARCH specific config directory
1995  --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1996  --without-threads       disable POSIX threads API support
1997  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1998                          both]
1999  --with-aix-soname=aix|svr4|both
2000                          shared library versioning (aka "SONAME") variant to
2001                          provide on AIX, [default=aix].
2002  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
2003                          compiler's sysroot if not specified).
2004  --with-modules          enable building dynamically loadable modules
2005  --with-method-prefix=PREFIX
2006                          prefix MagickCore API methods
2007  --with-utilities enable building command-line utilities (default yes)
2008  --with-quantum-depth=DEPTH
2009                          number of bits in a pixel quantum (default 16)
2010  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
2011                          memory)
2012  --with-frozenpaths      freeze delegate paths
2013  --without-magick-plus-plus
2014                          disable build/install of Magick++
2015  --with-package-release-name=NAME
2016                          encode this name into the shared library
2017  --with-perl             enable build/install of PerlMagick
2018  --with-perl-options=OPTIONS
2019                          options to pass on command-line when generating
2020                          PerlMagick build file
2021  --with-jemalloc         enable jemalloc memory allocation library support
2022  --with-umem             enable umem memory allocation library support
2023  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
2024  --without-bzlib         disable BZLIB support
2025  --with-x                use the X Window System
2026  --without-zlib          disable ZLIB support
2027  --without-zstd          disable ZSTD support
2028  --with-apple-font-dir=DIR
2029                          Apple font directory
2030  --with-autotrace        enable autotrace support
2031  --without-dps           disable Display Postscript support
2032  --with-dejavu-font-dir=DIR
2033                          DejaVu font directory
2034  --without-fftw          disable FFTW support
2035  --without-flif          disable FLIF support
2036  --without-fpx           disable FlashPIX support
2037  --without-djvu          disable DjVu support
2038  --without-fontconfig    disable fontconfig support
2039  --without-freetype      disable Freetype support
2040  --without-raqm          disable Raqm support
2041  --with-gslib            enable Ghostscript library support
2042  --with-fontpath=DIR     prepend to default font search path
2043  --with-gs-font-dir=DIR  Ghostscript font directory
2044  --with-gvc              enable GVC support
2045  --without-heic          disable HEIC support
2046  --without-jbig          disable JBIG support
2047  --without-jpeg          disable JPEG support
2048  --without-lcms          disable lcms (v1.1X) support
2049  --without-openjp2       disable OpenJP2 support
2050  --without-lqr           disable Liquid Rescale support
2051  --without-lzma          disable LZMA support
2052  --without-openexr       disable OpenEXR support
2053  --without-pango         disable PANGO support
2054  --without-png           disable PNG support
2055  --without-raw           disable Raw support
2056  --with-rsvg             enable RSVG support
2057  --without-tiff          disable TIFF support
2058  --with-urw-base35-font-dir=DIR
2059                          URW-base35 font directory
2060  --without-webp          disable WEBP support
2061  --with-windows-font-dir=DIR
2062                          Windows font directory
2063  --with-wmf              enable WMF support
2064  --without-xml           disable XML support
2065
2066Some influential environment variables:
2067  CC          C compiler command
2068  CFLAGS      C compiler flags
2069  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2070              nonstandard directory <lib dir>
2071  LIBS        libraries to pass to the linker, e.g. -l<library>
2072  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2073              you have headers in a nonstandard directory <include dir>
2074  CPP         C preprocessor
2075  CXX         C++ compiler command
2076  CXXFLAGS    C++ compiler flags
2077  PKG_CONFIG  path to pkg-config utility
2078  PKG_CONFIG_PATH
2079              directories to add to pkg-config's search path
2080  PKG_CONFIG_LIBDIR
2081              path overriding pkg-config's built-in search path
2082  LT_SYS_LIBRARY_PATH
2083              User-defined run-time library search path.
2084  CXXCPP      C++ preprocessor
2085  XMKMF       Path to xmkmf, Makefile generator for X Window System
2086  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2087  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
2088  LIBZSTD_CFLAGS
2089              C compiler flags for LIBZSTD, overriding pkg-config
2090  LIBZSTD_LIBS
2091              linker flags for LIBZSTD, overriding pkg-config
2092  AUTOTRACE_CFLAGS
2093              C compiler flags for AUTOTRACE, overriding pkg-config
2094  AUTOTRACE_LIBS
2095              linker flags for AUTOTRACE, overriding pkg-config
2096  fftw3_CFLAGS
2097              C compiler flags for fftw3, overriding pkg-config
2098  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
2099  ddjvuapi_CFLAGS
2100              C compiler flags for ddjvuapi, overriding pkg-config
2101  ddjvuapi_LIBS
2102              linker flags for ddjvuapi, overriding pkg-config
2103  FONTCONFIG_CFLAGS
2104              C compiler flags for FONTCONFIG, overriding pkg-config
2105  FONTCONFIG_LIBS
2106              linker flags for FONTCONFIG, overriding pkg-config
2107  FREETYPE_CFLAGS
2108              C compiler flags for FREETYPE, overriding pkg-config
2109  FREETYPE_LIBS
2110              linker flags for FREETYPE, overriding pkg-config
2111  RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
2112  RAQM_LIBS   linker flags for RAQM, overriding pkg-config
2113  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2114  GVC_LIBS    linker flags for GVC, overriding pkg-config
2115  HEIF_CFLAGS C compiler flags for HEIF, overriding pkg-config
2116  HEIF_LIBS   linker flags for HEIF, overriding pkg-config
2117  LCMS2_CFLAGS
2118              C compiler flags for LCMS2, overriding pkg-config
2119  LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
2120  LIBOPENJP2_CFLAGS
2121              C compiler flags for LIBOPENJP2, overriding pkg-config
2122  LIBOPENJP2_LIBS
2123              linker flags for LIBOPENJP2, overriding pkg-config
2124  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2125  LQR_LIBS    linker flags for LQR, overriding pkg-config
2126  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2127  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
2128  OPENEXR_CFLAGS
2129              C compiler flags for OPENEXR, overriding pkg-config
2130  OPENEXR_LIBS
2131              linker flags for OPENEXR, overriding pkg-config
2132  PANGO_CFLAGS
2133              C compiler flags for PANGO, overriding pkg-config
2134  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
2135  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2136  PNG_LIBS    linker flags for PNG, overriding pkg-config
2137  RAW_R_CFLAGS
2138              C compiler flags for RAW_R, overriding pkg-config
2139  RAW_R_LIBS  linker flags for RAW_R, overriding pkg-config
2140  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2141  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2142  CAIRO_SVG_CFLAGS
2143              C compiler flags for CAIRO_SVG, overriding pkg-config
2144  CAIRO_SVG_LIBS
2145              linker flags for CAIRO_SVG, overriding pkg-config
2146  WEBP_CFLAGS C compiler flags for WEBP, overriding pkg-config
2147  WEBP_LIBS   linker flags for WEBP, overriding pkg-config
2148  WEBPMUX_CFLAGS
2149              C compiler flags for WEBPMUX, overriding pkg-config
2150  WEBPMUX_LIBS
2151              linker flags for WEBPMUX, overriding pkg-config
2152  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
2153  XML_LIBS    linker flags for XML, overriding pkg-config
2154
2155Use these variables to override the choices made by `configure' or to help
2156it to find libraries and programs with nonstandard names/locations.
2157
2158Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
2159ImageMagick home page: <https://imagemagick.org>.
2160_ACEOF
2161ac_status=$?
2162fi
2163
2164if test "$ac_init_help" = "recursive"; then
2165  # If there are subdirs, report their specific --help.
2166  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2167    test -d "$ac_dir" ||
2168      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2169      continue
2170    ac_builddir=.
2171
2172case "$ac_dir" in
2173.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2174*)
2175  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2176  # A ".." for each directory in $ac_dir_suffix.
2177  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2178  case $ac_top_builddir_sub in
2179  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2180  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2181  esac ;;
2182esac
2183ac_abs_top_builddir=$ac_pwd
2184ac_abs_builddir=$ac_pwd$ac_dir_suffix
2185# for backward compatibility:
2186ac_top_builddir=$ac_top_build_prefix
2187
2188case $srcdir in
2189  .)  # We are building in place.
2190    ac_srcdir=.
2191    ac_top_srcdir=$ac_top_builddir_sub
2192    ac_abs_top_srcdir=$ac_pwd ;;
2193  [\\/]* | ?:[\\/]* )  # Absolute name.
2194    ac_srcdir=$srcdir$ac_dir_suffix;
2195    ac_top_srcdir=$srcdir
2196    ac_abs_top_srcdir=$srcdir ;;
2197  *) # Relative name.
2198    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2199    ac_top_srcdir=$ac_top_build_prefix$srcdir
2200    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2201esac
2202ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2203
2204    cd "$ac_dir" || { ac_status=$?; continue; }
2205    # Check for guested configure.
2206    if test -f "$ac_srcdir/configure.gnu"; then
2207      echo &&
2208      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2209    elif test -f "$ac_srcdir/configure"; then
2210      echo &&
2211      $SHELL "$ac_srcdir/configure" --help=recursive
2212    else
2213      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2214    fi || ac_status=$?
2215    cd "$ac_pwd" || { ac_status=$?; break; }
2216  done
2217fi
2218
2219test -n "$ac_init_help" && exit $ac_status
2220if $ac_init_version; then
2221  cat <<\_ACEOF
2222ImageMagick configure 7.0.8-32
2223generated by GNU Autoconf 2.69
2224
2225Copyright (C) 2012 Free Software Foundation, Inc.
2226This configure script is free software; the Free Software Foundation
2227gives unlimited permission to copy, distribute and modify it.
2228_ACEOF
2229  exit
2230fi
2231
2232## ------------------------ ##
2233## Autoconf initialization. ##
2234## ------------------------ ##
2235
2236# ac_fn_c_try_compile LINENO
2237# --------------------------
2238# Try to compile conftest.$ac_ext, and return whether this succeeded.
2239ac_fn_c_try_compile ()
2240{
2241  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2242  rm -f conftest.$ac_objext
2243  if { { ac_try="$ac_compile"
2244case "(($ac_try" in
2245  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2246  *) ac_try_echo=$ac_try;;
2247esac
2248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2249$as_echo "$ac_try_echo"; } >&5
2250  (eval "$ac_compile") 2>conftest.err
2251  ac_status=$?
2252  if test -s conftest.err; then
2253    grep -v '^ *+' conftest.err >conftest.er1
2254    cat conftest.er1 >&5
2255    mv -f conftest.er1 conftest.err
2256  fi
2257  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2258  test $ac_status = 0; } && {
2259	 test -z "$ac_c_werror_flag" ||
2260	 test ! -s conftest.err
2261       } && test -s conftest.$ac_objext; then :
2262  ac_retval=0
2263else
2264  $as_echo "$as_me: failed program was:" >&5
2265sed 's/^/| /' conftest.$ac_ext >&5
2266
2267	ac_retval=1
2268fi
2269  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270  as_fn_set_status $ac_retval
2271
2272} # ac_fn_c_try_compile
2273
2274# ac_fn_c_try_cpp LINENO
2275# ----------------------
2276# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2277ac_fn_c_try_cpp ()
2278{
2279  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280  if { { ac_try="$ac_cpp conftest.$ac_ext"
2281case "(($ac_try" in
2282  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283  *) ac_try_echo=$ac_try;;
2284esac
2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2286$as_echo "$ac_try_echo"; } >&5
2287  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2288  ac_status=$?
2289  if test -s conftest.err; then
2290    grep -v '^ *+' conftest.err >conftest.er1
2291    cat conftest.er1 >&5
2292    mv -f conftest.er1 conftest.err
2293  fi
2294  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2295  test $ac_status = 0; } > conftest.i && {
2296	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2297	 test ! -s conftest.err
2298       }; then :
2299  ac_retval=0
2300else
2301  $as_echo "$as_me: failed program was:" >&5
2302sed 's/^/| /' conftest.$ac_ext >&5
2303
2304    ac_retval=1
2305fi
2306  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2307  as_fn_set_status $ac_retval
2308
2309} # ac_fn_c_try_cpp
2310
2311# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2312# -------------------------------------------------------
2313# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2314# the include files in INCLUDES and setting the cache variable VAR
2315# accordingly.
2316ac_fn_c_check_header_mongrel ()
2317{
2318  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319  if eval \${$3+:} false; then :
2320  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321$as_echo_n "checking for $2... " >&6; }
2322if eval \${$3+:} false; then :
2323  $as_echo_n "(cached) " >&6
2324fi
2325eval ac_res=\$$3
2326	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327$as_echo "$ac_res" >&6; }
2328else
2329  # Is the header compilable?
2330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2331$as_echo_n "checking $2 usability... " >&6; }
2332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333/* end confdefs.h.  */
2334$4
2335#include <$2>
2336_ACEOF
2337if ac_fn_c_try_compile "$LINENO"; then :
2338  ac_header_compiler=yes
2339else
2340  ac_header_compiler=no
2341fi
2342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2344$as_echo "$ac_header_compiler" >&6; }
2345
2346# Is the header present?
2347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2348$as_echo_n "checking $2 presence... " >&6; }
2349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2350/* end confdefs.h.  */
2351#include <$2>
2352_ACEOF
2353if ac_fn_c_try_cpp "$LINENO"; then :
2354  ac_header_preproc=yes
2355else
2356  ac_header_preproc=no
2357fi
2358rm -f conftest.err conftest.i conftest.$ac_ext
2359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2360$as_echo "$ac_header_preproc" >&6; }
2361
2362# So?  What about this header?
2363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2364  yes:no: )
2365    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2366$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2367    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2368$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2369    ;;
2370  no:yes:* )
2371    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2372$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2374$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2375    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2376$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2377    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2378$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2379    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2380$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2381( $as_echo "## ---------------------------------------------------------------- ##
2382## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
2383## ---------------------------------------------------------------- ##"
2384     ) | sed "s/^/$as_me: WARNING:     /" >&2
2385    ;;
2386esac
2387  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2388$as_echo_n "checking for $2... " >&6; }
2389if eval \${$3+:} false; then :
2390  $as_echo_n "(cached) " >&6
2391else
2392  eval "$3=\$ac_header_compiler"
2393fi
2394eval ac_res=\$$3
2395	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2396$as_echo "$ac_res" >&6; }
2397fi
2398  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2399
2400} # ac_fn_c_check_header_mongrel
2401
2402# ac_fn_c_try_run LINENO
2403# ----------------------
2404# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2405# that executables *can* be run.
2406ac_fn_c_try_run ()
2407{
2408  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409  if { { ac_try="$ac_link"
2410case "(($ac_try" in
2411  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412  *) ac_try_echo=$ac_try;;
2413esac
2414eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2415$as_echo "$ac_try_echo"; } >&5
2416  (eval "$ac_link") 2>&5
2417  ac_status=$?
2418  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2419  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2420  { { case "(($ac_try" in
2421  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422  *) ac_try_echo=$ac_try;;
2423esac
2424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425$as_echo "$ac_try_echo"; } >&5
2426  (eval "$ac_try") 2>&5
2427  ac_status=$?
2428  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429  test $ac_status = 0; }; }; then :
2430  ac_retval=0
2431else
2432  $as_echo "$as_me: program exited with status $ac_status" >&5
2433       $as_echo "$as_me: failed program was:" >&5
2434sed 's/^/| /' conftest.$ac_ext >&5
2435
2436       ac_retval=$ac_status
2437fi
2438  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2439  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440  as_fn_set_status $ac_retval
2441
2442} # ac_fn_c_try_run
2443
2444# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2445# -------------------------------------------------------
2446# Tests whether HEADER exists and can be compiled using the include files in
2447# INCLUDES, setting the cache variable VAR accordingly.
2448ac_fn_c_check_header_compile ()
2449{
2450  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2452$as_echo_n "checking for $2... " >&6; }
2453if eval \${$3+:} false; then :
2454  $as_echo_n "(cached) " >&6
2455else
2456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2457/* end confdefs.h.  */
2458$4
2459#include <$2>
2460_ACEOF
2461if ac_fn_c_try_compile "$LINENO"; then :
2462  eval "$3=yes"
2463else
2464  eval "$3=no"
2465fi
2466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467fi
2468eval ac_res=\$$3
2469	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470$as_echo "$ac_res" >&6; }
2471  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2472
2473} # ac_fn_c_check_header_compile
2474
2475# ac_fn_cxx_try_compile LINENO
2476# ----------------------------
2477# Try to compile conftest.$ac_ext, and return whether this succeeded.
2478ac_fn_cxx_try_compile ()
2479{
2480  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2481  rm -f conftest.$ac_objext
2482  if { { ac_try="$ac_compile"
2483case "(($ac_try" in
2484  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2485  *) ac_try_echo=$ac_try;;
2486esac
2487eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2488$as_echo "$ac_try_echo"; } >&5
2489  (eval "$ac_compile") 2>conftest.err
2490  ac_status=$?
2491  if test -s conftest.err; then
2492    grep -v '^ *+' conftest.err >conftest.er1
2493    cat conftest.er1 >&5
2494    mv -f conftest.er1 conftest.err
2495  fi
2496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497  test $ac_status = 0; } && {
2498	 test -z "$ac_cxx_werror_flag" ||
2499	 test ! -s conftest.err
2500       } && test -s conftest.$ac_objext; then :
2501  ac_retval=0
2502else
2503  $as_echo "$as_me: failed program was:" >&5
2504sed 's/^/| /' conftest.$ac_ext >&5
2505
2506	ac_retval=1
2507fi
2508  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2509  as_fn_set_status $ac_retval
2510
2511} # ac_fn_cxx_try_compile
2512
2513# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2514# --------------------------------------------
2515# Tries to find the compile-time value of EXPR in a program that includes
2516# INCLUDES, setting VAR accordingly. Returns whether the value could be
2517# computed
2518ac_fn_c_compute_int ()
2519{
2520  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521  if test "$cross_compiling" = yes; then
2522    # Depending upon the size, compute the lo and hi bounds.
2523cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524/* end confdefs.h.  */
2525$4
2526int
2527main ()
2528{
2529static int test_array [1 - 2 * !(($2) >= 0)];
2530test_array [0] = 0;
2531return test_array [0];
2532
2533  ;
2534  return 0;
2535}
2536_ACEOF
2537if ac_fn_c_try_compile "$LINENO"; then :
2538  ac_lo=0 ac_mid=0
2539  while :; do
2540    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541/* end confdefs.h.  */
2542$4
2543int
2544main ()
2545{
2546static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2547test_array [0] = 0;
2548return test_array [0];
2549
2550  ;
2551  return 0;
2552}
2553_ACEOF
2554if ac_fn_c_try_compile "$LINENO"; then :
2555  ac_hi=$ac_mid; break
2556else
2557  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2558			if test $ac_lo -le $ac_mid; then
2559			  ac_lo= ac_hi=
2560			  break
2561			fi
2562			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2563fi
2564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565  done
2566else
2567  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h.  */
2569$4
2570int
2571main ()
2572{
2573static int test_array [1 - 2 * !(($2) < 0)];
2574test_array [0] = 0;
2575return test_array [0];
2576
2577  ;
2578  return 0;
2579}
2580_ACEOF
2581if ac_fn_c_try_compile "$LINENO"; then :
2582  ac_hi=-1 ac_mid=-1
2583  while :; do
2584    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2585/* end confdefs.h.  */
2586$4
2587int
2588main ()
2589{
2590static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2591test_array [0] = 0;
2592return test_array [0];
2593
2594  ;
2595  return 0;
2596}
2597_ACEOF
2598if ac_fn_c_try_compile "$LINENO"; then :
2599  ac_lo=$ac_mid; break
2600else
2601  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2602			if test $ac_mid -le $ac_hi; then
2603			  ac_lo= ac_hi=
2604			  break
2605			fi
2606			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2607fi
2608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609  done
2610else
2611  ac_lo= ac_hi=
2612fi
2613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi
2615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616# Binary search between lo and hi bounds.
2617while test "x$ac_lo" != "x$ac_hi"; do
2618  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620/* end confdefs.h.  */
2621$4
2622int
2623main ()
2624{
2625static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2626test_array [0] = 0;
2627return test_array [0];
2628
2629  ;
2630  return 0;
2631}
2632_ACEOF
2633if ac_fn_c_try_compile "$LINENO"; then :
2634  ac_hi=$ac_mid
2635else
2636  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2637fi
2638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639done
2640case $ac_lo in #((
2641?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2642'') ac_retval=1 ;;
2643esac
2644  else
2645    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2646/* end confdefs.h.  */
2647$4
2648static long int longval () { return $2; }
2649static unsigned long int ulongval () { return $2; }
2650#include <stdio.h>
2651#include <stdlib.h>
2652int
2653main ()
2654{
2655
2656  FILE *f = fopen ("conftest.val", "w");
2657  if (! f)
2658    return 1;
2659  if (($2) < 0)
2660    {
2661      long int i = longval ();
2662      if (i != ($2))
2663	return 1;
2664      fprintf (f, "%ld", i);
2665    }
2666  else
2667    {
2668      unsigned long int i = ulongval ();
2669      if (i != ($2))
2670	return 1;
2671      fprintf (f, "%lu", i);
2672    }
2673  /* Do not output a trailing newline, as this causes \r\n confusion
2674     on some platforms.  */
2675  return ferror (f) || fclose (f) != 0;
2676
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681if ac_fn_c_try_run "$LINENO"; then :
2682  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2683else
2684  ac_retval=1
2685fi
2686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2687  conftest.$ac_objext conftest.beam conftest.$ac_ext
2688rm -f conftest.val
2689
2690  fi
2691  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692  as_fn_set_status $ac_retval
2693
2694} # ac_fn_c_compute_int
2695
2696# ac_fn_c_try_link LINENO
2697# -----------------------
2698# Try to link conftest.$ac_ext, and return whether this succeeded.
2699ac_fn_c_try_link ()
2700{
2701  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702  rm -f conftest.$ac_objext conftest$ac_exeext
2703  if { { ac_try="$ac_link"
2704case "(($ac_try" in
2705  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2706  *) ac_try_echo=$ac_try;;
2707esac
2708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2709$as_echo "$ac_try_echo"; } >&5
2710  (eval "$ac_link") 2>conftest.err
2711  ac_status=$?
2712  if test -s conftest.err; then
2713    grep -v '^ *+' conftest.err >conftest.er1
2714    cat conftest.er1 >&5
2715    mv -f conftest.er1 conftest.err
2716  fi
2717  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2718  test $ac_status = 0; } && {
2719	 test -z "$ac_c_werror_flag" ||
2720	 test ! -s conftest.err
2721       } && test -s conftest$ac_exeext && {
2722	 test "$cross_compiling" = yes ||
2723	 test -x conftest$ac_exeext
2724       }; then :
2725  ac_retval=0
2726else
2727  $as_echo "$as_me: failed program was:" >&5
2728sed 's/^/| /' conftest.$ac_ext >&5
2729
2730	ac_retval=1
2731fi
2732  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2733  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2734  # interfere with the next link command; also delete a directory that is
2735  # left behind by Apple's compiler.  We do this before executing the actions.
2736  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2737  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2738  as_fn_set_status $ac_retval
2739
2740} # ac_fn_c_try_link
2741
2742# ac_fn_c_check_func LINENO FUNC VAR
2743# ----------------------------------
2744# Tests whether FUNC exists, setting the cache variable VAR accordingly
2745ac_fn_c_check_func ()
2746{
2747  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2748  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749$as_echo_n "checking for $2... " >&6; }
2750if eval \${$3+:} false; then :
2751  $as_echo_n "(cached) " >&6
2752else
2753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2754/* end confdefs.h.  */
2755/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2756   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2757#define $2 innocuous_$2
2758
2759/* System header to define __stub macros and hopefully few prototypes,
2760    which can conflict with char $2 (); below.
2761    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2762    <limits.h> exists even on freestanding compilers.  */
2763
2764#ifdef __STDC__
2765# include <limits.h>
2766#else
2767# include <assert.h>
2768#endif
2769
2770#undef $2
2771
2772/* Override any GCC internal prototype to avoid an error.
2773   Use char because int might match the return type of a GCC
2774   builtin and then its argument prototype would still apply.  */
2775#ifdef __cplusplus
2776extern "C"
2777#endif
2778char $2 ();
2779/* The GNU C library defines this for functions which it implements
2780    to always fail with ENOSYS.  Some functions are actually named
2781    something starting with __ and the normal name is an alias.  */
2782#if defined __stub_$2 || defined __stub___$2
2783choke me
2784#endif
2785
2786int
2787main ()
2788{
2789return $2 ();
2790  ;
2791  return 0;
2792}
2793_ACEOF
2794if ac_fn_c_try_link "$LINENO"; then :
2795  eval "$3=yes"
2796else
2797  eval "$3=no"
2798fi
2799rm -f core conftest.err conftest.$ac_objext \
2800    conftest$ac_exeext conftest.$ac_ext
2801fi
2802eval ac_res=\$$3
2803	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2804$as_echo "$ac_res" >&6; }
2805  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806
2807} # ac_fn_c_check_func
2808
2809# ac_fn_cxx_try_cpp LINENO
2810# ------------------------
2811# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2812ac_fn_cxx_try_cpp ()
2813{
2814  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2815  if { { ac_try="$ac_cpp conftest.$ac_ext"
2816case "(($ac_try" in
2817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818  *) ac_try_echo=$ac_try;;
2819esac
2820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821$as_echo "$ac_try_echo"; } >&5
2822  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2823  ac_status=$?
2824  if test -s conftest.err; then
2825    grep -v '^ *+' conftest.err >conftest.er1
2826    cat conftest.er1 >&5
2827    mv -f conftest.er1 conftest.err
2828  fi
2829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2830  test $ac_status = 0; } > conftest.i && {
2831	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2832	 test ! -s conftest.err
2833       }; then :
2834  ac_retval=0
2835else
2836  $as_echo "$as_me: failed program was:" >&5
2837sed 's/^/| /' conftest.$ac_ext >&5
2838
2839    ac_retval=1
2840fi
2841  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2842  as_fn_set_status $ac_retval
2843
2844} # ac_fn_cxx_try_cpp
2845
2846# ac_fn_cxx_try_link LINENO
2847# -------------------------
2848# Try to link conftest.$ac_ext, and return whether this succeeded.
2849ac_fn_cxx_try_link ()
2850{
2851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2852  rm -f conftest.$ac_objext conftest$ac_exeext
2853  if { { ac_try="$ac_link"
2854case "(($ac_try" in
2855  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2856  *) ac_try_echo=$ac_try;;
2857esac
2858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2859$as_echo "$ac_try_echo"; } >&5
2860  (eval "$ac_link") 2>conftest.err
2861  ac_status=$?
2862  if test -s conftest.err; then
2863    grep -v '^ *+' conftest.err >conftest.er1
2864    cat conftest.er1 >&5
2865    mv -f conftest.er1 conftest.err
2866  fi
2867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2868  test $ac_status = 0; } && {
2869	 test -z "$ac_cxx_werror_flag" ||
2870	 test ! -s conftest.err
2871       } && test -s conftest$ac_exeext && {
2872	 test "$cross_compiling" = yes ||
2873	 test -x conftest$ac_exeext
2874       }; then :
2875  ac_retval=0
2876else
2877  $as_echo "$as_me: failed program was:" >&5
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
2880	ac_retval=1
2881fi
2882  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2883  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2884  # interfere with the next link command; also delete a directory that is
2885  # left behind by Apple's compiler.  We do this before executing the actions.
2886  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2888  as_fn_set_status $ac_retval
2889
2890} # ac_fn_cxx_try_link
2891
2892# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2893# -------------------------------------------
2894# Tests whether TYPE exists after having included INCLUDES, setting cache
2895# variable VAR accordingly.
2896ac_fn_c_check_type ()
2897{
2898  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2899  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2900$as_echo_n "checking for $2... " >&6; }
2901if eval \${$3+:} false; then :
2902  $as_echo_n "(cached) " >&6
2903else
2904  eval "$3=no"
2905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h.  */
2907$4
2908int
2909main ()
2910{
2911if (sizeof ($2))
2912	 return 0;
2913  ;
2914  return 0;
2915}
2916_ACEOF
2917if ac_fn_c_try_compile "$LINENO"; then :
2918  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2919/* end confdefs.h.  */
2920$4
2921int
2922main ()
2923{
2924if (sizeof (($2)))
2925	    return 0;
2926  ;
2927  return 0;
2928}
2929_ACEOF
2930if ac_fn_c_try_compile "$LINENO"; then :
2931
2932else
2933  eval "$3=yes"
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936fi
2937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2938fi
2939eval ac_res=\$$3
2940	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2941$as_echo "$ac_res" >&6; }
2942  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2943
2944} # ac_fn_c_check_type
2945
2946# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2947# ----------------------------------------------------
2948# Tries to find if the field MEMBER exists in type AGGR, after including
2949# INCLUDES, setting cache variable VAR accordingly.
2950ac_fn_c_check_member ()
2951{
2952  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2954$as_echo_n "checking for $2.$3... " >&6; }
2955if eval \${$4+:} false; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960$5
2961int
2962main ()
2963{
2964static $2 ac_aggr;
2965if (ac_aggr.$3)
2966return 0;
2967  ;
2968  return 0;
2969}
2970_ACEOF
2971if ac_fn_c_try_compile "$LINENO"; then :
2972  eval "$4=yes"
2973else
2974  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975/* end confdefs.h.  */
2976$5
2977int
2978main ()
2979{
2980static $2 ac_aggr;
2981if (sizeof ac_aggr.$3)
2982return 0;
2983  ;
2984  return 0;
2985}
2986_ACEOF
2987if ac_fn_c_try_compile "$LINENO"; then :
2988  eval "$4=yes"
2989else
2990  eval "$4=no"
2991fi
2992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2993fi
2994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995fi
2996eval ac_res=\$$4
2997	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2998$as_echo "$ac_res" >&6; }
2999  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3000
3001} # ac_fn_c_check_member
3002
3003# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
3004# ---------------------------------------------
3005# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3006# accordingly.
3007ac_fn_c_check_decl ()
3008{
3009  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3010  as_decl_name=`echo $2|sed 's/ *(.*//'`
3011  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3013$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
3014if eval \${$3+:} false; then :
3015  $as_echo_n "(cached) " >&6
3016else
3017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018/* end confdefs.h.  */
3019$4
3020int
3021main ()
3022{
3023#ifndef $as_decl_name
3024#ifdef __cplusplus
3025  (void) $as_decl_use;
3026#else
3027  (void) $as_decl_name;
3028#endif
3029#endif
3030
3031  ;
3032  return 0;
3033}
3034_ACEOF
3035if ac_fn_c_try_compile "$LINENO"; then :
3036  eval "$3=yes"
3037else
3038  eval "$3=no"
3039fi
3040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3041fi
3042eval ac_res=\$$3
3043	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3044$as_echo "$ac_res" >&6; }
3045  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3046
3047} # ac_fn_c_check_decl
3048
3049# ac_fn_c_find_intX_t LINENO BITS VAR
3050# -----------------------------------
3051# Finds a signed integer type with width BITS, setting cache variable VAR
3052# accordingly.
3053ac_fn_c_find_intX_t ()
3054{
3055  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
3057$as_echo_n "checking for int$2_t... " >&6; }
3058if eval \${$3+:} false; then :
3059  $as_echo_n "(cached) " >&6
3060else
3061  eval "$3=no"
3062     # Order is important - never check a type that is potentially smaller
3063     # than half of the expected target width.
3064     for ac_type in int$2_t 'int' 'long int' \
3065	 'long long int' 'short int' 'signed char'; do
3066       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067/* end confdefs.h.  */
3068$ac_includes_default
3069	     enum { N = $2 / 2 - 1 };
3070int
3071main ()
3072{
3073static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
3074test_array [0] = 0;
3075return test_array [0];
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081if ac_fn_c_try_compile "$LINENO"; then :
3082  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3083/* end confdefs.h.  */
3084$ac_includes_default
3085	        enum { N = $2 / 2 - 1 };
3086int
3087main ()
3088{
3089static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3090		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
3091test_array [0] = 0;
3092return test_array [0];
3093
3094  ;
3095  return 0;
3096}
3097_ACEOF
3098if ac_fn_c_try_compile "$LINENO"; then :
3099
3100else
3101  case $ac_type in #(
3102  int$2_t) :
3103    eval "$3=yes" ;; #(
3104  *) :
3105    eval "$3=\$ac_type" ;;
3106esac
3107fi
3108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3109fi
3110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3111       if eval test \"x\$"$3"\" = x"no"; then :
3112
3113else
3114  break
3115fi
3116     done
3117fi
3118eval ac_res=\$$3
3119	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3120$as_echo "$ac_res" >&6; }
3121  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3122
3123} # ac_fn_c_find_intX_t
3124
3125# ac_fn_c_find_uintX_t LINENO BITS VAR
3126# ------------------------------------
3127# Finds an unsigned integer type with width BITS, setting cache variable VAR
3128# accordingly.
3129ac_fn_c_find_uintX_t ()
3130{
3131  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3133$as_echo_n "checking for uint$2_t... " >&6; }
3134if eval \${$3+:} false; then :
3135  $as_echo_n "(cached) " >&6
3136else
3137  eval "$3=no"
3138     # Order is important - never check a type that is potentially smaller
3139     # than half of the expected target width.
3140     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3141	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3142       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3143/* end confdefs.h.  */
3144$ac_includes_default
3145int
3146main ()
3147{
3148static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
3149test_array [0] = 0;
3150return test_array [0];
3151
3152  ;
3153  return 0;
3154}
3155_ACEOF
3156if ac_fn_c_try_compile "$LINENO"; then :
3157  case $ac_type in #(
3158  uint$2_t) :
3159    eval "$3=yes" ;; #(
3160  *) :
3161    eval "$3=\$ac_type" ;;
3162esac
3163fi
3164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3165       if eval test \"x\$"$3"\" = x"no"; then :
3166
3167else
3168  break
3169fi
3170     done
3171fi
3172eval ac_res=\$$3
3173	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3174$as_echo "$ac_res" >&6; }
3175  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3176
3177} # ac_fn_c_find_uintX_t
3178
3179# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3180# ---------------------------------------------------------
3181# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3182# the include files in INCLUDES and setting the cache variable VAR
3183# accordingly.
3184ac_fn_cxx_check_header_mongrel ()
3185{
3186  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3187  if eval \${$3+:} false; then :
3188  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3189$as_echo_n "checking for $2... " >&6; }
3190if eval \${$3+:} false; then :
3191  $as_echo_n "(cached) " >&6
3192fi
3193eval ac_res=\$$3
3194	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3195$as_echo "$ac_res" >&6; }
3196else
3197  # Is the header compilable?
3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3199$as_echo_n "checking $2 usability... " >&6; }
3200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201/* end confdefs.h.  */
3202$4
3203#include <$2>
3204_ACEOF
3205if ac_fn_cxx_try_compile "$LINENO"; then :
3206  ac_header_compiler=yes
3207else
3208  ac_header_compiler=no
3209fi
3210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3212$as_echo "$ac_header_compiler" >&6; }
3213
3214# Is the header present?
3215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3216$as_echo_n "checking $2 presence... " >&6; }
3217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218/* end confdefs.h.  */
3219#include <$2>
3220_ACEOF
3221if ac_fn_cxx_try_cpp "$LINENO"; then :
3222  ac_header_preproc=yes
3223else
3224  ac_header_preproc=no
3225fi
3226rm -f conftest.err conftest.i conftest.$ac_ext
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3228$as_echo "$ac_header_preproc" >&6; }
3229
3230# So?  What about this header?
3231case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3232  yes:no: )
3233    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3234$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3235    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3236$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3237    ;;
3238  no:yes:* )
3239    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3240$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3241    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3242$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3243    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3244$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3245    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3246$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3247    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3248$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3249( $as_echo "## ---------------------------------------------------------------- ##
3250## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
3251## ---------------------------------------------------------------- ##"
3252     ) | sed "s/^/$as_me: WARNING:     /" >&2
3253    ;;
3254esac
3255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3256$as_echo_n "checking for $2... " >&6; }
3257if eval \${$3+:} false; then :
3258  $as_echo_n "(cached) " >&6
3259else
3260  eval "$3=\$ac_header_compiler"
3261fi
3262eval ac_res=\$$3
3263	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3264$as_echo "$ac_res" >&6; }
3265fi
3266  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3267
3268} # ac_fn_cxx_check_header_mongrel
3269cat >config.log <<_ACEOF
3270This file contains any messages produced by compilers while
3271running configure, to aid debugging if configure makes a mistake.
3272
3273It was created by ImageMagick $as_me 7.0.8-32, which was
3274generated by GNU Autoconf 2.69.  Invocation command line was
3275
3276  $ $0 $@
3277
3278_ACEOF
3279exec 5>>config.log
3280{
3281cat <<_ASUNAME
3282## --------- ##
3283## Platform. ##
3284## --------- ##
3285
3286hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3287uname -m = `(uname -m) 2>/dev/null || echo unknown`
3288uname -r = `(uname -r) 2>/dev/null || echo unknown`
3289uname -s = `(uname -s) 2>/dev/null || echo unknown`
3290uname -v = `(uname -v) 2>/dev/null || echo unknown`
3291
3292/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3293/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3294
3295/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3296/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3297/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3298/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3299/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3300/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3301/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3302
3303_ASUNAME
3304
3305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306for as_dir in $PATH
3307do
3308  IFS=$as_save_IFS
3309  test -z "$as_dir" && as_dir=.
3310    $as_echo "PATH: $as_dir"
3311  done
3312IFS=$as_save_IFS
3313
3314} >&5
3315
3316cat >&5 <<_ACEOF
3317
3318
3319## ----------- ##
3320## Core tests. ##
3321## ----------- ##
3322
3323_ACEOF
3324
3325
3326# Keep a trace of the command line.
3327# Strip out --no-create and --no-recursion so they do not pile up.
3328# Strip out --silent because we don't want to record it for future runs.
3329# Also quote any args containing shell meta-characters.
3330# Make two passes to allow for proper duplicate-argument suppression.
3331ac_configure_args=
3332ac_configure_args0=
3333ac_configure_args1=
3334ac_must_keep_next=false
3335for ac_pass in 1 2
3336do
3337  for ac_arg
3338  do
3339    case $ac_arg in
3340    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3341    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3342    | -silent | --silent | --silen | --sile | --sil)
3343      continue ;;
3344    *\'*)
3345      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3346    esac
3347    case $ac_pass in
3348    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3349    2)
3350      as_fn_append ac_configure_args1 " '$ac_arg'"
3351      if test $ac_must_keep_next = true; then
3352	ac_must_keep_next=false # Got value, back to normal.
3353      else
3354	case $ac_arg in
3355	  *=* | --config-cache | -C | -disable-* | --disable-* \
3356	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3357	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3358	  | -with-* | --with-* | -without-* | --without-* | --x)
3359	    case "$ac_configure_args0 " in
3360	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3361	    esac
3362	    ;;
3363	  -* ) ac_must_keep_next=true ;;
3364	esac
3365      fi
3366      as_fn_append ac_configure_args " '$ac_arg'"
3367      ;;
3368    esac
3369  done
3370done
3371{ ac_configure_args0=; unset ac_configure_args0;}
3372{ ac_configure_args1=; unset ac_configure_args1;}
3373
3374# When interrupted or exit'd, cleanup temporary files, and complete
3375# config.log.  We remove comments because anyway the quotes in there
3376# would cause problems or look ugly.
3377# WARNING: Use '\'' to represent an apostrophe within the trap.
3378# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3379trap 'exit_status=$?
3380  # Save into config.log some information that might help in debugging.
3381  {
3382    echo
3383
3384    $as_echo "## ---------------- ##
3385## Cache variables. ##
3386## ---------------- ##"
3387    echo
3388    # The following way of writing the cache mishandles newlines in values,
3389(
3390  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3391    eval ac_val=\$$ac_var
3392    case $ac_val in #(
3393    *${as_nl}*)
3394      case $ac_var in #(
3395      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3396$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3397      esac
3398      case $ac_var in #(
3399      _ | IFS | as_nl) ;; #(
3400      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3401      *) { eval $ac_var=; unset $ac_var;} ;;
3402      esac ;;
3403    esac
3404  done
3405  (set) 2>&1 |
3406    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3407    *${as_nl}ac_space=\ *)
3408      sed -n \
3409	"s/'\''/'\''\\\\'\'''\''/g;
3410	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3411      ;; #(
3412    *)
3413      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3414      ;;
3415    esac |
3416    sort
3417)
3418    echo
3419
3420    $as_echo "## ----------------- ##
3421## Output variables. ##
3422## ----------------- ##"
3423    echo
3424    for ac_var in $ac_subst_vars
3425    do
3426      eval ac_val=\$$ac_var
3427      case $ac_val in
3428      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3429      esac
3430      $as_echo "$ac_var='\''$ac_val'\''"
3431    done | sort
3432    echo
3433
3434    if test -n "$ac_subst_files"; then
3435      $as_echo "## ------------------- ##
3436## File substitutions. ##
3437## ------------------- ##"
3438      echo
3439      for ac_var in $ac_subst_files
3440      do
3441	eval ac_val=\$$ac_var
3442	case $ac_val in
3443	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3444	esac
3445	$as_echo "$ac_var='\''$ac_val'\''"
3446      done | sort
3447      echo
3448    fi
3449
3450    if test -s confdefs.h; then
3451      $as_echo "## ----------- ##
3452## confdefs.h. ##
3453## ----------- ##"
3454      echo
3455      cat confdefs.h
3456      echo
3457    fi
3458    test "$ac_signal" != 0 &&
3459      $as_echo "$as_me: caught signal $ac_signal"
3460    $as_echo "$as_me: exit $exit_status"
3461  } >&5
3462  rm -f core *.core core.conftest.* &&
3463    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3464    exit $exit_status
3465' 0
3466for ac_signal in 1 2 13 15; do
3467  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3468done
3469ac_signal=0
3470
3471# confdefs.h avoids OS command line length limits that DEFS can exceed.
3472rm -f -r conftest* confdefs.h
3473
3474$as_echo "/* confdefs.h */" > confdefs.h
3475
3476# Predefined preprocessor variables.
3477
3478cat >>confdefs.h <<_ACEOF
3479#define PACKAGE_NAME "$PACKAGE_NAME"
3480_ACEOF
3481
3482cat >>confdefs.h <<_ACEOF
3483#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3484_ACEOF
3485
3486cat >>confdefs.h <<_ACEOF
3487#define PACKAGE_VERSION "$PACKAGE_VERSION"
3488_ACEOF
3489
3490cat >>confdefs.h <<_ACEOF
3491#define PACKAGE_STRING "$PACKAGE_STRING"
3492_ACEOF
3493
3494cat >>confdefs.h <<_ACEOF
3495#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3496_ACEOF
3497
3498cat >>confdefs.h <<_ACEOF
3499#define PACKAGE_URL "$PACKAGE_URL"
3500_ACEOF
3501
3502
3503# Let the site file select an alternate cache file if it wants to.
3504# Prefer an explicitly selected file to automatically selected ones.
3505ac_site_file1=NONE
3506ac_site_file2=NONE
3507if test -n "$CONFIG_SITE"; then
3508  # We do not want a PATH search for config.site.
3509  case $CONFIG_SITE in #((
3510    -*)  ac_site_file1=./$CONFIG_SITE;;
3511    */*) ac_site_file1=$CONFIG_SITE;;
3512    *)   ac_site_file1=./$CONFIG_SITE;;
3513  esac
3514elif test "x$prefix" != xNONE; then
3515  ac_site_file1=$prefix/share/config.site
3516  ac_site_file2=$prefix/etc/config.site
3517else
3518  ac_site_file1=$ac_default_prefix/share/config.site
3519  ac_site_file2=$ac_default_prefix/etc/config.site
3520fi
3521for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3522do
3523  test "x$ac_site_file" = xNONE && continue
3524  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3525    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3526$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3527    sed 's/^/| /' "$ac_site_file" >&5
3528    . "$ac_site_file" \
3529      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error $? "failed to load site script $ac_site_file
3532See \`config.log' for more details" "$LINENO" 5; }
3533  fi
3534done
3535
3536if test -r "$cache_file"; then
3537  # Some versions of bash will fail to source /dev/null (special files
3538  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3539  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3540    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3541$as_echo "$as_me: loading cache $cache_file" >&6;}
3542    case $cache_file in
3543      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3544      *)                      . "./$cache_file";;
3545    esac
3546  fi
3547else
3548  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3549$as_echo "$as_me: creating cache $cache_file" >&6;}
3550  >$cache_file
3551fi
3552
3553as_fn_append ac_header_list " stdlib.h"
3554as_fn_append ac_header_list " unistd.h"
3555as_fn_append ac_header_list " sys/param.h"
3556# Check that the precious variables saved in the cache have kept the same
3557# value.
3558ac_cache_corrupted=false
3559for ac_var in $ac_precious_vars; do
3560  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3561  eval ac_new_set=\$ac_env_${ac_var}_set
3562  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3563  eval ac_new_val=\$ac_env_${ac_var}_value
3564  case $ac_old_set,$ac_new_set in
3565    set,)
3566      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3567$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3568      ac_cache_corrupted=: ;;
3569    ,set)
3570      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3571$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3572      ac_cache_corrupted=: ;;
3573    ,);;
3574    *)
3575      if test "x$ac_old_val" != "x$ac_new_val"; then
3576	# differences in whitespace do not lead to failure.
3577	ac_old_val_w=`echo x $ac_old_val`
3578	ac_new_val_w=`echo x $ac_new_val`
3579	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3580	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3581$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3582	  ac_cache_corrupted=:
3583	else
3584	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3585$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3586	  eval $ac_var=\$ac_old_val
3587	fi
3588	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3589$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3590	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3591$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3592      fi;;
3593  esac
3594  # Pass precious variables to config.status.
3595  if test "$ac_new_set" = set; then
3596    case $ac_new_val in
3597    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3598    *) ac_arg=$ac_var=$ac_new_val ;;
3599    esac
3600    case " $ac_configure_args " in
3601      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3602      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3603    esac
3604  fi
3605done
3606if $ac_cache_corrupted; then
3607  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3610$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3611  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3612fi
3613## -------------------- ##
3614## Main body of script. ##
3615## -------------------- ##
3616
3617ac_ext=c
3618ac_cpp='$CPP $CPPFLAGS'
3619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623
3624
3625ac_aux_dir=
3626for ac_dir in config "$srcdir"/config; do
3627  if test -f "$ac_dir/install-sh"; then
3628    ac_aux_dir=$ac_dir
3629    ac_install_sh="$ac_aux_dir/install-sh -c"
3630    break
3631  elif test -f "$ac_dir/install.sh"; then
3632    ac_aux_dir=$ac_dir
3633    ac_install_sh="$ac_aux_dir/install.sh -c"
3634    break
3635  elif test -f "$ac_dir/shtool"; then
3636    ac_aux_dir=$ac_dir
3637    ac_install_sh="$ac_aux_dir/shtool install -c"
3638    break
3639  fi
3640done
3641if test -z "$ac_aux_dir"; then
3642  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3643fi
3644
3645# These three variables are undocumented and unsupported,
3646# and are intended to be withdrawn in a future Autoconf release.
3647# They can cause serious problems if a builder's source tree is in a directory
3648# whose full name contains unusual characters.
3649ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3650ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3651ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3652
3653
3654
3655
3656ac_config_headers="$ac_config_headers config/config.h"
3657
3658
3659ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
3660
3661# Make sure we can run config.sub.
3662$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3663  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3664
3665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3666$as_echo_n "checking build system type... " >&6; }
3667if ${ac_cv_build+:} false; then :
3668  $as_echo_n "(cached) " >&6
3669else
3670  ac_build_alias=$build_alias
3671test "x$ac_build_alias" = x &&
3672  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3673test "x$ac_build_alias" = x &&
3674  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3675ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3676  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3677
3678fi
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3680$as_echo "$ac_cv_build" >&6; }
3681case $ac_cv_build in
3682*-*-*) ;;
3683*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3684esac
3685build=$ac_cv_build
3686ac_save_IFS=$IFS; IFS='-'
3687set x $ac_cv_build
3688shift
3689build_cpu=$1
3690build_vendor=$2
3691shift; shift
3692# Remember, the first character of IFS is used to create $*,
3693# except with old shells:
3694build_os=$*
3695IFS=$ac_save_IFS
3696case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3697
3698
3699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3700$as_echo_n "checking host system type... " >&6; }
3701if ${ac_cv_host+:} false; then :
3702  $as_echo_n "(cached) " >&6
3703else
3704  if test "x$host_alias" = x; then
3705  ac_cv_host=$ac_cv_build
3706else
3707  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3708    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3709fi
3710
3711fi
3712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3713$as_echo "$ac_cv_host" >&6; }
3714case $ac_cv_host in
3715*-*-*) ;;
3716*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3717esac
3718host=$ac_cv_host
3719ac_save_IFS=$IFS; IFS='-'
3720set x $ac_cv_host
3721shift
3722host_cpu=$1
3723host_vendor=$2
3724shift; shift
3725# Remember, the first character of IFS is used to create $*,
3726# except with old shells:
3727host_os=$*
3728IFS=$ac_save_IFS
3729case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3730
3731
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3733$as_echo_n "checking target system type... " >&6; }
3734if ${ac_cv_target+:} false; then :
3735  $as_echo_n "(cached) " >&6
3736else
3737  if test "x$target_alias" = x; then
3738  ac_cv_target=$ac_cv_host
3739else
3740  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3741    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3742fi
3743
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3746$as_echo "$ac_cv_target" >&6; }
3747case $ac_cv_target in
3748*-*-*) ;;
3749*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3750esac
3751target=$ac_cv_target
3752ac_save_IFS=$IFS; IFS='-'
3753set x $ac_cv_target
3754shift
3755target_cpu=$1
3756target_vendor=$2
3757shift; shift
3758# Remember, the first character of IFS is used to create $*,
3759# except with old shells:
3760target_os=$*
3761IFS=$ac_save_IFS
3762case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3763
3764
3765# The aliases save the names the user supplied, while $host etc.
3766# will get canonicalized.
3767test -n "$target_alias" &&
3768  test "$program_prefix$program_suffix$program_transform_name" = \
3769    NONENONEs,x,x, &&
3770  program_prefix=${target_alias}-
3771
3772
3773am__api_version='1.16'
3774
3775# Find a good install program.  We prefer a C program (faster),
3776# so one script is as good as another.  But avoid the broken or
3777# incompatible versions:
3778# SysV /etc/install, /usr/sbin/install
3779# SunOS /usr/etc/install
3780# IRIX /sbin/install
3781# AIX /bin/install
3782# AmigaOS /C/install, which installs bootblocks on floppy discs
3783# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3784# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3785# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3786# OS/2's system install, which has a completely different semantic
3787# ./install, which can be erroneously created by make from ./install.sh.
3788# Reject install programs that cannot install multiple files.
3789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3790$as_echo_n "checking for a BSD-compatible install... " >&6; }
3791if test -z "$INSTALL"; then
3792if ${ac_cv_path_install+:} false; then :
3793  $as_echo_n "(cached) " >&6
3794else
3795  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
3797do
3798  IFS=$as_save_IFS
3799  test -z "$as_dir" && as_dir=.
3800    # Account for people who put trailing slashes in PATH elements.
3801case $as_dir/ in #((
3802  ./ | .// | /[cC]/* | \
3803  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3804  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3805  /usr/ucb/* ) ;;
3806  *)
3807    # OSF1 and SCO ODT 3.0 have their own names for install.
3808    # Don't use installbsd from OSF since it installs stuff as root
3809    # by default.
3810    for ac_prog in ginstall scoinst install; do
3811      for ac_exec_ext in '' $ac_executable_extensions; do
3812	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3813	  if test $ac_prog = install &&
3814	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3815	    # AIX install.  It has an incompatible calling convention.
3816	    :
3817	  elif test $ac_prog = install &&
3818	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3819	    # program-specific install script used by HP pwplus--don't use.
3820	    :
3821	  else
3822	    rm -rf conftest.one conftest.two conftest.dir
3823	    echo one > conftest.one
3824	    echo two > conftest.two
3825	    mkdir conftest.dir
3826	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3827	      test -s conftest.one && test -s conftest.two &&
3828	      test -s conftest.dir/conftest.one &&
3829	      test -s conftest.dir/conftest.two
3830	    then
3831	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3832	      break 3
3833	    fi
3834	  fi
3835	fi
3836      done
3837    done
3838    ;;
3839esac
3840
3841  done
3842IFS=$as_save_IFS
3843
3844rm -rf conftest.one conftest.two conftest.dir
3845
3846fi
3847  if test "${ac_cv_path_install+set}" = set; then
3848    INSTALL=$ac_cv_path_install
3849  else
3850    # As a last resort, use the slow shell script.  Don't cache a
3851    # value for INSTALL within a source directory, because that will
3852    # break other packages using the cache if that directory is
3853    # removed, or if the value is a relative name.
3854    INSTALL=$ac_install_sh
3855  fi
3856fi
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3858$as_echo "$INSTALL" >&6; }
3859
3860# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3861# It thinks the first close brace ends the variable substitution.
3862test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3863
3864test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3865
3866test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3867
3868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3869$as_echo_n "checking whether build environment is sane... " >&6; }
3870# Reject unsafe characters in $srcdir or the absolute working directory
3871# name.  Accept space and tab only in the latter.
3872am_lf='
3873'
3874case `pwd` in
3875  *[\\\"\#\$\&\'\`$am_lf]*)
3876    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3877esac
3878case $srcdir in
3879  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3880    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3881esac
3882
3883# Do 'set' in a subshell so we don't clobber the current shell's
3884# arguments.  Must try -L first in case configure is actually a
3885# symlink; some systems play weird games with the mod time of symlinks
3886# (eg FreeBSD returns the mod time of the symlink's containing
3887# directory).
3888if (
3889   am_has_slept=no
3890   for am_try in 1 2; do
3891     echo "timestamp, slept: $am_has_slept" > conftest.file
3892     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3893     if test "$*" = "X"; then
3894	# -L didn't work.
3895	set X `ls -t "$srcdir/configure" conftest.file`
3896     fi
3897     if test "$*" != "X $srcdir/configure conftest.file" \
3898	&& test "$*" != "X conftest.file $srcdir/configure"; then
3899
3900	# If neither matched, then we have a broken ls.  This can happen
3901	# if, for instance, CONFIG_SHELL is bash and it inherits a
3902	# broken ls alias from the environment.  This has actually
3903	# happened.  Such a system could not be considered "sane".
3904	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3905  alias in your environment" "$LINENO" 5
3906     fi
3907     if test "$2" = conftest.file || test $am_try -eq 2; then
3908       break
3909     fi
3910     # Just in case.
3911     sleep 1
3912     am_has_slept=yes
3913   done
3914   test "$2" = conftest.file
3915   )
3916then
3917   # Ok.
3918   :
3919else
3920   as_fn_error $? "newly created file is older than distributed files!
3921Check your system clock" "$LINENO" 5
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3924$as_echo "yes" >&6; }
3925# If we didn't sleep, we still need to ensure time stamps of config.status and
3926# generated files are strictly newer.
3927am_sleep_pid=
3928if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3929  ( sleep 1 ) &
3930  am_sleep_pid=$!
3931fi
3932
3933rm -f conftest.file
3934
3935test "$program_prefix" != NONE &&
3936  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3937# Use a double $ so make ignores it.
3938test "$program_suffix" != NONE &&
3939  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3940# Double any \ or $.
3941# By default was `s,x,x', remove it if useless.
3942ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3943program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3944
3945# Expand $ac_aux_dir to an absolute path.
3946am_aux_dir=`cd "$ac_aux_dir" && pwd`
3947
3948if test x"${MISSING+set}" != xset; then
3949  case $am_aux_dir in
3950  *\ * | *\	*)
3951    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3952  *)
3953    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3954  esac
3955fi
3956# Use eval to expand $SHELL
3957if eval "$MISSING --is-lightweight"; then
3958  am_missing_run="$MISSING "
3959else
3960  am_missing_run=
3961  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3962$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3963fi
3964
3965if test x"${install_sh+set}" != xset; then
3966  case $am_aux_dir in
3967  *\ * | *\	*)
3968    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3969  *)
3970    install_sh="\${SHELL} $am_aux_dir/install-sh"
3971  esac
3972fi
3973
3974# Installed binaries are usually stripped using 'strip' when the user
3975# run "make install-strip".  However 'strip' might not be the right
3976# tool to use in cross-compilation environments, therefore Automake
3977# will honor the 'STRIP' environment variable to overrule this program.
3978if test "$cross_compiling" != no; then
3979  if test -n "$ac_tool_prefix"; then
3980  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3981set dummy ${ac_tool_prefix}strip; ac_word=$2
3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983$as_echo_n "checking for $ac_word... " >&6; }
3984if ${ac_cv_prog_STRIP+:} false; then :
3985  $as_echo_n "(cached) " >&6
3986else
3987  if test -n "$STRIP"; then
3988  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3989else
3990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991for as_dir in $PATH
3992do
3993  IFS=$as_save_IFS
3994  test -z "$as_dir" && as_dir=.
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3997    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3998    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999    break 2
4000  fi
4001done
4002  done
4003IFS=$as_save_IFS
4004
4005fi
4006fi
4007STRIP=$ac_cv_prog_STRIP
4008if test -n "$STRIP"; then
4009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4010$as_echo "$STRIP" >&6; }
4011else
4012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013$as_echo "no" >&6; }
4014fi
4015
4016
4017fi
4018if test -z "$ac_cv_prog_STRIP"; then
4019  ac_ct_STRIP=$STRIP
4020  # Extract the first word of "strip", so it can be a program name with args.
4021set dummy strip; ac_word=$2
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023$as_echo_n "checking for $ac_word... " >&6; }
4024if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  if test -n "$ac_ct_STRIP"; then
4028  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4029else
4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4031for as_dir in $PATH
4032do
4033  IFS=$as_save_IFS
4034  test -z "$as_dir" && as_dir=.
4035    for ac_exec_ext in '' $ac_executable_extensions; do
4036  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4037    ac_cv_prog_ac_ct_STRIP="strip"
4038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4039    break 2
4040  fi
4041done
4042  done
4043IFS=$as_save_IFS
4044
4045fi
4046fi
4047ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4048if test -n "$ac_ct_STRIP"; then
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4050$as_echo "$ac_ct_STRIP" >&6; }
4051else
4052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053$as_echo "no" >&6; }
4054fi
4055
4056  if test "x$ac_ct_STRIP" = x; then
4057    STRIP=":"
4058  else
4059    case $cross_compiling:$ac_tool_warned in
4060yes:)
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4063ac_tool_warned=yes ;;
4064esac
4065    STRIP=$ac_ct_STRIP
4066  fi
4067else
4068  STRIP="$ac_cv_prog_STRIP"
4069fi
4070
4071fi
4072INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4073
4074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4075$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4076if test -z "$MKDIR_P"; then
4077  if ${ac_cv_path_mkdir+:} false; then :
4078  $as_echo_n "(cached) " >&6
4079else
4080  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4081for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4082do
4083  IFS=$as_save_IFS
4084  test -z "$as_dir" && as_dir=.
4085    for ac_prog in mkdir gmkdir; do
4086	 for ac_exec_ext in '' $ac_executable_extensions; do
4087	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4088	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4089	     'mkdir (GNU coreutils) '* | \
4090	     'mkdir (coreutils) '* | \
4091	     'mkdir (fileutils) '4.1*)
4092	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4093	       break 3;;
4094	   esac
4095	 done
4096       done
4097  done
4098IFS=$as_save_IFS
4099
4100fi
4101
4102  test -d ./--version && rmdir ./--version
4103  if test "${ac_cv_path_mkdir+set}" = set; then
4104    MKDIR_P="$ac_cv_path_mkdir -p"
4105  else
4106    # As a last resort, use the slow shell script.  Don't cache a
4107    # value for MKDIR_P within a source directory, because that will
4108    # break other packages using the cache if that directory is
4109    # removed, or if the value is a relative name.
4110    MKDIR_P="$ac_install_sh -d"
4111  fi
4112fi
4113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4114$as_echo "$MKDIR_P" >&6; }
4115
4116for ac_prog in gawk mawk nawk awk
4117do
4118  # Extract the first word of "$ac_prog", so it can be a program name with args.
4119set dummy $ac_prog; ac_word=$2
4120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121$as_echo_n "checking for $ac_word... " >&6; }
4122if ${ac_cv_prog_AWK+:} false; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  if test -n "$AWK"; then
4126  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4127else
4128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129for as_dir in $PATH
4130do
4131  IFS=$as_save_IFS
4132  test -z "$as_dir" && as_dir=.
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4135    ac_cv_prog_AWK="$ac_prog"
4136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137    break 2
4138  fi
4139done
4140  done
4141IFS=$as_save_IFS
4142
4143fi
4144fi
4145AWK=$ac_cv_prog_AWK
4146if test -n "$AWK"; then
4147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4148$as_echo "$AWK" >&6; }
4149else
4150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151$as_echo "no" >&6; }
4152fi
4153
4154
4155  test -n "$AWK" && break
4156done
4157
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4159$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4160set x ${MAKE-make}
4161ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4162if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4163  $as_echo_n "(cached) " >&6
4164else
4165  cat >conftest.make <<\_ACEOF
4166SHELL = /bin/sh
4167all:
4168	@echo '@@@%%%=$(MAKE)=@@@%%%'
4169_ACEOF
4170# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4171case `${MAKE-make} -f conftest.make 2>/dev/null` in
4172  *@@@%%%=?*=@@@%%%*)
4173    eval ac_cv_prog_make_${ac_make}_set=yes;;
4174  *)
4175    eval ac_cv_prog_make_${ac_make}_set=no;;
4176esac
4177rm -f conftest.make
4178fi
4179if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4180  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4181$as_echo "yes" >&6; }
4182  SET_MAKE=
4183else
4184  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185$as_echo "no" >&6; }
4186  SET_MAKE="MAKE=${MAKE-make}"
4187fi
4188
4189rm -rf .tst 2>/dev/null
4190mkdir .tst 2>/dev/null
4191if test -d .tst; then
4192  am__leading_dot=.
4193else
4194  am__leading_dot=_
4195fi
4196rmdir .tst 2>/dev/null
4197
4198# Check whether --enable-silent-rules was given.
4199if test "${enable_silent_rules+set}" = set; then :
4200  enableval=$enable_silent_rules;
4201fi
4202
4203case $enable_silent_rules in # (((
4204  yes) AM_DEFAULT_VERBOSITY=0;;
4205   no) AM_DEFAULT_VERBOSITY=1;;
4206    *) AM_DEFAULT_VERBOSITY=1;;
4207esac
4208am_make=${MAKE-make}
4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4210$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4211if ${am_cv_make_support_nested_variables+:} false; then :
4212  $as_echo_n "(cached) " >&6
4213else
4214  if $as_echo 'TRUE=$(BAR$(V))
4215BAR0=false
4216BAR1=true
4217V=1
4218am__doit:
4219	@$(TRUE)
4220.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4221  am_cv_make_support_nested_variables=yes
4222else
4223  am_cv_make_support_nested_variables=no
4224fi
4225fi
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4227$as_echo "$am_cv_make_support_nested_variables" >&6; }
4228if test $am_cv_make_support_nested_variables = yes; then
4229    AM_V='$(V)'
4230  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4231else
4232  AM_V=$AM_DEFAULT_VERBOSITY
4233  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4234fi
4235AM_BACKSLASH='\'
4236
4237if test "`cd $srcdir && pwd`" != "`pwd`"; then
4238  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4239  # is not polluted with repeated "-I."
4240  am__isrc=' -I$(srcdir)'
4241  # test to see if srcdir already configured
4242  if test -f $srcdir/config.status; then
4243    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4244  fi
4245fi
4246
4247# test whether we have cygpath
4248if test -z "$CYGPATH_W"; then
4249  if (cygpath --version) >/dev/null 2>/dev/null; then
4250    CYGPATH_W='cygpath -w'
4251  else
4252    CYGPATH_W=echo
4253  fi
4254fi
4255
4256
4257# Define the identity of the package.
4258 PACKAGE='ImageMagick'
4259 VERSION='7.0.8-32'
4260
4261
4262cat >>confdefs.h <<_ACEOF
4263#define PACKAGE "$PACKAGE"
4264_ACEOF
4265
4266
4267cat >>confdefs.h <<_ACEOF
4268#define VERSION "$VERSION"
4269_ACEOF
4270
4271# Some tools Automake needs.
4272
4273ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4274
4275
4276AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4277
4278
4279AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4280
4281
4282AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4283
4284
4285MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4286
4287# For better backward compatibility.  To be removed once Automake 1.9.x
4288# dies out for good.  For more background, see:
4289# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4290# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4291mkdir_p='$(MKDIR_P)'
4292
4293# We need awk for the "check" target (and possibly the TAP driver).  The
4294# system "awk" is bad on some platforms.
4295# Always define AMTAR for backward compatibility.  Yes, it's still used
4296# in the wild :-(  We should find a proper way to deprecate it ...
4297AMTAR='$${TAR-tar}'
4298
4299
4300# We'll loop over all known methods to create a tar archive until one works.
4301_am_tools='gnutar plaintar pax cpio none'
4302
4303# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4304      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4305      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4306      # and bug#13588).
4307      am_max_uid=2097151 # 2^21 - 1
4308      am_max_gid=$am_max_uid
4309      # The $UID and $GID variables are not portable, so we need to resort
4310      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4311      # below are definitely unexpected, so allow the users to see them
4312      # (that is, avoid stderr redirection).
4313      am_uid=`id -u || echo unknown`
4314      am_gid=`id -g || echo unknown`
4315      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4316$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4317      if test $am_uid -le $am_max_uid; then
4318         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4319$as_echo "yes" >&6; }
4320      else
4321         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322$as_echo "no" >&6; }
4323         _am_tools=none
4324      fi
4325      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4326$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4327      if test $am_gid -le $am_max_gid; then
4328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4329$as_echo "yes" >&6; }
4330      else
4331        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4332$as_echo "no" >&6; }
4333        _am_tools=none
4334      fi
4335
4336  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4337$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4338
4339  # Go ahead even if we have the value already cached.  We do so because we
4340  # need to set the values for the 'am__tar' and 'am__untar' variables.
4341  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4342
4343  for _am_tool in $_am_tools; do
4344    case $_am_tool in
4345    gnutar)
4346      for _am_tar in tar gnutar gtar; do
4347        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4348   ($_am_tar --version) >&5 2>&5
4349   ac_status=$?
4350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351   (exit $ac_status); } && break
4352      done
4353      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4354      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4355      am__untar="$_am_tar -xf -"
4356      ;;
4357    plaintar)
4358      # Must skip GNU tar: if it does not support --format= it doesn't create
4359      # ustar tarball either.
4360      (tar --version) >/dev/null 2>&1 && continue
4361      am__tar='tar chf - "$$tardir"'
4362      am__tar_='tar chf - "$tardir"'
4363      am__untar='tar xf -'
4364      ;;
4365    pax)
4366      am__tar='pax -L -x ustar -w "$$tardir"'
4367      am__tar_='pax -L -x ustar -w "$tardir"'
4368      am__untar='pax -r'
4369      ;;
4370    cpio)
4371      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4372      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4373      am__untar='cpio -i -H ustar -d'
4374      ;;
4375    none)
4376      am__tar=false
4377      am__tar_=false
4378      am__untar=false
4379      ;;
4380    esac
4381
4382    # If the value was cached, stop now.  We just wanted to have am__tar
4383    # and am__untar set.
4384    test -n "${am_cv_prog_tar_ustar}" && break
4385
4386    # tar/untar a dummy directory, and stop if the command works.
4387    rm -rf conftest.dir
4388    mkdir conftest.dir
4389    echo GrepMe > conftest.dir/file
4390    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4391   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); }
4395    rm -rf conftest.dir
4396    if test -s conftest.tar; then
4397      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4398   ($am__untar <conftest.tar) >&5 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); }
4402      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4403   (cat conftest.dir/file) >&5 2>&5
4404   ac_status=$?
4405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406   (exit $ac_status); }
4407      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4408    fi
4409  done
4410  rm -rf conftest.dir
4411
4412  if ${am_cv_prog_tar_ustar+:} false; then :
4413  $as_echo_n "(cached) " >&6
4414else
4415  am_cv_prog_tar_ustar=$_am_tool
4416fi
4417
4418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4419$as_echo "$am_cv_prog_tar_ustar" >&6; }
4420
4421
4422
4423
4424
4425
4426# POSIX will say in a future version that running "rm -f" with no argument
4427# is OK; and we want to be able to make that assumption in our Makefile
4428# recipes.  So use an aggressive probe to check that the usage we want is
4429# actually supported "in the wild" to an acceptable degree.
4430# See automake bug#10828.
4431# To make any issue more visible, cause the running configure to be aborted
4432# by default if the 'rm' program in use doesn't match our expectations; the
4433# user can still override this though.
4434if rm -f && rm -fr && rm -rf; then : OK; else
4435  cat >&2 <<'END'
4436Oops!
4437
4438Your 'rm' program seems unable to run without file operands specified
4439on the command line, even when the '-f' option is present.  This is contrary
4440to the behaviour of most rm programs out there, and not conforming with
4441the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4442
4443Please tell bug-automake@gnu.org about your system, including the value
4444of your $PATH and any error possibly output before this message.  This
4445can help us improve future automake versions.
4446
4447END
4448  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4449    echo 'Configuration will proceed anyway, since you have set the' >&2
4450    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4451    echo >&2
4452  else
4453    cat >&2 <<'END'
4454Aborting the configuration process, to ensure you take notice of the issue.
4455
4456You can download and install GNU coreutils to get an 'rm' implementation
4457that behaves properly: <https://www.gnu.org/software/coreutils/>.
4458
4459If you want to complete the configuration process using your problematic
4460'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4461to "yes", and re-run configure.
4462
4463END
4464    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4465  fi
4466fi
4467
4468# Check whether --enable-silent-rules was given.
4469if test "${enable_silent_rules+set}" = set; then :
4470  enableval=$enable_silent_rules;
4471fi
4472
4473case $enable_silent_rules in # (((
4474  yes) AM_DEFAULT_VERBOSITY=0;;
4475   no) AM_DEFAULT_VERBOSITY=1;;
4476    *) AM_DEFAULT_VERBOSITY=0;;
4477esac
4478am_make=${MAKE-make}
4479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4480$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4481if ${am_cv_make_support_nested_variables+:} false; then :
4482  $as_echo_n "(cached) " >&6
4483else
4484  if $as_echo 'TRUE=$(BAR$(V))
4485BAR0=false
4486BAR1=true
4487V=1
4488am__doit:
4489	@$(TRUE)
4490.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4491  am_cv_make_support_nested_variables=yes
4492else
4493  am_cv_make_support_nested_variables=no
4494fi
4495fi
4496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4497$as_echo "$am_cv_make_support_nested_variables" >&6; }
4498if test $am_cv_make_support_nested_variables = yes; then
4499    AM_V='$(V)'
4500  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4501else
4502  AM_V=$AM_DEFAULT_VERBOSITY
4503  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4504fi
4505AM_BACKSLASH='\'
4506
4507
4508#
4509# Save initial user-tunable values
4510#
4511USER_LIBS=$LIBS
4512for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4513  eval isset=\${$var+set}
4514    if test "$isset" = 'set'; then
4515        eval val=$`echo $var`
4516        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4517    fi
4518done
4519
4520
4521CONFIGURE_ARGS="$0 ${ac_configure_args}"
4522
4523
4524# Check whether --enable-reproducible-build was given.
4525if test "${enable_reproducible_build+set}" = set; then :
4526  enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4527else
4528  enable_reproducible_build='no'
4529fi
4530
4531
4532# Source file containing package/library versioning information.
4533. ${srcdir}/version.sh
4534
4535echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4536
4537MAGICK_TARGET_CPU=$host_cpu
4538
4539
4540cat >>confdefs.h <<_ACEOF
4541#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4542_ACEOF
4543
4544
4545MAGICK_TARGET_VENDOR=$host_vendor
4546
4547
4548cat >>confdefs.h <<_ACEOF
4549#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4550_ACEOF
4551
4552
4553MAGICK_TARGET_OS=$host_os
4554
4555
4556cat >>confdefs.h <<_ACEOF
4557#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4558_ACEOF
4559
4560
4561
4562# Substitute versioning
4563MAGICK_MAJOR_VERSION=7
4564
4565MAGICK_MINOR_VERSION=0
4566
4567MAGICK_MICRO_VERSION=8
4568
4569MAGICK_PATCHLEVEL_VERSION=32
4570
4571MAGICK_VERSION=7.0.8-32
4572
4573MAGICK_GIT_REVISION=15382:c0ce8818e:20190304
4574
4575
4576# Substitute library versioning
4577MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4578
4579MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4580
4581
4582MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4583
4584MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4585
4586
4587if test X$enable_reproducible_build = Xyes; then :
4588  PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4589elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4590
4591fi
4592
4593
4594# Ensure that make can run correctly
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4596$as_echo_n "checking whether build environment is sane... " >&6; }
4597# Reject unsafe characters in $srcdir or the absolute working directory
4598# name.  Accept space and tab only in the latter.
4599am_lf='
4600'
4601case `pwd` in
4602  *[\\\"\#\$\&\'\`$am_lf]*)
4603    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4604esac
4605case $srcdir in
4606  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4607    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4608esac
4609
4610# Do 'set' in a subshell so we don't clobber the current shell's
4611# arguments.  Must try -L first in case configure is actually a
4612# symlink; some systems play weird games with the mod time of symlinks
4613# (eg FreeBSD returns the mod time of the symlink's containing
4614# directory).
4615if (
4616   am_has_slept=no
4617   for am_try in 1 2; do
4618     echo "timestamp, slept: $am_has_slept" > conftest.file
4619     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4620     if test "$*" = "X"; then
4621	# -L didn't work.
4622	set X `ls -t "$srcdir/configure" conftest.file`
4623     fi
4624     if test "$*" != "X $srcdir/configure conftest.file" \
4625	&& test "$*" != "X conftest.file $srcdir/configure"; then
4626
4627	# If neither matched, then we have a broken ls.  This can happen
4628	# if, for instance, CONFIG_SHELL is bash and it inherits a
4629	# broken ls alias from the environment.  This has actually
4630	# happened.  Such a system could not be considered "sane".
4631	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4632  alias in your environment" "$LINENO" 5
4633     fi
4634     if test "$2" = conftest.file || test $am_try -eq 2; then
4635       break
4636     fi
4637     # Just in case.
4638     sleep 1
4639     am_has_slept=yes
4640   done
4641   test "$2" = conftest.file
4642   )
4643then
4644   # Ok.
4645   :
4646else
4647   as_fn_error $? "newly created file is older than distributed files!
4648Check your system clock" "$LINENO" 5
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4651$as_echo "yes" >&6; }
4652# If we didn't sleep, we still need to ensure time stamps of config.status and
4653# generated files are strictly newer.
4654am_sleep_pid=
4655if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4656  ( sleep 1 ) &
4657  am_sleep_pid=$!
4658fi
4659
4660rm -f conftest.file
4661
4662
4663# versioning of library
4664MAGICK_LIB_VERSION="0x"
4665if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4666  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4667fi
4668MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4669if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4670  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4671fi
4672MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4673if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4674  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4675fi
4676MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4677
4678
4679# Definition used to define MagickLibVersionText in version.h
4680MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4681
4682
4683# Definition used to define MagickLibVersionNumber in version.h
4684MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4685
4686
4687MAGICKPP_LIB_VERSION="0x"
4688if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4689  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4690fi
4691MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4692if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4693  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4694fi
4695MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4696if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4697  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4698fi
4699MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4700
4701
4702# Definition used to define MagickLibVersionText in version.h
4703MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4704
4705
4706# Definition used to define MagickLibVersionNumber in version.h
4707MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4708
4709
4710
4711
4712# Regenerate config.status if ChangeLog or version.sh is updated.
4713CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4714
4715
4716PERLMAINCC=$CC
4717
4718MAGICK_CFLAGS=''
4719MAGICK_CPPFLAGS=$CPPFLAGS_USER
4720MAGICK_PCFLAGS=$CPPFLAGS_USER
4721MAGICK_LDFLAGS=''
4722MAGICK_LIBS=''
4723MAGICK_FEATURES=''
4724
4725#
4726# Evaluate shell variable equivalents to Makefile directory variables
4727#
4728if test "x$prefix" = xNONE; then
4729    prefix=$ac_default_prefix
4730fi
4731# Let make expand exec_prefix.
4732if test "x$exec_prefix" = xNONE; then
4733    exec_prefix='${prefix}'
4734fi
4735
4736#
4737eval "eval PREFIX_DIR=${prefix}"
4738
4739eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4740
4741eval "eval BIN_DIR=$bindir"
4742
4743eval "eval SBIN_DIR=$sbindir"
4744
4745eval "eval LIBEXEC_DIR=$libexecdir"
4746
4747eval "eval DATA_DIR=$datadir"
4748
4749eval "eval DOC_DIR=$datadir/doc"
4750
4751eval "eval SYSCONF_DIR=$sysconfdir"
4752
4753eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4754
4755eval "eval LOCALSTATE_DIR=$localstatedir"
4756
4757eval "eval LIB_DIR=$libdir"
4758
4759eval "eval INCLUDE_DIR=$includedir"
4760
4761eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4762
4763eval "eval INFO_DIR=$infodir"
4764
4765eval "eval MAN_DIR=$mandir"
4766
4767
4768# Get full paths to source and build directories
4769srcdirfull="`cd $srcdir && pwd`"
4770builddir="`pwd`"
4771
4772#
4773# Compute variables useful for running uninstalled software.
4774#
4775MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4776MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4777MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4778MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4779DIRSEP=':'
4780case "${build_os}" in
4781    mingw* )
4782        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4783        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4784        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4785        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4786        DIRSEP=';'
4787    ;;
4788esac
4789case "${host_os}" in
4790  mingw* )
4791    DIRSEP=';'
4792    ;;
4793esac
4794
4795
4796
4797
4798
4799
4800
4801#
4802# Enable OS features.
4803#
4804DEPDIR="${am__leading_dot}deps"
4805
4806ac_config_commands="$ac_config_commands depfiles"
4807
4808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4809$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4810cat > confinc.mk << 'END'
4811am__doit:
4812	@echo this is the am__doit target >confinc.out
4813.PHONY: am__doit
4814END
4815am__include="#"
4816am__quote=
4817# BSD make does it like this.
4818echo '.include "confinc.mk" # ignored' > confmf.BSD
4819# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4820echo 'include confinc.mk # ignored' > confmf.GNU
4821_am_result=no
4822for s in GNU BSD; do
4823  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4824   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4825   ac_status=$?
4826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827   (exit $ac_status); }
4828  case $?:`cat confinc.out 2>/dev/null` in #(
4829  '0:this is the am__doit target') :
4830    case $s in #(
4831  BSD) :
4832    am__include='.include' am__quote='"' ;; #(
4833  *) :
4834    am__include='include' am__quote='' ;;
4835esac ;; #(
4836  *) :
4837     ;;
4838esac
4839  if test "$am__include" != "#"; then
4840    _am_result="yes ($s style)"
4841    break
4842  fi
4843done
4844rm -f confinc.* confmf.*
4845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4846$as_echo "${_am_result}" >&6; }
4847
4848# Check whether --enable-dependency-tracking was given.
4849if test "${enable_dependency_tracking+set}" = set; then :
4850  enableval=$enable_dependency_tracking;
4851fi
4852
4853if test "x$enable_dependency_tracking" != xno; then
4854  am_depcomp="$ac_aux_dir/depcomp"
4855  AMDEPBACKSLASH='\'
4856  am__nodep='_no'
4857fi
4858 if test "x$enable_dependency_tracking" != xno; then
4859  AMDEP_TRUE=
4860  AMDEP_FALSE='#'
4861else
4862  AMDEP_TRUE='#'
4863  AMDEP_FALSE=
4864fi
4865
4866
4867ac_ext=c
4868ac_cpp='$CPP $CPPFLAGS'
4869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4871ac_compiler_gnu=$ac_cv_c_compiler_gnu
4872if test -n "$ac_tool_prefix"; then
4873  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4874set dummy ${ac_tool_prefix}gcc; ac_word=$2
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4876$as_echo_n "checking for $ac_word... " >&6; }
4877if ${ac_cv_prog_CC+:} false; then :
4878  $as_echo_n "(cached) " >&6
4879else
4880  if test -n "$CC"; then
4881  ac_cv_prog_CC="$CC" # Let the user override the test.
4882else
4883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884for as_dir in $PATH
4885do
4886  IFS=$as_save_IFS
4887  test -z "$as_dir" && as_dir=.
4888    for ac_exec_ext in '' $ac_executable_extensions; do
4889  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4890    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4891    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892    break 2
4893  fi
4894done
4895  done
4896IFS=$as_save_IFS
4897
4898fi
4899fi
4900CC=$ac_cv_prog_CC
4901if test -n "$CC"; then
4902  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4903$as_echo "$CC" >&6; }
4904else
4905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908
4909
4910fi
4911if test -z "$ac_cv_prog_CC"; then
4912  ac_ct_CC=$CC
4913  # Extract the first word of "gcc", so it can be a program name with args.
4914set dummy gcc; ac_word=$2
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4916$as_echo_n "checking for $ac_word... " >&6; }
4917if ${ac_cv_prog_ac_ct_CC+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if test -n "$ac_ct_CC"; then
4921  ac_cv_prog_ac_ct_CC="$ac_ct_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=.
4928    for ac_exec_ext in '' $ac_executable_extensions; do
4929  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4930    ac_cv_prog_ac_ct_CC="gcc"
4931    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932    break 2
4933  fi
4934done
4935  done
4936IFS=$as_save_IFS
4937
4938fi
4939fi
4940ac_ct_CC=$ac_cv_prog_ac_ct_CC
4941if test -n "$ac_ct_CC"; then
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4943$as_echo "$ac_ct_CC" >&6; }
4944else
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946$as_echo "no" >&6; }
4947fi
4948
4949  if test "x$ac_ct_CC" = x; then
4950    CC=""
4951  else
4952    case $cross_compiling:$ac_tool_warned in
4953yes:)
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4955$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4956ac_tool_warned=yes ;;
4957esac
4958    CC=$ac_ct_CC
4959  fi
4960else
4961  CC="$ac_cv_prog_CC"
4962fi
4963
4964if test -z "$CC"; then
4965          if test -n "$ac_tool_prefix"; then
4966    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4967set dummy ${ac_tool_prefix}cc; ac_word=$2
4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969$as_echo_n "checking for $ac_word... " >&6; }
4970if ${ac_cv_prog_CC+:} false; then :
4971  $as_echo_n "(cached) " >&6
4972else
4973  if test -n "$CC"; then
4974  ac_cv_prog_CC="$CC" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979  IFS=$as_save_IFS
4980  test -z "$as_dir" && as_dir=.
4981    for ac_exec_ext in '' $ac_executable_extensions; do
4982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4983    ac_cv_prog_CC="${ac_tool_prefix}cc"
4984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985    break 2
4986  fi
4987done
4988  done
4989IFS=$as_save_IFS
4990
4991fi
4992fi
4993CC=$ac_cv_prog_CC
4994if test -n "$CC"; then
4995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4996$as_echo "$CC" >&6; }
4997else
4998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999$as_echo "no" >&6; }
5000fi
5001
5002
5003  fi
5004fi
5005if test -z "$CC"; then
5006  # Extract the first word of "cc", so it can be a program name with args.
5007set dummy cc; ac_word=$2
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009$as_echo_n "checking for $ac_word... " >&6; }
5010if ${ac_cv_prog_CC+:} false; then :
5011  $as_echo_n "(cached) " >&6
5012else
5013  if test -n "$CC"; then
5014  ac_cv_prog_CC="$CC" # Let the user override the test.
5015else
5016  ac_prog_rejected=no
5017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018for as_dir in $PATH
5019do
5020  IFS=$as_save_IFS
5021  test -z "$as_dir" && as_dir=.
5022    for ac_exec_ext in '' $ac_executable_extensions; do
5023  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5024    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5025       ac_prog_rejected=yes
5026       continue
5027     fi
5028    ac_cv_prog_CC="cc"
5029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030    break 2
5031  fi
5032done
5033  done
5034IFS=$as_save_IFS
5035
5036if test $ac_prog_rejected = yes; then
5037  # We found a bogon in the path, so make sure we never use it.
5038  set dummy $ac_cv_prog_CC
5039  shift
5040  if test $# != 0; then
5041    # We chose a different compiler from the bogus one.
5042    # However, it has the same basename, so the bogon will be chosen
5043    # first if we set CC to just the basename; use the full file name.
5044    shift
5045    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5046  fi
5047fi
5048fi
5049fi
5050CC=$ac_cv_prog_CC
5051if test -n "$CC"; then
5052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5053$as_echo "$CC" >&6; }
5054else
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056$as_echo "no" >&6; }
5057fi
5058
5059
5060fi
5061if test -z "$CC"; then
5062  if test -n "$ac_tool_prefix"; then
5063  for ac_prog in cl.exe
5064  do
5065    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5066set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5068$as_echo_n "checking for $ac_word... " >&6; }
5069if ${ac_cv_prog_CC+:} false; then :
5070  $as_echo_n "(cached) " >&6
5071else
5072  if test -n "$CC"; then
5073  ac_cv_prog_CC="$CC" # Let the user override the test.
5074else
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078  IFS=$as_save_IFS
5079  test -z "$as_dir" && as_dir=.
5080    for ac_exec_ext in '' $ac_executable_extensions; do
5081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5082    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5084    break 2
5085  fi
5086done
5087  done
5088IFS=$as_save_IFS
5089
5090fi
5091fi
5092CC=$ac_cv_prog_CC
5093if test -n "$CC"; then
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5095$as_echo "$CC" >&6; }
5096else
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102    test -n "$CC" && break
5103  done
5104fi
5105if test -z "$CC"; then
5106  ac_ct_CC=$CC
5107  for ac_prog in cl.exe
5108do
5109  # Extract the first word of "$ac_prog", so it can be a program name with args.
5110set dummy $ac_prog; ac_word=$2
5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5112$as_echo_n "checking for $ac_word... " >&6; }
5113if ${ac_cv_prog_ac_ct_CC+:} false; then :
5114  $as_echo_n "(cached) " >&6
5115else
5116  if test -n "$ac_ct_CC"; then
5117  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5118else
5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120for as_dir in $PATH
5121do
5122  IFS=$as_save_IFS
5123  test -z "$as_dir" && as_dir=.
5124    for ac_exec_ext in '' $ac_executable_extensions; do
5125  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5126    ac_cv_prog_ac_ct_CC="$ac_prog"
5127    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128    break 2
5129  fi
5130done
5131  done
5132IFS=$as_save_IFS
5133
5134fi
5135fi
5136ac_ct_CC=$ac_cv_prog_ac_ct_CC
5137if test -n "$ac_ct_CC"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5139$as_echo "$ac_ct_CC" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146  test -n "$ac_ct_CC" && break
5147done
5148
5149  if test "x$ac_ct_CC" = x; then
5150    CC=""
5151  else
5152    case $cross_compiling:$ac_tool_warned in
5153yes:)
5154{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5155$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5156ac_tool_warned=yes ;;
5157esac
5158    CC=$ac_ct_CC
5159  fi
5160fi
5161
5162fi
5163
5164
5165test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167as_fn_error $? "no acceptable C compiler found in \$PATH
5168See \`config.log' for more details" "$LINENO" 5; }
5169
5170# Provide some information about the compiler.
5171$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5172set X $ac_compile
5173ac_compiler=$2
5174for ac_option in --version -v -V -qversion; do
5175  { { ac_try="$ac_compiler $ac_option >&5"
5176case "(($ac_try" in
5177  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178  *) ac_try_echo=$ac_try;;
5179esac
5180eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5181$as_echo "$ac_try_echo"; } >&5
5182  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5183  ac_status=$?
5184  if test -s conftest.err; then
5185    sed '10a\
5186... rest of stderr output deleted ...
5187         10q' conftest.err >conftest.er1
5188    cat conftest.er1 >&5
5189  fi
5190  rm -f conftest.er1 conftest.err
5191  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192  test $ac_status = 0; }
5193done
5194
5195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196/* end confdefs.h.  */
5197
5198int
5199main ()
5200{
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206ac_clean_files_save=$ac_clean_files
5207ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5208# Try to create an executable without -o first, disregard a.out.
5209# It will help us diagnose broken compilers, and finding out an intuition
5210# of exeext.
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5212$as_echo_n "checking whether the C compiler works... " >&6; }
5213ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5214
5215# The possible output files:
5216ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5217
5218ac_rmfiles=
5219for ac_file in $ac_files
5220do
5221  case $ac_file in
5222    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5223    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5224  esac
5225done
5226rm -f $ac_rmfiles
5227
5228if { { ac_try="$ac_link_default"
5229case "(($ac_try" in
5230  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5231  *) ac_try_echo=$ac_try;;
5232esac
5233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5234$as_echo "$ac_try_echo"; } >&5
5235  (eval "$ac_link_default") 2>&5
5236  ac_status=$?
5237  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5238  test $ac_status = 0; }; then :
5239  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5240# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5241# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5242# so that the user can short-circuit this test for compilers unknown to
5243# Autoconf.
5244for ac_file in $ac_files ''
5245do
5246  test -f "$ac_file" || continue
5247  case $ac_file in
5248    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5249	;;
5250    [ab].out )
5251	# We found the default executable, but exeext='' is most
5252	# certainly right.
5253	break;;
5254    *.* )
5255	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5256	then :; else
5257	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5258	fi
5259	# We set ac_cv_exeext here because the later test for it is not
5260	# safe: cross compilers may not add the suffix if given an `-o'
5261	# argument, so we may need to know it at that point already.
5262	# Even if this section looks crufty: it has the advantage of
5263	# actually working.
5264	break;;
5265    * )
5266	break;;
5267  esac
5268done
5269test "$ac_cv_exeext" = no && ac_cv_exeext=
5270
5271else
5272  ac_file=''
5273fi
5274if test -z "$ac_file"; then :
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
5277$as_echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
5280{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5281$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5282as_fn_error 77 "C compiler cannot create executables
5283See \`config.log' for more details" "$LINENO" 5; }
5284else
5285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5286$as_echo "yes" >&6; }
5287fi
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5289$as_echo_n "checking for C compiler default output file name... " >&6; }
5290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5291$as_echo "$ac_file" >&6; }
5292ac_exeext=$ac_cv_exeext
5293
5294rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5295ac_clean_files=$ac_clean_files_save
5296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5297$as_echo_n "checking for suffix of executables... " >&6; }
5298if { { ac_try="$ac_link"
5299case "(($ac_try" in
5300  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301  *) ac_try_echo=$ac_try;;
5302esac
5303eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5304$as_echo "$ac_try_echo"; } >&5
5305  (eval "$ac_link") 2>&5
5306  ac_status=$?
5307  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5308  test $ac_status = 0; }; then :
5309  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5310# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5311# work properly (i.e., refer to `conftest.exe'), while it won't with
5312# `rm'.
5313for ac_file in conftest.exe conftest conftest.*; do
5314  test -f "$ac_file" || continue
5315  case $ac_file in
5316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5317    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5318	  break;;
5319    * ) break;;
5320  esac
5321done
5322else
5323  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5325as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5326See \`config.log' for more details" "$LINENO" 5; }
5327fi
5328rm -f conftest conftest$ac_cv_exeext
5329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5330$as_echo "$ac_cv_exeext" >&6; }
5331
5332rm -f conftest.$ac_ext
5333EXEEXT=$ac_cv_exeext
5334ac_exeext=$EXEEXT
5335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5336/* end confdefs.h.  */
5337#include <stdio.h>
5338int
5339main ()
5340{
5341FILE *f = fopen ("conftest.out", "w");
5342 return ferror (f) || fclose (f) != 0;
5343
5344  ;
5345  return 0;
5346}
5347_ACEOF
5348ac_clean_files="$ac_clean_files conftest.out"
5349# Check that the compiler produces executables we can run.  If not, either
5350# the compiler is broken, or we cross compile.
5351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5352$as_echo_n "checking whether we are cross compiling... " >&6; }
5353if test "$cross_compiling" != yes; then
5354  { { ac_try="$ac_link"
5355case "(($ac_try" in
5356  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357  *) ac_try_echo=$ac_try;;
5358esac
5359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5360$as_echo "$ac_try_echo"; } >&5
5361  (eval "$ac_link") 2>&5
5362  ac_status=$?
5363  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5364  test $ac_status = 0; }
5365  if { ac_try='./conftest$ac_cv_exeext'
5366  { { case "(($ac_try" in
5367  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368  *) ac_try_echo=$ac_try;;
5369esac
5370eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5371$as_echo "$ac_try_echo"; } >&5
5372  (eval "$ac_try") 2>&5
5373  ac_status=$?
5374  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5375  test $ac_status = 0; }; }; then
5376    cross_compiling=no
5377  else
5378    if test "$cross_compiling" = maybe; then
5379	cross_compiling=yes
5380    else
5381	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5382$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5383as_fn_error $? "cannot run C compiled programs.
5384If you meant to cross compile, use \`--host'.
5385See \`config.log' for more details" "$LINENO" 5; }
5386    fi
5387  fi
5388fi
5389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5390$as_echo "$cross_compiling" >&6; }
5391
5392rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5393ac_clean_files=$ac_clean_files_save
5394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5395$as_echo_n "checking for suffix of object files... " >&6; }
5396if ${ac_cv_objext+:} false; then :
5397  $as_echo_n "(cached) " >&6
5398else
5399  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5400/* end confdefs.h.  */
5401
5402int
5403main ()
5404{
5405
5406  ;
5407  return 0;
5408}
5409_ACEOF
5410rm -f conftest.o conftest.obj
5411if { { ac_try="$ac_compile"
5412case "(($ac_try" in
5413  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414  *) ac_try_echo=$ac_try;;
5415esac
5416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5417$as_echo "$ac_try_echo"; } >&5
5418  (eval "$ac_compile") 2>&5
5419  ac_status=$?
5420  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421  test $ac_status = 0; }; then :
5422  for ac_file in conftest.o conftest.obj conftest.*; do
5423  test -f "$ac_file" || continue;
5424  case $ac_file in
5425    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5426    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5427       break;;
5428  esac
5429done
5430else
5431  $as_echo "$as_me: failed program was:" >&5
5432sed 's/^/| /' conftest.$ac_ext >&5
5433
5434{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5435$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5436as_fn_error $? "cannot compute suffix of object files: cannot compile
5437See \`config.log' for more details" "$LINENO" 5; }
5438fi
5439rm -f conftest.$ac_cv_objext conftest.$ac_ext
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5442$as_echo "$ac_cv_objext" >&6; }
5443OBJEXT=$ac_cv_objext
5444ac_objext=$OBJEXT
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5446$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5447if ${ac_cv_c_compiler_gnu+:} false; then :
5448  $as_echo_n "(cached) " >&6
5449else
5450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h.  */
5452
5453int
5454main ()
5455{
5456#ifndef __GNUC__
5457       choke me
5458#endif
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464if ac_fn_c_try_compile "$LINENO"; then :
5465  ac_compiler_gnu=yes
5466else
5467  ac_compiler_gnu=no
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470ac_cv_c_compiler_gnu=$ac_compiler_gnu
5471
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5474$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5475if test $ac_compiler_gnu = yes; then
5476  GCC=yes
5477else
5478  GCC=
5479fi
5480ac_test_CFLAGS=${CFLAGS+set}
5481ac_save_CFLAGS=$CFLAGS
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5483$as_echo_n "checking whether $CC accepts -g... " >&6; }
5484if ${ac_cv_prog_cc_g+:} false; then :
5485  $as_echo_n "(cached) " >&6
5486else
5487  ac_save_c_werror_flag=$ac_c_werror_flag
5488   ac_c_werror_flag=yes
5489   ac_cv_prog_cc_g=no
5490   CFLAGS="-g"
5491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492/* end confdefs.h.  */
5493
5494int
5495main ()
5496{
5497
5498  ;
5499  return 0;
5500}
5501_ACEOF
5502if ac_fn_c_try_compile "$LINENO"; then :
5503  ac_cv_prog_cc_g=yes
5504else
5505  CFLAGS=""
5506      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507/* end confdefs.h.  */
5508
5509int
5510main ()
5511{
5512
5513  ;
5514  return 0;
5515}
5516_ACEOF
5517if ac_fn_c_try_compile "$LINENO"; then :
5518
5519else
5520  ac_c_werror_flag=$ac_save_c_werror_flag
5521	 CFLAGS="-g"
5522	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5523/* end confdefs.h.  */
5524
5525int
5526main ()
5527{
5528
5529  ;
5530  return 0;
5531}
5532_ACEOF
5533if ac_fn_c_try_compile "$LINENO"; then :
5534  ac_cv_prog_cc_g=yes
5535fi
5536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537fi
5538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539fi
5540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5541   ac_c_werror_flag=$ac_save_c_werror_flag
5542fi
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5544$as_echo "$ac_cv_prog_cc_g" >&6; }
5545if test "$ac_test_CFLAGS" = set; then
5546  CFLAGS=$ac_save_CFLAGS
5547elif test $ac_cv_prog_cc_g = yes; then
5548  if test "$GCC" = yes; then
5549    CFLAGS="-g -O2"
5550  else
5551    CFLAGS="-g"
5552  fi
5553else
5554  if test "$GCC" = yes; then
5555    CFLAGS="-O2"
5556  else
5557    CFLAGS=
5558  fi
5559fi
5560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5561$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5562if ${ac_cv_prog_cc_c89+:} false; then :
5563  $as_echo_n "(cached) " >&6
5564else
5565  ac_cv_prog_cc_c89=no
5566ac_save_CC=$CC
5567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568/* end confdefs.h.  */
5569#include <stdarg.h>
5570#include <stdio.h>
5571struct stat;
5572/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5573struct buf { int x; };
5574FILE * (*rcsopen) (struct buf *, struct stat *, int);
5575static char *e (p, i)
5576     char **p;
5577     int i;
5578{
5579  return p[i];
5580}
5581static char *f (char * (*g) (char **, int), char **p, ...)
5582{
5583  char *s;
5584  va_list v;
5585  va_start (v,p);
5586  s = g (p, va_arg (v,int));
5587  va_end (v);
5588  return s;
5589}
5590
5591/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5592   function prototypes and stuff, but not '\xHH' hex character constants.
5593   These don't provoke an error unfortunately, instead are silently treated
5594   as 'x'.  The following induces an error, until -std is added to get
5595   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5596   array size at least.  It's necessary to write '\x00'==0 to get something
5597   that's true only with -std.  */
5598int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5599
5600/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5601   inside strings and character constants.  */
5602#define FOO(x) 'x'
5603int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5604
5605int test (int i, double x);
5606struct s1 {int (*f) (int a);};
5607struct s2 {int (*f) (double a);};
5608int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5609int argc;
5610char **argv;
5611int
5612main ()
5613{
5614return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5615  ;
5616  return 0;
5617}
5618_ACEOF
5619for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5620	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5621do
5622  CC="$ac_save_CC $ac_arg"
5623  if ac_fn_c_try_compile "$LINENO"; then :
5624  ac_cv_prog_cc_c89=$ac_arg
5625fi
5626rm -f core conftest.err conftest.$ac_objext
5627  test "x$ac_cv_prog_cc_c89" != "xno" && break
5628done
5629rm -f conftest.$ac_ext
5630CC=$ac_save_CC
5631
5632fi
5633# AC_CACHE_VAL
5634case "x$ac_cv_prog_cc_c89" in
5635  x)
5636    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5637$as_echo "none needed" >&6; } ;;
5638  xno)
5639    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5640$as_echo "unsupported" >&6; } ;;
5641  *)
5642    CC="$CC $ac_cv_prog_cc_c89"
5643    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5644$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5645esac
5646if test "x$ac_cv_prog_cc_c89" != xno; then :
5647
5648fi
5649
5650ac_ext=c
5651ac_cpp='$CPP $CPPFLAGS'
5652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655
5656ac_ext=c
5657ac_cpp='$CPP $CPPFLAGS'
5658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5662$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5663if ${am_cv_prog_cc_c_o+:} false; then :
5664  $as_echo_n "(cached) " >&6
5665else
5666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667/* end confdefs.h.  */
5668
5669int
5670main ()
5671{
5672
5673  ;
5674  return 0;
5675}
5676_ACEOF
5677  # Make sure it works both with $CC and with simple cc.
5678  # Following AC_PROG_CC_C_O, we do the test twice because some
5679  # compilers refuse to overwrite an existing .o file with -o,
5680  # though they will create one.
5681  am_cv_prog_cc_c_o=yes
5682  for am_i in 1 2; do
5683    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5684   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5685   ac_status=$?
5686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687   (exit $ac_status); } \
5688         && test -f conftest2.$ac_objext; then
5689      : OK
5690    else
5691      am_cv_prog_cc_c_o=no
5692      break
5693    fi
5694  done
5695  rm -f core conftest*
5696  unset am_i
5697fi
5698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5699$as_echo "$am_cv_prog_cc_c_o" >&6; }
5700if test "$am_cv_prog_cc_c_o" != yes; then
5701   # Losing compiler, so override with the script.
5702   # FIXME: It is wrong to rewrite CC.
5703   # But if we don't then we get into trouble of one sort or another.
5704   # A longer-term fix would be to have automake use am__CC in this case,
5705   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5706   CC="$am_aux_dir/compile $CC"
5707fi
5708ac_ext=c
5709ac_cpp='$CPP $CPPFLAGS'
5710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712ac_compiler_gnu=$ac_cv_c_compiler_gnu
5713
5714
5715depcc="$CC"   am_compiler_list=
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5718$as_echo_n "checking dependency style of $depcc... " >&6; }
5719if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5723  # We make a subdir and do the tests there.  Otherwise we can end up
5724  # making bogus files that we don't know about and never remove.  For
5725  # instance it was reported that on HP-UX the gcc test will end up
5726  # making a dummy file named 'D' -- because '-MD' means "put the output
5727  # in D".
5728  rm -rf conftest.dir
5729  mkdir conftest.dir
5730  # Copy depcomp to subdir because otherwise we won't find it if we're
5731  # using a relative directory.
5732  cp "$am_depcomp" conftest.dir
5733  cd conftest.dir
5734  # We will build objects and dependencies in a subdirectory because
5735  # it helps to detect inapplicable dependency modes.  For instance
5736  # both Tru64's cc and ICC support -MD to output dependencies as a
5737  # side effect of compilation, but ICC will put the dependencies in
5738  # the current directory while Tru64 will put them in the object
5739  # directory.
5740  mkdir sub
5741
5742  am_cv_CC_dependencies_compiler_type=none
5743  if test "$am_compiler_list" = ""; then
5744     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5745  fi
5746  am__universal=false
5747  case " $depcc " in #(
5748     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5749     esac
5750
5751  for depmode in $am_compiler_list; do
5752    # Setup a source with many dependencies, because some compilers
5753    # like to wrap large dependency lists on column 80 (with \), and
5754    # we should not choose a depcomp mode which is confused by this.
5755    #
5756    # We need to recreate these files for each test, as the compiler may
5757    # overwrite some of them when testing with obscure command lines.
5758    # This happens at least with the AIX C compiler.
5759    : > sub/conftest.c
5760    for i in 1 2 3 4 5 6; do
5761      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5762      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5763      # Solaris 10 /bin/sh.
5764      echo '/* dummy */' > sub/conftst$i.h
5765    done
5766    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5767
5768    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5769    # mode.  It turns out that the SunPro C++ compiler does not properly
5770    # handle '-M -o', and we need to detect this.  Also, some Intel
5771    # versions had trouble with output in subdirs.
5772    am__obj=sub/conftest.${OBJEXT-o}
5773    am__minus_obj="-o $am__obj"
5774    case $depmode in
5775    gcc)
5776      # This depmode causes a compiler race in universal mode.
5777      test "$am__universal" = false || continue
5778      ;;
5779    nosideeffect)
5780      # After this tag, mechanisms are not by side-effect, so they'll
5781      # only be used when explicitly requested.
5782      if test "x$enable_dependency_tracking" = xyes; then
5783	continue
5784      else
5785	break
5786      fi
5787      ;;
5788    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5789      # This compiler won't grok '-c -o', but also, the minuso test has
5790      # not run yet.  These depmodes are late enough in the game, and
5791      # so weak that their functioning should not be impacted.
5792      am__obj=conftest.${OBJEXT-o}
5793      am__minus_obj=
5794      ;;
5795    none) break ;;
5796    esac
5797    if depmode=$depmode \
5798       source=sub/conftest.c object=$am__obj \
5799       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5800       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5801         >/dev/null 2>conftest.err &&
5802       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5803       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5804       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5805       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5806      # icc doesn't choke on unknown options, it will just issue warnings
5807      # or remarks (even with -Werror).  So we grep stderr for any message
5808      # that says an option was ignored or not supported.
5809      # When given -MP, icc 7.0 and 7.1 complain thusly:
5810      #   icc: Command line warning: ignoring option '-M'; no argument required
5811      # The diagnosis changed in icc 8.0:
5812      #   icc: Command line remark: option '-MP' not supported
5813      if (grep 'ignoring option' conftest.err ||
5814          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5815        am_cv_CC_dependencies_compiler_type=$depmode
5816        break
5817      fi
5818    fi
5819  done
5820
5821  cd ..
5822  rm -rf conftest.dir
5823else
5824  am_cv_CC_dependencies_compiler_type=none
5825fi
5826
5827fi
5828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5829$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5830CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5831
5832 if
5833  test "x$enable_dependency_tracking" != xno \
5834  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5835  am__fastdepCC_TRUE=
5836  am__fastdepCC_FALSE='#'
5837else
5838  am__fastdepCC_TRUE='#'
5839  am__fastdepCC_FALSE=
5840fi
5841
5842
5843
5844ac_ext=c
5845ac_cpp='$CPP $CPPFLAGS'
5846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5848ac_compiler_gnu=$ac_cv_c_compiler_gnu
5849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5850$as_echo_n "checking how to run the C preprocessor... " >&6; }
5851# On Suns, sometimes $CPP names a directory.
5852if test -n "$CPP" && test -d "$CPP"; then
5853  CPP=
5854fi
5855if test -z "$CPP"; then
5856  if ${ac_cv_prog_CPP+:} false; then :
5857  $as_echo_n "(cached) " >&6
5858else
5859      # Double quotes because CPP needs to be expanded
5860    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5861    do
5862      ac_preproc_ok=false
5863for ac_c_preproc_warn_flag in '' yes
5864do
5865  # Use a header file that comes with gcc, so configuring glibc
5866  # with a fresh cross-compiler works.
5867  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5868  # <limits.h> exists even on freestanding compilers.
5869  # On the NeXT, cc -E runs the code through the compiler's parser,
5870  # not just through cpp. "Syntax error" is here to catch this case.
5871  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872/* end confdefs.h.  */
5873#ifdef __STDC__
5874# include <limits.h>
5875#else
5876# include <assert.h>
5877#endif
5878		     Syntax error
5879_ACEOF
5880if ac_fn_c_try_cpp "$LINENO"; then :
5881
5882else
5883  # Broken: fails on valid input.
5884continue
5885fi
5886rm -f conftest.err conftest.i conftest.$ac_ext
5887
5888  # OK, works on sane cases.  Now check whether nonexistent headers
5889  # can be detected and how.
5890  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891/* end confdefs.h.  */
5892#include <ac_nonexistent.h>
5893_ACEOF
5894if ac_fn_c_try_cpp "$LINENO"; then :
5895  # Broken: success on invalid input.
5896continue
5897else
5898  # Passes both tests.
5899ac_preproc_ok=:
5900break
5901fi
5902rm -f conftest.err conftest.i conftest.$ac_ext
5903
5904done
5905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5906rm -f conftest.i conftest.err conftest.$ac_ext
5907if $ac_preproc_ok; then :
5908  break
5909fi
5910
5911    done
5912    ac_cv_prog_CPP=$CPP
5913
5914fi
5915  CPP=$ac_cv_prog_CPP
5916else
5917  ac_cv_prog_CPP=$CPP
5918fi
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5920$as_echo "$CPP" >&6; }
5921ac_preproc_ok=false
5922for ac_c_preproc_warn_flag in '' yes
5923do
5924  # Use a header file that comes with gcc, so configuring glibc
5925  # with a fresh cross-compiler works.
5926  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5927  # <limits.h> exists even on freestanding compilers.
5928  # On the NeXT, cc -E runs the code through the compiler's parser,
5929  # not just through cpp. "Syntax error" is here to catch this case.
5930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931/* end confdefs.h.  */
5932#ifdef __STDC__
5933# include <limits.h>
5934#else
5935# include <assert.h>
5936#endif
5937		     Syntax error
5938_ACEOF
5939if ac_fn_c_try_cpp "$LINENO"; then :
5940
5941else
5942  # Broken: fails on valid input.
5943continue
5944fi
5945rm -f conftest.err conftest.i conftest.$ac_ext
5946
5947  # OK, works on sane cases.  Now check whether nonexistent headers
5948  # can be detected and how.
5949  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5950/* end confdefs.h.  */
5951#include <ac_nonexistent.h>
5952_ACEOF
5953if ac_fn_c_try_cpp "$LINENO"; then :
5954  # Broken: success on invalid input.
5955continue
5956else
5957  # Passes both tests.
5958ac_preproc_ok=:
5959break
5960fi
5961rm -f conftest.err conftest.i conftest.$ac_ext
5962
5963done
5964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5965rm -f conftest.i conftest.err conftest.$ac_ext
5966if $ac_preproc_ok; then :
5967
5968else
5969  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5971as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5972See \`config.log' for more details" "$LINENO" 5; }
5973fi
5974
5975ac_ext=c
5976ac_cpp='$CPP $CPPFLAGS'
5977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5979ac_compiler_gnu=$ac_cv_c_compiler_gnu
5980
5981
5982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5983$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5984if ${ac_cv_path_GREP+:} false; then :
5985  $as_echo_n "(cached) " >&6
5986else
5987  if test -z "$GREP"; then
5988  ac_path_GREP_found=false
5989  # Loop through the user's path and test for each of PROGNAME-LIST
5990  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992do
5993  IFS=$as_save_IFS
5994  test -z "$as_dir" && as_dir=.
5995    for ac_prog in grep ggrep; do
5996    for ac_exec_ext in '' $ac_executable_extensions; do
5997      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5998      as_fn_executable_p "$ac_path_GREP" || continue
5999# Check for GNU ac_path_GREP and select it if it is found.
6000  # Check for GNU $ac_path_GREP
6001case `"$ac_path_GREP" --version 2>&1` in
6002*GNU*)
6003  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6004*)
6005  ac_count=0
6006  $as_echo_n 0123456789 >"conftest.in"
6007  while :
6008  do
6009    cat "conftest.in" "conftest.in" >"conftest.tmp"
6010    mv "conftest.tmp" "conftest.in"
6011    cp "conftest.in" "conftest.nl"
6012    $as_echo 'GREP' >> "conftest.nl"
6013    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015    as_fn_arith $ac_count + 1 && ac_count=$as_val
6016    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6017      # Best one so far, save it but keep looking for a better one
6018      ac_cv_path_GREP="$ac_path_GREP"
6019      ac_path_GREP_max=$ac_count
6020    fi
6021    # 10*(2^10) chars as input seems more than enough
6022    test $ac_count -gt 10 && break
6023  done
6024  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025esac
6026
6027      $ac_path_GREP_found && break 3
6028    done
6029  done
6030  done
6031IFS=$as_save_IFS
6032  if test -z "$ac_cv_path_GREP"; then
6033    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6034  fi
6035else
6036  ac_cv_path_GREP=$GREP
6037fi
6038
6039fi
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6041$as_echo "$ac_cv_path_GREP" >&6; }
6042 GREP="$ac_cv_path_GREP"
6043
6044
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6046$as_echo_n "checking for egrep... " >&6; }
6047if ${ac_cv_path_EGREP+:} false; then :
6048  $as_echo_n "(cached) " >&6
6049else
6050  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6051   then ac_cv_path_EGREP="$GREP -E"
6052   else
6053     if test -z "$EGREP"; then
6054  ac_path_EGREP_found=false
6055  # Loop through the user's path and test for each of PROGNAME-LIST
6056  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6057for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6058do
6059  IFS=$as_save_IFS
6060  test -z "$as_dir" && as_dir=.
6061    for ac_prog in egrep; do
6062    for ac_exec_ext in '' $ac_executable_extensions; do
6063      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6064      as_fn_executable_p "$ac_path_EGREP" || continue
6065# Check for GNU ac_path_EGREP and select it if it is found.
6066  # Check for GNU $ac_path_EGREP
6067case `"$ac_path_EGREP" --version 2>&1` in
6068*GNU*)
6069  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6070*)
6071  ac_count=0
6072  $as_echo_n 0123456789 >"conftest.in"
6073  while :
6074  do
6075    cat "conftest.in" "conftest.in" >"conftest.tmp"
6076    mv "conftest.tmp" "conftest.in"
6077    cp "conftest.in" "conftest.nl"
6078    $as_echo 'EGREP' >> "conftest.nl"
6079    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6080    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6081    as_fn_arith $ac_count + 1 && ac_count=$as_val
6082    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6083      # Best one so far, save it but keep looking for a better one
6084      ac_cv_path_EGREP="$ac_path_EGREP"
6085      ac_path_EGREP_max=$ac_count
6086    fi
6087    # 10*(2^10) chars as input seems more than enough
6088    test $ac_count -gt 10 && break
6089  done
6090  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6091esac
6092
6093      $ac_path_EGREP_found && break 3
6094    done
6095  done
6096  done
6097IFS=$as_save_IFS
6098  if test -z "$ac_cv_path_EGREP"; then
6099    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6100  fi
6101else
6102  ac_cv_path_EGREP=$EGREP
6103fi
6104
6105   fi
6106fi
6107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6108$as_echo "$ac_cv_path_EGREP" >&6; }
6109 EGREP="$ac_cv_path_EGREP"
6110
6111
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6113$as_echo_n "checking for ANSI C header files... " >&6; }
6114if ${ac_cv_header_stdc+:} false; then :
6115  $as_echo_n "(cached) " >&6
6116else
6117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118/* end confdefs.h.  */
6119#include <stdlib.h>
6120#include <stdarg.h>
6121#include <string.h>
6122#include <float.h>
6123
6124int
6125main ()
6126{
6127
6128  ;
6129  return 0;
6130}
6131_ACEOF
6132if ac_fn_c_try_compile "$LINENO"; then :
6133  ac_cv_header_stdc=yes
6134else
6135  ac_cv_header_stdc=no
6136fi
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138
6139if test $ac_cv_header_stdc = yes; then
6140  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6141  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h.  */
6143#include <string.h>
6144
6145_ACEOF
6146if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6147  $EGREP "memchr" >/dev/null 2>&1; then :
6148
6149else
6150  ac_cv_header_stdc=no
6151fi
6152rm -f conftest*
6153
6154fi
6155
6156if test $ac_cv_header_stdc = yes; then
6157  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6159/* end confdefs.h.  */
6160#include <stdlib.h>
6161
6162_ACEOF
6163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6164  $EGREP "free" >/dev/null 2>&1; then :
6165
6166else
6167  ac_cv_header_stdc=no
6168fi
6169rm -f conftest*
6170
6171fi
6172
6173if test $ac_cv_header_stdc = yes; then
6174  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6175  if test "$cross_compiling" = yes; then :
6176  :
6177else
6178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179/* end confdefs.h.  */
6180#include <ctype.h>
6181#include <stdlib.h>
6182#if ((' ' & 0x0FF) == 0x020)
6183# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6184# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6185#else
6186# define ISLOWER(c) \
6187		   (('a' <= (c) && (c) <= 'i') \
6188		     || ('j' <= (c) && (c) <= 'r') \
6189		     || ('s' <= (c) && (c) <= 'z'))
6190# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6191#endif
6192
6193#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6194int
6195main ()
6196{
6197  int i;
6198  for (i = 0; i < 256; i++)
6199    if (XOR (islower (i), ISLOWER (i))
6200	|| toupper (i) != TOUPPER (i))
6201      return 2;
6202  return 0;
6203}
6204_ACEOF
6205if ac_fn_c_try_run "$LINENO"; then :
6206
6207else
6208  ac_cv_header_stdc=no
6209fi
6210rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6211  conftest.$ac_objext conftest.beam conftest.$ac_ext
6212fi
6213
6214fi
6215fi
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6217$as_echo "$ac_cv_header_stdc" >&6; }
6218if test $ac_cv_header_stdc = yes; then
6219
6220$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6221
6222fi
6223
6224# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6225for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6226		  inttypes.h stdint.h unistd.h
6227do :
6228  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6229ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6230"
6231if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6232  cat >>confdefs.h <<_ACEOF
6233#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6234_ACEOF
6235
6236fi
6237
6238done
6239
6240
6241
6242  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6243if test "x$ac_cv_header_minix_config_h" = xyes; then :
6244  MINIX=yes
6245else
6246  MINIX=
6247fi
6248
6249
6250  if test "$MINIX" = yes; then
6251
6252$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6253
6254
6255$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6256
6257
6258$as_echo "#define _MINIX 1" >>confdefs.h
6259
6260  fi
6261
6262
6263  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6264$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6265if ${ac_cv_safe_to_define___extensions__+:} false; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6269/* end confdefs.h.  */
6270
6271#         define __EXTENSIONS__ 1
6272          $ac_includes_default
6273int
6274main ()
6275{
6276
6277  ;
6278  return 0;
6279}
6280_ACEOF
6281if ac_fn_c_try_compile "$LINENO"; then :
6282  ac_cv_safe_to_define___extensions__=yes
6283else
6284  ac_cv_safe_to_define___extensions__=no
6285fi
6286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6287fi
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6289$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6290  test $ac_cv_safe_to_define___extensions__ = yes &&
6291    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6292
6293  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6294
6295  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6296
6297  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6298
6299  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6300
6301
6302
6303# ==============================================================================
6304# Find required base packages
6305# ==============================================================================
6306if test -n "$ac_tool_prefix"; then
6307  for ac_prog in ar lib "link -lib"
6308  do
6309    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6310set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312$as_echo_n "checking for $ac_word... " >&6; }
6313if ${ac_cv_prog_AR+:} false; then :
6314  $as_echo_n "(cached) " >&6
6315else
6316  if test -n "$AR"; then
6317  ac_cv_prog_AR="$AR" # Let the user override the test.
6318else
6319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320for as_dir in $PATH
6321do
6322  IFS=$as_save_IFS
6323  test -z "$as_dir" && as_dir=.
6324    for ac_exec_ext in '' $ac_executable_extensions; do
6325  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6327    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328    break 2
6329  fi
6330done
6331  done
6332IFS=$as_save_IFS
6333
6334fi
6335fi
6336AR=$ac_cv_prog_AR
6337if test -n "$AR"; then
6338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6339$as_echo "$AR" >&6; }
6340else
6341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342$as_echo "no" >&6; }
6343fi
6344
6345
6346    test -n "$AR" && break
6347  done
6348fi
6349if test -z "$AR"; then
6350  ac_ct_AR=$AR
6351  for ac_prog in ar lib "link -lib"
6352do
6353  # Extract the first word of "$ac_prog", so it can be a program name with args.
6354set dummy $ac_prog; ac_word=$2
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6356$as_echo_n "checking for $ac_word... " >&6; }
6357if ${ac_cv_prog_ac_ct_AR+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  if test -n "$ac_ct_AR"; then
6361  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6362else
6363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6364for as_dir in $PATH
6365do
6366  IFS=$as_save_IFS
6367  test -z "$as_dir" && as_dir=.
6368    for ac_exec_ext in '' $ac_executable_extensions; do
6369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6370    ac_cv_prog_ac_ct_AR="$ac_prog"
6371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6372    break 2
6373  fi
6374done
6375  done
6376IFS=$as_save_IFS
6377
6378fi
6379fi
6380ac_ct_AR=$ac_cv_prog_ac_ct_AR
6381if test -n "$ac_ct_AR"; then
6382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6383$as_echo "$ac_ct_AR" >&6; }
6384else
6385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386$as_echo "no" >&6; }
6387fi
6388
6389
6390  test -n "$ac_ct_AR" && break
6391done
6392
6393  if test "x$ac_ct_AR" = x; then
6394    AR="false"
6395  else
6396    case $cross_compiling:$ac_tool_warned in
6397yes:)
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6399$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6400ac_tool_warned=yes ;;
6401esac
6402    AR=$ac_ct_AR
6403  fi
6404fi
6405
6406: ${AR=ar}
6407
6408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6409$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6410if ${am_cv_ar_interface+:} false; then :
6411  $as_echo_n "(cached) " >&6
6412else
6413  ac_ext=c
6414ac_cpp='$CPP $CPPFLAGS'
6415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419   am_cv_ar_interface=ar
6420   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6421/* end confdefs.h.  */
6422int some_variable = 0;
6423_ACEOF
6424if ac_fn_c_try_compile "$LINENO"; then :
6425  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6426      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6427  (eval $am_ar_try) 2>&5
6428  ac_status=$?
6429  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6430  test $ac_status = 0; }
6431      if test "$ac_status" -eq 0; then
6432        am_cv_ar_interface=ar
6433      else
6434        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6435        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6436  (eval $am_ar_try) 2>&5
6437  ac_status=$?
6438  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439  test $ac_status = 0; }
6440        if test "$ac_status" -eq 0; then
6441          am_cv_ar_interface=lib
6442        else
6443          am_cv_ar_interface=unknown
6444        fi
6445      fi
6446      rm -f conftest.lib libconftest.a
6447
6448fi
6449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6450   ac_ext=c
6451ac_cpp='$CPP $CPPFLAGS'
6452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6454ac_compiler_gnu=$ac_cv_c_compiler_gnu
6455
6456fi
6457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6458$as_echo "$am_cv_ar_interface" >&6; }
6459
6460case $am_cv_ar_interface in
6461ar)
6462  ;;
6463lib)
6464  # Microsoft lib, so override with the ar-lib wrapper script.
6465  # FIXME: It is wrong to rewrite AR.
6466  # But if we don't then we get into trouble of one sort or another.
6467  # A longer-term fix would be to have automake use am__AR in this case,
6468  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6469  # similar.
6470  AR="$am_aux_dir/ar-lib $AR"
6471  ;;
6472unknown)
6473  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6474  ;;
6475esac
6476
6477ac_ext=c
6478ac_cpp='$CPP $CPPFLAGS'
6479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6481ac_compiler_gnu=$ac_cv_c_compiler_gnu
6482if test -n "$ac_tool_prefix"; then
6483  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6484set dummy ${ac_tool_prefix}gcc; ac_word=$2
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6486$as_echo_n "checking for $ac_word... " >&6; }
6487if ${ac_cv_prog_CC+:} false; then :
6488  $as_echo_n "(cached) " >&6
6489else
6490  if test -n "$CC"; then
6491  ac_cv_prog_CC="$CC" # Let the user override the test.
6492else
6493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494for as_dir in $PATH
6495do
6496  IFS=$as_save_IFS
6497  test -z "$as_dir" && as_dir=.
6498    for ac_exec_ext in '' $ac_executable_extensions; do
6499  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6502    break 2
6503  fi
6504done
6505  done
6506IFS=$as_save_IFS
6507
6508fi
6509fi
6510CC=$ac_cv_prog_CC
6511if test -n "$CC"; then
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6513$as_echo "$CC" >&6; }
6514else
6515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516$as_echo "no" >&6; }
6517fi
6518
6519
6520fi
6521if test -z "$ac_cv_prog_CC"; then
6522  ac_ct_CC=$CC
6523  # Extract the first word of "gcc", so it can be a program name with args.
6524set dummy gcc; 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; }
6527if ${ac_cv_prog_ac_ct_CC+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  if test -n "$ac_ct_CC"; then
6531  ac_cv_prog_ac_ct_CC="$ac_ct_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
6539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540    ac_cv_prog_ac_ct_CC="gcc"
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
6550ac_ct_CC=$ac_cv_prog_ac_ct_CC
6551if test -n "$ac_ct_CC"; then
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6553$as_echo "$ac_ct_CC" >&6; }
6554else
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
6557fi
6558
6559  if test "x$ac_ct_CC" = x; then
6560    CC=""
6561  else
6562    case $cross_compiling:$ac_tool_warned in
6563yes:)
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6565$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6566ac_tool_warned=yes ;;
6567esac
6568    CC=$ac_ct_CC
6569  fi
6570else
6571  CC="$ac_cv_prog_CC"
6572fi
6573
6574if test -z "$CC"; then
6575          if test -n "$ac_tool_prefix"; then
6576    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6577set dummy ${ac_tool_prefix}cc; ac_word=$2
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579$as_echo_n "checking for $ac_word... " >&6; }
6580if ${ac_cv_prog_CC+:} false; then :
6581  $as_echo_n "(cached) " >&6
6582else
6583  if test -n "$CC"; then
6584  ac_cv_prog_CC="$CC" # Let the user override the test.
6585else
6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587for as_dir in $PATH
6588do
6589  IFS=$as_save_IFS
6590  test -z "$as_dir" && as_dir=.
6591    for ac_exec_ext in '' $ac_executable_extensions; do
6592  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6593    ac_cv_prog_CC="${ac_tool_prefix}cc"
6594    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595    break 2
6596  fi
6597done
6598  done
6599IFS=$as_save_IFS
6600
6601fi
6602fi
6603CC=$ac_cv_prog_CC
6604if test -n "$CC"; then
6605  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6606$as_echo "$CC" >&6; }
6607else
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609$as_echo "no" >&6; }
6610fi
6611
6612
6613  fi
6614fi
6615if test -z "$CC"; then
6616  # Extract the first word of "cc", so it can be a program name with args.
6617set dummy cc; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_prog_CC+:} false; then :
6621  $as_echo_n "(cached) " >&6
6622else
6623  if test -n "$CC"; then
6624  ac_cv_prog_CC="$CC" # Let the user override the test.
6625else
6626  ac_prog_rejected=no
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630  IFS=$as_save_IFS
6631  test -z "$as_dir" && as_dir=.
6632    for ac_exec_ext in '' $ac_executable_extensions; do
6633  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6634    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6635       ac_prog_rejected=yes
6636       continue
6637     fi
6638    ac_cv_prog_CC="cc"
6639    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640    break 2
6641  fi
6642done
6643  done
6644IFS=$as_save_IFS
6645
6646if test $ac_prog_rejected = yes; then
6647  # We found a bogon in the path, so make sure we never use it.
6648  set dummy $ac_cv_prog_CC
6649  shift
6650  if test $# != 0; then
6651    # We chose a different compiler from the bogus one.
6652    # However, it has the same basename, so the bogon will be chosen
6653    # first if we set CC to just the basename; use the full file name.
6654    shift
6655    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6656  fi
6657fi
6658fi
6659fi
6660CC=$ac_cv_prog_CC
6661if test -n "$CC"; then
6662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6663$as_echo "$CC" >&6; }
6664else
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666$as_echo "no" >&6; }
6667fi
6668
6669
6670fi
6671if test -z "$CC"; then
6672  if test -n "$ac_tool_prefix"; then
6673  for ac_prog in cl.exe
6674  do
6675    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6676set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678$as_echo_n "checking for $ac_word... " >&6; }
6679if ${ac_cv_prog_CC+:} false; then :
6680  $as_echo_n "(cached) " >&6
6681else
6682  if test -n "$CC"; then
6683  ac_cv_prog_CC="$CC" # Let the user override the test.
6684else
6685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686for as_dir in $PATH
6687do
6688  IFS=$as_save_IFS
6689  test -z "$as_dir" && as_dir=.
6690    for ac_exec_ext in '' $ac_executable_extensions; do
6691  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6693    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694    break 2
6695  fi
6696done
6697  done
6698IFS=$as_save_IFS
6699
6700fi
6701fi
6702CC=$ac_cv_prog_CC
6703if test -n "$CC"; then
6704  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6705$as_echo "$CC" >&6; }
6706else
6707  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708$as_echo "no" >&6; }
6709fi
6710
6711
6712    test -n "$CC" && break
6713  done
6714fi
6715if test -z "$CC"; then
6716  ac_ct_CC=$CC
6717  for ac_prog in cl.exe
6718do
6719  # Extract the first word of "$ac_prog", so it can be a program name with args.
6720set dummy $ac_prog; ac_word=$2
6721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6722$as_echo_n "checking for $ac_word... " >&6; }
6723if ${ac_cv_prog_ac_ct_CC+:} false; then :
6724  $as_echo_n "(cached) " >&6
6725else
6726  if test -n "$ac_ct_CC"; then
6727  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6728else
6729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730for as_dir in $PATH
6731do
6732  IFS=$as_save_IFS
6733  test -z "$as_dir" && as_dir=.
6734    for ac_exec_ext in '' $ac_executable_extensions; do
6735  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6736    ac_cv_prog_ac_ct_CC="$ac_prog"
6737    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6738    break 2
6739  fi
6740done
6741  done
6742IFS=$as_save_IFS
6743
6744fi
6745fi
6746ac_ct_CC=$ac_cv_prog_ac_ct_CC
6747if test -n "$ac_ct_CC"; then
6748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6749$as_echo "$ac_ct_CC" >&6; }
6750else
6751  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752$as_echo "no" >&6; }
6753fi
6754
6755
6756  test -n "$ac_ct_CC" && break
6757done
6758
6759  if test "x$ac_ct_CC" = x; then
6760    CC=""
6761  else
6762    case $cross_compiling:$ac_tool_warned in
6763yes:)
6764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766ac_tool_warned=yes ;;
6767esac
6768    CC=$ac_ct_CC
6769  fi
6770fi
6771
6772fi
6773
6774
6775test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6776$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6777as_fn_error $? "no acceptable C compiler found in \$PATH
6778See \`config.log' for more details" "$LINENO" 5; }
6779
6780# Provide some information about the compiler.
6781$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6782set X $ac_compile
6783ac_compiler=$2
6784for ac_option in --version -v -V -qversion; do
6785  { { ac_try="$ac_compiler $ac_option >&5"
6786case "(($ac_try" in
6787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788  *) ac_try_echo=$ac_try;;
6789esac
6790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6791$as_echo "$ac_try_echo"; } >&5
6792  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6793  ac_status=$?
6794  if test -s conftest.err; then
6795    sed '10a\
6796... rest of stderr output deleted ...
6797         10q' conftest.err >conftest.er1
6798    cat conftest.er1 >&5
6799  fi
6800  rm -f conftest.er1 conftest.err
6801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802  test $ac_status = 0; }
6803done
6804
6805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6806$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6807if ${ac_cv_c_compiler_gnu+:} false; then :
6808  $as_echo_n "(cached) " >&6
6809else
6810  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811/* end confdefs.h.  */
6812
6813int
6814main ()
6815{
6816#ifndef __GNUC__
6817       choke me
6818#endif
6819
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"; then :
6825  ac_compiler_gnu=yes
6826else
6827  ac_compiler_gnu=no
6828fi
6829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6830ac_cv_c_compiler_gnu=$ac_compiler_gnu
6831
6832fi
6833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6834$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6835if test $ac_compiler_gnu = yes; then
6836  GCC=yes
6837else
6838  GCC=
6839fi
6840ac_test_CFLAGS=${CFLAGS+set}
6841ac_save_CFLAGS=$CFLAGS
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6843$as_echo_n "checking whether $CC accepts -g... " >&6; }
6844if ${ac_cv_prog_cc_g+:} false; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  ac_save_c_werror_flag=$ac_c_werror_flag
6848   ac_c_werror_flag=yes
6849   ac_cv_prog_cc_g=no
6850   CFLAGS="-g"
6851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852/* end confdefs.h.  */
6853
6854int
6855main ()
6856{
6857
6858  ;
6859  return 0;
6860}
6861_ACEOF
6862if ac_fn_c_try_compile "$LINENO"; then :
6863  ac_cv_prog_cc_g=yes
6864else
6865  CFLAGS=""
6866      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6867/* end confdefs.h.  */
6868
6869int
6870main ()
6871{
6872
6873  ;
6874  return 0;
6875}
6876_ACEOF
6877if ac_fn_c_try_compile "$LINENO"; then :
6878
6879else
6880  ac_c_werror_flag=$ac_save_c_werror_flag
6881	 CFLAGS="-g"
6882	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883/* end confdefs.h.  */
6884
6885int
6886main ()
6887{
6888
6889  ;
6890  return 0;
6891}
6892_ACEOF
6893if ac_fn_c_try_compile "$LINENO"; then :
6894  ac_cv_prog_cc_g=yes
6895fi
6896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897fi
6898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899fi
6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6901   ac_c_werror_flag=$ac_save_c_werror_flag
6902fi
6903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6904$as_echo "$ac_cv_prog_cc_g" >&6; }
6905if test "$ac_test_CFLAGS" = set; then
6906  CFLAGS=$ac_save_CFLAGS
6907elif test $ac_cv_prog_cc_g = yes; then
6908  if test "$GCC" = yes; then
6909    CFLAGS="-g -O2"
6910  else
6911    CFLAGS="-g"
6912  fi
6913else
6914  if test "$GCC" = yes; then
6915    CFLAGS="-O2"
6916  else
6917    CFLAGS=
6918  fi
6919fi
6920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6921$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6922if ${ac_cv_prog_cc_c89+:} false; then :
6923  $as_echo_n "(cached) " >&6
6924else
6925  ac_cv_prog_cc_c89=no
6926ac_save_CC=$CC
6927cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6928/* end confdefs.h.  */
6929#include <stdarg.h>
6930#include <stdio.h>
6931struct stat;
6932/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6933struct buf { int x; };
6934FILE * (*rcsopen) (struct buf *, struct stat *, int);
6935static char *e (p, i)
6936     char **p;
6937     int i;
6938{
6939  return p[i];
6940}
6941static char *f (char * (*g) (char **, int), char **p, ...)
6942{
6943  char *s;
6944  va_list v;
6945  va_start (v,p);
6946  s = g (p, va_arg (v,int));
6947  va_end (v);
6948  return s;
6949}
6950
6951/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6952   function prototypes and stuff, but not '\xHH' hex character constants.
6953   These don't provoke an error unfortunately, instead are silently treated
6954   as 'x'.  The following induces an error, until -std is added to get
6955   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6956   array size at least.  It's necessary to write '\x00'==0 to get something
6957   that's true only with -std.  */
6958int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6959
6960/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6961   inside strings and character constants.  */
6962#define FOO(x) 'x'
6963int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6964
6965int test (int i, double x);
6966struct s1 {int (*f) (int a);};
6967struct s2 {int (*f) (double a);};
6968int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6969int argc;
6970char **argv;
6971int
6972main ()
6973{
6974return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6975  ;
6976  return 0;
6977}
6978_ACEOF
6979for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6980	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6981do
6982  CC="$ac_save_CC $ac_arg"
6983  if ac_fn_c_try_compile "$LINENO"; then :
6984  ac_cv_prog_cc_c89=$ac_arg
6985fi
6986rm -f core conftest.err conftest.$ac_objext
6987  test "x$ac_cv_prog_cc_c89" != "xno" && break
6988done
6989rm -f conftest.$ac_ext
6990CC=$ac_save_CC
6991
6992fi
6993# AC_CACHE_VAL
6994case "x$ac_cv_prog_cc_c89" in
6995  x)
6996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6997$as_echo "none needed" >&6; } ;;
6998  xno)
6999    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7000$as_echo "unsupported" >&6; } ;;
7001  *)
7002    CC="$CC $ac_cv_prog_cc_c89"
7003    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7004$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7005esac
7006if test "x$ac_cv_prog_cc_c89" != xno; then :
7007
7008fi
7009
7010ac_ext=c
7011ac_cpp='$CPP $CPPFLAGS'
7012ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016ac_ext=c
7017ac_cpp='$CPP $CPPFLAGS'
7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7022$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7023if ${am_cv_prog_cc_c_o+:} false; then :
7024  $as_echo_n "(cached) " >&6
7025else
7026  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027/* end confdefs.h.  */
7028
7029int
7030main ()
7031{
7032
7033  ;
7034  return 0;
7035}
7036_ACEOF
7037  # Make sure it works both with $CC and with simple cc.
7038  # Following AC_PROG_CC_C_O, we do the test twice because some
7039  # compilers refuse to overwrite an existing .o file with -o,
7040  # though they will create one.
7041  am_cv_prog_cc_c_o=yes
7042  for am_i in 1 2; do
7043    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7044   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); } \
7048         && test -f conftest2.$ac_objext; then
7049      : OK
7050    else
7051      am_cv_prog_cc_c_o=no
7052      break
7053    fi
7054  done
7055  rm -f core conftest*
7056  unset am_i
7057fi
7058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7059$as_echo "$am_cv_prog_cc_c_o" >&6; }
7060if test "$am_cv_prog_cc_c_o" != yes; then
7061   # Losing compiler, so override with the script.
7062   # FIXME: It is wrong to rewrite CC.
7063   # But if we don't then we get into trouble of one sort or another.
7064   # A longer-term fix would be to have automake use am__CC in this case,
7065   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7066   CC="$am_aux_dir/compile $CC"
7067fi
7068ac_ext=c
7069ac_cpp='$CPP $CPPFLAGS'
7070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7072ac_compiler_gnu=$ac_cv_c_compiler_gnu
7073
7074
7075depcc="$CC"   am_compiler_list=
7076
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7078$as_echo_n "checking dependency style of $depcc... " >&6; }
7079if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7080  $as_echo_n "(cached) " >&6
7081else
7082  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7083  # We make a subdir and do the tests there.  Otherwise we can end up
7084  # making bogus files that we don't know about and never remove.  For
7085  # instance it was reported that on HP-UX the gcc test will end up
7086  # making a dummy file named 'D' -- because '-MD' means "put the output
7087  # in D".
7088  rm -rf conftest.dir
7089  mkdir conftest.dir
7090  # Copy depcomp to subdir because otherwise we won't find it if we're
7091  # using a relative directory.
7092  cp "$am_depcomp" conftest.dir
7093  cd conftest.dir
7094  # We will build objects and dependencies in a subdirectory because
7095  # it helps to detect inapplicable dependency modes.  For instance
7096  # both Tru64's cc and ICC support -MD to output dependencies as a
7097  # side effect of compilation, but ICC will put the dependencies in
7098  # the current directory while Tru64 will put them in the object
7099  # directory.
7100  mkdir sub
7101
7102  am_cv_CC_dependencies_compiler_type=none
7103  if test "$am_compiler_list" = ""; then
7104     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7105  fi
7106  am__universal=false
7107  case " $depcc " in #(
7108     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7109     esac
7110
7111  for depmode in $am_compiler_list; do
7112    # Setup a source with many dependencies, because some compilers
7113    # like to wrap large dependency lists on column 80 (with \), and
7114    # we should not choose a depcomp mode which is confused by this.
7115    #
7116    # We need to recreate these files for each test, as the compiler may
7117    # overwrite some of them when testing with obscure command lines.
7118    # This happens at least with the AIX C compiler.
7119    : > sub/conftest.c
7120    for i in 1 2 3 4 5 6; do
7121      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7122      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7123      # Solaris 10 /bin/sh.
7124      echo '/* dummy */' > sub/conftst$i.h
7125    done
7126    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7127
7128    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7129    # mode.  It turns out that the SunPro C++ compiler does not properly
7130    # handle '-M -o', and we need to detect this.  Also, some Intel
7131    # versions had trouble with output in subdirs.
7132    am__obj=sub/conftest.${OBJEXT-o}
7133    am__minus_obj="-o $am__obj"
7134    case $depmode in
7135    gcc)
7136      # This depmode causes a compiler race in universal mode.
7137      test "$am__universal" = false || continue
7138      ;;
7139    nosideeffect)
7140      # After this tag, mechanisms are not by side-effect, so they'll
7141      # only be used when explicitly requested.
7142      if test "x$enable_dependency_tracking" = xyes; then
7143	continue
7144      else
7145	break
7146      fi
7147      ;;
7148    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7149      # This compiler won't grok '-c -o', but also, the minuso test has
7150      # not run yet.  These depmodes are late enough in the game, and
7151      # so weak that their functioning should not be impacted.
7152      am__obj=conftest.${OBJEXT-o}
7153      am__minus_obj=
7154      ;;
7155    none) break ;;
7156    esac
7157    if depmode=$depmode \
7158       source=sub/conftest.c object=$am__obj \
7159       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7160       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7161         >/dev/null 2>conftest.err &&
7162       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7163       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7164       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7165       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7166      # icc doesn't choke on unknown options, it will just issue warnings
7167      # or remarks (even with -Werror).  So we grep stderr for any message
7168      # that says an option was ignored or not supported.
7169      # When given -MP, icc 7.0 and 7.1 complain thusly:
7170      #   icc: Command line warning: ignoring option '-M'; no argument required
7171      # The diagnosis changed in icc 8.0:
7172      #   icc: Command line remark: option '-MP' not supported
7173      if (grep 'ignoring option' conftest.err ||
7174          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7175        am_cv_CC_dependencies_compiler_type=$depmode
7176        break
7177      fi
7178    fi
7179  done
7180
7181  cd ..
7182  rm -rf conftest.dir
7183else
7184  am_cv_CC_dependencies_compiler_type=none
7185fi
7186
7187fi
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7189$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7190CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7191
7192 if
7193  test "x$enable_dependency_tracking" != xno \
7194  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7195  am__fastdepCC_TRUE=
7196  am__fastdepCC_FALSE='#'
7197else
7198  am__fastdepCC_TRUE='#'
7199  am__fastdepCC_FALSE=
7200fi
7201
7202
7203ac_ext=cpp
7204ac_cpp='$CXXCPP $CPPFLAGS'
7205ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7206ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7207ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7208if test -z "$CXX"; then
7209  if test -n "$CCC"; then
7210    CXX=$CCC
7211  else
7212    if test -n "$ac_tool_prefix"; then
7213  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7214  do
7215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7218$as_echo_n "checking for $ac_word... " >&6; }
7219if ${ac_cv_prog_CXX+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  if test -n "$CXX"; then
7223  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7224else
7225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226for as_dir in $PATH
7227do
7228  IFS=$as_save_IFS
7229  test -z "$as_dir" && as_dir=.
7230    for ac_exec_ext in '' $ac_executable_extensions; do
7231  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234    break 2
7235  fi
7236done
7237  done
7238IFS=$as_save_IFS
7239
7240fi
7241fi
7242CXX=$ac_cv_prog_CXX
7243if test -n "$CXX"; then
7244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7245$as_echo "$CXX" >&6; }
7246else
7247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7248$as_echo "no" >&6; }
7249fi
7250
7251
7252    test -n "$CXX" && break
7253  done
7254fi
7255if test -z "$CXX"; then
7256  ac_ct_CXX=$CXX
7257  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7258do
7259  # Extract the first word of "$ac_prog", so it can be a program name with args.
7260set dummy $ac_prog; ac_word=$2
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262$as_echo_n "checking for $ac_word... " >&6; }
7263if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7264  $as_echo_n "(cached) " >&6
7265else
7266  if test -n "$ac_ct_CXX"; then
7267  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7268else
7269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270for as_dir in $PATH
7271do
7272  IFS=$as_save_IFS
7273  test -z "$as_dir" && as_dir=.
7274    for ac_exec_ext in '' $ac_executable_extensions; do
7275  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276    ac_cv_prog_ac_ct_CXX="$ac_prog"
7277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278    break 2
7279  fi
7280done
7281  done
7282IFS=$as_save_IFS
7283
7284fi
7285fi
7286ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7287if test -n "$ac_ct_CXX"; then
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7289$as_echo "$ac_ct_CXX" >&6; }
7290else
7291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292$as_echo "no" >&6; }
7293fi
7294
7295
7296  test -n "$ac_ct_CXX" && break
7297done
7298
7299  if test "x$ac_ct_CXX" = x; then
7300    CXX="g++"
7301  else
7302    case $cross_compiling:$ac_tool_warned in
7303yes:)
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7306ac_tool_warned=yes ;;
7307esac
7308    CXX=$ac_ct_CXX
7309  fi
7310fi
7311
7312  fi
7313fi
7314# Provide some information about the compiler.
7315$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7316set X $ac_compile
7317ac_compiler=$2
7318for ac_option in --version -v -V -qversion; do
7319  { { ac_try="$ac_compiler $ac_option >&5"
7320case "(($ac_try" in
7321  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322  *) ac_try_echo=$ac_try;;
7323esac
7324eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7325$as_echo "$ac_try_echo"; } >&5
7326  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7327  ac_status=$?
7328  if test -s conftest.err; then
7329    sed '10a\
7330... rest of stderr output deleted ...
7331         10q' conftest.err >conftest.er1
7332    cat conftest.er1 >&5
7333  fi
7334  rm -f conftest.er1 conftest.err
7335  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7336  test $ac_status = 0; }
7337done
7338
7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7340$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7341if ${ac_cv_cxx_compiler_gnu+:} false; then :
7342  $as_echo_n "(cached) " >&6
7343else
7344  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7345/* end confdefs.h.  */
7346
7347int
7348main ()
7349{
7350#ifndef __GNUC__
7351       choke me
7352#endif
7353
7354  ;
7355  return 0;
7356}
7357_ACEOF
7358if ac_fn_cxx_try_compile "$LINENO"; then :
7359  ac_compiler_gnu=yes
7360else
7361  ac_compiler_gnu=no
7362fi
7363rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7364ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7365
7366fi
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7368$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7369if test $ac_compiler_gnu = yes; then
7370  GXX=yes
7371else
7372  GXX=
7373fi
7374ac_test_CXXFLAGS=${CXXFLAGS+set}
7375ac_save_CXXFLAGS=$CXXFLAGS
7376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7377$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7378if ${ac_cv_prog_cxx_g+:} false; then :
7379  $as_echo_n "(cached) " >&6
7380else
7381  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7382   ac_cxx_werror_flag=yes
7383   ac_cv_prog_cxx_g=no
7384   CXXFLAGS="-g"
7385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7386/* end confdefs.h.  */
7387
7388int
7389main ()
7390{
7391
7392  ;
7393  return 0;
7394}
7395_ACEOF
7396if ac_fn_cxx_try_compile "$LINENO"; then :
7397  ac_cv_prog_cxx_g=yes
7398else
7399  CXXFLAGS=""
7400      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h.  */
7402
7403int
7404main ()
7405{
7406
7407  ;
7408  return 0;
7409}
7410_ACEOF
7411if ac_fn_cxx_try_compile "$LINENO"; then :
7412
7413else
7414  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7415	 CXXFLAGS="-g"
7416	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417/* end confdefs.h.  */
7418
7419int
7420main ()
7421{
7422
7423  ;
7424  return 0;
7425}
7426_ACEOF
7427if ac_fn_cxx_try_compile "$LINENO"; then :
7428  ac_cv_prog_cxx_g=yes
7429fi
7430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431fi
7432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433fi
7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7435   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7436fi
7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7438$as_echo "$ac_cv_prog_cxx_g" >&6; }
7439if test "$ac_test_CXXFLAGS" = set; then
7440  CXXFLAGS=$ac_save_CXXFLAGS
7441elif test $ac_cv_prog_cxx_g = yes; then
7442  if test "$GXX" = yes; then
7443    CXXFLAGS="-g -O2"
7444  else
7445    CXXFLAGS="-g"
7446  fi
7447else
7448  if test "$GXX" = yes; then
7449    CXXFLAGS="-O2"
7450  else
7451    CXXFLAGS=
7452  fi
7453fi
7454ac_ext=c
7455ac_cpp='$CPP $CPPFLAGS'
7456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7458ac_compiler_gnu=$ac_cv_c_compiler_gnu
7459
7460depcc="$CXX"  am_compiler_list=
7461
7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7463$as_echo_n "checking dependency style of $depcc... " >&6; }
7464if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7465  $as_echo_n "(cached) " >&6
7466else
7467  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7468  # We make a subdir and do the tests there.  Otherwise we can end up
7469  # making bogus files that we don't know about and never remove.  For
7470  # instance it was reported that on HP-UX the gcc test will end up
7471  # making a dummy file named 'D' -- because '-MD' means "put the output
7472  # in D".
7473  rm -rf conftest.dir
7474  mkdir conftest.dir
7475  # Copy depcomp to subdir because otherwise we won't find it if we're
7476  # using a relative directory.
7477  cp "$am_depcomp" conftest.dir
7478  cd conftest.dir
7479  # We will build objects and dependencies in a subdirectory because
7480  # it helps to detect inapplicable dependency modes.  For instance
7481  # both Tru64's cc and ICC support -MD to output dependencies as a
7482  # side effect of compilation, but ICC will put the dependencies in
7483  # the current directory while Tru64 will put them in the object
7484  # directory.
7485  mkdir sub
7486
7487  am_cv_CXX_dependencies_compiler_type=none
7488  if test "$am_compiler_list" = ""; then
7489     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7490  fi
7491  am__universal=false
7492  case " $depcc " in #(
7493     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7494     esac
7495
7496  for depmode in $am_compiler_list; do
7497    # Setup a source with many dependencies, because some compilers
7498    # like to wrap large dependency lists on column 80 (with \), and
7499    # we should not choose a depcomp mode which is confused by this.
7500    #
7501    # We need to recreate these files for each test, as the compiler may
7502    # overwrite some of them when testing with obscure command lines.
7503    # This happens at least with the AIX C compiler.
7504    : > sub/conftest.c
7505    for i in 1 2 3 4 5 6; do
7506      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7507      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7508      # Solaris 10 /bin/sh.
7509      echo '/* dummy */' > sub/conftst$i.h
7510    done
7511    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7512
7513    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7514    # mode.  It turns out that the SunPro C++ compiler does not properly
7515    # handle '-M -o', and we need to detect this.  Also, some Intel
7516    # versions had trouble with output in subdirs.
7517    am__obj=sub/conftest.${OBJEXT-o}
7518    am__minus_obj="-o $am__obj"
7519    case $depmode in
7520    gcc)
7521      # This depmode causes a compiler race in universal mode.
7522      test "$am__universal" = false || continue
7523      ;;
7524    nosideeffect)
7525      # After this tag, mechanisms are not by side-effect, so they'll
7526      # only be used when explicitly requested.
7527      if test "x$enable_dependency_tracking" = xyes; then
7528	continue
7529      else
7530	break
7531      fi
7532      ;;
7533    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7534      # This compiler won't grok '-c -o', but also, the minuso test has
7535      # not run yet.  These depmodes are late enough in the game, and
7536      # so weak that their functioning should not be impacted.
7537      am__obj=conftest.${OBJEXT-o}
7538      am__minus_obj=
7539      ;;
7540    none) break ;;
7541    esac
7542    if depmode=$depmode \
7543       source=sub/conftest.c object=$am__obj \
7544       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7545       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7546         >/dev/null 2>conftest.err &&
7547       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7548       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7549       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7550       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7551      # icc doesn't choke on unknown options, it will just issue warnings
7552      # or remarks (even with -Werror).  So we grep stderr for any message
7553      # that says an option was ignored or not supported.
7554      # When given -MP, icc 7.0 and 7.1 complain thusly:
7555      #   icc: Command line warning: ignoring option '-M'; no argument required
7556      # The diagnosis changed in icc 8.0:
7557      #   icc: Command line remark: option '-MP' not supported
7558      if (grep 'ignoring option' conftest.err ||
7559          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7560        am_cv_CXX_dependencies_compiler_type=$depmode
7561        break
7562      fi
7563    fi
7564  done
7565
7566  cd ..
7567  rm -rf conftest.dir
7568else
7569  am_cv_CXX_dependencies_compiler_type=none
7570fi
7571
7572fi
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7574$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7575CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7576
7577 if
7578  test "x$enable_dependency_tracking" != xno \
7579  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7580  am__fastdepCXX_TRUE=
7581  am__fastdepCXX_FALSE='#'
7582else
7583  am__fastdepCXX_TRUE='#'
7584  am__fastdepCXX_FALSE=
7585fi
7586
7587
7588   case $ac_cv_prog_cc_stdc in #(
7589  no) :
7590    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7591  *) :
7592    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7593$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7594if ${ac_cv_prog_cc_c99+:} false; then :
7595  $as_echo_n "(cached) " >&6
7596else
7597  ac_cv_prog_cc_c99=no
7598ac_save_CC=$CC
7599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h.  */
7601#include <stdarg.h>
7602#include <stdbool.h>
7603#include <stdlib.h>
7604#include <wchar.h>
7605#include <stdio.h>
7606
7607// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7608#define debug(...) fprintf (stderr, __VA_ARGS__)
7609#define showlist(...) puts (#__VA_ARGS__)
7610#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7611static void
7612test_varargs_macros (void)
7613{
7614  int x = 1234;
7615  int y = 5678;
7616  debug ("Flag");
7617  debug ("X = %d\n", x);
7618  showlist (The first, second, and third items.);
7619  report (x>y, "x is %d but y is %d", x, y);
7620}
7621
7622// Check long long types.
7623#define BIG64 18446744073709551615ull
7624#define BIG32 4294967295ul
7625#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7626#if !BIG_OK
7627  your preprocessor is broken;
7628#endif
7629#if BIG_OK
7630#else
7631  your preprocessor is broken;
7632#endif
7633static long long int bignum = -9223372036854775807LL;
7634static unsigned long long int ubignum = BIG64;
7635
7636struct incomplete_array
7637{
7638  int datasize;
7639  double data[];
7640};
7641
7642struct named_init {
7643  int number;
7644  const wchar_t *name;
7645  double average;
7646};
7647
7648typedef const char *ccp;
7649
7650static inline int
7651test_restrict (ccp restrict text)
7652{
7653  // See if C++-style comments work.
7654  // Iterate through items via the restricted pointer.
7655  // Also check for declarations in for loops.
7656  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7657    continue;
7658  return 0;
7659}
7660
7661// Check varargs and va_copy.
7662static void
7663test_varargs (const char *format, ...)
7664{
7665  va_list args;
7666  va_start (args, format);
7667  va_list args_copy;
7668  va_copy (args_copy, args);
7669
7670  const char *str;
7671  int number;
7672  float fnumber;
7673
7674  while (*format)
7675    {
7676      switch (*format++)
7677	{
7678	case 's': // string
7679	  str = va_arg (args_copy, const char *);
7680	  break;
7681	case 'd': // int
7682	  number = va_arg (args_copy, int);
7683	  break;
7684	case 'f': // float
7685	  fnumber = va_arg (args_copy, double);
7686	  break;
7687	default:
7688	  break;
7689	}
7690    }
7691  va_end (args_copy);
7692  va_end (args);
7693}
7694
7695int
7696main ()
7697{
7698
7699  // Check bool.
7700  _Bool success = false;
7701
7702  // Check restrict.
7703  if (test_restrict ("String literal") == 0)
7704    success = true;
7705  char *restrict newvar = "Another string";
7706
7707  // Check varargs.
7708  test_varargs ("s, d' f .", "string", 65, 34.234);
7709  test_varargs_macros ();
7710
7711  // Check flexible array members.
7712  struct incomplete_array *ia =
7713    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7714  ia->datasize = 10;
7715  for (int i = 0; i < ia->datasize; ++i)
7716    ia->data[i] = i * 1.234;
7717
7718  // Check named initializers.
7719  struct named_init ni = {
7720    .number = 34,
7721    .name = L"Test wide string",
7722    .average = 543.34343,
7723  };
7724
7725  ni.number = 58;
7726
7727  int dynamic_array[ni.number];
7728  dynamic_array[ni.number - 1] = 543;
7729
7730  // work around unused variable warnings
7731  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7732	  || dynamic_array[ni.number - 1] != 543);
7733
7734  ;
7735  return 0;
7736}
7737_ACEOF
7738for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7739do
7740  CC="$ac_save_CC $ac_arg"
7741  if ac_fn_c_try_compile "$LINENO"; then :
7742  ac_cv_prog_cc_c99=$ac_arg
7743fi
7744rm -f core conftest.err conftest.$ac_objext
7745  test "x$ac_cv_prog_cc_c99" != "xno" && break
7746done
7747rm -f conftest.$ac_ext
7748CC=$ac_save_CC
7749
7750fi
7751# AC_CACHE_VAL
7752case "x$ac_cv_prog_cc_c99" in
7753  x)
7754    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7755$as_echo "none needed" >&6; } ;;
7756  xno)
7757    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7758$as_echo "unsupported" >&6; } ;;
7759  *)
7760    CC="$CC $ac_cv_prog_cc_c99"
7761    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7762$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7763esac
7764if test "x$ac_cv_prog_cc_c99" != xno; then :
7765  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7766else
7767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7768$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7769if ${ac_cv_prog_cc_c89+:} false; then :
7770  $as_echo_n "(cached) " >&6
7771else
7772  ac_cv_prog_cc_c89=no
7773ac_save_CC=$CC
7774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h.  */
7776#include <stdarg.h>
7777#include <stdio.h>
7778struct stat;
7779/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7780struct buf { int x; };
7781FILE * (*rcsopen) (struct buf *, struct stat *, int);
7782static char *e (p, i)
7783     char **p;
7784     int i;
7785{
7786  return p[i];
7787}
7788static char *f (char * (*g) (char **, int), char **p, ...)
7789{
7790  char *s;
7791  va_list v;
7792  va_start (v,p);
7793  s = g (p, va_arg (v,int));
7794  va_end (v);
7795  return s;
7796}
7797
7798/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7799   function prototypes and stuff, but not '\xHH' hex character constants.
7800   These don't provoke an error unfortunately, instead are silently treated
7801   as 'x'.  The following induces an error, until -std is added to get
7802   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7803   array size at least.  It's necessary to write '\x00'==0 to get something
7804   that's true only with -std.  */
7805int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7806
7807/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7808   inside strings and character constants.  */
7809#define FOO(x) 'x'
7810int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7811
7812int test (int i, double x);
7813struct s1 {int (*f) (int a);};
7814struct s2 {int (*f) (double a);};
7815int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7816int argc;
7817char **argv;
7818int
7819main ()
7820{
7821return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7822  ;
7823  return 0;
7824}
7825_ACEOF
7826for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7827	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7828do
7829  CC="$ac_save_CC $ac_arg"
7830  if ac_fn_c_try_compile "$LINENO"; then :
7831  ac_cv_prog_cc_c89=$ac_arg
7832fi
7833rm -f core conftest.err conftest.$ac_objext
7834  test "x$ac_cv_prog_cc_c89" != "xno" && break
7835done
7836rm -f conftest.$ac_ext
7837CC=$ac_save_CC
7838
7839fi
7840# AC_CACHE_VAL
7841case "x$ac_cv_prog_cc_c89" in
7842  x)
7843    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7844$as_echo "none needed" >&6; } ;;
7845  xno)
7846    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7847$as_echo "unsupported" >&6; } ;;
7848  *)
7849    CC="$CC $ac_cv_prog_cc_c89"
7850    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7851$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7852esac
7853if test "x$ac_cv_prog_cc_c89" != xno; then :
7854  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7855else
7856  ac_cv_prog_cc_stdc=no
7857fi
7858
7859fi
7860 ;;
7861esac
7862  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7863$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7864  if ${ac_cv_prog_cc_stdc+:} false; then :
7865  $as_echo_n "(cached) " >&6
7866fi
7867
7868  case $ac_cv_prog_cc_stdc in #(
7869  no) :
7870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7871$as_echo "unsupported" >&6; } ;; #(
7872  '') :
7873    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7874$as_echo "none needed" >&6; } ;; #(
7875  *) :
7876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7877$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7878esac
7879
7880ac_ext=c
7881ac_cpp='$CPP $CPPFLAGS'
7882ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7886$as_echo_n "checking how to run the C preprocessor... " >&6; }
7887# On Suns, sometimes $CPP names a directory.
7888if test -n "$CPP" && test -d "$CPP"; then
7889  CPP=
7890fi
7891if test -z "$CPP"; then
7892  if ${ac_cv_prog_CPP+:} false; then :
7893  $as_echo_n "(cached) " >&6
7894else
7895      # Double quotes because CPP needs to be expanded
7896    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7897    do
7898      ac_preproc_ok=false
7899for ac_c_preproc_warn_flag in '' yes
7900do
7901  # Use a header file that comes with gcc, so configuring glibc
7902  # with a fresh cross-compiler works.
7903  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7904  # <limits.h> exists even on freestanding compilers.
7905  # On the NeXT, cc -E runs the code through the compiler's parser,
7906  # not just through cpp. "Syntax error" is here to catch this case.
7907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7908/* end confdefs.h.  */
7909#ifdef __STDC__
7910# include <limits.h>
7911#else
7912# include <assert.h>
7913#endif
7914		     Syntax error
7915_ACEOF
7916if ac_fn_c_try_cpp "$LINENO"; then :
7917
7918else
7919  # Broken: fails on valid input.
7920continue
7921fi
7922rm -f conftest.err conftest.i conftest.$ac_ext
7923
7924  # OK, works on sane cases.  Now check whether nonexistent headers
7925  # can be detected and how.
7926  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h.  */
7928#include <ac_nonexistent.h>
7929_ACEOF
7930if ac_fn_c_try_cpp "$LINENO"; then :
7931  # Broken: success on invalid input.
7932continue
7933else
7934  # Passes both tests.
7935ac_preproc_ok=:
7936break
7937fi
7938rm -f conftest.err conftest.i conftest.$ac_ext
7939
7940done
7941# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7942rm -f conftest.i conftest.err conftest.$ac_ext
7943if $ac_preproc_ok; then :
7944  break
7945fi
7946
7947    done
7948    ac_cv_prog_CPP=$CPP
7949
7950fi
7951  CPP=$ac_cv_prog_CPP
7952else
7953  ac_cv_prog_CPP=$CPP
7954fi
7955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7956$as_echo "$CPP" >&6; }
7957ac_preproc_ok=false
7958for ac_c_preproc_warn_flag in '' yes
7959do
7960  # Use a header file that comes with gcc, so configuring glibc
7961  # with a fresh cross-compiler works.
7962  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7963  # <limits.h> exists even on freestanding compilers.
7964  # On the NeXT, cc -E runs the code through the compiler's parser,
7965  # not just through cpp. "Syntax error" is here to catch this case.
7966  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7967/* end confdefs.h.  */
7968#ifdef __STDC__
7969# include <limits.h>
7970#else
7971# include <assert.h>
7972#endif
7973		     Syntax error
7974_ACEOF
7975if ac_fn_c_try_cpp "$LINENO"; then :
7976
7977else
7978  # Broken: fails on valid input.
7979continue
7980fi
7981rm -f conftest.err conftest.i conftest.$ac_ext
7982
7983  # OK, works on sane cases.  Now check whether nonexistent headers
7984  # can be detected and how.
7985  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h.  */
7987#include <ac_nonexistent.h>
7988_ACEOF
7989if ac_fn_c_try_cpp "$LINENO"; then :
7990  # Broken: success on invalid input.
7991continue
7992else
7993  # Passes both tests.
7994ac_preproc_ok=:
7995break
7996fi
7997rm -f conftest.err conftest.i conftest.$ac_ext
7998
7999done
8000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8001rm -f conftest.i conftest.err conftest.$ac_ext
8002if $ac_preproc_ok; then :
8003
8004else
8005  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8007as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8008See \`config.log' for more details" "$LINENO" 5; }
8009fi
8010
8011ac_ext=c
8012ac_cpp='$CPP $CPPFLAGS'
8013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8015ac_compiler_gnu=$ac_cv_c_compiler_gnu
8016
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8018$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8019if ${ac_cv_path_SED+:} false; then :
8020  $as_echo_n "(cached) " >&6
8021else
8022            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8023     for ac_i in 1 2 3 4 5 6 7; do
8024       ac_script="$ac_script$as_nl$ac_script"
8025     done
8026     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8027     { ac_script=; unset ac_script;}
8028     if test -z "$SED"; then
8029  ac_path_SED_found=false
8030  # Loop through the user's path and test for each of PROGNAME-LIST
8031  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8032for as_dir in $PATH
8033do
8034  IFS=$as_save_IFS
8035  test -z "$as_dir" && as_dir=.
8036    for ac_prog in sed gsed; do
8037    for ac_exec_ext in '' $ac_executable_extensions; do
8038      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8039      as_fn_executable_p "$ac_path_SED" || continue
8040# Check for GNU ac_path_SED and select it if it is found.
8041  # Check for GNU $ac_path_SED
8042case `"$ac_path_SED" --version 2>&1` in
8043*GNU*)
8044  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8045*)
8046  ac_count=0
8047  $as_echo_n 0123456789 >"conftest.in"
8048  while :
8049  do
8050    cat "conftest.in" "conftest.in" >"conftest.tmp"
8051    mv "conftest.tmp" "conftest.in"
8052    cp "conftest.in" "conftest.nl"
8053    $as_echo '' >> "conftest.nl"
8054    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8055    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8056    as_fn_arith $ac_count + 1 && ac_count=$as_val
8057    if test $ac_count -gt ${ac_path_SED_max-0}; then
8058      # Best one so far, save it but keep looking for a better one
8059      ac_cv_path_SED="$ac_path_SED"
8060      ac_path_SED_max=$ac_count
8061    fi
8062    # 10*(2^10) chars as input seems more than enough
8063    test $ac_count -gt 10 && break
8064  done
8065  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8066esac
8067
8068      $ac_path_SED_found && break 3
8069    done
8070  done
8071  done
8072IFS=$as_save_IFS
8073  if test -z "$ac_cv_path_SED"; then
8074    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8075  fi
8076else
8077  ac_cv_path_SED=$SED
8078fi
8079
8080fi
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8082$as_echo "$ac_cv_path_SED" >&6; }
8083 SED="$ac_cv_path_SED"
8084  rm -f conftest.sed
8085
8086test -z "$SED" && SED=sed
8087Xsed="$SED -e 1s/^X//"
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8100$as_echo_n "checking for fgrep... " >&6; }
8101if ${ac_cv_path_FGREP+:} false; then :
8102  $as_echo_n "(cached) " >&6
8103else
8104  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8105   then ac_cv_path_FGREP="$GREP -F"
8106   else
8107     if test -z "$FGREP"; then
8108  ac_path_FGREP_found=false
8109  # Loop through the user's path and test for each of PROGNAME-LIST
8110  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8112do
8113  IFS=$as_save_IFS
8114  test -z "$as_dir" && as_dir=.
8115    for ac_prog in fgrep; do
8116    for ac_exec_ext in '' $ac_executable_extensions; do
8117      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8118      as_fn_executable_p "$ac_path_FGREP" || continue
8119# Check for GNU ac_path_FGREP and select it if it is found.
8120  # Check for GNU $ac_path_FGREP
8121case `"$ac_path_FGREP" --version 2>&1` in
8122*GNU*)
8123  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8124*)
8125  ac_count=0
8126  $as_echo_n 0123456789 >"conftest.in"
8127  while :
8128  do
8129    cat "conftest.in" "conftest.in" >"conftest.tmp"
8130    mv "conftest.tmp" "conftest.in"
8131    cp "conftest.in" "conftest.nl"
8132    $as_echo 'FGREP' >> "conftest.nl"
8133    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8134    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8135    as_fn_arith $ac_count + 1 && ac_count=$as_val
8136    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8137      # Best one so far, save it but keep looking for a better one
8138      ac_cv_path_FGREP="$ac_path_FGREP"
8139      ac_path_FGREP_max=$ac_count
8140    fi
8141    # 10*(2^10) chars as input seems more than enough
8142    test $ac_count -gt 10 && break
8143  done
8144  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8145esac
8146
8147      $ac_path_FGREP_found && break 3
8148    done
8149  done
8150  done
8151IFS=$as_save_IFS
8152  if test -z "$ac_cv_path_FGREP"; then
8153    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8154  fi
8155else
8156  ac_cv_path_FGREP=$FGREP
8157fi
8158
8159   fi
8160fi
8161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8162$as_echo "$ac_cv_path_FGREP" >&6; }
8163 FGREP="$ac_cv_path_FGREP"
8164
8165
8166test -z "$GREP" && GREP=grep
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8185ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8186ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8187
8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8189$as_echo_n "checking how to print strings... " >&6; }
8190# Test print first, because it will be a builtin if present.
8191if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8192   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8193  ECHO='print -r --'
8194elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8195  ECHO='printf %s\n'
8196else
8197  # Use this function as a fallback that always works.
8198  func_fallback_echo ()
8199  {
8200    eval 'cat <<_LTECHO_EOF
8201$1
8202_LTECHO_EOF'
8203  }
8204  ECHO='func_fallback_echo'
8205fi
8206
8207# func_echo_all arg...
8208# Invoke $ECHO with all args, space-separated.
8209func_echo_all ()
8210{
8211    $ECHO ""
8212}
8213
8214case $ECHO in
8215  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8216$as_echo "printf" >&6; } ;;
8217  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8218$as_echo "print -r" >&6; } ;;
8219  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8220$as_echo "cat" >&6; } ;;
8221esac
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238# Check whether --with-gnu-ld was given.
8239if test "${with_gnu_ld+set}" = set; then :
8240  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8241else
8242  with_gnu_ld=no
8243fi
8244
8245ac_prog=ld
8246if test yes = "$GCC"; then
8247  # Check if gcc -print-prog-name=ld gives a path.
8248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8249$as_echo_n "checking for ld used by $CC... " >&6; }
8250  case $host in
8251  *-*-mingw*)
8252    # gcc leaves a trailing carriage return, which upsets mingw
8253    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8254  *)
8255    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8256  esac
8257  case $ac_prog in
8258    # Accept absolute paths.
8259    [\\/]* | ?:[\\/]*)
8260      re_direlt='/[^/][^/]*/\.\./'
8261      # Canonicalize the pathname of ld
8262      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8263      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8264	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8265      done
8266      test -z "$LD" && LD=$ac_prog
8267      ;;
8268  "")
8269    # If it fails, then pretend we aren't using GCC.
8270    ac_prog=ld
8271    ;;
8272  *)
8273    # If it is relative, then search for the first ld in PATH.
8274    with_gnu_ld=unknown
8275    ;;
8276  esac
8277elif test yes = "$with_gnu_ld"; then
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8279$as_echo_n "checking for GNU ld... " >&6; }
8280else
8281  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8282$as_echo_n "checking for non-GNU ld... " >&6; }
8283fi
8284if ${lt_cv_path_LD+:} false; then :
8285  $as_echo_n "(cached) " >&6
8286else
8287  if test -z "$LD"; then
8288  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8289  for ac_dir in $PATH; do
8290    IFS=$lt_save_ifs
8291    test -z "$ac_dir" && ac_dir=.
8292    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8293      lt_cv_path_LD=$ac_dir/$ac_prog
8294      # Check to see if the program is GNU ld.  I'd rather use --version,
8295      # but apparently some variants of GNU ld only accept -v.
8296      # Break only if it was the GNU/non-GNU ld that we prefer.
8297      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8298      *GNU* | *'with BFD'*)
8299	test no != "$with_gnu_ld" && break
8300	;;
8301      *)
8302	test yes != "$with_gnu_ld" && break
8303	;;
8304      esac
8305    fi
8306  done
8307  IFS=$lt_save_ifs
8308else
8309  lt_cv_path_LD=$LD # Let the user override the test with a path.
8310fi
8311fi
8312
8313LD=$lt_cv_path_LD
8314if test -n "$LD"; then
8315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8316$as_echo "$LD" >&6; }
8317else
8318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319$as_echo "no" >&6; }
8320fi
8321test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8323$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8324if ${lt_cv_prog_gnu_ld+:} false; then :
8325  $as_echo_n "(cached) " >&6
8326else
8327  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8328case `$LD -v 2>&1 </dev/null` in
8329*GNU* | *'with BFD'*)
8330  lt_cv_prog_gnu_ld=yes
8331  ;;
8332*)
8333  lt_cv_prog_gnu_ld=no
8334  ;;
8335esac
8336fi
8337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8338$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8339with_gnu_ld=$lt_cv_prog_gnu_ld
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8351$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8352if ${ac_cv_prog_cc_c99+:} false; then :
8353  $as_echo_n "(cached) " >&6
8354else
8355  ac_cv_prog_cc_c99=no
8356ac_save_CC=$CC
8357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8358/* end confdefs.h.  */
8359#include <stdarg.h>
8360#include <stdbool.h>
8361#include <stdlib.h>
8362#include <wchar.h>
8363#include <stdio.h>
8364
8365// Check varargs macros.  These examples are taken from C99 6.10.3.5.
8366#define debug(...) fprintf (stderr, __VA_ARGS__)
8367#define showlist(...) puts (#__VA_ARGS__)
8368#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8369static void
8370test_varargs_macros (void)
8371{
8372  int x = 1234;
8373  int y = 5678;
8374  debug ("Flag");
8375  debug ("X = %d\n", x);
8376  showlist (The first, second, and third items.);
8377  report (x>y, "x is %d but y is %d", x, y);
8378}
8379
8380// Check long long types.
8381#define BIG64 18446744073709551615ull
8382#define BIG32 4294967295ul
8383#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8384#if !BIG_OK
8385  your preprocessor is broken;
8386#endif
8387#if BIG_OK
8388#else
8389  your preprocessor is broken;
8390#endif
8391static long long int bignum = -9223372036854775807LL;
8392static unsigned long long int ubignum = BIG64;
8393
8394struct incomplete_array
8395{
8396  int datasize;
8397  double data[];
8398};
8399
8400struct named_init {
8401  int number;
8402  const wchar_t *name;
8403  double average;
8404};
8405
8406typedef const char *ccp;
8407
8408static inline int
8409test_restrict (ccp restrict text)
8410{
8411  // See if C++-style comments work.
8412  // Iterate through items via the restricted pointer.
8413  // Also check for declarations in for loops.
8414  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8415    continue;
8416  return 0;
8417}
8418
8419// Check varargs and va_copy.
8420static void
8421test_varargs (const char *format, ...)
8422{
8423  va_list args;
8424  va_start (args, format);
8425  va_list args_copy;
8426  va_copy (args_copy, args);
8427
8428  const char *str;
8429  int number;
8430  float fnumber;
8431
8432  while (*format)
8433    {
8434      switch (*format++)
8435	{
8436	case 's': // string
8437	  str = va_arg (args_copy, const char *);
8438	  break;
8439	case 'd': // int
8440	  number = va_arg (args_copy, int);
8441	  break;
8442	case 'f': // float
8443	  fnumber = va_arg (args_copy, double);
8444	  break;
8445	default:
8446	  break;
8447	}
8448    }
8449  va_end (args_copy);
8450  va_end (args);
8451}
8452
8453int
8454main ()
8455{
8456
8457  // Check bool.
8458  _Bool success = false;
8459
8460  // Check restrict.
8461  if (test_restrict ("String literal") == 0)
8462    success = true;
8463  char *restrict newvar = "Another string";
8464
8465  // Check varargs.
8466  test_varargs ("s, d' f .", "string", 65, 34.234);
8467  test_varargs_macros ();
8468
8469  // Check flexible array members.
8470  struct incomplete_array *ia =
8471    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8472  ia->datasize = 10;
8473  for (int i = 0; i < ia->datasize; ++i)
8474    ia->data[i] = i * 1.234;
8475
8476  // Check named initializers.
8477  struct named_init ni = {
8478    .number = 34,
8479    .name = L"Test wide string",
8480    .average = 543.34343,
8481  };
8482
8483  ni.number = 58;
8484
8485  int dynamic_array[ni.number];
8486  dynamic_array[ni.number - 1] = 543;
8487
8488  // work around unused variable warnings
8489  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8490	  || dynamic_array[ni.number - 1] != 543);
8491
8492  ;
8493  return 0;
8494}
8495_ACEOF
8496for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
8497do
8498  CC="$ac_save_CC $ac_arg"
8499  if ac_fn_c_try_compile "$LINENO"; then :
8500  ac_cv_prog_cc_c99=$ac_arg
8501fi
8502rm -f core conftest.err conftest.$ac_objext
8503  test "x$ac_cv_prog_cc_c99" != "xno" && break
8504done
8505rm -f conftest.$ac_ext
8506CC=$ac_save_CC
8507
8508fi
8509# AC_CACHE_VAL
8510case "x$ac_cv_prog_cc_c99" in
8511  x)
8512    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8513$as_echo "none needed" >&6; } ;;
8514  xno)
8515    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8516$as_echo "unsupported" >&6; } ;;
8517  *)
8518    CC="$CC $ac_cv_prog_cc_c99"
8519    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8520$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8521esac
8522if test "x$ac_cv_prog_cc_c99" != xno; then :
8523
8524fi
8525
8526
8527
8528ac_ext=c
8529ac_cpp='$CPP $CPPFLAGS'
8530ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8531ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8532ac_compiler_gnu=$ac_cv_c_compiler_gnu
8533
8534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8535$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8536if ${ac_cv_cflags_warn_all+:} false; then :
8537  $as_echo_n "(cached) " >&6
8538else
8539  ac_cv_cflags_warn_all="no, unknown"
8540ac_save_CFLAGS="$CFLAGS"
8541for 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"    #
8542do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8544/* end confdefs.h.  */
8545
8546int
8547main ()
8548{
8549
8550  ;
8551  return 0;
8552}
8553_ACEOF
8554if ac_fn_c_try_compile "$LINENO"; then :
8555  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8556fi
8557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558done
8559CFLAGS="$ac_save_CFLAGS"
8560
8561fi
8562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8563$as_echo "$ac_cv_cflags_warn_all" >&6; }
8564
8565
8566case ".$ac_cv_cflags_warn_all" in
8567     .ok|.ok,*)  ;;
8568   .|.no|.no,*)  ;;
8569   *)
8570if ${CFLAGS+:} false; then :
8571
8572  case " $CFLAGS " in #(
8573  *" $ac_cv_cflags_warn_all "*) :
8574    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8575  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8576  ac_status=$?
8577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8578  test $ac_status = 0; } ;; #(
8579  *) :
8580
8581     as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8582     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8583  (: CFLAGS="$CFLAGS") 2>&5
8584  ac_status=$?
8585  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8586  test $ac_status = 0; }
8587     ;;
8588esac
8589
8590else
8591
8592  CFLAGS=$ac_cv_cflags_warn_all
8593  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8594  (: CFLAGS="$CFLAGS") 2>&5
8595  ac_status=$?
8596  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8597  test $ac_status = 0; }
8598
8599fi
8600 ;;
8601esac
8602
8603ac_ext=c
8604ac_cpp='$CPP $CPPFLAGS'
8605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8607ac_compiler_gnu=$ac_cv_c_compiler_gnu
8608
8609
8610
8611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8612$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8613set x ${MAKE-make}
8614ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8615if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8616  $as_echo_n "(cached) " >&6
8617else
8618  cat >conftest.make <<\_ACEOF
8619SHELL = /bin/sh
8620all:
8621	@echo '@@@%%%=$(MAKE)=@@@%%%'
8622_ACEOF
8623# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8624case `${MAKE-make} -f conftest.make 2>/dev/null` in
8625  *@@@%%%=?*=@@@%%%*)
8626    eval ac_cv_prog_make_${ac_make}_set=yes;;
8627  *)
8628    eval ac_cv_prog_make_${ac_make}_set=no;;
8629esac
8630rm -f conftest.make
8631fi
8632if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8634$as_echo "yes" >&6; }
8635  SET_MAKE=
8636else
8637  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638$as_echo "no" >&6; }
8639  SET_MAKE="MAKE=${MAKE-make}"
8640fi
8641
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8643$as_echo_n "checking whether ln -s works... " >&6; }
8644LN_S=$as_ln_s
8645if test "$LN_S" = "ln -s"; then
8646  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8647$as_echo "yes" >&6; }
8648else
8649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8650$as_echo "no, using $LN_S" >&6; }
8651fi
8652
8653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8654$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8655if ${ac_cv_path_SED+:} false; then :
8656  $as_echo_n "(cached) " >&6
8657else
8658            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8659     for ac_i in 1 2 3 4 5 6 7; do
8660       ac_script="$ac_script$as_nl$ac_script"
8661     done
8662     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8663     { ac_script=; unset ac_script;}
8664     if test -z "$SED"; then
8665  ac_path_SED_found=false
8666  # Loop through the user's path and test for each of PROGNAME-LIST
8667  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8668for as_dir in $PATH
8669do
8670  IFS=$as_save_IFS
8671  test -z "$as_dir" && as_dir=.
8672    for ac_prog in sed gsed; do
8673    for ac_exec_ext in '' $ac_executable_extensions; do
8674      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8675      as_fn_executable_p "$ac_path_SED" || continue
8676# Check for GNU ac_path_SED and select it if it is found.
8677  # Check for GNU $ac_path_SED
8678case `"$ac_path_SED" --version 2>&1` in
8679*GNU*)
8680  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8681*)
8682  ac_count=0
8683  $as_echo_n 0123456789 >"conftest.in"
8684  while :
8685  do
8686    cat "conftest.in" "conftest.in" >"conftest.tmp"
8687    mv "conftest.tmp" "conftest.in"
8688    cp "conftest.in" "conftest.nl"
8689    $as_echo '' >> "conftest.nl"
8690    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8691    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8692    as_fn_arith $ac_count + 1 && ac_count=$as_val
8693    if test $ac_count -gt ${ac_path_SED_max-0}; then
8694      # Best one so far, save it but keep looking for a better one
8695      ac_cv_path_SED="$ac_path_SED"
8696      ac_path_SED_max=$ac_count
8697    fi
8698    # 10*(2^10) chars as input seems more than enough
8699    test $ac_count -gt 10 && break
8700  done
8701  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8702esac
8703
8704      $ac_path_SED_found && break 3
8705    done
8706  done
8707  done
8708IFS=$as_save_IFS
8709  if test -z "$ac_cv_path_SED"; then
8710    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8711  fi
8712else
8713  ac_cv_path_SED=$SED
8714fi
8715
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8718$as_echo "$ac_cv_path_SED" >&6; }
8719 SED="$ac_cv_path_SED"
8720  rm -f conftest.sed
8721
8722for ac_prog in gawk mawk nawk awk
8723do
8724  # Extract the first word of "$ac_prog", so it can be a program name with args.
8725set dummy $ac_prog; ac_word=$2
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727$as_echo_n "checking for $ac_word... " >&6; }
8728if ${ac_cv_prog_AWK+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  if test -n "$AWK"; then
8732  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8733else
8734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8735for as_dir in $PATH
8736do
8737  IFS=$as_save_IFS
8738  test -z "$as_dir" && as_dir=.
8739    for ac_exec_ext in '' $ac_executable_extensions; do
8740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8741    ac_cv_prog_AWK="$ac_prog"
8742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743    break 2
8744  fi
8745done
8746  done
8747IFS=$as_save_IFS
8748
8749fi
8750fi
8751AWK=$ac_cv_prog_AWK
8752if test -n "$AWK"; then
8753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8754$as_echo "$AWK" >&6; }
8755else
8756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757$as_echo "no" >&6; }
8758fi
8759
8760
8761  test -n "$AWK" && break
8762done
8763
8764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8765$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8766
8767# Check whether --with-dmalloc was given.
8768if test "${with_dmalloc+set}" = set; then :
8769  withval=$with_dmalloc; if test "$withval" = yes; then
8770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8771$as_echo "yes" >&6; }
8772
8773$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8774
8775  LIBS="$LIBS -ldmalloc"
8776  LDFLAGS="$LDFLAGS -g"
8777else
8778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779$as_echo "no" >&6; }
8780fi
8781else
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8783$as_echo "no" >&6; }
8784fi
8785
8786
8787
8788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8789$as_echo_n "checking for __attribute__... " >&6; }
8790if ${ax_cv___attribute__+:} false; then :
8791  $as_echo_n "(cached) " >&6
8792else
8793  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8794/* end confdefs.h.  */
8795#include <stdlib.h>
8796	  static void foo(void) __attribute__ ((unused));
8797	  static void
8798	  foo(void) {
8799	      exit(1);
8800	  }
8801
8802int
8803main ()
8804{
8805
8806  ;
8807  return 0;
8808}
8809_ACEOF
8810if ac_fn_c_try_compile "$LINENO"; then :
8811  ax_cv___attribute__=yes
8812else
8813  ax_cv___attribute__=no
8814
8815fi
8816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8817
8818fi
8819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8820$as_echo "$ax_cv___attribute__" >&6; }
8821  if test "$ax_cv___attribute__" = "yes"; then
8822
8823$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8824
8825  fi
8826
8827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8828$as_echo_n "checking for C compiler vendor... " >&6; }
8829if ${ax_cv_c_compiler_vendor+:} false; then :
8830  $as_echo_n "(cached) " >&6
8831else
8832    # note: don't check for gcc first since some other compilers define __GNUC__
8833  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
8834           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
8835           pathscale: __PATHCC__,__PATHSCALE__
8836           clang:     __clang__
8837           cray:      _CRAYC
8838           fujitsu:   __FUJITSU
8839           sdcc:      SDCC, __SDCC
8840           gnu:       __GNUC__
8841           sun:       __SUNPRO_C,__SUNPRO_CC
8842           hp:        __HP_cc,__HP_aCC
8843           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8844           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
8845           comeau:    __COMO__
8846           kai:       __KCC
8847           lcc:       __LCC__
8848           sgi:       __sgi,sgi
8849           microsoft: _MSC_VER
8850           metrowerks: __MWERKS__
8851           watcom:    __WATCOMC__
8852           portland:  __PGI
8853	   tcc:       __TINYC__
8854           unknown:   UNKNOWN"
8855  for ventest in $vendors; do
8856    case $ventest in
8857      *:) vendor=$ventest; continue ;;
8858      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8859    esac
8860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8861/* end confdefs.h.  */
8862
8863int
8864main ()
8865{
8866
8867      #if !($vencpp)
8868        thisisanerror;
8869      #endif
8870
8871  ;
8872  return 0;
8873}
8874_ACEOF
8875if ac_fn_c_try_compile "$LINENO"; then :
8876  break
8877fi
8878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879  done
8880  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8881
8882fi
8883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8884$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8885
8886
8887
8888
8889
8890
8891
8892# Check whether --with-gcc-arch was given.
8893if test "${with_gcc_arch+set}" = set; then :
8894  withval=$with_gcc_arch; ax_gcc_arch=$withval
8895else
8896  ax_gcc_arch=yes
8897fi
8898
8899
8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8901$as_echo_n "checking for gcc architecture flag... " >&6; }
8902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8903$as_echo "" >&6; }
8904if ${ax_cv_gcc_archflag+:} false; then :
8905  $as_echo_n "(cached) " >&6
8906else
8907
8908ax_cv_gcc_archflag="unknown"
8909
8910if test "$GCC" = yes; then
8911
8912if test "x$ax_gcc_arch" = xyes; then
8913ax_gcc_arch=""
8914if test "$cross_compiling" = no; then
8915case $host_cpu in
8916  i[3456]86*|x86_64*|amd64*) # use cpuid codes
8917
8918ac_ext=c
8919ac_cpp='$CPP $CPPFLAGS'
8920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923
8924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8925$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8926if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8927  $as_echo_n "(cached) " >&6
8928else
8929  if test "$cross_compiling" = yes; then :
8930  ax_cv_gcc_x86_cpuid_0=unknown
8931else
8932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8933/* end confdefs.h.  */
8934#include <stdio.h>
8935int
8936main ()
8937{
8938
8939     int op = 0, level = 0, eax, ebx, ecx, edx;
8940     FILE *f;
8941      __asm__ __volatile__ ("xchg %%ebx, %1\n"
8942        "cpuid\n"
8943        "xchg %%ebx, %1\n"
8944        : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
8945        : "a" (op), "2" (level));
8946
8947     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8948     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8949     fclose(f);
8950     return 0;
8951
8952  ;
8953  return 0;
8954}
8955_ACEOF
8956if ac_fn_c_try_run "$LINENO"; then :
8957  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8958else
8959  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8960fi
8961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8962  conftest.$ac_objext conftest.beam conftest.$ac_ext
8963fi
8964
8965fi
8966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8967$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8968ac_ext=c
8969ac_cpp='$CPP $CPPFLAGS'
8970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8972ac_compiler_gnu=$ac_cv_c_compiler_gnu
8973
8974
8975
8976
8977ac_ext=c
8978ac_cpp='$CPP $CPPFLAGS'
8979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981ac_compiler_gnu=$ac_cv_c_compiler_gnu
8982
8983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8984$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8985if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8986  $as_echo_n "(cached) " >&6
8987else
8988  if test "$cross_compiling" = yes; then :
8989  ax_cv_gcc_x86_cpuid_1=unknown
8990else
8991  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992/* end confdefs.h.  */
8993#include <stdio.h>
8994int
8995main ()
8996{
8997
8998     int op = 1, level = 0, eax, ebx, ecx, edx;
8999     FILE *f;
9000      __asm__ __volatile__ ("xchg %%ebx, %1\n"
9001        "cpuid\n"
9002        "xchg %%ebx, %1\n"
9003        : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
9004        : "a" (op), "2" (level));
9005
9006     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
9007     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
9008     fclose(f);
9009     return 0;
9010
9011  ;
9012  return 0;
9013}
9014_ACEOF
9015if ac_fn_c_try_run "$LINENO"; then :
9016  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
9017else
9018  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
9019fi
9020rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9021  conftest.$ac_objext conftest.beam conftest.$ac_ext
9022fi
9023
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
9026$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
9027ac_ext=c
9028ac_cpp='$CPP $CPPFLAGS'
9029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9031ac_compiler_gnu=$ac_cv_c_compiler_gnu
9032
9033
9034
9035     case $ax_cv_gcc_x86_cpuid_0 in
9036       *:756e6547:6c65746e:49656e69) # Intel
9037          case $ax_cv_gcc_x86_cpuid_1 in
9038	    *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
9039	    *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
9040	    *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
9041	    *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
9042	    *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
9043	    *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
9044	    *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
9045	    *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
9046	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
9047	    *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
9048	    *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
9049	    *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9050	    *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9051	    *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9052	    *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
9053	    *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
9054	    *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
9055	    *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
9056	    *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
9057	    # fallback
9058	    *5??:*:*:*) ax_gcc_arch=pentium ;;
9059	    *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
9060	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
9061	    *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
9062          esac ;;
9063       *:68747541:444d4163:69746e65) # AMD
9064          case $ax_cv_gcc_x86_cpuid_1 in
9065	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
9066	    *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
9067	    *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
9068	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
9069	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
9070	    *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
9071	    *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
9072	    *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" ;;
9073	    *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9074	    *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9075	    *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9076	    *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9077	    *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9078	    *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9079	    # fallback
9080	    *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9081	    *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9082	    *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9083	    *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9084	    *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9085	    *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9086	    *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9087	    *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
9088          esac ;;
9089	*:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
9090	   case $ax_cv_gcc_x86_cpuid_1 in
9091	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
9092	     *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
9093	     *66?:*:*:*) ax_gcc_arch=winchip2 ;;
9094	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
9095	     *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
9096	   esac ;;
9097     esac
9098     if test x"$ax_gcc_arch" = x; then # fallback
9099	case $host_cpu in
9100	  i586*) ax_gcc_arch=pentium ;;
9101	  i686*) ax_gcc_arch=pentiumpro ;;
9102        esac
9103     fi
9104     ;;
9105
9106  sparc*)
9107     # Extract the first word of "prtdiag", so it can be a program name with args.
9108set dummy prtdiag; ac_word=$2
9109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110$as_echo_n "checking for $ac_word... " >&6; }
9111if ${ac_cv_path_PRTDIAG+:} false; then :
9112  $as_echo_n "(cached) " >&6
9113else
9114  case $PRTDIAG in
9115  [\\/]* | ?:[\\/]*)
9116  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
9117  ;;
9118  *)
9119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
9121for as_dir in $as_dummy
9122do
9123  IFS=$as_save_IFS
9124  test -z "$as_dir" && as_dir=.
9125    for ac_exec_ext in '' $ac_executable_extensions; do
9126  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9127    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
9128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129    break 2
9130  fi
9131done
9132  done
9133IFS=$as_save_IFS
9134
9135  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
9136  ;;
9137esac
9138fi
9139PRTDIAG=$ac_cv_path_PRTDIAG
9140if test -n "$PRTDIAG"; then
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
9142$as_echo "$PRTDIAG" >&6; }
9143else
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
9146fi
9147
9148
9149     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`
9150     cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
9151     case $cputype in
9152         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
9153         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
9154         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
9155         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
9156         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
9157         *cypress*) ax_gcc_arch=cypress ;;
9158     esac ;;
9159
9160  alphaev5) ax_gcc_arch=ev5 ;;
9161  alphaev56) ax_gcc_arch=ev56 ;;
9162  alphapca56) ax_gcc_arch="pca56 ev56" ;;
9163  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
9164  alphaev6) ax_gcc_arch=ev6 ;;
9165  alphaev67) ax_gcc_arch=ev67 ;;
9166  alphaev68) ax_gcc_arch="ev68 ev67" ;;
9167  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
9168  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
9169  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
9170
9171  powerpc*)
9172     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`
9173     cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
9174     case $cputype in
9175       *750*) ax_gcc_arch="750 G3" ;;
9176       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
9177       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
9178       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
9179       *970*) ax_gcc_arch="970 G5 power4";;
9180       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
9181       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
9182       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
9183       *POWER7*) ax_gcc_arch="power7";;
9184       *POWER8*) ax_gcc_arch="power8";;
9185       *POWER9*) ax_gcc_arch="power9";;
9186       *POWER10*) ax_gcc_arch="power10";;
9187       *) ax_gcc_arch=$cputype ;;
9188     esac
9189     ax_gcc_arch="$ax_gcc_arch powerpc"
9190     ;;
9191  aarch64)
9192     cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
9193     cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
9194     cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
9195     case $cpuimpl in
9196       0x42) case $cpuarch in
9197               8) case $cpuvar in
9198                    0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;;
9199                  esac
9200                  ;;
9201             esac
9202             ;;
9203       0x43) case $cpuarch in
9204               8) case $cpuvar in
9205                    0x0) ax_gcc_arch="thunderx armv8-a native" ;;
9206                    0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;;
9207                  esac
9208                  ;;
9209             esac
9210             ;;
9211      esac
9212      ;;
9213esac
9214fi # not cross-compiling
9215fi # guess arch
9216
9217if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
9218if test "xyes" = xyes; then # if we require portable code
9219  flag_prefixes="-mtune="
9220  if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9221  # -mcpu=$arch and m$arch generate nonportable code on every arch except
9222  # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
9223  case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9224else
9225  flag_prefixes="-march= -mcpu= -m"
9226fi
9227for flag_prefix in $flag_prefixes; do
9228  for arch in $ax_gcc_arch; do
9229    flag="$flag_prefix$arch"
9230    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9232$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9233if eval \${$as_CACHEVAR+:} false; then :
9234  $as_echo_n "(cached) " >&6
9235else
9236
9237  ax_check_save_flags=$CFLAGS
9238  CFLAGS="$CFLAGS  $flag"
9239  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9240/* end confdefs.h.  */
9241
9242int
9243main ()
9244{
9245
9246  ;
9247  return 0;
9248}
9249_ACEOF
9250if ac_fn_c_try_compile "$LINENO"; then :
9251  eval "$as_CACHEVAR=yes"
9252else
9253  eval "$as_CACHEVAR=no"
9254fi
9255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9256  CFLAGS=$ax_check_save_flags
9257fi
9258eval ac_res=\$$as_CACHEVAR
9259	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9260$as_echo "$ac_res" >&6; }
9261if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9262  if test "x$ax_cv_c_compiler_vendor" = xclang; then
9263      if test "xyes" = xyes; then
9264	if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9265      fi
9266    fi; ax_cv_gcc_archflag=$flag; break
9267else
9268  :
9269fi
9270
9271  done
9272  test "x$ax_cv_gcc_archflag" = xunknown || break
9273done
9274fi
9275
9276fi # $GCC=yes
9277
9278fi
9279
9280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9281$as_echo_n "checking for gcc architecture flag... " >&6; }
9282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9283$as_echo "$ax_cv_gcc_archflag" >&6; }
9284if test "x$ax_cv_gcc_archflag" = xunknown; then
9285  :
9286else
9287  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9288fi
9289
9290
9291
9292
9293
9294
9295
9296
9297if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9298	if test -n "$ac_tool_prefix"; then
9299  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9300set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9302$as_echo_n "checking for $ac_word... " >&6; }
9303if ${ac_cv_path_PKG_CONFIG+:} false; then :
9304  $as_echo_n "(cached) " >&6
9305else
9306  case $PKG_CONFIG in
9307  [\\/]* | ?:[\\/]*)
9308  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9309  ;;
9310  *)
9311  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9312for as_dir in $PATH
9313do
9314  IFS=$as_save_IFS
9315  test -z "$as_dir" && as_dir=.
9316    for ac_exec_ext in '' $ac_executable_extensions; do
9317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9318    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9320    break 2
9321  fi
9322done
9323  done
9324IFS=$as_save_IFS
9325
9326  ;;
9327esac
9328fi
9329PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9330if test -n "$PKG_CONFIG"; then
9331  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9332$as_echo "$PKG_CONFIG" >&6; }
9333else
9334  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335$as_echo "no" >&6; }
9336fi
9337
9338
9339fi
9340if test -z "$ac_cv_path_PKG_CONFIG"; then
9341  ac_pt_PKG_CONFIG=$PKG_CONFIG
9342  # Extract the first word of "pkg-config", so it can be a program name with args.
9343set dummy pkg-config; ac_word=$2
9344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345$as_echo_n "checking for $ac_word... " >&6; }
9346if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9347  $as_echo_n "(cached) " >&6
9348else
9349  case $ac_pt_PKG_CONFIG in
9350  [\\/]* | ?:[\\/]*)
9351  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9352  ;;
9353  *)
9354  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9355for as_dir in $PATH
9356do
9357  IFS=$as_save_IFS
9358  test -z "$as_dir" && as_dir=.
9359    for ac_exec_ext in '' $ac_executable_extensions; do
9360  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9361    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9363    break 2
9364  fi
9365done
9366  done
9367IFS=$as_save_IFS
9368
9369  ;;
9370esac
9371fi
9372ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9373if test -n "$ac_pt_PKG_CONFIG"; then
9374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9375$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9376else
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9378$as_echo "no" >&6; }
9379fi
9380
9381  if test "x$ac_pt_PKG_CONFIG" = x; then
9382    PKG_CONFIG=""
9383  else
9384    case $cross_compiling:$ac_tool_warned in
9385yes:)
9386{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9387$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9388ac_tool_warned=yes ;;
9389esac
9390    PKG_CONFIG=$ac_pt_PKG_CONFIG
9391  fi
9392else
9393  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9394fi
9395
9396fi
9397if test -n "$PKG_CONFIG"; then
9398	_pkg_min_version=0.20
9399	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9400$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9401	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9402		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9403$as_echo "yes" >&6; }
9404	else
9405		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9406$as_echo "no" >&6; }
9407		PKG_CONFIG=""
9408	fi
9409fi
9410
9411
9412
9413# Test for 64-bit build.
9414# The cast to long int works around a bug in the HP C Compiler
9415# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9416# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9417# This bug is HP SR number 8606223364.
9418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9419$as_echo_n "checking size of size_t... " >&6; }
9420if ${ac_cv_sizeof_size_t+:} false; then :
9421  $as_echo_n "(cached) " >&6
9422else
9423  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
9424
9425else
9426  if test "$ac_cv_type_size_t" = yes; then
9427     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9429as_fn_error 77 "cannot compute sizeof (size_t)
9430See \`config.log' for more details" "$LINENO" 5; }
9431   else
9432     ac_cv_sizeof_size_t=0
9433   fi
9434fi
9435
9436fi
9437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9438$as_echo "$ac_cv_sizeof_size_t" >&6; }
9439
9440
9441
9442cat >>confdefs.h <<_ACEOF
9443#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9444_ACEOF
9445
9446
9447
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9449$as_echo_n "checking for C compiler vendor... " >&6; }
9450if ${ax_cv_c_compiler_vendor+:} false; then :
9451  $as_echo_n "(cached) " >&6
9452else
9453    # note: don't check for gcc first since some other compilers define __GNUC__
9454  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
9455           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
9456           pathscale: __PATHCC__,__PATHSCALE__
9457           clang:     __clang__
9458           cray:      _CRAYC
9459           fujitsu:   __FUJITSU
9460           sdcc:      SDCC, __SDCC
9461           gnu:       __GNUC__
9462           sun:       __SUNPRO_C,__SUNPRO_CC
9463           hp:        __HP_cc,__HP_aCC
9464           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9465           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
9466           comeau:    __COMO__
9467           kai:       __KCC
9468           lcc:       __LCC__
9469           sgi:       __sgi,sgi
9470           microsoft: _MSC_VER
9471           metrowerks: __MWERKS__
9472           watcom:    __WATCOMC__
9473           portland:  __PGI
9474	   tcc:       __TINYC__
9475           unknown:   UNKNOWN"
9476  for ventest in $vendors; do
9477    case $ventest in
9478      *:) vendor=$ventest; continue ;;
9479      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9480    esac
9481    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9482/* end confdefs.h.  */
9483
9484int
9485main ()
9486{
9487
9488      #if !($vencpp)
9489        thisisanerror;
9490      #endif
9491
9492  ;
9493  return 0;
9494}
9495_ACEOF
9496if ac_fn_c_try_compile "$LINENO"; then :
9497  break
9498fi
9499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9500  done
9501  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9502
9503fi
9504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9505$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9506
9507
9508if test "x$GCC" = "xyes"; then
9509  CFLAGS="$CFLAGS -fexceptions"
9510  touch local.exp
9511else
9512  cat > local.exp <<EOF
9513set CC_FOR_TARGET "$CC"
9514EOF
9515fi
9516
9517# Check for linker script support
9518
9519  # Check whether --enable-ld-version-script was given.
9520if test "${enable_ld_version_script+set}" = set; then :
9521  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
9522else
9523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
9524$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
9525if ${gl_cv_sys_ld_version_script+:} false; then :
9526  $as_echo_n "(cached) " >&6
9527else
9528  gl_cv_sys_ld_version_script=no
9529        save_LDFLAGS=$LDFLAGS
9530        LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
9531        echo foo >conftest.map
9532        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9533/* end confdefs.h.  */
9534
9535int
9536main ()
9537{
9538
9539  ;
9540  return 0;
9541}
9542_ACEOF
9543if ac_fn_c_try_link "$LINENO"; then :
9544
9545else
9546  cat > conftest.map <<EOF
9547VERS_1 {
9548        global: sym;
9549};
9550
9551VERS_2 {
9552        global: sym;
9553} VERS_1;
9554EOF
9555           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9556/* end confdefs.h.  */
9557
9558int
9559main ()
9560{
9561
9562  ;
9563  return 0;
9564}
9565_ACEOF
9566if ac_fn_c_try_link "$LINENO"; then :
9567  gl_cv_sys_ld_version_script=yes
9568fi
9569rm -f core conftest.err conftest.$ac_objext \
9570    conftest$ac_exeext conftest.$ac_ext
9571fi
9572rm -f core conftest.err conftest.$ac_objext \
9573    conftest$ac_exeext conftest.$ac_ext
9574        rm -f conftest.map
9575        LDFLAGS=$save_LDFLAGS
9576fi
9577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_ld_version_script" >&5
9578$as_echo "$gl_cv_sys_ld_version_script" >&6; }
9579     have_ld_version_script=$gl_cv_sys_ld_version_script
9580fi
9581
9582   if test "$have_ld_version_script" = yes; then
9583  HAVE_LD_VERSION_SCRIPT_TRUE=
9584  HAVE_LD_VERSION_SCRIPT_FALSE='#'
9585else
9586  HAVE_LD_VERSION_SCRIPT_TRUE='#'
9587  HAVE_LD_VERSION_SCRIPT_FALSE=
9588fi
9589
9590
9591
9592#
9593# Enable run-time checking.
9594#
9595# Check whether --enable-bounds-checking was given.
9596if test "${enable_bounds_checking+set}" = set; then :
9597  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
9598else
9599  enable_bounds_checking='no'
9600fi
9601
9602
9603if test "$enable_bounds_checking" = yes; then
9604
9605$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
9606
9607fi
9608
9609#
9610# Tests for Windows
9611#
9612
9613
9614
9615GDI32_LIBS=''
9616WS2_32_LIBS=''
9617native_win32_build='no'
9618cygwin_build='no'
9619case "${host_os}" in
9620    cygwin* )
9621        cygwin_build='yes'
9622        GDI32_LIBS='-lgdi32'
9623    ;;
9624    mingw* )
9625        native_win32_build='yes'
9626        GDI32_LIBS='-lgdi32'
9627        OLE_LIBS='-loleaut32'
9628        WS2_32_LIBS="-lws2_32"
9629    ;;
9630esac
9631if test "${GDI32_LIBS}x" != 'x'; then
9632
9633$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
9634
9635fi
9636
9637
9638
9639 if test "${GDI32_LIBS}x" != 'x' ; then
9640  WINGDI32_DELEGATE_TRUE=
9641  WINGDI32_DELEGATE_FALSE='#'
9642else
9643  WINGDI32_DELEGATE_TRUE='#'
9644  WINGDI32_DELEGATE_FALSE=
9645fi
9646
9647 if test "${native_win32_build}" = 'yes' ; then
9648  WIN32_NATIVE_BUILD_TRUE=
9649  WIN32_NATIVE_BUILD_FALSE='#'
9650else
9651  WIN32_NATIVE_BUILD_TRUE='#'
9652  WIN32_NATIVE_BUILD_FALSE=
9653fi
9654
9655 if test "${cygwin_build}" = 'yes' ; then
9656  CYGWIN_BUILD_TRUE=
9657  CYGWIN_BUILD_FALSE='#'
9658else
9659  CYGWIN_BUILD_TRUE='#'
9660  CYGWIN_BUILD_FALSE=
9661fi
9662
9663 if test "x${CC}" = 'xcl.exe' ; then
9664  USING_CL_TRUE=
9665  USING_CL_FALSE='#'
9666else
9667  USING_CL_TRUE='#'
9668  USING_CL_FALSE=
9669fi
9670
9671
9672WinPathScript="${srcdirfull}/winpath.sh"
9673
9674
9675#
9676# Compiler flags tweaks
9677#
9678if test "${GCC}" != "yes"; then
9679    case "${host}" in
9680        *-*-hpux* )
9681            # aCC: HP ANSI C++ B3910B A.03.34
9682            CFLAGS="${CFLAGS} -Wp,-H30000"
9683            if test -n "${CXXFLAGS}"; then
9684                CXXFLAGS='-AA'
9685            else
9686                CXXFLAGS="${CXXFLAGS} -AA"
9687            fi
9688        ;;
9689        *-dec-osf5.* )
9690            # Compaq alphaev68-dec-osf5.1 compiler
9691            if test -n "${CXXFLAGS}"; then
9692                CXXFLAGS='-std strict_ansi -noimplicit_include'
9693            else
9694                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
9695            fi
9696  esac
9697fi
9698
9699# Check for lazy-loading.
9700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
9701$as_echo_n "checking for linker lazyload option... " >&6; }
9702if ${im_cv_ld_lazyload+:} false; then :
9703  $as_echo_n "(cached) " >&6
9704else
9705
9706im_cv_ld_lazyload='none'
9707case "${host}" in
9708  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
9709    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
9710       im_cv_ld_lazyload='-Wl,-zlazyload'
9711    fi
9712    ;;
9713esac
9714
9715fi
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
9717$as_echo "$im_cv_ld_lazyload" >&6; }
9718if test "${im_cv_ld_lazyload}" != 'none' ; then
9719  if test -z "${LDFLAGS}" ; then
9720    LDFLAGS="${im_cv_ld_lazyload}"
9721  else
9722    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
9723  fi
9724fi
9725
9726case "$host" in
9727  *darwin* | *-macos10*)
9728        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
9729        # Check whether --enable-osx-universal-binary was given.
9730if test "${enable_osx_universal_binary+set}" = set; then :
9731  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
9732else
9733  build_osxuniversal=no
9734fi
9735
9736
9737    if test "${build_osxuniversal}" != no ; then
9738      if test "$enable_dependency_tracking" != no ; then
9739        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
9740Please re-run configure with these options:
9741  --disable-dependency-tracking --enable-osx-universal-binary
9742        " "$LINENO" 5
9743      fi
9744      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9745      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9746      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
9747  fi
9748  ;;
9749esac
9750
9751#
9752# ARCH specific include directory
9753#
9754
9755# Check whether --with-includearch-dir was given.
9756if test "${with_includearch_dir+set}" = set; then :
9757  withval=$with_includearch_dir; includearch_dir=$withval
9758else
9759  includearch_dir=$INCLUDE_DIR
9760fi
9761
9762
9763eval "eval INCLUDEARCH_DIR=$includearch_dir"
9764
9765
9766#
9767# ARCH specific configuration directory
9768#
9769
9770# Check whether --with-sharearch-dir was given.
9771if test "${with_sharearch_dir+set}" = set; then :
9772  withval=$with_sharearch_dir; sharearch_dir=$withval
9773else
9774  sharearch_dir="${LIB_DIR}"
9775fi
9776
9777
9778eval "eval SHAREARCH_DIR=$sharearch_dir"
9779
9780
9781# Path to the pkgconfig folder
9782
9783# Check whether --with-pkgconfigdir was given.
9784if test "${with_pkgconfigdir+set}" = set; then :
9785  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
9786else
9787  pkgconfigdir='${libdir}/pkgconfig'
9788fi
9789
9790
9791
9792#
9793# Enable support for POSIX thread APIs
9794#
9795
9796# Check whether --with-threads was given.
9797if test "${with_threads+set}" = set; then :
9798  withval=$with_threads; with_threads=$withval
9799else
9800  with_threads='yes'
9801fi
9802
9803
9804THREAD_LIBS=''
9805have_threads=no
9806if test "$with_threads" != 'no'; then
9807
9808
9809
9810
9811ac_ext=c
9812ac_cpp='$CPP $CPPFLAGS'
9813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9815ac_compiler_gnu=$ac_cv_c_compiler_gnu
9816
9817ax_pthread_ok=no
9818
9819# We used to check for pthread.h first, but this fails if pthread.h
9820# requires special compiler flags (e.g. on Tru64 or Sequent).
9821# It gets checked for in the link test anyway.
9822
9823# First of all, check if the user has set any of the PTHREAD_LIBS,
9824# etcetera environment variables, and if threads linking works using
9825# them:
9826if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
9827        ax_pthread_save_CC="$CC"
9828        ax_pthread_save_CFLAGS="$CFLAGS"
9829        ax_pthread_save_LIBS="$LIBS"
9830        if test "x$PTHREAD_CC" != "x"; then :
9831  CC="$PTHREAD_CC"
9832fi
9833        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9834        LIBS="$PTHREAD_LIBS $LIBS"
9835        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
9836$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
9837        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h.  */
9839
9840/* Override any GCC internal prototype to avoid an error.
9841   Use char because int might match the return type of a GCC
9842   builtin and then its argument prototype would still apply.  */
9843#ifdef __cplusplus
9844extern "C"
9845#endif
9846char pthread_join ();
9847int
9848main ()
9849{
9850return pthread_join ();
9851  ;
9852  return 0;
9853}
9854_ACEOF
9855if ac_fn_c_try_link "$LINENO"; then :
9856  ax_pthread_ok=yes
9857fi
9858rm -f core conftest.err conftest.$ac_objext \
9859    conftest$ac_exeext conftest.$ac_ext
9860        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9861$as_echo "$ax_pthread_ok" >&6; }
9862        if test "x$ax_pthread_ok" = "xno"; then
9863                PTHREAD_LIBS=""
9864                PTHREAD_CFLAGS=""
9865        fi
9866        CC="$ax_pthread_save_CC"
9867        CFLAGS="$ax_pthread_save_CFLAGS"
9868        LIBS="$ax_pthread_save_LIBS"
9869fi
9870
9871# We must check for the threads library under a number of different
9872# names; the ordering is very important because some systems
9873# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9874# libraries is broken (non-POSIX).
9875
9876# Create a list of thread flags to try.  Items starting with a "-" are
9877# C compiler flags, and other items are library names, except for "none"
9878# which indicates that we try without any flags at all, and "pthread-config"
9879# which is a program returning the flags for the Pth emulation library.
9880
9881ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
9882
9883# The ordering *is* (sometimes) important.  Some notes on the
9884# individual items follow:
9885
9886# pthreads: AIX (must check this before -lpthread)
9887# none: in case threads are in libc; should be tried before -Kthread and
9888#       other compiler flags to prevent continual compiler warnings
9889# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9890# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
9891#           (Note: HP C rejects this with "bad form for `-t' option")
9892# -pthreads: Solaris/gcc (Note: HP C also rejects)
9893# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9894#      doesn't hurt to check since this sometimes defines pthreads and
9895#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
9896#      is present but should not be used directly; and before -mthreads,
9897#      because the compiler interprets this as "-mt" + "-hreads")
9898# -mthreads: Mingw32/gcc, Lynx/gcc
9899# pthread: Linux, etcetera
9900# --thread-safe: KAI C++
9901# pthread-config: use pthread-config program (for GNU Pth library)
9902
9903case $host_os in
9904
9905        freebsd*)
9906
9907        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9908        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9909
9910        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
9911        ;;
9912
9913        hpux*)
9914
9915        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
9916        # multi-threading and also sets -lpthread."
9917
9918        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
9919        ;;
9920
9921        openedition*)
9922
9923        # IBM z/OS requires a feature-test macro to be defined in order to
9924        # enable POSIX threads at all, so give the user a hint if this is
9925        # not set. (We don't define these ourselves, as they can affect
9926        # other portions of the system API in unpredictable ways.)
9927
9928        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9929/* end confdefs.h.  */
9930
9931#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
9932             AX_PTHREAD_ZOS_MISSING
9933#            endif
9934
9935_ACEOF
9936if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9937  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
9938  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
9939$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
9940fi
9941rm -f conftest*
9942
9943        ;;
9944
9945        solaris*)
9946
9947        # On Solaris (at least, for some versions), libc contains stubbed
9948        # (non-functional) versions of the pthreads routines, so link-based
9949        # tests will erroneously succeed. (N.B.: The stubs are missing
9950        # pthread_cleanup_push, or rather a function called by this macro,
9951        # so we could check for that, but who knows whether they'll stub
9952        # that too in a future libc.)  So we'll check first for the
9953        # standard Solaris way of linking pthreads (-mt -lpthread).
9954
9955        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
9956        ;;
9957esac
9958
9959# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
9960
9961if test "x$GCC" = "xyes"; then :
9962  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
9963fi
9964
9965# The presence of a feature test macro requesting re-entrant function
9966# definitions is, on some systems, a strong hint that pthreads support is
9967# correctly enabled
9968
9969case $host_os in
9970        darwin* | hpux* | linux* | osf* | solaris*)
9971        ax_pthread_check_macro="_REENTRANT"
9972        ;;
9973
9974        aix*)
9975        ax_pthread_check_macro="_THREAD_SAFE"
9976        ;;
9977
9978        *)
9979        ax_pthread_check_macro="--"
9980        ;;
9981esac
9982if test "x$ax_pthread_check_macro" = "x--"; then :
9983  ax_pthread_check_cond=0
9984else
9985  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
9986fi
9987
9988# Are we compiling with Clang?
9989
9990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
9991$as_echo_n "checking whether $CC is Clang... " >&6; }
9992if ${ax_cv_PTHREAD_CLANG+:} false; then :
9993  $as_echo_n "(cached) " >&6
9994else
9995  ax_cv_PTHREAD_CLANG=no
9996     # Note that Autoconf sets GCC=yes for Clang as well as GCC
9997     if test "x$GCC" = "xyes"; then
9998        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h.  */
10000/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10001#            if defined(__clang__) && defined(__llvm__)
10002             AX_PTHREAD_CC_IS_CLANG
10003#            endif
10004
10005_ACEOF
10006if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10007  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10008  ax_cv_PTHREAD_CLANG=yes
10009fi
10010rm -f conftest*
10011
10012     fi
10013
10014fi
10015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10016$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10017ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10018
10019ax_pthread_clang_warning=no
10020
10021# Clang needs special handling, because older versions handle the -pthread
10022# option in a rather... idiosyncratic way
10023
10024if test "x$ax_pthread_clang" = "xyes"; then
10025
10026        # Clang takes -pthread; it has never supported any other flag
10027
10028        # (Note 1: This will need to be revisited if a system that Clang
10029        # supports has POSIX threads in a separate library.  This tends not
10030        # to be the way of modern systems, but it's conceivable.)
10031
10032        # (Note 2: On some systems, notably Darwin, -pthread is not needed
10033        # to get POSIX threads support; the API is always present and
10034        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
10035        # -pthread does define _REENTRANT, and while the Darwin headers
10036        # ignore this macro, third-party headers might not.)
10037
10038        PTHREAD_CFLAGS="-pthread"
10039        PTHREAD_LIBS=
10040
10041        ax_pthread_ok=yes
10042
10043        # However, older versions of Clang make a point of warning the user
10044        # that, in an invocation where only linking and no compilation is
10045        # taking place, the -pthread option has no effect ("argument unused
10046        # during compilation").  They expect -pthread to be passed in only
10047        # when source code is being compiled.
10048        #
10049        # Problem is, this is at odds with the way Automake and most other
10050        # C build frameworks function, which is that the same flags used in
10051        # compilation (CFLAGS) are also used in linking.  Many systems
10052        # supported by AX_PTHREAD require exactly this for POSIX threads
10053        # support, and in fact it is often not straightforward to specify a
10054        # flag that is used only in the compilation phase and not in
10055        # linking.  Such a scenario is extremely rare in practice.
10056        #
10057        # Even though use of the -pthread flag in linking would only print
10058        # a warning, this can be a nuisance for well-run software projects
10059        # that build with -Werror.  So if the active version of Clang has
10060        # this misfeature, we search for an option to squash it.
10061
10062        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10063$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10064if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10065  $as_echo_n "(cached) " >&6
10066else
10067  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10068             # Create an alternate version of $ac_link that compiles and
10069             # links in two steps (.c -> .o, .o -> exe) instead of one
10070             # (.c -> exe), because the warning occurs only in the second
10071             # step
10072             ax_pthread_save_ac_link="$ac_link"
10073             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10074             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10075             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10076             ax_pthread_save_CFLAGS="$CFLAGS"
10077             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10078                if test "x$ax_pthread_try" = "xunknown"; then :
10079  break
10080fi
10081                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10082                ac_link="$ax_pthread_save_ac_link"
10083                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084/* end confdefs.h.  */
10085int main(void){return 0;}
10086_ACEOF
10087if ac_fn_c_try_link "$LINENO"; then :
10088  ac_link="$ax_pthread_2step_ac_link"
10089                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10090/* end confdefs.h.  */
10091int main(void){return 0;}
10092_ACEOF
10093if ac_fn_c_try_link "$LINENO"; then :
10094  break
10095fi
10096rm -f core conftest.err conftest.$ac_objext \
10097    conftest$ac_exeext conftest.$ac_ext
10098
10099fi
10100rm -f core conftest.err conftest.$ac_objext \
10101    conftest$ac_exeext conftest.$ac_ext
10102             done
10103             ac_link="$ax_pthread_save_ac_link"
10104             CFLAGS="$ax_pthread_save_CFLAGS"
10105             if test "x$ax_pthread_try" = "x"; then :
10106  ax_pthread_try=no
10107fi
10108             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10109
10110fi
10111{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10112$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10113
10114        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10115                no | unknown) ;;
10116                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10117        esac
10118
10119fi # $ax_pthread_clang = yes
10120
10121if test "x$ax_pthread_ok" = "xno"; then
10122for ax_pthread_try_flag in $ax_pthread_flags; do
10123
10124        case $ax_pthread_try_flag in
10125                none)
10126                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10127$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10128                ;;
10129
10130                -mt,pthread)
10131                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10132$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10133                PTHREAD_CFLAGS="-mt"
10134                PTHREAD_LIBS="-lpthread"
10135                ;;
10136
10137                -*)
10138                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10139$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10140                PTHREAD_CFLAGS="$ax_pthread_try_flag"
10141                ;;
10142
10143                pthread-config)
10144                # Extract the first word of "pthread-config", so it can be a program name with args.
10145set dummy pthread-config; ac_word=$2
10146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10147$as_echo_n "checking for $ac_word... " >&6; }
10148if ${ac_cv_prog_ax_pthread_config+:} false; then :
10149  $as_echo_n "(cached) " >&6
10150else
10151  if test -n "$ax_pthread_config"; then
10152  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10153else
10154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10155for as_dir in $PATH
10156do
10157  IFS=$as_save_IFS
10158  test -z "$as_dir" && as_dir=.
10159    for ac_exec_ext in '' $ac_executable_extensions; do
10160  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10161    ac_cv_prog_ax_pthread_config="yes"
10162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10163    break 2
10164  fi
10165done
10166  done
10167IFS=$as_save_IFS
10168
10169  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10170fi
10171fi
10172ax_pthread_config=$ac_cv_prog_ax_pthread_config
10173if test -n "$ax_pthread_config"; then
10174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10175$as_echo "$ax_pthread_config" >&6; }
10176else
10177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10178$as_echo "no" >&6; }
10179fi
10180
10181
10182                if test "x$ax_pthread_config" = "xno"; then :
10183  continue
10184fi
10185                PTHREAD_CFLAGS="`pthread-config --cflags`"
10186                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10187                ;;
10188
10189                *)
10190                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10191$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10192                PTHREAD_LIBS="-l$ax_pthread_try_flag"
10193                ;;
10194        esac
10195
10196        ax_pthread_save_CFLAGS="$CFLAGS"
10197        ax_pthread_save_LIBS="$LIBS"
10198        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10199        LIBS="$PTHREAD_LIBS $LIBS"
10200
10201        # Check for various functions.  We must include pthread.h,
10202        # since some functions may be macros.  (On the Sequent, we
10203        # need a special flag -Kthread to make this header compile.)
10204        # We check for pthread_join because it is in -lpthread on IRIX
10205        # while pthread_create is in libc.  We check for pthread_attr_init
10206        # due to DEC craziness with -lpthreads.  We check for
10207        # pthread_cleanup_push because it is one of the few pthread
10208        # functions on Solaris that doesn't have a non-functional libc stub.
10209        # We try pthread_create on general principles.
10210
10211        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10212/* end confdefs.h.  */
10213#include <pthread.h>
10214#                       if $ax_pthread_check_cond
10215#                        error "$ax_pthread_check_macro must be defined"
10216#                       endif
10217                        static void routine(void *a) { a = 0; }
10218                        static void *start_routine(void *a) { return a; }
10219int
10220main ()
10221{
10222pthread_t th; pthread_attr_t attr;
10223                        pthread_create(&th, 0, start_routine, 0);
10224                        pthread_join(th, 0);
10225                        pthread_attr_init(&attr);
10226                        pthread_cleanup_push(routine, 0);
10227                        pthread_cleanup_pop(0) /* ; */
10228  ;
10229  return 0;
10230}
10231_ACEOF
10232if ac_fn_c_try_link "$LINENO"; then :
10233  ax_pthread_ok=yes
10234fi
10235rm -f core conftest.err conftest.$ac_objext \
10236    conftest$ac_exeext conftest.$ac_ext
10237
10238        CFLAGS="$ax_pthread_save_CFLAGS"
10239        LIBS="$ax_pthread_save_LIBS"
10240
10241        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10242$as_echo "$ax_pthread_ok" >&6; }
10243        if test "x$ax_pthread_ok" = "xyes"; then :
10244  break
10245fi
10246
10247        PTHREAD_LIBS=""
10248        PTHREAD_CFLAGS=""
10249done
10250fi
10251
10252# Various other checks:
10253if test "x$ax_pthread_ok" = "xyes"; then
10254        ax_pthread_save_CFLAGS="$CFLAGS"
10255        ax_pthread_save_LIBS="$LIBS"
10256        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10257        LIBS="$PTHREAD_LIBS $LIBS"
10258
10259        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
10260        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
10261$as_echo_n "checking for joinable pthread attribute... " >&6; }
10262if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
10263  $as_echo_n "(cached) " >&6
10264else
10265  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
10266             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
10267                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268/* end confdefs.h.  */
10269#include <pthread.h>
10270int
10271main ()
10272{
10273int attr = $ax_pthread_attr; return attr /* ; */
10274  ;
10275  return 0;
10276}
10277_ACEOF
10278if ac_fn_c_try_link "$LINENO"; then :
10279  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
10280fi
10281rm -f core conftest.err conftest.$ac_objext \
10282    conftest$ac_exeext conftest.$ac_ext
10283             done
10284
10285fi
10286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
10287$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
10288        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
10289               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
10290               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
10291
10292cat >>confdefs.h <<_ACEOF
10293#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
10294_ACEOF
10295
10296               ax_pthread_joinable_attr_defined=yes
10297
10298fi
10299
10300        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
10301$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
10302if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
10303  $as_echo_n "(cached) " >&6
10304else
10305  ax_cv_PTHREAD_SPECIAL_FLAGS=no
10306             case $host_os in
10307             solaris*)
10308             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
10309             ;;
10310             esac
10311
10312fi
10313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
10314$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
10315        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
10316               test "x$ax_pthread_special_flags_added" != "xyes"; then :
10317  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
10318               ax_pthread_special_flags_added=yes
10319fi
10320
10321        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
10322$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
10323if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
10324  $as_echo_n "(cached) " >&6
10325else
10326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10327/* end confdefs.h.  */
10328#include <pthread.h>
10329int
10330main ()
10331{
10332int i = PTHREAD_PRIO_INHERIT;
10333  ;
10334  return 0;
10335}
10336_ACEOF
10337if ac_fn_c_try_link "$LINENO"; then :
10338  ax_cv_PTHREAD_PRIO_INHERIT=yes
10339else
10340  ax_cv_PTHREAD_PRIO_INHERIT=no
10341fi
10342rm -f core conftest.err conftest.$ac_objext \
10343    conftest$ac_exeext conftest.$ac_ext
10344
10345fi
10346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
10347$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
10348        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
10349               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
10350
10351$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
10352
10353               ax_pthread_prio_inherit_defined=yes
10354
10355fi
10356
10357        CFLAGS="$ax_pthread_save_CFLAGS"
10358        LIBS="$ax_pthread_save_LIBS"
10359
10360        # More AIX lossage: compile with *_r variant
10361        if test "x$GCC" != "xyes"; then
10362            case $host_os in
10363                aix*)
10364                case "x/$CC" in #(
10365  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
10366    #handle absolute path differently from PATH based program lookup
10367                     case "x$CC" in #(
10368  x/*) :
10369    if as_fn_executable_p ${CC}_r; then :
10370  PTHREAD_CC="${CC}_r"
10371fi ;; #(
10372  *) :
10373    for ac_prog in ${CC}_r
10374do
10375  # Extract the first word of "$ac_prog", so it can be a program name with args.
10376set dummy $ac_prog; ac_word=$2
10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378$as_echo_n "checking for $ac_word... " >&6; }
10379if ${ac_cv_prog_PTHREAD_CC+:} false; then :
10380  $as_echo_n "(cached) " >&6
10381else
10382  if test -n "$PTHREAD_CC"; then
10383  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
10384else
10385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386for as_dir in $PATH
10387do
10388  IFS=$as_save_IFS
10389  test -z "$as_dir" && as_dir=.
10390    for ac_exec_ext in '' $ac_executable_extensions; do
10391  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392    ac_cv_prog_PTHREAD_CC="$ac_prog"
10393    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10394    break 2
10395  fi
10396done
10397  done
10398IFS=$as_save_IFS
10399
10400fi
10401fi
10402PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
10403if test -n "$PTHREAD_CC"; then
10404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
10405$as_echo "$PTHREAD_CC" >&6; }
10406else
10407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408$as_echo "no" >&6; }
10409fi
10410
10411
10412  test -n "$PTHREAD_CC" && break
10413done
10414test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10415 ;;
10416esac ;; #(
10417  *) :
10418     ;;
10419esac
10420                ;;
10421            esac
10422        fi
10423fi
10424
10425test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
10426
10427
10428
10429
10430
10431# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
10432if test "x$ax_pthread_ok" = "xyes"; then
10433
10434$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
10435
10436        :
10437else
10438        ax_pthread_ok=no
10439
10440fi
10441ac_ext=c
10442ac_cpp='$CPP $CPPFLAGS'
10443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10445ac_compiler_gnu=$ac_cv_c_compiler_gnu
10446
10447
10448    if test "$ax_pthread_ok" = yes; then
10449        have_threads=yes
10450        DEF_THREAD="$PTHREAD_CFLAGS"
10451        CFLAGS="$CFLAGS $DEF_THREAD"
10452        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
10453        THREAD_LIBS="$PTHREAD_LIBS"
10454        if test "$CC" != "$PTHREAD_CC"; then
10455            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
10456$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
10457            CC="$PTHREAD_CC"
10458        fi
10459
10460$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
10461
10462    fi
10463fi
10464LIBS="$LIBS $THREAD_LIBS"
10465
10466
10467# Enable support for OpenMP
10468if test "$have_threads" != 'yes'; then
10469  ac_cv_prog_c_openmp=unsupported
10470fi
10471
10472  OPENMP_CFLAGS=
10473  # Check whether --enable-openmp was given.
10474if test "${enable_openmp+set}" = set; then :
10475  enableval=$enable_openmp;
10476fi
10477
10478  if test "$enable_openmp" != no; then
10479    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
10480$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
10481if ${ac_cv_prog_c_openmp+:} false; then :
10482  $as_echo_n "(cached) " >&6
10483else
10484  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10485/* end confdefs.h.  */
10486
10487#ifndef _OPENMP
10488 choke me
10489#endif
10490#include <omp.h>
10491int main () { return omp_get_num_threads (); }
10492
10493_ACEOF
10494if ac_fn_c_try_link "$LINENO"; then :
10495  ac_cv_prog_c_openmp='none needed'
10496else
10497  ac_cv_prog_c_openmp='unsupported'
10498	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
10499                           -Popenmp --openmp; do
10500	    ac_save_CFLAGS=$CFLAGS
10501	    CFLAGS="$CFLAGS $ac_option"
10502	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503/* end confdefs.h.  */
10504
10505#ifndef _OPENMP
10506 choke me
10507#endif
10508#include <omp.h>
10509int main () { return omp_get_num_threads (); }
10510
10511_ACEOF
10512if ac_fn_c_try_link "$LINENO"; then :
10513  ac_cv_prog_c_openmp=$ac_option
10514fi
10515rm -f core conftest.err conftest.$ac_objext \
10516    conftest$ac_exeext conftest.$ac_ext
10517	    CFLAGS=$ac_save_CFLAGS
10518	    if test "$ac_cv_prog_c_openmp" != unsupported; then
10519	      break
10520	    fi
10521	  done
10522fi
10523rm -f core conftest.err conftest.$ac_objext \
10524    conftest$ac_exeext conftest.$ac_ext
10525fi
10526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
10527$as_echo "$ac_cv_prog_c_openmp" >&6; }
10528    case $ac_cv_prog_c_openmp in #(
10529      "none needed" | unsupported)
10530	;; #(
10531      *)
10532	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
10533    esac
10534  fi
10535
10536
10537CFLAGS="$OPENMP_CFLAGS $CFLAGS"
10538MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
10539
10540if test "$enable_openmp" != no; then
10541  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
10542    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
10543  fi
10544fi
10545
10546# Enable support for OpenCL
10547
10548
10549
10550
10551ac_ext=c
10552ac_cpp='$CPP $CPPFLAGS'
10553ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555ac_compiler_gnu=$ac_cv_c_compiler_gnu
10556
10557ax_pthread_ok=no
10558
10559# We used to check for pthread.h first, but this fails if pthread.h
10560# requires special compiler flags (e.g. on Tru64 or Sequent).
10561# It gets checked for in the link test anyway.
10562
10563# First of all, check if the user has set any of the PTHREAD_LIBS,
10564# etcetera environment variables, and if threads linking works using
10565# them:
10566if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
10567        ax_pthread_save_CC="$CC"
10568        ax_pthread_save_CFLAGS="$CFLAGS"
10569        ax_pthread_save_LIBS="$LIBS"
10570        if test "x$PTHREAD_CC" != "x"; then :
10571  CC="$PTHREAD_CC"
10572fi
10573        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10574        LIBS="$PTHREAD_LIBS $LIBS"
10575        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
10576$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
10577        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578/* end confdefs.h.  */
10579
10580/* Override any GCC internal prototype to avoid an error.
10581   Use char because int might match the return type of a GCC
10582   builtin and then its argument prototype would still apply.  */
10583#ifdef __cplusplus
10584extern "C"
10585#endif
10586char pthread_join ();
10587int
10588main ()
10589{
10590return pthread_join ();
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596  ax_pthread_ok=yes
10597fi
10598rm -f core conftest.err conftest.$ac_objext \
10599    conftest$ac_exeext conftest.$ac_ext
10600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10601$as_echo "$ax_pthread_ok" >&6; }
10602        if test "x$ax_pthread_ok" = "xno"; then
10603                PTHREAD_LIBS=""
10604                PTHREAD_CFLAGS=""
10605        fi
10606        CC="$ax_pthread_save_CC"
10607        CFLAGS="$ax_pthread_save_CFLAGS"
10608        LIBS="$ax_pthread_save_LIBS"
10609fi
10610
10611# We must check for the threads library under a number of different
10612# names; the ordering is very important because some systems
10613# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
10614# libraries is broken (non-POSIX).
10615
10616# Create a list of thread flags to try.  Items starting with a "-" are
10617# C compiler flags, and other items are library names, except for "none"
10618# which indicates that we try without any flags at all, and "pthread-config"
10619# which is a program returning the flags for the Pth emulation library.
10620
10621ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
10622
10623# The ordering *is* (sometimes) important.  Some notes on the
10624# individual items follow:
10625
10626# pthreads: AIX (must check this before -lpthread)
10627# none: in case threads are in libc; should be tried before -Kthread and
10628#       other compiler flags to prevent continual compiler warnings
10629# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
10630# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
10631#           (Note: HP C rejects this with "bad form for `-t' option")
10632# -pthreads: Solaris/gcc (Note: HP C also rejects)
10633# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
10634#      doesn't hurt to check since this sometimes defines pthreads and
10635#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
10636#      is present but should not be used directly; and before -mthreads,
10637#      because the compiler interprets this as "-mt" + "-hreads")
10638# -mthreads: Mingw32/gcc, Lynx/gcc
10639# pthread: Linux, etcetera
10640# --thread-safe: KAI C++
10641# pthread-config: use pthread-config program (for GNU Pth library)
10642
10643case $host_os in
10644
10645        freebsd*)
10646
10647        # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
10648        # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
10649
10650        ax_pthread_flags="-kthread lthread $ax_pthread_flags"
10651        ;;
10652
10653        hpux*)
10654
10655        # From the cc(1) man page: "[-mt] Sets various -D flags to enable
10656        # multi-threading and also sets -lpthread."
10657
10658        ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
10659        ;;
10660
10661        openedition*)
10662
10663        # IBM z/OS requires a feature-test macro to be defined in order to
10664        # enable POSIX threads at all, so give the user a hint if this is
10665        # not set. (We don't define these ourselves, as they can affect
10666        # other portions of the system API in unpredictable ways.)
10667
10668        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10669/* end confdefs.h.  */
10670
10671#            if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
10672             AX_PTHREAD_ZOS_MISSING
10673#            endif
10674
10675_ACEOF
10676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10677  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
10678  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
10679$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
10680fi
10681rm -f conftest*
10682
10683        ;;
10684
10685        solaris*)
10686
10687        # On Solaris (at least, for some versions), libc contains stubbed
10688        # (non-functional) versions of the pthreads routines, so link-based
10689        # tests will erroneously succeed. (N.B.: The stubs are missing
10690        # pthread_cleanup_push, or rather a function called by this macro,
10691        # so we could check for that, but who knows whether they'll stub
10692        # that too in a future libc.)  So we'll check first for the
10693        # standard Solaris way of linking pthreads (-mt -lpthread).
10694
10695        ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
10696        ;;
10697esac
10698
10699# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
10700
10701if test "x$GCC" = "xyes"; then :
10702  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
10703fi
10704
10705# The presence of a feature test macro requesting re-entrant function
10706# definitions is, on some systems, a strong hint that pthreads support is
10707# correctly enabled
10708
10709case $host_os in
10710        darwin* | hpux* | linux* | osf* | solaris*)
10711        ax_pthread_check_macro="_REENTRANT"
10712        ;;
10713
10714        aix*)
10715        ax_pthread_check_macro="_THREAD_SAFE"
10716        ;;
10717
10718        *)
10719        ax_pthread_check_macro="--"
10720        ;;
10721esac
10722if test "x$ax_pthread_check_macro" = "x--"; then :
10723  ax_pthread_check_cond=0
10724else
10725  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
10726fi
10727
10728# Are we compiling with Clang?
10729
10730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
10731$as_echo_n "checking whether $CC is Clang... " >&6; }
10732if ${ax_cv_PTHREAD_CLANG+:} false; then :
10733  $as_echo_n "(cached) " >&6
10734else
10735  ax_cv_PTHREAD_CLANG=no
10736     # Note that Autoconf sets GCC=yes for Clang as well as GCC
10737     if test "x$GCC" = "xyes"; then
10738        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10739/* end confdefs.h.  */
10740/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
10741#            if defined(__clang__) && defined(__llvm__)
10742             AX_PTHREAD_CC_IS_CLANG
10743#            endif
10744
10745_ACEOF
10746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10747  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
10748  ax_cv_PTHREAD_CLANG=yes
10749fi
10750rm -f conftest*
10751
10752     fi
10753
10754fi
10755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
10756$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
10757ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
10758
10759ax_pthread_clang_warning=no
10760
10761# Clang needs special handling, because older versions handle the -pthread
10762# option in a rather... idiosyncratic way
10763
10764if test "x$ax_pthread_clang" = "xyes"; then
10765
10766        # Clang takes -pthread; it has never supported any other flag
10767
10768        # (Note 1: This will need to be revisited if a system that Clang
10769        # supports has POSIX threads in a separate library.  This tends not
10770        # to be the way of modern systems, but it's conceivable.)
10771
10772        # (Note 2: On some systems, notably Darwin, -pthread is not needed
10773        # to get POSIX threads support; the API is always present and
10774        # active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
10775        # -pthread does define _REENTRANT, and while the Darwin headers
10776        # ignore this macro, third-party headers might not.)
10777
10778        PTHREAD_CFLAGS="-pthread"
10779        PTHREAD_LIBS=
10780
10781        ax_pthread_ok=yes
10782
10783        # However, older versions of Clang make a point of warning the user
10784        # that, in an invocation where only linking and no compilation is
10785        # taking place, the -pthread option has no effect ("argument unused
10786        # during compilation").  They expect -pthread to be passed in only
10787        # when source code is being compiled.
10788        #
10789        # Problem is, this is at odds with the way Automake and most other
10790        # C build frameworks function, which is that the same flags used in
10791        # compilation (CFLAGS) are also used in linking.  Many systems
10792        # supported by AX_PTHREAD require exactly this for POSIX threads
10793        # support, and in fact it is often not straightforward to specify a
10794        # flag that is used only in the compilation phase and not in
10795        # linking.  Such a scenario is extremely rare in practice.
10796        #
10797        # Even though use of the -pthread flag in linking would only print
10798        # a warning, this can be a nuisance for well-run software projects
10799        # that build with -Werror.  So if the active version of Clang has
10800        # this misfeature, we search for an option to squash it.
10801
10802        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
10803$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
10804if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
10805  $as_echo_n "(cached) " >&6
10806else
10807  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
10808             # Create an alternate version of $ac_link that compiles and
10809             # links in two steps (.c -> .o, .o -> exe) instead of one
10810             # (.c -> exe), because the warning occurs only in the second
10811             # step
10812             ax_pthread_save_ac_link="$ac_link"
10813             ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
10814             ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
10815             ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
10816             ax_pthread_save_CFLAGS="$CFLAGS"
10817             for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
10818                if test "x$ax_pthread_try" = "xunknown"; then :
10819  break
10820fi
10821                CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
10822                ac_link="$ax_pthread_save_ac_link"
10823                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10824/* end confdefs.h.  */
10825int main(void){return 0;}
10826_ACEOF
10827if ac_fn_c_try_link "$LINENO"; then :
10828  ac_link="$ax_pthread_2step_ac_link"
10829                     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10830/* end confdefs.h.  */
10831int main(void){return 0;}
10832_ACEOF
10833if ac_fn_c_try_link "$LINENO"; then :
10834  break
10835fi
10836rm -f core conftest.err conftest.$ac_objext \
10837    conftest$ac_exeext conftest.$ac_ext
10838
10839fi
10840rm -f core conftest.err conftest.$ac_objext \
10841    conftest$ac_exeext conftest.$ac_ext
10842             done
10843             ac_link="$ax_pthread_save_ac_link"
10844             CFLAGS="$ax_pthread_save_CFLAGS"
10845             if test "x$ax_pthread_try" = "x"; then :
10846  ax_pthread_try=no
10847fi
10848             ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
10849
10850fi
10851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
10852$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
10853
10854        case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
10855                no | unknown) ;;
10856                *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
10857        esac
10858
10859fi # $ax_pthread_clang = yes
10860
10861if test "x$ax_pthread_ok" = "xno"; then
10862for ax_pthread_try_flag in $ax_pthread_flags; do
10863
10864        case $ax_pthread_try_flag in
10865                none)
10866                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
10867$as_echo_n "checking whether pthreads work without any flags... " >&6; }
10868                ;;
10869
10870                -mt,pthread)
10871                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
10872$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
10873                PTHREAD_CFLAGS="-mt"
10874                PTHREAD_LIBS="-lpthread"
10875                ;;
10876
10877                -*)
10878                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
10879$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
10880                PTHREAD_CFLAGS="$ax_pthread_try_flag"
10881                ;;
10882
10883                pthread-config)
10884                # Extract the first word of "pthread-config", so it can be a program name with args.
10885set dummy pthread-config; ac_word=$2
10886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10887$as_echo_n "checking for $ac_word... " >&6; }
10888if ${ac_cv_prog_ax_pthread_config+:} false; then :
10889  $as_echo_n "(cached) " >&6
10890else
10891  if test -n "$ax_pthread_config"; then
10892  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
10893else
10894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10895for as_dir in $PATH
10896do
10897  IFS=$as_save_IFS
10898  test -z "$as_dir" && as_dir=.
10899    for ac_exec_ext in '' $ac_executable_extensions; do
10900  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10901    ac_cv_prog_ax_pthread_config="yes"
10902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10903    break 2
10904  fi
10905done
10906  done
10907IFS=$as_save_IFS
10908
10909  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
10910fi
10911fi
10912ax_pthread_config=$ac_cv_prog_ax_pthread_config
10913if test -n "$ax_pthread_config"; then
10914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
10915$as_echo "$ax_pthread_config" >&6; }
10916else
10917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918$as_echo "no" >&6; }
10919fi
10920
10921
10922                if test "x$ax_pthread_config" = "xno"; then :
10923  continue
10924fi
10925                PTHREAD_CFLAGS="`pthread-config --cflags`"
10926                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
10927                ;;
10928
10929                *)
10930                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
10931$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
10932                PTHREAD_LIBS="-l$ax_pthread_try_flag"
10933                ;;
10934        esac
10935
10936        ax_pthread_save_CFLAGS="$CFLAGS"
10937        ax_pthread_save_LIBS="$LIBS"
10938        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10939        LIBS="$PTHREAD_LIBS $LIBS"
10940
10941        # Check for various functions.  We must include pthread.h,
10942        # since some functions may be macros.  (On the Sequent, we
10943        # need a special flag -Kthread to make this header compile.)
10944        # We check for pthread_join because it is in -lpthread on IRIX
10945        # while pthread_create is in libc.  We check for pthread_attr_init
10946        # due to DEC craziness with -lpthreads.  We check for
10947        # pthread_cleanup_push because it is one of the few pthread
10948        # functions on Solaris that doesn't have a non-functional libc stub.
10949        # We try pthread_create on general principles.
10950
10951        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10952/* end confdefs.h.  */
10953#include <pthread.h>
10954#                       if $ax_pthread_check_cond
10955#                        error "$ax_pthread_check_macro must be defined"
10956#                       endif
10957                        static void routine(void *a) { a = 0; }
10958                        static void *start_routine(void *a) { return a; }
10959int
10960main ()
10961{
10962pthread_t th; pthread_attr_t attr;
10963                        pthread_create(&th, 0, start_routine, 0);
10964                        pthread_join(th, 0);
10965                        pthread_attr_init(&attr);
10966                        pthread_cleanup_push(routine, 0);
10967                        pthread_cleanup_pop(0) /* ; */
10968  ;
10969  return 0;
10970}
10971_ACEOF
10972if ac_fn_c_try_link "$LINENO"; then :
10973  ax_pthread_ok=yes
10974fi
10975rm -f core conftest.err conftest.$ac_objext \
10976    conftest$ac_exeext conftest.$ac_ext
10977
10978        CFLAGS="$ax_pthread_save_CFLAGS"
10979        LIBS="$ax_pthread_save_LIBS"
10980
10981        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
10982$as_echo "$ax_pthread_ok" >&6; }
10983        if test "x$ax_pthread_ok" = "xyes"; then :
10984  break
10985fi
10986
10987        PTHREAD_LIBS=""
10988        PTHREAD_CFLAGS=""
10989done
10990fi
10991
10992# Various other checks:
10993if test "x$ax_pthread_ok" = "xyes"; then
10994        ax_pthread_save_CFLAGS="$CFLAGS"
10995        ax_pthread_save_LIBS="$LIBS"
10996        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
10997        LIBS="$PTHREAD_LIBS $LIBS"
10998
10999        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11000        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11001$as_echo_n "checking for joinable pthread attribute... " >&6; }
11002if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
11003  $as_echo_n "(cached) " >&6
11004else
11005  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
11006             for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11007                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11008/* end confdefs.h.  */
11009#include <pthread.h>
11010int
11011main ()
11012{
11013int attr = $ax_pthread_attr; return attr /* ; */
11014  ;
11015  return 0;
11016}
11017_ACEOF
11018if ac_fn_c_try_link "$LINENO"; then :
11019  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
11020fi
11021rm -f core conftest.err conftest.$ac_objext \
11022    conftest$ac_exeext conftest.$ac_ext
11023             done
11024
11025fi
11026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
11027$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
11028        if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
11029               test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
11030               test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
11031
11032cat >>confdefs.h <<_ACEOF
11033#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
11034_ACEOF
11035
11036               ax_pthread_joinable_attr_defined=yes
11037
11038fi
11039
11040        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
11041$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
11042if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
11043  $as_echo_n "(cached) " >&6
11044else
11045  ax_cv_PTHREAD_SPECIAL_FLAGS=no
11046             case $host_os in
11047             solaris*)
11048             ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
11049             ;;
11050             esac
11051
11052fi
11053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
11054$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
11055        if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
11056               test "x$ax_pthread_special_flags_added" != "xyes"; then :
11057  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
11058               ax_pthread_special_flags_added=yes
11059fi
11060
11061        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11062$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11063if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11064  $as_echo_n "(cached) " >&6
11065else
11066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067/* end confdefs.h.  */
11068#include <pthread.h>
11069int
11070main ()
11071{
11072int i = PTHREAD_PRIO_INHERIT;
11073  ;
11074  return 0;
11075}
11076_ACEOF
11077if ac_fn_c_try_link "$LINENO"; then :
11078  ax_cv_PTHREAD_PRIO_INHERIT=yes
11079else
11080  ax_cv_PTHREAD_PRIO_INHERIT=no
11081fi
11082rm -f core conftest.err conftest.$ac_objext \
11083    conftest$ac_exeext conftest.$ac_ext
11084
11085fi
11086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11087$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11088        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
11089               test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
11090
11091$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11092
11093               ax_pthread_prio_inherit_defined=yes
11094
11095fi
11096
11097        CFLAGS="$ax_pthread_save_CFLAGS"
11098        LIBS="$ax_pthread_save_LIBS"
11099
11100        # More AIX lossage: compile with *_r variant
11101        if test "x$GCC" != "xyes"; then
11102            case $host_os in
11103                aix*)
11104                case "x/$CC" in #(
11105  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11106    #handle absolute path differently from PATH based program lookup
11107                     case "x$CC" in #(
11108  x/*) :
11109    if as_fn_executable_p ${CC}_r; then :
11110  PTHREAD_CC="${CC}_r"
11111fi ;; #(
11112  *) :
11113    for ac_prog in ${CC}_r
11114do
11115  # Extract the first word of "$ac_prog", so it can be a program name with args.
11116set dummy $ac_prog; ac_word=$2
11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11118$as_echo_n "checking for $ac_word... " >&6; }
11119if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11120  $as_echo_n "(cached) " >&6
11121else
11122  if test -n "$PTHREAD_CC"; then
11123  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11124else
11125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126for as_dir in $PATH
11127do
11128  IFS=$as_save_IFS
11129  test -z "$as_dir" && as_dir=.
11130    for ac_exec_ext in '' $ac_executable_extensions; do
11131  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132    ac_cv_prog_PTHREAD_CC="$ac_prog"
11133    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11134    break 2
11135  fi
11136done
11137  done
11138IFS=$as_save_IFS
11139
11140fi
11141fi
11142PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11143if test -n "$PTHREAD_CC"; then
11144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11145$as_echo "$PTHREAD_CC" >&6; }
11146else
11147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11148$as_echo "no" >&6; }
11149fi
11150
11151
11152  test -n "$PTHREAD_CC" && break
11153done
11154test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11155 ;;
11156esac ;; #(
11157  *) :
11158     ;;
11159esac
11160                ;;
11161            esac
11162        fi
11163fi
11164
11165test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11166
11167
11168
11169
11170
11171# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11172if test "x$ax_pthread_ok" = "xyes"; then
11173
11174$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11175
11176        :
11177else
11178        ax_pthread_ok=no
11179
11180fi
11181ac_ext=c
11182ac_cpp='$CPP $CPPFLAGS'
11183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11185ac_compiler_gnu=$ac_cv_c_compiler_gnu
11186
11187
11188
11189# Check whether --enable-opencl was given.
11190if test "${enable_opencl+set}" = set; then :
11191  enableval=$enable_opencl; disable_opencl=$enableval
11192else
11193  disable_opencl='yes'
11194fi
11195
11196
11197if test "$disable_opencl" = 'yes'; then
11198  ac_ext=c
11199ac_cpp='$CPP $CPPFLAGS'
11200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202ac_compiler_gnu=$ac_cv_c_compiler_gnu
11203
11204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
11205$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
11206if ${ax_cv_c_compiler_ms+:} false; then :
11207  $as_echo_n "(cached) " >&6
11208else
11209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210/* end confdefs.h.  */
11211
11212int
11213main ()
11214{
11215#ifndef _MSC_VER
11216       choke me
11217#endif
11218
11219  ;
11220  return 0;
11221}
11222_ACEOF
11223if ac_fn_c_try_compile "$LINENO"; then :
11224  ax_compiler_ms=yes
11225else
11226  ax_compiler_ms=no
11227fi
11228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229ax_cv_c_compiler_ms=$ax_compiler_ms
11230
11231fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
11233$as_echo "$ax_cv_c_compiler_ms" >&6; }
11234  if test X$ax_compiler_ms = Xno; then :
11235  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
11236fi
11237
11238  ax_save_CPPFLAGS=$CPPFLAGS
11239  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11240  for ac_header in CL/cl.h OpenCL/cl.h
11241do :
11242  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11243ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11244if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11245  cat >>confdefs.h <<_ACEOF
11246#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11247_ACEOF
11248
11249fi
11250
11251done
11252
11253  CPPFLAGS=$ax_save_CPPFLAGS
11254
11255  for ac_header in windows.h
11256do :
11257  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
11258if test "x$ac_cv_header_windows_h" = xyes; then :
11259  cat >>confdefs.h <<_ACEOF
11260#define HAVE_WINDOWS_H 1
11261_ACEOF
11262
11263fi
11264
11265done
11266
11267
11268
11269
11270  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
11271$as_echo_n "checking for OpenCL library... " >&6; }
11272if ${ax_cv_check_cl_libcl+:} false; then :
11273  $as_echo_n "(cached) " >&6
11274else
11275  ax_cv_check_cl_libcl=no
11276  case $host_cpu in
11277    x86_64) ax_check_cl_libdir=lib64 ;;
11278    *)      ax_check_cl_libdir=lib ;;
11279  esac
11280  ax_save_CPPFLAGS=$CPPFLAGS
11281  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11282  ax_save_LIBS=$LIBS
11283  LIBS=""
11284  ax_check_libs="-lOpenCL -lCL -lclparser"
11285  for ax_lib in $ax_check_libs; do
11286    if test X$ax_compiler_ms = Xyes; then :
11287  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
11288else
11289  ax_try_lib=$ax_lib
11290fi
11291    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
11292  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293/* end confdefs.h.  */
11294
11295  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11296  #   include <windows.h>
11297  # endif
11298  # ifdef HAVE_CL_CL_H
11299  #   include <CL/cl.h>
11300  # elif defined(HAVE_OPENCL_CL_H)
11301  #   include <OpenCL/cl.h>
11302  # else
11303  #   error no CL.h
11304  # endif
11305int
11306main ()
11307{
11308clCreateContextFromType(0,0,0,0,0)
11309  ;
11310  return 0;
11311}
11312_ACEOF
11313if ac_fn_c_try_link "$LINENO"; then :
11314  ax_cv_check_cl_libcl=$ax_try_lib; break
11315else
11316  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"
11317                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h.  */
11319
11320  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11321  #   include <windows.h>
11322  # endif
11323  # ifdef HAVE_CL_CL_H
11324  #   include <CL/cl.h>
11325  # elif defined(HAVE_OPENCL_CL_H)
11326  #   include <OpenCL/cl.h>
11327  # else
11328  #   error no CL.h
11329  # endif
11330int
11331main ()
11332{
11333clCreateContextFromType(0,0,0,0,0)
11334  ;
11335  return 0;
11336}
11337_ACEOF
11338if ac_fn_c_try_link "$LINENO"; then :
11339  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
11340else
11341  ax_check_cl_dylib_flag='-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"
11342                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11343/* end confdefs.h.  */
11344
11345  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11346  #   include <windows.h>
11347  # endif
11348  # ifdef HAVE_CL_CL_H
11349  #   include <CL/cl.h>
11350  # elif defined(HAVE_OPENCL_CL_H)
11351  #   include <OpenCL/cl.h>
11352  # else
11353  #   error no CL.h
11354  # endif
11355int
11356main ()
11357{
11358clCreateContextFromType(0,0,0,0,0)
11359  ;
11360  return 0;
11361}
11362_ACEOF
11363if ac_fn_c_try_link "$LINENO"; then :
11364  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
11365fi
11366rm -f core conftest.err conftest.$ac_objext \
11367    conftest$ac_exeext conftest.$ac_ext
11368fi
11369rm -f core conftest.err conftest.$ac_objext \
11370    conftest$ac_exeext conftest.$ac_ext
11371fi
11372rm -f core conftest.err conftest.$ac_objext \
11373    conftest$ac_exeext conftest.$ac_ext
11374  done
11375
11376  if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
11377  LIBS='-framework OpenCL'
11378        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380
11381  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
11382  #   include <windows.h>
11383  # endif
11384  # ifdef HAVE_CL_CL_H
11385  #   include <CL/cl.h>
11386  # elif defined(HAVE_OPENCL_CL_H)
11387  #   include <OpenCL/cl.h>
11388  # else
11389  #   error no CL.h
11390  # endif
11391int
11392main ()
11393{
11394clCreateContextFromType(0,0,0,0,0)
11395  ;
11396  return 0;
11397}
11398_ACEOF
11399if ac_fn_c_try_link "$LINENO"; then :
11400  ax_cv_check_cl_libcl=$LIBS
11401fi
11402rm -f core conftest.err conftest.$ac_objext \
11403    conftest$ac_exeext conftest.$ac_ext
11404fi
11405
11406  LIBS=$ax_save_LIBS
11407  CPPFLAGS=$ax_save_CPPFLAGS
11408fi
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
11410$as_echo "$ax_cv_check_cl_libcl" >&6; }
11411
11412  if test "X$ax_cv_check_cl_libcl" = Xno; then :
11413  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
11414else
11415  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
11416$as_echo "#define _OPENCL 1" >>confdefs.h
11417
11418fi
11419  ac_ext=c
11420ac_cpp='$CPP $CPPFLAGS'
11421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11423ac_compiler_gnu=$ac_cv_c_compiler_gnu
11424
11425fi
11426
11427
11428
11429
11430CFLAGS="$CL_CFLAGS $CFLAGS"
11431CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
11432LIBS="$CL_LIBS $LIBS"
11433
11434if test "$enable_opencl" != no; then
11435  if test "X$ax_cv_check_cl_libcl" != Xno; then :
11436    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
11437  fi
11438fi
11439
11440########
11441#
11442# Check for large file support
11443#
11444########
11445# Check whether --enable-largefile was given.
11446if test "${enable_largefile+set}" = set; then :
11447  enableval=$enable_largefile;
11448fi
11449
11450if test "$enable_largefile" != no; then
11451
11452  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11453$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11454if ${ac_cv_sys_largefile_CC+:} false; then :
11455  $as_echo_n "(cached) " >&6
11456else
11457  ac_cv_sys_largefile_CC=no
11458     if test "$GCC" != yes; then
11459       ac_save_CC=$CC
11460       while :; do
11461	 # IRIX 6.2 and later do not support large files by default,
11462	 # so use the C compiler's -n32 option if that helps.
11463	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11464/* end confdefs.h.  */
11465#include <sys/types.h>
11466 /* Check that off_t can represent 2**63 - 1 correctly.
11467    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11468    since some C++ compilers masquerading as C compilers
11469    incorrectly reject 9223372036854775807.  */
11470#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11471  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11472		       && LARGE_OFF_T % 2147483647 == 1)
11473		      ? 1 : -1];
11474int
11475main ()
11476{
11477
11478  ;
11479  return 0;
11480}
11481_ACEOF
11482	 if ac_fn_c_try_compile "$LINENO"; then :
11483  break
11484fi
11485rm -f core conftest.err conftest.$ac_objext
11486	 CC="$CC -n32"
11487	 if ac_fn_c_try_compile "$LINENO"; then :
11488  ac_cv_sys_largefile_CC=' -n32'; break
11489fi
11490rm -f core conftest.err conftest.$ac_objext
11491	 break
11492       done
11493       CC=$ac_save_CC
11494       rm -f conftest.$ac_ext
11495    fi
11496fi
11497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
11498$as_echo "$ac_cv_sys_largefile_CC" >&6; }
11499  if test "$ac_cv_sys_largefile_CC" != no; then
11500    CC=$CC$ac_cv_sys_largefile_CC
11501  fi
11502
11503  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
11504$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
11505if ${ac_cv_sys_file_offset_bits+:} false; then :
11506  $as_echo_n "(cached) " >&6
11507else
11508  while :; do
11509  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510/* end confdefs.h.  */
11511#include <sys/types.h>
11512 /* Check that off_t can represent 2**63 - 1 correctly.
11513    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11514    since some C++ compilers masquerading as C compilers
11515    incorrectly reject 9223372036854775807.  */
11516#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11517  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11518		       && LARGE_OFF_T % 2147483647 == 1)
11519		      ? 1 : -1];
11520int
11521main ()
11522{
11523
11524  ;
11525  return 0;
11526}
11527_ACEOF
11528if ac_fn_c_try_compile "$LINENO"; then :
11529  ac_cv_sys_file_offset_bits=no; break
11530fi
11531rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533/* end confdefs.h.  */
11534#define _FILE_OFFSET_BITS 64
11535#include <sys/types.h>
11536 /* Check that off_t can represent 2**63 - 1 correctly.
11537    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11538    since some C++ compilers masquerading as C compilers
11539    incorrectly reject 9223372036854775807.  */
11540#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11541  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11542		       && LARGE_OFF_T % 2147483647 == 1)
11543		      ? 1 : -1];
11544int
11545main ()
11546{
11547
11548  ;
11549  return 0;
11550}
11551_ACEOF
11552if ac_fn_c_try_compile "$LINENO"; then :
11553  ac_cv_sys_file_offset_bits=64; break
11554fi
11555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11556  ac_cv_sys_file_offset_bits=unknown
11557  break
11558done
11559fi
11560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
11561$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
11562case $ac_cv_sys_file_offset_bits in #(
11563  no | unknown) ;;
11564  *)
11565cat >>confdefs.h <<_ACEOF
11566#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
11567_ACEOF
11568;;
11569esac
11570rm -rf conftest*
11571  if test $ac_cv_sys_file_offset_bits = unknown; then
11572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
11573$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
11574if ${ac_cv_sys_large_files+:} false; then :
11575  $as_echo_n "(cached) " >&6
11576else
11577  while :; do
11578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579/* end confdefs.h.  */
11580#include <sys/types.h>
11581 /* Check that off_t can represent 2**63 - 1 correctly.
11582    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11583    since some C++ compilers masquerading as C compilers
11584    incorrectly reject 9223372036854775807.  */
11585#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11586  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11587		       && LARGE_OFF_T % 2147483647 == 1)
11588		      ? 1 : -1];
11589int
11590main ()
11591{
11592
11593  ;
11594  return 0;
11595}
11596_ACEOF
11597if ac_fn_c_try_compile "$LINENO"; then :
11598  ac_cv_sys_large_files=no; break
11599fi
11600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603#define _LARGE_FILES 1
11604#include <sys/types.h>
11605 /* Check that off_t can represent 2**63 - 1 correctly.
11606    We can't simply define LARGE_OFF_T to be 9223372036854775807,
11607    since some C++ compilers masquerading as C compilers
11608    incorrectly reject 9223372036854775807.  */
11609#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11610  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11611		       && LARGE_OFF_T % 2147483647 == 1)
11612		      ? 1 : -1];
11613int
11614main ()
11615{
11616
11617  ;
11618  return 0;
11619}
11620_ACEOF
11621if ac_fn_c_try_compile "$LINENO"; then :
11622  ac_cv_sys_large_files=1; break
11623fi
11624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11625  ac_cv_sys_large_files=unknown
11626  break
11627done
11628fi
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
11630$as_echo "$ac_cv_sys_large_files" >&6; }
11631case $ac_cv_sys_large_files in #(
11632  no | unknown) ;;
11633  *)
11634cat >>confdefs.h <<_ACEOF
11635#define _LARGE_FILES $ac_cv_sys_large_files
11636_ACEOF
11637;;
11638esac
11639rm -rf conftest*
11640  fi
11641
11642
11643fi
11644
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11646$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11647if ${ac_cv_sys_largefile_source+:} false; then :
11648  $as_echo_n "(cached) " >&6
11649else
11650  while :; do
11651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652/* end confdefs.h.  */
11653#include <sys/types.h> /* for off_t */
11654     #include <stdio.h>
11655int
11656main ()
11657{
11658int (*fp) (FILE *, off_t, int) = fseeko;
11659     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11660  ;
11661  return 0;
11662}
11663_ACEOF
11664if ac_fn_c_try_link "$LINENO"; then :
11665  ac_cv_sys_largefile_source=no; break
11666fi
11667rm -f core conftest.err conftest.$ac_objext \
11668    conftest$ac_exeext conftest.$ac_ext
11669  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11670/* end confdefs.h.  */
11671#define _LARGEFILE_SOURCE 1
11672#include <sys/types.h> /* for off_t */
11673     #include <stdio.h>
11674int
11675main ()
11676{
11677int (*fp) (FILE *, off_t, int) = fseeko;
11678     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11679  ;
11680  return 0;
11681}
11682_ACEOF
11683if ac_fn_c_try_link "$LINENO"; then :
11684  ac_cv_sys_largefile_source=1; break
11685fi
11686rm -f core conftest.err conftest.$ac_objext \
11687    conftest$ac_exeext conftest.$ac_ext
11688  ac_cv_sys_largefile_source=unknown
11689  break
11690done
11691fi
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
11693$as_echo "$ac_cv_sys_largefile_source" >&6; }
11694case $ac_cv_sys_largefile_source in #(
11695  no | unknown) ;;
11696  *)
11697cat >>confdefs.h <<_ACEOF
11698#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
11699_ACEOF
11700;;
11701esac
11702rm -rf conftest*
11703
11704# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11705# in glibc 2.1.3, but that breaks too many other things.
11706# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11707if test $ac_cv_sys_largefile_source != unknown; then
11708
11709$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
11710
11711fi
11712
11713LFS_CPPFLAGS=''
11714if test "$enable_largefile" != no; then
11715    case $ac_cv_sys_file_offset_bits in
11716    no)
11717        # nothing to do here as the host supports LFS fine
11718        ;;
11719    unknown)
11720        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
11721$as_echo_n "checking for native large file support... " >&6; }
11722        if test "$cross_compiling" = yes; then :
11723  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11725as_fn_error $? "cannot run test program while cross compiling
11726See \`config.log' for more details" "$LINENO" 5; }
11727else
11728  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11729/* end confdefs.h.  */
11730#include <unistd.h>
11731          main () {
11732          exit(!(sizeof(off_t) == 8));
11733        }
11734int
11735main ()
11736{
11737
11738  ;
11739  return 0;
11740}
11741_ACEOF
11742if ac_fn_c_try_run "$LINENO"; then :
11743  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11744
11745         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11746$as_echo "yes" >&6; }
11747else
11748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749$as_echo "no" >&6; }
11750fi
11751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11752  conftest.$ac_objext conftest.beam conftest.$ac_ext
11753fi
11754
11755        ;;
11756    *)
11757        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
11758        ;;
11759    esac
11760    if test "$ac_cv_sys_large_files" != 'no'; then
11761        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
11762    fi
11763    if test "$ac_cv_sys_largefile_source" != 'no'; then
11764        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
11765    fi
11766fi
11767
11768
11769# Configure libtool
11770enable_dlopen=yes
11771
11772
11773
11774case `pwd` in
11775  *\ * | *\	*)
11776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11777$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11778esac
11779
11780
11781
11782macro_version='2.4.6'
11783macro_revision='2.4.6'
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797ltmain=$ac_aux_dir/ltmain.sh
11798
11799# Backslashify metacharacters that are still active within
11800# double-quoted strings.
11801sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11802
11803# Same as above, but do not quote variable references.
11804double_quote_subst='s/\(["`\\]\)/\\\1/g'
11805
11806# Sed substitution to delay expansion of an escaped shell variable in a
11807# double_quote_subst'ed string.
11808delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11809
11810# Sed substitution to delay expansion of an escaped single quote.
11811delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11812
11813# Sed substitution to avoid accidental globbing in evaled expressions
11814no_glob_subst='s/\*/\\\*/g'
11815
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11817$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11818if ${lt_cv_path_NM+:} false; then :
11819  $as_echo_n "(cached) " >&6
11820else
11821  if test -n "$NM"; then
11822  # Let the user override the test.
11823  lt_cv_path_NM=$NM
11824else
11825  lt_nm_to_check=${ac_tool_prefix}nm
11826  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11827    lt_nm_to_check="$lt_nm_to_check nm"
11828  fi
11829  for lt_tmp_nm in $lt_nm_to_check; do
11830    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11831    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11832      IFS=$lt_save_ifs
11833      test -z "$ac_dir" && ac_dir=.
11834      tmp_nm=$ac_dir/$lt_tmp_nm
11835      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
11836	# Check to see if the nm accepts a BSD-compat flag.
11837	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
11838	#   nm: unknown option "B" ignored
11839	# Tru64's nm complains that /dev/null is an invalid object file
11840	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
11841	case $build_os in
11842	mingw*) lt_bad_file=conftest.nm/nofile ;;
11843	*) lt_bad_file=/dev/null ;;
11844	esac
11845	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
11846	*$lt_bad_file* | *'Invalid file or object type'*)
11847	  lt_cv_path_NM="$tmp_nm -B"
11848	  break 2
11849	  ;;
11850	*)
11851	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11852	  */dev/null*)
11853	    lt_cv_path_NM="$tmp_nm -p"
11854	    break 2
11855	    ;;
11856	  *)
11857	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11858	    continue # so that we can try to find one that supports BSD flags
11859	    ;;
11860	  esac
11861	  ;;
11862	esac
11863      fi
11864    done
11865    IFS=$lt_save_ifs
11866  done
11867  : ${lt_cv_path_NM=no}
11868fi
11869fi
11870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11871$as_echo "$lt_cv_path_NM" >&6; }
11872if test no != "$lt_cv_path_NM"; then
11873  NM=$lt_cv_path_NM
11874else
11875  # Didn't find any BSD compatible name lister, look for dumpbin.
11876  if test -n "$DUMPBIN"; then :
11877    # Let the user override the test.
11878  else
11879    if test -n "$ac_tool_prefix"; then
11880  for ac_prog in dumpbin "link -dump"
11881  do
11882    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885$as_echo_n "checking for $ac_word... " >&6; }
11886if ${ac_cv_prog_DUMPBIN+:} false; then :
11887  $as_echo_n "(cached) " >&6
11888else
11889  if test -n "$DUMPBIN"; then
11890  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11891else
11892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893for as_dir in $PATH
11894do
11895  IFS=$as_save_IFS
11896  test -z "$as_dir" && as_dir=.
11897    for ac_exec_ext in '' $ac_executable_extensions; do
11898  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11899    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11900    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11901    break 2
11902  fi
11903done
11904  done
11905IFS=$as_save_IFS
11906
11907fi
11908fi
11909DUMPBIN=$ac_cv_prog_DUMPBIN
11910if test -n "$DUMPBIN"; then
11911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11912$as_echo "$DUMPBIN" >&6; }
11913else
11914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915$as_echo "no" >&6; }
11916fi
11917
11918
11919    test -n "$DUMPBIN" && break
11920  done
11921fi
11922if test -z "$DUMPBIN"; then
11923  ac_ct_DUMPBIN=$DUMPBIN
11924  for ac_prog in dumpbin "link -dump"
11925do
11926  # Extract the first word of "$ac_prog", so it can be a program name with args.
11927set dummy $ac_prog; ac_word=$2
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11929$as_echo_n "checking for $ac_word... " >&6; }
11930if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
11931  $as_echo_n "(cached) " >&6
11932else
11933  if test -n "$ac_ct_DUMPBIN"; then
11934  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11935else
11936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937for as_dir in $PATH
11938do
11939  IFS=$as_save_IFS
11940  test -z "$as_dir" && as_dir=.
11941    for ac_exec_ext in '' $ac_executable_extensions; do
11942  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11945    break 2
11946  fi
11947done
11948  done
11949IFS=$as_save_IFS
11950
11951fi
11952fi
11953ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11954if test -n "$ac_ct_DUMPBIN"; then
11955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11956$as_echo "$ac_ct_DUMPBIN" >&6; }
11957else
11958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11959$as_echo "no" >&6; }
11960fi
11961
11962
11963  test -n "$ac_ct_DUMPBIN" && break
11964done
11965
11966  if test "x$ac_ct_DUMPBIN" = x; then
11967    DUMPBIN=":"
11968  else
11969    case $cross_compiling:$ac_tool_warned in
11970yes:)
11971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11973ac_tool_warned=yes ;;
11974esac
11975    DUMPBIN=$ac_ct_DUMPBIN
11976  fi
11977fi
11978
11979    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
11980    *COFF*)
11981      DUMPBIN="$DUMPBIN -symbols -headers"
11982      ;;
11983    *)
11984      DUMPBIN=:
11985      ;;
11986    esac
11987  fi
11988
11989  if test : != "$DUMPBIN"; then
11990    NM=$DUMPBIN
11991  fi
11992fi
11993test -z "$NM" && NM=nm
11994
11995
11996
11997
11998
11999
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
12001$as_echo_n "checking the name lister ($NM) interface... " >&6; }
12002if ${lt_cv_nm_interface+:} false; then :
12003  $as_echo_n "(cached) " >&6
12004else
12005  lt_cv_nm_interface="BSD nm"
12006  echo "int some_variable = 0;" > conftest.$ac_ext
12007  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
12008  (eval "$ac_compile" 2>conftest.err)
12009  cat conftest.err >&5
12010  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
12011  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
12012  cat conftest.err >&5
12013  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
12014  cat conftest.out >&5
12015  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
12016    lt_cv_nm_interface="MS dumpbin"
12017  fi
12018  rm -f conftest*
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
12021$as_echo "$lt_cv_nm_interface" >&6; }
12022
12023# find the maximum length of command line arguments
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12025$as_echo_n "checking the maximum length of command line arguments... " >&6; }
12026if ${lt_cv_sys_max_cmd_len+:} false; then :
12027  $as_echo_n "(cached) " >&6
12028else
12029    i=0
12030  teststring=ABCD
12031
12032  case $build_os in
12033  msdosdjgpp*)
12034    # On DJGPP, this test can blow up pretty badly due to problems in libc
12035    # (any single argument exceeding 2000 bytes causes a buffer overrun
12036    # during glob expansion).  Even if it were fixed, the result of this
12037    # check would be larger than it should be.
12038    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
12039    ;;
12040
12041  gnu*)
12042    # Under GNU Hurd, this test is not required because there is
12043    # no limit to the length of command line arguments.
12044    # Libtool will interpret -1 as no limit whatsoever
12045    lt_cv_sys_max_cmd_len=-1;
12046    ;;
12047
12048  cygwin* | mingw* | cegcc*)
12049    # On Win9x/ME, this test blows up -- it succeeds, but takes
12050    # about 5 minutes as the teststring grows exponentially.
12051    # Worse, since 9x/ME are not pre-emptively multitasking,
12052    # you end up with a "frozen" computer, even though with patience
12053    # the test eventually succeeds (with a max line length of 256k).
12054    # Instead, let's just punt: use the minimum linelength reported by
12055    # all of the supported platforms: 8192 (on NT/2K/XP).
12056    lt_cv_sys_max_cmd_len=8192;
12057    ;;
12058
12059  mint*)
12060    # On MiNT this can take a long time and run out of memory.
12061    lt_cv_sys_max_cmd_len=8192;
12062    ;;
12063
12064  amigaos*)
12065    # On AmigaOS with pdksh, this test takes hours, literally.
12066    # So we just punt and use a minimum line length of 8192.
12067    lt_cv_sys_max_cmd_len=8192;
12068    ;;
12069
12070  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
12071    # This has been around since 386BSD, at least.  Likely further.
12072    if test -x /sbin/sysctl; then
12073      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12074    elif test -x /usr/sbin/sysctl; then
12075      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12076    else
12077      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
12078    fi
12079    # And add a safety zone
12080    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12081    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12082    ;;
12083
12084  interix*)
12085    # We know the value 262144 and hardcode it with a safety zone (like BSD)
12086    lt_cv_sys_max_cmd_len=196608
12087    ;;
12088
12089  os2*)
12090    # The test takes a long time on OS/2.
12091    lt_cv_sys_max_cmd_len=8192
12092    ;;
12093
12094  osf*)
12095    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12096    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12097    # nice to cause kernel panics so lets avoid the loop below.
12098    # First set a reasonable default.
12099    lt_cv_sys_max_cmd_len=16384
12100    #
12101    if test -x /sbin/sysconfig; then
12102      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12103        *1*) lt_cv_sys_max_cmd_len=-1 ;;
12104      esac
12105    fi
12106    ;;
12107  sco3.2v5*)
12108    lt_cv_sys_max_cmd_len=102400
12109    ;;
12110  sysv5* | sco5v6* | sysv4.2uw2*)
12111    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12112    if test -n "$kargmax"; then
12113      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
12114    else
12115      lt_cv_sys_max_cmd_len=32768
12116    fi
12117    ;;
12118  *)
12119    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12120    if test -n "$lt_cv_sys_max_cmd_len" && \
12121       test undefined != "$lt_cv_sys_max_cmd_len"; then
12122      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12123      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12124    else
12125      # Make teststring a little bigger before we do anything with it.
12126      # a 1K string should be a reasonable start.
12127      for i in 1 2 3 4 5 6 7 8; do
12128        teststring=$teststring$teststring
12129      done
12130      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12131      # If test is not a shell built-in, we'll probably end up computing a
12132      # maximum length that is only half of the actual maximum length, but
12133      # we can't tell.
12134      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
12135	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
12136	      test 17 != "$i" # 1/2 MB should be enough
12137      do
12138        i=`expr $i + 1`
12139        teststring=$teststring$teststring
12140      done
12141      # Only check the string length outside the loop.
12142      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12143      teststring=
12144      # Add a significant safety factor because C++ compilers can tack on
12145      # massive amounts of additional arguments before passing them to the
12146      # linker.  It appears as though 1/2 is a usable value.
12147      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12148    fi
12149    ;;
12150  esac
12151
12152fi
12153
12154if test -n "$lt_cv_sys_max_cmd_len"; then
12155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12156$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12157else
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12159$as_echo "none" >&6; }
12160fi
12161max_cmd_len=$lt_cv_sys_max_cmd_len
12162
12163
12164
12165
12166
12167
12168: ${CP="cp -f"}
12169: ${MV="mv -f"}
12170: ${RM="rm -f"}
12171
12172if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12173  lt_unset=unset
12174else
12175  lt_unset=false
12176fi
12177
12178
12179
12180
12181
12182# test EBCDIC or ASCII
12183case `echo X|tr X '\101'` in
12184 A) # ASCII based system
12185    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12186  lt_SP2NL='tr \040 \012'
12187  lt_NL2SP='tr \015\012 \040\040'
12188  ;;
12189 *) # EBCDIC based system
12190  lt_SP2NL='tr \100 \n'
12191  lt_NL2SP='tr \r\n \100\100'
12192  ;;
12193esac
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
12204$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
12205if ${lt_cv_to_host_file_cmd+:} false; then :
12206  $as_echo_n "(cached) " >&6
12207else
12208  case $host in
12209  *-*-mingw* )
12210    case $build in
12211      *-*-mingw* ) # actually msys
12212        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
12213        ;;
12214      *-*-cygwin* )
12215        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
12216        ;;
12217      * ) # otherwise, assume *nix
12218        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
12219        ;;
12220    esac
12221    ;;
12222  *-*-cygwin* )
12223    case $build in
12224      *-*-mingw* ) # actually msys
12225        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
12226        ;;
12227      *-*-cygwin* )
12228        lt_cv_to_host_file_cmd=func_convert_file_noop
12229        ;;
12230      * ) # otherwise, assume *nix
12231        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
12232        ;;
12233    esac
12234    ;;
12235  * ) # unhandled hosts (and "normal" native builds)
12236    lt_cv_to_host_file_cmd=func_convert_file_noop
12237    ;;
12238esac
12239
12240fi
12241
12242to_host_file_cmd=$lt_cv_to_host_file_cmd
12243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
12244$as_echo "$lt_cv_to_host_file_cmd" >&6; }
12245
12246
12247
12248
12249
12250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
12251$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
12252if ${lt_cv_to_tool_file_cmd+:} false; then :
12253  $as_echo_n "(cached) " >&6
12254else
12255  #assume ordinary cross tools, or native build.
12256lt_cv_to_tool_file_cmd=func_convert_file_noop
12257case $host in
12258  *-*-mingw* )
12259    case $build in
12260      *-*-mingw* ) # actually msys
12261        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
12262        ;;
12263    esac
12264    ;;
12265esac
12266
12267fi
12268
12269to_tool_file_cmd=$lt_cv_to_tool_file_cmd
12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
12271$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
12272
12273
12274
12275
12276
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12278$as_echo_n "checking for $LD option to reload object files... " >&6; }
12279if ${lt_cv_ld_reload_flag+:} false; then :
12280  $as_echo_n "(cached) " >&6
12281else
12282  lt_cv_ld_reload_flag='-r'
12283fi
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12285$as_echo "$lt_cv_ld_reload_flag" >&6; }
12286reload_flag=$lt_cv_ld_reload_flag
12287case $reload_flag in
12288"" | " "*) ;;
12289*) reload_flag=" $reload_flag" ;;
12290esac
12291reload_cmds='$LD$reload_flag -o $output$reload_objs'
12292case $host_os in
12293  cygwin* | mingw* | pw32* | cegcc*)
12294    if test yes != "$GCC"; then
12295      reload_cmds=false
12296    fi
12297    ;;
12298  darwin*)
12299    if test yes = "$GCC"; then
12300      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
12301    else
12302      reload_cmds='$LD$reload_flag -o $output$reload_objs'
12303    fi
12304    ;;
12305esac
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315if test -n "$ac_tool_prefix"; then
12316  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12317set dummy ${ac_tool_prefix}objdump; ac_word=$2
12318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319$as_echo_n "checking for $ac_word... " >&6; }
12320if ${ac_cv_prog_OBJDUMP+:} false; then :
12321  $as_echo_n "(cached) " >&6
12322else
12323  if test -n "$OBJDUMP"; then
12324  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12325else
12326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327for as_dir in $PATH
12328do
12329  IFS=$as_save_IFS
12330  test -z "$as_dir" && as_dir=.
12331    for ac_exec_ext in '' $ac_executable_extensions; do
12332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12333    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335    break 2
12336  fi
12337done
12338  done
12339IFS=$as_save_IFS
12340
12341fi
12342fi
12343OBJDUMP=$ac_cv_prog_OBJDUMP
12344if test -n "$OBJDUMP"; then
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12346$as_echo "$OBJDUMP" >&6; }
12347else
12348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349$as_echo "no" >&6; }
12350fi
12351
12352
12353fi
12354if test -z "$ac_cv_prog_OBJDUMP"; then
12355  ac_ct_OBJDUMP=$OBJDUMP
12356  # Extract the first word of "objdump", so it can be a program name with args.
12357set dummy objdump; ac_word=$2
12358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12359$as_echo_n "checking for $ac_word... " >&6; }
12360if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12361  $as_echo_n "(cached) " >&6
12362else
12363  if test -n "$ac_ct_OBJDUMP"; then
12364  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12365else
12366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12367for as_dir in $PATH
12368do
12369  IFS=$as_save_IFS
12370  test -z "$as_dir" && as_dir=.
12371    for ac_exec_ext in '' $ac_executable_extensions; do
12372  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12373    ac_cv_prog_ac_ct_OBJDUMP="objdump"
12374    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12375    break 2
12376  fi
12377done
12378  done
12379IFS=$as_save_IFS
12380
12381fi
12382fi
12383ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12384if test -n "$ac_ct_OBJDUMP"; then
12385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12386$as_echo "$ac_ct_OBJDUMP" >&6; }
12387else
12388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12389$as_echo "no" >&6; }
12390fi
12391
12392  if test "x$ac_ct_OBJDUMP" = x; then
12393    OBJDUMP="false"
12394  else
12395    case $cross_compiling:$ac_tool_warned in
12396yes:)
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12399ac_tool_warned=yes ;;
12400esac
12401    OBJDUMP=$ac_ct_OBJDUMP
12402  fi
12403else
12404  OBJDUMP="$ac_cv_prog_OBJDUMP"
12405fi
12406
12407test -z "$OBJDUMP" && OBJDUMP=objdump
12408
12409
12410
12411
12412
12413
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12415$as_echo_n "checking how to recognize dependent libraries... " >&6; }
12416if ${lt_cv_deplibs_check_method+:} false; then :
12417  $as_echo_n "(cached) " >&6
12418else
12419  lt_cv_file_magic_cmd='$MAGIC_CMD'
12420lt_cv_file_magic_test_file=
12421lt_cv_deplibs_check_method='unknown'
12422# Need to set the preceding variable on all platforms that support
12423# interlibrary dependencies.
12424# 'none' -- dependencies not supported.
12425# 'unknown' -- same as none, but documents that we really don't know.
12426# 'pass_all' -- all dependencies passed with no checks.
12427# 'test_compile' -- check by making test program.
12428# 'file_magic [[regex]]' -- check by looking for files in library path
12429# that responds to the $file_magic_cmd with a given extended regex.
12430# If you have 'file' or equivalent on your system and you're not sure
12431# whether 'pass_all' will *always* work, you probably want this one.
12432
12433case $host_os in
12434aix[4-9]*)
12435  lt_cv_deplibs_check_method=pass_all
12436  ;;
12437
12438beos*)
12439  lt_cv_deplibs_check_method=pass_all
12440  ;;
12441
12442bsdi[45]*)
12443  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12444  lt_cv_file_magic_cmd='/usr/bin/file -L'
12445  lt_cv_file_magic_test_file=/shlib/libc.so
12446  ;;
12447
12448cygwin*)
12449  # func_win32_libid is a shell function defined in ltmain.sh
12450  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12451  lt_cv_file_magic_cmd='func_win32_libid'
12452  ;;
12453
12454mingw* | pw32*)
12455  # Base MSYS/MinGW do not provide the 'file' command needed by
12456  # func_win32_libid shell function, so use a weaker test based on 'objdump',
12457  # unless we find 'file', for example because we are cross-compiling.
12458  if ( file / ) >/dev/null 2>&1; then
12459    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12460    lt_cv_file_magic_cmd='func_win32_libid'
12461  else
12462    # Keep this pattern in sync with the one in func_win32_libid.
12463    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
12464    lt_cv_file_magic_cmd='$OBJDUMP -f'
12465  fi
12466  ;;
12467
12468cegcc*)
12469  # use the weaker test based on 'objdump'. See mingw*.
12470  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12471  lt_cv_file_magic_cmd='$OBJDUMP -f'
12472  ;;
12473
12474darwin* | rhapsody*)
12475  lt_cv_deplibs_check_method=pass_all
12476  ;;
12477
12478freebsd* | dragonfly*)
12479  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12480    case $host_cpu in
12481    i*86 )
12482      # Not sure whether the presence of OpenBSD here was a mistake.
12483      # Let's accept both of them until this is cleared up.
12484      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12485      lt_cv_file_magic_cmd=/usr/bin/file
12486      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12487      ;;
12488    esac
12489  else
12490    lt_cv_deplibs_check_method=pass_all
12491  fi
12492  ;;
12493
12494haiku*)
12495  lt_cv_deplibs_check_method=pass_all
12496  ;;
12497
12498hpux10.20* | hpux11*)
12499  lt_cv_file_magic_cmd=/usr/bin/file
12500  case $host_cpu in
12501  ia64*)
12502    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12503    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12504    ;;
12505  hppa*64*)
12506    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]'
12507    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12508    ;;
12509  *)
12510    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
12511    lt_cv_file_magic_test_file=/usr/lib/libc.sl
12512    ;;
12513  esac
12514  ;;
12515
12516interix[3-9]*)
12517  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12518  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12519  ;;
12520
12521irix5* | irix6* | nonstopux*)
12522  case $LD in
12523  *-32|*"-32 ") libmagic=32-bit;;
12524  *-n32|*"-n32 ") libmagic=N32;;
12525  *-64|*"-64 ") libmagic=64-bit;;
12526  *) libmagic=never-match;;
12527  esac
12528  lt_cv_deplibs_check_method=pass_all
12529  ;;
12530
12531# This must be glibc/ELF.
12532linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12533  lt_cv_deplibs_check_method=pass_all
12534  ;;
12535
12536netbsd*)
12537  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12538    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12539  else
12540    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12541  fi
12542  ;;
12543
12544newos6*)
12545  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12546  lt_cv_file_magic_cmd=/usr/bin/file
12547  lt_cv_file_magic_test_file=/usr/lib/libnls.so
12548  ;;
12549
12550*nto* | *qnx*)
12551  lt_cv_deplibs_check_method=pass_all
12552  ;;
12553
12554openbsd* | bitrig*)
12555  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12556    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12557  else
12558    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12559  fi
12560  ;;
12561
12562osf3* | osf4* | osf5*)
12563  lt_cv_deplibs_check_method=pass_all
12564  ;;
12565
12566rdos*)
12567  lt_cv_deplibs_check_method=pass_all
12568  ;;
12569
12570solaris*)
12571  lt_cv_deplibs_check_method=pass_all
12572  ;;
12573
12574sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12575  lt_cv_deplibs_check_method=pass_all
12576  ;;
12577
12578sysv4 | sysv4.3*)
12579  case $host_vendor in
12580  motorola)
12581    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]'
12582    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12583    ;;
12584  ncr)
12585    lt_cv_deplibs_check_method=pass_all
12586    ;;
12587  sequent)
12588    lt_cv_file_magic_cmd='/bin/file'
12589    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12590    ;;
12591  sni)
12592    lt_cv_file_magic_cmd='/bin/file'
12593    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12594    lt_cv_file_magic_test_file=/lib/libc.so
12595    ;;
12596  siemens)
12597    lt_cv_deplibs_check_method=pass_all
12598    ;;
12599  pc)
12600    lt_cv_deplibs_check_method=pass_all
12601    ;;
12602  esac
12603  ;;
12604
12605tpf*)
12606  lt_cv_deplibs_check_method=pass_all
12607  ;;
12608os2*)
12609  lt_cv_deplibs_check_method=pass_all
12610  ;;
12611esac
12612
12613fi
12614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12615$as_echo "$lt_cv_deplibs_check_method" >&6; }
12616
12617file_magic_glob=
12618want_nocaseglob=no
12619if test "$build" = "$host"; then
12620  case $host_os in
12621  mingw* | pw32*)
12622    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
12623      want_nocaseglob=yes
12624    else
12625      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
12626    fi
12627    ;;
12628  esac
12629fi
12630
12631file_magic_cmd=$lt_cv_file_magic_cmd
12632deplibs_check_method=$lt_cv_deplibs_check_method
12633test -z "$deplibs_check_method" && deplibs_check_method=unknown
12634
12635
12636
12637
12638
12639
12640
12641
12642
12643
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656if test -n "$ac_tool_prefix"; then
12657  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12658set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12660$as_echo_n "checking for $ac_word... " >&6; }
12661if ${ac_cv_prog_DLLTOOL+:} false; then :
12662  $as_echo_n "(cached) " >&6
12663else
12664  if test -n "$DLLTOOL"; then
12665  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12666else
12667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668for as_dir in $PATH
12669do
12670  IFS=$as_save_IFS
12671  test -z "$as_dir" && as_dir=.
12672    for ac_exec_ext in '' $ac_executable_extensions; do
12673  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12675    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12676    break 2
12677  fi
12678done
12679  done
12680IFS=$as_save_IFS
12681
12682fi
12683fi
12684DLLTOOL=$ac_cv_prog_DLLTOOL
12685if test -n "$DLLTOOL"; then
12686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12687$as_echo "$DLLTOOL" >&6; }
12688else
12689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12690$as_echo "no" >&6; }
12691fi
12692
12693
12694fi
12695if test -z "$ac_cv_prog_DLLTOOL"; then
12696  ac_ct_DLLTOOL=$DLLTOOL
12697  # Extract the first word of "dlltool", so it can be a program name with args.
12698set dummy dlltool; ac_word=$2
12699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12700$as_echo_n "checking for $ac_word... " >&6; }
12701if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12702  $as_echo_n "(cached) " >&6
12703else
12704  if test -n "$ac_ct_DLLTOOL"; then
12705  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12706else
12707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12708for as_dir in $PATH
12709do
12710  IFS=$as_save_IFS
12711  test -z "$as_dir" && as_dir=.
12712    for ac_exec_ext in '' $ac_executable_extensions; do
12713  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12714    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12715    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12716    break 2
12717  fi
12718done
12719  done
12720IFS=$as_save_IFS
12721
12722fi
12723fi
12724ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12725if test -n "$ac_ct_DLLTOOL"; then
12726  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12727$as_echo "$ac_ct_DLLTOOL" >&6; }
12728else
12729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12730$as_echo "no" >&6; }
12731fi
12732
12733  if test "x$ac_ct_DLLTOOL" = x; then
12734    DLLTOOL="false"
12735  else
12736    case $cross_compiling:$ac_tool_warned in
12737yes:)
12738{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12739$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12740ac_tool_warned=yes ;;
12741esac
12742    DLLTOOL=$ac_ct_DLLTOOL
12743  fi
12744else
12745  DLLTOOL="$ac_cv_prog_DLLTOOL"
12746fi
12747
12748test -z "$DLLTOOL" && DLLTOOL=dlltool
12749
12750
12751
12752
12753
12754
12755
12756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
12757$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
12758if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
12759  $as_echo_n "(cached) " >&6
12760else
12761  lt_cv_sharedlib_from_linklib_cmd='unknown'
12762
12763case $host_os in
12764cygwin* | mingw* | pw32* | cegcc*)
12765  # two different shell functions defined in ltmain.sh;
12766  # decide which one to use based on capabilities of $DLLTOOL
12767  case `$DLLTOOL --help 2>&1` in
12768  *--identify-strict*)
12769    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
12770    ;;
12771  *)
12772    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
12773    ;;
12774  esac
12775  ;;
12776*)
12777  # fallback: assume linklib IS sharedlib
12778  lt_cv_sharedlib_from_linklib_cmd=$ECHO
12779  ;;
12780esac
12781
12782fi
12783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
12784$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
12785sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
12786test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
12787
12788
12789
12790
12791
12792
12793
12794if test -n "$ac_tool_prefix"; then
12795  for ac_prog in ar
12796  do
12797    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12798set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12800$as_echo_n "checking for $ac_word... " >&6; }
12801if ${ac_cv_prog_AR+:} false; then :
12802  $as_echo_n "(cached) " >&6
12803else
12804  if test -n "$AR"; then
12805  ac_cv_prog_AR="$AR" # Let the user override the test.
12806else
12807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808for as_dir in $PATH
12809do
12810  IFS=$as_save_IFS
12811  test -z "$as_dir" && as_dir=.
12812    for ac_exec_ext in '' $ac_executable_extensions; do
12813  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
12815    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12816    break 2
12817  fi
12818done
12819  done
12820IFS=$as_save_IFS
12821
12822fi
12823fi
12824AR=$ac_cv_prog_AR
12825if test -n "$AR"; then
12826  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12827$as_echo "$AR" >&6; }
12828else
12829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830$as_echo "no" >&6; }
12831fi
12832
12833
12834    test -n "$AR" && break
12835  done
12836fi
12837if test -z "$AR"; then
12838  ac_ct_AR=$AR
12839  for ac_prog in ar
12840do
12841  # Extract the first word of "$ac_prog", so it can be a program name with args.
12842set dummy $ac_prog; ac_word=$2
12843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844$as_echo_n "checking for $ac_word... " >&6; }
12845if ${ac_cv_prog_ac_ct_AR+:} false; then :
12846  $as_echo_n "(cached) " >&6
12847else
12848  if test -n "$ac_ct_AR"; then
12849  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12850else
12851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852for as_dir in $PATH
12853do
12854  IFS=$as_save_IFS
12855  test -z "$as_dir" && as_dir=.
12856    for ac_exec_ext in '' $ac_executable_extensions; do
12857  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12858    ac_cv_prog_ac_ct_AR="$ac_prog"
12859    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12860    break 2
12861  fi
12862done
12863  done
12864IFS=$as_save_IFS
12865
12866fi
12867fi
12868ac_ct_AR=$ac_cv_prog_ac_ct_AR
12869if test -n "$ac_ct_AR"; then
12870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12871$as_echo "$ac_ct_AR" >&6; }
12872else
12873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12874$as_echo "no" >&6; }
12875fi
12876
12877
12878  test -n "$ac_ct_AR" && break
12879done
12880
12881  if test "x$ac_ct_AR" = x; then
12882    AR="false"
12883  else
12884    case $cross_compiling:$ac_tool_warned in
12885yes:)
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12888ac_tool_warned=yes ;;
12889esac
12890    AR=$ac_ct_AR
12891  fi
12892fi
12893
12894: ${AR=ar}
12895: ${AR_FLAGS=cru}
12896
12897
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
12908$as_echo_n "checking for archiver @FILE support... " >&6; }
12909if ${lt_cv_ar_at_file+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  lt_cv_ar_at_file=no
12913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12914/* end confdefs.h.  */
12915
12916int
12917main ()
12918{
12919
12920  ;
12921  return 0;
12922}
12923_ACEOF
12924if ac_fn_c_try_compile "$LINENO"; then :
12925  echo conftest.$ac_objext > conftest.lst
12926      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
12927      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12928  (eval $lt_ar_try) 2>&5
12929  ac_status=$?
12930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12931  test $ac_status = 0; }
12932      if test 0 -eq "$ac_status"; then
12933	# Ensure the archiver fails upon bogus file names.
12934	rm -f conftest.$ac_objext libconftest.a
12935	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
12936  (eval $lt_ar_try) 2>&5
12937  ac_status=$?
12938  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12939  test $ac_status = 0; }
12940	if test 0 -ne "$ac_status"; then
12941          lt_cv_ar_at_file=@
12942        fi
12943      fi
12944      rm -f conftest.* libconftest.a
12945
12946fi
12947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12948
12949fi
12950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
12951$as_echo "$lt_cv_ar_at_file" >&6; }
12952
12953if test no = "$lt_cv_ar_at_file"; then
12954  archiver_list_spec=
12955else
12956  archiver_list_spec=$lt_cv_ar_at_file
12957fi
12958
12959
12960
12961
12962
12963
12964
12965if test -n "$ac_tool_prefix"; then
12966  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12967set dummy ${ac_tool_prefix}strip; ac_word=$2
12968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12969$as_echo_n "checking for $ac_word... " >&6; }
12970if ${ac_cv_prog_STRIP+:} false; then :
12971  $as_echo_n "(cached) " >&6
12972else
12973  if test -n "$STRIP"; then
12974  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12975else
12976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977for as_dir in $PATH
12978do
12979  IFS=$as_save_IFS
12980  test -z "$as_dir" && as_dir=.
12981    for ac_exec_ext in '' $ac_executable_extensions; do
12982  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12984    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985    break 2
12986  fi
12987done
12988  done
12989IFS=$as_save_IFS
12990
12991fi
12992fi
12993STRIP=$ac_cv_prog_STRIP
12994if test -n "$STRIP"; then
12995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12996$as_echo "$STRIP" >&6; }
12997else
12998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999$as_echo "no" >&6; }
13000fi
13001
13002
13003fi
13004if test -z "$ac_cv_prog_STRIP"; then
13005  ac_ct_STRIP=$STRIP
13006  # Extract the first word of "strip", so it can be a program name with args.
13007set dummy strip; ac_word=$2
13008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13009$as_echo_n "checking for $ac_word... " >&6; }
13010if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13011  $as_echo_n "(cached) " >&6
13012else
13013  if test -n "$ac_ct_STRIP"; then
13014  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13015else
13016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13017for as_dir in $PATH
13018do
13019  IFS=$as_save_IFS
13020  test -z "$as_dir" && as_dir=.
13021    for ac_exec_ext in '' $ac_executable_extensions; do
13022  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13023    ac_cv_prog_ac_ct_STRIP="strip"
13024    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13025    break 2
13026  fi
13027done
13028  done
13029IFS=$as_save_IFS
13030
13031fi
13032fi
13033ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13034if test -n "$ac_ct_STRIP"; then
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13036$as_echo "$ac_ct_STRIP" >&6; }
13037else
13038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13039$as_echo "no" >&6; }
13040fi
13041
13042  if test "x$ac_ct_STRIP" = x; then
13043    STRIP=":"
13044  else
13045    case $cross_compiling:$ac_tool_warned in
13046yes:)
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13049ac_tool_warned=yes ;;
13050esac
13051    STRIP=$ac_ct_STRIP
13052  fi
13053else
13054  STRIP="$ac_cv_prog_STRIP"
13055fi
13056
13057test -z "$STRIP" && STRIP=:
13058
13059
13060
13061
13062
13063
13064if test -n "$ac_tool_prefix"; then
13065  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
13066set dummy ${ac_tool_prefix}ranlib; ac_word=$2
13067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13068$as_echo_n "checking for $ac_word... " >&6; }
13069if ${ac_cv_prog_RANLIB+:} false; then :
13070  $as_echo_n "(cached) " >&6
13071else
13072  if test -n "$RANLIB"; then
13073  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13074else
13075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076for as_dir in $PATH
13077do
13078  IFS=$as_save_IFS
13079  test -z "$as_dir" && as_dir=.
13080    for ac_exec_ext in '' $ac_executable_extensions; do
13081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13082    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
13083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13084    break 2
13085  fi
13086done
13087  done
13088IFS=$as_save_IFS
13089
13090fi
13091fi
13092RANLIB=$ac_cv_prog_RANLIB
13093if test -n "$RANLIB"; then
13094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
13095$as_echo "$RANLIB" >&6; }
13096else
13097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098$as_echo "no" >&6; }
13099fi
13100
13101
13102fi
13103if test -z "$ac_cv_prog_RANLIB"; then
13104  ac_ct_RANLIB=$RANLIB
13105  # Extract the first word of "ranlib", so it can be a program name with args.
13106set dummy ranlib; ac_word=$2
13107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13108$as_echo_n "checking for $ac_word... " >&6; }
13109if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
13110  $as_echo_n "(cached) " >&6
13111else
13112  if test -n "$ac_ct_RANLIB"; then
13113  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
13114else
13115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13116for as_dir in $PATH
13117do
13118  IFS=$as_save_IFS
13119  test -z "$as_dir" && as_dir=.
13120    for ac_exec_ext in '' $ac_executable_extensions; do
13121  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13122    ac_cv_prog_ac_ct_RANLIB="ranlib"
13123    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13124    break 2
13125  fi
13126done
13127  done
13128IFS=$as_save_IFS
13129
13130fi
13131fi
13132ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
13133if test -n "$ac_ct_RANLIB"; then
13134  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
13135$as_echo "$ac_ct_RANLIB" >&6; }
13136else
13137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13138$as_echo "no" >&6; }
13139fi
13140
13141  if test "x$ac_ct_RANLIB" = x; then
13142    RANLIB=":"
13143  else
13144    case $cross_compiling:$ac_tool_warned in
13145yes:)
13146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13148ac_tool_warned=yes ;;
13149esac
13150    RANLIB=$ac_ct_RANLIB
13151  fi
13152else
13153  RANLIB="$ac_cv_prog_RANLIB"
13154fi
13155
13156test -z "$RANLIB" && RANLIB=:
13157
13158
13159
13160
13161
13162
13163# Determine commands to create old-style static archives.
13164old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13165old_postinstall_cmds='chmod 644 $oldlib'
13166old_postuninstall_cmds=
13167
13168if test -n "$RANLIB"; then
13169  case $host_os in
13170  bitrig* | openbsd*)
13171    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
13172    ;;
13173  *)
13174    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
13175    ;;
13176  esac
13177  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
13178fi
13179
13180case $host_os in
13181  darwin*)
13182    lock_old_archive_extraction=yes ;;
13183  *)
13184    lock_old_archive_extraction=no ;;
13185esac
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225# If no C compiler was specified, use CC.
13226LTCC=${LTCC-"$CC"}
13227
13228# If no C compiler flags were specified, use CFLAGS.
13229LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13230
13231# Allow CC to be a program name with arguments.
13232compiler=$CC
13233
13234
13235# Check for command to grab the raw symbol name followed by C symbol from nm.
13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13237$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13238if ${lt_cv_sys_global_symbol_pipe+:} false; then :
13239  $as_echo_n "(cached) " >&6
13240else
13241
13242# These are sane defaults that work on at least a few old systems.
13243# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
13244
13245# Character class describing NM global symbol codes.
13246symcode='[BCDEGRST]'
13247
13248# Regexp to match symbols that can be accessed directly from C.
13249sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13250
13251# Define system-specific variables.
13252case $host_os in
13253aix*)
13254  symcode='[BCDT]'
13255  ;;
13256cygwin* | mingw* | pw32* | cegcc*)
13257  symcode='[ABCDGISTW]'
13258  ;;
13259hpux*)
13260  if test ia64 = "$host_cpu"; then
13261    symcode='[ABCDEGRST]'
13262  fi
13263  ;;
13264irix* | nonstopux*)
13265  symcode='[BCDEGRST]'
13266  ;;
13267osf*)
13268  symcode='[BCDEGQRST]'
13269  ;;
13270solaris*)
13271  symcode='[BDRT]'
13272  ;;
13273sco3.2v5*)
13274  symcode='[DT]'
13275  ;;
13276sysv4.2uw2*)
13277  symcode='[DT]'
13278  ;;
13279sysv5* | sco5v6* | unixware* | OpenUNIX*)
13280  symcode='[ABDT]'
13281  ;;
13282sysv4)
13283  symcode='[DFNSTU]'
13284  ;;
13285esac
13286
13287# If we're using GNU nm, then use its standard symbol codes.
13288case `$NM -V 2>&1` in
13289*GNU* | *'with BFD'*)
13290  symcode='[ABCDGIRSTW]' ;;
13291esac
13292
13293if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13294  # Gets list of data symbols to import.
13295  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
13296  # Adjust the below global symbol transforms to fixup imported variables.
13297  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
13298  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
13299  lt_c_name_lib_hook="\
13300  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
13301  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
13302else
13303  # Disable hooks by default.
13304  lt_cv_sys_global_symbol_to_import=
13305  lt_cdecl_hook=
13306  lt_c_name_hook=
13307  lt_c_name_lib_hook=
13308fi
13309
13310# Transform an extracted symbol line into a proper C declaration.
13311# Some systems (esp. on ia64) link data and code symbols differently,
13312# so use this general approach.
13313lt_cv_sys_global_symbol_to_cdecl="sed -n"\
13314$lt_cdecl_hook\
13315" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
13316" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
13317
13318# Transform an extracted symbol line into symbol name and symbol address
13319lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
13320$lt_c_name_hook\
13321" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13322" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
13323
13324# Transform an extracted symbol line into symbol name with lib prefix and
13325# symbol address.
13326lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
13327$lt_c_name_lib_hook\
13328" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
13329" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
13330" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
13331
13332# Handle CRLF in mingw tool chain
13333opt_cr=
13334case $build_os in
13335mingw*)
13336  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13337  ;;
13338esac
13339
13340# Try without a prefix underscore, then with it.
13341for ac_symprfx in "" "_"; do
13342
13343  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13344  symxfrm="\\1 $ac_symprfx\\2 \\2"
13345
13346  # Write the raw and C identifiers.
13347  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13348    # Fake it for dumpbin and say T for any non-static function,
13349    # D for any global variable and I for any imported variable.
13350    # Also find C++ and __fastcall symbols from MSVC++,
13351    # which start with @ or ?.
13352    lt_cv_sys_global_symbol_pipe="$AWK '"\
13353"     {last_section=section; section=\$ 3};"\
13354"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
13355"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13356"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
13357"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
13358"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
13359"     \$ 0!~/External *\|/{next};"\
13360"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13361"     {if(hide[section]) next};"\
13362"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
13363"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
13364"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
13365"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
13366"     ' prfx=^$ac_symprfx"
13367  else
13368    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13369  fi
13370  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
13371
13372  # Check to see that the pipe works correctly.
13373  pipe_works=no
13374
13375  rm -f conftest*
13376  cat > conftest.$ac_ext <<_LT_EOF
13377#ifdef __cplusplus
13378extern "C" {
13379#endif
13380char nm_test_var;
13381void nm_test_func(void);
13382void nm_test_func(void){}
13383#ifdef __cplusplus
13384}
13385#endif
13386int main(){nm_test_var='a';nm_test_func();return(0);}
13387_LT_EOF
13388
13389  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13390  (eval $ac_compile) 2>&5
13391  ac_status=$?
13392  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13393  test $ac_status = 0; }; then
13394    # Now try to grab the symbols.
13395    nlist=conftest.nm
13396    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
13397  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
13398  ac_status=$?
13399  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13400  test $ac_status = 0; } && test -s "$nlist"; then
13401      # Try sorting and uniquifying the output.
13402      if sort "$nlist" | uniq > "$nlist"T; then
13403	mv -f "$nlist"T "$nlist"
13404      else
13405	rm -f "$nlist"T
13406      fi
13407
13408      # Make sure that we snagged all the symbols we need.
13409      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13410	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13411	  cat <<_LT_EOF > conftest.$ac_ext
13412/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
13413#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
13414/* DATA imports from DLLs on WIN32 can't be const, because runtime
13415   relocations are performed -- see ld's documentation on pseudo-relocs.  */
13416# define LT_DLSYM_CONST
13417#elif defined __osf__
13418/* This system does not cope well with relocations in const data.  */
13419# define LT_DLSYM_CONST
13420#else
13421# define LT_DLSYM_CONST const
13422#endif
13423
13424#ifdef __cplusplus
13425extern "C" {
13426#endif
13427
13428_LT_EOF
13429	  # Now generate the symbol file.
13430	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13431
13432	  cat <<_LT_EOF >> conftest.$ac_ext
13433
13434/* The mapping between symbol names and symbols.  */
13435LT_DLSYM_CONST struct {
13436  const char *name;
13437  void       *address;
13438}
13439lt__PROGRAM__LTX_preloaded_symbols[] =
13440{
13441  { "@PROGRAM@", (void *) 0 },
13442_LT_EOF
13443	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13444	  cat <<\_LT_EOF >> conftest.$ac_ext
13445  {0, (void *) 0}
13446};
13447
13448/* This works around a problem in FreeBSD linker */
13449#ifdef FREEBSD_WORKAROUND
13450static const void *lt_preloaded_setup() {
13451  return lt__PROGRAM__LTX_preloaded_symbols;
13452}
13453#endif
13454
13455#ifdef __cplusplus
13456}
13457#endif
13458_LT_EOF
13459	  # Now try linking the two files.
13460	  mv conftest.$ac_objext conftstm.$ac_objext
13461	  lt_globsym_save_LIBS=$LIBS
13462	  lt_globsym_save_CFLAGS=$CFLAGS
13463	  LIBS=conftstm.$ac_objext
13464	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13465	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13466  (eval $ac_link) 2>&5
13467  ac_status=$?
13468  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13469  test $ac_status = 0; } && test -s conftest$ac_exeext; then
13470	    pipe_works=yes
13471	  fi
13472	  LIBS=$lt_globsym_save_LIBS
13473	  CFLAGS=$lt_globsym_save_CFLAGS
13474	else
13475	  echo "cannot find nm_test_func in $nlist" >&5
13476	fi
13477      else
13478	echo "cannot find nm_test_var in $nlist" >&5
13479      fi
13480    else
13481      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13482    fi
13483  else
13484    echo "$progname: failed program was:" >&5
13485    cat conftest.$ac_ext >&5
13486  fi
13487  rm -rf conftest* conftst*
13488
13489  # Do not use the global_symbol_pipe unless it works.
13490  if test yes = "$pipe_works"; then
13491    break
13492  else
13493    lt_cv_sys_global_symbol_pipe=
13494  fi
13495done
13496
13497fi
13498
13499if test -z "$lt_cv_sys_global_symbol_pipe"; then
13500  lt_cv_sys_global_symbol_to_cdecl=
13501fi
13502if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13504$as_echo "failed" >&6; }
13505else
13506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13507$as_echo "ok" >&6; }
13508fi
13509
13510# Response file support.
13511if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13512  nm_file_list_spec='@'
13513elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
13514  nm_file_list_spec='@'
13515fi
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
13554$as_echo_n "checking for sysroot... " >&6; }
13555
13556# Check whether --with-sysroot was given.
13557if test "${with_sysroot+set}" = set; then :
13558  withval=$with_sysroot;
13559else
13560  with_sysroot=no
13561fi
13562
13563
13564lt_sysroot=
13565case $with_sysroot in #(
13566 yes)
13567   if test yes = "$GCC"; then
13568     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
13569   fi
13570   ;; #(
13571 /*)
13572   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
13573   ;; #(
13574 no|'')
13575   ;; #(
13576 *)
13577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
13578$as_echo "$with_sysroot" >&6; }
13579   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
13580   ;;
13581esac
13582
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
13584$as_echo "${lt_sysroot:-no}" >&6; }
13585
13586
13587
13588
13589
13590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
13591$as_echo_n "checking for a working dd... " >&6; }
13592if ${ac_cv_path_lt_DD+:} false; then :
13593  $as_echo_n "(cached) " >&6
13594else
13595  printf 0123456789abcdef0123456789abcdef >conftest.i
13596cat conftest.i conftest.i >conftest2.i
13597: ${lt_DD:=$DD}
13598if test -z "$lt_DD"; then
13599  ac_path_lt_DD_found=false
13600  # Loop through the user's path and test for each of PROGNAME-LIST
13601  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602for as_dir in $PATH
13603do
13604  IFS=$as_save_IFS
13605  test -z "$as_dir" && as_dir=.
13606    for ac_prog in dd; do
13607    for ac_exec_ext in '' $ac_executable_extensions; do
13608      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
13609      as_fn_executable_p "$ac_path_lt_DD" || continue
13610if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13611  cmp -s conftest.i conftest.out \
13612  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
13613fi
13614      $ac_path_lt_DD_found && break 3
13615    done
13616  done
13617  done
13618IFS=$as_save_IFS
13619  if test -z "$ac_cv_path_lt_DD"; then
13620    :
13621  fi
13622else
13623  ac_cv_path_lt_DD=$lt_DD
13624fi
13625
13626rm -f conftest.i conftest2.i conftest.out
13627fi
13628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
13629$as_echo "$ac_cv_path_lt_DD" >&6; }
13630
13631
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
13633$as_echo_n "checking how to truncate binary pipes... " >&6; }
13634if ${lt_cv_truncate_bin+:} false; then :
13635  $as_echo_n "(cached) " >&6
13636else
13637  printf 0123456789abcdef0123456789abcdef >conftest.i
13638cat conftest.i conftest.i >conftest2.i
13639lt_cv_truncate_bin=
13640if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
13641  cmp -s conftest.i conftest.out \
13642  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
13643fi
13644rm -f conftest.i conftest2.i conftest.out
13645test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
13646fi
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
13648$as_echo "$lt_cv_truncate_bin" >&6; }
13649
13650
13651
13652
13653
13654
13655
13656# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
13657func_cc_basename ()
13658{
13659    for cc_temp in $*""; do
13660      case $cc_temp in
13661        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13662        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13663        \-*) ;;
13664        *) break;;
13665      esac
13666    done
13667    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13668}
13669
13670# Check whether --enable-libtool-lock was given.
13671if test "${enable_libtool_lock+set}" = set; then :
13672  enableval=$enable_libtool_lock;
13673fi
13674
13675test no = "$enable_libtool_lock" || enable_libtool_lock=yes
13676
13677# Some flags need to be propagated to the compiler or linker for good
13678# libtool support.
13679case $host in
13680ia64-*-hpux*)
13681  # Find out what ABI is being produced by ac_compile, and set mode
13682  # options accordingly.
13683  echo 'int i;' > conftest.$ac_ext
13684  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13685  (eval $ac_compile) 2>&5
13686  ac_status=$?
13687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13688  test $ac_status = 0; }; then
13689    case `/usr/bin/file conftest.$ac_objext` in
13690      *ELF-32*)
13691	HPUX_IA64_MODE=32
13692	;;
13693      *ELF-64*)
13694	HPUX_IA64_MODE=64
13695	;;
13696    esac
13697  fi
13698  rm -rf conftest*
13699  ;;
13700*-*-irix6*)
13701  # Find out what ABI is being produced by ac_compile, and set linker
13702  # options accordingly.
13703  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13704  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13705  (eval $ac_compile) 2>&5
13706  ac_status=$?
13707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13708  test $ac_status = 0; }; then
13709    if test yes = "$lt_cv_prog_gnu_ld"; then
13710      case `/usr/bin/file conftest.$ac_objext` in
13711	*32-bit*)
13712	  LD="${LD-ld} -melf32bsmip"
13713	  ;;
13714	*N32*)
13715	  LD="${LD-ld} -melf32bmipn32"
13716	  ;;
13717	*64-bit*)
13718	  LD="${LD-ld} -melf64bmip"
13719	;;
13720      esac
13721    else
13722      case `/usr/bin/file conftest.$ac_objext` in
13723	*32-bit*)
13724	  LD="${LD-ld} -32"
13725	  ;;
13726	*N32*)
13727	  LD="${LD-ld} -n32"
13728	  ;;
13729	*64-bit*)
13730	  LD="${LD-ld} -64"
13731	  ;;
13732      esac
13733    fi
13734  fi
13735  rm -rf conftest*
13736  ;;
13737
13738mips64*-*linux*)
13739  # Find out what ABI is being produced by ac_compile, and set linker
13740  # options accordingly.
13741  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
13742  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13743  (eval $ac_compile) 2>&5
13744  ac_status=$?
13745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13746  test $ac_status = 0; }; then
13747    emul=elf
13748    case `/usr/bin/file conftest.$ac_objext` in
13749      *32-bit*)
13750	emul="${emul}32"
13751	;;
13752      *64-bit*)
13753	emul="${emul}64"
13754	;;
13755    esac
13756    case `/usr/bin/file conftest.$ac_objext` in
13757      *MSB*)
13758	emul="${emul}btsmip"
13759	;;
13760      *LSB*)
13761	emul="${emul}ltsmip"
13762	;;
13763    esac
13764    case `/usr/bin/file conftest.$ac_objext` in
13765      *N32*)
13766	emul="${emul}n32"
13767	;;
13768    esac
13769    LD="${LD-ld} -m $emul"
13770  fi
13771  rm -rf conftest*
13772  ;;
13773
13774x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
13775s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13776  # Find out what ABI is being produced by ac_compile, and set linker
13777  # options accordingly.  Note that the listed cases only cover the
13778  # situations where additional linker options are needed (such as when
13779  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
13780  # vice versa); the common cases where no linker options are needed do
13781  # not appear in the list.
13782  echo 'int i;' > conftest.$ac_ext
13783  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13784  (eval $ac_compile) 2>&5
13785  ac_status=$?
13786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13787  test $ac_status = 0; }; then
13788    case `/usr/bin/file conftest.o` in
13789      *32-bit*)
13790	case $host in
13791	  x86_64-*kfreebsd*-gnu)
13792	    LD="${LD-ld} -m elf_i386_fbsd"
13793	    ;;
13794	  x86_64-*linux*)
13795	    case `/usr/bin/file conftest.o` in
13796	      *x86-64*)
13797		LD="${LD-ld} -m elf32_x86_64"
13798		;;
13799	      *)
13800		LD="${LD-ld} -m elf_i386"
13801		;;
13802	    esac
13803	    ;;
13804	  powerpc64le-*linux*)
13805	    LD="${LD-ld} -m elf32lppclinux"
13806	    ;;
13807	  powerpc64-*linux*)
13808	    LD="${LD-ld} -m elf32ppclinux"
13809	    ;;
13810	  s390x-*linux*)
13811	    LD="${LD-ld} -m elf_s390"
13812	    ;;
13813	  sparc64-*linux*)
13814	    LD="${LD-ld} -m elf32_sparc"
13815	    ;;
13816	esac
13817	;;
13818      *64-bit*)
13819	case $host in
13820	  x86_64-*kfreebsd*-gnu)
13821	    LD="${LD-ld} -m elf_x86_64_fbsd"
13822	    ;;
13823	  x86_64-*linux*)
13824	    LD="${LD-ld} -m elf_x86_64"
13825	    ;;
13826	  powerpcle-*linux*)
13827	    LD="${LD-ld} -m elf64lppc"
13828	    ;;
13829	  powerpc-*linux*)
13830	    LD="${LD-ld} -m elf64ppc"
13831	    ;;
13832	  s390*-*linux*|s390*-*tpf*)
13833	    LD="${LD-ld} -m elf64_s390"
13834	    ;;
13835	  sparc*-*linux*)
13836	    LD="${LD-ld} -m elf64_sparc"
13837	    ;;
13838	esac
13839	;;
13840    esac
13841  fi
13842  rm -rf conftest*
13843  ;;
13844
13845*-*-sco3.2v5*)
13846  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13847  SAVE_CFLAGS=$CFLAGS
13848  CFLAGS="$CFLAGS -belf"
13849  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13850$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13851if ${lt_cv_cc_needs_belf+:} false; then :
13852  $as_echo_n "(cached) " >&6
13853else
13854  ac_ext=c
13855ac_cpp='$CPP $CPPFLAGS'
13856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858ac_compiler_gnu=$ac_cv_c_compiler_gnu
13859
13860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861/* end confdefs.h.  */
13862
13863int
13864main ()
13865{
13866
13867  ;
13868  return 0;
13869}
13870_ACEOF
13871if ac_fn_c_try_link "$LINENO"; then :
13872  lt_cv_cc_needs_belf=yes
13873else
13874  lt_cv_cc_needs_belf=no
13875fi
13876rm -f core conftest.err conftest.$ac_objext \
13877    conftest$ac_exeext conftest.$ac_ext
13878     ac_ext=c
13879ac_cpp='$CPP $CPPFLAGS'
13880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13882ac_compiler_gnu=$ac_cv_c_compiler_gnu
13883
13884fi
13885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13886$as_echo "$lt_cv_cc_needs_belf" >&6; }
13887  if test yes != "$lt_cv_cc_needs_belf"; then
13888    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13889    CFLAGS=$SAVE_CFLAGS
13890  fi
13891  ;;
13892*-*solaris*)
13893  # Find out what ABI is being produced by ac_compile, and set linker
13894  # options accordingly.
13895  echo 'int i;' > conftest.$ac_ext
13896  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13897  (eval $ac_compile) 2>&5
13898  ac_status=$?
13899  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900  test $ac_status = 0; }; then
13901    case `/usr/bin/file conftest.o` in
13902    *64-bit*)
13903      case $lt_cv_prog_gnu_ld in
13904      yes*)
13905        case $host in
13906        i?86-*-solaris*|x86_64-*-solaris*)
13907          LD="${LD-ld} -m elf_x86_64"
13908          ;;
13909        sparc*-*-solaris*)
13910          LD="${LD-ld} -m elf64_sparc"
13911          ;;
13912        esac
13913        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
13914        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
13915          LD=${LD-ld}_sol2
13916        fi
13917        ;;
13918      *)
13919	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13920	  LD="${LD-ld} -64"
13921	fi
13922	;;
13923      esac
13924      ;;
13925    esac
13926  fi
13927  rm -rf conftest*
13928  ;;
13929esac
13930
13931need_locks=$enable_libtool_lock
13932
13933if test -n "$ac_tool_prefix"; then
13934  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
13935set dummy ${ac_tool_prefix}mt; ac_word=$2
13936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13937$as_echo_n "checking for $ac_word... " >&6; }
13938if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
13939  $as_echo_n "(cached) " >&6
13940else
13941  if test -n "$MANIFEST_TOOL"; then
13942  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
13943else
13944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945for as_dir in $PATH
13946do
13947  IFS=$as_save_IFS
13948  test -z "$as_dir" && as_dir=.
13949    for ac_exec_ext in '' $ac_executable_extensions; do
13950  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
13952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13953    break 2
13954  fi
13955done
13956  done
13957IFS=$as_save_IFS
13958
13959fi
13960fi
13961MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
13962if test -n "$MANIFEST_TOOL"; then
13963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
13964$as_echo "$MANIFEST_TOOL" >&6; }
13965else
13966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967$as_echo "no" >&6; }
13968fi
13969
13970
13971fi
13972if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
13973  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
13974  # Extract the first word of "mt", so it can be a program name with args.
13975set dummy mt; ac_word=$2
13976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13977$as_echo_n "checking for $ac_word... " >&6; }
13978if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
13979  $as_echo_n "(cached) " >&6
13980else
13981  if test -n "$ac_ct_MANIFEST_TOOL"; then
13982  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
13983else
13984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13985for as_dir in $PATH
13986do
13987  IFS=$as_save_IFS
13988  test -z "$as_dir" && as_dir=.
13989    for ac_exec_ext in '' $ac_executable_extensions; do
13990  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13991    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
13992    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13993    break 2
13994  fi
13995done
13996  done
13997IFS=$as_save_IFS
13998
13999fi
14000fi
14001ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
14002if test -n "$ac_ct_MANIFEST_TOOL"; then
14003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
14004$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
14005else
14006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14007$as_echo "no" >&6; }
14008fi
14009
14010  if test "x$ac_ct_MANIFEST_TOOL" = x; then
14011    MANIFEST_TOOL=":"
14012  else
14013    case $cross_compiling:$ac_tool_warned in
14014yes:)
14015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14017ac_tool_warned=yes ;;
14018esac
14019    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
14020  fi
14021else
14022  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
14023fi
14024
14025test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
14026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
14027$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
14028if ${lt_cv_path_mainfest_tool+:} false; then :
14029  $as_echo_n "(cached) " >&6
14030else
14031  lt_cv_path_mainfest_tool=no
14032  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
14033  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
14034  cat conftest.err >&5
14035  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
14036    lt_cv_path_mainfest_tool=yes
14037  fi
14038  rm -f conftest*
14039fi
14040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
14041$as_echo "$lt_cv_path_mainfest_tool" >&6; }
14042if test yes != "$lt_cv_path_mainfest_tool"; then
14043  MANIFEST_TOOL=:
14044fi
14045
14046
14047
14048
14049
14050
14051  case $host_os in
14052    rhapsody* | darwin*)
14053    if test -n "$ac_tool_prefix"; then
14054  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
14055set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
14056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14057$as_echo_n "checking for $ac_word... " >&6; }
14058if ${ac_cv_prog_DSYMUTIL+:} false; then :
14059  $as_echo_n "(cached) " >&6
14060else
14061  if test -n "$DSYMUTIL"; then
14062  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
14063else
14064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14065for as_dir in $PATH
14066do
14067  IFS=$as_save_IFS
14068  test -z "$as_dir" && as_dir=.
14069    for ac_exec_ext in '' $ac_executable_extensions; do
14070  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14071    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
14072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14073    break 2
14074  fi
14075done
14076  done
14077IFS=$as_save_IFS
14078
14079fi
14080fi
14081DSYMUTIL=$ac_cv_prog_DSYMUTIL
14082if test -n "$DSYMUTIL"; then
14083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
14084$as_echo "$DSYMUTIL" >&6; }
14085else
14086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14087$as_echo "no" >&6; }
14088fi
14089
14090
14091fi
14092if test -z "$ac_cv_prog_DSYMUTIL"; then
14093  ac_ct_DSYMUTIL=$DSYMUTIL
14094  # Extract the first word of "dsymutil", so it can be a program name with args.
14095set dummy dsymutil; ac_word=$2
14096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14097$as_echo_n "checking for $ac_word... " >&6; }
14098if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
14099  $as_echo_n "(cached) " >&6
14100else
14101  if test -n "$ac_ct_DSYMUTIL"; then
14102  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
14103else
14104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14105for as_dir in $PATH
14106do
14107  IFS=$as_save_IFS
14108  test -z "$as_dir" && as_dir=.
14109    for ac_exec_ext in '' $ac_executable_extensions; do
14110  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14111    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
14112    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14113    break 2
14114  fi
14115done
14116  done
14117IFS=$as_save_IFS
14118
14119fi
14120fi
14121ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
14122if test -n "$ac_ct_DSYMUTIL"; then
14123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
14124$as_echo "$ac_ct_DSYMUTIL" >&6; }
14125else
14126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127$as_echo "no" >&6; }
14128fi
14129
14130  if test "x$ac_ct_DSYMUTIL" = x; then
14131    DSYMUTIL=":"
14132  else
14133    case $cross_compiling:$ac_tool_warned in
14134yes:)
14135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14137ac_tool_warned=yes ;;
14138esac
14139    DSYMUTIL=$ac_ct_DSYMUTIL
14140  fi
14141else
14142  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
14143fi
14144
14145    if test -n "$ac_tool_prefix"; then
14146  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
14147set dummy ${ac_tool_prefix}nmedit; ac_word=$2
14148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14149$as_echo_n "checking for $ac_word... " >&6; }
14150if ${ac_cv_prog_NMEDIT+:} false; then :
14151  $as_echo_n "(cached) " >&6
14152else
14153  if test -n "$NMEDIT"; then
14154  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
14155else
14156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14157for as_dir in $PATH
14158do
14159  IFS=$as_save_IFS
14160  test -z "$as_dir" && as_dir=.
14161    for ac_exec_ext in '' $ac_executable_extensions; do
14162  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14163    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
14164    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14165    break 2
14166  fi
14167done
14168  done
14169IFS=$as_save_IFS
14170
14171fi
14172fi
14173NMEDIT=$ac_cv_prog_NMEDIT
14174if test -n "$NMEDIT"; then
14175  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
14176$as_echo "$NMEDIT" >&6; }
14177else
14178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179$as_echo "no" >&6; }
14180fi
14181
14182
14183fi
14184if test -z "$ac_cv_prog_NMEDIT"; then
14185  ac_ct_NMEDIT=$NMEDIT
14186  # Extract the first word of "nmedit", so it can be a program name with args.
14187set dummy nmedit; ac_word=$2
14188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14189$as_echo_n "checking for $ac_word... " >&6; }
14190if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
14191  $as_echo_n "(cached) " >&6
14192else
14193  if test -n "$ac_ct_NMEDIT"; then
14194  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
14195else
14196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197for as_dir in $PATH
14198do
14199  IFS=$as_save_IFS
14200  test -z "$as_dir" && as_dir=.
14201    for ac_exec_ext in '' $ac_executable_extensions; do
14202  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203    ac_cv_prog_ac_ct_NMEDIT="nmedit"
14204    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14205    break 2
14206  fi
14207done
14208  done
14209IFS=$as_save_IFS
14210
14211fi
14212fi
14213ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
14214if test -n "$ac_ct_NMEDIT"; then
14215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
14216$as_echo "$ac_ct_NMEDIT" >&6; }
14217else
14218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14219$as_echo "no" >&6; }
14220fi
14221
14222  if test "x$ac_ct_NMEDIT" = x; then
14223    NMEDIT=":"
14224  else
14225    case $cross_compiling:$ac_tool_warned in
14226yes:)
14227{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14228$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14229ac_tool_warned=yes ;;
14230esac
14231    NMEDIT=$ac_ct_NMEDIT
14232  fi
14233else
14234  NMEDIT="$ac_cv_prog_NMEDIT"
14235fi
14236
14237    if test -n "$ac_tool_prefix"; then
14238  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
14239set dummy ${ac_tool_prefix}lipo; ac_word=$2
14240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14241$as_echo_n "checking for $ac_word... " >&6; }
14242if ${ac_cv_prog_LIPO+:} false; then :
14243  $as_echo_n "(cached) " >&6
14244else
14245  if test -n "$LIPO"; then
14246  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
14247else
14248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249for as_dir in $PATH
14250do
14251  IFS=$as_save_IFS
14252  test -z "$as_dir" && as_dir=.
14253    for ac_exec_ext in '' $ac_executable_extensions; do
14254  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14255    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
14256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14257    break 2
14258  fi
14259done
14260  done
14261IFS=$as_save_IFS
14262
14263fi
14264fi
14265LIPO=$ac_cv_prog_LIPO
14266if test -n "$LIPO"; then
14267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
14268$as_echo "$LIPO" >&6; }
14269else
14270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14271$as_echo "no" >&6; }
14272fi
14273
14274
14275fi
14276if test -z "$ac_cv_prog_LIPO"; then
14277  ac_ct_LIPO=$LIPO
14278  # Extract the first word of "lipo", so it can be a program name with args.
14279set dummy lipo; ac_word=$2
14280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14281$as_echo_n "checking for $ac_word... " >&6; }
14282if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
14283  $as_echo_n "(cached) " >&6
14284else
14285  if test -n "$ac_ct_LIPO"; then
14286  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
14287else
14288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289for as_dir in $PATH
14290do
14291  IFS=$as_save_IFS
14292  test -z "$as_dir" && as_dir=.
14293    for ac_exec_ext in '' $ac_executable_extensions; do
14294  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14295    ac_cv_prog_ac_ct_LIPO="lipo"
14296    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14297    break 2
14298  fi
14299done
14300  done
14301IFS=$as_save_IFS
14302
14303fi
14304fi
14305ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
14306if test -n "$ac_ct_LIPO"; then
14307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
14308$as_echo "$ac_ct_LIPO" >&6; }
14309else
14310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14311$as_echo "no" >&6; }
14312fi
14313
14314  if test "x$ac_ct_LIPO" = x; then
14315    LIPO=":"
14316  else
14317    case $cross_compiling:$ac_tool_warned in
14318yes:)
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14320$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14321ac_tool_warned=yes ;;
14322esac
14323    LIPO=$ac_ct_LIPO
14324  fi
14325else
14326  LIPO="$ac_cv_prog_LIPO"
14327fi
14328
14329    if test -n "$ac_tool_prefix"; then
14330  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
14331set dummy ${ac_tool_prefix}otool; ac_word=$2
14332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14333$as_echo_n "checking for $ac_word... " >&6; }
14334if ${ac_cv_prog_OTOOL+:} false; then :
14335  $as_echo_n "(cached) " >&6
14336else
14337  if test -n "$OTOOL"; then
14338  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
14339else
14340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14341for as_dir in $PATH
14342do
14343  IFS=$as_save_IFS
14344  test -z "$as_dir" && as_dir=.
14345    for ac_exec_ext in '' $ac_executable_extensions; do
14346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14347    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
14348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14349    break 2
14350  fi
14351done
14352  done
14353IFS=$as_save_IFS
14354
14355fi
14356fi
14357OTOOL=$ac_cv_prog_OTOOL
14358if test -n "$OTOOL"; then
14359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
14360$as_echo "$OTOOL" >&6; }
14361else
14362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14363$as_echo "no" >&6; }
14364fi
14365
14366
14367fi
14368if test -z "$ac_cv_prog_OTOOL"; then
14369  ac_ct_OTOOL=$OTOOL
14370  # Extract the first word of "otool", so it can be a program name with args.
14371set dummy otool; ac_word=$2
14372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14373$as_echo_n "checking for $ac_word... " >&6; }
14374if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
14375  $as_echo_n "(cached) " >&6
14376else
14377  if test -n "$ac_ct_OTOOL"; then
14378  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
14379else
14380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14381for as_dir in $PATH
14382do
14383  IFS=$as_save_IFS
14384  test -z "$as_dir" && as_dir=.
14385    for ac_exec_ext in '' $ac_executable_extensions; do
14386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14387    ac_cv_prog_ac_ct_OTOOL="otool"
14388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14389    break 2
14390  fi
14391done
14392  done
14393IFS=$as_save_IFS
14394
14395fi
14396fi
14397ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
14398if test -n "$ac_ct_OTOOL"; then
14399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
14400$as_echo "$ac_ct_OTOOL" >&6; }
14401else
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14403$as_echo "no" >&6; }
14404fi
14405
14406  if test "x$ac_ct_OTOOL" = x; then
14407    OTOOL=":"
14408  else
14409    case $cross_compiling:$ac_tool_warned in
14410yes:)
14411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14413ac_tool_warned=yes ;;
14414esac
14415    OTOOL=$ac_ct_OTOOL
14416  fi
14417else
14418  OTOOL="$ac_cv_prog_OTOOL"
14419fi
14420
14421    if test -n "$ac_tool_prefix"; then
14422  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
14423set dummy ${ac_tool_prefix}otool64; ac_word=$2
14424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14425$as_echo_n "checking for $ac_word... " >&6; }
14426if ${ac_cv_prog_OTOOL64+:} false; then :
14427  $as_echo_n "(cached) " >&6
14428else
14429  if test -n "$OTOOL64"; then
14430  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
14431else
14432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14433for as_dir in $PATH
14434do
14435  IFS=$as_save_IFS
14436  test -z "$as_dir" && as_dir=.
14437    for ac_exec_ext in '' $ac_executable_extensions; do
14438  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14439    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
14440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14441    break 2
14442  fi
14443done
14444  done
14445IFS=$as_save_IFS
14446
14447fi
14448fi
14449OTOOL64=$ac_cv_prog_OTOOL64
14450if test -n "$OTOOL64"; then
14451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
14452$as_echo "$OTOOL64" >&6; }
14453else
14454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455$as_echo "no" >&6; }
14456fi
14457
14458
14459fi
14460if test -z "$ac_cv_prog_OTOOL64"; then
14461  ac_ct_OTOOL64=$OTOOL64
14462  # Extract the first word of "otool64", so it can be a program name with args.
14463set dummy otool64; ac_word=$2
14464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14465$as_echo_n "checking for $ac_word... " >&6; }
14466if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
14467  $as_echo_n "(cached) " >&6
14468else
14469  if test -n "$ac_ct_OTOOL64"; then
14470  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
14471else
14472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14473for as_dir in $PATH
14474do
14475  IFS=$as_save_IFS
14476  test -z "$as_dir" && as_dir=.
14477    for ac_exec_ext in '' $ac_executable_extensions; do
14478  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14479    ac_cv_prog_ac_ct_OTOOL64="otool64"
14480    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14481    break 2
14482  fi
14483done
14484  done
14485IFS=$as_save_IFS
14486
14487fi
14488fi
14489ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
14490if test -n "$ac_ct_OTOOL64"; then
14491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
14492$as_echo "$ac_ct_OTOOL64" >&6; }
14493else
14494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14495$as_echo "no" >&6; }
14496fi
14497
14498  if test "x$ac_ct_OTOOL64" = x; then
14499    OTOOL64=":"
14500  else
14501    case $cross_compiling:$ac_tool_warned in
14502yes:)
14503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14505ac_tool_warned=yes ;;
14506esac
14507    OTOOL64=$ac_ct_OTOOL64
14508  fi
14509else
14510  OTOOL64="$ac_cv_prog_OTOOL64"
14511fi
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14540$as_echo_n "checking for -single_module linker flag... " >&6; }
14541if ${lt_cv_apple_cc_single_mod+:} false; then :
14542  $as_echo_n "(cached) " >&6
14543else
14544  lt_cv_apple_cc_single_mod=no
14545      if test -z "$LT_MULTI_MODULE"; then
14546	# By default we will add the -single_module flag. You can override
14547	# by either setting the environment variable LT_MULTI_MODULE
14548	# non-empty at configure time, or by adding -multi_module to the
14549	# link flags.
14550	rm -rf libconftest.dylib*
14551	echo "int foo(void){return 1;}" > conftest.c
14552	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14553-dynamiclib -Wl,-single_module conftest.c" >&5
14554	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14555	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14556        _lt_result=$?
14557	# If there is a non-empty error log, and "single_module"
14558	# appears in it, assume the flag caused a linker warning
14559        if test -s conftest.err && $GREP single_module conftest.err; then
14560	  cat conftest.err >&5
14561	# Otherwise, if the output was created with a 0 exit code from
14562	# the compiler, it worked.
14563	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
14564	  lt_cv_apple_cc_single_mod=yes
14565	else
14566	  cat conftest.err >&5
14567	fi
14568	rm -rf libconftest.dylib*
14569	rm -f conftest.*
14570      fi
14571fi
14572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14573$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14574
14575    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14576$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14577if ${lt_cv_ld_exported_symbols_list+:} false; then :
14578  $as_echo_n "(cached) " >&6
14579else
14580  lt_cv_ld_exported_symbols_list=no
14581      save_LDFLAGS=$LDFLAGS
14582      echo "_main" > conftest.sym
14583      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14584      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585/* end confdefs.h.  */
14586
14587int
14588main ()
14589{
14590
14591  ;
14592  return 0;
14593}
14594_ACEOF
14595if ac_fn_c_try_link "$LINENO"; then :
14596  lt_cv_ld_exported_symbols_list=yes
14597else
14598  lt_cv_ld_exported_symbols_list=no
14599fi
14600rm -f core conftest.err conftest.$ac_objext \
14601    conftest$ac_exeext conftest.$ac_ext
14602	LDFLAGS=$save_LDFLAGS
14603
14604fi
14605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14606$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14607
14608    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
14609$as_echo_n "checking for -force_load linker flag... " >&6; }
14610if ${lt_cv_ld_force_load+:} false; then :
14611  $as_echo_n "(cached) " >&6
14612else
14613  lt_cv_ld_force_load=no
14614      cat > conftest.c << _LT_EOF
14615int forced_loaded() { return 2;}
14616_LT_EOF
14617      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
14618      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
14619      echo "$AR cru libconftest.a conftest.o" >&5
14620      $AR cru libconftest.a conftest.o 2>&5
14621      echo "$RANLIB libconftest.a" >&5
14622      $RANLIB libconftest.a 2>&5
14623      cat > conftest.c << _LT_EOF
14624int main() { return 0;}
14625_LT_EOF
14626      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
14627      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
14628      _lt_result=$?
14629      if test -s conftest.err && $GREP force_load conftest.err; then
14630	cat conftest.err >&5
14631      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
14632	lt_cv_ld_force_load=yes
14633      else
14634	cat conftest.err >&5
14635      fi
14636        rm -f conftest.err libconftest.a conftest conftest.c
14637        rm -rf conftest.dSYM
14638
14639fi
14640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
14641$as_echo "$lt_cv_ld_force_load" >&6; }
14642    case $host_os in
14643    rhapsody* | darwin1.[012])
14644      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
14645    darwin1.*)
14646      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14647    darwin*) # darwin 5.x on
14648      # if running on 10.5 or later, the deployment target defaults
14649      # to the OS version, if on x86, and 10.4, the deployment
14650      # target defaults to 10.4. Don't you love it?
14651      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14652	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14653	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14654	10.[012][,.]*)
14655	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
14656	10.*)
14657	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
14658      esac
14659    ;;
14660  esac
14661    if test yes = "$lt_cv_apple_cc_single_mod"; then
14662      _lt_dar_single_mod='$single_module'
14663    fi
14664    if test yes = "$lt_cv_ld_exported_symbols_list"; then
14665      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
14666    else
14667      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
14668    fi
14669    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
14670      _lt_dsymutil='~$DSYMUTIL $lib || :'
14671    else
14672      _lt_dsymutil=
14673    fi
14674    ;;
14675  esac
14676
14677# func_munge_path_list VARIABLE PATH
14678# -----------------------------------
14679# VARIABLE is name of variable containing _space_ separated list of
14680# directories to be munged by the contents of PATH, which is string
14681# having a format:
14682# "DIR[:DIR]:"
14683#       string "DIR[ DIR]" will be prepended to VARIABLE
14684# ":DIR[:DIR]"
14685#       string "DIR[ DIR]" will be appended to VARIABLE
14686# "DIRP[:DIRP]::[DIRA:]DIRA"
14687#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14688#       "DIRA[ DIRA]" will be appended to VARIABLE
14689# "DIR[:DIR]"
14690#       VARIABLE will be replaced by "DIR[ DIR]"
14691func_munge_path_list ()
14692{
14693    case x$2 in
14694    x)
14695        ;;
14696    *:)
14697        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14698        ;;
14699    x:*)
14700        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14701        ;;
14702    *::*)
14703        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14704        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14705        ;;
14706    *)
14707        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14708        ;;
14709    esac
14710}
14711
14712for ac_header in dlfcn.h
14713do :
14714  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14715"
14716if test "x$ac_cv_header_dlfcn_h" = xyes; then :
14717  cat >>confdefs.h <<_ACEOF
14718#define HAVE_DLFCN_H 1
14719_ACEOF
14720
14721fi
14722
14723done
14724
14725
14726
14727
14728func_stripname_cnf ()
14729{
14730  case $2 in
14731  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
14732  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
14733  esac
14734} # func_stripname_cnf
14735
14736
14737
14738
14739
14740# Set options
14741enable_win32_dll=yes
14742
14743case $host in
14744*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
14745  if test -n "$ac_tool_prefix"; then
14746  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
14747set dummy ${ac_tool_prefix}as; ac_word=$2
14748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14749$as_echo_n "checking for $ac_word... " >&6; }
14750if ${ac_cv_prog_AS+:} false; then :
14751  $as_echo_n "(cached) " >&6
14752else
14753  if test -n "$AS"; then
14754  ac_cv_prog_AS="$AS" # Let the user override the test.
14755else
14756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14757for as_dir in $PATH
14758do
14759  IFS=$as_save_IFS
14760  test -z "$as_dir" && as_dir=.
14761    for ac_exec_ext in '' $ac_executable_extensions; do
14762  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14763    ac_cv_prog_AS="${ac_tool_prefix}as"
14764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14765    break 2
14766  fi
14767done
14768  done
14769IFS=$as_save_IFS
14770
14771fi
14772fi
14773AS=$ac_cv_prog_AS
14774if test -n "$AS"; then
14775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
14776$as_echo "$AS" >&6; }
14777else
14778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14779$as_echo "no" >&6; }
14780fi
14781
14782
14783fi
14784if test -z "$ac_cv_prog_AS"; then
14785  ac_ct_AS=$AS
14786  # Extract the first word of "as", so it can be a program name with args.
14787set dummy as; ac_word=$2
14788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14789$as_echo_n "checking for $ac_word... " >&6; }
14790if ${ac_cv_prog_ac_ct_AS+:} false; then :
14791  $as_echo_n "(cached) " >&6
14792else
14793  if test -n "$ac_ct_AS"; then
14794  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
14795else
14796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797for as_dir in $PATH
14798do
14799  IFS=$as_save_IFS
14800  test -z "$as_dir" && as_dir=.
14801    for ac_exec_ext in '' $ac_executable_extensions; do
14802  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14803    ac_cv_prog_ac_ct_AS="as"
14804    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14805    break 2
14806  fi
14807done
14808  done
14809IFS=$as_save_IFS
14810
14811fi
14812fi
14813ac_ct_AS=$ac_cv_prog_ac_ct_AS
14814if test -n "$ac_ct_AS"; then
14815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
14816$as_echo "$ac_ct_AS" >&6; }
14817else
14818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14819$as_echo "no" >&6; }
14820fi
14821
14822  if test "x$ac_ct_AS" = x; then
14823    AS="false"
14824  else
14825    case $cross_compiling:$ac_tool_warned in
14826yes:)
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14828$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14829ac_tool_warned=yes ;;
14830esac
14831    AS=$ac_ct_AS
14832  fi
14833else
14834  AS="$ac_cv_prog_AS"
14835fi
14836
14837  if test -n "$ac_tool_prefix"; then
14838  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
14839set dummy ${ac_tool_prefix}dlltool; ac_word=$2
14840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14841$as_echo_n "checking for $ac_word... " >&6; }
14842if ${ac_cv_prog_DLLTOOL+:} false; then :
14843  $as_echo_n "(cached) " >&6
14844else
14845  if test -n "$DLLTOOL"; then
14846  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14847else
14848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14849for as_dir in $PATH
14850do
14851  IFS=$as_save_IFS
14852  test -z "$as_dir" && as_dir=.
14853    for ac_exec_ext in '' $ac_executable_extensions; do
14854  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14855    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
14856    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14857    break 2
14858  fi
14859done
14860  done
14861IFS=$as_save_IFS
14862
14863fi
14864fi
14865DLLTOOL=$ac_cv_prog_DLLTOOL
14866if test -n "$DLLTOOL"; then
14867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
14868$as_echo "$DLLTOOL" >&6; }
14869else
14870  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14871$as_echo "no" >&6; }
14872fi
14873
14874
14875fi
14876if test -z "$ac_cv_prog_DLLTOOL"; then
14877  ac_ct_DLLTOOL=$DLLTOOL
14878  # Extract the first word of "dlltool", so it can be a program name with args.
14879set dummy dlltool; ac_word=$2
14880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14881$as_echo_n "checking for $ac_word... " >&6; }
14882if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
14883  $as_echo_n "(cached) " >&6
14884else
14885  if test -n "$ac_ct_DLLTOOL"; then
14886  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
14887else
14888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889for as_dir in $PATH
14890do
14891  IFS=$as_save_IFS
14892  test -z "$as_dir" && as_dir=.
14893    for ac_exec_ext in '' $ac_executable_extensions; do
14894  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14895    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
14896    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14897    break 2
14898  fi
14899done
14900  done
14901IFS=$as_save_IFS
14902
14903fi
14904fi
14905ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
14906if test -n "$ac_ct_DLLTOOL"; then
14907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
14908$as_echo "$ac_ct_DLLTOOL" >&6; }
14909else
14910  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14911$as_echo "no" >&6; }
14912fi
14913
14914  if test "x$ac_ct_DLLTOOL" = x; then
14915    DLLTOOL="false"
14916  else
14917    case $cross_compiling:$ac_tool_warned in
14918yes:)
14919{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14920$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14921ac_tool_warned=yes ;;
14922esac
14923    DLLTOOL=$ac_ct_DLLTOOL
14924  fi
14925else
14926  DLLTOOL="$ac_cv_prog_DLLTOOL"
14927fi
14928
14929  if test -n "$ac_tool_prefix"; then
14930  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
14931set dummy ${ac_tool_prefix}objdump; ac_word=$2
14932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14933$as_echo_n "checking for $ac_word... " >&6; }
14934if ${ac_cv_prog_OBJDUMP+:} false; then :
14935  $as_echo_n "(cached) " >&6
14936else
14937  if test -n "$OBJDUMP"; then
14938  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
14939else
14940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14941for as_dir in $PATH
14942do
14943  IFS=$as_save_IFS
14944  test -z "$as_dir" && as_dir=.
14945    for ac_exec_ext in '' $ac_executable_extensions; do
14946  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14947    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
14948    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14949    break 2
14950  fi
14951done
14952  done
14953IFS=$as_save_IFS
14954
14955fi
14956fi
14957OBJDUMP=$ac_cv_prog_OBJDUMP
14958if test -n "$OBJDUMP"; then
14959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
14960$as_echo "$OBJDUMP" >&6; }
14961else
14962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963$as_echo "no" >&6; }
14964fi
14965
14966
14967fi
14968if test -z "$ac_cv_prog_OBJDUMP"; then
14969  ac_ct_OBJDUMP=$OBJDUMP
14970  # Extract the first word of "objdump", so it can be a program name with args.
14971set dummy objdump; ac_word=$2
14972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14973$as_echo_n "checking for $ac_word... " >&6; }
14974if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
14975  $as_echo_n "(cached) " >&6
14976else
14977  if test -n "$ac_ct_OBJDUMP"; then
14978  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
14979else
14980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14981for as_dir in $PATH
14982do
14983  IFS=$as_save_IFS
14984  test -z "$as_dir" && as_dir=.
14985    for ac_exec_ext in '' $ac_executable_extensions; do
14986  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14987    ac_cv_prog_ac_ct_OBJDUMP="objdump"
14988    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14989    break 2
14990  fi
14991done
14992  done
14993IFS=$as_save_IFS
14994
14995fi
14996fi
14997ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
14998if test -n "$ac_ct_OBJDUMP"; then
14999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
15000$as_echo "$ac_ct_OBJDUMP" >&6; }
15001else
15002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003$as_echo "no" >&6; }
15004fi
15005
15006  if test "x$ac_ct_OBJDUMP" = x; then
15007    OBJDUMP="false"
15008  else
15009    case $cross_compiling:$ac_tool_warned in
15010yes:)
15011{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15012$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15013ac_tool_warned=yes ;;
15014esac
15015    OBJDUMP=$ac_ct_OBJDUMP
15016  fi
15017else
15018  OBJDUMP="$ac_cv_prog_OBJDUMP"
15019fi
15020
15021  ;;
15022esac
15023
15024test -z "$AS" && AS=as
15025
15026
15027
15028
15029
15030test -z "$DLLTOOL" && DLLTOOL=dlltool
15031
15032
15033
15034
15035
15036test -z "$OBJDUMP" && OBJDUMP=objdump
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046            # Check whether --enable-shared was given.
15047if test "${enable_shared+set}" = set; then :
15048  enableval=$enable_shared; p=${PACKAGE-default}
15049    case $enableval in
15050    yes) enable_shared=yes ;;
15051    no) enable_shared=no ;;
15052    *)
15053      enable_shared=no
15054      # Look at the argument we got.  We use all the common list separators.
15055      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15056      for pkg in $enableval; do
15057	IFS=$lt_save_ifs
15058	if test "X$pkg" = "X$p"; then
15059	  enable_shared=yes
15060	fi
15061      done
15062      IFS=$lt_save_ifs
15063      ;;
15064    esac
15065else
15066  enable_shared=yes
15067fi
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077  # Check whether --enable-static was given.
15078if test "${enable_static+set}" = set; then :
15079  enableval=$enable_static; p=${PACKAGE-default}
15080    case $enableval in
15081    yes) enable_static=yes ;;
15082    no) enable_static=no ;;
15083    *)
15084     enable_static=no
15085      # Look at the argument we got.  We use all the common list separators.
15086      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15087      for pkg in $enableval; do
15088	IFS=$lt_save_ifs
15089	if test "X$pkg" = "X$p"; then
15090	  enable_static=yes
15091	fi
15092      done
15093      IFS=$lt_save_ifs
15094      ;;
15095    esac
15096else
15097  enable_static=yes
15098fi
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109# Check whether --with-pic was given.
15110if test "${with_pic+set}" = set; then :
15111  withval=$with_pic; lt_p=${PACKAGE-default}
15112    case $withval in
15113    yes|no) pic_mode=$withval ;;
15114    *)
15115      pic_mode=default
15116      # Look at the argument we got.  We use all the common list separators.
15117      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15118      for lt_pkg in $withval; do
15119	IFS=$lt_save_ifs
15120	if test "X$lt_pkg" = "X$lt_p"; then
15121	  pic_mode=yes
15122	fi
15123      done
15124      IFS=$lt_save_ifs
15125      ;;
15126    esac
15127else
15128  pic_mode=default
15129fi
15130
15131
15132
15133
15134
15135
15136
15137
15138  # Check whether --enable-fast-install was given.
15139if test "${enable_fast_install+set}" = set; then :
15140  enableval=$enable_fast_install; p=${PACKAGE-default}
15141    case $enableval in
15142    yes) enable_fast_install=yes ;;
15143    no) enable_fast_install=no ;;
15144    *)
15145      enable_fast_install=no
15146      # Look at the argument we got.  We use all the common list separators.
15147      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
15148      for pkg in $enableval; do
15149	IFS=$lt_save_ifs
15150	if test "X$pkg" = "X$p"; then
15151	  enable_fast_install=yes
15152	fi
15153      done
15154      IFS=$lt_save_ifs
15155      ;;
15156    esac
15157else
15158  enable_fast_install=yes
15159fi
15160
15161
15162
15163
15164
15165
15166
15167
15168  shared_archive_member_spec=
15169case $host,$enable_shared in
15170power*-*-aix[5-9]*,yes)
15171  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
15172$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
15173
15174# Check whether --with-aix-soname was given.
15175if test "${with_aix_soname+set}" = set; then :
15176  withval=$with_aix_soname; case $withval in
15177    aix|svr4|both)
15178      ;;
15179    *)
15180      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
15181      ;;
15182    esac
15183    lt_cv_with_aix_soname=$with_aix_soname
15184else
15185  if ${lt_cv_with_aix_soname+:} false; then :
15186  $as_echo_n "(cached) " >&6
15187else
15188  lt_cv_with_aix_soname=aix
15189fi
15190
15191    with_aix_soname=$lt_cv_with_aix_soname
15192fi
15193
15194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
15195$as_echo "$with_aix_soname" >&6; }
15196  if test aix != "$with_aix_soname"; then
15197    # For the AIX way of multilib, we name the shared archive member
15198    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
15199    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
15200    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
15201    # the AIX toolchain works better with OBJECT_MODE set (default 32).
15202    if test 64 = "${OBJECT_MODE-32}"; then
15203      shared_archive_member_spec=shr_64
15204    else
15205      shared_archive_member_spec=shr
15206    fi
15207  fi
15208  ;;
15209*)
15210  with_aix_soname=aix
15211  ;;
15212esac
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223# This can be used to rebuild libtool when needed
15224LIBTOOL_DEPS=$ltmain
15225
15226# Always use our own libtool.
15227LIBTOOL='$(SHELL) $(top_builddir)/libtool'
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258test -z "$LN_S" && LN_S="ln -s"
15259
15260
15261
15262
15263
15264
15265
15266
15267
15268
15269
15270
15271
15272
15273if test -n "${ZSH_VERSION+set}"; then
15274   setopt NO_GLOB_SUBST
15275fi
15276
15277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
15278$as_echo_n "checking for objdir... " >&6; }
15279if ${lt_cv_objdir+:} false; then :
15280  $as_echo_n "(cached) " >&6
15281else
15282  rm -f .libs 2>/dev/null
15283mkdir .libs 2>/dev/null
15284if test -d .libs; then
15285  lt_cv_objdir=.libs
15286else
15287  # MS-DOS does not allow filenames that begin with a dot.
15288  lt_cv_objdir=_libs
15289fi
15290rmdir .libs 2>/dev/null
15291fi
15292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
15293$as_echo "$lt_cv_objdir" >&6; }
15294objdir=$lt_cv_objdir
15295
15296
15297
15298
15299
15300cat >>confdefs.h <<_ACEOF
15301#define LT_OBJDIR "$lt_cv_objdir/"
15302_ACEOF
15303
15304
15305
15306
15307case $host_os in
15308aix3*)
15309  # AIX sometimes has problems with the GCC collect2 program.  For some
15310  # reason, if we set the COLLECT_NAMES environment variable, the problems
15311  # vanish in a puff of smoke.
15312  if test set != "${COLLECT_NAMES+set}"; then
15313    COLLECT_NAMES=
15314    export COLLECT_NAMES
15315  fi
15316  ;;
15317esac
15318
15319# Global variables:
15320ofile=libtool
15321can_build_shared=yes
15322
15323# All known linkers require a '.a' archive for static linking (except MSVC,
15324# which needs '.lib').
15325libext=a
15326
15327with_gnu_ld=$lt_cv_prog_gnu_ld
15328
15329old_CC=$CC
15330old_CFLAGS=$CFLAGS
15331
15332# Set sane defaults for various variables
15333test -z "$CC" && CC=cc
15334test -z "$LTCC" && LTCC=$CC
15335test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
15336test -z "$LD" && LD=ld
15337test -z "$ac_objext" && ac_objext=o
15338
15339func_cc_basename $compiler
15340cc_basename=$func_cc_basename_result
15341
15342
15343# Only perform the check for file, if the check method requires it
15344test -z "$MAGIC_CMD" && MAGIC_CMD=file
15345case $deplibs_check_method in
15346file_magic*)
15347  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15348    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15349$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15350if ${lt_cv_path_MAGIC_CMD+:} false; then :
15351  $as_echo_n "(cached) " >&6
15352else
15353  case $MAGIC_CMD in
15354[\\/*] |  ?:[\\/]*)
15355  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15356  ;;
15357*)
15358  lt_save_MAGIC_CMD=$MAGIC_CMD
15359  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15360  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15361  for ac_dir in $ac_dummy; do
15362    IFS=$lt_save_ifs
15363    test -z "$ac_dir" && ac_dir=.
15364    if test -f "$ac_dir/${ac_tool_prefix}file"; then
15365      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
15366      if test -n "$file_magic_test_file"; then
15367	case $deplibs_check_method in
15368	"file_magic "*)
15369	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15370	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15371	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15372	    $EGREP "$file_magic_regex" > /dev/null; then
15373	    :
15374	  else
15375	    cat <<_LT_EOF 1>&2
15376
15377*** Warning: the command libtool uses to detect shared libraries,
15378*** $file_magic_cmd, produces output that libtool cannot recognize.
15379*** The result is that libtool may fail to recognize shared libraries
15380*** as such.  This will affect the creation of libtool libraries that
15381*** depend on shared libraries, but programs linked with such libtool
15382*** libraries will work regardless of this problem.  Nevertheless, you
15383*** may want to report the problem to your system manager and/or to
15384*** bug-libtool@gnu.org
15385
15386_LT_EOF
15387	  fi ;;
15388	esac
15389      fi
15390      break
15391    fi
15392  done
15393  IFS=$lt_save_ifs
15394  MAGIC_CMD=$lt_save_MAGIC_CMD
15395  ;;
15396esac
15397fi
15398
15399MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15400if test -n "$MAGIC_CMD"; then
15401  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15402$as_echo "$MAGIC_CMD" >&6; }
15403else
15404  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15405$as_echo "no" >&6; }
15406fi
15407
15408
15409
15410
15411
15412if test -z "$lt_cv_path_MAGIC_CMD"; then
15413  if test -n "$ac_tool_prefix"; then
15414    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15415$as_echo_n "checking for file... " >&6; }
15416if ${lt_cv_path_MAGIC_CMD+:} false; then :
15417  $as_echo_n "(cached) " >&6
15418else
15419  case $MAGIC_CMD in
15420[\\/*] |  ?:[\\/]*)
15421  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
15422  ;;
15423*)
15424  lt_save_MAGIC_CMD=$MAGIC_CMD
15425  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15426  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15427  for ac_dir in $ac_dummy; do
15428    IFS=$lt_save_ifs
15429    test -z "$ac_dir" && ac_dir=.
15430    if test -f "$ac_dir/file"; then
15431      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
15432      if test -n "$file_magic_test_file"; then
15433	case $deplibs_check_method in
15434	"file_magic "*)
15435	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15436	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15437	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15438	    $EGREP "$file_magic_regex" > /dev/null; then
15439	    :
15440	  else
15441	    cat <<_LT_EOF 1>&2
15442
15443*** Warning: the command libtool uses to detect shared libraries,
15444*** $file_magic_cmd, produces output that libtool cannot recognize.
15445*** The result is that libtool may fail to recognize shared libraries
15446*** as such.  This will affect the creation of libtool libraries that
15447*** depend on shared libraries, but programs linked with such libtool
15448*** libraries will work regardless of this problem.  Nevertheless, you
15449*** may want to report the problem to your system manager and/or to
15450*** bug-libtool@gnu.org
15451
15452_LT_EOF
15453	  fi ;;
15454	esac
15455      fi
15456      break
15457    fi
15458  done
15459  IFS=$lt_save_ifs
15460  MAGIC_CMD=$lt_save_MAGIC_CMD
15461  ;;
15462esac
15463fi
15464
15465MAGIC_CMD=$lt_cv_path_MAGIC_CMD
15466if test -n "$MAGIC_CMD"; then
15467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15468$as_echo "$MAGIC_CMD" >&6; }
15469else
15470  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15471$as_echo "no" >&6; }
15472fi
15473
15474
15475  else
15476    MAGIC_CMD=:
15477  fi
15478fi
15479
15480  fi
15481  ;;
15482esac
15483
15484# Use C for the default configuration in the libtool script
15485
15486lt_save_CC=$CC
15487ac_ext=c
15488ac_cpp='$CPP $CPPFLAGS'
15489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15491ac_compiler_gnu=$ac_cv_c_compiler_gnu
15492
15493
15494# Source file extension for C test sources.
15495ac_ext=c
15496
15497# Object file extension for compiled C test sources.
15498objext=o
15499objext=$objext
15500
15501# Code to be used in simple compile tests
15502lt_simple_compile_test_code="int some_variable = 0;"
15503
15504# Code to be used in simple link tests
15505lt_simple_link_test_code='int main(){return(0);}'
15506
15507
15508
15509
15510
15511
15512
15513# If no C compiler was specified, use CC.
15514LTCC=${LTCC-"$CC"}
15515
15516# If no C compiler flags were specified, use CFLAGS.
15517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15518
15519# Allow CC to be a program name with arguments.
15520compiler=$CC
15521
15522# Save the default compiler, since it gets overwritten when the other
15523# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15524compiler_DEFAULT=$CC
15525
15526# save warnings/boilerplate of simple test code
15527ac_outfile=conftest.$ac_objext
15528echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15530_lt_compiler_boilerplate=`cat conftest.err`
15531$RM conftest*
15532
15533ac_outfile=conftest.$ac_objext
15534echo "$lt_simple_link_test_code" >conftest.$ac_ext
15535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15536_lt_linker_boilerplate=`cat conftest.err`
15537$RM -r conftest*
15538
15539
15540## CAVEAT EMPTOR:
15541## There is no encapsulation within the following macros, do not change
15542## the running order or otherwise move them around unless you know exactly
15543## what you are doing...
15544if test -n "$compiler"; then
15545
15546lt_prog_compiler_no_builtin_flag=
15547
15548if test yes = "$GCC"; then
15549  case $cc_basename in
15550  nvcc*)
15551    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
15552  *)
15553    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
15554  esac
15555
15556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15557$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15558if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15559  $as_echo_n "(cached) " >&6
15560else
15561  lt_cv_prog_compiler_rtti_exceptions=no
15562   ac_outfile=conftest.$ac_objext
15563   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15564   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
15565   # Insert the option either (1) after the last *FLAGS variable, or
15566   # (2) before a word containing "conftest.", or (3) at the end.
15567   # Note that $ac_compile itself does not contain backslashes and begins
15568   # with a dollar sign (not a hyphen), so the echo should work correctly.
15569   # The option is referenced via a variable to avoid confusing sed.
15570   lt_compile=`echo "$ac_compile" | $SED \
15571   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15572   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15573   -e 's:$: $lt_compiler_flag:'`
15574   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15575   (eval "$lt_compile" 2>conftest.err)
15576   ac_status=$?
15577   cat conftest.err >&5
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   if (exit $ac_status) && test -s "$ac_outfile"; then
15580     # The compiler can only warn and ignore the option if not recognized
15581     # So say no if there are warnings other than the usual output.
15582     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15583     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15584     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15585       lt_cv_prog_compiler_rtti_exceptions=yes
15586     fi
15587   fi
15588   $RM conftest*
15589
15590fi
15591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15592$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15593
15594if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
15595    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15596else
15597    :
15598fi
15599
15600fi
15601
15602
15603
15604
15605
15606
15607  lt_prog_compiler_wl=
15608lt_prog_compiler_pic=
15609lt_prog_compiler_static=
15610
15611
15612  if test yes = "$GCC"; then
15613    lt_prog_compiler_wl='-Wl,'
15614    lt_prog_compiler_static='-static'
15615
15616    case $host_os in
15617      aix*)
15618      # All AIX code is PIC.
15619      if test ia64 = "$host_cpu"; then
15620	# AIX 5 now supports IA64 processor
15621	lt_prog_compiler_static='-Bstatic'
15622      fi
15623      lt_prog_compiler_pic='-fPIC'
15624      ;;
15625
15626    amigaos*)
15627      case $host_cpu in
15628      powerpc)
15629            # see comment about AmigaOS4 .so support
15630            lt_prog_compiler_pic='-fPIC'
15631        ;;
15632      m68k)
15633            # FIXME: we need at least 68020 code to build shared libraries, but
15634            # adding the '-m68020' flag to GCC prevents building anything better,
15635            # like '-m68040'.
15636            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15637        ;;
15638      esac
15639      ;;
15640
15641    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15642      # PIC is the default for these OSes.
15643      ;;
15644
15645    mingw* | cygwin* | pw32* | os2* | cegcc*)
15646      # This hack is so that the source file can tell whether it is being
15647      # built for inclusion in a dll (and should export symbols for example).
15648      # Although the cygwin gcc ignores -fPIC, still need this for old-style
15649      # (--disable-auto-import) libraries
15650      lt_prog_compiler_pic='-DDLL_EXPORT'
15651      case $host_os in
15652      os2*)
15653	lt_prog_compiler_static='$wl-static'
15654	;;
15655      esac
15656      ;;
15657
15658    darwin* | rhapsody*)
15659      # PIC is the default on this platform
15660      # Common symbols not allowed in MH_DYLIB files
15661      lt_prog_compiler_pic='-fno-common'
15662      ;;
15663
15664    haiku*)
15665      # PIC is the default for Haiku.
15666      # The "-static" flag exists, but is broken.
15667      lt_prog_compiler_static=
15668      ;;
15669
15670    hpux*)
15671      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15672      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15673      # sets the default TLS model and affects inlining.
15674      case $host_cpu in
15675      hppa*64*)
15676	# +Z the default
15677	;;
15678      *)
15679	lt_prog_compiler_pic='-fPIC'
15680	;;
15681      esac
15682      ;;
15683
15684    interix[3-9]*)
15685      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15686      # Instead, we relocate shared libraries at runtime.
15687      ;;
15688
15689    msdosdjgpp*)
15690      # Just because we use GCC doesn't mean we suddenly get shared libraries
15691      # on systems that don't support them.
15692      lt_prog_compiler_can_build_shared=no
15693      enable_shared=no
15694      ;;
15695
15696    *nto* | *qnx*)
15697      # QNX uses GNU C++, but need to define -shared option too, otherwise
15698      # it will coredump.
15699      lt_prog_compiler_pic='-fPIC -shared'
15700      ;;
15701
15702    sysv4*MP*)
15703      if test -d /usr/nec; then
15704	lt_prog_compiler_pic=-Kconform_pic
15705      fi
15706      ;;
15707
15708    *)
15709      lt_prog_compiler_pic='-fPIC'
15710      ;;
15711    esac
15712
15713    case $cc_basename in
15714    nvcc*) # Cuda Compiler Driver 2.2
15715      lt_prog_compiler_wl='-Xlinker '
15716      if test -n "$lt_prog_compiler_pic"; then
15717        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
15718      fi
15719      ;;
15720    esac
15721  else
15722    # PORTME Check for flag to pass linker flags through the system compiler.
15723    case $host_os in
15724    aix*)
15725      lt_prog_compiler_wl='-Wl,'
15726      if test ia64 = "$host_cpu"; then
15727	# AIX 5 now supports IA64 processor
15728	lt_prog_compiler_static='-Bstatic'
15729      else
15730	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15731      fi
15732      ;;
15733
15734    darwin* | rhapsody*)
15735      # PIC is the default on this platform
15736      # Common symbols not allowed in MH_DYLIB files
15737      lt_prog_compiler_pic='-fno-common'
15738      case $cc_basename in
15739      nagfor*)
15740        # NAG Fortran compiler
15741        lt_prog_compiler_wl='-Wl,-Wl,,'
15742        lt_prog_compiler_pic='-PIC'
15743        lt_prog_compiler_static='-Bstatic'
15744        ;;
15745      esac
15746      ;;
15747
15748    mingw* | cygwin* | pw32* | os2* | cegcc*)
15749      # This hack is so that the source file can tell whether it is being
15750      # built for inclusion in a dll (and should export symbols for example).
15751      lt_prog_compiler_pic='-DDLL_EXPORT'
15752      case $host_os in
15753      os2*)
15754	lt_prog_compiler_static='$wl-static'
15755	;;
15756      esac
15757      ;;
15758
15759    hpux9* | hpux10* | hpux11*)
15760      lt_prog_compiler_wl='-Wl,'
15761      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15762      # not for PA HP-UX.
15763      case $host_cpu in
15764      hppa*64*|ia64*)
15765	# +Z the default
15766	;;
15767      *)
15768	lt_prog_compiler_pic='+Z'
15769	;;
15770      esac
15771      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15772      lt_prog_compiler_static='$wl-a ${wl}archive'
15773      ;;
15774
15775    irix5* | irix6* | nonstopux*)
15776      lt_prog_compiler_wl='-Wl,'
15777      # PIC (with -KPIC) is the default.
15778      lt_prog_compiler_static='-non_shared'
15779      ;;
15780
15781    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15782      case $cc_basename in
15783      # old Intel for x86_64, which still supported -KPIC.
15784      ecc*)
15785	lt_prog_compiler_wl='-Wl,'
15786	lt_prog_compiler_pic='-KPIC'
15787	lt_prog_compiler_static='-static'
15788        ;;
15789      # icc used to be incompatible with GCC.
15790      # ICC 10 doesn't accept -KPIC any more.
15791      icc* | ifort*)
15792	lt_prog_compiler_wl='-Wl,'
15793	lt_prog_compiler_pic='-fPIC'
15794	lt_prog_compiler_static='-static'
15795        ;;
15796      # Lahey Fortran 8.1.
15797      lf95*)
15798	lt_prog_compiler_wl='-Wl,'
15799	lt_prog_compiler_pic='--shared'
15800	lt_prog_compiler_static='--static'
15801	;;
15802      nagfor*)
15803	# NAG Fortran compiler
15804	lt_prog_compiler_wl='-Wl,-Wl,,'
15805	lt_prog_compiler_pic='-PIC'
15806	lt_prog_compiler_static='-Bstatic'
15807	;;
15808      tcc*)
15809	# Fabrice Bellard et al's Tiny C Compiler
15810	lt_prog_compiler_wl='-Wl,'
15811	lt_prog_compiler_pic='-fPIC'
15812	lt_prog_compiler_static='-static'
15813	;;
15814      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
15815        # Portland Group compilers (*not* the Pentium gcc compiler,
15816	# which looks to be a dead project)
15817	lt_prog_compiler_wl='-Wl,'
15818	lt_prog_compiler_pic='-fpic'
15819	lt_prog_compiler_static='-Bstatic'
15820        ;;
15821      ccc*)
15822        lt_prog_compiler_wl='-Wl,'
15823        # All Alpha code is PIC.
15824        lt_prog_compiler_static='-non_shared'
15825        ;;
15826      xl* | bgxl* | bgf* | mpixl*)
15827	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
15828	lt_prog_compiler_wl='-Wl,'
15829	lt_prog_compiler_pic='-qpic'
15830	lt_prog_compiler_static='-qstaticlink'
15831	;;
15832      *)
15833	case `$CC -V 2>&1 | sed 5q` in
15834	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
15835	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
15836	  lt_prog_compiler_pic='-KPIC'
15837	  lt_prog_compiler_static='-Bstatic'
15838	  lt_prog_compiler_wl=''
15839	  ;;
15840	*Sun\ F* | *Sun*Fortran*)
15841	  lt_prog_compiler_pic='-KPIC'
15842	  lt_prog_compiler_static='-Bstatic'
15843	  lt_prog_compiler_wl='-Qoption ld '
15844	  ;;
15845	*Sun\ C*)
15846	  # Sun C 5.9
15847	  lt_prog_compiler_pic='-KPIC'
15848	  lt_prog_compiler_static='-Bstatic'
15849	  lt_prog_compiler_wl='-Wl,'
15850	  ;;
15851        *Intel*\ [CF]*Compiler*)
15852	  lt_prog_compiler_wl='-Wl,'
15853	  lt_prog_compiler_pic='-fPIC'
15854	  lt_prog_compiler_static='-static'
15855	  ;;
15856	*Portland\ Group*)
15857	  lt_prog_compiler_wl='-Wl,'
15858	  lt_prog_compiler_pic='-fpic'
15859	  lt_prog_compiler_static='-Bstatic'
15860	  ;;
15861	esac
15862	;;
15863      esac
15864      ;;
15865
15866    newsos6)
15867      lt_prog_compiler_pic='-KPIC'
15868      lt_prog_compiler_static='-Bstatic'
15869      ;;
15870
15871    *nto* | *qnx*)
15872      # QNX uses GNU C++, but need to define -shared option too, otherwise
15873      # it will coredump.
15874      lt_prog_compiler_pic='-fPIC -shared'
15875      ;;
15876
15877    osf3* | osf4* | osf5*)
15878      lt_prog_compiler_wl='-Wl,'
15879      # All OSF/1 code is PIC.
15880      lt_prog_compiler_static='-non_shared'
15881      ;;
15882
15883    rdos*)
15884      lt_prog_compiler_static='-non_shared'
15885      ;;
15886
15887    solaris*)
15888      lt_prog_compiler_pic='-KPIC'
15889      lt_prog_compiler_static='-Bstatic'
15890      case $cc_basename in
15891      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
15892	lt_prog_compiler_wl='-Qoption ld ';;
15893      *)
15894	lt_prog_compiler_wl='-Wl,';;
15895      esac
15896      ;;
15897
15898    sunos4*)
15899      lt_prog_compiler_wl='-Qoption ld '
15900      lt_prog_compiler_pic='-PIC'
15901      lt_prog_compiler_static='-Bstatic'
15902      ;;
15903
15904    sysv4 | sysv4.2uw2* | sysv4.3*)
15905      lt_prog_compiler_wl='-Wl,'
15906      lt_prog_compiler_pic='-KPIC'
15907      lt_prog_compiler_static='-Bstatic'
15908      ;;
15909
15910    sysv4*MP*)
15911      if test -d /usr/nec; then
15912	lt_prog_compiler_pic='-Kconform_pic'
15913	lt_prog_compiler_static='-Bstatic'
15914      fi
15915      ;;
15916
15917    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15918      lt_prog_compiler_wl='-Wl,'
15919      lt_prog_compiler_pic='-KPIC'
15920      lt_prog_compiler_static='-Bstatic'
15921      ;;
15922
15923    unicos*)
15924      lt_prog_compiler_wl='-Wl,'
15925      lt_prog_compiler_can_build_shared=no
15926      ;;
15927
15928    uts4*)
15929      lt_prog_compiler_pic='-pic'
15930      lt_prog_compiler_static='-Bstatic'
15931      ;;
15932
15933    *)
15934      lt_prog_compiler_can_build_shared=no
15935      ;;
15936    esac
15937  fi
15938
15939case $host_os in
15940  # For platforms that do not support PIC, -DPIC is meaningless:
15941  *djgpp*)
15942    lt_prog_compiler_pic=
15943    ;;
15944  *)
15945    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15946    ;;
15947esac
15948
15949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15950$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15951if ${lt_cv_prog_compiler_pic+:} false; then :
15952  $as_echo_n "(cached) " >&6
15953else
15954  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
15955fi
15956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
15957$as_echo "$lt_cv_prog_compiler_pic" >&6; }
15958lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
15959
15960#
15961# Check to make sure the PIC flag actually works.
15962#
15963if test -n "$lt_prog_compiler_pic"; then
15964  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15965$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15966if ${lt_cv_prog_compiler_pic_works+:} false; then :
15967  $as_echo_n "(cached) " >&6
15968else
15969  lt_cv_prog_compiler_pic_works=no
15970   ac_outfile=conftest.$ac_objext
15971   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15972   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
15973   # Insert the option either (1) after the last *FLAGS variable, or
15974   # (2) before a word containing "conftest.", or (3) at the end.
15975   # Note that $ac_compile itself does not contain backslashes and begins
15976   # with a dollar sign (not a hyphen), so the echo should work correctly.
15977   # The option is referenced via a variable to avoid confusing sed.
15978   lt_compile=`echo "$ac_compile" | $SED \
15979   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15980   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15981   -e 's:$: $lt_compiler_flag:'`
15982   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15983   (eval "$lt_compile" 2>conftest.err)
15984   ac_status=$?
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   if (exit $ac_status) && test -s "$ac_outfile"; then
15988     # The compiler can only warn and ignore the option if not recognized
15989     # So say no if there are warnings other than the usual output.
15990     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15991     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15992     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15993       lt_cv_prog_compiler_pic_works=yes
15994     fi
15995   fi
15996   $RM conftest*
15997
15998fi
15999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
16000$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
16001
16002if test yes = "$lt_cv_prog_compiler_pic_works"; then
16003    case $lt_prog_compiler_pic in
16004     "" | " "*) ;;
16005     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
16006     esac
16007else
16008    lt_prog_compiler_pic=
16009     lt_prog_compiler_can_build_shared=no
16010fi
16011
16012fi
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024#
16025# Check to make sure the static flag actually works.
16026#
16027wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
16028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16029$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16030if ${lt_cv_prog_compiler_static_works+:} false; then :
16031  $as_echo_n "(cached) " >&6
16032else
16033  lt_cv_prog_compiler_static_works=no
16034   save_LDFLAGS=$LDFLAGS
16035   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16036   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16037   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16038     # The linker can only warn and ignore the option if not recognized
16039     # So say no if there are warnings
16040     if test -s conftest.err; then
16041       # Append any errors to the config.log.
16042       cat conftest.err 1>&5
16043       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16044       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16045       if diff conftest.exp conftest.er2 >/dev/null; then
16046         lt_cv_prog_compiler_static_works=yes
16047       fi
16048     else
16049       lt_cv_prog_compiler_static_works=yes
16050     fi
16051   fi
16052   $RM -r conftest*
16053   LDFLAGS=$save_LDFLAGS
16054
16055fi
16056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
16057$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
16058
16059if test yes = "$lt_cv_prog_compiler_static_works"; then
16060    :
16061else
16062    lt_prog_compiler_static=
16063fi
16064
16065
16066
16067
16068
16069
16070
16071  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16072$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16073if ${lt_cv_prog_compiler_c_o+:} false; then :
16074  $as_echo_n "(cached) " >&6
16075else
16076  lt_cv_prog_compiler_c_o=no
16077   $RM -r conftest 2>/dev/null
16078   mkdir conftest
16079   cd conftest
16080   mkdir out
16081   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16082
16083   lt_compiler_flag="-o out/conftest2.$ac_objext"
16084   # Insert the option either (1) after the last *FLAGS variable, or
16085   # (2) before a word containing "conftest.", or (3) at the end.
16086   # Note that $ac_compile itself does not contain backslashes and begins
16087   # with a dollar sign (not a hyphen), so the echo should work correctly.
16088   lt_compile=`echo "$ac_compile" | $SED \
16089   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16090   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16091   -e 's:$: $lt_compiler_flag:'`
16092   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16093   (eval "$lt_compile" 2>out/conftest.err)
16094   ac_status=$?
16095   cat out/conftest.err >&5
16096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16098   then
16099     # The compiler can only warn and ignore the option if not recognized
16100     # So say no if there are warnings
16101     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16102     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16103     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16104       lt_cv_prog_compiler_c_o=yes
16105     fi
16106   fi
16107   chmod u+w . 2>&5
16108   $RM conftest*
16109   # SGI C++ compiler will create directory out/ii_files/ for
16110   # template instantiation
16111   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16112   $RM out/* && rmdir out
16113   cd ..
16114   $RM -r conftest
16115   $RM conftest*
16116
16117fi
16118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16119$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16120
16121
16122
16123
16124
16125
16126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16127$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16128if ${lt_cv_prog_compiler_c_o+:} false; then :
16129  $as_echo_n "(cached) " >&6
16130else
16131  lt_cv_prog_compiler_c_o=no
16132   $RM -r conftest 2>/dev/null
16133   mkdir conftest
16134   cd conftest
16135   mkdir out
16136   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16137
16138   lt_compiler_flag="-o out/conftest2.$ac_objext"
16139   # Insert the option either (1) after the last *FLAGS variable, or
16140   # (2) before a word containing "conftest.", or (3) at the end.
16141   # Note that $ac_compile itself does not contain backslashes and begins
16142   # with a dollar sign (not a hyphen), so the echo should work correctly.
16143   lt_compile=`echo "$ac_compile" | $SED \
16144   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16145   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16146   -e 's:$: $lt_compiler_flag:'`
16147   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16148   (eval "$lt_compile" 2>out/conftest.err)
16149   ac_status=$?
16150   cat out/conftest.err >&5
16151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16153   then
16154     # The compiler can only warn and ignore the option if not recognized
16155     # So say no if there are warnings
16156     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16157     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16158     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16159       lt_cv_prog_compiler_c_o=yes
16160     fi
16161   fi
16162   chmod u+w . 2>&5
16163   $RM conftest*
16164   # SGI C++ compiler will create directory out/ii_files/ for
16165   # template instantiation
16166   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16167   $RM out/* && rmdir out
16168   cd ..
16169   $RM -r conftest
16170   $RM conftest*
16171
16172fi
16173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
16174$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
16175
16176
16177
16178
16179hard_links=nottested
16180if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
16181  # do not overwrite the value of need_locks provided by the user
16182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16183$as_echo_n "checking if we can lock with hard links... " >&6; }
16184  hard_links=yes
16185  $RM conftest*
16186  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16187  touch conftest.a
16188  ln conftest.a conftest.b 2>&5 || hard_links=no
16189  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16191$as_echo "$hard_links" >&6; }
16192  if test no = "$hard_links"; then
16193    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
16194$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
16195    need_locks=warn
16196  fi
16197else
16198  need_locks=no
16199fi
16200
16201
16202
16203
16204
16205
16206  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16207$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16208
16209  runpath_var=
16210  allow_undefined_flag=
16211  always_export_symbols=no
16212  archive_cmds=
16213  archive_expsym_cmds=
16214  compiler_needs_object=no
16215  enable_shared_with_static_runtimes=no
16216  export_dynamic_flag_spec=
16217  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16218  hardcode_automatic=no
16219  hardcode_direct=no
16220  hardcode_direct_absolute=no
16221  hardcode_libdir_flag_spec=
16222  hardcode_libdir_separator=
16223  hardcode_minus_L=no
16224  hardcode_shlibpath_var=unsupported
16225  inherit_rpath=no
16226  link_all_deplibs=unknown
16227  module_cmds=
16228  module_expsym_cmds=
16229  old_archive_from_new_cmds=
16230  old_archive_from_expsyms_cmds=
16231  thread_safe_flag_spec=
16232  whole_archive_flag_spec=
16233  # include_expsyms should be a list of space-separated symbols to be *always*
16234  # included in the symbol list
16235  include_expsyms=
16236  # exclude_expsyms can be an extended regexp of symbols to exclude
16237  # it will be wrapped by ' (' and ')$', so one must not match beginning or
16238  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
16239  # as well as any symbol that contains 'd'.
16240  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16241  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16242  # platforms (ab)use it in PIC code, but their linkers get confused if
16243  # the symbol is explicitly referenced.  Since portable code cannot
16244  # rely on this symbol name, it's probably fine to never include it in
16245  # preloaded symbol tables.
16246  # Exclude shared library initialization/finalization symbols.
16247  extract_expsyms_cmds=
16248
16249  case $host_os in
16250  cygwin* | mingw* | pw32* | cegcc*)
16251    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16252    # When not using gcc, we currently assume that we are using
16253    # Microsoft Visual C++.
16254    if test yes != "$GCC"; then
16255      with_gnu_ld=no
16256    fi
16257    ;;
16258  interix*)
16259    # we just hope/assume this is gcc and not c89 (= MSVC++)
16260    with_gnu_ld=yes
16261    ;;
16262  openbsd* | bitrig*)
16263    with_gnu_ld=no
16264    ;;
16265  esac
16266
16267  ld_shlibs=yes
16268
16269  # On some targets, GNU ld is compatible enough with the native linker
16270  # that we're better off using the native interface for both.
16271  lt_use_gnu_ld_interface=no
16272  if test yes = "$with_gnu_ld"; then
16273    case $host_os in
16274      aix*)
16275	# The AIX port of GNU ld has always aspired to compatibility
16276	# with the native linker.  However, as the warning in the GNU ld
16277	# block says, versions before 2.19.5* couldn't really create working
16278	# shared libraries, regardless of the interface used.
16279	case `$LD -v 2>&1` in
16280	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16281	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16282	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16283	  *)
16284	    lt_use_gnu_ld_interface=yes
16285	    ;;
16286	esac
16287	;;
16288      *)
16289	lt_use_gnu_ld_interface=yes
16290	;;
16291    esac
16292  fi
16293
16294  if test yes = "$lt_use_gnu_ld_interface"; then
16295    # If archive_cmds runs LD, not CC, wlarc should be empty
16296    wlarc='$wl'
16297
16298    # Set some defaults for GNU ld with shared library support. These
16299    # are reset later if shared libraries are not supported. Putting them
16300    # here allows them to be overridden if necessary.
16301    runpath_var=LD_RUN_PATH
16302    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16303    export_dynamic_flag_spec='$wl--export-dynamic'
16304    # ancient GNU ld didn't support --whole-archive et. al.
16305    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16306      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16307    else
16308      whole_archive_flag_spec=
16309    fi
16310    supports_anon_versioning=no
16311    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
16312      *GNU\ gold*) supports_anon_versioning=yes ;;
16313      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16314      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16315      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16316      *\ 2.11.*) ;; # other 2.11 versions
16317      *) supports_anon_versioning=yes ;;
16318    esac
16319
16320    # See if GNU ld supports shared libraries.
16321    case $host_os in
16322    aix[3-9]*)
16323      # On AIX/PPC, the GNU linker is very broken
16324      if test ia64 != "$host_cpu"; then
16325	ld_shlibs=no
16326	cat <<_LT_EOF 1>&2
16327
16328*** Warning: the GNU linker, at least up to release 2.19, is reported
16329*** to be unable to reliably create shared libraries on AIX.
16330*** Therefore, libtool is disabling shared libraries support.  If you
16331*** really care for shared libraries, you may want to install binutils
16332*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16333*** You will then need to restart the configuration process.
16334
16335_LT_EOF
16336      fi
16337      ;;
16338
16339    amigaos*)
16340      case $host_cpu in
16341      powerpc)
16342            # see comment about AmigaOS4 .so support
16343            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16344            archive_expsym_cmds=''
16345        ;;
16346      m68k)
16347            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)'
16348            hardcode_libdir_flag_spec='-L$libdir'
16349            hardcode_minus_L=yes
16350        ;;
16351      esac
16352      ;;
16353
16354    beos*)
16355      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16356	allow_undefined_flag=unsupported
16357	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16358	# support --undefined.  This deserves some investigation.  FIXME
16359	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16360      else
16361	ld_shlibs=no
16362      fi
16363      ;;
16364
16365    cygwin* | mingw* | pw32* | cegcc*)
16366      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
16367      # as there is no search path for DLLs.
16368      hardcode_libdir_flag_spec='-L$libdir'
16369      export_dynamic_flag_spec='$wl--export-all-symbols'
16370      allow_undefined_flag=unsupported
16371      always_export_symbols=no
16372      enable_shared_with_static_runtimes=yes
16373      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'
16374      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16375
16376      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16377        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16378	# If the export-symbols file already is a .def file, use it as
16379	# is; otherwise, prepend EXPORTS...
16380	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16381          cp $export_symbols $output_objdir/$soname.def;
16382        else
16383          echo EXPORTS > $output_objdir/$soname.def;
16384          cat $export_symbols >> $output_objdir/$soname.def;
16385        fi~
16386        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16387      else
16388	ld_shlibs=no
16389      fi
16390      ;;
16391
16392    haiku*)
16393      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16394      link_all_deplibs=yes
16395      ;;
16396
16397    os2*)
16398      hardcode_libdir_flag_spec='-L$libdir'
16399      hardcode_minus_L=yes
16400      allow_undefined_flag=unsupported
16401      shrext_cmds=.dll
16402      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16403	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16404	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16405	$ECHO EXPORTS >> $output_objdir/$libname.def~
16406	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16407	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16408	emximp -o $lib $output_objdir/$libname.def'
16409      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16410	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16411	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16412	$ECHO EXPORTS >> $output_objdir/$libname.def~
16413	prefix_cmds="$SED"~
16414	if test EXPORTS = "`$SED 1q $export_symbols`"; then
16415	  prefix_cmds="$prefix_cmds -e 1d";
16416	fi~
16417	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16418	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16419	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16420	emximp -o $lib $output_objdir/$libname.def'
16421      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16422      enable_shared_with_static_runtimes=yes
16423      ;;
16424
16425    interix[3-9]*)
16426      hardcode_direct=no
16427      hardcode_shlibpath_var=no
16428      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
16429      export_dynamic_flag_spec='$wl-E'
16430      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16431      # Instead, shared libraries are loaded at an image base (0x10000000 by
16432      # default) and relocated if they conflict, which is a slow very memory
16433      # consuming and fragmenting process.  To avoid this, we pick a random,
16434      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16435      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16436      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16437      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'
16438      ;;
16439
16440    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16441      tmp_diet=no
16442      if test linux-dietlibc = "$host_os"; then
16443	case $cc_basename in
16444	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
16445	esac
16446      fi
16447      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16448	 && test no = "$tmp_diet"
16449      then
16450	tmp_addflag=' $pic_flag'
16451	tmp_sharedflag='-shared'
16452	case $cc_basename,$host_cpu in
16453        pgcc*)				# Portland Group C compiler
16454	  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'
16455	  tmp_addflag=' $pic_flag'
16456	  ;;
16457	pgf77* | pgf90* | pgf95* | pgfortran*)
16458					# Portland Group f77 and f90 compilers
16459	  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'
16460	  tmp_addflag=' $pic_flag -Mnomain' ;;
16461	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
16462	  tmp_addflag=' -i_dynamic' ;;
16463	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16464	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16465	ifc* | ifort*)			# Intel Fortran compiler
16466	  tmp_addflag=' -nofor_main' ;;
16467	lf95*)				# Lahey Fortran 8.1
16468	  whole_archive_flag_spec=
16469	  tmp_sharedflag='--shared' ;;
16470        nagfor*)                        # NAGFOR 5.3
16471          tmp_sharedflag='-Wl,-shared' ;;
16472	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16473	  tmp_sharedflag='-qmkshrobj'
16474	  tmp_addflag= ;;
16475	nvcc*)	# Cuda Compiler Driver 2.2
16476	  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'
16477	  compiler_needs_object=yes
16478	  ;;
16479	esac
16480	case `$CC -V 2>&1 | sed 5q` in
16481	*Sun\ C*)			# Sun C 5.9
16482	  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'
16483	  compiler_needs_object=yes
16484	  tmp_sharedflag='-G' ;;
16485	*Sun\ F*)			# Sun Fortran 8.3
16486	  tmp_sharedflag='-G' ;;
16487	esac
16488	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16489
16490        if test yes = "$supports_anon_versioning"; then
16491          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16492            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16493            echo "local: *; };" >> $output_objdir/$libname.ver~
16494            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16495        fi
16496
16497	case $cc_basename in
16498	tcc*)
16499	  export_dynamic_flag_spec='-rdynamic'
16500	  ;;
16501	xlf* | bgf* | bgxlf* | mpixlf*)
16502	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16503	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16504	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16505	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16506	  if test yes = "$supports_anon_versioning"; then
16507	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16508              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16509              echo "local: *; };" >> $output_objdir/$libname.ver~
16510              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16511	  fi
16512	  ;;
16513	esac
16514      else
16515        ld_shlibs=no
16516      fi
16517      ;;
16518
16519    netbsd*)
16520      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16521	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16522	wlarc=
16523      else
16524	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16525	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16526      fi
16527      ;;
16528
16529    solaris*)
16530      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16531	ld_shlibs=no
16532	cat <<_LT_EOF 1>&2
16533
16534*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16535*** create shared libraries on Solaris systems.  Therefore, libtool
16536*** is disabling shared libraries support.  We urge you to upgrade GNU
16537*** binutils to release 2.9.1 or newer.  Another option is to modify
16538*** your PATH or compiler configuration so that the native linker is
16539*** used, and then restart.
16540
16541_LT_EOF
16542      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16543	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16544	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16545      else
16546	ld_shlibs=no
16547      fi
16548      ;;
16549
16550    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16551      case `$LD -v 2>&1` in
16552        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16553	ld_shlibs=no
16554	cat <<_LT_EOF 1>&2
16555
16556*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
16557*** reliably create shared libraries on SCO systems.  Therefore, libtool
16558*** is disabling shared libraries support.  We urge you to upgrade GNU
16559*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16560*** your PATH or compiler configuration so that the native linker is
16561*** used, and then restart.
16562
16563_LT_EOF
16564	;;
16565	*)
16566	  # For security reasons, it is highly recommended that you always
16567	  # use absolute paths for naming shared libraries, and exclude the
16568	  # DT_RUNPATH tag from executables and libraries.  But doing so
16569	  # requires that you compile everything twice, which is a pain.
16570	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16571	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
16572	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16573	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16574	  else
16575	    ld_shlibs=no
16576	  fi
16577	;;
16578      esac
16579      ;;
16580
16581    sunos4*)
16582      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16583      wlarc=
16584      hardcode_direct=yes
16585      hardcode_shlibpath_var=no
16586      ;;
16587
16588    *)
16589      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16590	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16591	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16592      else
16593	ld_shlibs=no
16594      fi
16595      ;;
16596    esac
16597
16598    if test no = "$ld_shlibs"; then
16599      runpath_var=
16600      hardcode_libdir_flag_spec=
16601      export_dynamic_flag_spec=
16602      whole_archive_flag_spec=
16603    fi
16604  else
16605    # PORTME fill in a description of your system's linker (not GNU ld)
16606    case $host_os in
16607    aix3*)
16608      allow_undefined_flag=unsupported
16609      always_export_symbols=yes
16610      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'
16611      # Note: this linker hardcodes the directories in LIBPATH if there
16612      # are no directories specified by -L.
16613      hardcode_minus_L=yes
16614      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
16615	# Neither direct hardcoding nor static linking is supported with a
16616	# broken collect2.
16617	hardcode_direct=unsupported
16618      fi
16619      ;;
16620
16621    aix[4-9]*)
16622      if test ia64 = "$host_cpu"; then
16623	# On IA64, the linker does run time linking by default, so we don't
16624	# have to do anything special.
16625	aix_use_runtimelinking=no
16626	exp_sym_flag='-Bexport'
16627	no_entry_flag=
16628      else
16629	# If we're using GNU nm, then we don't want the "-C" option.
16630	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
16631	# Without the "-l" option, or with the "-B" option, AIX nm treats
16632	# weak defined symbols like other global defined symbols, whereas
16633	# GNU nm marks them as "W".
16634	# While the 'weak' keyword is ignored in the Export File, we need
16635	# it in the Import File for the 'aix-soname' feature, so we have
16636	# to replace the "-B" option with "-P" for AIX nm.
16637	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16638	  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'
16639	else
16640	  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'
16641	fi
16642	aix_use_runtimelinking=no
16643
16644	# Test if we are trying to use run time linking or normal
16645	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16646	# have runtime linking enabled, and use it for executables.
16647	# For shared libraries, we enable/disable runtime linking
16648	# depending on the kind of the shared library created -
16649	# when "with_aix_soname,aix_use_runtimelinking" is:
16650	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
16651	# "aix,yes"  lib.so          shared, rtl:yes, for executables
16652	#            lib.a           static archive
16653	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
16654	#            lib.a(lib.so.V) shared, rtl:no,  for executables
16655	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
16656	#            lib.a(lib.so.V) shared, rtl:no
16657	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
16658	#            lib.a           static archive
16659	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16660	  for ld_flag in $LDFLAGS; do
16661	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
16662	    aix_use_runtimelinking=yes
16663	    break
16664	  fi
16665	  done
16666	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
16667	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
16668	    # so we don't have lib.a shared libs to link our executables.
16669	    # We have to force runtime linking in this case.
16670	    aix_use_runtimelinking=yes
16671	    LDFLAGS="$LDFLAGS -Wl,-brtl"
16672	  fi
16673	  ;;
16674	esac
16675
16676	exp_sym_flag='-bexport'
16677	no_entry_flag='-bnoentry'
16678      fi
16679
16680      # When large executables or shared objects are built, AIX ld can
16681      # have problems creating the table of contents.  If linking a library
16682      # or program results in "error TOC overflow" add -mminimal-toc to
16683      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16684      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16685
16686      archive_cmds=''
16687      hardcode_direct=yes
16688      hardcode_direct_absolute=yes
16689      hardcode_libdir_separator=':'
16690      link_all_deplibs=yes
16691      file_list_spec='$wl-f,'
16692      case $with_aix_soname,$aix_use_runtimelinking in
16693      aix,*) ;; # traditional, no import file
16694      svr4,* | *,yes) # use import file
16695	# The Import File defines what to hardcode.
16696	hardcode_direct=no
16697	hardcode_direct_absolute=no
16698	;;
16699      esac
16700
16701      if test yes = "$GCC"; then
16702	case $host_os in aix4.[012]|aix4.[012].*)
16703	# We only want to do this on AIX 4.2 and lower, the check
16704	# below for broken collect2 doesn't work under 4.3+
16705	  collect2name=`$CC -print-prog-name=collect2`
16706	  if test -f "$collect2name" &&
16707	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16708	  then
16709	  # We have reworked collect2
16710	  :
16711	  else
16712	  # We have old collect2
16713	  hardcode_direct=unsupported
16714	  # It fails to find uninstalled libraries when the uninstalled
16715	  # path is not listed in the libpath.  Setting hardcode_minus_L
16716	  # to unsupported forces relinking
16717	  hardcode_minus_L=yes
16718	  hardcode_libdir_flag_spec='-L$libdir'
16719	  hardcode_libdir_separator=
16720	  fi
16721	  ;;
16722	esac
16723	shared_flag='-shared'
16724	if test yes = "$aix_use_runtimelinking"; then
16725	  shared_flag="$shared_flag "'$wl-G'
16726	fi
16727	# Need to ensure runtime linking is disabled for the traditional
16728	# shared library, or the linker may eventually find shared libraries
16729	# /with/ Import File - we do not want to mix them.
16730	shared_flag_aix='-shared'
16731	shared_flag_svr4='-shared $wl-G'
16732      else
16733	# not using gcc
16734	if test ia64 = "$host_cpu"; then
16735	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16736	# chokes on -Wl,-G. The following line is correct:
16737	  shared_flag='-G'
16738	else
16739	  if test yes = "$aix_use_runtimelinking"; then
16740	    shared_flag='$wl-G'
16741	  else
16742	    shared_flag='$wl-bM:SRE'
16743	  fi
16744	  shared_flag_aix='$wl-bM:SRE'
16745	  shared_flag_svr4='$wl-G'
16746	fi
16747      fi
16748
16749      export_dynamic_flag_spec='$wl-bexpall'
16750      # It seems that -bexpall does not export symbols beginning with
16751      # underscore (_), so it is better to generate a list of symbols to export.
16752      always_export_symbols=yes
16753      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
16754	# Warning - without using the other runtime loading flags (-brtl),
16755	# -berok will link without error, but may produce a broken library.
16756	allow_undefined_flag='-berok'
16757        # Determine the default libpath from the value encoded in an
16758        # empty executable.
16759        if test set = "${lt_cv_aix_libpath+set}"; then
16760  aix_libpath=$lt_cv_aix_libpath
16761else
16762  if ${lt_cv_aix_libpath_+:} false; then :
16763  $as_echo_n "(cached) " >&6
16764else
16765  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16766/* end confdefs.h.  */
16767
16768int
16769main ()
16770{
16771
16772  ;
16773  return 0;
16774}
16775_ACEOF
16776if ac_fn_c_try_link "$LINENO"; then :
16777
16778  lt_aix_libpath_sed='
16779      /Import File Strings/,/^$/ {
16780	  /^0/ {
16781	      s/^0  *\([^ ]*\) *$/\1/
16782	      p
16783	  }
16784      }'
16785  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16786  # Check for a 64-bit object if we didn't find anything.
16787  if test -z "$lt_cv_aix_libpath_"; then
16788    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16789  fi
16790fi
16791rm -f core conftest.err conftest.$ac_objext \
16792    conftest$ac_exeext conftest.$ac_ext
16793  if test -z "$lt_cv_aix_libpath_"; then
16794    lt_cv_aix_libpath_=/usr/lib:/lib
16795  fi
16796
16797fi
16798
16799  aix_libpath=$lt_cv_aix_libpath_
16800fi
16801
16802        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16803        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
16804      else
16805	if test ia64 = "$host_cpu"; then
16806	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
16807	  allow_undefined_flag="-z nodefs"
16808	  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"
16809	else
16810	 # Determine the default libpath from the value encoded in an
16811	 # empty executable.
16812	 if test set = "${lt_cv_aix_libpath+set}"; then
16813  aix_libpath=$lt_cv_aix_libpath
16814else
16815  if ${lt_cv_aix_libpath_+:} false; then :
16816  $as_echo_n "(cached) " >&6
16817else
16818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819/* end confdefs.h.  */
16820
16821int
16822main ()
16823{
16824
16825  ;
16826  return 0;
16827}
16828_ACEOF
16829if ac_fn_c_try_link "$LINENO"; then :
16830
16831  lt_aix_libpath_sed='
16832      /Import File Strings/,/^$/ {
16833	  /^0/ {
16834	      s/^0  *\([^ ]*\) *$/\1/
16835	      p
16836	  }
16837      }'
16838  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16839  # Check for a 64-bit object if we didn't find anything.
16840  if test -z "$lt_cv_aix_libpath_"; then
16841    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16842  fi
16843fi
16844rm -f core conftest.err conftest.$ac_objext \
16845    conftest$ac_exeext conftest.$ac_ext
16846  if test -z "$lt_cv_aix_libpath_"; then
16847    lt_cv_aix_libpath_=/usr/lib:/lib
16848  fi
16849
16850fi
16851
16852  aix_libpath=$lt_cv_aix_libpath_
16853fi
16854
16855	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
16856	  # Warning - without using the other run time loading flags,
16857	  # -berok will link without error, but may produce a broken library.
16858	  no_undefined_flag=' $wl-bernotok'
16859	  allow_undefined_flag=' $wl-berok'
16860	  if test yes = "$with_gnu_ld"; then
16861	    # We only use this code for GNU lds that support --whole-archive.
16862	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
16863	  else
16864	    # Exported symbols can be pulled into shared objects from archives
16865	    whole_archive_flag_spec='$convenience'
16866	  fi
16867	  archive_cmds_need_lc=yes
16868	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16869	  # -brtl affects multiple linker settings, -berok does not and is overridden later
16870	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16871	  if test svr4 != "$with_aix_soname"; then
16872	    # This is similar to how AIX traditionally builds its shared libraries.
16873	    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'
16874	  fi
16875	  if test aix != "$with_aix_soname"; then
16876	    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'
16877	  else
16878	    # used by -dlpreopen to get the symbols
16879	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16880	  fi
16881	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
16882	fi
16883      fi
16884      ;;
16885
16886    amigaos*)
16887      case $host_cpu in
16888      powerpc)
16889            # see comment about AmigaOS4 .so support
16890            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16891            archive_expsym_cmds=''
16892        ;;
16893      m68k)
16894            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)'
16895            hardcode_libdir_flag_spec='-L$libdir'
16896            hardcode_minus_L=yes
16897        ;;
16898      esac
16899      ;;
16900
16901    bsdi[45]*)
16902      export_dynamic_flag_spec=-rdynamic
16903      ;;
16904
16905    cygwin* | mingw* | pw32* | cegcc*)
16906      # When not using gcc, we currently assume that we are using
16907      # Microsoft Visual C++.
16908      # hardcode_libdir_flag_spec is actually meaningless, as there is
16909      # no search path for DLLs.
16910      case $cc_basename in
16911      cl*)
16912	# Native MSVC
16913	hardcode_libdir_flag_spec=' '
16914	allow_undefined_flag=unsupported
16915	always_export_symbols=yes
16916	file_list_spec='@'
16917	# Tell ltmain to make .lib files, not .a files.
16918	libext=lib
16919	# Tell ltmain to make .dll files, not .so files.
16920	shrext_cmds=.dll
16921	# FIXME: Setting linknames here is a bad hack.
16922	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16923	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16924            cp "$export_symbols" "$output_objdir/$soname.def";
16925            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16926          else
16927            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16928          fi~
16929          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16930          linknames='
16931	# The linker will not automatically build a static lib if we build a DLL.
16932	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
16933	enable_shared_with_static_runtimes=yes
16934	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
16935	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16936	# Don't use ranlib
16937	old_postinstall_cmds='chmod 644 $oldlib'
16938	postlink_cmds='lt_outputfile="@OUTPUT@"~
16939          lt_tool_outputfile="@TOOL_OUTPUT@"~
16940          case $lt_outputfile in
16941            *.exe|*.EXE) ;;
16942            *)
16943              lt_outputfile=$lt_outputfile.exe
16944              lt_tool_outputfile=$lt_tool_outputfile.exe
16945              ;;
16946          esac~
16947          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16948            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16949            $RM "$lt_outputfile.manifest";
16950          fi'
16951	;;
16952      *)
16953	# Assume MSVC wrapper
16954	hardcode_libdir_flag_spec=' '
16955	allow_undefined_flag=unsupported
16956	# Tell ltmain to make .lib files, not .a files.
16957	libext=lib
16958	# Tell ltmain to make .dll files, not .so files.
16959	shrext_cmds=.dll
16960	# FIXME: Setting linknames here is a bad hack.
16961	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
16962	# The linker will automatically build a .lib file if we build a DLL.
16963	old_archive_from_new_cmds='true'
16964	# FIXME: Should let the user specify the lib program.
16965	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16966	enable_shared_with_static_runtimes=yes
16967	;;
16968      esac
16969      ;;
16970
16971    darwin* | rhapsody*)
16972
16973
16974  archive_cmds_need_lc=no
16975  hardcode_direct=no
16976  hardcode_automatic=yes
16977  hardcode_shlibpath_var=unsupported
16978  if test yes = "$lt_cv_ld_force_load"; then
16979    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\"`'
16980
16981  else
16982    whole_archive_flag_spec=''
16983  fi
16984  link_all_deplibs=yes
16985  allow_undefined_flag=$_lt_dar_allow_undefined
16986  case $cc_basename in
16987     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16988     *) _lt_dar_can_shared=$GCC ;;
16989  esac
16990  if test yes = "$_lt_dar_can_shared"; then
16991    output_verbose_link_cmd=func_echo_all
16992    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
16993    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16994    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"
16995    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"
16996
16997  else
16998  ld_shlibs=no
16999  fi
17000
17001      ;;
17002
17003    dgux*)
17004      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17005      hardcode_libdir_flag_spec='-L$libdir'
17006      hardcode_shlibpath_var=no
17007      ;;
17008
17009    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17010    # support.  Future versions do this automatically, but an explicit c++rt0.o
17011    # does not break anything, and helps significantly (at the cost of a little
17012    # extra space).
17013    freebsd2.2*)
17014      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17015      hardcode_libdir_flag_spec='-R$libdir'
17016      hardcode_direct=yes
17017      hardcode_shlibpath_var=no
17018      ;;
17019
17020    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17021    freebsd2.*)
17022      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17023      hardcode_direct=yes
17024      hardcode_minus_L=yes
17025      hardcode_shlibpath_var=no
17026      ;;
17027
17028    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17029    freebsd* | dragonfly*)
17030      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17031      hardcode_libdir_flag_spec='-R$libdir'
17032      hardcode_direct=yes
17033      hardcode_shlibpath_var=no
17034      ;;
17035
17036    hpux9*)
17037      if test yes = "$GCC"; then
17038	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'
17039      else
17040	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'
17041      fi
17042      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17043      hardcode_libdir_separator=:
17044      hardcode_direct=yes
17045
17046      # hardcode_minus_L: Not really in the search PATH,
17047      # but as the default location of the library.
17048      hardcode_minus_L=yes
17049      export_dynamic_flag_spec='$wl-E'
17050      ;;
17051
17052    hpux10*)
17053      if test yes,no = "$GCC,$with_gnu_ld"; then
17054	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17055      else
17056	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17057      fi
17058      if test no = "$with_gnu_ld"; then
17059	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17060	hardcode_libdir_separator=:
17061	hardcode_direct=yes
17062	hardcode_direct_absolute=yes
17063	export_dynamic_flag_spec='$wl-E'
17064	# hardcode_minus_L: Not really in the search PATH,
17065	# but as the default location of the library.
17066	hardcode_minus_L=yes
17067      fi
17068      ;;
17069
17070    hpux11*)
17071      if test yes,no = "$GCC,$with_gnu_ld"; then
17072	case $host_cpu in
17073	hppa*64*)
17074	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17075	  ;;
17076	ia64*)
17077	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17078	  ;;
17079	*)
17080	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17081	  ;;
17082	esac
17083      else
17084	case $host_cpu in
17085	hppa*64*)
17086	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17087	  ;;
17088	ia64*)
17089	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17090	  ;;
17091	*)
17092
17093	  # Older versions of the 11.00 compiler do not understand -b yet
17094	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
17095	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
17096$as_echo_n "checking if $CC understands -b... " >&6; }
17097if ${lt_cv_prog_compiler__b+:} false; then :
17098  $as_echo_n "(cached) " >&6
17099else
17100  lt_cv_prog_compiler__b=no
17101   save_LDFLAGS=$LDFLAGS
17102   LDFLAGS="$LDFLAGS -b"
17103   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17104   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17105     # The linker can only warn and ignore the option if not recognized
17106     # So say no if there are warnings
17107     if test -s conftest.err; then
17108       # Append any errors to the config.log.
17109       cat conftest.err 1>&5
17110       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17111       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17112       if diff conftest.exp conftest.er2 >/dev/null; then
17113         lt_cv_prog_compiler__b=yes
17114       fi
17115     else
17116       lt_cv_prog_compiler__b=yes
17117     fi
17118   fi
17119   $RM -r conftest*
17120   LDFLAGS=$save_LDFLAGS
17121
17122fi
17123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
17124$as_echo "$lt_cv_prog_compiler__b" >&6; }
17125
17126if test yes = "$lt_cv_prog_compiler__b"; then
17127    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17128else
17129    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17130fi
17131
17132	  ;;
17133	esac
17134      fi
17135      if test no = "$with_gnu_ld"; then
17136	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
17137	hardcode_libdir_separator=:
17138
17139	case $host_cpu in
17140	hppa*64*|ia64*)
17141	  hardcode_direct=no
17142	  hardcode_shlibpath_var=no
17143	  ;;
17144	*)
17145	  hardcode_direct=yes
17146	  hardcode_direct_absolute=yes
17147	  export_dynamic_flag_spec='$wl-E'
17148
17149	  # hardcode_minus_L: Not really in the search PATH,
17150	  # but as the default location of the library.
17151	  hardcode_minus_L=yes
17152	  ;;
17153	esac
17154      fi
17155      ;;
17156
17157    irix5* | irix6* | nonstopux*)
17158      if test yes = "$GCC"; then
17159	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'
17160	# Try to use the -exported_symbol ld option, if it does not
17161	# work, assume that -exports_file does not work either and
17162	# implicitly export all symbols.
17163	# This should be the same for all languages, so no per-tag cache variable.
17164	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17165$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17166if ${lt_cv_irix_exported_symbol+:} false; then :
17167  $as_echo_n "(cached) " >&6
17168else
17169  save_LDFLAGS=$LDFLAGS
17170	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
17171	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172/* end confdefs.h.  */
17173int foo (void) { return 0; }
17174_ACEOF
17175if ac_fn_c_try_link "$LINENO"; then :
17176  lt_cv_irix_exported_symbol=yes
17177else
17178  lt_cv_irix_exported_symbol=no
17179fi
17180rm -f core conftest.err conftest.$ac_objext \
17181    conftest$ac_exeext conftest.$ac_ext
17182           LDFLAGS=$save_LDFLAGS
17183fi
17184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17185$as_echo "$lt_cv_irix_exported_symbol" >&6; }
17186	if test yes = "$lt_cv_irix_exported_symbol"; then
17187          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'
17188	fi
17189      else
17190	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'
17191	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'
17192      fi
17193      archive_cmds_need_lc='no'
17194      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17195      hardcode_libdir_separator=:
17196      inherit_rpath=yes
17197      link_all_deplibs=yes
17198      ;;
17199
17200    linux*)
17201      case $cc_basename in
17202      tcc*)
17203	# Fabrice Bellard et al's Tiny C Compiler
17204	ld_shlibs=yes
17205	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17206	;;
17207      esac
17208      ;;
17209
17210    netbsd*)
17211      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17212	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17213      else
17214	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17215      fi
17216      hardcode_libdir_flag_spec='-R$libdir'
17217      hardcode_direct=yes
17218      hardcode_shlibpath_var=no
17219      ;;
17220
17221    newsos6)
17222      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17223      hardcode_direct=yes
17224      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17225      hardcode_libdir_separator=:
17226      hardcode_shlibpath_var=no
17227      ;;
17228
17229    *nto* | *qnx*)
17230      ;;
17231
17232    openbsd* | bitrig*)
17233      if test -f /usr/libexec/ld.so; then
17234	hardcode_direct=yes
17235	hardcode_shlibpath_var=no
17236	hardcode_direct_absolute=yes
17237	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
17238	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17239	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
17240	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17241	  export_dynamic_flag_spec='$wl-E'
17242	else
17243	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17244	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17245	fi
17246      else
17247	ld_shlibs=no
17248      fi
17249      ;;
17250
17251    os2*)
17252      hardcode_libdir_flag_spec='-L$libdir'
17253      hardcode_minus_L=yes
17254      allow_undefined_flag=unsupported
17255      shrext_cmds=.dll
17256      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17257	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17258	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17259	$ECHO EXPORTS >> $output_objdir/$libname.def~
17260	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17261	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17262	emximp -o $lib $output_objdir/$libname.def'
17263      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17264	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17265	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17266	$ECHO EXPORTS >> $output_objdir/$libname.def~
17267	prefix_cmds="$SED"~
17268	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17269	  prefix_cmds="$prefix_cmds -e 1d";
17270	fi~
17271	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17272	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17273	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17274	emximp -o $lib $output_objdir/$libname.def'
17275      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17276      enable_shared_with_static_runtimes=yes
17277      ;;
17278
17279    osf3*)
17280      if test yes = "$GCC"; then
17281	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17282	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'
17283      else
17284	allow_undefined_flag=' -expect_unresolved \*'
17285	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'
17286      fi
17287      archive_cmds_need_lc='no'
17288      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17289      hardcode_libdir_separator=:
17290      ;;
17291
17292    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17293      if test yes = "$GCC"; then
17294	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
17295	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'
17296	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17297      else
17298	allow_undefined_flag=' -expect_unresolved \*'
17299	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'
17300	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~
17301          $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'
17302
17303	# Both c and cxx compiler support -rpath directly
17304	hardcode_libdir_flag_spec='-rpath $libdir'
17305      fi
17306      archive_cmds_need_lc='no'
17307      hardcode_libdir_separator=:
17308      ;;
17309
17310    solaris*)
17311      no_undefined_flag=' -z defs'
17312      if test yes = "$GCC"; then
17313	wlarc='$wl'
17314	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
17315	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17316          $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'
17317      else
17318	case `$CC -V 2>&1` in
17319	*"Compilers 5.0"*)
17320	  wlarc=''
17321	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
17322	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17323            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17324	  ;;
17325	*)
17326	  wlarc='$wl'
17327	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17328	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17329            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17330	  ;;
17331	esac
17332      fi
17333      hardcode_libdir_flag_spec='-R$libdir'
17334      hardcode_shlibpath_var=no
17335      case $host_os in
17336      solaris2.[0-5] | solaris2.[0-5].*) ;;
17337      *)
17338	# The compiler driver will combine and reorder linker options,
17339	# but understands '-z linker_flag'.  GCC discards it without '$wl',
17340	# but is careful enough not to reorder.
17341	# Supported since Solaris 2.6 (maybe 2.5.1?)
17342	if test yes = "$GCC"; then
17343	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
17344	else
17345	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
17346	fi
17347	;;
17348      esac
17349      link_all_deplibs=yes
17350      ;;
17351
17352    sunos4*)
17353      if test sequent = "$host_vendor"; then
17354	# Use $CC to link under sequent, because it throws in some extra .o
17355	# files that make .init and .fini sections work.
17356	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17357      else
17358	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17359      fi
17360      hardcode_libdir_flag_spec='-L$libdir'
17361      hardcode_direct=yes
17362      hardcode_minus_L=yes
17363      hardcode_shlibpath_var=no
17364      ;;
17365
17366    sysv4)
17367      case $host_vendor in
17368	sni)
17369	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17370	  hardcode_direct=yes # is this really true???
17371	;;
17372	siemens)
17373	  ## LD is ld it makes a PLAMLIB
17374	  ## CC just makes a GrossModule.
17375	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17376	  reload_cmds='$CC -r -o $output$reload_objs'
17377	  hardcode_direct=no
17378        ;;
17379	motorola)
17380	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17381	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
17382	;;
17383      esac
17384      runpath_var='LD_RUN_PATH'
17385      hardcode_shlibpath_var=no
17386      ;;
17387
17388    sysv4.3*)
17389      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17390      hardcode_shlibpath_var=no
17391      export_dynamic_flag_spec='-Bexport'
17392      ;;
17393
17394    sysv4*MP*)
17395      if test -d /usr/nec; then
17396	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397	hardcode_shlibpath_var=no
17398	runpath_var=LD_RUN_PATH
17399	hardcode_runpath_var=yes
17400	ld_shlibs=yes
17401      fi
17402      ;;
17403
17404    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17405      no_undefined_flag='$wl-z,text'
17406      archive_cmds_need_lc=no
17407      hardcode_shlibpath_var=no
17408      runpath_var='LD_RUN_PATH'
17409
17410      if test yes = "$GCC"; then
17411	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17412	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17413      else
17414	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17415	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17416      fi
17417      ;;
17418
17419    sysv5* | sco3.2v5* | sco5v6*)
17420      # Note: We CANNOT use -z defs as we might desire, because we do not
17421      # link with -lc, and that would cause any symbols used from libc to
17422      # always be unresolved, which means just about no library would
17423      # ever link correctly.  If we're not using GNU ld we use -z text
17424      # though, which does catch some bad symbols but isn't as heavy-handed
17425      # as -z defs.
17426      no_undefined_flag='$wl-z,text'
17427      allow_undefined_flag='$wl-z,nodefs'
17428      archive_cmds_need_lc=no
17429      hardcode_shlibpath_var=no
17430      hardcode_libdir_flag_spec='$wl-R,$libdir'
17431      hardcode_libdir_separator=':'
17432      link_all_deplibs=yes
17433      export_dynamic_flag_spec='$wl-Bexport'
17434      runpath_var='LD_RUN_PATH'
17435
17436      if test yes = "$GCC"; then
17437	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17438	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17439      else
17440	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17441	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17442      fi
17443      ;;
17444
17445    uts4*)
17446      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17447      hardcode_libdir_flag_spec='-L$libdir'
17448      hardcode_shlibpath_var=no
17449      ;;
17450
17451    *)
17452      ld_shlibs=no
17453      ;;
17454    esac
17455
17456    if test sni = "$host_vendor"; then
17457      case $host in
17458      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17459	export_dynamic_flag_spec='$wl-Blargedynsym'
17460	;;
17461      esac
17462    fi
17463  fi
17464
17465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
17466$as_echo "$ld_shlibs" >&6; }
17467test no = "$ld_shlibs" && can_build_shared=no
17468
17469with_gnu_ld=$with_gnu_ld
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485#
17486# Do we need to explicitly link libc?
17487#
17488case "x$archive_cmds_need_lc" in
17489x|xyes)
17490  # Assume -lc should be added
17491  archive_cmds_need_lc=yes
17492
17493  if test yes,yes = "$GCC,$enable_shared"; then
17494    case $archive_cmds in
17495    *'~'*)
17496      # FIXME: we may have to deal with multi-command sequences.
17497      ;;
17498    '$CC '*)
17499      # Test whether the compiler implicitly links with -lc since on some
17500      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17501      # to ld, don't add -lc before -lgcc.
17502      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17503$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17504if ${lt_cv_archive_cmds_need_lc+:} false; then :
17505  $as_echo_n "(cached) " >&6
17506else
17507  $RM conftest*
17508	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17509
17510	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17511  (eval $ac_compile) 2>&5
17512  ac_status=$?
17513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17514  test $ac_status = 0; } 2>conftest.err; then
17515	  soname=conftest
17516	  lib=conftest
17517	  libobjs=conftest.$ac_objext
17518	  deplibs=
17519	  wl=$lt_prog_compiler_wl
17520	  pic_flag=$lt_prog_compiler_pic
17521	  compiler_flags=-v
17522	  linker_flags=-v
17523	  verstring=
17524	  output_objdir=.
17525	  libname=conftest
17526	  lt_save_allow_undefined_flag=$allow_undefined_flag
17527	  allow_undefined_flag=
17528	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17529  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17530  ac_status=$?
17531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17532  test $ac_status = 0; }
17533	  then
17534	    lt_cv_archive_cmds_need_lc=no
17535	  else
17536	    lt_cv_archive_cmds_need_lc=yes
17537	  fi
17538	  allow_undefined_flag=$lt_save_allow_undefined_flag
17539	else
17540	  cat conftest.err 1>&5
17541	fi
17542	$RM conftest*
17543
17544fi
17545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
17546$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
17547      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
17548      ;;
17549    esac
17550  fi
17551  ;;
17552esac
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640
17641
17642
17643
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698
17699
17700
17701
17702
17703
17704
17705  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17706$as_echo_n "checking dynamic linker characteristics... " >&6; }
17707
17708if test yes = "$GCC"; then
17709  case $host_os in
17710    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
17711    *) lt_awk_arg='/^libraries:/' ;;
17712  esac
17713  case $host_os in
17714    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
17715    *) lt_sed_strip_eq='s|=/|/|g' ;;
17716  esac
17717  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
17718  case $lt_search_path_spec in
17719  *\;*)
17720    # if the path contains ";" then we assume it to be the separator
17721    # otherwise default to the standard path separator (i.e. ":") - it is
17722    # assumed that no part of a normal pathname contains ";" but that should
17723    # okay in the real world where ";" in dirpaths is itself problematic.
17724    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
17725    ;;
17726  *)
17727    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
17728    ;;
17729  esac
17730  # Ok, now we have the path, separated by spaces, we can step through it
17731  # and add multilib dir if necessary...
17732  lt_tmp_lt_search_path_spec=
17733  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17734  # ...but if some path component already ends with the multilib dir we assume
17735  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
17736  case "$lt_multi_os_dir; $lt_search_path_spec " in
17737  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
17738    lt_multi_os_dir=
17739    ;;
17740  esac
17741  for lt_sys_path in $lt_search_path_spec; do
17742    if test -d "$lt_sys_path$lt_multi_os_dir"; then
17743      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
17744    elif test -n "$lt_multi_os_dir"; then
17745      test -d "$lt_sys_path" && \
17746	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17747    fi
17748  done
17749  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
17750BEGIN {RS = " "; FS = "/|\n";} {
17751  lt_foo = "";
17752  lt_count = 0;
17753  for (lt_i = NF; lt_i > 0; lt_i--) {
17754    if ($lt_i != "" && $lt_i != ".") {
17755      if ($lt_i == "..") {
17756        lt_count++;
17757      } else {
17758        if (lt_count == 0) {
17759          lt_foo = "/" $lt_i lt_foo;
17760        } else {
17761          lt_count--;
17762        }
17763      }
17764    }
17765  }
17766  if (lt_foo != "") { lt_freq[lt_foo]++; }
17767  if (lt_freq[lt_foo] == 1) { print lt_foo; }
17768}'`
17769  # AWK program above erroneously prepends '/' to C:/dos/paths
17770  # for these hosts.
17771  case $host_os in
17772    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
17773      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
17774  esac
17775  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
17776else
17777  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17778fi
17779library_names_spec=
17780libname_spec='lib$name'
17781soname_spec=
17782shrext_cmds=.so
17783postinstall_cmds=
17784postuninstall_cmds=
17785finish_cmds=
17786finish_eval=
17787shlibpath_var=
17788shlibpath_overrides_runpath=unknown
17789version_type=none
17790dynamic_linker="$host_os ld.so"
17791sys_lib_dlsearch_path_spec="/lib /usr/lib"
17792need_lib_prefix=unknown
17793hardcode_into_libs=no
17794
17795# when you set need_version to no, make sure it does not cause -set_version
17796# flags to be left without arguments
17797need_version=unknown
17798
17799
17800
17801case $host_os in
17802aix3*)
17803  version_type=linux # correct to gnu/linux during the next big refactor
17804  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17805  shlibpath_var=LIBPATH
17806
17807  # AIX 3 has no versioning support, so we append a major version to the name.
17808  soname_spec='$libname$release$shared_ext$major'
17809  ;;
17810
17811aix[4-9]*)
17812  version_type=linux # correct to gnu/linux during the next big refactor
17813  need_lib_prefix=no
17814  need_version=no
17815  hardcode_into_libs=yes
17816  if test ia64 = "$host_cpu"; then
17817    # AIX 5 supports IA64
17818    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17819    shlibpath_var=LD_LIBRARY_PATH
17820  else
17821    # With GCC up to 2.95.x, collect2 would create an import file
17822    # for dependence libraries.  The import file would start with
17823    # the line '#! .'.  This would cause the generated library to
17824    # depend on '.', always an invalid library.  This was fixed in
17825    # development snapshots of GCC prior to 3.0.
17826    case $host_os in
17827      aix4 | aix4.[01] | aix4.[01].*)
17828      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17829	   echo ' yes '
17830	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17831	:
17832      else
17833	can_build_shared=no
17834      fi
17835      ;;
17836    esac
17837    # Using Import Files as archive members, it is possible to support
17838    # filename-based versioning of shared library archives on AIX. While
17839    # this would work for both with and without runtime linking, it will
17840    # prevent static linking of such archives. So we do filename-based
17841    # shared library versioning with .so extension only, which is used
17842    # when both runtime linking and shared linking is enabled.
17843    # Unfortunately, runtime linking may impact performance, so we do
17844    # not want this to be the default eventually. Also, we use the
17845    # versioned .so libs for executables only if there is the -brtl
17846    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17847    # To allow for filename-based versioning support, we need to create
17848    # libNAME.so.V as an archive file, containing:
17849    # *) an Import File, referring to the versioned filename of the
17850    #    archive as well as the shared archive member, telling the
17851    #    bitwidth (32 or 64) of that shared object, and providing the
17852    #    list of exported symbols of that shared object, eventually
17853    #    decorated with the 'weak' keyword
17854    # *) the shared object with the F_LOADONLY flag set, to really avoid
17855    #    it being seen by the linker.
17856    # At run time we better use the real file rather than another symlink,
17857    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17858
17859    case $with_aix_soname,$aix_use_runtimelinking in
17860    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17861    # soname into executable. Probably we can add versioning support to
17862    # collect2, so additional links can be useful in future.
17863    aix,yes) # traditional libtool
17864      dynamic_linker='AIX unversionable lib.so'
17865      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17866      # instead of lib<name>.a to let people know that these are not
17867      # typical AIX shared libraries.
17868      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17869      ;;
17870    aix,no) # traditional AIX only
17871      dynamic_linker='AIX lib.a(lib.so.V)'
17872      # We preserve .a as extension for shared libraries through AIX4.2
17873      # and later when we are not doing run time linking.
17874      library_names_spec='$libname$release.a $libname.a'
17875      soname_spec='$libname$release$shared_ext$major'
17876      ;;
17877    svr4,*) # full svr4 only
17878      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17879      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17880      # We do not specify a path in Import Files, so LIBPATH fires.
17881      shlibpath_overrides_runpath=yes
17882      ;;
17883    *,yes) # both, prefer svr4
17884      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17885      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17886      # unpreferred sharedlib libNAME.a needs extra handling
17887      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"'
17888      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"'
17889      # We do not specify a path in Import Files, so LIBPATH fires.
17890      shlibpath_overrides_runpath=yes
17891      ;;
17892    *,no) # both, prefer aix
17893      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17894      library_names_spec='$libname$release.a $libname.a'
17895      soname_spec='$libname$release$shared_ext$major'
17896      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17897      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)'
17898      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"'
17899      ;;
17900    esac
17901    shlibpath_var=LIBPATH
17902  fi
17903  ;;
17904
17905amigaos*)
17906  case $host_cpu in
17907  powerpc)
17908    # Since July 2007 AmigaOS4 officially supports .so libraries.
17909    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17910    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17911    ;;
17912  m68k)
17913    library_names_spec='$libname.ixlibrary $libname.a'
17914    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17915    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'
17916    ;;
17917  esac
17918  ;;
17919
17920beos*)
17921  library_names_spec='$libname$shared_ext'
17922  dynamic_linker="$host_os ld.so"
17923  shlibpath_var=LIBRARY_PATH
17924  ;;
17925
17926bsdi[45]*)
17927  version_type=linux # correct to gnu/linux during the next big refactor
17928  need_version=no
17929  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17930  soname_spec='$libname$release$shared_ext$major'
17931  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17932  shlibpath_var=LD_LIBRARY_PATH
17933  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17934  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17935  # the default ld.so.conf also contains /usr/contrib/lib and
17936  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17937  # libtool to hard-code these into programs
17938  ;;
17939
17940cygwin* | mingw* | pw32* | cegcc*)
17941  version_type=windows
17942  shrext_cmds=.dll
17943  need_version=no
17944  need_lib_prefix=no
17945
17946  case $GCC,$cc_basename in
17947  yes,*)
17948    # gcc
17949    library_names_spec='$libname.dll.a'
17950    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17951    postinstall_cmds='base_file=`basename \$file`~
17952      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17953      dldir=$destdir/`dirname \$dlpath`~
17954      test -d \$dldir || mkdir -p \$dldir~
17955      $install_prog $dir/$dlname \$dldir/$dlname~
17956      chmod a+x \$dldir/$dlname~
17957      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17958        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17959      fi'
17960    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17961      dlpath=$dir/\$dldll~
17962       $RM \$dlpath'
17963    shlibpath_overrides_runpath=yes
17964
17965    case $host_os in
17966    cygwin*)
17967      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17968      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17969
17970      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
17971      ;;
17972    mingw* | cegcc*)
17973      # MinGW DLLs use traditional 'lib' prefix
17974      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17975      ;;
17976    pw32*)
17977      # pw32 DLLs use 'pw' prefix rather than 'lib'
17978      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17979      ;;
17980    esac
17981    dynamic_linker='Win32 ld.exe'
17982    ;;
17983
17984  *,cl*)
17985    # Native MSVC
17986    libname_spec='$name'
17987    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17988    library_names_spec='$libname.dll.lib'
17989
17990    case $build_os in
17991    mingw*)
17992      sys_lib_search_path_spec=
17993      lt_save_ifs=$IFS
17994      IFS=';'
17995      for lt_path in $LIB
17996      do
17997        IFS=$lt_save_ifs
17998        # Let DOS variable expansion print the short 8.3 style file name.
17999        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18000        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18001      done
18002      IFS=$lt_save_ifs
18003      # Convert to MSYS style.
18004      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18005      ;;
18006    cygwin*)
18007      # Convert to unix form, then to dos form, then back to unix form
18008      # but this time dos style (no spaces!) so that the unix form looks
18009      # like /cygdrive/c/PROGRA~1:/cygdr...
18010      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18011      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18012      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18013      ;;
18014    *)
18015      sys_lib_search_path_spec=$LIB
18016      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18017        # It is most probably a Windows format PATH.
18018        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18019      else
18020        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18021      fi
18022      # FIXME: find the short name or the path components, as spaces are
18023      # common. (e.g. "Program Files" -> "PROGRA~1")
18024      ;;
18025    esac
18026
18027    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18028    postinstall_cmds='base_file=`basename \$file`~
18029      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18030      dldir=$destdir/`dirname \$dlpath`~
18031      test -d \$dldir || mkdir -p \$dldir~
18032      $install_prog $dir/$dlname \$dldir/$dlname'
18033    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18034      dlpath=$dir/\$dldll~
18035       $RM \$dlpath'
18036    shlibpath_overrides_runpath=yes
18037    dynamic_linker='Win32 link.exe'
18038    ;;
18039
18040  *)
18041    # Assume MSVC wrapper
18042    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18043    dynamic_linker='Win32 ld.exe'
18044    ;;
18045  esac
18046  # FIXME: first we should search . and the directory the executable is in
18047  shlibpath_var=PATH
18048  ;;
18049
18050darwin* | rhapsody*)
18051  dynamic_linker="$host_os dyld"
18052  version_type=darwin
18053  need_lib_prefix=no
18054  need_version=no
18055  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18056  soname_spec='$libname$release$major$shared_ext'
18057  shlibpath_overrides_runpath=yes
18058  shlibpath_var=DYLD_LIBRARY_PATH
18059  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18060
18061  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
18062  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18063  ;;
18064
18065dgux*)
18066  version_type=linux # correct to gnu/linux during the next big refactor
18067  need_lib_prefix=no
18068  need_version=no
18069  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18070  soname_spec='$libname$release$shared_ext$major'
18071  shlibpath_var=LD_LIBRARY_PATH
18072  ;;
18073
18074freebsd* | dragonfly*)
18075  # DragonFly does not have aout.  When/if they implement a new
18076  # versioning mechanism, adjust this.
18077  if test -x /usr/bin/objformat; then
18078    objformat=`/usr/bin/objformat`
18079  else
18080    case $host_os in
18081    freebsd[23].*) objformat=aout ;;
18082    *) objformat=elf ;;
18083    esac
18084  fi
18085  version_type=freebsd-$objformat
18086  case $version_type in
18087    freebsd-elf*)
18088      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18089      soname_spec='$libname$release$shared_ext$major'
18090      need_version=no
18091      need_lib_prefix=no
18092      ;;
18093    freebsd-*)
18094      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18095      need_version=yes
18096      ;;
18097  esac
18098  shlibpath_var=LD_LIBRARY_PATH
18099  case $host_os in
18100  freebsd2.*)
18101    shlibpath_overrides_runpath=yes
18102    ;;
18103  freebsd3.[01]* | freebsdelf3.[01]*)
18104    shlibpath_overrides_runpath=yes
18105    hardcode_into_libs=yes
18106    ;;
18107  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18108  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18109    shlibpath_overrides_runpath=no
18110    hardcode_into_libs=yes
18111    ;;
18112  *) # from 4.6 on, and DragonFly
18113    shlibpath_overrides_runpath=yes
18114    hardcode_into_libs=yes
18115    ;;
18116  esac
18117  ;;
18118
18119haiku*)
18120  version_type=linux # correct to gnu/linux during the next big refactor
18121  need_lib_prefix=no
18122  need_version=no
18123  dynamic_linker="$host_os runtime_loader"
18124  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18125  soname_spec='$libname$release$shared_ext$major'
18126  shlibpath_var=LIBRARY_PATH
18127  shlibpath_overrides_runpath=no
18128  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18129  hardcode_into_libs=yes
18130  ;;
18131
18132hpux9* | hpux10* | hpux11*)
18133  # Give a soname corresponding to the major version so that dld.sl refuses to
18134  # link against other versions.
18135  version_type=sunos
18136  need_lib_prefix=no
18137  need_version=no
18138  case $host_cpu in
18139  ia64*)
18140    shrext_cmds='.so'
18141    hardcode_into_libs=yes
18142    dynamic_linker="$host_os dld.so"
18143    shlibpath_var=LD_LIBRARY_PATH
18144    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18145    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18146    soname_spec='$libname$release$shared_ext$major'
18147    if test 32 = "$HPUX_IA64_MODE"; then
18148      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18149      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18150    else
18151      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18152      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18153    fi
18154    ;;
18155  hppa*64*)
18156    shrext_cmds='.sl'
18157    hardcode_into_libs=yes
18158    dynamic_linker="$host_os dld.sl"
18159    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18160    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18161    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18162    soname_spec='$libname$release$shared_ext$major'
18163    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18164    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18165    ;;
18166  *)
18167    shrext_cmds='.sl'
18168    dynamic_linker="$host_os dld.sl"
18169    shlibpath_var=SHLIB_PATH
18170    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18171    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18172    soname_spec='$libname$release$shared_ext$major'
18173    ;;
18174  esac
18175  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18176  postinstall_cmds='chmod 555 $lib'
18177  # or fails outright, so override atomically:
18178  install_override_mode=555
18179  ;;
18180
18181interix[3-9]*)
18182  version_type=linux # correct to gnu/linux during the next big refactor
18183  need_lib_prefix=no
18184  need_version=no
18185  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18186  soname_spec='$libname$release$shared_ext$major'
18187  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18188  shlibpath_var=LD_LIBRARY_PATH
18189  shlibpath_overrides_runpath=no
18190  hardcode_into_libs=yes
18191  ;;
18192
18193irix5* | irix6* | nonstopux*)
18194  case $host_os in
18195    nonstopux*) version_type=nonstopux ;;
18196    *)
18197	if test yes = "$lt_cv_prog_gnu_ld"; then
18198		version_type=linux # correct to gnu/linux during the next big refactor
18199	else
18200		version_type=irix
18201	fi ;;
18202  esac
18203  need_lib_prefix=no
18204  need_version=no
18205  soname_spec='$libname$release$shared_ext$major'
18206  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18207  case $host_os in
18208  irix5* | nonstopux*)
18209    libsuff= shlibsuff=
18210    ;;
18211  *)
18212    case $LD in # libtool.m4 will add one of these switches to LD
18213    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18214      libsuff= shlibsuff= libmagic=32-bit;;
18215    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18216      libsuff=32 shlibsuff=N32 libmagic=N32;;
18217    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18218      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18219    *) libsuff= shlibsuff= libmagic=never-match;;
18220    esac
18221    ;;
18222  esac
18223  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18224  shlibpath_overrides_runpath=no
18225  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18226  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18227  hardcode_into_libs=yes
18228  ;;
18229
18230# No shared lib support for Linux oldld, aout, or coff.
18231linux*oldld* | linux*aout* | linux*coff*)
18232  dynamic_linker=no
18233  ;;
18234
18235linux*android*)
18236  version_type=none # Android doesn't support versioned libraries.
18237  need_lib_prefix=no
18238  need_version=no
18239  library_names_spec='$libname$release$shared_ext'
18240  soname_spec='$libname$release$shared_ext'
18241  finish_cmds=
18242  shlibpath_var=LD_LIBRARY_PATH
18243  shlibpath_overrides_runpath=yes
18244
18245  # This implies no fast_install, which is unacceptable.
18246  # Some rework will be needed to allow for fast_install
18247  # before this can be enabled.
18248  hardcode_into_libs=yes
18249
18250  dynamic_linker='Android linker'
18251  # Don't embed -rpath directories since the linker doesn't support them.
18252  hardcode_libdir_flag_spec='-L$libdir'
18253  ;;
18254
18255# This must be glibc/ELF.
18256linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18257  version_type=linux # correct to gnu/linux during the next big refactor
18258  need_lib_prefix=no
18259  need_version=no
18260  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18261  soname_spec='$libname$release$shared_ext$major'
18262  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18263  shlibpath_var=LD_LIBRARY_PATH
18264  shlibpath_overrides_runpath=no
18265
18266  # Some binutils ld are patched to set DT_RUNPATH
18267  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18268  $as_echo_n "(cached) " >&6
18269else
18270  lt_cv_shlibpath_overrides_runpath=no
18271    save_LDFLAGS=$LDFLAGS
18272    save_libdir=$libdir
18273    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
18274	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
18275    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18276/* end confdefs.h.  */
18277
18278int
18279main ()
18280{
18281
18282  ;
18283  return 0;
18284}
18285_ACEOF
18286if ac_fn_c_try_link "$LINENO"; then :
18287  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18288  lt_cv_shlibpath_overrides_runpath=yes
18289fi
18290fi
18291rm -f core conftest.err conftest.$ac_objext \
18292    conftest$ac_exeext conftest.$ac_ext
18293    LDFLAGS=$save_LDFLAGS
18294    libdir=$save_libdir
18295
18296fi
18297
18298  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18299
18300  # This implies no fast_install, which is unacceptable.
18301  # Some rework will be needed to allow for fast_install
18302  # before this can be enabled.
18303  hardcode_into_libs=yes
18304
18305  # Add ABI-specific directories to the system library path.
18306  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18307
18308  # Ideally, we could use ldconfig to report *all* directores which are
18309  # searched for libraries, however this is still not possible.  Aside from not
18310  # being certain /sbin/ldconfig is available, command
18311  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18312  # even though it is searched at run-time.  Try to do the best guess by
18313  # appending ld.so.conf contents (and includes) to the search path.
18314  if test -f /etc/ld.so.conf; then
18315    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' ' '`
18316    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18317  fi
18318
18319  # We used to test for /lib/ld.so.1 and disable shared libraries on
18320  # powerpc, because MkLinux only supported shared libraries with the
18321  # GNU dynamic linker.  Since this was broken with cross compilers,
18322  # most powerpc-linux boxes support dynamic linking these days and
18323  # people can always --disable-shared, the test was removed, and we
18324  # assume the GNU/Linux dynamic linker is in use.
18325  dynamic_linker='GNU/Linux ld.so'
18326  ;;
18327
18328netbsd*)
18329  version_type=sunos
18330  need_lib_prefix=no
18331  need_version=no
18332  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18333    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18334    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18335    dynamic_linker='NetBSD (a.out) ld.so'
18336  else
18337    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18338    soname_spec='$libname$release$shared_ext$major'
18339    dynamic_linker='NetBSD ld.elf_so'
18340  fi
18341  shlibpath_var=LD_LIBRARY_PATH
18342  shlibpath_overrides_runpath=yes
18343  hardcode_into_libs=yes
18344  ;;
18345
18346newsos6)
18347  version_type=linux # correct to gnu/linux during the next big refactor
18348  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18349  shlibpath_var=LD_LIBRARY_PATH
18350  shlibpath_overrides_runpath=yes
18351  ;;
18352
18353*nto* | *qnx*)
18354  version_type=qnx
18355  need_lib_prefix=no
18356  need_version=no
18357  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18358  soname_spec='$libname$release$shared_ext$major'
18359  shlibpath_var=LD_LIBRARY_PATH
18360  shlibpath_overrides_runpath=no
18361  hardcode_into_libs=yes
18362  dynamic_linker='ldqnx.so'
18363  ;;
18364
18365openbsd* | bitrig*)
18366  version_type=sunos
18367  sys_lib_dlsearch_path_spec=/usr/lib
18368  need_lib_prefix=no
18369  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18370    need_version=no
18371  else
18372    need_version=yes
18373  fi
18374  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18375  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18376  shlibpath_var=LD_LIBRARY_PATH
18377  shlibpath_overrides_runpath=yes
18378  ;;
18379
18380os2*)
18381  libname_spec='$name'
18382  version_type=windows
18383  shrext_cmds=.dll
18384  need_version=no
18385  need_lib_prefix=no
18386  # OS/2 can only load a DLL with a base name of 8 characters or less.
18387  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18388    v=$($ECHO $release$versuffix | tr -d .-);
18389    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18390    $ECHO $n$v`$shared_ext'
18391  library_names_spec='${libname}_dll.$libext'
18392  dynamic_linker='OS/2 ld.exe'
18393  shlibpath_var=BEGINLIBPATH
18394  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18395  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18396  postinstall_cmds='base_file=`basename \$file`~
18397    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18398    dldir=$destdir/`dirname \$dlpath`~
18399    test -d \$dldir || mkdir -p \$dldir~
18400    $install_prog $dir/$dlname \$dldir/$dlname~
18401    chmod a+x \$dldir/$dlname~
18402    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18403      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18404    fi'
18405  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18406    dlpath=$dir/\$dldll~
18407    $RM \$dlpath'
18408  ;;
18409
18410osf3* | osf4* | osf5*)
18411  version_type=osf
18412  need_lib_prefix=no
18413  need_version=no
18414  soname_spec='$libname$release$shared_ext$major'
18415  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18416  shlibpath_var=LD_LIBRARY_PATH
18417  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18418  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18419  ;;
18420
18421rdos*)
18422  dynamic_linker=no
18423  ;;
18424
18425solaris*)
18426  version_type=linux # correct to gnu/linux during the next big refactor
18427  need_lib_prefix=no
18428  need_version=no
18429  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18430  soname_spec='$libname$release$shared_ext$major'
18431  shlibpath_var=LD_LIBRARY_PATH
18432  shlibpath_overrides_runpath=yes
18433  hardcode_into_libs=yes
18434  # ldd complains unless libraries are executable
18435  postinstall_cmds='chmod +x $lib'
18436  ;;
18437
18438sunos4*)
18439  version_type=sunos
18440  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18441  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18442  shlibpath_var=LD_LIBRARY_PATH
18443  shlibpath_overrides_runpath=yes
18444  if test yes = "$with_gnu_ld"; then
18445    need_lib_prefix=no
18446  fi
18447  need_version=yes
18448  ;;
18449
18450sysv4 | sysv4.3*)
18451  version_type=linux # correct to gnu/linux during the next big refactor
18452  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18453  soname_spec='$libname$release$shared_ext$major'
18454  shlibpath_var=LD_LIBRARY_PATH
18455  case $host_vendor in
18456    sni)
18457      shlibpath_overrides_runpath=no
18458      need_lib_prefix=no
18459      runpath_var=LD_RUN_PATH
18460      ;;
18461    siemens)
18462      need_lib_prefix=no
18463      ;;
18464    motorola)
18465      need_lib_prefix=no
18466      need_version=no
18467      shlibpath_overrides_runpath=no
18468      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18469      ;;
18470  esac
18471  ;;
18472
18473sysv4*MP*)
18474  if test -d /usr/nec; then
18475    version_type=linux # correct to gnu/linux during the next big refactor
18476    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18477    soname_spec='$libname$shared_ext.$major'
18478    shlibpath_var=LD_LIBRARY_PATH
18479  fi
18480  ;;
18481
18482sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18483  version_type=sco
18484  need_lib_prefix=no
18485  need_version=no
18486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18487  soname_spec='$libname$release$shared_ext$major'
18488  shlibpath_var=LD_LIBRARY_PATH
18489  shlibpath_overrides_runpath=yes
18490  hardcode_into_libs=yes
18491  if test yes = "$with_gnu_ld"; then
18492    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18493  else
18494    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18495    case $host_os in
18496      sco3.2v5*)
18497        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18498	;;
18499    esac
18500  fi
18501  sys_lib_dlsearch_path_spec='/usr/lib'
18502  ;;
18503
18504tpf*)
18505  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18506  version_type=linux # correct to gnu/linux during the next big refactor
18507  need_lib_prefix=no
18508  need_version=no
18509  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18510  shlibpath_var=LD_LIBRARY_PATH
18511  shlibpath_overrides_runpath=no
18512  hardcode_into_libs=yes
18513  ;;
18514
18515uts4*)
18516  version_type=linux # correct to gnu/linux during the next big refactor
18517  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18518  soname_spec='$libname$release$shared_ext$major'
18519  shlibpath_var=LD_LIBRARY_PATH
18520  ;;
18521
18522*)
18523  dynamic_linker=no
18524  ;;
18525esac
18526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18527$as_echo "$dynamic_linker" >&6; }
18528test no = "$dynamic_linker" && can_build_shared=no
18529
18530variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18531if test yes = "$GCC"; then
18532  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18533fi
18534
18535if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18536  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18537fi
18538
18539if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18540  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18541fi
18542
18543# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18544configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18545
18546# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18547func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18548
18549# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18550configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
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  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18649$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18650hardcode_action=
18651if test -n "$hardcode_libdir_flag_spec" ||
18652   test -n "$runpath_var" ||
18653   test yes = "$hardcode_automatic"; then
18654
18655  # We can hardcode non-existent directories.
18656  if test no != "$hardcode_direct" &&
18657     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18658     # have to relink, otherwise we might link with an installed library
18659     # when we should be linking with a yet-to-be-installed one
18660     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
18661     test no != "$hardcode_minus_L"; then
18662    # Linking always hardcodes the temporary library directory.
18663    hardcode_action=relink
18664  else
18665    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18666    hardcode_action=immediate
18667  fi
18668else
18669  # We cannot hardcode anything, or else we can only hardcode existing
18670  # directories.
18671  hardcode_action=unsupported
18672fi
18673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
18674$as_echo "$hardcode_action" >&6; }
18675
18676if test relink = "$hardcode_action" ||
18677   test yes = "$inherit_rpath"; then
18678  # Fast installation is not supported
18679  enable_fast_install=no
18680elif test yes = "$shlibpath_overrides_runpath" ||
18681     test no = "$enable_shared"; then
18682  # Fast installation is not necessary
18683  enable_fast_install=needless
18684fi
18685
18686
18687
18688
18689
18690
18691  if test yes != "$enable_dlopen"; then
18692  enable_dlopen=unknown
18693  enable_dlopen_self=unknown
18694  enable_dlopen_self_static=unknown
18695else
18696  lt_cv_dlopen=no
18697  lt_cv_dlopen_libs=
18698
18699  case $host_os in
18700  beos*)
18701    lt_cv_dlopen=load_add_on
18702    lt_cv_dlopen_libs=
18703    lt_cv_dlopen_self=yes
18704    ;;
18705
18706  mingw* | pw32* | cegcc*)
18707    lt_cv_dlopen=LoadLibrary
18708    lt_cv_dlopen_libs=
18709    ;;
18710
18711  cygwin*)
18712    lt_cv_dlopen=dlopen
18713    lt_cv_dlopen_libs=
18714    ;;
18715
18716  darwin*)
18717    # if libdl is installed we need to link against it
18718    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18719$as_echo_n "checking for dlopen in -ldl... " >&6; }
18720if ${ac_cv_lib_dl_dlopen+:} false; then :
18721  $as_echo_n "(cached) " >&6
18722else
18723  ac_check_lib_save_LIBS=$LIBS
18724LIBS="-ldl  $LIBS"
18725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726/* end confdefs.h.  */
18727
18728/* Override any GCC internal prototype to avoid an error.
18729   Use char because int might match the return type of a GCC
18730   builtin and then its argument prototype would still apply.  */
18731#ifdef __cplusplus
18732extern "C"
18733#endif
18734char dlopen ();
18735int
18736main ()
18737{
18738return dlopen ();
18739  ;
18740  return 0;
18741}
18742_ACEOF
18743if ac_fn_c_try_link "$LINENO"; then :
18744  ac_cv_lib_dl_dlopen=yes
18745else
18746  ac_cv_lib_dl_dlopen=no
18747fi
18748rm -f core conftest.err conftest.$ac_objext \
18749    conftest$ac_exeext conftest.$ac_ext
18750LIBS=$ac_check_lib_save_LIBS
18751fi
18752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18753$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18754if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18755  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18756else
18757
18758    lt_cv_dlopen=dyld
18759    lt_cv_dlopen_libs=
18760    lt_cv_dlopen_self=yes
18761
18762fi
18763
18764    ;;
18765
18766  tpf*)
18767    # Don't try to run any link tests for TPF.  We know it's impossible
18768    # because TPF is a cross-compiler, and we know how we open DSOs.
18769    lt_cv_dlopen=dlopen
18770    lt_cv_dlopen_libs=
18771    lt_cv_dlopen_self=no
18772    ;;
18773
18774  *)
18775    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
18776if test "x$ac_cv_func_shl_load" = xyes; then :
18777  lt_cv_dlopen=shl_load
18778else
18779  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
18780$as_echo_n "checking for shl_load in -ldld... " >&6; }
18781if ${ac_cv_lib_dld_shl_load+:} false; then :
18782  $as_echo_n "(cached) " >&6
18783else
18784  ac_check_lib_save_LIBS=$LIBS
18785LIBS="-ldld  $LIBS"
18786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787/* end confdefs.h.  */
18788
18789/* Override any GCC internal prototype to avoid an error.
18790   Use char because int might match the return type of a GCC
18791   builtin and then its argument prototype would still apply.  */
18792#ifdef __cplusplus
18793extern "C"
18794#endif
18795char shl_load ();
18796int
18797main ()
18798{
18799return shl_load ();
18800  ;
18801  return 0;
18802}
18803_ACEOF
18804if ac_fn_c_try_link "$LINENO"; then :
18805  ac_cv_lib_dld_shl_load=yes
18806else
18807  ac_cv_lib_dld_shl_load=no
18808fi
18809rm -f core conftest.err conftest.$ac_objext \
18810    conftest$ac_exeext conftest.$ac_ext
18811LIBS=$ac_check_lib_save_LIBS
18812fi
18813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
18814$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
18815if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
18816  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
18817else
18818  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
18819if test "x$ac_cv_func_dlopen" = xyes; then :
18820  lt_cv_dlopen=dlopen
18821else
18822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
18823$as_echo_n "checking for dlopen in -ldl... " >&6; }
18824if ${ac_cv_lib_dl_dlopen+:} false; then :
18825  $as_echo_n "(cached) " >&6
18826else
18827  ac_check_lib_save_LIBS=$LIBS
18828LIBS="-ldl  $LIBS"
18829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18830/* end confdefs.h.  */
18831
18832/* Override any GCC internal prototype to avoid an error.
18833   Use char because int might match the return type of a GCC
18834   builtin and then its argument prototype would still apply.  */
18835#ifdef __cplusplus
18836extern "C"
18837#endif
18838char dlopen ();
18839int
18840main ()
18841{
18842return dlopen ();
18843  ;
18844  return 0;
18845}
18846_ACEOF
18847if ac_fn_c_try_link "$LINENO"; then :
18848  ac_cv_lib_dl_dlopen=yes
18849else
18850  ac_cv_lib_dl_dlopen=no
18851fi
18852rm -f core conftest.err conftest.$ac_objext \
18853    conftest$ac_exeext conftest.$ac_ext
18854LIBS=$ac_check_lib_save_LIBS
18855fi
18856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
18857$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
18858if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
18859  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
18860else
18861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
18862$as_echo_n "checking for dlopen in -lsvld... " >&6; }
18863if ${ac_cv_lib_svld_dlopen+:} false; then :
18864  $as_echo_n "(cached) " >&6
18865else
18866  ac_check_lib_save_LIBS=$LIBS
18867LIBS="-lsvld  $LIBS"
18868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18869/* end confdefs.h.  */
18870
18871/* Override any GCC internal prototype to avoid an error.
18872   Use char because int might match the return type of a GCC
18873   builtin and then its argument prototype would still apply.  */
18874#ifdef __cplusplus
18875extern "C"
18876#endif
18877char dlopen ();
18878int
18879main ()
18880{
18881return dlopen ();
18882  ;
18883  return 0;
18884}
18885_ACEOF
18886if ac_fn_c_try_link "$LINENO"; then :
18887  ac_cv_lib_svld_dlopen=yes
18888else
18889  ac_cv_lib_svld_dlopen=no
18890fi
18891rm -f core conftest.err conftest.$ac_objext \
18892    conftest$ac_exeext conftest.$ac_ext
18893LIBS=$ac_check_lib_save_LIBS
18894fi
18895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18896$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18897if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
18898  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
18899else
18900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18901$as_echo_n "checking for dld_link in -ldld... " >&6; }
18902if ${ac_cv_lib_dld_dld_link+:} false; then :
18903  $as_echo_n "(cached) " >&6
18904else
18905  ac_check_lib_save_LIBS=$LIBS
18906LIBS="-ldld  $LIBS"
18907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18908/* end confdefs.h.  */
18909
18910/* Override any GCC internal prototype to avoid an error.
18911   Use char because int might match the return type of a GCC
18912   builtin and then its argument prototype would still apply.  */
18913#ifdef __cplusplus
18914extern "C"
18915#endif
18916char dld_link ();
18917int
18918main ()
18919{
18920return dld_link ();
18921  ;
18922  return 0;
18923}
18924_ACEOF
18925if ac_fn_c_try_link "$LINENO"; then :
18926  ac_cv_lib_dld_dld_link=yes
18927else
18928  ac_cv_lib_dld_dld_link=no
18929fi
18930rm -f core conftest.err conftest.$ac_objext \
18931    conftest$ac_exeext conftest.$ac_ext
18932LIBS=$ac_check_lib_save_LIBS
18933fi
18934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18935$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18936if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
18937  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
18938fi
18939
18940
18941fi
18942
18943
18944fi
18945
18946
18947fi
18948
18949
18950fi
18951
18952
18953fi
18954
18955    ;;
18956  esac
18957
18958  if test no = "$lt_cv_dlopen"; then
18959    enable_dlopen=no
18960  else
18961    enable_dlopen=yes
18962  fi
18963
18964  case $lt_cv_dlopen in
18965  dlopen)
18966    save_CPPFLAGS=$CPPFLAGS
18967    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18968
18969    save_LDFLAGS=$LDFLAGS
18970    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18971
18972    save_LIBS=$LIBS
18973    LIBS="$lt_cv_dlopen_libs $LIBS"
18974
18975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18976$as_echo_n "checking whether a program can dlopen itself... " >&6; }
18977if ${lt_cv_dlopen_self+:} false; then :
18978  $as_echo_n "(cached) " >&6
18979else
18980  	  if test yes = "$cross_compiling"; then :
18981  lt_cv_dlopen_self=cross
18982else
18983  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18984  lt_status=$lt_dlunknown
18985  cat > conftest.$ac_ext <<_LT_EOF
18986#line $LINENO "configure"
18987#include "confdefs.h"
18988
18989#if HAVE_DLFCN_H
18990#include <dlfcn.h>
18991#endif
18992
18993#include <stdio.h>
18994
18995#ifdef RTLD_GLOBAL
18996#  define LT_DLGLOBAL		RTLD_GLOBAL
18997#else
18998#  ifdef DL_GLOBAL
18999#    define LT_DLGLOBAL		DL_GLOBAL
19000#  else
19001#    define LT_DLGLOBAL		0
19002#  endif
19003#endif
19004
19005/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19006   find out it does not work in some platform. */
19007#ifndef LT_DLLAZY_OR_NOW
19008#  ifdef RTLD_LAZY
19009#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19010#  else
19011#    ifdef DL_LAZY
19012#      define LT_DLLAZY_OR_NOW		DL_LAZY
19013#    else
19014#      ifdef RTLD_NOW
19015#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19016#      else
19017#        ifdef DL_NOW
19018#          define LT_DLLAZY_OR_NOW	DL_NOW
19019#        else
19020#          define LT_DLLAZY_OR_NOW	0
19021#        endif
19022#      endif
19023#    endif
19024#  endif
19025#endif
19026
19027/* When -fvisibility=hidden is used, assume the code has been annotated
19028   correspondingly for the symbols needed.  */
19029#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19030int fnord () __attribute__((visibility("default")));
19031#endif
19032
19033int fnord () { return 42; }
19034int main ()
19035{
19036  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19037  int status = $lt_dlunknown;
19038
19039  if (self)
19040    {
19041      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19042      else
19043        {
19044	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19045          else puts (dlerror ());
19046	}
19047      /* dlclose (self); */
19048    }
19049  else
19050    puts (dlerror ());
19051
19052  return status;
19053}
19054_LT_EOF
19055  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19056  (eval $ac_link) 2>&5
19057  ac_status=$?
19058  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19059  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19060    (./conftest; exit; ) >&5 2>/dev/null
19061    lt_status=$?
19062    case x$lt_status in
19063      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19064      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19065      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
19066    esac
19067  else :
19068    # compilation failed
19069    lt_cv_dlopen_self=no
19070  fi
19071fi
19072rm -fr conftest*
19073
19074
19075fi
19076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
19077$as_echo "$lt_cv_dlopen_self" >&6; }
19078
19079    if test yes = "$lt_cv_dlopen_self"; then
19080      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
19081      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
19082$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
19083if ${lt_cv_dlopen_self_static+:} false; then :
19084  $as_echo_n "(cached) " >&6
19085else
19086  	  if test yes = "$cross_compiling"; then :
19087  lt_cv_dlopen_self_static=cross
19088else
19089  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19090  lt_status=$lt_dlunknown
19091  cat > conftest.$ac_ext <<_LT_EOF
19092#line $LINENO "configure"
19093#include "confdefs.h"
19094
19095#if HAVE_DLFCN_H
19096#include <dlfcn.h>
19097#endif
19098
19099#include <stdio.h>
19100
19101#ifdef RTLD_GLOBAL
19102#  define LT_DLGLOBAL		RTLD_GLOBAL
19103#else
19104#  ifdef DL_GLOBAL
19105#    define LT_DLGLOBAL		DL_GLOBAL
19106#  else
19107#    define LT_DLGLOBAL		0
19108#  endif
19109#endif
19110
19111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19112   find out it does not work in some platform. */
19113#ifndef LT_DLLAZY_OR_NOW
19114#  ifdef RTLD_LAZY
19115#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
19116#  else
19117#    ifdef DL_LAZY
19118#      define LT_DLLAZY_OR_NOW		DL_LAZY
19119#    else
19120#      ifdef RTLD_NOW
19121#        define LT_DLLAZY_OR_NOW	RTLD_NOW
19122#      else
19123#        ifdef DL_NOW
19124#          define LT_DLLAZY_OR_NOW	DL_NOW
19125#        else
19126#          define LT_DLLAZY_OR_NOW	0
19127#        endif
19128#      endif
19129#    endif
19130#  endif
19131#endif
19132
19133/* When -fvisibility=hidden is used, assume the code has been annotated
19134   correspondingly for the symbols needed.  */
19135#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19136int fnord () __attribute__((visibility("default")));
19137#endif
19138
19139int fnord () { return 42; }
19140int main ()
19141{
19142  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19143  int status = $lt_dlunknown;
19144
19145  if (self)
19146    {
19147      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
19148      else
19149        {
19150	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
19151          else puts (dlerror ());
19152	}
19153      /* dlclose (self); */
19154    }
19155  else
19156    puts (dlerror ());
19157
19158  return status;
19159}
19160_LT_EOF
19161  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19162  (eval $ac_link) 2>&5
19163  ac_status=$?
19164  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19165  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
19166    (./conftest; exit; ) >&5 2>/dev/null
19167    lt_status=$?
19168    case x$lt_status in
19169      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19170      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19171      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
19172    esac
19173  else :
19174    # compilation failed
19175    lt_cv_dlopen_self_static=no
19176  fi
19177fi
19178rm -fr conftest*
19179
19180
19181fi
19182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
19183$as_echo "$lt_cv_dlopen_self_static" >&6; }
19184    fi
19185
19186    CPPFLAGS=$save_CPPFLAGS
19187    LDFLAGS=$save_LDFLAGS
19188    LIBS=$save_LIBS
19189    ;;
19190  esac
19191
19192  case $lt_cv_dlopen_self in
19193  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19194  *) enable_dlopen_self=unknown ;;
19195  esac
19196
19197  case $lt_cv_dlopen_self_static in
19198  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19199  *) enable_dlopen_self_static=unknown ;;
19200  esac
19201fi
19202
19203
19204
19205
19206
19207
19208
19209
19210
19211
19212
19213
19214
19215
19216
19217
19218
19219striplib=
19220old_striplib=
19221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
19222$as_echo_n "checking whether stripping libraries is possible... " >&6; }
19223if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
19224  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19225  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19227$as_echo "yes" >&6; }
19228else
19229# FIXME - insert some real tests, host_os isn't really good enough
19230  case $host_os in
19231  darwin*)
19232    if test -n "$STRIP"; then
19233      striplib="$STRIP -x"
19234      old_striplib="$STRIP -S"
19235      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236$as_echo "yes" >&6; }
19237    else
19238      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19239$as_echo "no" >&6; }
19240    fi
19241    ;;
19242  *)
19243    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244$as_echo "no" >&6; }
19245    ;;
19246  esac
19247fi
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260  # Report what library types will actually be built
19261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
19262$as_echo_n "checking if libtool supports shared libraries... " >&6; }
19263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
19264$as_echo "$can_build_shared" >&6; }
19265
19266  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
19267$as_echo_n "checking whether to build shared libraries... " >&6; }
19268  test no = "$can_build_shared" && enable_shared=no
19269
19270  # On AIX, shared libraries and static libraries use the same namespace, and
19271  # are all built from PIC.
19272  case $host_os in
19273  aix3*)
19274    test yes = "$enable_shared" && enable_static=no
19275    if test -n "$RANLIB"; then
19276      archive_cmds="$archive_cmds~\$RANLIB \$lib"
19277      postinstall_cmds='$RANLIB $lib'
19278    fi
19279    ;;
19280
19281  aix[4-9]*)
19282    if test ia64 != "$host_cpu"; then
19283      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
19284      yes,aix,yes) ;;			# shared object as lib.so file only
19285      yes,svr4,*) ;;			# shared object as lib.so archive member only
19286      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
19287      esac
19288    fi
19289    ;;
19290  esac
19291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
19292$as_echo "$enable_shared" >&6; }
19293
19294  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
19295$as_echo_n "checking whether to build static libraries... " >&6; }
19296  # Make sure either enable_shared or enable_static is yes.
19297  test yes = "$enable_shared" || enable_static=yes
19298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
19299$as_echo "$enable_static" >&6; }
19300
19301
19302
19303
19304fi
19305ac_ext=c
19306ac_cpp='$CPP $CPPFLAGS'
19307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310
19311CC=$lt_save_CC
19312
19313      if test -n "$CXX" && ( test no != "$CXX" &&
19314    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
19315    (test g++ != "$CXX"))); then
19316  ac_ext=cpp
19317ac_cpp='$CXXCPP $CPPFLAGS'
19318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
19322$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
19323if test -z "$CXXCPP"; then
19324  if ${ac_cv_prog_CXXCPP+:} false; then :
19325  $as_echo_n "(cached) " >&6
19326else
19327      # Double quotes because CXXCPP needs to be expanded
19328    for CXXCPP in "$CXX -E" "/lib/cpp"
19329    do
19330      ac_preproc_ok=false
19331for ac_cxx_preproc_warn_flag in '' yes
19332do
19333  # Use a header file that comes with gcc, so configuring glibc
19334  # with a fresh cross-compiler works.
19335  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336  # <limits.h> exists even on freestanding compilers.
19337  # On the NeXT, cc -E runs the code through the compiler's parser,
19338  # not just through cpp. "Syntax error" is here to catch this case.
19339  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19340/* end confdefs.h.  */
19341#ifdef __STDC__
19342# include <limits.h>
19343#else
19344# include <assert.h>
19345#endif
19346		     Syntax error
19347_ACEOF
19348if ac_fn_cxx_try_cpp "$LINENO"; then :
19349
19350else
19351  # Broken: fails on valid input.
19352continue
19353fi
19354rm -f conftest.err conftest.i conftest.$ac_ext
19355
19356  # OK, works on sane cases.  Now check whether nonexistent headers
19357  # can be detected and how.
19358  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19359/* end confdefs.h.  */
19360#include <ac_nonexistent.h>
19361_ACEOF
19362if ac_fn_cxx_try_cpp "$LINENO"; then :
19363  # Broken: success on invalid input.
19364continue
19365else
19366  # Passes both tests.
19367ac_preproc_ok=:
19368break
19369fi
19370rm -f conftest.err conftest.i conftest.$ac_ext
19371
19372done
19373# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19374rm -f conftest.i conftest.err conftest.$ac_ext
19375if $ac_preproc_ok; then :
19376  break
19377fi
19378
19379    done
19380    ac_cv_prog_CXXCPP=$CXXCPP
19381
19382fi
19383  CXXCPP=$ac_cv_prog_CXXCPP
19384else
19385  ac_cv_prog_CXXCPP=$CXXCPP
19386fi
19387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
19388$as_echo "$CXXCPP" >&6; }
19389ac_preproc_ok=false
19390for ac_cxx_preproc_warn_flag in '' yes
19391do
19392  # Use a header file that comes with gcc, so configuring glibc
19393  # with a fresh cross-compiler works.
19394  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19395  # <limits.h> exists even on freestanding compilers.
19396  # On the NeXT, cc -E runs the code through the compiler's parser,
19397  # not just through cpp. "Syntax error" is here to catch this case.
19398  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19399/* end confdefs.h.  */
19400#ifdef __STDC__
19401# include <limits.h>
19402#else
19403# include <assert.h>
19404#endif
19405		     Syntax error
19406_ACEOF
19407if ac_fn_cxx_try_cpp "$LINENO"; then :
19408
19409else
19410  # Broken: fails on valid input.
19411continue
19412fi
19413rm -f conftest.err conftest.i conftest.$ac_ext
19414
19415  # OK, works on sane cases.  Now check whether nonexistent headers
19416  # can be detected and how.
19417  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418/* end confdefs.h.  */
19419#include <ac_nonexistent.h>
19420_ACEOF
19421if ac_fn_cxx_try_cpp "$LINENO"; then :
19422  # Broken: success on invalid input.
19423continue
19424else
19425  # Passes both tests.
19426ac_preproc_ok=:
19427break
19428fi
19429rm -f conftest.err conftest.i conftest.$ac_ext
19430
19431done
19432# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
19433rm -f conftest.i conftest.err conftest.$ac_ext
19434if $ac_preproc_ok; then :
19435
19436else
19437  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19439as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
19440See \`config.log' for more details" "$LINENO" 5; }
19441fi
19442
19443ac_ext=c
19444ac_cpp='$CPP $CPPFLAGS'
19445ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447ac_compiler_gnu=$ac_cv_c_compiler_gnu
19448
19449else
19450  _lt_caught_CXX_error=yes
19451fi
19452
19453ac_ext=cpp
19454ac_cpp='$CXXCPP $CPPFLAGS'
19455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19458
19459archive_cmds_need_lc_CXX=no
19460allow_undefined_flag_CXX=
19461always_export_symbols_CXX=no
19462archive_expsym_cmds_CXX=
19463compiler_needs_object_CXX=no
19464export_dynamic_flag_spec_CXX=
19465hardcode_direct_CXX=no
19466hardcode_direct_absolute_CXX=no
19467hardcode_libdir_flag_spec_CXX=
19468hardcode_libdir_separator_CXX=
19469hardcode_minus_L_CXX=no
19470hardcode_shlibpath_var_CXX=unsupported
19471hardcode_automatic_CXX=no
19472inherit_rpath_CXX=no
19473module_cmds_CXX=
19474module_expsym_cmds_CXX=
19475link_all_deplibs_CXX=unknown
19476old_archive_cmds_CXX=$old_archive_cmds
19477reload_flag_CXX=$reload_flag
19478reload_cmds_CXX=$reload_cmds
19479no_undefined_flag_CXX=
19480whole_archive_flag_spec_CXX=
19481enable_shared_with_static_runtimes_CXX=no
19482
19483# Source file extension for C++ test sources.
19484ac_ext=cpp
19485
19486# Object file extension for compiled C++ test sources.
19487objext=o
19488objext_CXX=$objext
19489
19490# No sense in running all these tests if we already determined that
19491# the CXX compiler isn't working.  Some variables (like enable_shared)
19492# are currently assumed to apply to all compilers on this platform,
19493# and will be corrupted by setting them based on a non-working compiler.
19494if test yes != "$_lt_caught_CXX_error"; then
19495  # Code to be used in simple compile tests
19496  lt_simple_compile_test_code="int some_variable = 0;"
19497
19498  # Code to be used in simple link tests
19499  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
19500
19501  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19502
19503
19504
19505
19506
19507
19508# If no C compiler was specified, use CC.
19509LTCC=${LTCC-"$CC"}
19510
19511# If no C compiler flags were specified, use CFLAGS.
19512LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19513
19514# Allow CC to be a program name with arguments.
19515compiler=$CC
19516
19517
19518  # save warnings/boilerplate of simple test code
19519  ac_outfile=conftest.$ac_objext
19520echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19521eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19522_lt_compiler_boilerplate=`cat conftest.err`
19523$RM conftest*
19524
19525  ac_outfile=conftest.$ac_objext
19526echo "$lt_simple_link_test_code" >conftest.$ac_ext
19527eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19528_lt_linker_boilerplate=`cat conftest.err`
19529$RM -r conftest*
19530
19531
19532  # Allow CC to be a program name with arguments.
19533  lt_save_CC=$CC
19534  lt_save_CFLAGS=$CFLAGS
19535  lt_save_LD=$LD
19536  lt_save_GCC=$GCC
19537  GCC=$GXX
19538  lt_save_with_gnu_ld=$with_gnu_ld
19539  lt_save_path_LD=$lt_cv_path_LD
19540  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
19541    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
19542  else
19543    $as_unset lt_cv_prog_gnu_ld
19544  fi
19545  if test -n "${lt_cv_path_LDCXX+set}"; then
19546    lt_cv_path_LD=$lt_cv_path_LDCXX
19547  else
19548    $as_unset lt_cv_path_LD
19549  fi
19550  test -z "${LDCXX+set}" || LD=$LDCXX
19551  CC=${CXX-"c++"}
19552  CFLAGS=$CXXFLAGS
19553  compiler=$CC
19554  compiler_CXX=$CC
19555  func_cc_basename $compiler
19556cc_basename=$func_cc_basename_result
19557
19558
19559  if test -n "$compiler"; then
19560    # We don't want -fno-exception when compiling C++ code, so set the
19561    # no_builtin_flag separately
19562    if test yes = "$GXX"; then
19563      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
19564    else
19565      lt_prog_compiler_no_builtin_flag_CXX=
19566    fi
19567
19568    if test yes = "$GXX"; then
19569      # Set up default GNU C++ configuration
19570
19571
19572
19573# Check whether --with-gnu-ld was given.
19574if test "${with_gnu_ld+set}" = set; then :
19575  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
19576else
19577  with_gnu_ld=no
19578fi
19579
19580ac_prog=ld
19581if test yes = "$GCC"; then
19582  # Check if gcc -print-prog-name=ld gives a path.
19583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
19584$as_echo_n "checking for ld used by $CC... " >&6; }
19585  case $host in
19586  *-*-mingw*)
19587    # gcc leaves a trailing carriage return, which upsets mingw
19588    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19589  *)
19590    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19591  esac
19592  case $ac_prog in
19593    # Accept absolute paths.
19594    [\\/]* | ?:[\\/]*)
19595      re_direlt='/[^/][^/]*/\.\./'
19596      # Canonicalize the pathname of ld
19597      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
19598      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
19599	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
19600      done
19601      test -z "$LD" && LD=$ac_prog
19602      ;;
19603  "")
19604    # If it fails, then pretend we aren't using GCC.
19605    ac_prog=ld
19606    ;;
19607  *)
19608    # If it is relative, then search for the first ld in PATH.
19609    with_gnu_ld=unknown
19610    ;;
19611  esac
19612elif test yes = "$with_gnu_ld"; then
19613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
19614$as_echo_n "checking for GNU ld... " >&6; }
19615else
19616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
19617$as_echo_n "checking for non-GNU ld... " >&6; }
19618fi
19619if ${lt_cv_path_LD+:} false; then :
19620  $as_echo_n "(cached) " >&6
19621else
19622  if test -z "$LD"; then
19623  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
19624  for ac_dir in $PATH; do
19625    IFS=$lt_save_ifs
19626    test -z "$ac_dir" && ac_dir=.
19627    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
19628      lt_cv_path_LD=$ac_dir/$ac_prog
19629      # Check to see if the program is GNU ld.  I'd rather use --version,
19630      # but apparently some variants of GNU ld only accept -v.
19631      # Break only if it was the GNU/non-GNU ld that we prefer.
19632      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
19633      *GNU* | *'with BFD'*)
19634	test no != "$with_gnu_ld" && break
19635	;;
19636      *)
19637	test yes != "$with_gnu_ld" && break
19638	;;
19639      esac
19640    fi
19641  done
19642  IFS=$lt_save_ifs
19643else
19644  lt_cv_path_LD=$LD # Let the user override the test with a path.
19645fi
19646fi
19647
19648LD=$lt_cv_path_LD
19649if test -n "$LD"; then
19650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
19651$as_echo "$LD" >&6; }
19652else
19653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19654$as_echo "no" >&6; }
19655fi
19656test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
19657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
19658$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
19659if ${lt_cv_prog_gnu_ld+:} false; then :
19660  $as_echo_n "(cached) " >&6
19661else
19662  # I'd rather use --version here, but apparently some GNU lds only accept -v.
19663case `$LD -v 2>&1 </dev/null` in
19664*GNU* | *'with BFD'*)
19665  lt_cv_prog_gnu_ld=yes
19666  ;;
19667*)
19668  lt_cv_prog_gnu_ld=no
19669  ;;
19670esac
19671fi
19672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
19673$as_echo "$lt_cv_prog_gnu_ld" >&6; }
19674with_gnu_ld=$lt_cv_prog_gnu_ld
19675
19676
19677
19678
19679
19680
19681
19682      # Check if GNU C++ uses GNU ld as the underlying linker, since the
19683      # archiving commands below assume that GNU ld is being used.
19684      if test yes = "$with_gnu_ld"; then
19685        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
19686        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'
19687
19688        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
19689        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
19690
19691        # If archive_cmds runs LD, not CC, wlarc should be empty
19692        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
19693        #     investigate it a little bit more. (MM)
19694        wlarc='$wl'
19695
19696        # ancient GNU ld didn't support --whole-archive et. al.
19697        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
19698	  $GREP 'no-whole-archive' > /dev/null; then
19699          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
19700        else
19701          whole_archive_flag_spec_CXX=
19702        fi
19703      else
19704        with_gnu_ld=no
19705        wlarc=
19706
19707        # A generic and very simple default shared library creation
19708        # command for GNU C++ for the case where it uses the native
19709        # linker, instead of GNU ld.  If possible, this setting should
19710        # overridden to take advantage of the native linker features on
19711        # the platform it is being used on.
19712        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19713      fi
19714
19715      # Commands to make compiler produce verbose output that lists
19716      # what "hidden" libraries, object files and flags are used when
19717      # linking a shared library.
19718      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
19719
19720    else
19721      GXX=no
19722      with_gnu_ld=no
19723      wlarc=
19724    fi
19725
19726    # PORTME: fill in a description of your system's C++ link characteristics
19727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19728$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19729    ld_shlibs_CXX=yes
19730    case $host_os in
19731      aix3*)
19732        # FIXME: insert proper C++ library support
19733        ld_shlibs_CXX=no
19734        ;;
19735      aix[4-9]*)
19736        if test ia64 = "$host_cpu"; then
19737          # On IA64, the linker does run time linking by default, so we don't
19738          # have to do anything special.
19739          aix_use_runtimelinking=no
19740          exp_sym_flag='-Bexport'
19741          no_entry_flag=
19742        else
19743          aix_use_runtimelinking=no
19744
19745          # Test if we are trying to use run time linking or normal
19746          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19747          # have runtime linking enabled, and use it for executables.
19748          # For shared libraries, we enable/disable runtime linking
19749          # depending on the kind of the shared library created -
19750          # when "with_aix_soname,aix_use_runtimelinking" is:
19751          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
19752          # "aix,yes"  lib.so          shared, rtl:yes, for executables
19753          #            lib.a           static archive
19754          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
19755          #            lib.a(lib.so.V) shared, rtl:no,  for executables
19756          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
19757          #            lib.a(lib.so.V) shared, rtl:no
19758          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
19759          #            lib.a           static archive
19760          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
19761	    for ld_flag in $LDFLAGS; do
19762	      case $ld_flag in
19763	      *-brtl*)
19764	        aix_use_runtimelinking=yes
19765	        break
19766	        ;;
19767	      esac
19768	    done
19769	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
19770	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
19771	      # so we don't have lib.a shared libs to link our executables.
19772	      # We have to force runtime linking in this case.
19773	      aix_use_runtimelinking=yes
19774	      LDFLAGS="$LDFLAGS -Wl,-brtl"
19775	    fi
19776	    ;;
19777          esac
19778
19779          exp_sym_flag='-bexport'
19780          no_entry_flag='-bnoentry'
19781        fi
19782
19783        # When large executables or shared objects are built, AIX ld can
19784        # have problems creating the table of contents.  If linking a library
19785        # or program results in "error TOC overflow" add -mminimal-toc to
19786        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
19787        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19788
19789        archive_cmds_CXX=''
19790        hardcode_direct_CXX=yes
19791        hardcode_direct_absolute_CXX=yes
19792        hardcode_libdir_separator_CXX=':'
19793        link_all_deplibs_CXX=yes
19794        file_list_spec_CXX='$wl-f,'
19795        case $with_aix_soname,$aix_use_runtimelinking in
19796        aix,*) ;;	# no import file
19797        svr4,* | *,yes) # use import file
19798          # The Import File defines what to hardcode.
19799          hardcode_direct_CXX=no
19800          hardcode_direct_absolute_CXX=no
19801          ;;
19802        esac
19803
19804        if test yes = "$GXX"; then
19805          case $host_os in aix4.[012]|aix4.[012].*)
19806          # We only want to do this on AIX 4.2 and lower, the check
19807          # below for broken collect2 doesn't work under 4.3+
19808	  collect2name=`$CC -print-prog-name=collect2`
19809	  if test -f "$collect2name" &&
19810	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
19811	  then
19812	    # We have reworked collect2
19813	    :
19814	  else
19815	    # We have old collect2
19816	    hardcode_direct_CXX=unsupported
19817	    # It fails to find uninstalled libraries when the uninstalled
19818	    # path is not listed in the libpath.  Setting hardcode_minus_L
19819	    # to unsupported forces relinking
19820	    hardcode_minus_L_CXX=yes
19821	    hardcode_libdir_flag_spec_CXX='-L$libdir'
19822	    hardcode_libdir_separator_CXX=
19823	  fi
19824          esac
19825          shared_flag='-shared'
19826	  if test yes = "$aix_use_runtimelinking"; then
19827	    shared_flag=$shared_flag' $wl-G'
19828	  fi
19829	  # Need to ensure runtime linking is disabled for the traditional
19830	  # shared library, or the linker may eventually find shared libraries
19831	  # /with/ Import File - we do not want to mix them.
19832	  shared_flag_aix='-shared'
19833	  shared_flag_svr4='-shared $wl-G'
19834        else
19835          # not using gcc
19836          if test ia64 = "$host_cpu"; then
19837	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19838	  # chokes on -Wl,-G. The following line is correct:
19839	  shared_flag='-G'
19840          else
19841	    if test yes = "$aix_use_runtimelinking"; then
19842	      shared_flag='$wl-G'
19843	    else
19844	      shared_flag='$wl-bM:SRE'
19845	    fi
19846	    shared_flag_aix='$wl-bM:SRE'
19847	    shared_flag_svr4='$wl-G'
19848          fi
19849        fi
19850
19851        export_dynamic_flag_spec_CXX='$wl-bexpall'
19852        # It seems that -bexpall does not export symbols beginning with
19853        # underscore (_), so it is better to generate a list of symbols to
19854	# export.
19855        always_export_symbols_CXX=yes
19856	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
19857          # Warning - without using the other runtime loading flags (-brtl),
19858          # -berok will link without error, but may produce a broken library.
19859          # The "-G" linker flag allows undefined symbols.
19860          no_undefined_flag_CXX='-bernotok'
19861          # Determine the default libpath from the value encoded in an empty
19862          # executable.
19863          if test set = "${lt_cv_aix_libpath+set}"; then
19864  aix_libpath=$lt_cv_aix_libpath
19865else
19866  if ${lt_cv_aix_libpath__CXX+:} false; then :
19867  $as_echo_n "(cached) " >&6
19868else
19869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19870/* end confdefs.h.  */
19871
19872int
19873main ()
19874{
19875
19876  ;
19877  return 0;
19878}
19879_ACEOF
19880if ac_fn_cxx_try_link "$LINENO"; then :
19881
19882  lt_aix_libpath_sed='
19883      /Import File Strings/,/^$/ {
19884	  /^0/ {
19885	      s/^0  *\([^ ]*\) *$/\1/
19886	      p
19887	  }
19888      }'
19889  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19890  # Check for a 64-bit object if we didn't find anything.
19891  if test -z "$lt_cv_aix_libpath__CXX"; then
19892    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19893  fi
19894fi
19895rm -f core conftest.err conftest.$ac_objext \
19896    conftest$ac_exeext conftest.$ac_ext
19897  if test -z "$lt_cv_aix_libpath__CXX"; then
19898    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19899  fi
19900
19901fi
19902
19903  aix_libpath=$lt_cv_aix_libpath__CXX
19904fi
19905
19906          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19907
19908          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
19909        else
19910          if test ia64 = "$host_cpu"; then
19911	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
19912	    allow_undefined_flag_CXX="-z nodefs"
19913	    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"
19914          else
19915	    # Determine the default libpath from the value encoded in an
19916	    # empty executable.
19917	    if test set = "${lt_cv_aix_libpath+set}"; then
19918  aix_libpath=$lt_cv_aix_libpath
19919else
19920  if ${lt_cv_aix_libpath__CXX+:} false; then :
19921  $as_echo_n "(cached) " >&6
19922else
19923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19924/* end confdefs.h.  */
19925
19926int
19927main ()
19928{
19929
19930  ;
19931  return 0;
19932}
19933_ACEOF
19934if ac_fn_cxx_try_link "$LINENO"; then :
19935
19936  lt_aix_libpath_sed='
19937      /Import File Strings/,/^$/ {
19938	  /^0/ {
19939	      s/^0  *\([^ ]*\) *$/\1/
19940	      p
19941	  }
19942      }'
19943  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19944  # Check for a 64-bit object if we didn't find anything.
19945  if test -z "$lt_cv_aix_libpath__CXX"; then
19946    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19947  fi
19948fi
19949rm -f core conftest.err conftest.$ac_objext \
19950    conftest$ac_exeext conftest.$ac_ext
19951  if test -z "$lt_cv_aix_libpath__CXX"; then
19952    lt_cv_aix_libpath__CXX=/usr/lib:/lib
19953  fi
19954
19955fi
19956
19957  aix_libpath=$lt_cv_aix_libpath__CXX
19958fi
19959
19960	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
19961	    # Warning - without using the other run time loading flags,
19962	    # -berok will link without error, but may produce a broken library.
19963	    no_undefined_flag_CXX=' $wl-bernotok'
19964	    allow_undefined_flag_CXX=' $wl-berok'
19965	    if test yes = "$with_gnu_ld"; then
19966	      # We only use this code for GNU lds that support --whole-archive.
19967	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
19968	    else
19969	      # Exported symbols can be pulled into shared objects from archives
19970	      whole_archive_flag_spec_CXX='$convenience'
19971	    fi
19972	    archive_cmds_need_lc_CXX=yes
19973	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
19974	    # -brtl affects multiple linker settings, -berok does not and is overridden later
19975	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
19976	    if test svr4 != "$with_aix_soname"; then
19977	      # This is similar to how AIX traditionally builds its shared
19978	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
19979	      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'
19980	    fi
19981	    if test aix != "$with_aix_soname"; then
19982	      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'
19983	    else
19984	      # used by -dlpreopen to get the symbols
19985	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
19986	    fi
19987	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
19988          fi
19989        fi
19990        ;;
19991
19992      beos*)
19993	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
19994	  allow_undefined_flag_CXX=unsupported
19995	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19996	  # support --undefined.  This deserves some investigation.  FIXME
19997	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
19998	else
19999	  ld_shlibs_CXX=no
20000	fi
20001	;;
20002
20003      chorus*)
20004        case $cc_basename in
20005          *)
20006	  # FIXME: insert proper C++ library support
20007	  ld_shlibs_CXX=no
20008	  ;;
20009        esac
20010        ;;
20011
20012      cygwin* | mingw* | pw32* | cegcc*)
20013	case $GXX,$cc_basename in
20014	,cl* | no,cl*)
20015	  # Native MSVC
20016	  # hardcode_libdir_flag_spec is actually meaningless, as there is
20017	  # no search path for DLLs.
20018	  hardcode_libdir_flag_spec_CXX=' '
20019	  allow_undefined_flag_CXX=unsupported
20020	  always_export_symbols_CXX=yes
20021	  file_list_spec_CXX='@'
20022	  # Tell ltmain to make .lib files, not .a files.
20023	  libext=lib
20024	  # Tell ltmain to make .dll files, not .so files.
20025	  shrext_cmds=.dll
20026	  # FIXME: Setting linknames here is a bad hack.
20027	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
20028	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20029              cp "$export_symbols" "$output_objdir/$soname.def";
20030              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
20031            else
20032              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
20033            fi~
20034            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
20035            linknames='
20036	  # The linker will not automatically build a static lib if we build a DLL.
20037	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
20038	  enable_shared_with_static_runtimes_CXX=yes
20039	  # Don't use ranlib
20040	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
20041	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
20042            lt_tool_outputfile="@TOOL_OUTPUT@"~
20043            case $lt_outputfile in
20044              *.exe|*.EXE) ;;
20045              *)
20046                lt_outputfile=$lt_outputfile.exe
20047                lt_tool_outputfile=$lt_tool_outputfile.exe
20048                ;;
20049            esac~
20050            func_to_tool_file "$lt_outputfile"~
20051            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
20052              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
20053              $RM "$lt_outputfile.manifest";
20054            fi'
20055	  ;;
20056	*)
20057	  # g++
20058	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
20059	  # as there is no search path for DLLs.
20060	  hardcode_libdir_flag_spec_CXX='-L$libdir'
20061	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
20062	  allow_undefined_flag_CXX=unsupported
20063	  always_export_symbols_CXX=no
20064	  enable_shared_with_static_runtimes_CXX=yes
20065
20066	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
20067	    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'
20068	    # If the export-symbols file already is a .def file, use it as
20069	    # is; otherwise, prepend EXPORTS...
20070	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
20071              cp $export_symbols $output_objdir/$soname.def;
20072            else
20073              echo EXPORTS > $output_objdir/$soname.def;
20074              cat $export_symbols >> $output_objdir/$soname.def;
20075            fi~
20076            $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'
20077	  else
20078	    ld_shlibs_CXX=no
20079	  fi
20080	  ;;
20081	esac
20082	;;
20083      darwin* | rhapsody*)
20084
20085
20086  archive_cmds_need_lc_CXX=no
20087  hardcode_direct_CXX=no
20088  hardcode_automatic_CXX=yes
20089  hardcode_shlibpath_var_CXX=unsupported
20090  if test yes = "$lt_cv_ld_force_load"; then
20091    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\"`'
20092
20093  else
20094    whole_archive_flag_spec_CXX=''
20095  fi
20096  link_all_deplibs_CXX=yes
20097  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
20098  case $cc_basename in
20099     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
20100     *) _lt_dar_can_shared=$GCC ;;
20101  esac
20102  if test yes = "$_lt_dar_can_shared"; then
20103    output_verbose_link_cmd=func_echo_all
20104    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"
20105    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
20106    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"
20107    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"
20108       if test yes != "$lt_cv_apple_cc_single_mod"; then
20109      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"
20110      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"
20111    fi
20112
20113  else
20114  ld_shlibs_CXX=no
20115  fi
20116
20117	;;
20118
20119      os2*)
20120	hardcode_libdir_flag_spec_CXX='-L$libdir'
20121	hardcode_minus_L_CXX=yes
20122	allow_undefined_flag_CXX=unsupported
20123	shrext_cmds=.dll
20124	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20125	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20126	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20127	  $ECHO EXPORTS >> $output_objdir/$libname.def~
20128	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
20129	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20130	  emximp -o $lib $output_objdir/$libname.def'
20131	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
20132	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
20133	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
20134	  $ECHO EXPORTS >> $output_objdir/$libname.def~
20135	  prefix_cmds="$SED"~
20136	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
20137	    prefix_cmds="$prefix_cmds -e 1d";
20138	  fi~
20139	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
20140	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
20141	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
20142	  emximp -o $lib $output_objdir/$libname.def'
20143	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
20144	enable_shared_with_static_runtimes_CXX=yes
20145	;;
20146
20147      dgux*)
20148        case $cc_basename in
20149          ec++*)
20150	    # FIXME: insert proper C++ library support
20151	    ld_shlibs_CXX=no
20152	    ;;
20153          ghcx*)
20154	    # Green Hills C++ Compiler
20155	    # FIXME: insert proper C++ library support
20156	    ld_shlibs_CXX=no
20157	    ;;
20158          *)
20159	    # FIXME: insert proper C++ library support
20160	    ld_shlibs_CXX=no
20161	    ;;
20162        esac
20163        ;;
20164
20165      freebsd2.*)
20166        # C++ shared libraries reported to be fairly broken before
20167	# switch to ELF
20168        ld_shlibs_CXX=no
20169        ;;
20170
20171      freebsd-elf*)
20172        archive_cmds_need_lc_CXX=no
20173        ;;
20174
20175      freebsd* | dragonfly*)
20176        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
20177        # conventions
20178        ld_shlibs_CXX=yes
20179        ;;
20180
20181      haiku*)
20182        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20183        link_all_deplibs_CXX=yes
20184        ;;
20185
20186      hpux9*)
20187        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20188        hardcode_libdir_separator_CXX=:
20189        export_dynamic_flag_spec_CXX='$wl-E'
20190        hardcode_direct_CXX=yes
20191        hardcode_minus_L_CXX=yes # Not in the search PATH,
20192				             # but as the default
20193				             # location of the library.
20194
20195        case $cc_basename in
20196          CC*)
20197            # FIXME: insert proper C++ library support
20198            ld_shlibs_CXX=no
20199            ;;
20200          aCC*)
20201            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'
20202            # Commands to make compiler produce verbose output that lists
20203            # what "hidden" libraries, object files and flags are used when
20204            # linking a shared library.
20205            #
20206            # There doesn't appear to be a way to prevent this compiler from
20207            # explicitly linking system object files so we need to strip them
20208            # from the output so that they don't get included in the library
20209            # dependencies.
20210            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"'
20211            ;;
20212          *)
20213            if test yes = "$GXX"; then
20214              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'
20215            else
20216              # FIXME: insert proper C++ library support
20217              ld_shlibs_CXX=no
20218            fi
20219            ;;
20220        esac
20221        ;;
20222
20223      hpux10*|hpux11*)
20224        if test no = "$with_gnu_ld"; then
20225	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
20226	  hardcode_libdir_separator_CXX=:
20227
20228          case $host_cpu in
20229            hppa*64*|ia64*)
20230              ;;
20231            *)
20232	      export_dynamic_flag_spec_CXX='$wl-E'
20233              ;;
20234          esac
20235        fi
20236        case $host_cpu in
20237          hppa*64*|ia64*)
20238            hardcode_direct_CXX=no
20239            hardcode_shlibpath_var_CXX=no
20240            ;;
20241          *)
20242            hardcode_direct_CXX=yes
20243            hardcode_direct_absolute_CXX=yes
20244            hardcode_minus_L_CXX=yes # Not in the search PATH,
20245					         # but as the default
20246					         # location of the library.
20247            ;;
20248        esac
20249
20250        case $cc_basename in
20251          CC*)
20252	    # FIXME: insert proper C++ library support
20253	    ld_shlibs_CXX=no
20254	    ;;
20255          aCC*)
20256	    case $host_cpu in
20257	      hppa*64*)
20258	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20259	        ;;
20260	      ia64*)
20261	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20262	        ;;
20263	      *)
20264	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20265	        ;;
20266	    esac
20267	    # Commands to make compiler produce verbose output that lists
20268	    # what "hidden" libraries, object files and flags are used when
20269	    # linking a shared library.
20270	    #
20271	    # There doesn't appear to be a way to prevent this compiler from
20272	    # explicitly linking system object files so we need to strip them
20273	    # from the output so that they don't get included in the library
20274	    # dependencies.
20275	    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"'
20276	    ;;
20277          *)
20278	    if test yes = "$GXX"; then
20279	      if test no = "$with_gnu_ld"; then
20280	        case $host_cpu in
20281	          hppa*64*)
20282	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20283	            ;;
20284	          ia64*)
20285	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20286	            ;;
20287	          *)
20288	            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'
20289	            ;;
20290	        esac
20291	      fi
20292	    else
20293	      # FIXME: insert proper C++ library support
20294	      ld_shlibs_CXX=no
20295	    fi
20296	    ;;
20297        esac
20298        ;;
20299
20300      interix[3-9]*)
20301	hardcode_direct_CXX=no
20302	hardcode_shlibpath_var_CXX=no
20303	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20304	export_dynamic_flag_spec_CXX='$wl-E'
20305	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
20306	# Instead, shared libraries are loaded at an image base (0x10000000 by
20307	# default) and relocated if they conflict, which is a slow very memory
20308	# consuming and fragmenting process.  To avoid this, we pick a random,
20309	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
20310	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
20311	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'
20312	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'
20313	;;
20314      irix5* | irix6*)
20315        case $cc_basename in
20316          CC*)
20317	    # SGI C++
20318	    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'
20319
20320	    # Archives containing C++ object files must be created using
20321	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
20322	    # necessary to make sure instantiated templates are included
20323	    # in the archive.
20324	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
20325	    ;;
20326          *)
20327	    if test yes = "$GXX"; then
20328	      if test no = "$with_gnu_ld"; then
20329	        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'
20330	      else
20331	        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'
20332	      fi
20333	    fi
20334	    link_all_deplibs_CXX=yes
20335	    ;;
20336        esac
20337        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20338        hardcode_libdir_separator_CXX=:
20339        inherit_rpath_CXX=yes
20340        ;;
20341
20342      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
20343        case $cc_basename in
20344          KCC*)
20345	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20346
20347	    # KCC will only create a shared library if the output file
20348	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20349	    # to its proper name (with version) after linking.
20350	    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'
20351	    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'
20352	    # Commands to make compiler produce verbose output that lists
20353	    # what "hidden" libraries, object files and flags are used when
20354	    # linking a shared library.
20355	    #
20356	    # There doesn't appear to be a way to prevent this compiler from
20357	    # explicitly linking system object files so we need to strip them
20358	    # from the output so that they don't get included in the library
20359	    # dependencies.
20360	    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"'
20361
20362	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20363	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20364
20365	    # Archives containing C++ object files must be created using
20366	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
20367	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
20368	    ;;
20369	  icpc* | ecpc* )
20370	    # Intel C++
20371	    with_gnu_ld=yes
20372	    # version 8.0 and above of icpc choke on multiply defined symbols
20373	    # if we add $predep_objects and $postdep_objects, however 7.1 and
20374	    # earlier do not add the objects themselves.
20375	    case `$CC -V 2>&1` in
20376	      *"Version 7."*)
20377	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20378		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'
20379		;;
20380	      *)  # Version 8.0 or newer
20381	        tmp_idyn=
20382	        case $host_cpu in
20383		  ia64*) tmp_idyn=' -i_dynamic';;
20384		esac
20385	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20386		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'
20387		;;
20388	    esac
20389	    archive_cmds_need_lc_CXX=no
20390	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20391	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20392	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20393	    ;;
20394          pgCC* | pgcpp*)
20395            # Portland Group C++ compiler
20396	    case `$CC -V` in
20397	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
20398	      prelink_cmds_CXX='tpldir=Template.dir~
20399               rm -rf $tpldir~
20400               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
20401               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
20402	      old_archive_cmds_CXX='tpldir=Template.dir~
20403                rm -rf $tpldir~
20404                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
20405                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
20406                $RANLIB $oldlib'
20407	      archive_cmds_CXX='tpldir=Template.dir~
20408                rm -rf $tpldir~
20409                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20410                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20411	      archive_expsym_cmds_CXX='tpldir=Template.dir~
20412                rm -rf $tpldir~
20413                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
20414                $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'
20415	      ;;
20416	    *) # Version 6 and above use weak symbols
20417	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20418	      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'
20419	      ;;
20420	    esac
20421
20422	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
20423	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20424	    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'
20425            ;;
20426	  cxx*)
20427	    # Compaq C++
20428	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20429	    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'
20430
20431	    runpath_var=LD_RUN_PATH
20432	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20433	    hardcode_libdir_separator_CXX=:
20434
20435	    # Commands to make compiler produce verbose output that lists
20436	    # what "hidden" libraries, object files and flags are used when
20437	    # linking a shared library.
20438	    #
20439	    # There doesn't appear to be a way to prevent this compiler from
20440	    # explicitly linking system object files so we need to strip them
20441	    # from the output so that they don't get included in the library
20442	    # dependencies.
20443	    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'
20444	    ;;
20445	  xl* | mpixl* | bgxl*)
20446	    # IBM XL 8.0 on PPC, with GNU ld
20447	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20448	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20449	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
20450	    if test yes = "$supports_anon_versioning"; then
20451	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
20452                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
20453                echo "local: *; };" >> $output_objdir/$libname.ver~
20454                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
20455	    fi
20456	    ;;
20457	  *)
20458	    case `$CC -V 2>&1 | sed 5q` in
20459	    *Sun\ C*)
20460	      # Sun C++ 5.9
20461	      no_undefined_flag_CXX=' -zdefs'
20462	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20463	      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'
20464	      hardcode_libdir_flag_spec_CXX='-R$libdir'
20465	      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'
20466	      compiler_needs_object_CXX=yes
20467
20468	      # Not sure whether something based on
20469	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
20470	      # would be better.
20471	      output_verbose_link_cmd='func_echo_all'
20472
20473	      # Archives containing C++ object files must be created using
20474	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20475	      # necessary to make sure instantiated templates are included
20476	      # in the archive.
20477	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20478	      ;;
20479	    esac
20480	    ;;
20481	esac
20482	;;
20483
20484      lynxos*)
20485        # FIXME: insert proper C++ library support
20486	ld_shlibs_CXX=no
20487	;;
20488
20489      m88k*)
20490        # FIXME: insert proper C++ library support
20491        ld_shlibs_CXX=no
20492	;;
20493
20494      mvs*)
20495        case $cc_basename in
20496          cxx*)
20497	    # FIXME: insert proper C++ library support
20498	    ld_shlibs_CXX=no
20499	    ;;
20500	  *)
20501	    # FIXME: insert proper C++ library support
20502	    ld_shlibs_CXX=no
20503	    ;;
20504	esac
20505	;;
20506
20507      netbsd*)
20508        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20509	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
20510	  wlarc=
20511	  hardcode_libdir_flag_spec_CXX='-R$libdir'
20512	  hardcode_direct_CXX=yes
20513	  hardcode_shlibpath_var_CXX=no
20514	fi
20515	# Workaround some broken pre-1.5 toolchains
20516	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
20517	;;
20518
20519      *nto* | *qnx*)
20520        ld_shlibs_CXX=yes
20521	;;
20522
20523      openbsd* | bitrig*)
20524	if test -f /usr/libexec/ld.so; then
20525	  hardcode_direct_CXX=yes
20526	  hardcode_shlibpath_var_CXX=no
20527	  hardcode_direct_absolute_CXX=yes
20528	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20529	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20530	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
20531	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
20532	    export_dynamic_flag_spec_CXX='$wl-E'
20533	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20534	  fi
20535	  output_verbose_link_cmd=func_echo_all
20536	else
20537	  ld_shlibs_CXX=no
20538	fi
20539	;;
20540
20541      osf3* | osf4* | osf5*)
20542        case $cc_basename in
20543          KCC*)
20544	    # Kuck and Associates, Inc. (KAI) C++ Compiler
20545
20546	    # KCC will only create a shared library if the output file
20547	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
20548	    # to its proper name (with version) after linking.
20549	    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'
20550
20551	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
20552	    hardcode_libdir_separator_CXX=:
20553
20554	    # Archives containing C++ object files must be created using
20555	    # the KAI C++ compiler.
20556	    case $host in
20557	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
20558	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
20559	    esac
20560	    ;;
20561          RCC*)
20562	    # Rational C++ 2.4.1
20563	    # FIXME: insert proper C++ library support
20564	    ld_shlibs_CXX=no
20565	    ;;
20566          cxx*)
20567	    case $host in
20568	      osf3*)
20569	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20570	        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'
20571	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20572		;;
20573	      *)
20574	        allow_undefined_flag_CXX=' -expect_unresolved \*'
20575	        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'
20576	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
20577                  echo "-hidden">> $lib.exp~
20578                  $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~
20579                  $RM $lib.exp'
20580	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
20581		;;
20582	    esac
20583
20584	    hardcode_libdir_separator_CXX=:
20585
20586	    # Commands to make compiler produce verbose output that lists
20587	    # what "hidden" libraries, object files and flags are used when
20588	    # linking a shared library.
20589	    #
20590	    # There doesn't appear to be a way to prevent this compiler from
20591	    # explicitly linking system object files so we need to strip them
20592	    # from the output so that they don't get included in the library
20593	    # dependencies.
20594	    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"'
20595	    ;;
20596	  *)
20597	    if test yes,no = "$GXX,$with_gnu_ld"; then
20598	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
20599	      case $host in
20600	        osf3*)
20601	          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'
20602		  ;;
20603	        *)
20604	          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'
20605		  ;;
20606	      esac
20607
20608	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20609	      hardcode_libdir_separator_CXX=:
20610
20611	      # Commands to make compiler produce verbose output that lists
20612	      # what "hidden" libraries, object files and flags are used when
20613	      # linking a shared library.
20614	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20615
20616	    else
20617	      # FIXME: insert proper C++ library support
20618	      ld_shlibs_CXX=no
20619	    fi
20620	    ;;
20621        esac
20622        ;;
20623
20624      psos*)
20625        # FIXME: insert proper C++ library support
20626        ld_shlibs_CXX=no
20627        ;;
20628
20629      sunos4*)
20630        case $cc_basename in
20631          CC*)
20632	    # Sun C++ 4.x
20633	    # FIXME: insert proper C++ library support
20634	    ld_shlibs_CXX=no
20635	    ;;
20636          lcc*)
20637	    # Lucid
20638	    # FIXME: insert proper C++ library support
20639	    ld_shlibs_CXX=no
20640	    ;;
20641          *)
20642	    # FIXME: insert proper C++ library support
20643	    ld_shlibs_CXX=no
20644	    ;;
20645        esac
20646        ;;
20647
20648      solaris*)
20649        case $cc_basename in
20650          CC* | sunCC*)
20651	    # Sun C++ 4.2, 5.x and Centerline C++
20652            archive_cmds_need_lc_CXX=yes
20653	    no_undefined_flag_CXX=' -zdefs'
20654	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
20655	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20656              $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'
20657
20658	    hardcode_libdir_flag_spec_CXX='-R$libdir'
20659	    hardcode_shlibpath_var_CXX=no
20660	    case $host_os in
20661	      solaris2.[0-5] | solaris2.[0-5].*) ;;
20662	      *)
20663		# The compiler driver will combine and reorder linker options,
20664		# but understands '-z linker_flag'.
20665	        # Supported since Solaris 2.6 (maybe 2.5.1?)
20666		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
20667	        ;;
20668	    esac
20669	    link_all_deplibs_CXX=yes
20670
20671	    output_verbose_link_cmd='func_echo_all'
20672
20673	    # Archives containing C++ object files must be created using
20674	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
20675	    # necessary to make sure instantiated templates are included
20676	    # in the archive.
20677	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
20678	    ;;
20679          gcx*)
20680	    # Green Hills C++ Compiler
20681	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20682
20683	    # The C++ compiler must be used to create the archive.
20684	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
20685	    ;;
20686          *)
20687	    # GNU C++ compiler with Solaris linker
20688	    if test yes,no = "$GXX,$with_gnu_ld"; then
20689	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
20690	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
20691	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20692	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20693                  $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'
20694
20695	        # Commands to make compiler produce verbose output that lists
20696	        # what "hidden" libraries, object files and flags are used when
20697	        # linking a shared library.
20698	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20699	      else
20700	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
20701	        # platform.
20702	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
20703	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
20704                  $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'
20705
20706	        # Commands to make compiler produce verbose output that lists
20707	        # what "hidden" libraries, object files and flags are used when
20708	        # linking a shared library.
20709	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20710	      fi
20711
20712	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
20713	      case $host_os in
20714		solaris2.[0-5] | solaris2.[0-5].*) ;;
20715		*)
20716		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
20717		  ;;
20718	      esac
20719	    fi
20720	    ;;
20721        esac
20722        ;;
20723
20724    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
20725      no_undefined_flag_CXX='$wl-z,text'
20726      archive_cmds_need_lc_CXX=no
20727      hardcode_shlibpath_var_CXX=no
20728      runpath_var='LD_RUN_PATH'
20729
20730      case $cc_basename in
20731        CC*)
20732	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20733	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20734	  ;;
20735	*)
20736	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20737	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20738	  ;;
20739      esac
20740      ;;
20741
20742      sysv5* | sco3.2v5* | sco5v6*)
20743	# Note: We CANNOT use -z defs as we might desire, because we do not
20744	# link with -lc, and that would cause any symbols used from libc to
20745	# always be unresolved, which means just about no library would
20746	# ever link correctly.  If we're not using GNU ld we use -z text
20747	# though, which does catch some bad symbols but isn't as heavy-handed
20748	# as -z defs.
20749	no_undefined_flag_CXX='$wl-z,text'
20750	allow_undefined_flag_CXX='$wl-z,nodefs'
20751	archive_cmds_need_lc_CXX=no
20752	hardcode_shlibpath_var_CXX=no
20753	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
20754	hardcode_libdir_separator_CXX=':'
20755	link_all_deplibs_CXX=yes
20756	export_dynamic_flag_spec_CXX='$wl-Bexport'
20757	runpath_var='LD_RUN_PATH'
20758
20759	case $cc_basename in
20760          CC*)
20761	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20762	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20763	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
20764              '"$old_archive_cmds_CXX"
20765	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
20766              '"$reload_cmds_CXX"
20767	    ;;
20768	  *)
20769	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20770	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20771	    ;;
20772	esac
20773      ;;
20774
20775      tandem*)
20776        case $cc_basename in
20777          NCC*)
20778	    # NonStop-UX NCC 3.20
20779	    # FIXME: insert proper C++ library support
20780	    ld_shlibs_CXX=no
20781	    ;;
20782          *)
20783	    # FIXME: insert proper C++ library support
20784	    ld_shlibs_CXX=no
20785	    ;;
20786        esac
20787        ;;
20788
20789      vxworks*)
20790        # FIXME: insert proper C++ library support
20791        ld_shlibs_CXX=no
20792        ;;
20793
20794      *)
20795        # FIXME: insert proper C++ library support
20796        ld_shlibs_CXX=no
20797        ;;
20798    esac
20799
20800    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20801$as_echo "$ld_shlibs_CXX" >&6; }
20802    test no = "$ld_shlibs_CXX" && can_build_shared=no
20803
20804    GCC_CXX=$GXX
20805    LD_CXX=$LD
20806
20807    ## CAVEAT EMPTOR:
20808    ## There is no encapsulation within the following macros, do not change
20809    ## the running order or otherwise move them around unless you know exactly
20810    ## what you are doing...
20811    # Dependencies to place before and after the object being linked:
20812predep_objects_CXX=
20813postdep_objects_CXX=
20814predeps_CXX=
20815postdeps_CXX=
20816compiler_lib_search_path_CXX=
20817
20818cat > conftest.$ac_ext <<_LT_EOF
20819class Foo
20820{
20821public:
20822  Foo (void) { a = 0; }
20823private:
20824  int a;
20825};
20826_LT_EOF
20827
20828
20829_lt_libdeps_save_CFLAGS=$CFLAGS
20830case "$CC $CFLAGS " in #(
20831*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
20832*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
20833*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
20834esac
20835
20836if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20837  (eval $ac_compile) 2>&5
20838  ac_status=$?
20839  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20840  test $ac_status = 0; }; then
20841  # Parse the compiler output and extract the necessary
20842  # objects, libraries and library flags.
20843
20844  # Sentinel used to keep track of whether or not we are before
20845  # the conftest object file.
20846  pre_test_object_deps_done=no
20847
20848  for p in `eval "$output_verbose_link_cmd"`; do
20849    case $prev$p in
20850
20851    -L* | -R* | -l*)
20852       # Some compilers place space between "-{L,R}" and the path.
20853       # Remove the space.
20854       if test x-L = "$p" ||
20855          test x-R = "$p"; then
20856	 prev=$p
20857	 continue
20858       fi
20859
20860       # Expand the sysroot to ease extracting the directories later.
20861       if test -z "$prev"; then
20862         case $p in
20863         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
20864         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
20865         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
20866         esac
20867       fi
20868       case $p in
20869       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
20870       esac
20871       if test no = "$pre_test_object_deps_done"; then
20872	 case $prev in
20873	 -L | -R)
20874	   # Internal compiler library paths should come after those
20875	   # provided the user.  The postdeps already come after the
20876	   # user supplied libs so there is no need to process them.
20877	   if test -z "$compiler_lib_search_path_CXX"; then
20878	     compiler_lib_search_path_CXX=$prev$p
20879	   else
20880	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
20881	   fi
20882	   ;;
20883	 # The "-l" case would never come before the object being
20884	 # linked, so don't bother handling this case.
20885	 esac
20886       else
20887	 if test -z "$postdeps_CXX"; then
20888	   postdeps_CXX=$prev$p
20889	 else
20890	   postdeps_CXX="${postdeps_CXX} $prev$p"
20891	 fi
20892       fi
20893       prev=
20894       ;;
20895
20896    *.lto.$objext) ;; # Ignore GCC LTO objects
20897    *.$objext)
20898       # This assumes that the test object file only shows up
20899       # once in the compiler output.
20900       if test "$p" = "conftest.$objext"; then
20901	 pre_test_object_deps_done=yes
20902	 continue
20903       fi
20904
20905       if test no = "$pre_test_object_deps_done"; then
20906	 if test -z "$predep_objects_CXX"; then
20907	   predep_objects_CXX=$p
20908	 else
20909	   predep_objects_CXX="$predep_objects_CXX $p"
20910	 fi
20911       else
20912	 if test -z "$postdep_objects_CXX"; then
20913	   postdep_objects_CXX=$p
20914	 else
20915	   postdep_objects_CXX="$postdep_objects_CXX $p"
20916	 fi
20917       fi
20918       ;;
20919
20920    *) ;; # Ignore the rest.
20921
20922    esac
20923  done
20924
20925  # Clean up.
20926  rm -f a.out a.exe
20927else
20928  echo "libtool.m4: error: problem compiling CXX test program"
20929fi
20930
20931$RM -f confest.$objext
20932CFLAGS=$_lt_libdeps_save_CFLAGS
20933
20934# PORTME: override above test on systems where it is broken
20935case $host_os in
20936interix[3-9]*)
20937  # Interix 3.5 installs completely hosed .la files for C++, so rather than
20938  # hack all around it, let's just trust "g++" to DTRT.
20939  predep_objects_CXX=
20940  postdep_objects_CXX=
20941  postdeps_CXX=
20942  ;;
20943esac
20944
20945
20946case " $postdeps_CXX " in
20947*" -lc "*) archive_cmds_need_lc_CXX=no ;;
20948esac
20949 compiler_lib_search_dirs_CXX=
20950if test -n "${compiler_lib_search_path_CXX}"; then
20951 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
20952fi
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984    lt_prog_compiler_wl_CXX=
20985lt_prog_compiler_pic_CXX=
20986lt_prog_compiler_static_CXX=
20987
20988
20989  # C++ specific cases for pic, static, wl, etc.
20990  if test yes = "$GXX"; then
20991    lt_prog_compiler_wl_CXX='-Wl,'
20992    lt_prog_compiler_static_CXX='-static'
20993
20994    case $host_os in
20995    aix*)
20996      # All AIX code is PIC.
20997      if test ia64 = "$host_cpu"; then
20998	# AIX 5 now supports IA64 processor
20999	lt_prog_compiler_static_CXX='-Bstatic'
21000      fi
21001      lt_prog_compiler_pic_CXX='-fPIC'
21002      ;;
21003
21004    amigaos*)
21005      case $host_cpu in
21006      powerpc)
21007            # see comment about AmigaOS4 .so support
21008            lt_prog_compiler_pic_CXX='-fPIC'
21009        ;;
21010      m68k)
21011            # FIXME: we need at least 68020 code to build shared libraries, but
21012            # adding the '-m68020' flag to GCC prevents building anything better,
21013            # like '-m68040'.
21014            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
21015        ;;
21016      esac
21017      ;;
21018
21019    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21020      # PIC is the default for these OSes.
21021      ;;
21022    mingw* | cygwin* | os2* | pw32* | cegcc*)
21023      # This hack is so that the source file can tell whether it is being
21024      # built for inclusion in a dll (and should export symbols for example).
21025      # Although the cygwin gcc ignores -fPIC, still need this for old-style
21026      # (--disable-auto-import) libraries
21027      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21028      case $host_os in
21029      os2*)
21030	lt_prog_compiler_static_CXX='$wl-static'
21031	;;
21032      esac
21033      ;;
21034    darwin* | rhapsody*)
21035      # PIC is the default on this platform
21036      # Common symbols not allowed in MH_DYLIB files
21037      lt_prog_compiler_pic_CXX='-fno-common'
21038      ;;
21039    *djgpp*)
21040      # DJGPP does not support shared libraries at all
21041      lt_prog_compiler_pic_CXX=
21042      ;;
21043    haiku*)
21044      # PIC is the default for Haiku.
21045      # The "-static" flag exists, but is broken.
21046      lt_prog_compiler_static_CXX=
21047      ;;
21048    interix[3-9]*)
21049      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21050      # Instead, we relocate shared libraries at runtime.
21051      ;;
21052    sysv4*MP*)
21053      if test -d /usr/nec; then
21054	lt_prog_compiler_pic_CXX=-Kconform_pic
21055      fi
21056      ;;
21057    hpux*)
21058      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21059      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
21060      # sets the default TLS model and affects inlining.
21061      case $host_cpu in
21062      hppa*64*)
21063	;;
21064      *)
21065	lt_prog_compiler_pic_CXX='-fPIC'
21066	;;
21067      esac
21068      ;;
21069    *qnx* | *nto*)
21070      # QNX uses GNU C++, but need to define -shared option too, otherwise
21071      # it will coredump.
21072      lt_prog_compiler_pic_CXX='-fPIC -shared'
21073      ;;
21074    *)
21075      lt_prog_compiler_pic_CXX='-fPIC'
21076      ;;
21077    esac
21078  else
21079    case $host_os in
21080      aix[4-9]*)
21081	# All AIX code is PIC.
21082	if test ia64 = "$host_cpu"; then
21083	  # AIX 5 now supports IA64 processor
21084	  lt_prog_compiler_static_CXX='-Bstatic'
21085	else
21086	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
21087	fi
21088	;;
21089      chorus*)
21090	case $cc_basename in
21091	cxch68*)
21092	  # Green Hills C++ Compiler
21093	  # _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"
21094	  ;;
21095	esac
21096	;;
21097      mingw* | cygwin* | os2* | pw32* | cegcc*)
21098	# This hack is so that the source file can tell whether it is being
21099	# built for inclusion in a dll (and should export symbols for example).
21100	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
21101	;;
21102      dgux*)
21103	case $cc_basename in
21104	  ec++*)
21105	    lt_prog_compiler_pic_CXX='-KPIC'
21106	    ;;
21107	  ghcx*)
21108	    # Green Hills C++ Compiler
21109	    lt_prog_compiler_pic_CXX='-pic'
21110	    ;;
21111	  *)
21112	    ;;
21113	esac
21114	;;
21115      freebsd* | dragonfly*)
21116	# FreeBSD uses GNU C++
21117	;;
21118      hpux9* | hpux10* | hpux11*)
21119	case $cc_basename in
21120	  CC*)
21121	    lt_prog_compiler_wl_CXX='-Wl,'
21122	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21123	    if test ia64 != "$host_cpu"; then
21124	      lt_prog_compiler_pic_CXX='+Z'
21125	    fi
21126	    ;;
21127	  aCC*)
21128	    lt_prog_compiler_wl_CXX='-Wl,'
21129	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
21130	    case $host_cpu in
21131	    hppa*64*|ia64*)
21132	      # +Z the default
21133	      ;;
21134	    *)
21135	      lt_prog_compiler_pic_CXX='+Z'
21136	      ;;
21137	    esac
21138	    ;;
21139	  *)
21140	    ;;
21141	esac
21142	;;
21143      interix*)
21144	# This is c89, which is MS Visual C++ (no shared libs)
21145	# Anyone wants to do a port?
21146	;;
21147      irix5* | irix6* | nonstopux*)
21148	case $cc_basename in
21149	  CC*)
21150	    lt_prog_compiler_wl_CXX='-Wl,'
21151	    lt_prog_compiler_static_CXX='-non_shared'
21152	    # CC pic flag -KPIC is the default.
21153	    ;;
21154	  *)
21155	    ;;
21156	esac
21157	;;
21158      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21159	case $cc_basename in
21160	  KCC*)
21161	    # KAI C++ Compiler
21162	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21163	    lt_prog_compiler_pic_CXX='-fPIC'
21164	    ;;
21165	  ecpc* )
21166	    # old Intel C++ for x86_64, which still supported -KPIC.
21167	    lt_prog_compiler_wl_CXX='-Wl,'
21168	    lt_prog_compiler_pic_CXX='-KPIC'
21169	    lt_prog_compiler_static_CXX='-static'
21170	    ;;
21171	  icpc* )
21172	    # Intel C++, used to be incompatible with GCC.
21173	    # ICC 10 doesn't accept -KPIC any more.
21174	    lt_prog_compiler_wl_CXX='-Wl,'
21175	    lt_prog_compiler_pic_CXX='-fPIC'
21176	    lt_prog_compiler_static_CXX='-static'
21177	    ;;
21178	  pgCC* | pgcpp*)
21179	    # Portland Group C++ compiler
21180	    lt_prog_compiler_wl_CXX='-Wl,'
21181	    lt_prog_compiler_pic_CXX='-fpic'
21182	    lt_prog_compiler_static_CXX='-Bstatic'
21183	    ;;
21184	  cxx*)
21185	    # Compaq C++
21186	    # Make sure the PIC flag is empty.  It appears that all Alpha
21187	    # Linux and Compaq Tru64 Unix objects are PIC.
21188	    lt_prog_compiler_pic_CXX=
21189	    lt_prog_compiler_static_CXX='-non_shared'
21190	    ;;
21191	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
21192	    # IBM XL 8.0, 9.0 on PPC and BlueGene
21193	    lt_prog_compiler_wl_CXX='-Wl,'
21194	    lt_prog_compiler_pic_CXX='-qpic'
21195	    lt_prog_compiler_static_CXX='-qstaticlink'
21196	    ;;
21197	  *)
21198	    case `$CC -V 2>&1 | sed 5q` in
21199	    *Sun\ C*)
21200	      # Sun C++ 5.9
21201	      lt_prog_compiler_pic_CXX='-KPIC'
21202	      lt_prog_compiler_static_CXX='-Bstatic'
21203	      lt_prog_compiler_wl_CXX='-Qoption ld '
21204	      ;;
21205	    esac
21206	    ;;
21207	esac
21208	;;
21209      lynxos*)
21210	;;
21211      m88k*)
21212	;;
21213      mvs*)
21214	case $cc_basename in
21215	  cxx*)
21216	    lt_prog_compiler_pic_CXX='-W c,exportall'
21217	    ;;
21218	  *)
21219	    ;;
21220	esac
21221	;;
21222      netbsd*)
21223	;;
21224      *qnx* | *nto*)
21225        # QNX uses GNU C++, but need to define -shared option too, otherwise
21226        # it will coredump.
21227        lt_prog_compiler_pic_CXX='-fPIC -shared'
21228        ;;
21229      osf3* | osf4* | osf5*)
21230	case $cc_basename in
21231	  KCC*)
21232	    lt_prog_compiler_wl_CXX='--backend -Wl,'
21233	    ;;
21234	  RCC*)
21235	    # Rational C++ 2.4.1
21236	    lt_prog_compiler_pic_CXX='-pic'
21237	    ;;
21238	  cxx*)
21239	    # Digital/Compaq C++
21240	    lt_prog_compiler_wl_CXX='-Wl,'
21241	    # Make sure the PIC flag is empty.  It appears that all Alpha
21242	    # Linux and Compaq Tru64 Unix objects are PIC.
21243	    lt_prog_compiler_pic_CXX=
21244	    lt_prog_compiler_static_CXX='-non_shared'
21245	    ;;
21246	  *)
21247	    ;;
21248	esac
21249	;;
21250      psos*)
21251	;;
21252      solaris*)
21253	case $cc_basename in
21254	  CC* | sunCC*)
21255	    # Sun C++ 4.2, 5.x and Centerline C++
21256	    lt_prog_compiler_pic_CXX='-KPIC'
21257	    lt_prog_compiler_static_CXX='-Bstatic'
21258	    lt_prog_compiler_wl_CXX='-Qoption ld '
21259	    ;;
21260	  gcx*)
21261	    # Green Hills C++ Compiler
21262	    lt_prog_compiler_pic_CXX='-PIC'
21263	    ;;
21264	  *)
21265	    ;;
21266	esac
21267	;;
21268      sunos4*)
21269	case $cc_basename in
21270	  CC*)
21271	    # Sun C++ 4.x
21272	    lt_prog_compiler_pic_CXX='-pic'
21273	    lt_prog_compiler_static_CXX='-Bstatic'
21274	    ;;
21275	  lcc*)
21276	    # Lucid
21277	    lt_prog_compiler_pic_CXX='-pic'
21278	    ;;
21279	  *)
21280	    ;;
21281	esac
21282	;;
21283      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21284	case $cc_basename in
21285	  CC*)
21286	    lt_prog_compiler_wl_CXX='-Wl,'
21287	    lt_prog_compiler_pic_CXX='-KPIC'
21288	    lt_prog_compiler_static_CXX='-Bstatic'
21289	    ;;
21290	esac
21291	;;
21292      tandem*)
21293	case $cc_basename in
21294	  NCC*)
21295	    # NonStop-UX NCC 3.20
21296	    lt_prog_compiler_pic_CXX='-KPIC'
21297	    ;;
21298	  *)
21299	    ;;
21300	esac
21301	;;
21302      vxworks*)
21303	;;
21304      *)
21305	lt_prog_compiler_can_build_shared_CXX=no
21306	;;
21307    esac
21308  fi
21309
21310case $host_os in
21311  # For platforms that do not support PIC, -DPIC is meaningless:
21312  *djgpp*)
21313    lt_prog_compiler_pic_CXX=
21314    ;;
21315  *)
21316    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
21317    ;;
21318esac
21319
21320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21321$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21322if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
21323  $as_echo_n "(cached) " >&6
21324else
21325  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
21326fi
21327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
21328$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
21329lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
21330
21331#
21332# Check to make sure the PIC flag actually works.
21333#
21334if test -n "$lt_prog_compiler_pic_CXX"; then
21335  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
21336$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
21337if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
21338  $as_echo_n "(cached) " >&6
21339else
21340  lt_cv_prog_compiler_pic_works_CXX=no
21341   ac_outfile=conftest.$ac_objext
21342   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21343   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
21344   # Insert the option either (1) after the last *FLAGS variable, or
21345   # (2) before a word containing "conftest.", or (3) at the end.
21346   # Note that $ac_compile itself does not contain backslashes and begins
21347   # with a dollar sign (not a hyphen), so the echo should work correctly.
21348   # The option is referenced via a variable to avoid confusing sed.
21349   lt_compile=`echo "$ac_compile" | $SED \
21350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21352   -e 's:$: $lt_compiler_flag:'`
21353   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21354   (eval "$lt_compile" 2>conftest.err)
21355   ac_status=$?
21356   cat conftest.err >&5
21357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21358   if (exit $ac_status) && test -s "$ac_outfile"; then
21359     # The compiler can only warn and ignore the option if not recognized
21360     # So say no if there are warnings other than the usual output.
21361     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
21362     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21363     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21364       lt_cv_prog_compiler_pic_works_CXX=yes
21365     fi
21366   fi
21367   $RM conftest*
21368
21369fi
21370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
21371$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
21372
21373if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
21374    case $lt_prog_compiler_pic_CXX in
21375     "" | " "*) ;;
21376     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
21377     esac
21378else
21379    lt_prog_compiler_pic_CXX=
21380     lt_prog_compiler_can_build_shared_CXX=no
21381fi
21382
21383fi
21384
21385
21386
21387
21388
21389#
21390# Check to make sure the static flag actually works.
21391#
21392wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
21393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21394$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21395if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
21396  $as_echo_n "(cached) " >&6
21397else
21398  lt_cv_prog_compiler_static_works_CXX=no
21399   save_LDFLAGS=$LDFLAGS
21400   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21401   echo "$lt_simple_link_test_code" > conftest.$ac_ext
21402   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21403     # The linker can only warn and ignore the option if not recognized
21404     # So say no if there are warnings
21405     if test -s conftest.err; then
21406       # Append any errors to the config.log.
21407       cat conftest.err 1>&5
21408       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
21409       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21410       if diff conftest.exp conftest.er2 >/dev/null; then
21411         lt_cv_prog_compiler_static_works_CXX=yes
21412       fi
21413     else
21414       lt_cv_prog_compiler_static_works_CXX=yes
21415     fi
21416   fi
21417   $RM -r conftest*
21418   LDFLAGS=$save_LDFLAGS
21419
21420fi
21421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
21422$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
21423
21424if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
21425    :
21426else
21427    lt_prog_compiler_static_CXX=
21428fi
21429
21430
21431
21432
21433    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21434$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21435if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21436  $as_echo_n "(cached) " >&6
21437else
21438  lt_cv_prog_compiler_c_o_CXX=no
21439   $RM -r conftest 2>/dev/null
21440   mkdir conftest
21441   cd conftest
21442   mkdir out
21443   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21444
21445   lt_compiler_flag="-o out/conftest2.$ac_objext"
21446   # Insert the option either (1) after the last *FLAGS variable, or
21447   # (2) before a word containing "conftest.", or (3) at the end.
21448   # Note that $ac_compile itself does not contain backslashes and begins
21449   # with a dollar sign (not a hyphen), so the echo should work correctly.
21450   lt_compile=`echo "$ac_compile" | $SED \
21451   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21452   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21453   -e 's:$: $lt_compiler_flag:'`
21454   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21455   (eval "$lt_compile" 2>out/conftest.err)
21456   ac_status=$?
21457   cat out/conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21460   then
21461     # The compiler can only warn and ignore the option if not recognized
21462     # So say no if there are warnings
21463     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21464     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21465     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21466       lt_cv_prog_compiler_c_o_CXX=yes
21467     fi
21468   fi
21469   chmod u+w . 2>&5
21470   $RM conftest*
21471   # SGI C++ compiler will create directory out/ii_files/ for
21472   # template instantiation
21473   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21474   $RM out/* && rmdir out
21475   cd ..
21476   $RM -r conftest
21477   $RM conftest*
21478
21479fi
21480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21481$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21482
21483
21484
21485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21486$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21487if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
21488  $as_echo_n "(cached) " >&6
21489else
21490  lt_cv_prog_compiler_c_o_CXX=no
21491   $RM -r conftest 2>/dev/null
21492   mkdir conftest
21493   cd conftest
21494   mkdir out
21495   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21496
21497   lt_compiler_flag="-o out/conftest2.$ac_objext"
21498   # Insert the option either (1) after the last *FLAGS variable, or
21499   # (2) before a word containing "conftest.", or (3) at the end.
21500   # Note that $ac_compile itself does not contain backslashes and begins
21501   # with a dollar sign (not a hyphen), so the echo should work correctly.
21502   lt_compile=`echo "$ac_compile" | $SED \
21503   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21504   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21505   -e 's:$: $lt_compiler_flag:'`
21506   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
21507   (eval "$lt_compile" 2>out/conftest.err)
21508   ac_status=$?
21509   cat out/conftest.err >&5
21510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511   if (exit $ac_status) && test -s out/conftest2.$ac_objext
21512   then
21513     # The compiler can only warn and ignore the option if not recognized
21514     # So say no if there are warnings
21515     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
21516     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21517     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21518       lt_cv_prog_compiler_c_o_CXX=yes
21519     fi
21520   fi
21521   chmod u+w . 2>&5
21522   $RM conftest*
21523   # SGI C++ compiler will create directory out/ii_files/ for
21524   # template instantiation
21525   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21526   $RM out/* && rmdir out
21527   cd ..
21528   $RM -r conftest
21529   $RM conftest*
21530
21531fi
21532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
21533$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
21534
21535
21536
21537
21538hard_links=nottested
21539if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
21540  # do not overwrite the value of need_locks provided by the user
21541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21542$as_echo_n "checking if we can lock with hard links... " >&6; }
21543  hard_links=yes
21544  $RM conftest*
21545  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21546  touch conftest.a
21547  ln conftest.a conftest.b 2>&5 || hard_links=no
21548  ln conftest.a conftest.b 2>/dev/null && hard_links=no
21549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21550$as_echo "$hard_links" >&6; }
21551  if test no = "$hard_links"; then
21552    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
21553$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
21554    need_locks=warn
21555  fi
21556else
21557  need_locks=no
21558fi
21559
21560
21561
21562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21563$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21564
21565  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21566  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21567  case $host_os in
21568  aix[4-9]*)
21569    # If we're using GNU nm, then we don't want the "-C" option.
21570    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
21571    # Without the "-l" option, or with the "-B" option, AIX nm treats
21572    # weak defined symbols like other global defined symbols, whereas
21573    # GNU nm marks them as "W".
21574    # While the 'weak' keyword is ignored in the Export File, we need
21575    # it in the Import File for the 'aix-soname' feature, so we have
21576    # to replace the "-B" option with "-P" for AIX nm.
21577    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
21578      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'
21579    else
21580      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'
21581    fi
21582    ;;
21583  pw32*)
21584    export_symbols_cmds_CXX=$ltdll_cmds
21585    ;;
21586  cygwin* | mingw* | cegcc*)
21587    case $cc_basename in
21588    cl*)
21589      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
21590      ;;
21591    *)
21592      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'
21593      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
21594      ;;
21595    esac
21596    ;;
21597  *)
21598    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21599    ;;
21600  esac
21601
21602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21603$as_echo "$ld_shlibs_CXX" >&6; }
21604test no = "$ld_shlibs_CXX" && can_build_shared=no
21605
21606with_gnu_ld_CXX=$with_gnu_ld
21607
21608
21609
21610
21611
21612
21613#
21614# Do we need to explicitly link libc?
21615#
21616case "x$archive_cmds_need_lc_CXX" in
21617x|xyes)
21618  # Assume -lc should be added
21619  archive_cmds_need_lc_CXX=yes
21620
21621  if test yes,yes = "$GCC,$enable_shared"; then
21622    case $archive_cmds_CXX in
21623    *'~'*)
21624      # FIXME: we may have to deal with multi-command sequences.
21625      ;;
21626    '$CC '*)
21627      # Test whether the compiler implicitly links with -lc since on some
21628      # systems, -lgcc has to come before -lc. If gcc already passes -lc
21629      # to ld, don't add -lc before -lgcc.
21630      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
21631$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
21632if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
21633  $as_echo_n "(cached) " >&6
21634else
21635  $RM conftest*
21636	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21637
21638	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21639  (eval $ac_compile) 2>&5
21640  ac_status=$?
21641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21642  test $ac_status = 0; } 2>conftest.err; then
21643	  soname=conftest
21644	  lib=conftest
21645	  libobjs=conftest.$ac_objext
21646	  deplibs=
21647	  wl=$lt_prog_compiler_wl_CXX
21648	  pic_flag=$lt_prog_compiler_pic_CXX
21649	  compiler_flags=-v
21650	  linker_flags=-v
21651	  verstring=
21652	  output_objdir=.
21653	  libname=conftest
21654	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
21655	  allow_undefined_flag_CXX=
21656	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
21657  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
21658  ac_status=$?
21659  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21660  test $ac_status = 0; }
21661	  then
21662	    lt_cv_archive_cmds_need_lc_CXX=no
21663	  else
21664	    lt_cv_archive_cmds_need_lc_CXX=yes
21665	  fi
21666	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
21667	else
21668	  cat conftest.err 1>&5
21669	fi
21670	$RM conftest*
21671
21672fi
21673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
21674$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
21675      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
21676      ;;
21677    esac
21678  fi
21679  ;;
21680esac
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693
21694
21695
21696
21697
21698
21699
21700
21701
21702
21703
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715
21716
21717
21718
21719
21720
21721
21722
21723
21724
21725
21726
21727
21728
21729
21730
21731
21732
21733
21734
21735
21736
21737
21738
21739
21740
21741
21742
21743    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
21744$as_echo_n "checking dynamic linker characteristics... " >&6; }
21745
21746library_names_spec=
21747libname_spec='lib$name'
21748soname_spec=
21749shrext_cmds=.so
21750postinstall_cmds=
21751postuninstall_cmds=
21752finish_cmds=
21753finish_eval=
21754shlibpath_var=
21755shlibpath_overrides_runpath=unknown
21756version_type=none
21757dynamic_linker="$host_os ld.so"
21758sys_lib_dlsearch_path_spec="/lib /usr/lib"
21759need_lib_prefix=unknown
21760hardcode_into_libs=no
21761
21762# when you set need_version to no, make sure it does not cause -set_version
21763# flags to be left without arguments
21764need_version=unknown
21765
21766
21767
21768case $host_os in
21769aix3*)
21770  version_type=linux # correct to gnu/linux during the next big refactor
21771  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
21772  shlibpath_var=LIBPATH
21773
21774  # AIX 3 has no versioning support, so we append a major version to the name.
21775  soname_spec='$libname$release$shared_ext$major'
21776  ;;
21777
21778aix[4-9]*)
21779  version_type=linux # correct to gnu/linux during the next big refactor
21780  need_lib_prefix=no
21781  need_version=no
21782  hardcode_into_libs=yes
21783  if test ia64 = "$host_cpu"; then
21784    # AIX 5 supports IA64
21785    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
21786    shlibpath_var=LD_LIBRARY_PATH
21787  else
21788    # With GCC up to 2.95.x, collect2 would create an import file
21789    # for dependence libraries.  The import file would start with
21790    # the line '#! .'.  This would cause the generated library to
21791    # depend on '.', always an invalid library.  This was fixed in
21792    # development snapshots of GCC prior to 3.0.
21793    case $host_os in
21794      aix4 | aix4.[01] | aix4.[01].*)
21795      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
21796	   echo ' yes '
21797	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
21798	:
21799      else
21800	can_build_shared=no
21801      fi
21802      ;;
21803    esac
21804    # Using Import Files as archive members, it is possible to support
21805    # filename-based versioning of shared library archives on AIX. While
21806    # this would work for both with and without runtime linking, it will
21807    # prevent static linking of such archives. So we do filename-based
21808    # shared library versioning with .so extension only, which is used
21809    # when both runtime linking and shared linking is enabled.
21810    # Unfortunately, runtime linking may impact performance, so we do
21811    # not want this to be the default eventually. Also, we use the
21812    # versioned .so libs for executables only if there is the -brtl
21813    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
21814    # To allow for filename-based versioning support, we need to create
21815    # libNAME.so.V as an archive file, containing:
21816    # *) an Import File, referring to the versioned filename of the
21817    #    archive as well as the shared archive member, telling the
21818    #    bitwidth (32 or 64) of that shared object, and providing the
21819    #    list of exported symbols of that shared object, eventually
21820    #    decorated with the 'weak' keyword
21821    # *) the shared object with the F_LOADONLY flag set, to really avoid
21822    #    it being seen by the linker.
21823    # At run time we better use the real file rather than another symlink,
21824    # but for link time we create the symlink libNAME.so -> libNAME.so.V
21825
21826    case $with_aix_soname,$aix_use_runtimelinking in
21827    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
21828    # soname into executable. Probably we can add versioning support to
21829    # collect2, so additional links can be useful in future.
21830    aix,yes) # traditional libtool
21831      dynamic_linker='AIX unversionable lib.so'
21832      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
21833      # instead of lib<name>.a to let people know that these are not
21834      # typical AIX shared libraries.
21835      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21836      ;;
21837    aix,no) # traditional AIX only
21838      dynamic_linker='AIX lib.a(lib.so.V)'
21839      # We preserve .a as extension for shared libraries through AIX4.2
21840      # and later when we are not doing run time linking.
21841      library_names_spec='$libname$release.a $libname.a'
21842      soname_spec='$libname$release$shared_ext$major'
21843      ;;
21844    svr4,*) # full svr4 only
21845      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
21846      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21847      # We do not specify a path in Import Files, so LIBPATH fires.
21848      shlibpath_overrides_runpath=yes
21849      ;;
21850    *,yes) # both, prefer svr4
21851      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
21852      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
21853      # unpreferred sharedlib libNAME.a needs extra handling
21854      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"'
21855      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"'
21856      # We do not specify a path in Import Files, so LIBPATH fires.
21857      shlibpath_overrides_runpath=yes
21858      ;;
21859    *,no) # both, prefer aix
21860      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
21861      library_names_spec='$libname$release.a $libname.a'
21862      soname_spec='$libname$release$shared_ext$major'
21863      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
21864      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)'
21865      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"'
21866      ;;
21867    esac
21868    shlibpath_var=LIBPATH
21869  fi
21870  ;;
21871
21872amigaos*)
21873  case $host_cpu in
21874  powerpc)
21875    # Since July 2007 AmigaOS4 officially supports .so libraries.
21876    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
21877    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21878    ;;
21879  m68k)
21880    library_names_spec='$libname.ixlibrary $libname.a'
21881    # Create ${libname}_ixlibrary.a entries in /sys/libs.
21882    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'
21883    ;;
21884  esac
21885  ;;
21886
21887beos*)
21888  library_names_spec='$libname$shared_ext'
21889  dynamic_linker="$host_os ld.so"
21890  shlibpath_var=LIBRARY_PATH
21891  ;;
21892
21893bsdi[45]*)
21894  version_type=linux # correct to gnu/linux during the next big refactor
21895  need_version=no
21896  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
21897  soname_spec='$libname$release$shared_ext$major'
21898  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
21899  shlibpath_var=LD_LIBRARY_PATH
21900  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
21901  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
21902  # the default ld.so.conf also contains /usr/contrib/lib and
21903  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
21904  # libtool to hard-code these into programs
21905  ;;
21906
21907cygwin* | mingw* | pw32* | cegcc*)
21908  version_type=windows
21909  shrext_cmds=.dll
21910  need_version=no
21911  need_lib_prefix=no
21912
21913  case $GCC,$cc_basename in
21914  yes,*)
21915    # gcc
21916    library_names_spec='$libname.dll.a'
21917    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21918    postinstall_cmds='base_file=`basename \$file`~
21919      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21920      dldir=$destdir/`dirname \$dlpath`~
21921      test -d \$dldir || mkdir -p \$dldir~
21922      $install_prog $dir/$dlname \$dldir/$dlname~
21923      chmod a+x \$dldir/$dlname~
21924      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
21925        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
21926      fi'
21927    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
21928      dlpath=$dir/\$dldll~
21929       $RM \$dlpath'
21930    shlibpath_overrides_runpath=yes
21931
21932    case $host_os in
21933    cygwin*)
21934      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
21935      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21936
21937      ;;
21938    mingw* | cegcc*)
21939      # MinGW DLLs use traditional 'lib' prefix
21940      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21941      ;;
21942    pw32*)
21943      # pw32 DLLs use 'pw' prefix rather than 'lib'
21944      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21945      ;;
21946    esac
21947    dynamic_linker='Win32 ld.exe'
21948    ;;
21949
21950  *,cl*)
21951    # Native MSVC
21952    libname_spec='$name'
21953    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
21954    library_names_spec='$libname.dll.lib'
21955
21956    case $build_os in
21957    mingw*)
21958      sys_lib_search_path_spec=
21959      lt_save_ifs=$IFS
21960      IFS=';'
21961      for lt_path in $LIB
21962      do
21963        IFS=$lt_save_ifs
21964        # Let DOS variable expansion print the short 8.3 style file name.
21965        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
21966        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
21967      done
21968      IFS=$lt_save_ifs
21969      # Convert to MSYS style.
21970      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
21971      ;;
21972    cygwin*)
21973      # Convert to unix form, then to dos form, then back to unix form
21974      # but this time dos style (no spaces!) so that the unix form looks
21975      # like /cygdrive/c/PROGRA~1:/cygdr...
21976      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
21977      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
21978      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21979      ;;
21980    *)
21981      sys_lib_search_path_spec=$LIB
21982      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
21983        # It is most probably a Windows format PATH.
21984        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
21985      else
21986        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
21987      fi
21988      # FIXME: find the short name or the path components, as spaces are
21989      # common. (e.g. "Program Files" -> "PROGRA~1")
21990      ;;
21991    esac
21992
21993    # DLL is installed to $(libdir)/../bin by postinstall_cmds
21994    postinstall_cmds='base_file=`basename \$file`~
21995      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
21996      dldir=$destdir/`dirname \$dlpath`~
21997      test -d \$dldir || mkdir -p \$dldir~
21998      $install_prog $dir/$dlname \$dldir/$dlname'
21999    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22000      dlpath=$dir/\$dldll~
22001       $RM \$dlpath'
22002    shlibpath_overrides_runpath=yes
22003    dynamic_linker='Win32 link.exe'
22004    ;;
22005
22006  *)
22007    # Assume MSVC wrapper
22008    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
22009    dynamic_linker='Win32 ld.exe'
22010    ;;
22011  esac
22012  # FIXME: first we should search . and the directory the executable is in
22013  shlibpath_var=PATH
22014  ;;
22015
22016darwin* | rhapsody*)
22017  dynamic_linker="$host_os dyld"
22018  version_type=darwin
22019  need_lib_prefix=no
22020  need_version=no
22021  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
22022  soname_spec='$libname$release$major$shared_ext'
22023  shlibpath_overrides_runpath=yes
22024  shlibpath_var=DYLD_LIBRARY_PATH
22025  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
22026
22027  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22028  ;;
22029
22030dgux*)
22031  version_type=linux # correct to gnu/linux during the next big refactor
22032  need_lib_prefix=no
22033  need_version=no
22034  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22035  soname_spec='$libname$release$shared_ext$major'
22036  shlibpath_var=LD_LIBRARY_PATH
22037  ;;
22038
22039freebsd* | dragonfly*)
22040  # DragonFly does not have aout.  When/if they implement a new
22041  # versioning mechanism, adjust this.
22042  if test -x /usr/bin/objformat; then
22043    objformat=`/usr/bin/objformat`
22044  else
22045    case $host_os in
22046    freebsd[23].*) objformat=aout ;;
22047    *) objformat=elf ;;
22048    esac
22049  fi
22050  version_type=freebsd-$objformat
22051  case $version_type in
22052    freebsd-elf*)
22053      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22054      soname_spec='$libname$release$shared_ext$major'
22055      need_version=no
22056      need_lib_prefix=no
22057      ;;
22058    freebsd-*)
22059      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22060      need_version=yes
22061      ;;
22062  esac
22063  shlibpath_var=LD_LIBRARY_PATH
22064  case $host_os in
22065  freebsd2.*)
22066    shlibpath_overrides_runpath=yes
22067    ;;
22068  freebsd3.[01]* | freebsdelf3.[01]*)
22069    shlibpath_overrides_runpath=yes
22070    hardcode_into_libs=yes
22071    ;;
22072  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
22073  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
22074    shlibpath_overrides_runpath=no
22075    hardcode_into_libs=yes
22076    ;;
22077  *) # from 4.6 on, and DragonFly
22078    shlibpath_overrides_runpath=yes
22079    hardcode_into_libs=yes
22080    ;;
22081  esac
22082  ;;
22083
22084haiku*)
22085  version_type=linux # correct to gnu/linux during the next big refactor
22086  need_lib_prefix=no
22087  need_version=no
22088  dynamic_linker="$host_os runtime_loader"
22089  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22090  soname_spec='$libname$release$shared_ext$major'
22091  shlibpath_var=LIBRARY_PATH
22092  shlibpath_overrides_runpath=no
22093  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
22094  hardcode_into_libs=yes
22095  ;;
22096
22097hpux9* | hpux10* | hpux11*)
22098  # Give a soname corresponding to the major version so that dld.sl refuses to
22099  # link against other versions.
22100  version_type=sunos
22101  need_lib_prefix=no
22102  need_version=no
22103  case $host_cpu in
22104  ia64*)
22105    shrext_cmds='.so'
22106    hardcode_into_libs=yes
22107    dynamic_linker="$host_os dld.so"
22108    shlibpath_var=LD_LIBRARY_PATH
22109    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22110    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22111    soname_spec='$libname$release$shared_ext$major'
22112    if test 32 = "$HPUX_IA64_MODE"; then
22113      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22114      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
22115    else
22116      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22117      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
22118    fi
22119    ;;
22120  hppa*64*)
22121    shrext_cmds='.sl'
22122    hardcode_into_libs=yes
22123    dynamic_linker="$host_os dld.sl"
22124    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22125    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22126    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22127    soname_spec='$libname$release$shared_ext$major'
22128    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22129    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22130    ;;
22131  *)
22132    shrext_cmds='.sl'
22133    dynamic_linker="$host_os dld.sl"
22134    shlibpath_var=SHLIB_PATH
22135    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22136    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22137    soname_spec='$libname$release$shared_ext$major'
22138    ;;
22139  esac
22140  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
22141  postinstall_cmds='chmod 555 $lib'
22142  # or fails outright, so override atomically:
22143  install_override_mode=555
22144  ;;
22145
22146interix[3-9]*)
22147  version_type=linux # correct to gnu/linux during the next big refactor
22148  need_lib_prefix=no
22149  need_version=no
22150  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22151  soname_spec='$libname$release$shared_ext$major'
22152  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
22153  shlibpath_var=LD_LIBRARY_PATH
22154  shlibpath_overrides_runpath=no
22155  hardcode_into_libs=yes
22156  ;;
22157
22158irix5* | irix6* | nonstopux*)
22159  case $host_os in
22160    nonstopux*) version_type=nonstopux ;;
22161    *)
22162	if test yes = "$lt_cv_prog_gnu_ld"; then
22163		version_type=linux # correct to gnu/linux during the next big refactor
22164	else
22165		version_type=irix
22166	fi ;;
22167  esac
22168  need_lib_prefix=no
22169  need_version=no
22170  soname_spec='$libname$release$shared_ext$major'
22171  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
22172  case $host_os in
22173  irix5* | nonstopux*)
22174    libsuff= shlibsuff=
22175    ;;
22176  *)
22177    case $LD in # libtool.m4 will add one of these switches to LD
22178    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22179      libsuff= shlibsuff= libmagic=32-bit;;
22180    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22181      libsuff=32 shlibsuff=N32 libmagic=N32;;
22182    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22183      libsuff=64 shlibsuff=64 libmagic=64-bit;;
22184    *) libsuff= shlibsuff= libmagic=never-match;;
22185    esac
22186    ;;
22187  esac
22188  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22189  shlibpath_overrides_runpath=no
22190  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
22191  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
22192  hardcode_into_libs=yes
22193  ;;
22194
22195# No shared lib support for Linux oldld, aout, or coff.
22196linux*oldld* | linux*aout* | linux*coff*)
22197  dynamic_linker=no
22198  ;;
22199
22200linux*android*)
22201  version_type=none # Android doesn't support versioned libraries.
22202  need_lib_prefix=no
22203  need_version=no
22204  library_names_spec='$libname$release$shared_ext'
22205  soname_spec='$libname$release$shared_ext'
22206  finish_cmds=
22207  shlibpath_var=LD_LIBRARY_PATH
22208  shlibpath_overrides_runpath=yes
22209
22210  # This implies no fast_install, which is unacceptable.
22211  # Some rework will be needed to allow for fast_install
22212  # before this can be enabled.
22213  hardcode_into_libs=yes
22214
22215  dynamic_linker='Android linker'
22216  # Don't embed -rpath directories since the linker doesn't support them.
22217  hardcode_libdir_flag_spec_CXX='-L$libdir'
22218  ;;
22219
22220# This must be glibc/ELF.
22221linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22222  version_type=linux # correct to gnu/linux during the next big refactor
22223  need_lib_prefix=no
22224  need_version=no
22225  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22226  soname_spec='$libname$release$shared_ext$major'
22227  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22228  shlibpath_var=LD_LIBRARY_PATH
22229  shlibpath_overrides_runpath=no
22230
22231  # Some binutils ld are patched to set DT_RUNPATH
22232  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
22233  $as_echo_n "(cached) " >&6
22234else
22235  lt_cv_shlibpath_overrides_runpath=no
22236    save_LDFLAGS=$LDFLAGS
22237    save_libdir=$libdir
22238    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
22239	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
22240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241/* end confdefs.h.  */
22242
22243int
22244main ()
22245{
22246
22247  ;
22248  return 0;
22249}
22250_ACEOF
22251if ac_fn_cxx_try_link "$LINENO"; then :
22252  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
22253  lt_cv_shlibpath_overrides_runpath=yes
22254fi
22255fi
22256rm -f core conftest.err conftest.$ac_objext \
22257    conftest$ac_exeext conftest.$ac_ext
22258    LDFLAGS=$save_LDFLAGS
22259    libdir=$save_libdir
22260
22261fi
22262
22263  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
22264
22265  # This implies no fast_install, which is unacceptable.
22266  # Some rework will be needed to allow for fast_install
22267  # before this can be enabled.
22268  hardcode_into_libs=yes
22269
22270  # Add ABI-specific directories to the system library path.
22271  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
22272
22273  # Ideally, we could use ldconfig to report *all* directores which are
22274  # searched for libraries, however this is still not possible.  Aside from not
22275  # being certain /sbin/ldconfig is available, command
22276  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
22277  # even though it is searched at run-time.  Try to do the best guess by
22278  # appending ld.so.conf contents (and includes) to the search path.
22279  if test -f /etc/ld.so.conf; then
22280    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' ' '`
22281    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
22282  fi
22283
22284  # We used to test for /lib/ld.so.1 and disable shared libraries on
22285  # powerpc, because MkLinux only supported shared libraries with the
22286  # GNU dynamic linker.  Since this was broken with cross compilers,
22287  # most powerpc-linux boxes support dynamic linking these days and
22288  # people can always --disable-shared, the test was removed, and we
22289  # assume the GNU/Linux dynamic linker is in use.
22290  dynamic_linker='GNU/Linux ld.so'
22291  ;;
22292
22293netbsd*)
22294  version_type=sunos
22295  need_lib_prefix=no
22296  need_version=no
22297  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22298    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22299    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22300    dynamic_linker='NetBSD (a.out) ld.so'
22301  else
22302    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22303    soname_spec='$libname$release$shared_ext$major'
22304    dynamic_linker='NetBSD ld.elf_so'
22305  fi
22306  shlibpath_var=LD_LIBRARY_PATH
22307  shlibpath_overrides_runpath=yes
22308  hardcode_into_libs=yes
22309  ;;
22310
22311newsos6)
22312  version_type=linux # correct to gnu/linux during the next big refactor
22313  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22314  shlibpath_var=LD_LIBRARY_PATH
22315  shlibpath_overrides_runpath=yes
22316  ;;
22317
22318*nto* | *qnx*)
22319  version_type=qnx
22320  need_lib_prefix=no
22321  need_version=no
22322  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22323  soname_spec='$libname$release$shared_ext$major'
22324  shlibpath_var=LD_LIBRARY_PATH
22325  shlibpath_overrides_runpath=no
22326  hardcode_into_libs=yes
22327  dynamic_linker='ldqnx.so'
22328  ;;
22329
22330openbsd* | bitrig*)
22331  version_type=sunos
22332  sys_lib_dlsearch_path_spec=/usr/lib
22333  need_lib_prefix=no
22334  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
22335    need_version=no
22336  else
22337    need_version=yes
22338  fi
22339  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22340  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22341  shlibpath_var=LD_LIBRARY_PATH
22342  shlibpath_overrides_runpath=yes
22343  ;;
22344
22345os2*)
22346  libname_spec='$name'
22347  version_type=windows
22348  shrext_cmds=.dll
22349  need_version=no
22350  need_lib_prefix=no
22351  # OS/2 can only load a DLL with a base name of 8 characters or less.
22352  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
22353    v=$($ECHO $release$versuffix | tr -d .-);
22354    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
22355    $ECHO $n$v`$shared_ext'
22356  library_names_spec='${libname}_dll.$libext'
22357  dynamic_linker='OS/2 ld.exe'
22358  shlibpath_var=BEGINLIBPATH
22359  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22360  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22361  postinstall_cmds='base_file=`basename \$file`~
22362    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
22363    dldir=$destdir/`dirname \$dlpath`~
22364    test -d \$dldir || mkdir -p \$dldir~
22365    $install_prog $dir/$dlname \$dldir/$dlname~
22366    chmod a+x \$dldir/$dlname~
22367    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22368      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22369    fi'
22370  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
22371    dlpath=$dir/\$dldll~
22372    $RM \$dlpath'
22373  ;;
22374
22375osf3* | osf4* | osf5*)
22376  version_type=osf
22377  need_lib_prefix=no
22378  need_version=no
22379  soname_spec='$libname$release$shared_ext$major'
22380  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22381  shlibpath_var=LD_LIBRARY_PATH
22382  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22383  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22384  ;;
22385
22386rdos*)
22387  dynamic_linker=no
22388  ;;
22389
22390solaris*)
22391  version_type=linux # correct to gnu/linux during the next big refactor
22392  need_lib_prefix=no
22393  need_version=no
22394  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22395  soname_spec='$libname$release$shared_ext$major'
22396  shlibpath_var=LD_LIBRARY_PATH
22397  shlibpath_overrides_runpath=yes
22398  hardcode_into_libs=yes
22399  # ldd complains unless libraries are executable
22400  postinstall_cmds='chmod +x $lib'
22401  ;;
22402
22403sunos4*)
22404  version_type=sunos
22405  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
22406  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22407  shlibpath_var=LD_LIBRARY_PATH
22408  shlibpath_overrides_runpath=yes
22409  if test yes = "$with_gnu_ld"; then
22410    need_lib_prefix=no
22411  fi
22412  need_version=yes
22413  ;;
22414
22415sysv4 | sysv4.3*)
22416  version_type=linux # correct to gnu/linux during the next big refactor
22417  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22418  soname_spec='$libname$release$shared_ext$major'
22419  shlibpath_var=LD_LIBRARY_PATH
22420  case $host_vendor in
22421    sni)
22422      shlibpath_overrides_runpath=no
22423      need_lib_prefix=no
22424      runpath_var=LD_RUN_PATH
22425      ;;
22426    siemens)
22427      need_lib_prefix=no
22428      ;;
22429    motorola)
22430      need_lib_prefix=no
22431      need_version=no
22432      shlibpath_overrides_runpath=no
22433      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22434      ;;
22435  esac
22436  ;;
22437
22438sysv4*MP*)
22439  if test -d /usr/nec; then
22440    version_type=linux # correct to gnu/linux during the next big refactor
22441    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
22442    soname_spec='$libname$shared_ext.$major'
22443    shlibpath_var=LD_LIBRARY_PATH
22444  fi
22445  ;;
22446
22447sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
22448  version_type=sco
22449  need_lib_prefix=no
22450  need_version=no
22451  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
22452  soname_spec='$libname$release$shared_ext$major'
22453  shlibpath_var=LD_LIBRARY_PATH
22454  shlibpath_overrides_runpath=yes
22455  hardcode_into_libs=yes
22456  if test yes = "$with_gnu_ld"; then
22457    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
22458  else
22459    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
22460    case $host_os in
22461      sco3.2v5*)
22462        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
22463	;;
22464    esac
22465  fi
22466  sys_lib_dlsearch_path_spec='/usr/lib'
22467  ;;
22468
22469tpf*)
22470  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
22471  version_type=linux # correct to gnu/linux during the next big refactor
22472  need_lib_prefix=no
22473  need_version=no
22474  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22475  shlibpath_var=LD_LIBRARY_PATH
22476  shlibpath_overrides_runpath=no
22477  hardcode_into_libs=yes
22478  ;;
22479
22480uts4*)
22481  version_type=linux # correct to gnu/linux during the next big refactor
22482  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22483  soname_spec='$libname$release$shared_ext$major'
22484  shlibpath_var=LD_LIBRARY_PATH
22485  ;;
22486
22487*)
22488  dynamic_linker=no
22489  ;;
22490esac
22491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
22492$as_echo "$dynamic_linker" >&6; }
22493test no = "$dynamic_linker" && can_build_shared=no
22494
22495variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22496if test yes = "$GCC"; then
22497  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22498fi
22499
22500if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
22501  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
22502fi
22503
22504if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
22505  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
22506fi
22507
22508# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
22509configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
22510
22511# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
22512func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
22513
22514# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
22515configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
22516
22517
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545
22546
22547
22548
22549
22550
22551
22552
22553
22554
22555
22556    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
22557$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
22558hardcode_action_CXX=
22559if test -n "$hardcode_libdir_flag_spec_CXX" ||
22560   test -n "$runpath_var_CXX" ||
22561   test yes = "$hardcode_automatic_CXX"; then
22562
22563  # We can hardcode non-existent directories.
22564  if test no != "$hardcode_direct_CXX" &&
22565     # If the only mechanism to avoid hardcoding is shlibpath_var, we
22566     # have to relink, otherwise we might link with an installed library
22567     # when we should be linking with a yet-to-be-installed one
22568     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
22569     test no != "$hardcode_minus_L_CXX"; then
22570    # Linking always hardcodes the temporary library directory.
22571    hardcode_action_CXX=relink
22572  else
22573    # We can link without hardcoding, and we can hardcode nonexisting dirs.
22574    hardcode_action_CXX=immediate
22575  fi
22576else
22577  # We cannot hardcode anything, or else we can only hardcode existing
22578  # directories.
22579  hardcode_action_CXX=unsupported
22580fi
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
22582$as_echo "$hardcode_action_CXX" >&6; }
22583
22584if test relink = "$hardcode_action_CXX" ||
22585   test yes = "$inherit_rpath_CXX"; then
22586  # Fast installation is not supported
22587  enable_fast_install=no
22588elif test yes = "$shlibpath_overrides_runpath" ||
22589     test no = "$enable_shared"; then
22590  # Fast installation is not necessary
22591  enable_fast_install=needless
22592fi
22593
22594
22595
22596
22597
22598
22599
22600  fi # test -n "$compiler"
22601
22602  CC=$lt_save_CC
22603  CFLAGS=$lt_save_CFLAGS
22604  LDCXX=$LD
22605  LD=$lt_save_LD
22606  GCC=$lt_save_GCC
22607  with_gnu_ld=$lt_save_with_gnu_ld
22608  lt_cv_path_LDCXX=$lt_cv_path_LD
22609  lt_cv_path_LD=$lt_save_path_LD
22610  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
22611  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
22612fi # test yes != "$_lt_caught_CXX_error"
22613
22614ac_ext=c
22615ac_cpp='$CPP $CPPFLAGS'
22616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22618ac_compiler_gnu=$ac_cv_c_compiler_gnu
22619
22620
22621
22622
22623
22624
22625
22626
22627
22628
22629
22630
22631
22632
22633
22634        ac_config_commands="$ac_config_commands libtool"
22635
22636
22637
22638
22639# Only expand once:
22640
22641
22642
22643
22644
22645# Check to see if building shared libraries
22646libtool_build_shared_libs='no'
22647if test "$enable_shared" = 'yes'; then
22648    libtool_build_shared_libs='yes'
22649fi
22650
22651# Check to see if building static libraries
22652libtool_build_static_libs='no'
22653if test "$enable_static" = 'yes'; then
22654    libtool_build_static_libs='yes'
22655fi
22656
22657 if test "${libtool_build_shared_libs}" = 'yes'; then
22658  WITH_SHARED_LIBS_TRUE=
22659  WITH_SHARED_LIBS_FALSE='#'
22660else
22661  WITH_SHARED_LIBS_TRUE='#'
22662  WITH_SHARED_LIBS_FALSE=
22663fi
22664
22665#
22666# Enable support for building loadable modules
22667#
22668build_modules='no'
22669
22670# Check whether --with-modules was given.
22671if test "${with_modules+set}" = set; then :
22672  withval=$with_modules; with_modules=$withval
22673else
22674  with_modules='no'
22675fi
22676
22677
22678# Only allow building loadable modules if we are building shared libraries
22679if test "$with_modules" != 'no' ; then
22680    if test "$libtool_build_shared_libs" = 'no'; then
22681        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
22682$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
22683    build_modules='no'
22684  else
22685    build_modules='yes'
22686  fi
22687fi
22688if test "$build_modules" != 'no' ; then
22689
22690$as_echo "#define BUILD_MODULES 1" >>confdefs.h
22691
22692    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
22693fi
22694 if test "$build_modules" != 'no'; then
22695  WITH_MODULES_TRUE=
22696  WITH_MODULES_FALSE='#'
22697else
22698  WITH_MODULES_TRUE='#'
22699  WITH_MODULES_FALSE=
22700fi
22701
22702
22703# Enable build using delegate libraries built in subdirectories rather than installed
22704# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
22705# Check whether --enable-delegate-build was given.
22706if test "${enable_delegate_build+set}" = set; then :
22707  enableval=$enable_delegate_build; enable_delegate_build=$enableval
22708else
22709  enable_delegate_build='no'
22710fi
22711
22712
22713# Check whether --enable-deprecated was given.
22714if test "${enable_deprecated+set}" = set; then :
22715  enableval=$enable_deprecated; enable_deprecated=$enableval
22716else
22717  enable_deprecated='no'
22718fi
22719
22720
22721if test "$enable_deprecated" = 'yes'; then
22722
22723$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
22724
22725else
22726  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
22727fi
22728
22729# Build a version of ImageMagick which operates uninstalled.
22730# Used to build distributions located via MAGICK_HOME / executable path
22731# Check whether --enable-installed was given.
22732if test "${enable_installed+set}" = set; then :
22733  enableval=$enable_installed; enable_installed=$enableval
22734else
22735  enable_installed='yes'
22736fi
22737
22738
22739if test "$enable_installed" = 'yes'; then
22740
22741$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
22742
22743else
22744    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
22745fi
22746
22747# Permit enciphering and deciphering image pixels.
22748# Check whether --enable-cipher was given.
22749if test "${enable_cipher+set}" = set; then :
22750  enableval=$enable_cipher; enable_cipher=$enableval
22751else
22752  enable_cipher='yes'
22753fi
22754
22755
22756if test "$enable_cipher" = 'yes'; then
22757
22758$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
22759
22760    MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
22761fi
22762
22763# Build a zero-configuration version of ImageMagick.
22764# Check whether --enable-zero-configuration was given.
22765if test "${enable_zero_configuration+set}" = set; then :
22766  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
22767else
22768  enable_zero_configuration='no'
22769fi
22770
22771
22772if test "$enable_zero_configuration" = 'yes'; then
22773
22774$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
22775
22776    MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
22777fi
22778
22779# Build a high dynamic range version of ImageMagick.
22780# Check whether --enable-hdri was given.
22781if test "${enable_hdri+set}" = set; then :
22782  enableval=$enable_hdri; enable_hdri=$enableval
22783else
22784  enable_hdri='yes'
22785fi
22786
22787
22788MAGICK_HDRI=""
22789if test "$enable_hdri" = 'yes'; then
22790    MAGICK_HDRI="HDRI"
22791    magick_hdri_enable='1';
22792    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
22793else
22794    magick_hdri_enable='0'
22795fi
22796
22797cat >>confdefs.h <<_ACEOF
22798#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
22799_ACEOF
22800
22801MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22802CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22803CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
22804
22805# Enable pipes (|) in filenames.
22806# Check whether --enable-pipes was given.
22807if test "${enable_pipes+set}" = set; then :
22808  enableval=$enable_pipes; enable_pipes=$enableval
22809else
22810  enable_pipes='no'
22811fi
22812
22813
22814if test "$enable_pipes" = 'yes'; then
22815
22816$as_echo "#define PIPES_SUPPORT 1" >>confdefs.h
22817
22818    MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
22819fi
22820
22821# Build a version of ImageMagick with assert statements.
22822# Check whether --enable-assert was given.
22823if test "${enable_assert+set}" = set; then :
22824  enableval=$enable_assert; enable_assert=$enableval
22825else
22826  enable_assert='yes'
22827fi
22828
22829
22830if test "$enable_assert" = 'no'; then
22831
22832$as_echo "#define NDEBUG 1" >>confdefs.h
22833
22834fi
22835
22836# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
22837
22838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22839$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22840    # Check whether --enable-maintainer-mode was given.
22841if test "${enable_maintainer_mode+set}" = set; then :
22842  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22843else
22844  USE_MAINTAINER_MODE=no
22845fi
22846
22847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22848$as_echo "$USE_MAINTAINER_MODE" >&6; }
22849   if test $USE_MAINTAINER_MODE = yes; then
22850  MAINTAINER_MODE_TRUE=
22851  MAINTAINER_MODE_FALSE='#'
22852else
22853  MAINTAINER_MODE_TRUE='#'
22854  MAINTAINER_MODE_FALSE=
22855fi
22856
22857  MAINT=$MAINTAINER_MODE_TRUE
22858
22859
22860
22861# Enable hugepages support
22862# Check whether --enable-hugepages was given.
22863if test "${enable_hugepages+set}" = set; then :
22864  enableval=$enable_hugepages; enable_hugepages=$enableval
22865else
22866  enable_hugepages='no'
22867fi
22868
22869
22870# Enable ccmalloc memory debugging support
22871# Check whether --enable-ccmalloc was given.
22872if test "${enable_ccmalloc+set}" = set; then :
22873  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22874else
22875  enable_ccmalloc='no'
22876fi
22877
22878
22879# Enable Electric Fence memory debugging support
22880# Check whether --enable-efence was given.
22881if test "${enable_efence+set}" = set; then :
22882  enableval=$enable_efence; enable_efence=$enableval
22883else
22884  enable_efence='no'
22885fi
22886
22887
22888# Enable prof-based profiling support
22889# Check whether --enable-prof was given.
22890if test "${enable_prof+set}" = set; then :
22891  enableval=$enable_prof; enable_prof=$enableval
22892else
22893  enable_prof='no'
22894fi
22895
22896
22897# Enable gprof-based profiling support
22898# Check whether --enable-gprof was given.
22899if test "${enable_gprof+set}" = set; then :
22900  enableval=$enable_gprof; enable_gprof=$enableval
22901else
22902  enable_gprof='no'
22903fi
22904
22905
22906# Enable gcov-based profiling support
22907# Check whether --enable-gcov was given.
22908if test "${enable_gcov+set}" = set; then :
22909  enableval=$enable_gcov; enable_gcov=$enableval
22910else
22911  enable_gcov='no'
22912fi
22913
22914
22915enable_profiling='no'
22916if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22917    enable_profiling='yes'
22918    if test "$libtool_build_shared_libs" = 'yes'; then
22919        echo "Warning: Can not profile code using shared libraries"
22920    fi
22921fi
22922
22923# Magick API method prefix
22924
22925# Check whether --with-method-prefix was given.
22926if test "${with_method_prefix+set}" = set; then :
22927  withval=$with_method_prefix; with_method_prefix=$withval
22928else
22929  with_method_prefix='no'
22930fi
22931
22932
22933if test "$with_method_prefix" != 'no'; then
22934
22935cat >>confdefs.h <<_ACEOF
22936#define NAMESPACE_PREFIX $with_method_prefix
22937_ACEOF
22938
22939
22940cat >>confdefs.h <<_ACEOF
22941#define NAMESPACE_PREFIX_TAG "$with_method_prefix"
22942_ACEOF
22943
22944    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
22945fi
22946
22947# Enable legacy support (default no)
22948# Check whether --enable-legacy-support was given.
22949if test "${enable_legacy_support+set}" = set; then :
22950  enableval=$enable_legacy_support; with_legacy_support=$enableval
22951else
22952  with_legacy_support='no'
22953fi
22954
22955 if test "$with_legacy_support" != 'no'; then
22956  LEGACY_SUPPORT_TRUE=
22957  LEGACY_SUPPORT_FALSE='#'
22958else
22959  LEGACY_SUPPORT_TRUE='#'
22960  LEGACY_SUPPORT_FALSE=
22961fi
22962
22963
22964# Enable building command line utilities (default yes)
22965
22966# Check whether --with-utilities was given.
22967if test "${with_utilities+set}" = set; then :
22968  withval=$with_utilities; with_utilities=$withval
22969else
22970  with_utilities='yes'
22971fi
22972
22973 if test "$with_utilities" = 'yes'; then
22974  WITH_UTILITIES_TRUE=
22975  WITH_UTILITIES_FALSE='#'
22976else
22977  WITH_UTILITIES_TRUE='#'
22978  WITH_UTILITIES_FALSE=
22979fi
22980
22981
22982# Number of bits in a Quantum
22983
22984# Check whether --with-quantum-depth was given.
22985if test "${with_quantum_depth+set}" = set; then :
22986  withval=$with_quantum_depth; with_quantum_depth=$withval
22987else
22988  with_quantum_depth=16
22989fi
22990
22991
22992if test "$with_quantum_depth" != '8'; then
22993    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22994fi
22995
22996case "${with_quantum_depth}" in
22997    8 ) ;;
22998    16 ) ;;
22999    32 ) ;;
23000    64 ) ;;
23001    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
23002esac
23003QUANTUM_DEPTH="$with_quantum_depth"
23004
23005cat >>confdefs.h <<_ACEOF
23006#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
23007_ACEOF
23008
23009MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
23010CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
23011CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
23012
23013# define a lib suffix for abi purpose
23014MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
23015if test "$enable_hdri" = 'yes'; then
23016  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
23017fi
23018
23019
23020# Set pixel cache threshold
23021
23022# Check whether --with-cache was given.
23023if test "${with_cache+set}" = set; then :
23024  withval=$with_cache; with_cache=$withval
23025else
23026  with_cache=''
23027fi
23028
23029
23030if test "$with_cache" != ''; then
23031
23032cat >>confdefs.h <<_ACEOF
23033#define PixelCacheThreshold $with_cache
23034_ACEOF
23035
23036    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
23037fi
23038
23039# Disable/Enable support for full delegate paths
23040
23041# Check whether --with-frozenpaths was given.
23042if test "${with_frozenpaths+set}" = set; then :
23043  withval=$with_frozenpaths; with_frozenpaths=$withval
23044else
23045  with_frozenpaths='no'
23046fi
23047
23048
23049# Enable build/install of Magick++
23050
23051# Check whether --with-magick-plus-plus was given.
23052if test "${with_magick_plus_plus+set}" = set; then :
23053  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
23054else
23055  with_magick_plus_plus='yes'
23056fi
23057
23058
23059# Encode the this name into the shared library.
23060
23061# Check whether --with-package-release-name was given.
23062if test "${with_package_release_name+set}" = set; then :
23063  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
23064fi
23065
23066
23067
23068# Disable build/install of PerlMagick.
23069
23070# Check whether --with-perl was given.
23071if test "${with_perl+set}" = set; then :
23072  withval=$with_perl; with_perl=$withval
23073else
23074  with_perl='no'
23075fi
23076
23077
23078# Options to pass when configuring PerlMagick
23079
23080# Check whether --with-perl-options was given.
23081if test "${with_perl_options+set}" = set; then :
23082  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
23083fi
23084
23085
23086
23087# Enable jemalloc, object-caching memory allocation library.
23088
23089# Check whether --with-jemalloc was given.
23090if test "${with_jemalloc+set}" = set; then :
23091  withval=$with_jemalloc; with_jemalloc=$withval
23092else
23093  with_jemalloc='no'
23094fi
23095
23096if test "$with_jemalloc" != 'yes' ; then
23097    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
23098fi
23099
23100# Enable umem, object-caching memory allocation library.
23101
23102# Check whether --with-umem was given.
23103if test "${with_umem+set}" = set; then :
23104  withval=$with_umem; with_umem=$withval
23105else
23106  with_umem='no'
23107fi
23108
23109if test "$with_umem" != 'yes' ; then
23110    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
23111fi
23112
23113#
23114# Specify path to shared libstdc++ if not in normal location
23115#
23116
23117# Check whether --with-libstdc was given.
23118if test "${with_libstdc+set}" = set; then :
23119  withval=$with_libstdc; with_libstdc=$withval
23120else
23121  with_libstdc=''
23122fi
23123
23124
23125if test "$with_libstdc" != ''; then
23126    if test -d "$with_libstdc"; then
23127        LIBSTDCLDFLAGS="-L$with_libstdc"
23128    fi
23129fi
23130
23131
23132# Does gcc required -traditional?
23133if test $ac_cv_c_compiler_gnu = yes; then
23134    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
23135$as_echo_n "checking whether $CC needs -traditional... " >&6; }
23136if ${ac_cv_prog_gcc_traditional+:} false; then :
23137  $as_echo_n "(cached) " >&6
23138else
23139    ac_pattern="Autoconf.*'x'"
23140  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141/* end confdefs.h.  */
23142#include <sgtty.h>
23143Autoconf TIOCGETP
23144_ACEOF
23145if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23146  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
23147  ac_cv_prog_gcc_traditional=yes
23148else
23149  ac_cv_prog_gcc_traditional=no
23150fi
23151rm -f conftest*
23152
23153
23154  if test $ac_cv_prog_gcc_traditional = no; then
23155    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23156/* end confdefs.h.  */
23157#include <termio.h>
23158Autoconf TCGETA
23159_ACEOF
23160if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23161  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
23162  ac_cv_prog_gcc_traditional=yes
23163fi
23164rm -f conftest*
23165
23166  fi
23167fi
23168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
23169$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
23170  if test $ac_cv_prog_gcc_traditional = yes; then
23171    CC="$CC -traditional"
23172  fi
23173fi
23174
23175
23176########
23177#
23178# Set defines required to build DLLs and modules using MinGW
23179#
23180########
23181# These options are set for multi-thread DLL module build
23182#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
23183#  module:              _DLL
23184#  executable/Magick++: _DLL _MAGICKMOD_
23185MODULE_EXTRA_CPPFLAGS=''
23186LIBRARY_EXTRA_CPPFLAGS=''
23187if test "${native_win32_build}" = 'yes'; then
23188    if test "${libtool_build_shared_libs}" = 'yes'; then
23189        CPPFLAGS="$CPPFLAGS -D_DLL"
23190        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
23191        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
23192        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
23193        if test "$build_modules" = 'yes'; then
23194            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
23195        else
23196            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
23197        fi
23198    else
23199        CPPFLAGS="$CPPFLAGS -D_LIB"
23200        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
23201        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
23202    fi
23203    if test "$with_threads" = 'yes'; then
23204         CPPFLAGS="$CPPFLAGS -D_MT"
23205         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
23206         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
23207    fi
23208fi
23209
23210
23211
23212# Check standard headers
23213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23214$as_echo_n "checking for ANSI C header files... " >&6; }
23215if ${ac_cv_header_stdc+:} false; then :
23216  $as_echo_n "(cached) " >&6
23217else
23218  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219/* end confdefs.h.  */
23220#include <stdlib.h>
23221#include <stdarg.h>
23222#include <string.h>
23223#include <float.h>
23224
23225int
23226main ()
23227{
23228
23229  ;
23230  return 0;
23231}
23232_ACEOF
23233if ac_fn_c_try_compile "$LINENO"; then :
23234  ac_cv_header_stdc=yes
23235else
23236  ac_cv_header_stdc=no
23237fi
23238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23239
23240if test $ac_cv_header_stdc = yes; then
23241  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23242  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23243/* end confdefs.h.  */
23244#include <string.h>
23245
23246_ACEOF
23247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23248  $EGREP "memchr" >/dev/null 2>&1; then :
23249
23250else
23251  ac_cv_header_stdc=no
23252fi
23253rm -f conftest*
23254
23255fi
23256
23257if test $ac_cv_header_stdc = yes; then
23258  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23259  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23260/* end confdefs.h.  */
23261#include <stdlib.h>
23262
23263_ACEOF
23264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23265  $EGREP "free" >/dev/null 2>&1; then :
23266
23267else
23268  ac_cv_header_stdc=no
23269fi
23270rm -f conftest*
23271
23272fi
23273
23274if test $ac_cv_header_stdc = yes; then
23275  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23276  if test "$cross_compiling" = yes; then :
23277  :
23278else
23279  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280/* end confdefs.h.  */
23281#include <ctype.h>
23282#include <stdlib.h>
23283#if ((' ' & 0x0FF) == 0x020)
23284# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23285# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23286#else
23287# define ISLOWER(c) \
23288		   (('a' <= (c) && (c) <= 'i') \
23289		     || ('j' <= (c) && (c) <= 'r') \
23290		     || ('s' <= (c) && (c) <= 'z'))
23291# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23292#endif
23293
23294#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23295int
23296main ()
23297{
23298  int i;
23299  for (i = 0; i < 256; i++)
23300    if (XOR (islower (i), ISLOWER (i))
23301	|| toupper (i) != TOUPPER (i))
23302      return 2;
23303  return 0;
23304}
23305_ACEOF
23306if ac_fn_c_try_run "$LINENO"; then :
23307
23308else
23309  ac_cv_header_stdc=no
23310fi
23311rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23312  conftest.$ac_objext conftest.beam conftest.$ac_ext
23313fi
23314
23315fi
23316fi
23317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23318$as_echo "$ac_cv_header_stdc" >&6; }
23319if test $ac_cv_header_stdc = yes; then
23320
23321$as_echo "#define STDC_HEADERS 1" >>confdefs.h
23322
23323fi
23324
23325if ! test x"$ac_cv_header_stdc" = x"yes"; then
23326    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
23327    header files.  Compilation cannot proceed.  Please install the ANSI C
23328    headers and rerun this script." >&5
23329$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
23330    header files.  Compilation cannot proceed.  Please install the ANSI C
23331    headers and rerun this script." >&2;};
23332fi
23333
23334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
23335$as_echo_n "checking whether to enable assertions... " >&6; }
23336  # Check whether --enable-assert was given.
23337if test "${enable_assert+set}" = set; then :
23338  enableval=$enable_assert; ac_enable_assert=$enableval
23339     if       test "x$enableval" = xno; then :
23340
23341$as_echo "#define NDEBUG 1" >>confdefs.h
23342
23343elif test "x$enableval" != xyes; then :
23344  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
23345$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
23346	ac_enable_assert=yes
23347fi
23348else
23349  ac_enable_assert=yes
23350fi
23351
23352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
23353$as_echo "$ac_enable_assert" >&6; }
23354
23355ac_header_dirent=no
23356for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23357  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23359$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23360if eval \${$as_ac_Header+:} false; then :
23361  $as_echo_n "(cached) " >&6
23362else
23363  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23364/* end confdefs.h.  */
23365#include <sys/types.h>
23366#include <$ac_hdr>
23367
23368int
23369main ()
23370{
23371if ((DIR *) 0)
23372return 0;
23373  ;
23374  return 0;
23375}
23376_ACEOF
23377if ac_fn_c_try_compile "$LINENO"; then :
23378  eval "$as_ac_Header=yes"
23379else
23380  eval "$as_ac_Header=no"
23381fi
23382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383fi
23384eval ac_res=\$$as_ac_Header
23385	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23386$as_echo "$ac_res" >&6; }
23387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23388  cat >>confdefs.h <<_ACEOF
23389#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23390_ACEOF
23391
23392ac_header_dirent=$ac_hdr; break
23393fi
23394
23395done
23396# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23397if test $ac_header_dirent = dirent.h; then
23398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23399$as_echo_n "checking for library containing opendir... " >&6; }
23400if ${ac_cv_search_opendir+:} false; then :
23401  $as_echo_n "(cached) " >&6
23402else
23403  ac_func_search_save_LIBS=$LIBS
23404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23405/* end confdefs.h.  */
23406
23407/* Override any GCC internal prototype to avoid an error.
23408   Use char because int might match the return type of a GCC
23409   builtin and then its argument prototype would still apply.  */
23410#ifdef __cplusplus
23411extern "C"
23412#endif
23413char opendir ();
23414int
23415main ()
23416{
23417return opendir ();
23418  ;
23419  return 0;
23420}
23421_ACEOF
23422for ac_lib in '' dir; do
23423  if test -z "$ac_lib"; then
23424    ac_res="none required"
23425  else
23426    ac_res=-l$ac_lib
23427    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23428  fi
23429  if ac_fn_c_try_link "$LINENO"; then :
23430  ac_cv_search_opendir=$ac_res
23431fi
23432rm -f core conftest.err conftest.$ac_objext \
23433    conftest$ac_exeext
23434  if ${ac_cv_search_opendir+:} false; then :
23435  break
23436fi
23437done
23438if ${ac_cv_search_opendir+:} false; then :
23439
23440else
23441  ac_cv_search_opendir=no
23442fi
23443rm conftest.$ac_ext
23444LIBS=$ac_func_search_save_LIBS
23445fi
23446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23447$as_echo "$ac_cv_search_opendir" >&6; }
23448ac_res=$ac_cv_search_opendir
23449if test "$ac_res" != no; then :
23450  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23451
23452fi
23453
23454else
23455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23456$as_echo_n "checking for library containing opendir... " >&6; }
23457if ${ac_cv_search_opendir+:} false; then :
23458  $as_echo_n "(cached) " >&6
23459else
23460  ac_func_search_save_LIBS=$LIBS
23461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23462/* end confdefs.h.  */
23463
23464/* Override any GCC internal prototype to avoid an error.
23465   Use char because int might match the return type of a GCC
23466   builtin and then its argument prototype would still apply.  */
23467#ifdef __cplusplus
23468extern "C"
23469#endif
23470char opendir ();
23471int
23472main ()
23473{
23474return opendir ();
23475  ;
23476  return 0;
23477}
23478_ACEOF
23479for ac_lib in '' x; do
23480  if test -z "$ac_lib"; then
23481    ac_res="none required"
23482  else
23483    ac_res=-l$ac_lib
23484    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23485  fi
23486  if ac_fn_c_try_link "$LINENO"; then :
23487  ac_cv_search_opendir=$ac_res
23488fi
23489rm -f core conftest.err conftest.$ac_objext \
23490    conftest$ac_exeext
23491  if ${ac_cv_search_opendir+:} false; then :
23492  break
23493fi
23494done
23495if ${ac_cv_search_opendir+:} false; then :
23496
23497else
23498  ac_cv_search_opendir=no
23499fi
23500rm conftest.$ac_ext
23501LIBS=$ac_func_search_save_LIBS
23502fi
23503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23504$as_echo "$ac_cv_search_opendir" >&6; }
23505ac_res=$ac_cv_search_opendir
23506if test "$ac_res" != no; then :
23507  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23508
23509fi
23510
23511fi
23512
23513
23514# Check additional headers
23515for 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
23516do :
23517  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23518ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23519if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23520  cat >>confdefs.h <<_ACEOF
23521#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23522_ACEOF
23523
23524fi
23525
23526done
23527
23528
23529########
23530#
23531# Checks for typedefs, structures, and compiler characteristics.
23532#
23533########
23534
23535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
23536$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
23537if ${ac_cv_header_stdbool_h+:} false; then :
23538  $as_echo_n "(cached) " >&6
23539else
23540  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23541/* end confdefs.h.  */
23542
23543             #include <stdbool.h>
23544             #ifndef bool
23545              "error: bool is not defined"
23546             #endif
23547             #ifndef false
23548              "error: false is not defined"
23549             #endif
23550             #if false
23551              "error: false is not 0"
23552             #endif
23553             #ifndef true
23554              "error: true is not defined"
23555             #endif
23556             #if true != 1
23557              "error: true is not 1"
23558             #endif
23559             #ifndef __bool_true_false_are_defined
23560              "error: __bool_true_false_are_defined is not defined"
23561             #endif
23562
23563             struct s { _Bool s: 1; _Bool t; } s;
23564
23565             char a[true == 1 ? 1 : -1];
23566             char b[false == 0 ? 1 : -1];
23567             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
23568             char d[(bool) 0.5 == true ? 1 : -1];
23569             /* See body of main program for 'e'.  */
23570             char f[(_Bool) 0.0 == false ? 1 : -1];
23571             char g[true];
23572             char h[sizeof (_Bool)];
23573             char i[sizeof s.t];
23574             enum { j = false, k = true, l = false * true, m = true * 256 };
23575             /* The following fails for
23576                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
23577             _Bool n[m];
23578             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
23579             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
23580             /* Catch a bug in an HP-UX C compiler.  See
23581                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
23582                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
23583              */
23584             _Bool q = true;
23585             _Bool *pq = &q;
23586
23587int
23588main ()
23589{
23590
23591             bool e = &s;
23592             *pq |= q;
23593             *pq |= ! q;
23594             /* Refer to every declared value, to avoid compiler optimizations.  */
23595             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
23596                     + !m + !n + !o + !p + !q + !pq);
23597
23598  ;
23599  return 0;
23600}
23601_ACEOF
23602if ac_fn_c_try_compile "$LINENO"; then :
23603  ac_cv_header_stdbool_h=yes
23604else
23605  ac_cv_header_stdbool_h=no
23606fi
23607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23608fi
23609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
23610$as_echo "$ac_cv_header_stdbool_h" >&6; }
23611   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
23612if test "x$ac_cv_type__Bool" = xyes; then :
23613
23614cat >>confdefs.h <<_ACEOF
23615#define HAVE__BOOL 1
23616_ACEOF
23617
23618
23619fi
23620
23621
23622if test $ac_cv_header_stdbool_h = yes; then
23623
23624$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
23625
23626fi
23627
23628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
23629$as_echo_n "checking for working volatile... " >&6; }
23630if ${ac_cv_c_volatile+:} false; then :
23631  $as_echo_n "(cached) " >&6
23632else
23633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23634/* end confdefs.h.  */
23635
23636int
23637main ()
23638{
23639
23640volatile int x;
23641int * volatile y = (int *) 0;
23642return !x && !y;
23643  ;
23644  return 0;
23645}
23646_ACEOF
23647if ac_fn_c_try_compile "$LINENO"; then :
23648  ac_cv_c_volatile=yes
23649else
23650  ac_cv_c_volatile=no
23651fi
23652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23653fi
23654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
23655$as_echo "$ac_cv_c_volatile" >&6; }
23656if test $ac_cv_c_volatile = no; then
23657
23658$as_echo "#define volatile /**/" >>confdefs.h
23659
23660fi
23661
23662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
23663$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
23664if ${ac_cv_c_stringize+:} false; then :
23665  $as_echo_n "(cached) " >&6
23666else
23667  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23668/* end confdefs.h.  */
23669#define x(y) #y
23670
23671char *s = x(teststring);
23672_ACEOF
23673if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23674  $EGREP "#teststring" >/dev/null 2>&1; then :
23675  ac_cv_c_stringize=no
23676else
23677  ac_cv_c_stringize=yes
23678fi
23679rm -f conftest*
23680
23681fi
23682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
23683$as_echo "$ac_cv_c_stringize" >&6; }
23684if test $ac_cv_c_stringize = yes; then
23685
23686$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
23687
23688fi
23689
23690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
23691$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
23692if ${ac_cv_header_stat_broken+:} false; then :
23693  $as_echo_n "(cached) " >&6
23694else
23695  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23696/* end confdefs.h.  */
23697#include <sys/types.h>
23698#include <sys/stat.h>
23699
23700#if defined S_ISBLK && defined S_IFDIR
23701extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
23702#endif
23703
23704#if defined S_ISBLK && defined S_IFCHR
23705extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
23706#endif
23707
23708#if defined S_ISLNK && defined S_IFREG
23709extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
23710#endif
23711
23712#if defined S_ISSOCK && defined S_IFREG
23713extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23714#endif
23715
23716_ACEOF
23717if ac_fn_c_try_compile "$LINENO"; then :
23718  ac_cv_header_stat_broken=no
23719else
23720  ac_cv_header_stat_broken=yes
23721fi
23722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23723fi
23724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
23725$as_echo "$ac_cv_header_stat_broken" >&6; }
23726if test $ac_cv_header_stat_broken = yes; then
23727
23728$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
23729
23730fi
23731
23732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23733$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23734if ${ac_cv_header_time+:} false; then :
23735  $as_echo_n "(cached) " >&6
23736else
23737  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23738/* end confdefs.h.  */
23739#include <sys/types.h>
23740#include <sys/time.h>
23741#include <time.h>
23742
23743int
23744main ()
23745{
23746if ((struct tm *) 0)
23747return 0;
23748  ;
23749  return 0;
23750}
23751_ACEOF
23752if ac_fn_c_try_compile "$LINENO"; then :
23753  ac_cv_header_time=yes
23754else
23755  ac_cv_header_time=no
23756fi
23757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758fi
23759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23760$as_echo "$ac_cv_header_time" >&6; }
23761if test $ac_cv_header_time = yes; then
23762
23763$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23764
23765fi
23766
23767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
23768$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23769if ${ac_cv_struct_tm+:} false; then :
23770  $as_echo_n "(cached) " >&6
23771else
23772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23773/* end confdefs.h.  */
23774#include <sys/types.h>
23775#include <time.h>
23776
23777int
23778main ()
23779{
23780struct tm tm;
23781				     int *p = &tm.tm_sec;
23782				     return !p;
23783  ;
23784  return 0;
23785}
23786_ACEOF
23787if ac_fn_c_try_compile "$LINENO"; then :
23788  ac_cv_struct_tm=time.h
23789else
23790  ac_cv_struct_tm=sys/time.h
23791fi
23792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23793fi
23794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
23795$as_echo "$ac_cv_struct_tm" >&6; }
23796if test $ac_cv_struct_tm = sys/time.h; then
23797
23798$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
23799
23800fi
23801
23802ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
23803#include <$ac_cv_struct_tm>
23804
23805"
23806if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
23807
23808cat >>confdefs.h <<_ACEOF
23809#define HAVE_STRUCT_TM_TM_ZONE 1
23810_ACEOF
23811
23812
23813fi
23814
23815if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
23816
23817$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
23818
23819else
23820  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
23821"
23822if test "x$ac_cv_have_decl_tzname" = xyes; then :
23823  ac_have_decl=1
23824else
23825  ac_have_decl=0
23826fi
23827
23828cat >>confdefs.h <<_ACEOF
23829#define HAVE_DECL_TZNAME $ac_have_decl
23830_ACEOF
23831
23832  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
23833$as_echo_n "checking for tzname... " >&6; }
23834if ${ac_cv_var_tzname+:} false; then :
23835  $as_echo_n "(cached) " >&6
23836else
23837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23838/* end confdefs.h.  */
23839#include <time.h>
23840#if !HAVE_DECL_TZNAME
23841extern char *tzname[];
23842#endif
23843
23844int
23845main ()
23846{
23847return tzname[0][0];
23848  ;
23849  return 0;
23850}
23851_ACEOF
23852if ac_fn_c_try_link "$LINENO"; then :
23853  ac_cv_var_tzname=yes
23854else
23855  ac_cv_var_tzname=no
23856fi
23857rm -f core conftest.err conftest.$ac_objext \
23858    conftest$ac_exeext conftest.$ac_ext
23859fi
23860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
23861$as_echo "$ac_cv_var_tzname" >&6; }
23862  if test $ac_cv_var_tzname = yes; then
23863
23864$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
23865
23866  fi
23867fi
23868
23869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
23870$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23871if ${ac_cv_sys_interpreter+:} false; then :
23872  $as_echo_n "(cached) " >&6
23873else
23874  echo '#! /bin/cat
23875exit 69
23876' >conftest
23877chmod u+x conftest
23878(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23879if test $? -ne 69; then
23880   ac_cv_sys_interpreter=yes
23881else
23882   ac_cv_sys_interpreter=no
23883fi
23884rm -f conftest
23885fi
23886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
23887$as_echo "$ac_cv_sys_interpreter" >&6; }
23888interpval=$ac_cv_sys_interpreter
23889
23890
23891#
23892# Checks for language qualifiers and semantics.
23893#
23894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23895$as_echo_n "checking whether char is unsigned... " >&6; }
23896if ${ac_cv_c_char_unsigned+:} false; then :
23897  $as_echo_n "(cached) " >&6
23898else
23899  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23900/* end confdefs.h.  */
23901$ac_includes_default
23902int
23903main ()
23904{
23905static int test_array [1 - 2 * !(((char) -1) < 0)];
23906test_array [0] = 0;
23907return test_array [0];
23908
23909  ;
23910  return 0;
23911}
23912_ACEOF
23913if ac_fn_c_try_compile "$LINENO"; then :
23914  ac_cv_c_char_unsigned=no
23915else
23916  ac_cv_c_char_unsigned=yes
23917fi
23918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919fi
23920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23921$as_echo "$ac_cv_c_char_unsigned" >&6; }
23922if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23923  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23924
23925fi
23926
23927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23928$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23929if ${ac_cv_c_const+:} false; then :
23930  $as_echo_n "(cached) " >&6
23931else
23932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23933/* end confdefs.h.  */
23934
23935int
23936main ()
23937{
23938
23939#ifndef __cplusplus
23940  /* Ultrix mips cc rejects this sort of thing.  */
23941  typedef int charset[2];
23942  const charset cs = { 0, 0 };
23943  /* SunOS 4.1.1 cc rejects this.  */
23944  char const *const *pcpcc;
23945  char **ppc;
23946  /* NEC SVR4.0.2 mips cc rejects this.  */
23947  struct point {int x, y;};
23948  static struct point const zero = {0,0};
23949  /* AIX XL C 1.02.0.0 rejects this.
23950     It does not let you subtract one const X* pointer from another in
23951     an arm of an if-expression whose if-part is not a constant
23952     expression */
23953  const char *g = "string";
23954  pcpcc = &g + (g ? g-g : 0);
23955  /* HPUX 7.0 cc rejects these. */
23956  ++pcpcc;
23957  ppc = (char**) pcpcc;
23958  pcpcc = (char const *const *) ppc;
23959  { /* SCO 3.2v4 cc rejects this sort of thing.  */
23960    char tx;
23961    char *t = &tx;
23962    char const *s = 0 ? (char *) 0 : (char const *) 0;
23963
23964    *t++ = 0;
23965    if (s) return 0;
23966  }
23967  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
23968    int x[] = {25, 17};
23969    const int *foo = &x[0];
23970    ++foo;
23971  }
23972  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23973    typedef const int *iptr;
23974    iptr p = 0;
23975    ++p;
23976  }
23977  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
23978       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23979    struct s { int j; const int *ap[3]; } bx;
23980    struct s *b = &bx; b->j = 5;
23981  }
23982  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23983    const int foo = 10;
23984    if (!foo) return 0;
23985  }
23986  return !cs[0] && !zero.x;
23987#endif
23988
23989  ;
23990  return 0;
23991}
23992_ACEOF
23993if ac_fn_c_try_compile "$LINENO"; then :
23994  ac_cv_c_const=yes
23995else
23996  ac_cv_c_const=no
23997fi
23998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999fi
24000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
24001$as_echo "$ac_cv_c_const" >&6; }
24002if test $ac_cv_c_const = no; then
24003
24004$as_echo "#define const /**/" >>confdefs.h
24005
24006fi
24007
24008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24009$as_echo_n "checking for inline... " >&6; }
24010if ${ac_cv_c_inline+:} false; then :
24011  $as_echo_n "(cached) " >&6
24012else
24013  ac_cv_c_inline=no
24014for ac_kw in inline __inline__ __inline; do
24015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016/* end confdefs.h.  */
24017#ifndef __cplusplus
24018typedef int foo_t;
24019static $ac_kw foo_t static_foo () {return 0; }
24020$ac_kw foo_t foo () {return 0; }
24021#endif
24022
24023_ACEOF
24024if ac_fn_c_try_compile "$LINENO"; then :
24025  ac_cv_c_inline=$ac_kw
24026fi
24027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24028  test "$ac_cv_c_inline" != no && break
24029done
24030
24031fi
24032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24033$as_echo "$ac_cv_c_inline" >&6; }
24034
24035case $ac_cv_c_inline in
24036  inline | yes) ;;
24037  *)
24038    case $ac_cv_c_inline in
24039      no) ac_val=;;
24040      *) ac_val=$ac_cv_c_inline;;
24041    esac
24042    cat >>confdefs.h <<_ACEOF
24043#ifndef __cplusplus
24044#define inline $ac_val
24045#endif
24046_ACEOF
24047    ;;
24048esac
24049
24050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24051$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24052if ${ac_cv_c_restrict+:} false; then :
24053  $as_echo_n "(cached) " >&6
24054else
24055  ac_cv_c_restrict=no
24056   # The order here caters to the fact that C++ does not require restrict.
24057   for ac_kw in __restrict __restrict__ _Restrict restrict; do
24058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24059/* end confdefs.h.  */
24060typedef int * int_ptr;
24061	int foo (int_ptr $ac_kw ip) {
24062	return ip[0];
24063       }
24064int
24065main ()
24066{
24067int s[1];
24068	int * $ac_kw t = s;
24069	t[0] = 0;
24070	return foo(t)
24071  ;
24072  return 0;
24073}
24074_ACEOF
24075if ac_fn_c_try_compile "$LINENO"; then :
24076  ac_cv_c_restrict=$ac_kw
24077fi
24078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24079     test "$ac_cv_c_restrict" != no && break
24080   done
24081
24082fi
24083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24084$as_echo "$ac_cv_c_restrict" >&6; }
24085
24086 case $ac_cv_c_restrict in
24087   restrict) ;;
24088   no) $as_echo "#define restrict /**/" >>confdefs.h
24089 ;;
24090   *)  cat >>confdefs.h <<_ACEOF
24091#define restrict $ac_cv_c_restrict
24092_ACEOF
24093 ;;
24094 esac
24095
24096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
24097$as_echo_n "checking for working volatile... " >&6; }
24098if ${ac_cv_c_volatile+:} false; then :
24099  $as_echo_n "(cached) " >&6
24100else
24101  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24102/* end confdefs.h.  */
24103
24104int
24105main ()
24106{
24107
24108volatile int x;
24109int * volatile y = (int *) 0;
24110return !x && !y;
24111  ;
24112  return 0;
24113}
24114_ACEOF
24115if ac_fn_c_try_compile "$LINENO"; then :
24116  ac_cv_c_volatile=yes
24117else
24118  ac_cv_c_volatile=no
24119fi
24120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121fi
24122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
24123$as_echo "$ac_cv_c_volatile" >&6; }
24124if test $ac_cv_c_volatile = no; then
24125
24126$as_echo "#define volatile /**/" >>confdefs.h
24127
24128fi
24129
24130
24131# If words are stored with the most significant byte first (like
24132# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24134$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24135if ${ac_cv_c_bigendian+:} false; then :
24136  $as_echo_n "(cached) " >&6
24137else
24138  ac_cv_c_bigendian=unknown
24139    # See if we're dealing with a universal compiler.
24140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141/* end confdefs.h.  */
24142#ifndef __APPLE_CC__
24143	       not a universal capable compiler
24144	     #endif
24145	     typedef int dummy;
24146
24147_ACEOF
24148if ac_fn_c_try_compile "$LINENO"; then :
24149
24150	# Check for potential -arch flags.  It is not universal unless
24151	# there are at least two -arch flags with different values.
24152	ac_arch=
24153	ac_prev=
24154	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24155	 if test -n "$ac_prev"; then
24156	   case $ac_word in
24157	     i?86 | x86_64 | ppc | ppc64)
24158	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24159		 ac_arch=$ac_word
24160	       else
24161		 ac_cv_c_bigendian=universal
24162		 break
24163	       fi
24164	       ;;
24165	   esac
24166	   ac_prev=
24167	 elif test "x$ac_word" = "x-arch"; then
24168	   ac_prev=arch
24169	 fi
24170       done
24171fi
24172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24173    if test $ac_cv_c_bigendian = unknown; then
24174      # See if sys/param.h defines the BYTE_ORDER macro.
24175      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24176/* end confdefs.h.  */
24177#include <sys/types.h>
24178	     #include <sys/param.h>
24179
24180int
24181main ()
24182{
24183#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24184		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24185		     && LITTLE_ENDIAN)
24186	      bogus endian macros
24187	     #endif
24188
24189  ;
24190  return 0;
24191}
24192_ACEOF
24193if ac_fn_c_try_compile "$LINENO"; then :
24194  # It does; now see whether it defined to BIG_ENDIAN or not.
24195	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24196/* end confdefs.h.  */
24197#include <sys/types.h>
24198		#include <sys/param.h>
24199
24200int
24201main ()
24202{
24203#if BYTE_ORDER != BIG_ENDIAN
24204		 not big endian
24205		#endif
24206
24207  ;
24208  return 0;
24209}
24210_ACEOF
24211if ac_fn_c_try_compile "$LINENO"; then :
24212  ac_cv_c_bigendian=yes
24213else
24214  ac_cv_c_bigendian=no
24215fi
24216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24217fi
24218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24219    fi
24220    if test $ac_cv_c_bigendian = unknown; then
24221      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24222      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223/* end confdefs.h.  */
24224#include <limits.h>
24225
24226int
24227main ()
24228{
24229#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24230	      bogus endian macros
24231	     #endif
24232
24233  ;
24234  return 0;
24235}
24236_ACEOF
24237if ac_fn_c_try_compile "$LINENO"; then :
24238  # It does; now see whether it defined to _BIG_ENDIAN or not.
24239	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24240/* end confdefs.h.  */
24241#include <limits.h>
24242
24243int
24244main ()
24245{
24246#ifndef _BIG_ENDIAN
24247		 not big endian
24248		#endif
24249
24250  ;
24251  return 0;
24252}
24253_ACEOF
24254if ac_fn_c_try_compile "$LINENO"; then :
24255  ac_cv_c_bigendian=yes
24256else
24257  ac_cv_c_bigendian=no
24258fi
24259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24260fi
24261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24262    fi
24263    if test $ac_cv_c_bigendian = unknown; then
24264      # Compile a test program.
24265      if test "$cross_compiling" = yes; then :
24266  # Try to guess by grepping values from an object file.
24267	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268/* end confdefs.h.  */
24269short int ascii_mm[] =
24270		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24271		short int ascii_ii[] =
24272		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24273		int use_ascii (int i) {
24274		  return ascii_mm[i] + ascii_ii[i];
24275		}
24276		short int ebcdic_ii[] =
24277		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24278		short int ebcdic_mm[] =
24279		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24280		int use_ebcdic (int i) {
24281		  return ebcdic_mm[i] + ebcdic_ii[i];
24282		}
24283		extern int foo;
24284
24285int
24286main ()
24287{
24288return use_ascii (foo) == use_ebcdic (foo);
24289  ;
24290  return 0;
24291}
24292_ACEOF
24293if ac_fn_c_try_compile "$LINENO"; then :
24294  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
24295	      ac_cv_c_bigendian=yes
24296	    fi
24297	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
24298	      if test "$ac_cv_c_bigendian" = unknown; then
24299		ac_cv_c_bigendian=no
24300	      else
24301		# finding both strings is unlikely to happen, but who knows?
24302		ac_cv_c_bigendian=unknown
24303	      fi
24304	    fi
24305fi
24306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24307else
24308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24309/* end confdefs.h.  */
24310$ac_includes_default
24311int
24312main ()
24313{
24314
24315	     /* Are we little or big endian?  From Harbison&Steele.  */
24316	     union
24317	     {
24318	       long int l;
24319	       char c[sizeof (long int)];
24320	     } u;
24321	     u.l = 1;
24322	     return u.c[sizeof (long int) - 1] == 1;
24323
24324  ;
24325  return 0;
24326}
24327_ACEOF
24328if ac_fn_c_try_run "$LINENO"; then :
24329  ac_cv_c_bigendian=no
24330else
24331  ac_cv_c_bigendian=yes
24332fi
24333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24334  conftest.$ac_objext conftest.beam conftest.$ac_ext
24335fi
24336
24337    fi
24338fi
24339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24340$as_echo "$ac_cv_c_bigendian" >&6; }
24341 case $ac_cv_c_bigendian in #(
24342   yes)
24343     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
24344;; #(
24345   no)
24346      ;; #(
24347   universal)
24348
24349$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24350
24351     ;; #(
24352   *)
24353     as_fn_error $? "unknown endianness
24354 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24355 esac
24356
24357
24358# Define to a suitable type, if standard headers do not define it.
24359ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
24360case $ac_cv_c_int8_t in #(
24361  no|yes) ;; #(
24362  *)
24363
24364cat >>confdefs.h <<_ACEOF
24365#define int8_t $ac_cv_c_int8_t
24366_ACEOF
24367;;
24368esac
24369
24370ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
24371case $ac_cv_c_int16_t in #(
24372  no|yes) ;; #(
24373  *)
24374
24375cat >>confdefs.h <<_ACEOF
24376#define int16_t $ac_cv_c_int16_t
24377_ACEOF
24378;;
24379esac
24380
24381ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
24382case $ac_cv_c_int32_t in #(
24383  no|yes) ;; #(
24384  *)
24385
24386cat >>confdefs.h <<_ACEOF
24387#define int32_t $ac_cv_c_int32_t
24388_ACEOF
24389;;
24390esac
24391
24392ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
24393case $ac_cv_c_int64_t in #(
24394  no|yes) ;; #(
24395  *)
24396
24397cat >>confdefs.h <<_ACEOF
24398#define int64_t $ac_cv_c_int64_t
24399_ACEOF
24400;;
24401esac
24402
24403
24404  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24405$as_echo_n "checking for unsigned long long int... " >&6; }
24406if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24407  $as_echo_n "(cached) " >&6
24408else
24409  ac_cv_type_unsigned_long_long_int=yes
24410     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24411       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24412/* end confdefs.h.  */
24413
24414  /* For now, do not test the preprocessor; as of 2007 there are too many
24415	 implementations with broken preprocessors.  Perhaps this can
24416	 be revisited in 2012.  In the meantime, code should not expect
24417	 #if to work with literals wider than 32 bits.  */
24418      /* Test literals.  */
24419      long long int ll = 9223372036854775807ll;
24420      long long int nll = -9223372036854775807LL;
24421      unsigned long long int ull = 18446744073709551615ULL;
24422      /* Test constant expressions.   */
24423      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24424		     ? 1 : -1)];
24425      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24426		     ? 1 : -1)];
24427      int i = 63;
24428int
24429main ()
24430{
24431/* Test availability of runtime routines for shift and division.  */
24432      long long int llmax = 9223372036854775807ll;
24433      unsigned long long int ullmax = 18446744073709551615ull;
24434      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24435	      | (llmax / ll) | (llmax % ll)
24436	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24437	      | (ullmax / ull) | (ullmax % ull));
24438  ;
24439  return 0;
24440}
24441
24442_ACEOF
24443if ac_fn_c_try_link "$LINENO"; then :
24444
24445else
24446  ac_cv_type_unsigned_long_long_int=no
24447fi
24448rm -f core conftest.err conftest.$ac_objext \
24449    conftest$ac_exeext conftest.$ac_ext
24450     fi
24451fi
24452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24453$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24454  if test $ac_cv_type_unsigned_long_long_int = yes; then
24455
24456$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24457
24458  fi
24459
24460
24461
24462  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24463$as_echo_n "checking for long long int... " >&6; }
24464if ${ac_cv_type_long_long_int+:} false; then :
24465  $as_echo_n "(cached) " >&6
24466else
24467  ac_cv_type_long_long_int=yes
24468      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24469	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24470	if test $ac_cv_type_long_long_int = yes; then
24471	  	  	  	  if test "$cross_compiling" = yes; then :
24472  :
24473else
24474  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24475/* end confdefs.h.  */
24476#include <limits.h>
24477		 #ifndef LLONG_MAX
24478		 # define HALF \
24479			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24480		 # define LLONG_MAX (HALF - 1 + HALF)
24481		 #endif
24482int
24483main ()
24484{
24485long long int n = 1;
24486		 int i;
24487		 for (i = 0; ; i++)
24488		   {
24489		     long long int m = n << i;
24490		     if (m >> i != n)
24491		       return 1;
24492		     if (LLONG_MAX / 2 < m)
24493		       break;
24494		   }
24495		 return 0;
24496  ;
24497  return 0;
24498}
24499_ACEOF
24500if ac_fn_c_try_run "$LINENO"; then :
24501
24502else
24503  ac_cv_type_long_long_int=no
24504fi
24505rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24506  conftest.$ac_objext conftest.beam conftest.$ac_ext
24507fi
24508
24509	fi
24510      fi
24511fi
24512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24513$as_echo "$ac_cv_type_long_long_int" >&6; }
24514  if test $ac_cv_type_long_long_int = yes; then
24515
24516$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24517
24518  fi
24519
24520
24521
24522  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24523if test "x$ac_cv_type_intmax_t" = xyes; then :
24524
24525$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24526
24527else
24528  test $ac_cv_type_long_long_int = yes \
24529       && ac_type='long long int' \
24530       || ac_type='long int'
24531
24532cat >>confdefs.h <<_ACEOF
24533#define intmax_t $ac_type
24534_ACEOF
24535
24536fi
24537
24538
24539
24540  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24541if test "x$ac_cv_type_intptr_t" = xyes; then :
24542
24543$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
24544
24545else
24546  for ac_type in 'int' 'long int' 'long long int'; do
24547       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24548/* end confdefs.h.  */
24549$ac_includes_default
24550int
24551main ()
24552{
24553static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24554test_array [0] = 0;
24555return test_array [0];
24556
24557  ;
24558  return 0;
24559}
24560_ACEOF
24561if ac_fn_c_try_compile "$LINENO"; then :
24562
24563cat >>confdefs.h <<_ACEOF
24564#define intptr_t $ac_type
24565_ACEOF
24566
24567	  ac_type=
24568fi
24569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24570       test -z "$ac_type" && break
24571     done
24572fi
24573
24574
24575
24576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24577$as_echo_n "checking for long double... " >&6; }
24578if ${ac_cv_type_long_double+:} false; then :
24579  $as_echo_n "(cached) " >&6
24580else
24581  if test "$GCC" = yes; then
24582       ac_cv_type_long_double=yes
24583     else
24584       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585/* end confdefs.h.  */
24586/* The Stardent Vistra knows sizeof (long double), but does
24587		 not support it.  */
24588	      long double foo = 0.0L;
24589int
24590main ()
24591{
24592static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
24593	      sizeof (double) <= sizeof (long double))];
24594test_array [0] = 0;
24595return test_array [0];
24596
24597  ;
24598  return 0;
24599}
24600_ACEOF
24601if ac_fn_c_try_compile "$LINENO"; then :
24602  ac_cv_type_long_double=yes
24603else
24604  ac_cv_type_long_double=no
24605fi
24606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607     fi
24608fi
24609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
24610$as_echo "$ac_cv_type_long_double" >&6; }
24611  if test $ac_cv_type_long_double = yes; then
24612
24613$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
24614
24615  fi
24616
24617
24618  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
24619$as_echo_n "checking for long double with more range or precision than double... " >&6; }
24620if ${ac_cv_type_long_double_wider+:} false; then :
24621  $as_echo_n "(cached) " >&6
24622else
24623  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24624/* end confdefs.h.  */
24625#include <float.h>
24626	    long double const a[] =
24627	      {
24628		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24629		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24630	      };
24631	    long double
24632	    f (long double x)
24633	    {
24634	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24635			+ (x ? f (x) : 'c'));
24636	    }
24637
24638int
24639main ()
24640{
24641static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24642		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
24643		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
24644		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24645	    && (int) LDBL_EPSILON == 0
24646	  )];
24647test_array [0] = 0;
24648return test_array [0];
24649
24650  ;
24651  return 0;
24652}
24653_ACEOF
24654if ac_fn_c_try_compile "$LINENO"; then :
24655  ac_cv_type_long_double_wider=yes
24656else
24657  ac_cv_type_long_double_wider=no
24658fi
24659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24660fi
24661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
24662$as_echo "$ac_cv_type_long_double_wider" >&6; }
24663  if test $ac_cv_type_long_double_wider = yes; then
24664
24665$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
24666
24667  fi
24668
24669
24670
24671  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
24672$as_echo_n "checking for long long int... " >&6; }
24673if ${ac_cv_type_long_long_int+:} false; then :
24674  $as_echo_n "(cached) " >&6
24675else
24676  ac_cv_type_long_long_int=yes
24677      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24678	ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
24679	if test $ac_cv_type_long_long_int = yes; then
24680	  	  	  	  if test "$cross_compiling" = yes; then :
24681  :
24682else
24683  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24684/* end confdefs.h.  */
24685#include <limits.h>
24686		 #ifndef LLONG_MAX
24687		 # define HALF \
24688			  (1LL << (sizeof (long long int) * CHAR_BIT - 2))
24689		 # define LLONG_MAX (HALF - 1 + HALF)
24690		 #endif
24691int
24692main ()
24693{
24694long long int n = 1;
24695		 int i;
24696		 for (i = 0; ; i++)
24697		   {
24698		     long long int m = n << i;
24699		     if (m >> i != n)
24700		       return 1;
24701		     if (LLONG_MAX / 2 < m)
24702		       break;
24703		   }
24704		 return 0;
24705  ;
24706  return 0;
24707}
24708_ACEOF
24709if ac_fn_c_try_run "$LINENO"; then :
24710
24711else
24712  ac_cv_type_long_long_int=no
24713fi
24714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24715  conftest.$ac_objext conftest.beam conftest.$ac_ext
24716fi
24717
24718	fi
24719      fi
24720fi
24721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
24722$as_echo "$ac_cv_type_long_long_int" >&6; }
24723  if test $ac_cv_type_long_long_int = yes; then
24724
24725$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
24726
24727  fi
24728
24729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
24730$as_echo_n "checking for mbstate_t... " >&6; }
24731if ${ac_cv_type_mbstate_t+:} false; then :
24732  $as_echo_n "(cached) " >&6
24733else
24734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735/* end confdefs.h.  */
24736$ac_includes_default
24737#	    include <wchar.h>
24738int
24739main ()
24740{
24741mbstate_t x; return sizeof x;
24742  ;
24743  return 0;
24744}
24745_ACEOF
24746if ac_fn_c_try_compile "$LINENO"; then :
24747  ac_cv_type_mbstate_t=yes
24748else
24749  ac_cv_type_mbstate_t=no
24750fi
24751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24752fi
24753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
24754$as_echo "$ac_cv_type_mbstate_t" >&6; }
24755   if test $ac_cv_type_mbstate_t = yes; then
24756
24757$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
24758
24759   else
24760
24761$as_echo "#define mbstate_t int" >>confdefs.h
24762
24763   fi
24764ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
24765if test "x$ac_cv_type_mode_t" = xyes; then :
24766
24767else
24768
24769cat >>confdefs.h <<_ACEOF
24770#define mode_t int
24771_ACEOF
24772
24773fi
24774
24775ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
24776if test "x$ac_cv_type_off_t" = xyes; then :
24777
24778else
24779
24780cat >>confdefs.h <<_ACEOF
24781#define off_t long int
24782_ACEOF
24783
24784fi
24785
24786ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24787if test "x$ac_cv_type_pid_t" = xyes; then :
24788
24789else
24790
24791cat >>confdefs.h <<_ACEOF
24792#define pid_t int
24793_ACEOF
24794
24795fi
24796
24797ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24798if test "x$ac_cv_type_size_t" = xyes; then :
24799
24800else
24801
24802cat >>confdefs.h <<_ACEOF
24803#define size_t unsigned int
24804_ACEOF
24805
24806fi
24807
24808ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
24809if test "x$ac_cv_type_ssize_t" = xyes; then :
24810
24811else
24812
24813cat >>confdefs.h <<_ACEOF
24814#define ssize_t int
24815_ACEOF
24816
24817fi
24818
24819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
24820$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
24821if ${ac_cv_type_uid_t+:} false; then :
24822  $as_echo_n "(cached) " >&6
24823else
24824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24825/* end confdefs.h.  */
24826#include <sys/types.h>
24827
24828_ACEOF
24829if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24830  $EGREP "uid_t" >/dev/null 2>&1; then :
24831  ac_cv_type_uid_t=yes
24832else
24833  ac_cv_type_uid_t=no
24834fi
24835rm -f conftest*
24836
24837fi
24838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
24839$as_echo "$ac_cv_type_uid_t" >&6; }
24840if test $ac_cv_type_uid_t = no; then
24841
24842$as_echo "#define uid_t int" >>confdefs.h
24843
24844
24845$as_echo "#define gid_t int" >>confdefs.h
24846
24847fi
24848
24849ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
24850case $ac_cv_c_uint8_t in #(
24851  no|yes) ;; #(
24852  *)
24853
24854$as_echo "#define _UINT8_T 1" >>confdefs.h
24855
24856
24857cat >>confdefs.h <<_ACEOF
24858#define uint8_t $ac_cv_c_uint8_t
24859_ACEOF
24860;;
24861  esac
24862
24863ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
24864case $ac_cv_c_uint16_t in #(
24865  no|yes) ;; #(
24866  *)
24867
24868
24869cat >>confdefs.h <<_ACEOF
24870#define uint16_t $ac_cv_c_uint16_t
24871_ACEOF
24872;;
24873  esac
24874
24875ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
24876case $ac_cv_c_uint32_t in #(
24877  no|yes) ;; #(
24878  *)
24879
24880$as_echo "#define _UINT32_T 1" >>confdefs.h
24881
24882
24883cat >>confdefs.h <<_ACEOF
24884#define uint32_t $ac_cv_c_uint32_t
24885_ACEOF
24886;;
24887  esac
24888
24889ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
24890case $ac_cv_c_uint64_t in #(
24891  no|yes) ;; #(
24892  *)
24893
24894$as_echo "#define _UINT64_T 1" >>confdefs.h
24895
24896
24897cat >>confdefs.h <<_ACEOF
24898#define uint64_t $ac_cv_c_uint64_t
24899_ACEOF
24900;;
24901  esac
24902
24903
24904
24905  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
24906if test "x$ac_cv_type_uintmax_t" = xyes; then :
24907
24908$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
24909
24910else
24911  test $ac_cv_type_unsigned_long_long_int = yes \
24912       && ac_type='unsigned long long int' \
24913       || ac_type='unsigned long int'
24914
24915cat >>confdefs.h <<_ACEOF
24916#define uintmax_t $ac_type
24917_ACEOF
24918
24919fi
24920
24921
24922
24923  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
24924if test "x$ac_cv_type_uintptr_t" = xyes; then :
24925
24926$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
24927
24928else
24929  for ac_type in 'unsigned int' 'unsigned long int' \
24930	'unsigned long long int'; do
24931       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932/* end confdefs.h.  */
24933$ac_includes_default
24934int
24935main ()
24936{
24937static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
24938test_array [0] = 0;
24939return test_array [0];
24940
24941  ;
24942  return 0;
24943}
24944_ACEOF
24945if ac_fn_c_try_compile "$LINENO"; then :
24946
24947cat >>confdefs.h <<_ACEOF
24948#define uintptr_t $ac_type
24949_ACEOF
24950
24951	  ac_type=
24952fi
24953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24954       test -z "$ac_type" && break
24955     done
24956fi
24957
24958
24959
24960  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
24961$as_echo_n "checking for unsigned long long int... " >&6; }
24962if ${ac_cv_type_unsigned_long_long_int+:} false; then :
24963  $as_echo_n "(cached) " >&6
24964else
24965  ac_cv_type_unsigned_long_long_int=yes
24966     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
24967       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968/* end confdefs.h.  */
24969
24970  /* For now, do not test the preprocessor; as of 2007 there are too many
24971	 implementations with broken preprocessors.  Perhaps this can
24972	 be revisited in 2012.  In the meantime, code should not expect
24973	 #if to work with literals wider than 32 bits.  */
24974      /* Test literals.  */
24975      long long int ll = 9223372036854775807ll;
24976      long long int nll = -9223372036854775807LL;
24977      unsigned long long int ull = 18446744073709551615ULL;
24978      /* Test constant expressions.   */
24979      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
24980		     ? 1 : -1)];
24981      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
24982		     ? 1 : -1)];
24983      int i = 63;
24984int
24985main ()
24986{
24987/* Test availability of runtime routines for shift and division.  */
24988      long long int llmax = 9223372036854775807ll;
24989      unsigned long long int ullmax = 18446744073709551615ull;
24990      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
24991	      | (llmax / ll) | (llmax % ll)
24992	      | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
24993	      | (ullmax / ull) | (ullmax % ull));
24994  ;
24995  return 0;
24996}
24997
24998_ACEOF
24999if ac_fn_c_try_link "$LINENO"; then :
25000
25001else
25002  ac_cv_type_unsigned_long_long_int=no
25003fi
25004rm -f core conftest.err conftest.$ac_objext \
25005    conftest$ac_exeext conftest.$ac_ext
25006     fi
25007fi
25008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
25009$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
25010  if test $ac_cv_type_unsigned_long_long_int = yes; then
25011
25012$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
25013
25014  fi
25015
25016
25017ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
25018"
25019if test "x$ac_cv_type_locale_t" = xyes; then :
25020
25021cat >>confdefs.h <<_ACEOF
25022#define HAVE_LOCALE_T 1
25023_ACEOF
25024
25025
25026fi
25027
25028
25029# Float_t and double_t are intended to be the the most efficient type.
25030ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
25031"
25032if test "x$ac_cv_type_float_t" = xyes; then :
25033
25034cat >>confdefs.h <<_ACEOF
25035#define HAVE_FLOAT_T 1
25036_ACEOF
25037
25038
25039fi
25040
25041ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
25042"
25043if test "x$ac_cv_type_double_t" = xyes; then :
25044
25045cat >>confdefs.h <<_ACEOF
25046#define HAVE_DOUBLE_T 1
25047_ACEOF
25048
25049
25050fi
25051
25052# The cast to long int works around a bug in the HP C Compiler
25053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25055# This bug is HP SR number 8606223364.
25056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
25057$as_echo_n "checking size of float_t... " >&6; }
25058if ${ac_cv_sizeof_float_t+:} false; then :
25059  $as_echo_n "(cached) " >&6
25060else
25061  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
25062"; then :
25063
25064else
25065  if test "$ac_cv_type_float_t" = yes; then
25066     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25067$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25068as_fn_error 77 "cannot compute sizeof (float_t)
25069See \`config.log' for more details" "$LINENO" 5; }
25070   else
25071     ac_cv_sizeof_float_t=0
25072   fi
25073fi
25074
25075fi
25076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
25077$as_echo "$ac_cv_sizeof_float_t" >&6; }
25078
25079
25080
25081cat >>confdefs.h <<_ACEOF
25082#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
25083_ACEOF
25084
25085
25086# The cast to long int works around a bug in the HP C Compiler
25087# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25088# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25089# This bug is HP SR number 8606223364.
25090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
25091$as_echo_n "checking size of double_t... " >&6; }
25092if ${ac_cv_sizeof_double_t+:} false; then :
25093  $as_echo_n "(cached) " >&6
25094else
25095  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
25096"; then :
25097
25098else
25099  if test "$ac_cv_type_double_t" = yes; then
25100     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25102as_fn_error 77 "cannot compute sizeof (double_t)
25103See \`config.log' for more details" "$LINENO" 5; }
25104   else
25105     ac_cv_sizeof_double_t=0
25106   fi
25107fi
25108
25109fi
25110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
25111$as_echo "$ac_cv_sizeof_double_t" >&6; }
25112
25113
25114
25115cat >>confdefs.h <<_ACEOF
25116#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
25117_ACEOF
25118
25119
25120
25121# Get size of float, double and long double for comparaison.
25122# The cast to long int works around a bug in the HP C Compiler
25123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25125# This bug is HP SR number 8606223364.
25126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
25127$as_echo_n "checking size of float... " >&6; }
25128if ${ac_cv_sizeof_float+:} false; then :
25129  $as_echo_n "(cached) " >&6
25130else
25131  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
25132
25133else
25134  if test "$ac_cv_type_float" = yes; then
25135     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25137as_fn_error 77 "cannot compute sizeof (float)
25138See \`config.log' for more details" "$LINENO" 5; }
25139   else
25140     ac_cv_sizeof_float=0
25141   fi
25142fi
25143
25144fi
25145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
25146$as_echo "$ac_cv_sizeof_float" >&6; }
25147
25148
25149
25150cat >>confdefs.h <<_ACEOF
25151#define SIZEOF_FLOAT $ac_cv_sizeof_float
25152_ACEOF
25153
25154
25155# The cast to long int works around a bug in the HP C Compiler
25156# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25157# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25158# This bug is HP SR number 8606223364.
25159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
25160$as_echo_n "checking size of double... " >&6; }
25161if ${ac_cv_sizeof_double+:} false; then :
25162  $as_echo_n "(cached) " >&6
25163else
25164  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
25165
25166else
25167  if test "$ac_cv_type_double" = yes; then
25168     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25170as_fn_error 77 "cannot compute sizeof (double)
25171See \`config.log' for more details" "$LINENO" 5; }
25172   else
25173     ac_cv_sizeof_double=0
25174   fi
25175fi
25176
25177fi
25178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
25179$as_echo "$ac_cv_sizeof_double" >&6; }
25180
25181
25182
25183cat >>confdefs.h <<_ACEOF
25184#define SIZEOF_DOUBLE $ac_cv_sizeof_double
25185_ACEOF
25186
25187
25188# The cast to long int works around a bug in the HP C Compiler
25189# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25190# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25191# This bug is HP SR number 8606223364.
25192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
25193$as_echo_n "checking size of long double... " >&6; }
25194if ${ac_cv_sizeof_long_double+:} false; then :
25195  $as_echo_n "(cached) " >&6
25196else
25197  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
25198
25199else
25200  if test "$ac_cv_type_long_double" = yes; then
25201     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25203as_fn_error 77 "cannot compute sizeof (long double)
25204See \`config.log' for more details" "$LINENO" 5; }
25205   else
25206     ac_cv_sizeof_long_double=0
25207   fi
25208fi
25209
25210fi
25211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
25212$as_echo "$ac_cv_sizeof_long_double" >&6; }
25213
25214
25215
25216cat >>confdefs.h <<_ACEOF
25217#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
25218_ACEOF
25219
25220
25221
25222# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
25223# The cast to long int works around a bug in the HP C Compiler
25224# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25225# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25226# This bug is HP SR number 8606223364.
25227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
25228$as_echo_n "checking size of signed short... " >&6; }
25229if ${ac_cv_sizeof_signed_short+:} false; then :
25230  $as_echo_n "(cached) " >&6
25231else
25232  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
25233
25234else
25235  if test "$ac_cv_type_signed_short" = yes; then
25236     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25238as_fn_error 77 "cannot compute sizeof (signed short)
25239See \`config.log' for more details" "$LINENO" 5; }
25240   else
25241     ac_cv_sizeof_signed_short=0
25242   fi
25243fi
25244
25245fi
25246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
25247$as_echo "$ac_cv_sizeof_signed_short" >&6; }
25248
25249
25250
25251cat >>confdefs.h <<_ACEOF
25252#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
25253_ACEOF
25254
25255
25256
25257# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
25258# The cast to long int works around a bug in the HP C Compiler
25259# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25260# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25261# This bug is HP SR number 8606223364.
25262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
25263$as_echo_n "checking size of unsigned short... " >&6; }
25264if ${ac_cv_sizeof_unsigned_short+:} false; then :
25265  $as_echo_n "(cached) " >&6
25266else
25267  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
25268
25269else
25270  if test "$ac_cv_type_unsigned_short" = yes; then
25271     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25272$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25273as_fn_error 77 "cannot compute sizeof (unsigned short)
25274See \`config.log' for more details" "$LINENO" 5; }
25275   else
25276     ac_cv_sizeof_unsigned_short=0
25277   fi
25278fi
25279
25280fi
25281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
25282$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
25283
25284
25285
25286cat >>confdefs.h <<_ACEOF
25287#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25288_ACEOF
25289
25290
25291
25292# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
25293# The cast to long int works around a bug in the HP C Compiler
25294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25296# This bug is HP SR number 8606223364.
25297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
25298$as_echo_n "checking size of signed int... " >&6; }
25299if ${ac_cv_sizeof_signed_int+:} false; then :
25300  $as_echo_n "(cached) " >&6
25301else
25302  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
25303
25304else
25305  if test "$ac_cv_type_signed_int" = yes; then
25306     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25308as_fn_error 77 "cannot compute sizeof (signed int)
25309See \`config.log' for more details" "$LINENO" 5; }
25310   else
25311     ac_cv_sizeof_signed_int=0
25312   fi
25313fi
25314
25315fi
25316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
25317$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25318
25319
25320
25321cat >>confdefs.h <<_ACEOF
25322#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25323_ACEOF
25324
25325
25326
25327# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25328# The cast to long int works around a bug in the HP C Compiler
25329# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25330# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25331# This bug is HP SR number 8606223364.
25332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
25333$as_echo_n "checking size of unsigned int... " >&6; }
25334if ${ac_cv_sizeof_unsigned_int+:} false; then :
25335  $as_echo_n "(cached) " >&6
25336else
25337  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
25338
25339else
25340  if test "$ac_cv_type_unsigned_int" = yes; then
25341     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25343as_fn_error 77 "cannot compute sizeof (unsigned int)
25344See \`config.log' for more details" "$LINENO" 5; }
25345   else
25346     ac_cv_sizeof_unsigned_int=0
25347   fi
25348fi
25349
25350fi
25351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
25352$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
25353
25354
25355
25356cat >>confdefs.h <<_ACEOF
25357#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25358_ACEOF
25359
25360
25361
25362# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
25363# The cast to long int works around a bug in the HP C Compiler
25364# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25365# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25366# This bug is HP SR number 8606223364.
25367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
25368$as_echo_n "checking size of signed long... " >&6; }
25369if ${ac_cv_sizeof_signed_long+:} false; then :
25370  $as_echo_n "(cached) " >&6
25371else
25372  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
25373
25374else
25375  if test "$ac_cv_type_signed_long" = yes; then
25376     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25377$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25378as_fn_error 77 "cannot compute sizeof (signed long)
25379See \`config.log' for more details" "$LINENO" 5; }
25380   else
25381     ac_cv_sizeof_signed_long=0
25382   fi
25383fi
25384
25385fi
25386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
25387$as_echo "$ac_cv_sizeof_signed_long" >&6; }
25388
25389
25390
25391cat >>confdefs.h <<_ACEOF
25392#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
25393_ACEOF
25394
25395
25396
25397# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
25398# The cast to long int works around a bug in the HP C Compiler
25399# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25400# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25401# This bug is HP SR number 8606223364.
25402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
25403$as_echo_n "checking size of unsigned long... " >&6; }
25404if ${ac_cv_sizeof_unsigned_long+:} false; then :
25405  $as_echo_n "(cached) " >&6
25406else
25407  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
25408
25409else
25410  if test "$ac_cv_type_unsigned_long" = yes; then
25411     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25413as_fn_error 77 "cannot compute sizeof (unsigned long)
25414See \`config.log' for more details" "$LINENO" 5; }
25415   else
25416     ac_cv_sizeof_unsigned_long=0
25417   fi
25418fi
25419
25420fi
25421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
25422$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
25423
25424
25425
25426cat >>confdefs.h <<_ACEOF
25427#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
25428_ACEOF
25429
25430
25431
25432# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
25433# 'signed long long' is not supported then the value defined is zero.
25434# The cast to long int works around a bug in the HP C Compiler
25435# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25436# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25437# This bug is HP SR number 8606223364.
25438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
25439$as_echo_n "checking size of signed long long... " >&6; }
25440if ${ac_cv_sizeof_signed_long_long+:} false; then :
25441  $as_echo_n "(cached) " >&6
25442else
25443  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
25444
25445else
25446  if test "$ac_cv_type_signed_long_long" = yes; then
25447     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25449as_fn_error 77 "cannot compute sizeof (signed long long)
25450See \`config.log' for more details" "$LINENO" 5; }
25451   else
25452     ac_cv_sizeof_signed_long_long=0
25453   fi
25454fi
25455
25456fi
25457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
25458$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
25459
25460
25461
25462cat >>confdefs.h <<_ACEOF
25463#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
25464_ACEOF
25465
25466
25467
25468# Obtain size of a 'unsigned long long' and define as
25469# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
25470# supported then the value defined is zero.
25471# The cast to long int works around a bug in the HP C Compiler
25472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25474# This bug is HP SR number 8606223364.
25475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
25476$as_echo_n "checking size of unsigned long long... " >&6; }
25477if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
25478  $as_echo_n "(cached) " >&6
25479else
25480  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
25481
25482else
25483  if test "$ac_cv_type_unsigned_long_long" = yes; then
25484     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25485$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25486as_fn_error 77 "cannot compute sizeof (unsigned long long)
25487See \`config.log' for more details" "$LINENO" 5; }
25488   else
25489     ac_cv_sizeof_unsigned_long_long=0
25490   fi
25491fi
25492
25493fi
25494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
25495$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
25496
25497
25498
25499cat >>confdefs.h <<_ACEOF
25500#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
25501_ACEOF
25502
25503
25504
25505# Obtain size of off_t and define as SIZEOF_OFF_T
25506# The cast to long int works around a bug in the HP C Compiler
25507# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25508# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25509# This bug is HP SR number 8606223364.
25510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
25511$as_echo_n "checking size of off_t... " >&6; }
25512if ${ac_cv_sizeof_off_t+:} false; then :
25513  $as_echo_n "(cached) " >&6
25514else
25515  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
25516
25517else
25518  if test "$ac_cv_type_off_t" = yes; then
25519     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25521as_fn_error 77 "cannot compute sizeof (off_t)
25522See \`config.log' for more details" "$LINENO" 5; }
25523   else
25524     ac_cv_sizeof_off_t=0
25525   fi
25526fi
25527
25528fi
25529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
25530$as_echo "$ac_cv_sizeof_off_t" >&6; }
25531
25532
25533
25534cat >>confdefs.h <<_ACEOF
25535#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
25536_ACEOF
25537
25538
25539
25540# Obtain size of size_t and define as SIZEOF_SIZE_T
25541# The cast to long int works around a bug in the HP C Compiler
25542# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25543# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25544# This bug is HP SR number 8606223364.
25545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
25546$as_echo_n "checking size of size_t... " >&6; }
25547if ${ac_cv_sizeof_size_t+:} false; then :
25548  $as_echo_n "(cached) " >&6
25549else
25550  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
25551
25552else
25553  if test "$ac_cv_type_size_t" = yes; then
25554     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25556as_fn_error 77 "cannot compute sizeof (size_t)
25557See \`config.log' for more details" "$LINENO" 5; }
25558   else
25559     ac_cv_sizeof_size_t=0
25560   fi
25561fi
25562
25563fi
25564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
25565$as_echo "$ac_cv_sizeof_size_t" >&6; }
25566
25567
25568
25569cat >>confdefs.h <<_ACEOF
25570#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
25571_ACEOF
25572
25573
25574
25575# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
25576# The cast to long int works around a bug in the HP C Compiler
25577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25579# This bug is HP SR number 8606223364.
25580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
25581$as_echo_n "checking size of ssize_t... " >&6; }
25582if ${ac_cv_sizeof_ssize_t+:} false; then :
25583  $as_echo_n "(cached) " >&6
25584else
25585  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
25586
25587else
25588  if test "$ac_cv_type_ssize_t" = yes; then
25589     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25591as_fn_error 77 "cannot compute sizeof (ssize_t)
25592See \`config.log' for more details" "$LINENO" 5; }
25593   else
25594     ac_cv_sizeof_ssize_t=0
25595   fi
25596fi
25597
25598fi
25599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
25600$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
25601
25602
25603
25604cat >>confdefs.h <<_ACEOF
25605#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
25606_ACEOF
25607
25608
25609
25610# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
25611# The cast to long int works around a bug in the HP C Compiler
25612# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25613# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25614# This bug is HP SR number 8606223364.
25615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
25616$as_echo_n "checking size of unsigned int*... " >&6; }
25617if ${ac_cv_sizeof_unsigned_intp+:} false; then :
25618  $as_echo_n "(cached) " >&6
25619else
25620  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
25621
25622else
25623  if test "$ac_cv_type_unsigned_intp" = yes; then
25624     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25625$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25626as_fn_error 77 "cannot compute sizeof (unsigned int*)
25627See \`config.log' for more details" "$LINENO" 5; }
25628   else
25629     ac_cv_sizeof_unsigned_intp=0
25630   fi
25631fi
25632
25633fi
25634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
25635$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
25636
25637
25638
25639cat >>confdefs.h <<_ACEOF
25640#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
25641_ACEOF
25642
25643
25644
25645#
25646# Compute sized types for current CPU and compiler options.
25647#
25648
25649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
25650$as_echo_n "checking for signed 8-bit type... " >&6; }
25651INT8_T='signed char'
25652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
25653$as_echo "$INT8_T" >&6; }
25654
25655
25656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
25657$as_echo_n "checking for unsigned 8-bit type... " >&6; }
25658UINT8_T='unsigned char'
25659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
25660$as_echo "$UINT8_T" >&6; }
25661
25662
25663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
25664$as_echo_n "checking for signed 16-bit type... " >&6; }
25665INT16_T='signed short'
25666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
25667$as_echo "$INT16_T" >&6; }
25668
25669
25670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
25671$as_echo_n "checking for unsigned 16-bit type... " >&6; }
25672UINT16_T='unsigned short'
25673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
25674$as_echo "$UINT16_T" >&6; }
25675
25676
25677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
25678$as_echo_n "checking for signed 32-bit type... " >&6; }
25679INT32_T='none'
25680INT32_F='none'
25681if test $ac_cv_sizeof_signed_int -eq 4; then
25682  INT32_T='signed int'
25683  INT32_F='""'
25684elif test $ac_cv_sizeof_signed_long -eq 4; then
25685  INT32_T='signed long'
25686  INT32_F='"l"'
25687fi
25688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
25689$as_echo "$INT32_T" >&6; }
25690
25691
25692
25693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
25694$as_echo_n "checking for unsigned 32-bit type... " >&6; }
25695UINT32_T='none'
25696UINT32_F='none'
25697if test $ac_cv_sizeof_unsigned_int -eq 4; then
25698  UINT32_T='unsigned int'
25699  UINT32_F='""'
25700elif test $ac_cv_sizeof_unsigned_long -eq 4; then
25701  UINT32_T='unsigned long'
25702  UINT32_F='"l"'
25703fi
25704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
25705$as_echo "$UINT32_T" >&6; }
25706
25707
25708
25709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
25710$as_echo_n "checking for signed 64-bit type... " >&6; }
25711INT64_T='none'
25712INT64_F='none'
25713if test $ac_cv_sizeof_signed_long -eq 8; then
25714  INT64_T='signed long'
25715  INT64_F='"l"'
25716elif test $ac_cv_sizeof_signed_long_long -eq 8; then
25717  INT64_T='signed long long'
25718  INT64_F='"ll"'
25719fi
25720case "${host_os}" in
25721  mingw* )
25722    INT64_F='"I64"'
25723    ;;
25724esac
25725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
25726$as_echo "$INT64_T" >&6; }
25727
25728
25729
25730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
25731$as_echo_n "checking for unsigned 64-bit type... " >&6; }
25732UINT64_T='none'
25733UINT64_F='none'
25734if test $ac_cv_sizeof_unsigned_long -eq 8; then
25735  UINT64_T='unsigned long'
25736  UINT64_F='"l"'
25737elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
25738  UINT64_T='unsigned long long'
25739  UINT64_F='"ll"'
25740fi
25741case "${host_os}" in
25742  mingw* )
25743    UINT64_F='"I64"'
25744    ;;
25745esac
25746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
25747$as_echo "$UINT64_T" >&6; }
25748
25749
25750
25751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
25752$as_echo_n "checking for unsigned maximum type... " >&6; }
25753UINTMAX_T='none'
25754UINTMAX_F='none'
25755if test "$UINT64_T" != 'none'; then
25756  UINTMAX_T=$UINT64_T
25757  UINTMAX_F=$UINT64_F
25758elif test "$UINT32_T" != 'none'; then
25759  UINTMAX_T=$UINT32_T
25760  UINTMAX_F=$UINT32_F
25761fi
25762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
25763$as_echo "$UINTMAX_T" >&6; }
25764
25765
25766
25767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
25768$as_echo_n "checking for pointer difference type... " >&6; }
25769UINTPTR_T='none'
25770UINTPTR_F='none'
25771if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
25772  UINTPTR_T='unsigned long'
25773  UINTPTR_F='"l"'
25774elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
25775  UINTPTR_T='unsigned long long'
25776  UINTPTR_F='"ll"'
25777fi
25778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
25779$as_echo "$UINTPTR_T" >&6; }
25780
25781
25782
25783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
25784$as_echo_n "checking whether our compiler supports __func__... " >&6; }
25785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786/* end confdefs.h.  */
25787
25788int
25789main ()
25790{
25791{ const char *func = __func__; return(func != 0 ? 0 : 1); }
25792  ;
25793  return 0;
25794}
25795_ACEOF
25796if ac_fn_c_try_compile "$LINENO"; then :
25797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25798$as_echo "yes" >&6; }
25799else
25800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25801$as_echo "no" >&6; }
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
25803$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805/* end confdefs.h.  */
25806
25807int
25808main ()
25809{
25810{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
25811  ;
25812  return 0;
25813}
25814_ACEOF
25815if ac_fn_c_try_compile "$LINENO"; then :
25816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25817$as_echo "yes" >&6; }
25818
25819$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
25820
25821else
25822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25823$as_echo "no" >&6; }
25824
25825$as_echo "#define __func__ __FILE__" >>confdefs.h
25826
25827fi
25828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25829fi
25830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831
25832########
25833#
25834# Check for functions
25835#
25836########
25837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
25838$as_echo_n "checking whether closedir returns void... " >&6; }
25839if ${ac_cv_func_closedir_void+:} false; then :
25840  $as_echo_n "(cached) " >&6
25841else
25842  if test "$cross_compiling" = yes; then :
25843  ac_cv_func_closedir_void=yes
25844else
25845  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25846/* end confdefs.h.  */
25847$ac_includes_default
25848#include <$ac_header_dirent>
25849#ifndef __cplusplus
25850int closedir ();
25851#endif
25852
25853int
25854main ()
25855{
25856return closedir (opendir (".")) != 0;
25857  ;
25858  return 0;
25859}
25860_ACEOF
25861if ac_fn_c_try_run "$LINENO"; then :
25862  ac_cv_func_closedir_void=no
25863else
25864  ac_cv_func_closedir_void=yes
25865fi
25866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25867  conftest.$ac_objext conftest.beam conftest.$ac_ext
25868fi
25869
25870fi
25871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
25872$as_echo "$ac_cv_func_closedir_void" >&6; }
25873if test $ac_cv_func_closedir_void = yes; then
25874
25875$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
25876
25877fi
25878
25879
25880
25881
25882  for ac_header in $ac_header_list
25883do :
25884  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25885ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
25886"
25887if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25888  cat >>confdefs.h <<_ACEOF
25889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25890_ACEOF
25891
25892fi
25893
25894done
25895
25896
25897
25898
25899
25900
25901
25902
25903for ac_func in getpagesize
25904do :
25905  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
25906if test "x$ac_cv_func_getpagesize" = xyes; then :
25907  cat >>confdefs.h <<_ACEOF
25908#define HAVE_GETPAGESIZE 1
25909_ACEOF
25910
25911fi
25912done
25913
25914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
25915$as_echo_n "checking for working mmap... " >&6; }
25916if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
25917  $as_echo_n "(cached) " >&6
25918else
25919  if test "$cross_compiling" = yes; then :
25920  ac_cv_func_mmap_fixed_mapped=no
25921else
25922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25923/* end confdefs.h.  */
25924$ac_includes_default
25925/* malloc might have been renamed as rpl_malloc. */
25926#undef malloc
25927
25928/* Thanks to Mike Haertel and Jim Avera for this test.
25929   Here is a matrix of mmap possibilities:
25930	mmap private not fixed
25931	mmap private fixed at somewhere currently unmapped
25932	mmap private fixed at somewhere already mapped
25933	mmap shared not fixed
25934	mmap shared fixed at somewhere currently unmapped
25935	mmap shared fixed at somewhere already mapped
25936   For private mappings, we should verify that changes cannot be read()
25937   back from the file, nor mmap's back from the file at a different
25938   address.  (There have been systems where private was not correctly
25939   implemented like the infamous i386 svr4.0, and systems where the
25940   VM page cache was not coherent with the file system buffer cache
25941   like early versions of FreeBSD and possibly contemporary NetBSD.)
25942   For shared mappings, we should conversely verify that changes get
25943   propagated back to all the places they're supposed to be.
25944
25945   Grep wants private fixed already mapped.
25946   The main things grep needs to know about mmap are:
25947   * does it exist and is it safe to write into the mmap'd area
25948   * how to use it (BSD variants)  */
25949
25950#include <fcntl.h>
25951#include <sys/mman.h>
25952
25953#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
25954char *malloc ();
25955#endif
25956
25957/* This mess was copied from the GNU getpagesize.h.  */
25958#ifndef HAVE_GETPAGESIZE
25959# ifdef _SC_PAGESIZE
25960#  define getpagesize() sysconf(_SC_PAGESIZE)
25961# else /* no _SC_PAGESIZE */
25962#  ifdef HAVE_SYS_PARAM_H
25963#   include <sys/param.h>
25964#   ifdef EXEC_PAGESIZE
25965#    define getpagesize() EXEC_PAGESIZE
25966#   else /* no EXEC_PAGESIZE */
25967#    ifdef NBPG
25968#     define getpagesize() NBPG * CLSIZE
25969#     ifndef CLSIZE
25970#      define CLSIZE 1
25971#     endif /* no CLSIZE */
25972#    else /* no NBPG */
25973#     ifdef NBPC
25974#      define getpagesize() NBPC
25975#     else /* no NBPC */
25976#      ifdef PAGESIZE
25977#       define getpagesize() PAGESIZE
25978#      endif /* PAGESIZE */
25979#     endif /* no NBPC */
25980#    endif /* no NBPG */
25981#   endif /* no EXEC_PAGESIZE */
25982#  else /* no HAVE_SYS_PARAM_H */
25983#   define getpagesize() 8192	/* punt totally */
25984#  endif /* no HAVE_SYS_PARAM_H */
25985# endif /* no _SC_PAGESIZE */
25986
25987#endif /* no HAVE_GETPAGESIZE */
25988
25989int
25990main ()
25991{
25992  char *data, *data2, *data3;
25993  const char *cdata2;
25994  int i, pagesize;
25995  int fd, fd2;
25996
25997  pagesize = getpagesize ();
25998
25999  /* First, make a file with some known garbage in it. */
26000  data = (char *) malloc (pagesize);
26001  if (!data)
26002    return 1;
26003  for (i = 0; i < pagesize; ++i)
26004    *(data + i) = rand ();
26005  umask (0);
26006  fd = creat ("conftest.mmap", 0600);
26007  if (fd < 0)
26008    return 2;
26009  if (write (fd, data, pagesize) != pagesize)
26010    return 3;
26011  close (fd);
26012
26013  /* Next, check that the tail of a page is zero-filled.  File must have
26014     non-zero length, otherwise we risk SIGBUS for entire page.  */
26015  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
26016  if (fd2 < 0)
26017    return 4;
26018  cdata2 = "";
26019  if (write (fd2, cdata2, 1) != 1)
26020    return 5;
26021  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
26022  if (data2 == MAP_FAILED)
26023    return 6;
26024  for (i = 0; i < pagesize; ++i)
26025    if (*(data2 + i))
26026      return 7;
26027  close (fd2);
26028  if (munmap (data2, pagesize))
26029    return 8;
26030
26031  /* Next, try to mmap the file at a fixed address which already has
26032     something else allocated at it.  If we can, also make sure that
26033     we see the same garbage.  */
26034  fd = open ("conftest.mmap", O_RDWR);
26035  if (fd < 0)
26036    return 9;
26037  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
26038		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
26039    return 10;
26040  for (i = 0; i < pagesize; ++i)
26041    if (*(data + i) != *(data2 + i))
26042      return 11;
26043
26044  /* Finally, make sure that changes to the mapped area do not
26045     percolate back to the file as seen by read().  (This is a bug on
26046     some variants of i386 svr4.0.)  */
26047  for (i = 0; i < pagesize; ++i)
26048    *(data2 + i) = *(data2 + i) + 1;
26049  data3 = (char *) malloc (pagesize);
26050  if (!data3)
26051    return 12;
26052  if (read (fd, data3, pagesize) != pagesize)
26053    return 13;
26054  for (i = 0; i < pagesize; ++i)
26055    if (*(data + i) != *(data3 + i))
26056      return 14;
26057  close (fd);
26058  return 0;
26059}
26060_ACEOF
26061if ac_fn_c_try_run "$LINENO"; then :
26062  ac_cv_func_mmap_fixed_mapped=yes
26063else
26064  ac_cv_func_mmap_fixed_mapped=no
26065fi
26066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26067  conftest.$ac_objext conftest.beam conftest.$ac_ext
26068fi
26069
26070fi
26071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
26072$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
26073if test $ac_cv_func_mmap_fixed_mapped = yes; then
26074
26075$as_echo "#define HAVE_MMAP 1" >>confdefs.h
26076
26077fi
26078rm -f conftest.mmap conftest.txt
26079
26080for ac_header in vfork.h
26081do :
26082  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
26083if test "x$ac_cv_header_vfork_h" = xyes; then :
26084  cat >>confdefs.h <<_ACEOF
26085#define HAVE_VFORK_H 1
26086_ACEOF
26087
26088fi
26089
26090done
26091
26092for ac_func in fork vfork
26093do :
26094  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26095ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26096if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26097  cat >>confdefs.h <<_ACEOF
26098#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26099_ACEOF
26100
26101fi
26102done
26103
26104if test "x$ac_cv_func_fork" = xyes; then
26105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
26106$as_echo_n "checking for working fork... " >&6; }
26107if ${ac_cv_func_fork_works+:} false; then :
26108  $as_echo_n "(cached) " >&6
26109else
26110  if test "$cross_compiling" = yes; then :
26111  ac_cv_func_fork_works=cross
26112else
26113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26114/* end confdefs.h.  */
26115$ac_includes_default
26116int
26117main ()
26118{
26119
26120	  /* By Ruediger Kuhlmann. */
26121	  return fork () < 0;
26122
26123  ;
26124  return 0;
26125}
26126_ACEOF
26127if ac_fn_c_try_run "$LINENO"; then :
26128  ac_cv_func_fork_works=yes
26129else
26130  ac_cv_func_fork_works=no
26131fi
26132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26133  conftest.$ac_objext conftest.beam conftest.$ac_ext
26134fi
26135
26136fi
26137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
26138$as_echo "$ac_cv_func_fork_works" >&6; }
26139
26140else
26141  ac_cv_func_fork_works=$ac_cv_func_fork
26142fi
26143if test "x$ac_cv_func_fork_works" = xcross; then
26144  case $host in
26145    *-*-amigaos* | *-*-msdosdjgpp*)
26146      # Override, as these systems have only a dummy fork() stub
26147      ac_cv_func_fork_works=no
26148      ;;
26149    *)
26150      ac_cv_func_fork_works=yes
26151      ;;
26152  esac
26153  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
26154$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
26155fi
26156ac_cv_func_vfork_works=$ac_cv_func_vfork
26157if test "x$ac_cv_func_vfork" = xyes; then
26158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
26159$as_echo_n "checking for working vfork... " >&6; }
26160if ${ac_cv_func_vfork_works+:} false; then :
26161  $as_echo_n "(cached) " >&6
26162else
26163  if test "$cross_compiling" = yes; then :
26164  ac_cv_func_vfork_works=cross
26165else
26166  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26167/* end confdefs.h.  */
26168/* Thanks to Paul Eggert for this test.  */
26169$ac_includes_default
26170#include <sys/wait.h>
26171#ifdef HAVE_VFORK_H
26172# include <vfork.h>
26173#endif
26174/* On some sparc systems, changes by the child to local and incoming
26175   argument registers are propagated back to the parent.  The compiler
26176   is told about this with #include <vfork.h>, but some compilers
26177   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
26178   static variable whose address is put into a register that is
26179   clobbered by the vfork.  */
26180static void
26181#ifdef __cplusplus
26182sparc_address_test (int arg)
26183# else
26184sparc_address_test (arg) int arg;
26185#endif
26186{
26187  static pid_t child;
26188  if (!child) {
26189    child = vfork ();
26190    if (child < 0) {
26191      perror ("vfork");
26192      _exit(2);
26193    }
26194    if (!child) {
26195      arg = getpid();
26196      write(-1, "", 0);
26197      _exit (arg);
26198    }
26199  }
26200}
26201
26202int
26203main ()
26204{
26205  pid_t parent = getpid ();
26206  pid_t child;
26207
26208  sparc_address_test (0);
26209
26210  child = vfork ();
26211
26212  if (child == 0) {
26213    /* Here is another test for sparc vfork register problems.  This
26214       test uses lots of local variables, at least as many local
26215       variables as main has allocated so far including compiler
26216       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
26217       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
26218       reuse the register of parent for one of the local variables,
26219       since it will think that parent can't possibly be used any more
26220       in this routine.  Assigning to the local variable will thus
26221       munge parent in the parent process.  */
26222    pid_t
26223      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
26224      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
26225    /* Convince the compiler that p..p7 are live; otherwise, it might
26226       use the same hardware register for all 8 local variables.  */
26227    if (p != p1 || p != p2 || p != p3 || p != p4
26228	|| p != p5 || p != p6 || p != p7)
26229      _exit(1);
26230
26231    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
26232       from child file descriptors.  If the child closes a descriptor
26233       before it execs or exits, this munges the parent's descriptor
26234       as well.  Test for this by closing stdout in the child.  */
26235    _exit(close(fileno(stdout)) != 0);
26236  } else {
26237    int status;
26238    struct stat st;
26239
26240    while (wait(&status) != child)
26241      ;
26242    return (
26243	 /* Was there some problem with vforking?  */
26244	 child < 0
26245
26246	 /* Did the child fail?  (This shouldn't happen.)  */
26247	 || status
26248
26249	 /* Did the vfork/compiler bug occur?  */
26250	 || parent != getpid()
26251
26252	 /* Did the file descriptor bug occur?  */
26253	 || fstat(fileno(stdout), &st) != 0
26254	 );
26255  }
26256}
26257_ACEOF
26258if ac_fn_c_try_run "$LINENO"; then :
26259  ac_cv_func_vfork_works=yes
26260else
26261  ac_cv_func_vfork_works=no
26262fi
26263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26264  conftest.$ac_objext conftest.beam conftest.$ac_ext
26265fi
26266
26267fi
26268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
26269$as_echo "$ac_cv_func_vfork_works" >&6; }
26270
26271fi;
26272if test "x$ac_cv_func_fork_works" = xcross; then
26273  ac_cv_func_vfork_works=$ac_cv_func_vfork
26274  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
26275$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
26276fi
26277
26278if test "x$ac_cv_func_vfork_works" = xyes; then
26279
26280$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
26281
26282else
26283
26284$as_echo "#define vfork fork" >>confdefs.h
26285
26286fi
26287if test "x$ac_cv_func_fork_works" = xyes; then
26288
26289$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
26290
26291fi
26292
26293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
26294$as_echo_n "checking for working memcmp... " >&6; }
26295if ${ac_cv_func_memcmp_working+:} false; then :
26296  $as_echo_n "(cached) " >&6
26297else
26298  if test "$cross_compiling" = yes; then :
26299  ac_cv_func_memcmp_working=no
26300else
26301  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26302/* end confdefs.h.  */
26303$ac_includes_default
26304int
26305main ()
26306{
26307
26308  /* Some versions of memcmp are not 8-bit clean.  */
26309  char c0 = '\100', c1 = '\200', c2 = '\201';
26310  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
26311    return 1;
26312
26313  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
26314     or more and with at least one buffer not starting on a 4-byte boundary.
26315     William Lewis provided this test program.   */
26316  {
26317    char foo[21];
26318    char bar[21];
26319    int i;
26320    for (i = 0; i < 4; i++)
26321      {
26322	char *a = foo + i;
26323	char *b = bar + i;
26324	strcpy (a, "--------01111111");
26325	strcpy (b, "--------10000000");
26326	if (memcmp (a, b, 16) >= 0)
26327	  return 1;
26328      }
26329    return 0;
26330  }
26331
26332  ;
26333  return 0;
26334}
26335_ACEOF
26336if ac_fn_c_try_run "$LINENO"; then :
26337  ac_cv_func_memcmp_working=yes
26338else
26339  ac_cv_func_memcmp_working=no
26340fi
26341rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26342  conftest.$ac_objext conftest.beam conftest.$ac_ext
26343fi
26344
26345fi
26346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
26347$as_echo "$ac_cv_func_memcmp_working" >&6; }
26348test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
26349  *" memcmp.$ac_objext "* ) ;;
26350  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
26351 ;;
26352esac
26353
26354
26355for ac_header in sys/select.h sys/socket.h
26356do :
26357  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26360  cat >>confdefs.h <<_ACEOF
26361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26362_ACEOF
26363
26364fi
26365
26366done
26367
26368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
26369$as_echo_n "checking types of arguments for select... " >&6; }
26370if ${ac_cv_func_select_args+:} false; then :
26371  $as_echo_n "(cached) " >&6
26372else
26373  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
26374 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
26375  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
26376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26377/* end confdefs.h.  */
26378$ac_includes_default
26379#ifdef HAVE_SYS_SELECT_H
26380# include <sys/select.h>
26381#endif
26382#ifdef HAVE_SYS_SOCKET_H
26383# include <sys/socket.h>
26384#endif
26385
26386int
26387main ()
26388{
26389extern int select ($ac_arg1,
26390					    $ac_arg234, $ac_arg234, $ac_arg234,
26391					    $ac_arg5);
26392  ;
26393  return 0;
26394}
26395_ACEOF
26396if ac_fn_c_try_compile "$LINENO"; then :
26397  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
26398fi
26399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400  done
26401 done
26402done
26403# Provide a safe default value.
26404: "${ac_cv_func_select_args=int,int *,struct timeval *}"
26405
26406fi
26407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
26408$as_echo "$ac_cv_func_select_args" >&6; }
26409ac_save_IFS=$IFS; IFS=','
26410set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
26411IFS=$ac_save_IFS
26412shift
26413
26414cat >>confdefs.h <<_ACEOF
26415#define SELECT_TYPE_ARG1 $1
26416_ACEOF
26417
26418
26419cat >>confdefs.h <<_ACEOF
26420#define SELECT_TYPE_ARG234 ($2)
26421_ACEOF
26422
26423
26424cat >>confdefs.h <<_ACEOF
26425#define SELECT_TYPE_ARG5 ($3)
26426_ACEOF
26427
26428rm -f conftest*
26429
26430if ${ac_cv_func_setvbuf_reversed+:} false; then :
26431  $as_echo_n "(cached) " >&6
26432else
26433  ac_cv_func_setvbuf_reversed=no
26434fi
26435
26436
26437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26438$as_echo_n "checking return type of signal handlers... " >&6; }
26439if ${ac_cv_type_signal+:} false; then :
26440  $as_echo_n "(cached) " >&6
26441else
26442  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26443/* end confdefs.h.  */
26444#include <sys/types.h>
26445#include <signal.h>
26446
26447int
26448main ()
26449{
26450return *(signal (0, 0)) (0) == 1;
26451  ;
26452  return 0;
26453}
26454_ACEOF
26455if ac_fn_c_try_compile "$LINENO"; then :
26456  ac_cv_type_signal=int
26457else
26458  ac_cv_type_signal=void
26459fi
26460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26461fi
26462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26463$as_echo "$ac_cv_type_signal" >&6; }
26464
26465cat >>confdefs.h <<_ACEOF
26466#define RETSIGTYPE $ac_cv_type_signal
26467_ACEOF
26468
26469
26470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
26471$as_echo_n "checking for working strtod... " >&6; }
26472if ${ac_cv_func_strtod+:} false; then :
26473  $as_echo_n "(cached) " >&6
26474else
26475  if test "$cross_compiling" = yes; then :
26476  ac_cv_func_strtod=no
26477else
26478  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26479/* end confdefs.h.  */
26480
26481$ac_includes_default
26482#ifndef strtod
26483double strtod ();
26484#endif
26485int
26486main()
26487{
26488  {
26489    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
26490    char *string = " +69";
26491    char *term;
26492    double value;
26493    value = strtod (string, &term);
26494    if (value != 69 || term != (string + 4))
26495      return 1;
26496  }
26497
26498  {
26499    /* Under Solaris 2.4, strtod returns the wrong value for the
26500       terminating character under some conditions.  */
26501    char *string = "NaN";
26502    char *term;
26503    strtod (string, &term);
26504    if (term != string && *(term - 1) == 0)
26505      return 1;
26506  }
26507  return 0;
26508}
26509
26510_ACEOF
26511if ac_fn_c_try_run "$LINENO"; then :
26512  ac_cv_func_strtod=yes
26513else
26514  ac_cv_func_strtod=no
26515fi
26516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26517  conftest.$ac_objext conftest.beam conftest.$ac_ext
26518fi
26519
26520fi
26521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
26522$as_echo "$ac_cv_func_strtod" >&6; }
26523if test $ac_cv_func_strtod = no; then
26524  case " $LIBOBJS " in
26525  *" strtod.$ac_objext "* ) ;;
26526  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
26527 ;;
26528esac
26529
26530ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
26531if test "x$ac_cv_func_pow" = xyes; then :
26532
26533fi
26534
26535if test $ac_cv_func_pow = no; then
26536  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
26537$as_echo_n "checking for pow in -lm... " >&6; }
26538if ${ac_cv_lib_m_pow+:} false; then :
26539  $as_echo_n "(cached) " >&6
26540else
26541  ac_check_lib_save_LIBS=$LIBS
26542LIBS="-lm  $LIBS"
26543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26544/* end confdefs.h.  */
26545
26546/* Override any GCC internal prototype to avoid an error.
26547   Use char because int might match the return type of a GCC
26548   builtin and then its argument prototype would still apply.  */
26549#ifdef __cplusplus
26550extern "C"
26551#endif
26552char pow ();
26553int
26554main ()
26555{
26556return pow ();
26557  ;
26558  return 0;
26559}
26560_ACEOF
26561if ac_fn_c_try_link "$LINENO"; then :
26562  ac_cv_lib_m_pow=yes
26563else
26564  ac_cv_lib_m_pow=no
26565fi
26566rm -f core conftest.err conftest.$ac_objext \
26567    conftest$ac_exeext conftest.$ac_ext
26568LIBS=$ac_check_lib_save_LIBS
26569fi
26570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
26571$as_echo "$ac_cv_lib_m_pow" >&6; }
26572if test "x$ac_cv_lib_m_pow" = xyes; then :
26573  POW_LIB=-lm
26574else
26575  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
26576$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
26577fi
26578
26579fi
26580
26581fi
26582
26583ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
26584if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
26585  ac_have_decl=1
26586else
26587  ac_have_decl=0
26588fi
26589
26590cat >>confdefs.h <<_ACEOF
26591#define HAVE_DECL_STRERROR_R $ac_have_decl
26592_ACEOF
26593
26594for ac_func in strerror_r
26595do :
26596  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
26597if test "x$ac_cv_func_strerror_r" = xyes; then :
26598  cat >>confdefs.h <<_ACEOF
26599#define HAVE_STRERROR_R 1
26600_ACEOF
26601
26602fi
26603done
26604
26605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
26606$as_echo_n "checking whether strerror_r returns char *... " >&6; }
26607if ${ac_cv_func_strerror_r_char_p+:} false; then :
26608  $as_echo_n "(cached) " >&6
26609else
26610
26611    ac_cv_func_strerror_r_char_p=no
26612    if test $ac_cv_have_decl_strerror_r = yes; then
26613      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26614/* end confdefs.h.  */
26615$ac_includes_default
26616int
26617main ()
26618{
26619
26620	  char buf[100];
26621	  char x = *strerror_r (0, buf, sizeof buf);
26622	  char *p = strerror_r (0, buf, sizeof buf);
26623	  return !p || x;
26624
26625  ;
26626  return 0;
26627}
26628_ACEOF
26629if ac_fn_c_try_compile "$LINENO"; then :
26630  ac_cv_func_strerror_r_char_p=yes
26631fi
26632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26633    else
26634      # strerror_r is not declared.  Choose between
26635      # systems that have relatively inaccessible declarations for the
26636      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
26637      # former has a strerror_r that returns char*, while the latter
26638      # has a strerror_r that returns `int'.
26639      # This test should segfault on the DEC system.
26640      if test "$cross_compiling" = yes; then :
26641  :
26642else
26643  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26644/* end confdefs.h.  */
26645$ac_includes_default
26646	extern char *strerror_r ();
26647int
26648main ()
26649{
26650char buf[100];
26651	  char x = *strerror_r (0, buf, sizeof buf);
26652	  return ! isalpha (x);
26653  ;
26654  return 0;
26655}
26656_ACEOF
26657if ac_fn_c_try_run "$LINENO"; then :
26658  ac_cv_func_strerror_r_char_p=yes
26659fi
26660rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26661  conftest.$ac_objext conftest.beam conftest.$ac_ext
26662fi
26663
26664    fi
26665
26666fi
26667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
26668$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
26669if test $ac_cv_func_strerror_r_char_p = yes; then
26670
26671$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
26672
26673fi
26674
26675for ac_func in vprintf
26676do :
26677  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
26678if test "x$ac_cv_func_vprintf" = xyes; then :
26679  cat >>confdefs.h <<_ACEOF
26680#define HAVE_VPRINTF 1
26681_ACEOF
26682
26683ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
26684if test "x$ac_cv_func__doprnt" = xyes; then :
26685
26686$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
26687
26688fi
26689
26690fi
26691done
26692
26693
26694
26695#
26696# Find math library
26697#
26698MATH_LIBS=''
26699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
26700$as_echo_n "checking for sqrt in -lm... " >&6; }
26701if ${ac_cv_lib_m_sqrt+:} false; then :
26702  $as_echo_n "(cached) " >&6
26703else
26704  ac_check_lib_save_LIBS=$LIBS
26705LIBS="-lm  $LIBS"
26706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707/* end confdefs.h.  */
26708
26709/* Override any GCC internal prototype to avoid an error.
26710   Use char because int might match the return type of a GCC
26711   builtin and then its argument prototype would still apply.  */
26712#ifdef __cplusplus
26713extern "C"
26714#endif
26715char sqrt ();
26716int
26717main ()
26718{
26719return sqrt ();
26720  ;
26721  return 0;
26722}
26723_ACEOF
26724if ac_fn_c_try_link "$LINENO"; then :
26725  ac_cv_lib_m_sqrt=yes
26726else
26727  ac_cv_lib_m_sqrt=no
26728fi
26729rm -f core conftest.err conftest.$ac_objext \
26730    conftest$ac_exeext conftest.$ac_ext
26731LIBS=$ac_check_lib_save_LIBS
26732fi
26733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
26734$as_echo "$ac_cv_lib_m_sqrt" >&6; }
26735if test "x$ac_cv_lib_m_sqrt" = xyes; then :
26736  MATH_LIBS="-lm"
26737fi
26738
26739LIBS="$MATH_LIBS $LIBS"
26740
26741
26742#
26743# Find socket library
26744#
26745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
26746$as_echo_n "checking for library containing gethostbyname... " >&6; }
26747if ${ac_cv_search_gethostbyname+:} false; then :
26748  $as_echo_n "(cached) " >&6
26749else
26750  ac_func_search_save_LIBS=$LIBS
26751cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26752/* end confdefs.h.  */
26753
26754/* Override any GCC internal prototype to avoid an error.
26755   Use char because int might match the return type of a GCC
26756   builtin and then its argument prototype would still apply.  */
26757#ifdef __cplusplus
26758extern "C"
26759#endif
26760char gethostbyname ();
26761int
26762main ()
26763{
26764return gethostbyname ();
26765  ;
26766  return 0;
26767}
26768_ACEOF
26769for ac_lib in '' resolv nsl; do
26770  if test -z "$ac_lib"; then
26771    ac_res="none required"
26772  else
26773    ac_res=-l$ac_lib
26774    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26775  fi
26776  if ac_fn_c_try_link "$LINENO"; then :
26777  ac_cv_search_gethostbyname=$ac_res
26778fi
26779rm -f core conftest.err conftest.$ac_objext \
26780    conftest$ac_exeext
26781  if ${ac_cv_search_gethostbyname+:} false; then :
26782  break
26783fi
26784done
26785if ${ac_cv_search_gethostbyname+:} false; then :
26786
26787else
26788  ac_cv_search_gethostbyname=no
26789fi
26790rm conftest.$ac_ext
26791LIBS=$ac_func_search_save_LIBS
26792fi
26793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
26794$as_echo "$ac_cv_search_gethostbyname" >&6; }
26795ac_res=$ac_cv_search_gethostbyname
26796if test "$ac_res" != no; then :
26797  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26798
26799fi
26800
26801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
26802$as_echo_n "checking for library containing socket... " >&6; }
26803if ${ac_cv_search_socket+:} false; then :
26804  $as_echo_n "(cached) " >&6
26805else
26806  ac_func_search_save_LIBS=$LIBS
26807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26808/* end confdefs.h.  */
26809
26810/* Override any GCC internal prototype to avoid an error.
26811   Use char because int might match the return type of a GCC
26812   builtin and then its argument prototype would still apply.  */
26813#ifdef __cplusplus
26814extern "C"
26815#endif
26816char socket ();
26817int
26818main ()
26819{
26820return socket ();
26821  ;
26822  return 0;
26823}
26824_ACEOF
26825for ac_lib in '' socket; do
26826  if test -z "$ac_lib"; then
26827    ac_res="none required"
26828  else
26829    ac_res=-l$ac_lib
26830    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26831  fi
26832  if ac_fn_c_try_link "$LINENO"; then :
26833  ac_cv_search_socket=$ac_res
26834fi
26835rm -f core conftest.err conftest.$ac_objext \
26836    conftest$ac_exeext
26837  if ${ac_cv_search_socket+:} false; then :
26838  break
26839fi
26840done
26841if ${ac_cv_search_socket+:} false; then :
26842
26843else
26844  ac_cv_search_socket=no
26845fi
26846rm conftest.$ac_ext
26847LIBS=$ac_func_search_save_LIBS
26848fi
26849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
26850$as_echo "$ac_cv_search_socket" >&6; }
26851ac_res=$ac_cv_search_socket
26852if test "$ac_res" != no; then :
26853  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26854
26855
26856$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
26857
26858  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
26859
26860fi
26861
26862
26863for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock clock_getres clock_gettime 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 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
26864do :
26865  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26866ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26867if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26868  cat >>confdefs.h <<_ACEOF
26869#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26870_ACEOF
26871
26872fi
26873done
26874
26875
26876#
26877# Check for clock_gettime().
26878#
26879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
26880$as_echo_n "checking for library containing clock_gettime... " >&6; }
26881if ${ac_cv_search_clock_gettime+:} false; then :
26882  $as_echo_n "(cached) " >&6
26883else
26884  ac_func_search_save_LIBS=$LIBS
26885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26886/* end confdefs.h.  */
26887
26888/* Override any GCC internal prototype to avoid an error.
26889   Use char because int might match the return type of a GCC
26890   builtin and then its argument prototype would still apply.  */
26891#ifdef __cplusplus
26892extern "C"
26893#endif
26894char clock_gettime ();
26895int
26896main ()
26897{
26898return clock_gettime ();
26899  ;
26900  return 0;
26901}
26902_ACEOF
26903for ac_lib in '' rt; do
26904  if test -z "$ac_lib"; then
26905    ac_res="none required"
26906  else
26907    ac_res=-l$ac_lib
26908    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26909  fi
26910  if ac_fn_c_try_link "$LINENO"; then :
26911  ac_cv_search_clock_gettime=$ac_res
26912fi
26913rm -f core conftest.err conftest.$ac_objext \
26914    conftest$ac_exeext
26915  if ${ac_cv_search_clock_gettime+:} false; then :
26916  break
26917fi
26918done
26919if ${ac_cv_search_clock_gettime+:} false; then :
26920
26921else
26922  ac_cv_search_clock_gettime=no
26923fi
26924rm conftest.$ac_ext
26925LIBS=$ac_func_search_save_LIBS
26926fi
26927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
26928$as_echo "$ac_cv_search_clock_gettime" >&6; }
26929ac_res=$ac_cv_search_clock_gettime
26930if test "$ac_res" != no; then :
26931  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26932
26933
26934$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26935
26936  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
26937$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
26938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26939/* end confdefs.h.  */
26940
26941    #include <time.h>
26942int
26943main ()
26944{
26945clockid_t clockType = CLOCK_REALTIME;
26946  ;
26947  return 0;
26948}
26949_ACEOF
26950if ac_fn_c_try_compile "$LINENO"; then :
26951
26952        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26953$as_echo "yes" >&6; }
26954
26955$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
26956
26957
26958else
26959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26960$as_echo "no" >&6; }
26961
26962fi
26963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26964
26965else
26966
26967    for ac_func in gettimeofday ftime
26968do :
26969  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26970ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26971if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26972  cat >>confdefs.h <<_ACEOF
26973#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26974_ACEOF
26975 break
26976fi
26977done
26978
26979
26980
26981fi
26982
26983
26984########
26985#
26986# Check for function prototypes
26987#
26988########
26989
26990ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
26991#include <unistd.h>
26992"
26993if test "x$ac_cv_have_decl_pread" = xyes; then :
26994  ac_have_decl=1
26995else
26996  ac_have_decl=0
26997fi
26998
26999cat >>confdefs.h <<_ACEOF
27000#define HAVE_DECL_PREAD $ac_have_decl
27001_ACEOF
27002ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
27003#include <unistd.h>
27004"
27005if test "x$ac_cv_have_decl_pwrite" = xyes; then :
27006  ac_have_decl=1
27007else
27008  ac_have_decl=0
27009fi
27010
27011cat >>confdefs.h <<_ACEOF
27012#define HAVE_DECL_PWRITE $ac_have_decl
27013_ACEOF
27014
27015
27016ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
27017#include <strings.h>
27018"
27019if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
27020  ac_have_decl=1
27021else
27022  ac_have_decl=0
27023fi
27024
27025cat >>confdefs.h <<_ACEOF
27026#define HAVE_DECL_STRLCPY $ac_have_decl
27027_ACEOF
27028
27029
27030ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
27031#include <stdio.h>
27032#include <stdarg.h>
27033"
27034if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
27035  ac_have_decl=1
27036else
27037  ac_have_decl=0
27038fi
27039
27040cat >>confdefs.h <<_ACEOF
27041#define HAVE_DECL_VSNPRINTF $ac_have_decl
27042_ACEOF
27043
27044
27045########
27046#
27047# C++ Support Tests (For Magick++)
27048#
27049########
27050have_magick_plus_plus='no'
27051if test "$with_magick_plus_plus" = 'yes'; then
27052    OLIBS="$LIBS"
27053    LIBS=''
27054    ac_ext=cpp
27055ac_cpp='$CXXCPP $CPPFLAGS'
27056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27059
27060
27061    # Full set of headers used...
27062    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
27063    # functional iomanip iosfwd iostream iterator list string strstream utility
27064    ac_ext=cpp
27065ac_cpp='$CXXCPP $CPPFLAGS'
27066ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27067ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27068ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27069
27070    ac_ext=cpp
27071ac_cpp='$CXXCPP $CPPFLAGS'
27072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27075if test -z "$CXX"; then
27076  if test -n "$CCC"; then
27077    CXX=$CCC
27078  else
27079    if test -n "$ac_tool_prefix"; then
27080  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
27081  do
27082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
27083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
27084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27085$as_echo_n "checking for $ac_word... " >&6; }
27086if ${ac_cv_prog_CXX+:} false; then :
27087  $as_echo_n "(cached) " >&6
27088else
27089  if test -n "$CXX"; then
27090  ac_cv_prog_CXX="$CXX" # Let the user override the test.
27091else
27092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27093for as_dir in $PATH
27094do
27095  IFS=$as_save_IFS
27096  test -z "$as_dir" && as_dir=.
27097    for ac_exec_ext in '' $ac_executable_extensions; do
27098  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27099    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
27100    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27101    break 2
27102  fi
27103done
27104  done
27105IFS=$as_save_IFS
27106
27107fi
27108fi
27109CXX=$ac_cv_prog_CXX
27110if test -n "$CXX"; then
27111  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
27112$as_echo "$CXX" >&6; }
27113else
27114  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115$as_echo "no" >&6; }
27116fi
27117
27118
27119    test -n "$CXX" && break
27120  done
27121fi
27122if test -z "$CXX"; then
27123  ac_ct_CXX=$CXX
27124  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
27125do
27126  # Extract the first word of "$ac_prog", so it can be a program name with args.
27127set dummy $ac_prog; ac_word=$2
27128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27129$as_echo_n "checking for $ac_word... " >&6; }
27130if ${ac_cv_prog_ac_ct_CXX+:} false; then :
27131  $as_echo_n "(cached) " >&6
27132else
27133  if test -n "$ac_ct_CXX"; then
27134  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
27135else
27136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27137for as_dir in $PATH
27138do
27139  IFS=$as_save_IFS
27140  test -z "$as_dir" && as_dir=.
27141    for ac_exec_ext in '' $ac_executable_extensions; do
27142  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27143    ac_cv_prog_ac_ct_CXX="$ac_prog"
27144    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27145    break 2
27146  fi
27147done
27148  done
27149IFS=$as_save_IFS
27150
27151fi
27152fi
27153ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
27154if test -n "$ac_ct_CXX"; then
27155  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
27156$as_echo "$ac_ct_CXX" >&6; }
27157else
27158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27159$as_echo "no" >&6; }
27160fi
27161
27162
27163  test -n "$ac_ct_CXX" && break
27164done
27165
27166  if test "x$ac_ct_CXX" = x; then
27167    CXX="g++"
27168  else
27169    case $cross_compiling:$ac_tool_warned in
27170yes:)
27171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27173ac_tool_warned=yes ;;
27174esac
27175    CXX=$ac_ct_CXX
27176  fi
27177fi
27178
27179  fi
27180fi
27181# Provide some information about the compiler.
27182$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
27183set X $ac_compile
27184ac_compiler=$2
27185for ac_option in --version -v -V -qversion; do
27186  { { ac_try="$ac_compiler $ac_option >&5"
27187case "(($ac_try" in
27188  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27189  *) ac_try_echo=$ac_try;;
27190esac
27191eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
27192$as_echo "$ac_try_echo"; } >&5
27193  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
27194  ac_status=$?
27195  if test -s conftest.err; then
27196    sed '10a\
27197... rest of stderr output deleted ...
27198         10q' conftest.err >conftest.er1
27199    cat conftest.er1 >&5
27200  fi
27201  rm -f conftest.er1 conftest.err
27202  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27203  test $ac_status = 0; }
27204done
27205
27206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
27207$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
27208if ${ac_cv_cxx_compiler_gnu+:} false; then :
27209  $as_echo_n "(cached) " >&6
27210else
27211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27212/* end confdefs.h.  */
27213
27214int
27215main ()
27216{
27217#ifndef __GNUC__
27218       choke me
27219#endif
27220
27221  ;
27222  return 0;
27223}
27224_ACEOF
27225if ac_fn_cxx_try_compile "$LINENO"; then :
27226  ac_compiler_gnu=yes
27227else
27228  ac_compiler_gnu=no
27229fi
27230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27231ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
27232
27233fi
27234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
27235$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
27236if test $ac_compiler_gnu = yes; then
27237  GXX=yes
27238else
27239  GXX=
27240fi
27241ac_test_CXXFLAGS=${CXXFLAGS+set}
27242ac_save_CXXFLAGS=$CXXFLAGS
27243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
27244$as_echo_n "checking whether $CXX accepts -g... " >&6; }
27245if ${ac_cv_prog_cxx_g+:} false; then :
27246  $as_echo_n "(cached) " >&6
27247else
27248  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
27249   ac_cxx_werror_flag=yes
27250   ac_cv_prog_cxx_g=no
27251   CXXFLAGS="-g"
27252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27253/* end confdefs.h.  */
27254
27255int
27256main ()
27257{
27258
27259  ;
27260  return 0;
27261}
27262_ACEOF
27263if ac_fn_cxx_try_compile "$LINENO"; then :
27264  ac_cv_prog_cxx_g=yes
27265else
27266  CXXFLAGS=""
27267      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27268/* end confdefs.h.  */
27269
27270int
27271main ()
27272{
27273
27274  ;
27275  return 0;
27276}
27277_ACEOF
27278if ac_fn_cxx_try_compile "$LINENO"; then :
27279
27280else
27281  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27282	 CXXFLAGS="-g"
27283	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27284/* end confdefs.h.  */
27285
27286int
27287main ()
27288{
27289
27290  ;
27291  return 0;
27292}
27293_ACEOF
27294if ac_fn_cxx_try_compile "$LINENO"; then :
27295  ac_cv_prog_cxx_g=yes
27296fi
27297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298fi
27299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300fi
27301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27302   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
27303fi
27304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
27305$as_echo "$ac_cv_prog_cxx_g" >&6; }
27306if test "$ac_test_CXXFLAGS" = set; then
27307  CXXFLAGS=$ac_save_CXXFLAGS
27308elif test $ac_cv_prog_cxx_g = yes; then
27309  if test "$GXX" = yes; then
27310    CXXFLAGS="-g -O2"
27311  else
27312    CXXFLAGS="-g"
27313  fi
27314else
27315  if test "$GXX" = yes; then
27316    CXXFLAGS="-O2"
27317  else
27318    CXXFLAGS=
27319  fi
27320fi
27321ac_ext=cpp
27322ac_cpp='$CXXCPP $CPPFLAGS'
27323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27326
27327depcc="$CXX"  am_compiler_list=
27328
27329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
27330$as_echo_n "checking dependency style of $depcc... " >&6; }
27331if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
27332  $as_echo_n "(cached) " >&6
27333else
27334  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
27335  # We make a subdir and do the tests there.  Otherwise we can end up
27336  # making bogus files that we don't know about and never remove.  For
27337  # instance it was reported that on HP-UX the gcc test will end up
27338  # making a dummy file named 'D' -- because '-MD' means "put the output
27339  # in D".
27340  rm -rf conftest.dir
27341  mkdir conftest.dir
27342  # Copy depcomp to subdir because otherwise we won't find it if we're
27343  # using a relative directory.
27344  cp "$am_depcomp" conftest.dir
27345  cd conftest.dir
27346  # We will build objects and dependencies in a subdirectory because
27347  # it helps to detect inapplicable dependency modes.  For instance
27348  # both Tru64's cc and ICC support -MD to output dependencies as a
27349  # side effect of compilation, but ICC will put the dependencies in
27350  # the current directory while Tru64 will put them in the object
27351  # directory.
27352  mkdir sub
27353
27354  am_cv_CXX_dependencies_compiler_type=none
27355  if test "$am_compiler_list" = ""; then
27356     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
27357  fi
27358  am__universal=false
27359  case " $depcc " in #(
27360     *\ -arch\ *\ -arch\ *) am__universal=true ;;
27361     esac
27362
27363  for depmode in $am_compiler_list; do
27364    # Setup a source with many dependencies, because some compilers
27365    # like to wrap large dependency lists on column 80 (with \), and
27366    # we should not choose a depcomp mode which is confused by this.
27367    #
27368    # We need to recreate these files for each test, as the compiler may
27369    # overwrite some of them when testing with obscure command lines.
27370    # This happens at least with the AIX C compiler.
27371    : > sub/conftest.c
27372    for i in 1 2 3 4 5 6; do
27373      echo '#include "conftst'$i'.h"' >> sub/conftest.c
27374      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
27375      # Solaris 10 /bin/sh.
27376      echo '/* dummy */' > sub/conftst$i.h
27377    done
27378    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
27379
27380    # We check with '-c' and '-o' for the sake of the "dashmstdout"
27381    # mode.  It turns out that the SunPro C++ compiler does not properly
27382    # handle '-M -o', and we need to detect this.  Also, some Intel
27383    # versions had trouble with output in subdirs.
27384    am__obj=sub/conftest.${OBJEXT-o}
27385    am__minus_obj="-o $am__obj"
27386    case $depmode in
27387    gcc)
27388      # This depmode causes a compiler race in universal mode.
27389      test "$am__universal" = false || continue
27390      ;;
27391    nosideeffect)
27392      # After this tag, mechanisms are not by side-effect, so they'll
27393      # only be used when explicitly requested.
27394      if test "x$enable_dependency_tracking" = xyes; then
27395	continue
27396      else
27397	break
27398      fi
27399      ;;
27400    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
27401      # This compiler won't grok '-c -o', but also, the minuso test has
27402      # not run yet.  These depmodes are late enough in the game, and
27403      # so weak that their functioning should not be impacted.
27404      am__obj=conftest.${OBJEXT-o}
27405      am__minus_obj=
27406      ;;
27407    none) break ;;
27408    esac
27409    if depmode=$depmode \
27410       source=sub/conftest.c object=$am__obj \
27411       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
27412       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
27413         >/dev/null 2>conftest.err &&
27414       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
27415       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
27416       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
27417       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
27418      # icc doesn't choke on unknown options, it will just issue warnings
27419      # or remarks (even with -Werror).  So we grep stderr for any message
27420      # that says an option was ignored or not supported.
27421      # When given -MP, icc 7.0 and 7.1 complain thusly:
27422      #   icc: Command line warning: ignoring option '-M'; no argument required
27423      # The diagnosis changed in icc 8.0:
27424      #   icc: Command line remark: option '-MP' not supported
27425      if (grep 'ignoring option' conftest.err ||
27426          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
27427        am_cv_CXX_dependencies_compiler_type=$depmode
27428        break
27429      fi
27430    fi
27431  done
27432
27433  cd ..
27434  rm -rf conftest.dir
27435else
27436  am_cv_CXX_dependencies_compiler_type=none
27437fi
27438
27439fi
27440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
27441$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
27442CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
27443
27444 if
27445  test "x$enable_dependency_tracking" != xno \
27446  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
27447  am__fastdepCXX_TRUE=
27448  am__fastdepCXX_FALSE='#'
27449else
27450  am__fastdepCXX_TRUE='#'
27451  am__fastdepCXX_FALSE=
27452fi
27453
27454
27455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
27456$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
27457if ${ax_cv_cxx_bool+:} false; then :
27458  $as_echo_n "(cached) " >&6
27459else
27460       ac_ext=cpp
27461ac_cpp='$CXXCPP $CPPFLAGS'
27462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27465
27466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27467/* end confdefs.h.  */
27468       int f(int  x){return 1;}
27469                        int f(char x){return 1;}
27470                        int f(bool x){return 1;}
27471int
27472main ()
27473{
27474bool b = true; return f(b);
27475  ;
27476  return 0;
27477}
27478_ACEOF
27479if ac_fn_cxx_try_compile "$LINENO"; then :
27480  ax_cv_cxx_bool=yes
27481else
27482  ax_cv_cxx_bool=no
27483fi
27484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485     ac_ext=cpp
27486ac_cpp='$CXXCPP $CPPFLAGS'
27487ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27488ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27489ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27490
27491
27492fi
27493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
27494$as_echo "$ax_cv_cxx_bool" >&6; }
27495  if test "X$ax_cv_cxx_bool" = Xyes; then :
27496
27497$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
27498
27499fi
27500
27501    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
27502$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
27503if ${ax_cv_cxx_namespaces+:} false; then :
27504  $as_echo_n "(cached) " >&6
27505else
27506  ac_ext=cpp
27507ac_cpp='$CXXCPP $CPPFLAGS'
27508ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27509ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27510ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27511
27512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27513/* end confdefs.h.  */
27514namespace Outer { namespace Inner { int i = 0; }}
27515                                   using namespace Outer::Inner; int foo(void) { return i;}
27516_ACEOF
27517if ac_fn_cxx_try_compile "$LINENO"; then :
27518  ax_cv_cxx_namespaces=yes
27519else
27520  ax_cv_cxx_namespaces=no
27521fi
27522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27523 ac_ext=cpp
27524ac_cpp='$CXXCPP $CPPFLAGS'
27525ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27526ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27527ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27528
27529
27530fi
27531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
27532$as_echo "$ax_cv_cxx_namespaces" >&6; }
27533if test "$ax_cv_cxx_namespaces" = yes; then
27534
27535$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
27536
27537fi
27538
27539
27540  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
27541$as_echo_n "checking if g++ supports namespace std... " >&6; }
27542if ${ax_cv_cxx_have_std_namespace+:} false; then :
27543  $as_echo_n "(cached) " >&6
27544else
27545  ac_ext=cpp
27546ac_cpp='$CXXCPP $CPPFLAGS'
27547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27550
27551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27552/* end confdefs.h.  */
27553#include <iostream>
27554                  std::istream& is = std::cin;
27555int
27556main ()
27557{
27558
27559  ;
27560  return 0;
27561}
27562_ACEOF
27563if ac_fn_cxx_try_compile "$LINENO"; then :
27564  ax_cv_cxx_have_std_namespace=yes
27565else
27566  ax_cv_cxx_have_std_namespace=no
27567fi
27568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27569  ac_ext=cpp
27570ac_cpp='$CXXCPP $CPPFLAGS'
27571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27574
27575
27576fi
27577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
27578$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
27579  if test "$ax_cv_cxx_have_std_namespace" = yes; then
27580
27581$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
27582
27583  fi
27584
27585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
27586$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
27587if ${ac_cv_cxx_have_std_libs+:} false; then :
27588  $as_echo_n "(cached) " >&6
27589else
27590
27591
27592 ac_ext=cpp
27593ac_cpp='$CXXCPP $CPPFLAGS'
27594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27597
27598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27599/* end confdefs.h.  */
27600#include <iostream>
27601#include <map>
27602#include <iomanip>
27603#include <cmath>
27604#ifdef HAVE_NAMESPACES
27605using namespace std;
27606#endif
27607int
27608main ()
27609{
27610return 0;
27611  ;
27612  return 0;
27613}
27614_ACEOF
27615if ac_fn_cxx_try_compile "$LINENO"; then :
27616  ac_cv_cxx_have_std_libs=yes
27617else
27618  ac_cv_cxx_have_std_libs=no
27619fi
27620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27621 ac_ext=cpp
27622ac_cpp='$CXXCPP $CPPFLAGS'
27623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27626
27627
27628fi
27629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
27630$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
27631if test "$ac_cv_cxx_have_std_libs" = yes; then
27632
27633$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
27634
27635fi
27636
27637
27638  OPENMP_CXXFLAGS=
27639  # Check whether --enable-openmp was given.
27640if test "${enable_openmp+set}" = set; then :
27641  enableval=$enable_openmp;
27642fi
27643
27644  if test "$enable_openmp" != no; then
27645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
27646$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
27647if ${ac_cv_prog_cxx_openmp+:} false; then :
27648  $as_echo_n "(cached) " >&6
27649else
27650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27651/* end confdefs.h.  */
27652
27653#ifndef _OPENMP
27654 choke me
27655#endif
27656#include <omp.h>
27657int main () { return omp_get_num_threads (); }
27658
27659_ACEOF
27660if ac_fn_cxx_try_link "$LINENO"; then :
27661  ac_cv_prog_cxx_openmp='none needed'
27662else
27663  ac_cv_prog_cxx_openmp='unsupported'
27664	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
27665                           -Popenmp --openmp; do
27666	    ac_save_CXXFLAGS=$CXXFLAGS
27667	    CXXFLAGS="$CXXFLAGS $ac_option"
27668	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27669/* end confdefs.h.  */
27670
27671#ifndef _OPENMP
27672 choke me
27673#endif
27674#include <omp.h>
27675int main () { return omp_get_num_threads (); }
27676
27677_ACEOF
27678if ac_fn_cxx_try_link "$LINENO"; then :
27679  ac_cv_prog_cxx_openmp=$ac_option
27680fi
27681rm -f core conftest.err conftest.$ac_objext \
27682    conftest$ac_exeext conftest.$ac_ext
27683	    CXXFLAGS=$ac_save_CXXFLAGS
27684	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
27685	      break
27686	    fi
27687	  done
27688fi
27689rm -f core conftest.err conftest.$ac_objext \
27690    conftest$ac_exeext conftest.$ac_ext
27691fi
27692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
27693$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
27694    case $ac_cv_prog_cxx_openmp in #(
27695      "none needed" | unsupported)
27696	;; #(
27697      *)
27698	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
27699    esac
27700  fi
27701
27702
27703    ac_ext=c
27704ac_cpp='$CPP $CPPFLAGS'
27705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27707ac_compiler_gnu=$ac_cv_c_compiler_gnu
27708
27709
27710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
27711$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
27712    if \
27713        test $ax_cv_cxx_bool = 'yes' && \
27714        test $ax_cv_cxx_namespaces = 'yes' && \
27715        test $ac_cv_cxx_have_std_libs = 'yes' && \
27716        test $ax_cv_cxx_have_std_namespace = 'yes'; then
27717        have_magick_plus_plus='yes'
27718    else
27719        have_magick_plus_plus='no (failed tests)'
27720    fi
27721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
27722$as_echo "$have_magick_plus_plus" >&6; }
27723    LIBS="$OLIBS"
27724fi
27725 if test "$have_magick_plus_plus" = 'yes'; then
27726  WITH_MAGICK_PLUS_PLUS_TRUE=
27727  WITH_MAGICK_PLUS_PLUS_FALSE='#'
27728else
27729  WITH_MAGICK_PLUS_PLUS_TRUE='#'
27730  WITH_MAGICK_PLUS_PLUS_FALSE=
27731fi
27732
27733
27734# Only check for delegate libraries in subdirectories if requested.
27735if test "$enable_delegate_build" != 'no'; then
27736    # Check for delegate sub-directories and add -I & -L options as required.
27737    # This presumes that delegates are installed as detailed in the ImageMagick
27738    # README. If delegates are installed in a standard location where the
27739    # compiler will automatically find them then these options should not be
27740    # required.
27741
27742    #
27743    # Most delegates have includes in the same directory as the library, but not all...
27744    #
27745    # Includes
27746    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
27747        if test -d "$builddir/$dir"; then
27748            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
27749        else
27750            if test -d "$srcdirfull/$dir"; then
27751                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
27752            fi
27753        fi
27754    done
27755
27756    # Libraries
27757    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
27758    if test -d "$builddir/$dir/.libs"; then
27759        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
27760    else
27761        if test -d "$srcdirfull/$dir/.libs"; then
27762            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
27763        fi
27764    fi
27765    if test -d "$builddir/$dir"; then
27766        LDFLAGS="$LDFLAGS -L$builddir/$dir"
27767    else
27768        if test -d "$srcdirfull/$dir"; then
27769            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
27770        fi
27771    fi
27772  done
27773fi
27774
27775# Assume that delegate headers reside under same directory as ImageMagick
27776# installation prefix.
27777MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
27778
27779#
27780# Find the X11 RGB database
27781#
27782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
27783$as_echo_n "checking for X11 configure files... " >&6; }
27784if ${im_cv_x_configure+:} false; then :
27785  $as_echo_n "(cached) " >&6
27786else
27787  # Look for the header file in a standard set of common directories.
27788# Check X11 before X11Rn because it is often a symlink to the current release.
27789    for ac_dir in          \
27790    /lib/usr/lib/X11       \
27791    /usr/X11/lib           \
27792    /usr/X11R4/lib         \
27793    /usr/X11R5/lib         \
27794    /usr/X11R6/lib         \
27795    /usr/X11R7/lib         \
27796    /usr/X386/lib          \
27797    /usr/XFree86/lib/X11   \
27798    /usr/athena/lib        \
27799    /usr/lib               \
27800    /usr/lib/X11           \
27801    /usr/lib/X11R4         \
27802    /usr/lib/X11R5         \
27803    /usr/lib/X11R6         \
27804    /usr/lib/X11R7         \
27805    /usr/local/X11/lib     \
27806    /usr/local/X11R4/lib   \
27807    /usr/local/X11R5/lib   \
27808    /usr/local/X11R6/lib   \
27809    /usr/local/lib         \
27810    /usr/local/lib/X11     \
27811    /usr/local/lib/X11R4   \
27812    /usr/local/lib/X11R5   \
27813    /usr/local/lib/X11R6   \
27814    /usr/local/lib/X11R7   \
27815    /usr/local/x11r5/lib   \
27816    /usr/lpp/Xamples/lib   \
27817    /usr/openwin/lib       \
27818    /usr/openwin/share/lib \
27819    /usr/unsupported/lib   \
27820    /usr/x386/lib          \
27821    ; do
27822    if test -f "$ac_dir/X11/rgb.txt"; then
27823      im_cv_x_configure="$ac_dir/X11/"
27824      break
27825    elif test -f "$ac_dir/rgb.txt"; then
27826      im_cv_x_configure="$ac_dir/"
27827      break
27828    fi
27829
27830  done
27831fi
27832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
27833$as_echo "$im_cv_x_configure" >&6; }
27834X11_CONFIGURE_PATH="$im_cv_x_configure"
27835case "${build_os}" in
27836  mingw* )
27837    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
27838  ;;
27839esac
27840
27841cat >>confdefs.h <<_ACEOF
27842#define X11_CONFIGURE_PATH "$X11ConfigurePath"
27843_ACEOF
27844
27845
27846#
27847# Find OpenMP library
27848#
27849GOMP_LIBS=''
27850if test "$enable_openmp" != 'no'; then
27851  if test "${GCC}" = "yes"; then
27852    # Open64 (passes for GCC but uses different OpenMP implementation)
27853    if test "x$GOMP_LIBS" = x ; then
27854      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
27855        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
27856$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
27857if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
27858  $as_echo_n "(cached) " >&6
27859else
27860  ac_check_lib_save_LIBS=$LIBS
27861LIBS="-lopenmp  $LIBS"
27862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27863/* end confdefs.h.  */
27864
27865/* Override any GCC internal prototype to avoid an error.
27866   Use char because int might match the return type of a GCC
27867   builtin and then its argument prototype would still apply.  */
27868#ifdef __cplusplus
27869extern "C"
27870#endif
27871char omp_get_num_procs ();
27872int
27873main ()
27874{
27875return omp_get_num_procs ();
27876  ;
27877  return 0;
27878}
27879_ACEOF
27880if ac_fn_c_try_link "$LINENO"; then :
27881  ac_cv_lib_openmp_omp_get_num_procs=yes
27882else
27883  ac_cv_lib_openmp_omp_get_num_procs=no
27884fi
27885rm -f core conftest.err conftest.$ac_objext \
27886    conftest$ac_exeext conftest.$ac_ext
27887LIBS=$ac_check_lib_save_LIBS
27888fi
27889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
27890$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
27891if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
27892  GOMP_LIBS="-lopenmp"
27893fi
27894
27895      fi
27896    fi
27897    # Clang (passes for GCC but uses different OpenMP implementation)
27898    if test "x$LIB_OMP" = x ; then
27899      if $CC --version 2>&1 | grep clang > /dev/null ; then
27900        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lomp" >&5
27901$as_echo_n "checking for GOMP_parallel_start in -lomp... " >&6; }
27902if ${ac_cv_lib_omp_GOMP_parallel_start+:} false; then :
27903  $as_echo_n "(cached) " >&6
27904else
27905  ac_check_lib_save_LIBS=$LIBS
27906LIBS="-lomp  $LIBS"
27907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27908/* end confdefs.h.  */
27909
27910/* Override any GCC internal prototype to avoid an error.
27911   Use char because int might match the return type of a GCC
27912   builtin and then its argument prototype would still apply.  */
27913#ifdef __cplusplus
27914extern "C"
27915#endif
27916char GOMP_parallel_start ();
27917int
27918main ()
27919{
27920return GOMP_parallel_start ();
27921  ;
27922  return 0;
27923}
27924_ACEOF
27925if ac_fn_c_try_link "$LINENO"; then :
27926  ac_cv_lib_omp_GOMP_parallel_start=yes
27927else
27928  ac_cv_lib_omp_GOMP_parallel_start=no
27929fi
27930rm -f core conftest.err conftest.$ac_objext \
27931    conftest$ac_exeext conftest.$ac_ext
27932LIBS=$ac_check_lib_save_LIBS
27933fi
27934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_omp_GOMP_parallel_start" >&5
27935$as_echo "$ac_cv_lib_omp_GOMP_parallel_start" >&6; }
27936if test "x$ac_cv_lib_omp_GOMP_parallel_start" = xyes; then :
27937  LIB_OMP="-lomp"
27938fi
27939
27940      fi
27941    fi
27942    # GCC
27943    if test "x$GOMP_LIBS" = x ; then
27944      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
27945$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
27946if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
27947  $as_echo_n "(cached) " >&6
27948else
27949  ac_check_lib_save_LIBS=$LIBS
27950LIBS="-lgomp  $LIBS"
27951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27952/* end confdefs.h.  */
27953
27954/* Override any GCC internal prototype to avoid an error.
27955   Use char because int might match the return type of a GCC
27956   builtin and then its argument prototype would still apply.  */
27957#ifdef __cplusplus
27958extern "C"
27959#endif
27960char GOMP_parallel_start ();
27961int
27962main ()
27963{
27964return GOMP_parallel_start ();
27965  ;
27966  return 0;
27967}
27968_ACEOF
27969if ac_fn_c_try_link "$LINENO"; then :
27970  ac_cv_lib_gomp_GOMP_parallel_start=yes
27971else
27972  ac_cv_lib_gomp_GOMP_parallel_start=no
27973fi
27974rm -f core conftest.err conftest.$ac_objext \
27975    conftest$ac_exeext conftest.$ac_ext
27976LIBS=$ac_check_lib_save_LIBS
27977fi
27978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
27979$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
27980if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
27981  GOMP_LIBS="-lgomp"
27982fi
27983
27984    fi
27985  else
27986    # Sun CC
27987    if test "x$GOMP_LIBS" = x ; then
27988      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
27989$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
27990if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
27991  $as_echo_n "(cached) " >&6
27992else
27993  ac_check_lib_save_LIBS=$LIBS
27994LIBS="-lmtsk  $LIBS"
27995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27996/* end confdefs.h.  */
27997
27998/* Override any GCC internal prototype to avoid an error.
27999   Use char because int might match the return type of a GCC
28000   builtin and then its argument prototype would still apply.  */
28001#ifdef __cplusplus
28002extern "C"
28003#endif
28004char sunw_mp_register_warn ();
28005int
28006main ()
28007{
28008return sunw_mp_register_warn ();
28009  ;
28010  return 0;
28011}
28012_ACEOF
28013if ac_fn_c_try_link "$LINENO"; then :
28014  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
28015else
28016  ac_cv_lib_mtsk_sunw_mp_register_warn=no
28017fi
28018rm -f core conftest.err conftest.$ac_objext \
28019    conftest$ac_exeext conftest.$ac_ext
28020LIBS=$ac_check_lib_save_LIBS
28021fi
28022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
28023$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
28024if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
28025  GOMP_LIBS="-lmtsk"
28026fi
28027
28028    fi
28029    # AIX xlc
28030    if test "x$GOMP_LIBS" = x ; then
28031    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
28032$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
28033if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
28034  $as_echo_n "(cached) " >&6
28035else
28036  ac_check_lib_save_LIBS=$LIBS
28037LIBS="-lxlsmp  $LIBS"
28038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28039/* end confdefs.h.  */
28040
28041/* Override any GCC internal prototype to avoid an error.
28042   Use char because int might match the return type of a GCC
28043   builtin and then its argument prototype would still apply.  */
28044#ifdef __cplusplus
28045extern "C"
28046#endif
28047char _xlsmpFlush ();
28048int
28049main ()
28050{
28051return _xlsmpFlush ();
28052  ;
28053  return 0;
28054}
28055_ACEOF
28056if ac_fn_c_try_link "$LINENO"; then :
28057  ac_cv_lib_xlsmp__xlsmpFlush=yes
28058else
28059  ac_cv_lib_xlsmp__xlsmpFlush=no
28060fi
28061rm -f core conftest.err conftest.$ac_objext \
28062    conftest$ac_exeext conftest.$ac_ext
28063LIBS=$ac_check_lib_save_LIBS
28064fi
28065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
28066$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
28067if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
28068  GOMP_LIBS="-lxlsmp"
28069fi
28070
28071    fi
28072    # SGI IRIX 6.5 MIPSpro C/C++
28073    if test "x$GOMP_LIBS" = x ; then
28074    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
28075$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
28076if ${ac_cv_lib_mp_mp_destroy+:} false; then :
28077  $as_echo_n "(cached) " >&6
28078else
28079  ac_check_lib_save_LIBS=$LIBS
28080LIBS="-lmp  $LIBS"
28081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28082/* end confdefs.h.  */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085   Use char because int might match the return type of a GCC
28086   builtin and then its argument prototype would still apply.  */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char mp_destroy ();
28091int
28092main ()
28093{
28094return mp_destroy ();
28095  ;
28096  return 0;
28097}
28098_ACEOF
28099if ac_fn_c_try_link "$LINENO"; then :
28100  ac_cv_lib_mp_mp_destroy=yes
28101else
28102  ac_cv_lib_mp_mp_destroy=no
28103fi
28104rm -f core conftest.err conftest.$ac_objext \
28105    conftest$ac_exeext conftest.$ac_ext
28106LIBS=$ac_check_lib_save_LIBS
28107fi
28108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
28109$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
28110if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
28111  GOMP_LIBS="-lmp"
28112fi
28113
28114    fi
28115  fi
28116  LIBS="$GOMP_LIBS $LIBS"
28117fi
28118
28119
28120#
28121# Check for jemalloc.
28122#
28123have_jemalloc='no'
28124JEMALLOC_LIBS=''
28125if test "$with_jemalloc" != 'no'; then
28126  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
28127$as_echo_n "checking for JEMALLOC support ... " >&6; }
28128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28129$as_echo "" >&6; }
28130  failed=0
28131  passed=0
28132  ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
28133if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
28134  passed=`expr $passed + 1`
28135else
28136  failed=`expr $failed + 1`
28137fi
28138
28139
28140  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
28141$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
28142if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
28143  $as_echo_n "(cached) " >&6
28144else
28145  ac_check_lib_save_LIBS=$LIBS
28146LIBS="-ljemalloc  $LIBS"
28147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28148/* end confdefs.h.  */
28149
28150/* Override any GCC internal prototype to avoid an error.
28151   Use char because int might match the return type of a GCC
28152   builtin and then its argument prototype would still apply.  */
28153#ifdef __cplusplus
28154extern "C"
28155#endif
28156char malloc_stats_print ();
28157int
28158main ()
28159{
28160return malloc_stats_print ();
28161  ;
28162  return 0;
28163}
28164_ACEOF
28165if ac_fn_c_try_link "$LINENO"; then :
28166  ac_cv_lib_jemalloc_malloc_stats_print=yes
28167else
28168  ac_cv_lib_jemalloc_malloc_stats_print=no
28169fi
28170rm -f core conftest.err conftest.$ac_objext \
28171    conftest$ac_exeext conftest.$ac_ext
28172LIBS=$ac_check_lib_save_LIBS
28173fi
28174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
28175$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
28176if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
28177  passed=`expr $passed + 1`
28178else
28179  failed=`expr $failed + 1`
28180fi
28181
28182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
28183$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
28184  if test $passed -gt 0; then
28185    if test $failed -gt 0; then
28186      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28187$as_echo "no -- some components failed test" >&6; }
28188      have_jemalloc='no (failed tests)'
28189    else
28190      JEMALLOC_LIBS='-ljemalloc'
28191      LIBS="$JEMALLOC_LIBS $LIBS"
28192
28193$as_echo "#define HasJEMALLOC 1" >>confdefs.h
28194
28195      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28196$as_echo "yes" >&6; }
28197      have_jemalloc='yes'
28198    fi
28199  else
28200    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28201$as_echo "no" >&6; }
28202  fi
28203fi
28204 if test "$have_jemalloc" = 'yes'; then
28205  HasJEMALLOC_TRUE=
28206  HasJEMALLOC_FALSE='#'
28207else
28208  HasJEMALLOC_TRUE='#'
28209  HasJEMALLOC_FALSE=
28210fi
28211
28212
28213
28214#
28215# Check for umem.
28216#
28217have_umem='no'
28218UMEM_LIBS=''
28219if test "$with_umem" != 'no'; then
28220  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
28221$as_echo_n "checking for UMEM support ... " >&6; }
28222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28223$as_echo "" >&6; }
28224  failed=0
28225  passed=0
28226  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
28227if test "x$ac_cv_header_umem_h" = xyes; then :
28228  passed=`expr $passed + 1`
28229else
28230  failed=`expr $failed + 1`
28231fi
28232
28233
28234  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
28235$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
28236if ${ac_cv_lib_umem_umem_alloc+:} false; then :
28237  $as_echo_n "(cached) " >&6
28238else
28239  ac_check_lib_save_LIBS=$LIBS
28240LIBS="-lumem  $LIBS"
28241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28242/* end confdefs.h.  */
28243
28244/* Override any GCC internal prototype to avoid an error.
28245   Use char because int might match the return type of a GCC
28246   builtin and then its argument prototype would still apply.  */
28247#ifdef __cplusplus
28248extern "C"
28249#endif
28250char umem_alloc ();
28251int
28252main ()
28253{
28254return umem_alloc ();
28255  ;
28256  return 0;
28257}
28258_ACEOF
28259if ac_fn_c_try_link "$LINENO"; then :
28260  ac_cv_lib_umem_umem_alloc=yes
28261else
28262  ac_cv_lib_umem_umem_alloc=no
28263fi
28264rm -f core conftest.err conftest.$ac_objext \
28265    conftest$ac_exeext conftest.$ac_ext
28266LIBS=$ac_check_lib_save_LIBS
28267fi
28268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
28269$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
28270if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
28271  passed=`expr $passed + 1`
28272else
28273  failed=`expr $failed + 1`
28274fi
28275
28276  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
28277$as_echo_n "checking for umem_free in -lumem... " >&6; }
28278if ${ac_cv_lib_umem_umem_free+:} false; then :
28279  $as_echo_n "(cached) " >&6
28280else
28281  ac_check_lib_save_LIBS=$LIBS
28282LIBS="-lumem  $LIBS"
28283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28284/* end confdefs.h.  */
28285
28286/* Override any GCC internal prototype to avoid an error.
28287   Use char because int might match the return type of a GCC
28288   builtin and then its argument prototype would still apply.  */
28289#ifdef __cplusplus
28290extern "C"
28291#endif
28292char umem_free ();
28293int
28294main ()
28295{
28296return umem_free ();
28297  ;
28298  return 0;
28299}
28300_ACEOF
28301if ac_fn_c_try_link "$LINENO"; then :
28302  ac_cv_lib_umem_umem_free=yes
28303else
28304  ac_cv_lib_umem_umem_free=no
28305fi
28306rm -f core conftest.err conftest.$ac_objext \
28307    conftest$ac_exeext conftest.$ac_ext
28308LIBS=$ac_check_lib_save_LIBS
28309fi
28310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
28311$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
28312if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
28313  passed=`expr $passed + 1`
28314else
28315  failed=`expr $failed + 1`
28316fi
28317
28318  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
28319$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
28320  if test $passed -gt 0; then
28321    if test $failed -gt 0; then
28322      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28323$as_echo "no -- some components failed test" >&6; }
28324      have_umem='no (failed tests)'
28325    else
28326      UMEM_LIBS='-lumem'
28327      LIBS="$UMEM_LIBS $LIBS"
28328
28329$as_echo "#define HasUMEM 1" >>confdefs.h
28330
28331      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28332$as_echo "yes" >&6; }
28333      have_umem='yes'
28334    fi
28335  else
28336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28337$as_echo "no" >&6; }
28338  fi
28339fi
28340 if test "$have_umem" = 'yes'; then
28341  HasUMEM_TRUE=
28342  HasUMEM_FALSE='#'
28343else
28344  HasUMEM_TRUE='#'
28345  HasUMEM_FALSE=
28346fi
28347
28348
28349
28350#
28351# Add support for ccmalloc memory debugging library if requested
28352#
28353have_ccmalloc='no'
28354CCMALLOC_LIBS=''
28355if test "$enable_ccmalloc" = 'yes'; then
28356    # Extract the first word of "ccmalloc", so it can be a program name with args.
28357set dummy ccmalloc; ac_word=$2
28358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28359$as_echo_n "checking for $ac_word... " >&6; }
28360if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
28361  $as_echo_n "(cached) " >&6
28362else
28363  case $CCMALLOCDelegate in
28364  [\\/]* | ?:[\\/]*)
28365  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
28366  ;;
28367  *)
28368  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28369for as_dir in $PATH
28370do
28371  IFS=$as_save_IFS
28372  test -z "$as_dir" && as_dir=.
28373    for ac_exec_ext in '' $ac_executable_extensions; do
28374  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28375    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
28376    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28377    break 2
28378  fi
28379done
28380  done
28381IFS=$as_save_IFS
28382
28383  ;;
28384esac
28385fi
28386CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
28387if test -n "$CCMALLOCDelegate"; then
28388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
28389$as_echo "$CCMALLOCDelegate" >&6; }
28390else
28391  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28392$as_echo "no" >&6; }
28393fi
28394
28395
28396    if test -n "$CCMALLOCDelegate"; then
28397        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
28398        OLIBS="$LIBS"
28399        # Assume that gcc is used with ccmalloc.
28400        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
28401       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
28402$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
28403if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
28404  $as_echo_n "(cached) " >&6
28405else
28406  ac_check_lib_save_LIBS=$LIBS
28407LIBS="-lccmalloc -ldl $LIBS"
28408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409/* end confdefs.h.  */
28410
28411/* Override any GCC internal prototype to avoid an error.
28412   Use char because int might match the return type of a GCC
28413   builtin and then its argument prototype would still apply.  */
28414#ifdef __cplusplus
28415extern "C"
28416#endif
28417char ccmalloc_malloc ();
28418int
28419main ()
28420{
28421return ccmalloc_malloc ();
28422  ;
28423  return 0;
28424}
28425_ACEOF
28426if ac_fn_c_try_link "$LINENO"; then :
28427  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
28428else
28429  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
28430fi
28431rm -f core conftest.err conftest.$ac_objext \
28432    conftest$ac_exeext conftest.$ac_ext
28433LIBS=$ac_check_lib_save_LIBS
28434fi
28435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
28436$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
28437if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
28438  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
28439fi
28440
28441        if test -n "$CCMALLOC_LIBS"; then
28442            LIBS="$OLIBS"
28443            LIBS="$LIBS $CCMALLOC_LIBS"
28444            have_ccmalloc='yes'
28445        else
28446            LIBS="$OLIBS"
28447        fi
28448    fi
28449fi
28450
28451#
28452# Add support for 'huge pages' if requested
28453#
28454if test "x$enable_hugepages" != "xno"; then :
28455
28456
28457$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
28458
28459
28460fi
28461
28462#
28463# Add support for efence memory debugging library if requested
28464#
28465if test "$enable_efence" = 'yes'; then
28466    EFENCE_LIBS='-lefence'
28467    LIBS="$EFENCE_LIBS $LIBS"
28468fi
28469
28470
28471#
28472# Check for BZLIB
28473#
28474
28475
28476# Check whether --with-bzlib was given.
28477if test "${with_bzlib+set}" = set; then :
28478  withval=$with_bzlib; with_bzlib=$withval
28479else
28480  with_bzlib='yes'
28481fi
28482
28483
28484if test "$with_bzlib" != 'yes'; then
28485    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
28486fi
28487
28488have_bzlib='no'
28489if test "$with_bzlib" != 'no'; then
28490    BZLIB_LIBS=''
28491    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28492$as_echo "-------------------------------------------------------------" >&6; }
28493    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
28494$as_echo_n "checking for BZLIB... " >&6; }
28495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28496$as_echo "" >&6; }
28497    failed=0
28498    passed=0
28499    found_libbz=0
28500    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
28501if test "x$ac_cv_header_bzlib_h" = xyes; then :
28502  passed=`expr $passed + 1`
28503else
28504  failed=`expr $failed + 1`
28505fi
28506
28507
28508    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
28509$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
28510if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
28511  $as_echo_n "(cached) " >&6
28512else
28513  ac_check_lib_save_LIBS=$LIBS
28514LIBS="-lbz2  $LIBS"
28515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28516/* end confdefs.h.  */
28517
28518/* Override any GCC internal prototype to avoid an error.
28519   Use char because int might match the return type of a GCC
28520   builtin and then its argument prototype would still apply.  */
28521#ifdef __cplusplus
28522extern "C"
28523#endif
28524char BZ2_bzDecompress ();
28525int
28526main ()
28527{
28528return BZ2_bzDecompress ();
28529  ;
28530  return 0;
28531}
28532_ACEOF
28533if ac_fn_c_try_link "$LINENO"; then :
28534  ac_cv_lib_bz2_BZ2_bzDecompress=yes
28535else
28536  ac_cv_lib_bz2_BZ2_bzDecompress=no
28537fi
28538rm -f core conftest.err conftest.$ac_objext \
28539    conftest$ac_exeext conftest.$ac_ext
28540LIBS=$ac_check_lib_save_LIBS
28541fi
28542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
28543$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
28544if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
28545  found_libbz=`expr $found_libbz + 1`
28546fi
28547
28548    if test "$native_win32_build" = 'yes'; then
28549      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
28550$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
28551if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
28552  $as_echo_n "(cached) " >&6
28553else
28554  ac_check_lib_save_LIBS=$LIBS
28555LIBS="-lbz2  $LIBS"
28556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28557/* end confdefs.h.  */
28558
28559/* Override any GCC internal prototype to avoid an error.
28560   Use char because int might match the return type of a GCC
28561   builtin and then its argument prototype would still apply.  */
28562#ifdef __cplusplus
28563extern "C"
28564#endif
28565char _imp__BZ2_decompress ();
28566int
28567main ()
28568{
28569return _imp__BZ2_decompress ();
28570  ;
28571  return 0;
28572}
28573_ACEOF
28574if ac_fn_c_try_link "$LINENO"; then :
28575  ac_cv_lib_bz2__imp__BZ2_decompress=yes
28576else
28577  ac_cv_lib_bz2__imp__BZ2_decompress=no
28578fi
28579rm -f core conftest.err conftest.$ac_objext \
28580    conftest$ac_exeext conftest.$ac_ext
28581LIBS=$ac_check_lib_save_LIBS
28582fi
28583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
28584$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
28585if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
28586  found_libbz=`expr $found_libbz + 1`
28587fi
28588
28589    fi
28590    if test $found_libbz -gt 0; then
28591      passed=`expr $passed + 1`
28592    else
28593      failed=`expr $failed + 1`
28594    fi
28595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
28596$as_echo_n "checking if BZLIB package is complete... " >&6; }
28597    if test $passed -gt 0; then
28598      if test $failed -gt 0; then
28599        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28600$as_echo "no -- some components failed test" >&6; }
28601        have_bzlib='no (failed tests)'
28602      else
28603        BZLIB_LIBS='-lbz2'
28604        LIBS="$BZLIB_LIBS $LIBS"
28605
28606$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
28607
28608        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28609$as_echo "yes" >&6; }
28610        have_bzlib='yes'
28611      fi
28612    else
28613      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28614$as_echo "no" >&6; }
28615    fi
28616fi
28617 if test "$have_bzlib" = 'yes'; then
28618  BZLIB_DELEGATE_TRUE=
28619  BZLIB_DELEGATE_FALSE='#'
28620else
28621  BZLIB_DELEGATE_TRUE='#'
28622  BZLIB_DELEGATE_FALSE=
28623fi
28624
28625
28626
28627#
28628# Find the X11 include and library directories.
28629#
28630IPC_LIBS=''
28631X11_LIBS=''
28632XEXT_LIBS=''
28633XT_LIBS=''
28634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
28635$as_echo_n "checking for X... " >&6; }
28636
28637
28638# Check whether --with-x was given.
28639if test "${with_x+set}" = set; then :
28640  withval=$with_x;
28641fi
28642
28643# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
28644if test "x$with_x" = xno; then
28645  # The user explicitly disabled X.
28646  have_x=disabled
28647else
28648  case $x_includes,$x_libraries in #(
28649    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
28650    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
28651  $as_echo_n "(cached) " >&6
28652else
28653  # One or both of the vars are not set, and there is no cached value.
28654ac_x_includes=no ac_x_libraries=no
28655rm -f -r conftest.dir
28656if mkdir conftest.dir; then
28657  cd conftest.dir
28658  cat >Imakefile <<'_ACEOF'
28659incroot:
28660	@echo incroot='${INCROOT}'
28661usrlibdir:
28662	@echo usrlibdir='${USRLIBDIR}'
28663libdir:
28664	@echo libdir='${LIBDIR}'
28665_ACEOF
28666  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28667    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
28668    for ac_var in incroot usrlibdir libdir; do
28669      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28670    done
28671    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28672    for ac_extension in a so sl dylib la dll; do
28673      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28674	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
28675	ac_im_usrlibdir=$ac_im_libdir; break
28676      fi
28677    done
28678    # Screen out bogus values from the imake configuration.  They are
28679    # bogus both because they are the default anyway, and because
28680    # using them would break gcc on systems where it needs fixed includes.
28681    case $ac_im_incroot in
28682	/usr/include) ac_x_includes= ;;
28683	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28684    esac
28685    case $ac_im_usrlibdir in
28686	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
28687	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28688    esac
28689  fi
28690  cd ..
28691  rm -f -r conftest.dir
28692fi
28693
28694# Standard set of common directories for X headers.
28695# Check X11 before X11Rn because it is often a symlink to the current release.
28696ac_x_header_dirs='
28697/usr/X11/include
28698/usr/X11R7/include
28699/usr/X11R6/include
28700/usr/X11R5/include
28701/usr/X11R4/include
28702
28703/usr/include/X11
28704/usr/include/X11R7
28705/usr/include/X11R6
28706/usr/include/X11R5
28707/usr/include/X11R4
28708
28709/usr/local/X11/include
28710/usr/local/X11R7/include
28711/usr/local/X11R6/include
28712/usr/local/X11R5/include
28713/usr/local/X11R4/include
28714
28715/usr/local/include/X11
28716/usr/local/include/X11R7
28717/usr/local/include/X11R6
28718/usr/local/include/X11R5
28719/usr/local/include/X11R4
28720
28721/usr/X386/include
28722/usr/x386/include
28723/usr/XFree86/include/X11
28724
28725/usr/include
28726/usr/local/include
28727/usr/unsupported/include
28728/usr/athena/include
28729/usr/local/x11r5/include
28730/usr/lpp/Xamples/include
28731
28732/usr/openwin/include
28733/usr/openwin/share/include'
28734
28735if test "$ac_x_includes" = no; then
28736  # Guess where to find include files, by looking for Xlib.h.
28737  # First, try using that file with no special directory specified.
28738  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28739/* end confdefs.h.  */
28740#include <X11/Xlib.h>
28741_ACEOF
28742if ac_fn_c_try_cpp "$LINENO"; then :
28743  # We can compile using X headers with no special include directory.
28744ac_x_includes=
28745else
28746  for ac_dir in $ac_x_header_dirs; do
28747  if test -r "$ac_dir/X11/Xlib.h"; then
28748    ac_x_includes=$ac_dir
28749    break
28750  fi
28751done
28752fi
28753rm -f conftest.err conftest.i conftest.$ac_ext
28754fi # $ac_x_includes = no
28755
28756if test "$ac_x_libraries" = no; then
28757  # Check for the libraries.
28758  # See if we find them without any special options.
28759  # Don't add to $LIBS permanently.
28760  ac_save_LIBS=$LIBS
28761  LIBS="-lX11 $LIBS"
28762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28763/* end confdefs.h.  */
28764#include <X11/Xlib.h>
28765int
28766main ()
28767{
28768XrmInitialize ()
28769  ;
28770  return 0;
28771}
28772_ACEOF
28773if ac_fn_c_try_link "$LINENO"; then :
28774  LIBS=$ac_save_LIBS
28775# We can link X programs with no special library path.
28776ac_x_libraries=
28777else
28778  LIBS=$ac_save_LIBS
28779for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
28780do
28781  # Don't even attempt the hair of trying to link an X program!
28782  for ac_extension in a so sl dylib la dll; do
28783    if test -r "$ac_dir/libX11.$ac_extension"; then
28784      ac_x_libraries=$ac_dir
28785      break 2
28786    fi
28787  done
28788done
28789fi
28790rm -f core conftest.err conftest.$ac_objext \
28791    conftest$ac_exeext conftest.$ac_ext
28792fi # $ac_x_libraries = no
28793
28794case $ac_x_includes,$ac_x_libraries in #(
28795  no,* | *,no | *\'*)
28796    # Didn't find X, or a directory has "'" in its name.
28797    ac_cv_have_x="have_x=no";; #(
28798  *)
28799    # Record where we found X for the cache.
28800    ac_cv_have_x="have_x=yes\
28801	ac_x_includes='$ac_x_includes'\
28802	ac_x_libraries='$ac_x_libraries'"
28803esac
28804fi
28805;; #(
28806    *) have_x=yes;;
28807  esac
28808  eval "$ac_cv_have_x"
28809fi # $with_x != no
28810
28811if test "$have_x" != yes; then
28812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
28813$as_echo "$have_x" >&6; }
28814  no_x=yes
28815else
28816  # If each of the values was on the command line, it overrides each guess.
28817  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
28818  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
28819  # Update the cache value to reflect the command line values.
28820  ac_cv_have_x="have_x=yes\
28821	ac_x_includes='$x_includes'\
28822	ac_x_libraries='$x_libraries'"
28823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
28824$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
28825fi
28826
28827if test "$no_x" = yes; then
28828  # Not all programs may use this symbol, but it does not hurt to define it.
28829
28830$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
28831
28832  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
28833else
28834  if test -n "$x_includes"; then
28835    X_CFLAGS="$X_CFLAGS -I$x_includes"
28836  fi
28837
28838  # It would also be nice to do this for all -L options, not just this one.
28839  if test -n "$x_libraries"; then
28840    X_LIBS="$X_LIBS -L$x_libraries"
28841    # For Solaris; some versions of Sun CC require a space after -R and
28842    # others require no space.  Words are not sufficient . . . .
28843    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
28844$as_echo_n "checking whether -R must be followed by a space... " >&6; }
28845    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
28846    ac_xsave_c_werror_flag=$ac_c_werror_flag
28847    ac_c_werror_flag=yes
28848    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28849/* end confdefs.h.  */
28850
28851int
28852main ()
28853{
28854
28855  ;
28856  return 0;
28857}
28858_ACEOF
28859if ac_fn_c_try_link "$LINENO"; then :
28860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28861$as_echo "no" >&6; }
28862       X_LIBS="$X_LIBS -R$x_libraries"
28863else
28864  LIBS="$ac_xsave_LIBS -R $x_libraries"
28865       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28866/* end confdefs.h.  */
28867
28868int
28869main ()
28870{
28871
28872  ;
28873  return 0;
28874}
28875_ACEOF
28876if ac_fn_c_try_link "$LINENO"; then :
28877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28878$as_echo "yes" >&6; }
28879	  X_LIBS="$X_LIBS -R $x_libraries"
28880else
28881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
28882$as_echo "neither works" >&6; }
28883fi
28884rm -f core conftest.err conftest.$ac_objext \
28885    conftest$ac_exeext conftest.$ac_ext
28886fi
28887rm -f core conftest.err conftest.$ac_objext \
28888    conftest$ac_exeext conftest.$ac_ext
28889    ac_c_werror_flag=$ac_xsave_c_werror_flag
28890    LIBS=$ac_xsave_LIBS
28891  fi
28892
28893  # Check for system-dependent libraries X programs must link with.
28894  # Do this before checking for the system-independent R6 libraries
28895  # (-lICE), since we may need -lsocket or whatever for X linking.
28896
28897  if test "$ISC" = yes; then
28898    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
28899  else
28900    # Martyn Johnson says this is needed for Ultrix, if the X
28901    # libraries were built with DECnet support.  And Karl Berry says
28902    # the Alpha needs dnet_stub (dnet does not exist).
28903    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
28904    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28905/* end confdefs.h.  */
28906
28907/* Override any GCC internal prototype to avoid an error.
28908   Use char because int might match the return type of a GCC
28909   builtin and then its argument prototype would still apply.  */
28910#ifdef __cplusplus
28911extern "C"
28912#endif
28913char XOpenDisplay ();
28914int
28915main ()
28916{
28917return XOpenDisplay ();
28918  ;
28919  return 0;
28920}
28921_ACEOF
28922if ac_fn_c_try_link "$LINENO"; then :
28923
28924else
28925  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
28926$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
28927if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
28928  $as_echo_n "(cached) " >&6
28929else
28930  ac_check_lib_save_LIBS=$LIBS
28931LIBS="-ldnet  $LIBS"
28932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28933/* end confdefs.h.  */
28934
28935/* Override any GCC internal prototype to avoid an error.
28936   Use char because int might match the return type of a GCC
28937   builtin and then its argument prototype would still apply.  */
28938#ifdef __cplusplus
28939extern "C"
28940#endif
28941char dnet_ntoa ();
28942int
28943main ()
28944{
28945return dnet_ntoa ();
28946  ;
28947  return 0;
28948}
28949_ACEOF
28950if ac_fn_c_try_link "$LINENO"; then :
28951  ac_cv_lib_dnet_dnet_ntoa=yes
28952else
28953  ac_cv_lib_dnet_dnet_ntoa=no
28954fi
28955rm -f core conftest.err conftest.$ac_objext \
28956    conftest$ac_exeext conftest.$ac_ext
28957LIBS=$ac_check_lib_save_LIBS
28958fi
28959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
28960$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
28961if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
28962  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
28963fi
28964
28965    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
28966      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
28967$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
28968if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
28969  $as_echo_n "(cached) " >&6
28970else
28971  ac_check_lib_save_LIBS=$LIBS
28972LIBS="-ldnet_stub  $LIBS"
28973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28974/* end confdefs.h.  */
28975
28976/* Override any GCC internal prototype to avoid an error.
28977   Use char because int might match the return type of a GCC
28978   builtin and then its argument prototype would still apply.  */
28979#ifdef __cplusplus
28980extern "C"
28981#endif
28982char dnet_ntoa ();
28983int
28984main ()
28985{
28986return dnet_ntoa ();
28987  ;
28988  return 0;
28989}
28990_ACEOF
28991if ac_fn_c_try_link "$LINENO"; then :
28992  ac_cv_lib_dnet_stub_dnet_ntoa=yes
28993else
28994  ac_cv_lib_dnet_stub_dnet_ntoa=no
28995fi
28996rm -f core conftest.err conftest.$ac_objext \
28997    conftest$ac_exeext conftest.$ac_ext
28998LIBS=$ac_check_lib_save_LIBS
28999fi
29000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29001$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29002if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
29003  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29004fi
29005
29006    fi
29007fi
29008rm -f core conftest.err conftest.$ac_objext \
29009    conftest$ac_exeext conftest.$ac_ext
29010    LIBS="$ac_xsave_LIBS"
29011
29012    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29013    # to get the SysV transport functions.
29014    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29015    # needs -lnsl.
29016    # The nsl library prevents programs from opening the X display
29017    # on Irix 5.2, according to T.E. Dickey.
29018    # The functions gethostbyname, getservbyname, and inet_addr are
29019    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29020    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29021if test "x$ac_cv_func_gethostbyname" = xyes; then :
29022
29023fi
29024
29025    if test $ac_cv_func_gethostbyname = no; then
29026      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
29027$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
29028if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
29029  $as_echo_n "(cached) " >&6
29030else
29031  ac_check_lib_save_LIBS=$LIBS
29032LIBS="-lnsl  $LIBS"
29033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29034/* end confdefs.h.  */
29035
29036/* Override any GCC internal prototype to avoid an error.
29037   Use char because int might match the return type of a GCC
29038   builtin and then its argument prototype would still apply.  */
29039#ifdef __cplusplus
29040extern "C"
29041#endif
29042char gethostbyname ();
29043int
29044main ()
29045{
29046return gethostbyname ();
29047  ;
29048  return 0;
29049}
29050_ACEOF
29051if ac_fn_c_try_link "$LINENO"; then :
29052  ac_cv_lib_nsl_gethostbyname=yes
29053else
29054  ac_cv_lib_nsl_gethostbyname=no
29055fi
29056rm -f core conftest.err conftest.$ac_objext \
29057    conftest$ac_exeext conftest.$ac_ext
29058LIBS=$ac_check_lib_save_LIBS
29059fi
29060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
29061$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
29062if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
29063  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
29064fi
29065
29066      if test $ac_cv_lib_nsl_gethostbyname = no; then
29067	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
29068$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
29069if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
29070  $as_echo_n "(cached) " >&6
29071else
29072  ac_check_lib_save_LIBS=$LIBS
29073LIBS="-lbsd  $LIBS"
29074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29075/* end confdefs.h.  */
29076
29077/* Override any GCC internal prototype to avoid an error.
29078   Use char because int might match the return type of a GCC
29079   builtin and then its argument prototype would still apply.  */
29080#ifdef __cplusplus
29081extern "C"
29082#endif
29083char gethostbyname ();
29084int
29085main ()
29086{
29087return gethostbyname ();
29088  ;
29089  return 0;
29090}
29091_ACEOF
29092if ac_fn_c_try_link "$LINENO"; then :
29093  ac_cv_lib_bsd_gethostbyname=yes
29094else
29095  ac_cv_lib_bsd_gethostbyname=no
29096fi
29097rm -f core conftest.err conftest.$ac_objext \
29098    conftest$ac_exeext conftest.$ac_ext
29099LIBS=$ac_check_lib_save_LIBS
29100fi
29101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
29102$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
29103if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
29104  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
29105fi
29106
29107      fi
29108    fi
29109
29110    # lieder@skyler.mavd.honeywell.com says without -lsocket,
29111    # socket/setsockopt and other routines are undefined under SCO ODT
29112    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
29113    # on later versions), says Simon Leinen: it contains gethostby*
29114    # variants that don't use the name server (or something).  -lsocket
29115    # must be given before -lnsl if both are needed.  We assume that
29116    # if connect needs -lnsl, so does gethostbyname.
29117    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
29118if test "x$ac_cv_func_connect" = xyes; then :
29119
29120fi
29121
29122    if test $ac_cv_func_connect = no; then
29123      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
29124$as_echo_n "checking for connect in -lsocket... " >&6; }
29125if ${ac_cv_lib_socket_connect+:} false; then :
29126  $as_echo_n "(cached) " >&6
29127else
29128  ac_check_lib_save_LIBS=$LIBS
29129LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
29130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29131/* end confdefs.h.  */
29132
29133/* Override any GCC internal prototype to avoid an error.
29134   Use char because int might match the return type of a GCC
29135   builtin and then its argument prototype would still apply.  */
29136#ifdef __cplusplus
29137extern "C"
29138#endif
29139char connect ();
29140int
29141main ()
29142{
29143return connect ();
29144  ;
29145  return 0;
29146}
29147_ACEOF
29148if ac_fn_c_try_link "$LINENO"; then :
29149  ac_cv_lib_socket_connect=yes
29150else
29151  ac_cv_lib_socket_connect=no
29152fi
29153rm -f core conftest.err conftest.$ac_objext \
29154    conftest$ac_exeext conftest.$ac_ext
29155LIBS=$ac_check_lib_save_LIBS
29156fi
29157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
29158$as_echo "$ac_cv_lib_socket_connect" >&6; }
29159if test "x$ac_cv_lib_socket_connect" = xyes; then :
29160  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
29161fi
29162
29163    fi
29164
29165    # Guillermo Gomez says -lposix is necessary on A/UX.
29166    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
29167if test "x$ac_cv_func_remove" = xyes; then :
29168
29169fi
29170
29171    if test $ac_cv_func_remove = no; then
29172      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
29173$as_echo_n "checking for remove in -lposix... " >&6; }
29174if ${ac_cv_lib_posix_remove+:} false; then :
29175  $as_echo_n "(cached) " >&6
29176else
29177  ac_check_lib_save_LIBS=$LIBS
29178LIBS="-lposix  $LIBS"
29179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29180/* end confdefs.h.  */
29181
29182/* Override any GCC internal prototype to avoid an error.
29183   Use char because int might match the return type of a GCC
29184   builtin and then its argument prototype would still apply.  */
29185#ifdef __cplusplus
29186extern "C"
29187#endif
29188char remove ();
29189int
29190main ()
29191{
29192return remove ();
29193  ;
29194  return 0;
29195}
29196_ACEOF
29197if ac_fn_c_try_link "$LINENO"; then :
29198  ac_cv_lib_posix_remove=yes
29199else
29200  ac_cv_lib_posix_remove=no
29201fi
29202rm -f core conftest.err conftest.$ac_objext \
29203    conftest$ac_exeext conftest.$ac_ext
29204LIBS=$ac_check_lib_save_LIBS
29205fi
29206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
29207$as_echo "$ac_cv_lib_posix_remove" >&6; }
29208if test "x$ac_cv_lib_posix_remove" = xyes; then :
29209  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
29210fi
29211
29212    fi
29213
29214    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
29215    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
29216if test "x$ac_cv_func_shmat" = xyes; then :
29217
29218fi
29219
29220    if test $ac_cv_func_shmat = no; then
29221      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
29222$as_echo_n "checking for shmat in -lipc... " >&6; }
29223if ${ac_cv_lib_ipc_shmat+:} false; then :
29224  $as_echo_n "(cached) " >&6
29225else
29226  ac_check_lib_save_LIBS=$LIBS
29227LIBS="-lipc  $LIBS"
29228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29229/* end confdefs.h.  */
29230
29231/* Override any GCC internal prototype to avoid an error.
29232   Use char because int might match the return type of a GCC
29233   builtin and then its argument prototype would still apply.  */
29234#ifdef __cplusplus
29235extern "C"
29236#endif
29237char shmat ();
29238int
29239main ()
29240{
29241return shmat ();
29242  ;
29243  return 0;
29244}
29245_ACEOF
29246if ac_fn_c_try_link "$LINENO"; then :
29247  ac_cv_lib_ipc_shmat=yes
29248else
29249  ac_cv_lib_ipc_shmat=no
29250fi
29251rm -f core conftest.err conftest.$ac_objext \
29252    conftest$ac_exeext conftest.$ac_ext
29253LIBS=$ac_check_lib_save_LIBS
29254fi
29255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
29256$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
29257if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
29258  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
29259fi
29260
29261    fi
29262  fi
29263
29264  # Check for libraries that X11R6 Xt/Xaw programs need.
29265  ac_save_LDFLAGS=$LDFLAGS
29266  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
29267  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29268  # check for ICE first), but we must link in the order -lSM -lICE or
29269  # we get undefined symbols.  So assume we have SM if we have ICE.
29270  # These have to be linked with before -lX11, unlike the other
29271  # libraries we check for below, so use a different variable.
29272  # John Interrante, Karl Berry
29273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
29274$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
29275if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
29276  $as_echo_n "(cached) " >&6
29277else
29278  ac_check_lib_save_LIBS=$LIBS
29279LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29281/* end confdefs.h.  */
29282
29283/* Override any GCC internal prototype to avoid an error.
29284   Use char because int might match the return type of a GCC
29285   builtin and then its argument prototype would still apply.  */
29286#ifdef __cplusplus
29287extern "C"
29288#endif
29289char IceConnectionNumber ();
29290int
29291main ()
29292{
29293return IceConnectionNumber ();
29294  ;
29295  return 0;
29296}
29297_ACEOF
29298if ac_fn_c_try_link "$LINENO"; then :
29299  ac_cv_lib_ICE_IceConnectionNumber=yes
29300else
29301  ac_cv_lib_ICE_IceConnectionNumber=no
29302fi
29303rm -f core conftest.err conftest.$ac_objext \
29304    conftest$ac_exeext conftest.$ac_ext
29305LIBS=$ac_check_lib_save_LIBS
29306fi
29307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29308$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29309if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
29310  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29311fi
29312
29313  LDFLAGS=$ac_save_LDFLAGS
29314
29315fi
29316
29317if test "$no_x" != 'yes'; then
29318    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29319$as_echo "-------------------------------------------------------------" >&6; }
29320    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
29321$as_echo_n "checking for X11... " >&6; }
29322    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29323$as_echo "" >&6; }
29324    LDFLAGS="$LDFLAGS $X_LIBS"
29325    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
29326    LIBS="$X11_LIBS $LIBS"
29327    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
29328
29329
29330$as_echo "#define X11_DELEGATE 1" >>confdefs.h
29331
29332    #
29333    # Check for X11 shared memory extension
29334    #
29335    # shmctl is required to support the shared memory extension
29336    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
29337if test "x$ac_cv_func_shmctl" = xyes; then :
29338  have_shmctl='yes'
29339fi
29340
29341    if test "$have_shmctl" != 'yes'; then
29342        PERSIST_LIBS=$LIBS
29343        LIBS="$LIBS -lcygipc"
29344        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29345/* end confdefs.h.  */
29346
29347/* Override any GCC internal prototype to avoid an error.
29348   Use char because int might match the return type of a GCC
29349   builtin and then its argument prototype would still apply.  */
29350#ifdef __cplusplus
29351extern "C"
29352#endif
29353char shmctl ();
29354int
29355main ()
29356{
29357return shmctl ();
29358  ;
29359  return 0;
29360}
29361_ACEOF
29362if ac_fn_c_try_link "$LINENO"; then :
29363  have_shmctl='yes'; IPC_LIBS='-lcygipc'
29364fi
29365rm -f core conftest.err conftest.$ac_objext \
29366    conftest$ac_exeext conftest.$ac_ext
29367        LIBS=$PERSIST_LIBS
29368    fi
29369
29370    if test "$have_shmctl" = 'yes'; then
29371        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
29372$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
29373if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
29374  $as_echo_n "(cached) " >&6
29375else
29376  ac_check_lib_save_LIBS=$LIBS
29377LIBS="-lXext  $LIBS"
29378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29379/* end confdefs.h.  */
29380
29381/* Override any GCC internal prototype to avoid an error.
29382   Use char because int might match the return type of a GCC
29383   builtin and then its argument prototype would still apply.  */
29384#ifdef __cplusplus
29385extern "C"
29386#endif
29387char XShmAttach ();
29388int
29389main ()
29390{
29391return XShmAttach ();
29392  ;
29393  return 0;
29394}
29395_ACEOF
29396if ac_fn_c_try_link "$LINENO"; then :
29397  ac_cv_lib_Xext_XShmAttach=yes
29398else
29399  ac_cv_lib_Xext_XShmAttach=no
29400fi
29401rm -f core conftest.err conftest.$ac_objext \
29402    conftest$ac_exeext conftest.$ac_ext
29403LIBS=$ac_check_lib_save_LIBS
29404fi
29405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
29406$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
29407if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
29408  XEXT_LIBS='-lXext' ;
29409$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
29410
29411fi
29412
29413    fi
29414
29415    #
29416    # Check for X11 shape extension
29417    #
29418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
29419$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
29420if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
29421  $as_echo_n "(cached) " >&6
29422else
29423  ac_check_lib_save_LIBS=$LIBS
29424LIBS="-lXext  $LIBS"
29425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29426/* end confdefs.h.  */
29427
29428/* Override any GCC internal prototype to avoid an error.
29429   Use char because int might match the return type of a GCC
29430   builtin and then its argument prototype would still apply.  */
29431#ifdef __cplusplus
29432extern "C"
29433#endif
29434char XShapeCombineMask ();
29435int
29436main ()
29437{
29438return XShapeCombineMask ();
29439  ;
29440  return 0;
29441}
29442_ACEOF
29443if ac_fn_c_try_link "$LINENO"; then :
29444  ac_cv_lib_Xext_XShapeCombineMask=yes
29445else
29446  ac_cv_lib_Xext_XShapeCombineMask=no
29447fi
29448rm -f core conftest.err conftest.$ac_objext \
29449    conftest$ac_exeext conftest.$ac_ext
29450LIBS=$ac_check_lib_save_LIBS
29451fi
29452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
29453$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
29454if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
29455  XEXT_LIBS='-lXext' ;
29456$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
29457
29458fi
29459
29460    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
29461$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
29462if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
29463  $as_echo_n "(cached) " >&6
29464else
29465  ac_check_lib_save_LIBS=$LIBS
29466LIBS="-lXt  $LIBS"
29467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29468/* end confdefs.h.  */
29469
29470/* Override any GCC internal prototype to avoid an error.
29471   Use char because int might match the return type of a GCC
29472   builtin and then its argument prototype would still apply.  */
29473#ifdef __cplusplus
29474extern "C"
29475#endif
29476char XtSetEventDispatcher ();
29477int
29478main ()
29479{
29480return XtSetEventDispatcher ();
29481  ;
29482  return 0;
29483}
29484_ACEOF
29485if ac_fn_c_try_link "$LINENO"; then :
29486  ac_cv_lib_Xt_XtSetEventDispatcher=yes
29487else
29488  ac_cv_lib_Xt_XtSetEventDispatcher=no
29489fi
29490rm -f core conftest.err conftest.$ac_objext \
29491    conftest$ac_exeext conftest.$ac_ext
29492LIBS=$ac_check_lib_save_LIBS
29493fi
29494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
29495$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
29496if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
29497  XT_LIBS='-lXt'
29498fi
29499
29500    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
29501fi
29502if test "$no_x" != 'yes'; then
29503  have_x='yes'
29504else
29505  have_x='no'
29506fi
29507 if test "$have_x" = 'yes'; then
29508  X11_DELEGATE_TRUE=
29509  X11_DELEGATE_FALSE='#'
29510else
29511  X11_DELEGATE_TRUE='#'
29512  X11_DELEGATE_FALSE=
29513fi
29514
29515
29516
29517
29518
29519#
29520# Check for ZLIB
29521#
29522
29523# Check whether --with-zlib was given.
29524if test "${with_zlib+set}" = set; then :
29525  withval=$with_zlib; with_zlib=$withval
29526else
29527  with_zlib='yes'
29528fi
29529
29530
29531if test "$with_zlib" != 'yes'; then
29532    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
29533fi
29534
29535have_zlib='no'
29536ZLIB_CFLAGS=""
29537ZLIB_LIBS=""
29538ZLIB_PKG=""
29539if test "x$with_zlib" = "xyes"; then
29540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29541$as_echo "-------------------------------------------------------------" >&6; }
29542
29543pkg_failed=no
29544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.0.0" >&5
29545$as_echo_n "checking for zlib >= 1.0.0... " >&6; }
29546
29547if test -n "$ZLIB_CFLAGS"; then
29548    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
29549 elif test -n "$PKG_CONFIG"; then
29550    if test -n "$PKG_CONFIG" && \
29551    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
29552  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
29553  ac_status=$?
29554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29555  test $ac_status = 0; }; then
29556  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
29557		      test "x$?" != "x0" && pkg_failed=yes
29558else
29559  pkg_failed=yes
29560fi
29561 else
29562    pkg_failed=untried
29563fi
29564if test -n "$ZLIB_LIBS"; then
29565    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
29566 elif test -n "$PKG_CONFIG"; then
29567    if test -n "$PKG_CONFIG" && \
29568    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
29569  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
29570  ac_status=$?
29571  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29572  test $ac_status = 0; }; then
29573  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
29574		      test "x$?" != "x0" && pkg_failed=yes
29575else
29576  pkg_failed=yes
29577fi
29578 else
29579    pkg_failed=untried
29580fi
29581
29582
29583
29584if test $pkg_failed = yes; then
29585        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29586$as_echo "no" >&6; }
29587
29588if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29589        _pkg_short_errors_supported=yes
29590else
29591        _pkg_short_errors_supported=no
29592fi
29593        if test $_pkg_short_errors_supported = yes; then
29594	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
29595        else
29596	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
29597        fi
29598	# Put the nasty error message in config.log where it belongs
29599	echo "$ZLIB_PKG_ERRORS" >&5
29600
29601	have_zlib=no
29602elif test $pkg_failed = untried; then
29603        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29604$as_echo "no" >&6; }
29605	have_zlib=no
29606else
29607	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
29608	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
29609        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29610$as_echo "yes" >&6; }
29611	have_zlib=yes
29612fi
29613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29614$as_echo "" >&6; }
29615fi
29616
29617if test "$have_zlib" = 'yes'; then
29618
29619$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
29620
29621  CFLAGS="$ZLIB_CFLAGS $CFLAGS"
29622  LIBS="$ZLIB_LIBS $LIBS"
29623fi
29624
29625 if test "$have_zlib" = 'yes'; then
29626  ZLIB_DELEGATE_TRUE=
29627  ZLIB_DELEGATE_FALSE='#'
29628else
29629  ZLIB_DELEGATE_TRUE='#'
29630  ZLIB_DELEGATE_FALSE=
29631fi
29632
29633
29634
29635
29636
29637#
29638# Check for ZSTD
29639#
29640
29641# Check whether --with-zstd was given.
29642if test "${with_zstd+set}" = set; then :
29643  withval=$with_zstd; with_zstd=$withval
29644else
29645  with_zstd='yes'
29646fi
29647
29648
29649if test "$with_zstd" != 'yes'; then
29650    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zstd=$with_zstd "
29651fi
29652
29653have_zstd='no'
29654ZSTD_CFLAGS=""
29655ZSTD_LIBS=""
29656ZSTD_PKG=""
29657if test "x$with_zstd" = "xyes"; then
29658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29659$as_echo "-------------------------------------------------------------" >&6; }
29660
29661pkg_failed=no
29662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd >= 1.0.0" >&5
29663$as_echo_n "checking for libzstd >= 1.0.0... " >&6; }
29664
29665if test -n "$LIBZSTD_CFLAGS"; then
29666    pkg_cv_LIBZSTD_CFLAGS="$LIBZSTD_CFLAGS"
29667 elif test -n "$PKG_CONFIG"; then
29668    if test -n "$PKG_CONFIG" && \
29669    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
29670  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
29671  ac_status=$?
29672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29673  test $ac_status = 0; }; then
29674  pkg_cv_LIBZSTD_CFLAGS=`$PKG_CONFIG --cflags "libzstd >= 1.0.0" 2>/dev/null`
29675		      test "x$?" != "x0" && pkg_failed=yes
29676else
29677  pkg_failed=yes
29678fi
29679 else
29680    pkg_failed=untried
29681fi
29682if test -n "$LIBZSTD_LIBS"; then
29683    pkg_cv_LIBZSTD_LIBS="$LIBZSTD_LIBS"
29684 elif test -n "$PKG_CONFIG"; then
29685    if test -n "$PKG_CONFIG" && \
29686    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzstd >= 1.0.0\""; } >&5
29687  ($PKG_CONFIG --exists --print-errors "libzstd >= 1.0.0") 2>&5
29688  ac_status=$?
29689  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29690  test $ac_status = 0; }; then
29691  pkg_cv_LIBZSTD_LIBS=`$PKG_CONFIG --libs "libzstd >= 1.0.0" 2>/dev/null`
29692		      test "x$?" != "x0" && pkg_failed=yes
29693else
29694  pkg_failed=yes
29695fi
29696 else
29697    pkg_failed=untried
29698fi
29699
29700
29701
29702if test $pkg_failed = yes; then
29703        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29704$as_echo "no" >&6; }
29705
29706if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29707        _pkg_short_errors_supported=yes
29708else
29709        _pkg_short_errors_supported=no
29710fi
29711        if test $_pkg_short_errors_supported = yes; then
29712	        LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
29713        else
29714	        LIBZSTD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzstd >= 1.0.0" 2>&1`
29715        fi
29716	# Put the nasty error message in config.log where it belongs
29717	echo "$LIBZSTD_PKG_ERRORS" >&5
29718
29719	have_zstd=no
29720elif test $pkg_failed = untried; then
29721        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29722$as_echo "no" >&6; }
29723	have_zstd=no
29724else
29725	LIBZSTD_CFLAGS=$pkg_cv_LIBZSTD_CFLAGS
29726	LIBZSTD_LIBS=$pkg_cv_LIBZSTD_LIBS
29727        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728$as_echo "yes" >&6; }
29729	have_zstd=yes
29730fi
29731  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29732$as_echo "" >&6; }
29733fi
29734
29735if test "$have_zstd" = 'yes'; then
29736
29737$as_echo "#define ZSTD_DELEGATE 1" >>confdefs.h
29738
29739  CFLAGS="$ZSTD_CFLAGS $CFLAGS"
29740  LIBS="$ZSTD_LIBS $LIBS"
29741fi
29742
29743 if test "$have_zstd" = 'yes'; then
29744  ZSTD_DELEGATE_TRUE=
29745  ZSTD_DELEGATE_FALSE='#'
29746else
29747  ZSTD_DELEGATE_TRUE='#'
29748  ZSTD_DELEGATE_FALSE=
29749fi
29750
29751
29752
29753
29754
29755# whether modules are built or not.
29756with_ltdl='yes'
29757have_ltdl='no'
29758LTDL_LIBS=''
29759if test "$build_modules" != 'no' || test "X$ax_cv_check_cl_libcl" != Xno; then
29760  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29761$as_echo "-------------------------------------------------------------" >&6; }
29762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
29763$as_echo_n "checking for libltdl... " >&6; }
29764  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29765$as_echo "" >&6; }
29766  failed=0
29767  passed=0
29768  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
29769if test "x$ac_cv_header_ltdl_h" = xyes; then :
29770  passed=`expr $passed + 1`
29771else
29772  failed=`expr $failed + 1`
29773fi
29774
29775
29776  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
29777$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
29778if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
29779  $as_echo_n "(cached) " >&6
29780else
29781  ac_check_lib_save_LIBS=$LIBS
29782LIBS="-lltdl  $LIBS"
29783cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29784/* end confdefs.h.  */
29785
29786/* Override any GCC internal prototype to avoid an error.
29787   Use char because int might match the return type of a GCC
29788   builtin and then its argument prototype would still apply.  */
29789#ifdef __cplusplus
29790extern "C"
29791#endif
29792char lt_dlinit ();
29793int
29794main ()
29795{
29796return lt_dlinit ();
29797  ;
29798  return 0;
29799}
29800_ACEOF
29801if ac_fn_c_try_link "$LINENO"; then :
29802  ac_cv_lib_ltdl_lt_dlinit=yes
29803else
29804  ac_cv_lib_ltdl_lt_dlinit=no
29805fi
29806rm -f core conftest.err conftest.$ac_objext \
29807    conftest$ac_exeext conftest.$ac_ext
29808LIBS=$ac_check_lib_save_LIBS
29809fi
29810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
29811$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
29812if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
29813  passed=`expr $passed + 1`
29814else
29815  failed=`expr $failed + 1`
29816fi
29817
29818  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
29819$as_echo_n "checking if libltdl package is complete... " >&6; }
29820  if test $passed -gt 0 ; then
29821    if test $failed -gt 0 ; then
29822      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29823$as_echo "no -- some components failed test" >&6; }
29824      have_ltdl='no (failed tests)'
29825    else
29826      LTDL_LIBS='-lltdl'
29827      LIBS="$LTDL_LIBS $LIBS"
29828
29829$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
29830
29831
29832cat >>confdefs.h <<_ACEOF
29833#define LTDL_MODULE_EXT "${shrext_cmds}"
29834_ACEOF
29835
29836      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29837$as_echo "yes" >&6; }
29838      have_ltdl='yes'
29839    fi
29840  else
29841    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29842$as_echo "no" >&6; }
29843  fi
29844  if test "$have_ltdl" != 'yes' ; then
29845    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29846$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29847as_fn_error 1 "libltdl is required for modules and OpenCL builds
29848See \`config.log' for more details" "$LINENO" 5; }
29849  fi
29850fi
29851 if test "$have_ltdl" != 'no'; then
29852  WITH_LTDL_TRUE=
29853  WITH_LTDL_FALSE='#'
29854else
29855  WITH_LTDL_TRUE='#'
29856  WITH_LTDL_FALSE=
29857fi
29858
29859
29860#
29861# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
29862#
29863LIB_DL=''
29864if test "$enable_profiling" = 'yes'; then
29865    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
29866$as_echo_n "checking for dlopen in -ldl... " >&6; }
29867if ${ac_cv_lib_dl_dlopen+:} false; then :
29868  $as_echo_n "(cached) " >&6
29869else
29870  ac_check_lib_save_LIBS=$LIBS
29871LIBS="-ldl  $LIBS"
29872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29873/* end confdefs.h.  */
29874
29875/* Override any GCC internal prototype to avoid an error.
29876   Use char because int might match the return type of a GCC
29877   builtin and then its argument prototype would still apply.  */
29878#ifdef __cplusplus
29879extern "C"
29880#endif
29881char dlopen ();
29882int
29883main ()
29884{
29885return dlopen ();
29886  ;
29887  return 0;
29888}
29889_ACEOF
29890if ac_fn_c_try_link "$LINENO"; then :
29891  ac_cv_lib_dl_dlopen=yes
29892else
29893  ac_cv_lib_dl_dlopen=no
29894fi
29895rm -f core conftest.err conftest.$ac_objext \
29896    conftest$ac_exeext conftest.$ac_ext
29897LIBS=$ac_check_lib_save_LIBS
29898fi
29899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
29900$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
29901if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
29902  LIB_DL='-ldl'
29903fi
29904
29905    LIBS="$LIB_DL $LIBS"
29906fi
29907
29908
29909
29910#
29911# Set Apple font directory.
29912#
29913
29914# Check whether --with-apple-font-dir was given.
29915if test "${with_apple_font_dir+set}" = set; then :
29916  withval=$with_apple_font_dir; with_apple_font_dir=$withval
29917else
29918  with_apple_font_dir='default'
29919fi
29920
29921
29922if test "$with_apple_font_dir" != 'default'; then
29923    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
29924fi
29925
29926
29927#
29928# Check for Autotrace delegate library.
29929#
29930
29931# Check whether --with-autotrace was given.
29932if test "${with_autotrace+set}" = set; then :
29933  withval=$with_autotrace; with_autotrace=$withval
29934else
29935  with_autotrace='no'
29936fi
29937
29938
29939if test "$with_autotrace" != 'yes'; then
29940    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
29941fi
29942
29943have_autotrace='no'
29944AUTOTRACE_CFLAGS=""
29945AUTOTRACE_LIBS=""
29946AUTOTRACE_PKG=""
29947if test "x$with_autotrace" = "xyes"; then
29948  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29949$as_echo "-------------------------------------------------------------" >&6; }
29950
29951pkg_failed=no
29952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for autotrace >= 0.31.1" >&5
29953$as_echo_n "checking for autotrace >= 0.31.1... " >&6; }
29954
29955if test -n "$AUTOTRACE_CFLAGS"; then
29956    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
29957 elif test -n "$PKG_CONFIG"; then
29958    if test -n "$PKG_CONFIG" && \
29959    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29960  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29961  ac_status=$?
29962  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29963  test $ac_status = 0; }; then
29964  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
29965		      test "x$?" != "x0" && pkg_failed=yes
29966else
29967  pkg_failed=yes
29968fi
29969 else
29970    pkg_failed=untried
29971fi
29972if test -n "$AUTOTRACE_LIBS"; then
29973    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
29974 elif test -n "$PKG_CONFIG"; then
29975    if test -n "$PKG_CONFIG" && \
29976    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
29977  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
29978  ac_status=$?
29979  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29980  test $ac_status = 0; }; then
29981  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
29982		      test "x$?" != "x0" && pkg_failed=yes
29983else
29984  pkg_failed=yes
29985fi
29986 else
29987    pkg_failed=untried
29988fi
29989
29990
29991
29992if test $pkg_failed = yes; then
29993        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29994$as_echo "no" >&6; }
29995
29996if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29997        _pkg_short_errors_supported=yes
29998else
29999        _pkg_short_errors_supported=no
30000fi
30001        if test $_pkg_short_errors_supported = yes; then
30002	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
30003        else
30004	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
30005        fi
30006	# Put the nasty error message in config.log where it belongs
30007	echo "$AUTOTRACE_PKG_ERRORS" >&5
30008
30009	have_autotrace=no
30010elif test $pkg_failed = untried; then
30011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30012$as_echo "no" >&6; }
30013	have_autotrace=no
30014else
30015	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
30016	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
30017        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30018$as_echo "yes" >&6; }
30019	have_autotrace=yes
30020fi
30021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30022$as_echo "" >&6; }
30023fi
30024
30025if test "$have_autotrace" = 'yes'; then
30026
30027$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
30028
30029  CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
30030fi
30031
30032 if test "$have_autotrace" = 'yes'; then
30033  AUTOTRACE_DELEGATE_TRUE=
30034  AUTOTRACE_DELEGATE_FALSE='#'
30035else
30036  AUTOTRACE_DELEGATE_TRUE='#'
30037  AUTOTRACE_DELEGATE_FALSE=
30038fi
30039
30040
30041
30042
30043
30044#
30045# Check for Display Postscript delegate library.
30046#
30047
30048# Check whether --with-dps was given.
30049if test "${with_dps+set}" = set; then :
30050  withval=$with_dps; with_dps=$withval
30051else
30052  with_dps='yes'
30053fi
30054
30055
30056if test "$with_dps" != 'yes'; then
30057    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
30058fi
30059
30060have_dps='no'
30061DPS_LIBS=''
30062if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
30063    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30064$as_echo "-------------------------------------------------------------" >&6; }
30065    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
30066$as_echo_n "checking for DPS... " >&6; }
30067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30068$as_echo "" >&6; }
30069    failed=0
30070    passed=0
30071    PERSIST_CPPFLAGS="$CPPFLAGS"
30072    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
30073    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
30074if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
30075  passed=`expr $passed + 1`
30076else
30077  failed=`expr $failed + 1`
30078fi
30079
30080
30081    # DPS issues:
30082    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
30083    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
30084    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
30085    # ImageMagick itself doesn't use -lXt.
30086    have_libdps='no'
30087    LIBDPS_XT=''
30088    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
30089$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
30090if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
30091  $as_echo_n "(cached) " >&6
30092else
30093  ac_check_lib_save_LIBS=$LIBS
30094LIBS="-ldps  $LIBS"
30095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30096/* end confdefs.h.  */
30097
30098/* Override any GCC internal prototype to avoid an error.
30099   Use char because int might match the return type of a GCC
30100   builtin and then its argument prototype would still apply.  */
30101#ifdef __cplusplus
30102extern "C"
30103#endif
30104char DPSInitialize ();
30105int
30106main ()
30107{
30108return DPSInitialize ();
30109  ;
30110  return 0;
30111}
30112_ACEOF
30113if ac_fn_c_try_link "$LINENO"; then :
30114  ac_cv_lib_dps_DPSInitialize=yes
30115else
30116  ac_cv_lib_dps_DPSInitialize=no
30117fi
30118rm -f core conftest.err conftest.$ac_objext \
30119    conftest$ac_exeext conftest.$ac_ext
30120LIBS=$ac_check_lib_save_LIBS
30121fi
30122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
30123$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
30124if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
30125  have_libdps='yes'
30126else
30127  have_libdps='no'
30128fi
30129
30130    if test "$have_libdps" != 'yes'; then
30131        # Unset cache variable so we can try again.
30132        unset ac_cv_lib_dps_DPSInitialize
30133        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
30134$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
30135if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
30136  $as_echo_n "(cached) " >&6
30137else
30138  ac_check_lib_save_LIBS=$LIBS
30139LIBS="-ldps -lXt $LIBS"
30140cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30141/* end confdefs.h.  */
30142
30143/* Override any GCC internal prototype to avoid an error.
30144   Use char because int might match the return type of a GCC
30145   builtin and then its argument prototype would still apply.  */
30146#ifdef __cplusplus
30147extern "C"
30148#endif
30149char DPSInitialize ();
30150int
30151main ()
30152{
30153return DPSInitialize ();
30154  ;
30155  return 0;
30156}
30157_ACEOF
30158if ac_fn_c_try_link "$LINENO"; then :
30159  ac_cv_lib_dps_DPSInitialize=yes
30160else
30161  ac_cv_lib_dps_DPSInitialize=no
30162fi
30163rm -f core conftest.err conftest.$ac_objext \
30164    conftest$ac_exeext conftest.$ac_ext
30165LIBS=$ac_check_lib_save_LIBS
30166fi
30167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
30168$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
30169if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
30170  have_libdps='yes'
30171else
30172  have_libdps='no'
30173fi
30174
30175        if test "$have_libdps" = 'yes'; then
30176            LIBDPS_XT='-lXt'
30177        fi
30178    fi
30179    if test "$have_libdps" = 'yes'; then
30180        passed=`expr $passed + 1`
30181    else
30182        failed=`expr $failed + 1`
30183    fi
30184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
30185$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
30186if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
30187  $as_echo_n "(cached) " >&6
30188else
30189  ac_check_lib_save_LIBS=$LIBS
30190LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
30191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30192/* end confdefs.h.  */
30193
30194/* Override any GCC internal prototype to avoid an error.
30195   Use char because int might match the return type of a GCC
30196   builtin and then its argument prototype would still apply.  */
30197#ifdef __cplusplus
30198extern "C"
30199#endif
30200char XDPSPixelsPerPoint ();
30201int
30202main ()
30203{
30204return XDPSPixelsPerPoint ();
30205  ;
30206  return 0;
30207}
30208_ACEOF
30209if ac_fn_c_try_link "$LINENO"; then :
30210  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
30211else
30212  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
30213fi
30214rm -f core conftest.err conftest.$ac_objext \
30215    conftest$ac_exeext conftest.$ac_ext
30216LIBS=$ac_check_lib_save_LIBS
30217fi
30218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
30219$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
30220if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
30221  passed=`expr $passed + 1`
30222else
30223  failed=`expr $failed + 1`
30224fi
30225
30226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
30227$as_echo_n "checking if DPS package is complete... " >&6; }
30228    if test $passed -gt 0; then
30229        if test $failed -gt 0; then
30230            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30231$as_echo "no -- some components failed test" >&6; }
30232            have_dps='no (failed tests)'
30233            CPPFLAGS="$PERSIST_CPPFLAGS"
30234        else
30235            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
30236            LIBS="$DPS_LIBS $LIBS"
30237
30238$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
30239
30240            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30241$as_echo "yes" >&6; }
30242            have_dps='yes'
30243        fi
30244    else
30245        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30246$as_echo "no" >&6; }
30247        CPPFLAGS=$PERSIST_CPPFLAGS
30248    fi
30249fi
30250 if test "$have_dps" = 'yes'; then
30251  DPS_DELEGATE_TRUE=
30252  DPS_DELEGATE_FALSE='#'
30253else
30254  DPS_DELEGATE_TRUE='#'
30255  DPS_DELEGATE_FALSE=
30256fi
30257
30258
30259
30260
30261#
30262# Set DejaVu font directory.
30263#
30264
30265# Check whether --with-dejavu-font-dir was given.
30266if test "${with_dejavu_font_dir+set}" = set; then :
30267  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
30268else
30269  with_dejavu_font_dir='default'
30270fi
30271
30272
30273if test "$with_dejavu_font_dir" != 'default'; then
30274    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
30275fi
30276
30277
30278#
30279# Check for FFTW delegate library.
30280#
30281
30282# Check whether --with-fftw was given.
30283if test "${with_fftw+set}" = set; then :
30284  withval=$with_fftw; with_fftw=$withval
30285else
30286  with_fftw='yes'
30287fi
30288
30289
30290if test "$with_fftw" != 'yes'; then
30291    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
30292fi
30293
30294have_fftw='no'
30295FFTW_CFLAGS=""
30296FFTW_LIBS=""
30297FFTW_PKG=""
30298if test "x$with_fftw" = "xyes"; then
30299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30300$as_echo "-------------------------------------------------------------" >&6; }
30301
30302pkg_failed=no
30303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3 >= 3.0.0" >&5
30304$as_echo_n "checking for fftw3 >= 3.0.0... " >&6; }
30305
30306if test -n "$fftw3_CFLAGS"; then
30307    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
30308 elif test -n "$PKG_CONFIG"; then
30309    if test -n "$PKG_CONFIG" && \
30310    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
30311  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
30312  ac_status=$?
30313  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30314  test $ac_status = 0; }; then
30315  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
30316		      test "x$?" != "x0" && pkg_failed=yes
30317else
30318  pkg_failed=yes
30319fi
30320 else
30321    pkg_failed=untried
30322fi
30323if test -n "$fftw3_LIBS"; then
30324    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
30325 elif test -n "$PKG_CONFIG"; then
30326    if test -n "$PKG_CONFIG" && \
30327    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
30328  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
30329  ac_status=$?
30330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30331  test $ac_status = 0; }; then
30332  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
30333		      test "x$?" != "x0" && pkg_failed=yes
30334else
30335  pkg_failed=yes
30336fi
30337 else
30338    pkg_failed=untried
30339fi
30340
30341
30342
30343if test $pkg_failed = yes; then
30344        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30345$as_echo "no" >&6; }
30346
30347if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30348        _pkg_short_errors_supported=yes
30349else
30350        _pkg_short_errors_supported=no
30351fi
30352        if test $_pkg_short_errors_supported = yes; then
30353	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
30354        else
30355	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
30356        fi
30357	# Put the nasty error message in config.log where it belongs
30358	echo "$fftw3_PKG_ERRORS" >&5
30359
30360	have_fftw=no
30361elif test $pkg_failed = untried; then
30362        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30363$as_echo "no" >&6; }
30364	have_fftw=no
30365else
30366	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
30367	fftw3_LIBS=$pkg_cv_fftw3_LIBS
30368        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30369$as_echo "yes" >&6; }
30370	have_fftw=yes
30371fi
30372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30373$as_echo "" >&6; }
30374fi
30375
30376if test "$have_fftw" = 'yes'; then
30377
30378$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
30379
30380  FFTW_CFLAGS="$fftw3_CFLAGS"
30381  FFTW_LIBS="$fftw3_LIBS"
30382  CFLAGS="$fftw3_CFLAGS $CFLAGS"
30383fi
30384
30385 if test "$have_fftw" = 'yes'; then
30386  FFTW_DELEGATE_TRUE=
30387  FFTW_DELEGATE_FALSE='#'
30388else
30389  FFTW_DELEGATE_TRUE='#'
30390  FFTW_DELEGATE_FALSE=
30391fi
30392
30393
30394
30395
30396
30397#
30398# Check for FLIF delegate library.
30399#
30400
30401# Check whether --with-flif was given.
30402if test "${with_flif+set}" = set; then :
30403  withval=$with_flif; with_flif=$withval
30404else
30405  with_flif='yes'
30406fi
30407
30408
30409if test "$with_flif" != 'yes'; then
30410    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
30411fi
30412
30413have_flif='no'
30414FLIF_LIBS=''
30415if test "$with_flif" != 'no'; then
30416    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30417$as_echo "-------------------------------------------------------------" >&6; }
30418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
30419$as_echo_n "checking for FLIF... " >&6; }
30420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30421$as_echo "" >&6; }
30422    failed=0
30423    passed=0
30424    ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
30425if test "x$ac_cv_header_flif_h" = xyes; then :
30426  passed=`expr $passed + 1`
30427else
30428  failed=`expr $failed + 1`
30429fi
30430
30431
30432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
30433$as_echo_n "checking for flif_create_decoder in -lflif... " >&6; }
30434if ${ac_cv_lib_flif_flif_create_decoder+:} false; then :
30435  $as_echo_n "(cached) " >&6
30436else
30437  ac_check_lib_save_LIBS=$LIBS
30438LIBS="-lflif  $LIBS"
30439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30440/* end confdefs.h.  */
30441
30442/* Override any GCC internal prototype to avoid an error.
30443   Use char because int might match the return type of a GCC
30444   builtin and then its argument prototype would still apply.  */
30445#ifdef __cplusplus
30446extern "C"
30447#endif
30448char flif_create_decoder ();
30449int
30450main ()
30451{
30452return flif_create_decoder ();
30453  ;
30454  return 0;
30455}
30456_ACEOF
30457if ac_fn_c_try_link "$LINENO"; then :
30458  ac_cv_lib_flif_flif_create_decoder=yes
30459else
30460  ac_cv_lib_flif_flif_create_decoder=no
30461fi
30462rm -f core conftest.err conftest.$ac_objext \
30463    conftest$ac_exeext conftest.$ac_ext
30464LIBS=$ac_check_lib_save_LIBS
30465fi
30466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
30467$as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; }
30468if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then :
30469  passed=`expr $passed + 1`
30470else
30471  failed=`expr $failed + 1`
30472fi
30473
30474    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
30475$as_echo_n "checking if FLIF package is complete... " >&6; }
30476    if test $passed -gt 0; then
30477        if test $failed -gt 0; then
30478            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30479$as_echo "no -- some components failed test" >&6; }
30480            have_flif='no (failed tests)'
30481        else
30482            FLIF_LIBS='-lflif'
30483            LIBS="$FLIF_LIBS $LIBS"
30484
30485$as_echo "#define FLIF_DELEGATE 1" >>confdefs.h
30486
30487            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30488$as_echo "yes" >&6; }
30489            have_flif='yes'
30490        fi
30491    else
30492        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30493$as_echo "no" >&6; }
30494    fi
30495fi
30496 if test "$have_flif" = 'yes'; then
30497  FLIF_DELEGATE_TRUE=
30498  FLIF_DELEGATE_FALSE='#'
30499else
30500  FLIF_DELEGATE_TRUE='#'
30501  FLIF_DELEGATE_FALSE=
30502fi
30503
30504
30505
30506
30507#
30508# Check for FlashPIX delegate library.
30509#
30510
30511# Check whether --with-fpx was given.
30512if test "${with_fpx+set}" = set; then :
30513  withval=$with_fpx; with_fpx=$withval
30514else
30515  with_fpx='yes'
30516fi
30517
30518
30519if test "$with_fpx" != 'yes'; then
30520    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
30521fi
30522
30523have_fpx='no'
30524FPX_LIBS=''
30525if test "$with_fpx" != 'no'; then
30526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30527$as_echo "-------------------------------------------------------------" >&6; }
30528    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
30529$as_echo_n "checking for FlashPIX... " >&6; }
30530    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30531$as_echo "" >&6; }
30532    failed=0
30533    passed=0
30534    ac_ext=cpp
30535ac_cpp='$CXXCPP $CPPFLAGS'
30536ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30537ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30538ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30539
30540
30541ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
30542if test "x$ac_cv_header_fpxlib_h" = xyes; then :
30543  passed=`expr $passed + 1`
30544else
30545  failed=`expr $failed + 1`
30546fi
30547
30548
30549    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
30550$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
30551if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
30552  $as_echo_n "(cached) " >&6
30553else
30554  ac_check_lib_save_LIBS=$LIBS
30555LIBS="-lfpx  $LIBS"
30556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30557/* end confdefs.h.  */
30558
30559/* Override any GCC internal prototype to avoid an error.
30560   Use char because int might match the return type of a GCC
30561   builtin and then its argument prototype would still apply.  */
30562#ifdef __cplusplus
30563extern "C"
30564#endif
30565char FPX_OpenImageByFilename ();
30566int
30567main ()
30568{
30569return FPX_OpenImageByFilename ();
30570  ;
30571  return 0;
30572}
30573_ACEOF
30574if ac_fn_cxx_try_link "$LINENO"; then :
30575  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
30576else
30577  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
30578fi
30579rm -f core conftest.err conftest.$ac_objext \
30580    conftest$ac_exeext conftest.$ac_ext
30581LIBS=$ac_check_lib_save_LIBS
30582fi
30583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
30584$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
30585if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
30586  passed=`expr $passed + 1`
30587else
30588  failed=`expr $failed + 1`
30589fi
30590
30591    ac_ext=c
30592ac_cpp='$CPP $CPPFLAGS'
30593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30595ac_compiler_gnu=$ac_cv_c_compiler_gnu
30596
30597    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
30598$as_echo_n "checking if FlashPIX package is complete... " >&6; }
30599    if test $passed -gt 0; then
30600        if test $failed -gt 0; then
30601            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30602$as_echo "no -- some components failed test" >&6; }
30603            have_fpx='no (failed tests)'
30604        else
30605            FPX_LIBS='-lfpx'
30606
30607$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
30608
30609            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30610$as_echo "yes" >&6; }
30611            have_fpx='yes'
30612            PERLMAINCC="$CXX"
30613        fi
30614    else
30615        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30616$as_echo "no" >&6; }
30617    fi
30618fi
30619 if test "$have_fpx" = 'yes'; then
30620  FPX_DELEGATE_TRUE=
30621  FPX_DELEGATE_FALSE='#'
30622else
30623  FPX_DELEGATE_TRUE='#'
30624  FPX_DELEGATE_FALSE=
30625fi
30626
30627
30628
30629
30630#
30631# Check for DJVU delegate library.
30632#
30633
30634# Check whether --with-djvu was given.
30635if test "${with_djvu+set}" = set; then :
30636  withval=$with_djvu; with_djvu=$withval
30637else
30638  with_djvu='yes'
30639fi
30640
30641
30642if test "$with_djvu" != 'yes'; then
30643    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
30644fi
30645
30646have_djvu='no'
30647DJVU_CFLAGS=""
30648DJVU_LIBS=""
30649DJVU_PKG=""
30650if test "x$with_djvu" = "xyes"; then
30651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30652$as_echo "-------------------------------------------------------------" >&6; }
30653
30654pkg_failed=no
30655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi >= 3.5.0" >&5
30656$as_echo_n "checking for ddjvuapi >= 3.5.0... " >&6; }
30657
30658if test -n "$ddjvuapi_CFLAGS"; then
30659    pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
30660 elif test -n "$PKG_CONFIG"; then
30661    if test -n "$PKG_CONFIG" && \
30662    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
30663  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
30664  ac_status=$?
30665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30666  test $ac_status = 0; }; then
30667  pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
30668		      test "x$?" != "x0" && pkg_failed=yes
30669else
30670  pkg_failed=yes
30671fi
30672 else
30673    pkg_failed=untried
30674fi
30675if test -n "$ddjvuapi_LIBS"; then
30676    pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
30677 elif test -n "$PKG_CONFIG"; then
30678    if test -n "$PKG_CONFIG" && \
30679    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
30680  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
30681  ac_status=$?
30682  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30683  test $ac_status = 0; }; then
30684  pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
30685		      test "x$?" != "x0" && pkg_failed=yes
30686else
30687  pkg_failed=yes
30688fi
30689 else
30690    pkg_failed=untried
30691fi
30692
30693
30694
30695if test $pkg_failed = yes; then
30696        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30697$as_echo "no" >&6; }
30698
30699if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30700        _pkg_short_errors_supported=yes
30701else
30702        _pkg_short_errors_supported=no
30703fi
30704        if test $_pkg_short_errors_supported = yes; then
30705	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
30706        else
30707	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
30708        fi
30709	# Put the nasty error message in config.log where it belongs
30710	echo "$ddjvuapi_PKG_ERRORS" >&5
30711
30712	have_djvu=no
30713elif test $pkg_failed = untried; then
30714        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30715$as_echo "no" >&6; }
30716	have_djvu=no
30717else
30718	ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
30719	ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
30720        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30721$as_echo "yes" >&6; }
30722	have_djvu=yes
30723fi
30724  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30725$as_echo "" >&6; }
30726fi
30727
30728if test "$have_djvu" = 'yes'; then
30729
30730$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
30731
30732  DJVU_CFLAGS="$ddjvuapi_CFLAGS"
30733  DJVU_LIBS="$ddjvuapi_LIBS"
30734  CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
30735fi
30736
30737 if test "$have_djvu" = 'yes'; then
30738  DJVU_DELEGATE_TRUE=
30739  DJVU_DELEGATE_FALSE='#'
30740else
30741  DJVU_DELEGATE_TRUE='#'
30742  DJVU_DELEGATE_FALSE=
30743fi
30744
30745
30746
30747
30748
30749#
30750# Check for fontconfig delegate library.
30751#
30752
30753# Check whether --with-fontconfig was given.
30754if test "${with_fontconfig+set}" = set; then :
30755  withval=$with_fontconfig; with_fontconfig=$withval
30756else
30757  with_fontconfig='yes'
30758fi
30759
30760
30761if test "$with_fontconfig" != 'yes'; then
30762    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
30763fi
30764
30765have_fontconfig='no'
30766FONTCONFIG_CFLAGS=""
30767FONTCONFIG_LIBS=""
30768FONTCONFIG_PKG=""
30769if test "x$with_fontconfig" = "xyes"; then
30770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30771$as_echo "-------------------------------------------------------------" >&6; }
30772
30773pkg_failed=no
30774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.1.0" >&5
30775$as_echo_n "checking for fontconfig >= 2.1.0... " >&6; }
30776
30777if test -n "$FONTCONFIG_CFLAGS"; then
30778    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
30779 elif test -n "$PKG_CONFIG"; then
30780    if test -n "$PKG_CONFIG" && \
30781    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30782  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30783  ac_status=$?
30784  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30785  test $ac_status = 0; }; then
30786  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
30787		      test "x$?" != "x0" && pkg_failed=yes
30788else
30789  pkg_failed=yes
30790fi
30791 else
30792    pkg_failed=untried
30793fi
30794if test -n "$FONTCONFIG_LIBS"; then
30795    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
30796 elif test -n "$PKG_CONFIG"; then
30797    if test -n "$PKG_CONFIG" && \
30798    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
30799  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
30800  ac_status=$?
30801  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30802  test $ac_status = 0; }; then
30803  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
30804		      test "x$?" != "x0" && pkg_failed=yes
30805else
30806  pkg_failed=yes
30807fi
30808 else
30809    pkg_failed=untried
30810fi
30811
30812
30813
30814if test $pkg_failed = yes; then
30815        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30816$as_echo "no" >&6; }
30817
30818if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30819        _pkg_short_errors_supported=yes
30820else
30821        _pkg_short_errors_supported=no
30822fi
30823        if test $_pkg_short_errors_supported = yes; then
30824	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
30825        else
30826	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
30827        fi
30828	# Put the nasty error message in config.log where it belongs
30829	echo "$FONTCONFIG_PKG_ERRORS" >&5
30830
30831	have_fontconfig=no
30832elif test $pkg_failed = untried; then
30833        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30834$as_echo "no" >&6; }
30835	have_fontconfig=no
30836else
30837	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
30838	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
30839        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30840$as_echo "yes" >&6; }
30841	have_fontconfig=yes
30842fi
30843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30844$as_echo "" >&6; }
30845fi
30846
30847if test "$have_fontconfig" = 'yes'; then
30848
30849$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
30850
30851  CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
30852fi
30853
30854 if test "$have_fontconfig" = 'yes'; then
30855  FONTCONFIG_DELEGATE_TRUE=
30856  FONTCONFIG_DELEGATE_FALSE='#'
30857else
30858  FONTCONFIG_DELEGATE_TRUE='#'
30859  FONTCONFIG_DELEGATE_FALSE=
30860fi
30861
30862
30863
30864
30865
30866#
30867# Check for the Freetype delegate library.
30868#
30869
30870# Check whether --with-freetype was given.
30871if test "${with_freetype+set}" = set; then :
30872  withval=$with_freetype; with_freetype=$withval
30873else
30874  with_freetype='yes'
30875fi
30876
30877
30878if test "$with_freetype" != 'yes'; then
30879    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
30880fi
30881
30882have_freetype='no'
30883FREETYPE_CFLAGS=""
30884FREETYPE_LIBS=""
30885FREETYPE_PKG=""
30886if test "x$with_freetype" = "xyes"; then
30887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30888$as_echo "-------------------------------------------------------------" >&6; }
30889
30890pkg_failed=no
30891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
30892$as_echo_n "checking for freetype2... " >&6; }
30893
30894if test -n "$FREETYPE_CFLAGS"; then
30895    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
30896 elif test -n "$PKG_CONFIG"; then
30897    if test -n "$PKG_CONFIG" && \
30898    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30899  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30900  ac_status=$?
30901  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30902  test $ac_status = 0; }; then
30903  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
30904		      test "x$?" != "x0" && pkg_failed=yes
30905else
30906  pkg_failed=yes
30907fi
30908 else
30909    pkg_failed=untried
30910fi
30911if test -n "$FREETYPE_LIBS"; then
30912    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
30913 elif test -n "$PKG_CONFIG"; then
30914    if test -n "$PKG_CONFIG" && \
30915    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
30916  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
30917  ac_status=$?
30918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30919  test $ac_status = 0; }; then
30920  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
30921		      test "x$?" != "x0" && pkg_failed=yes
30922else
30923  pkg_failed=yes
30924fi
30925 else
30926    pkg_failed=untried
30927fi
30928
30929
30930
30931if test $pkg_failed = yes; then
30932        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30933$as_echo "no" >&6; }
30934
30935if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30936        _pkg_short_errors_supported=yes
30937else
30938        _pkg_short_errors_supported=no
30939fi
30940        if test $_pkg_short_errors_supported = yes; then
30941	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
30942        else
30943	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
30944        fi
30945	# Put the nasty error message in config.log where it belongs
30946	echo "$FREETYPE_PKG_ERRORS" >&5
30947
30948	have_freetype=no
30949elif test $pkg_failed = untried; then
30950        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30951$as_echo "no" >&6; }
30952	have_freetype=no
30953else
30954	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
30955	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
30956        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30957$as_echo "yes" >&6; }
30958	have_freetype=yes
30959fi
30960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30961$as_echo "" >&6; }
30962fi
30963
30964if test "$have_freetype" = 'yes'; then
30965
30966$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
30967
30968  CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
30969fi
30970
30971 if test "$have_freetype" = 'yes'; then
30972  FREETYPE_DELEGATE_TRUE=
30973  FREETYPE_DELEGATE_FALSE='#'
30974else
30975  FREETYPE_DELEGATE_TRUE='#'
30976  FREETYPE_DELEGATE_FALSE=
30977fi
30978
30979
30980
30981
30982
30983#
30984# Check for the raqm delegate library.
30985#
30986
30987# Check whether --with-raqm was given.
30988if test "${with_raqm+set}" = set; then :
30989  withval=$with_raqm; with_raqm=$withval
30990else
30991  with_raqm='yes'
30992fi
30993
30994
30995if test "$with_raqm" != 'yes'; then
30996    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
30997fi
30998
30999have_raqm='no'
31000RAQM_CFLAGS=""
31001RAQM_LIBS=""
31002RAQM_PKG=""
31003if test "x$with_raqm" = "xyes"; then
31004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31005$as_echo "-------------------------------------------------------------" >&6; }
31006
31007pkg_failed=no
31008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for raqm" >&5
31009$as_echo_n "checking for raqm... " >&6; }
31010
31011if test -n "$RAQM_CFLAGS"; then
31012    pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
31013 elif test -n "$PKG_CONFIG"; then
31014    if test -n "$PKG_CONFIG" && \
31015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
31016  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
31017  ac_status=$?
31018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31019  test $ac_status = 0; }; then
31020  pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
31021		      test "x$?" != "x0" && pkg_failed=yes
31022else
31023  pkg_failed=yes
31024fi
31025 else
31026    pkg_failed=untried
31027fi
31028if test -n "$RAQM_LIBS"; then
31029    pkg_cv_RAQM_LIBS="$RAQM_LIBS"
31030 elif test -n "$PKG_CONFIG"; then
31031    if test -n "$PKG_CONFIG" && \
31032    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
31033  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
31034  ac_status=$?
31035  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31036  test $ac_status = 0; }; then
31037  pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
31038		      test "x$?" != "x0" && pkg_failed=yes
31039else
31040  pkg_failed=yes
31041fi
31042 else
31043    pkg_failed=untried
31044fi
31045
31046
31047
31048if test $pkg_failed = yes; then
31049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31050$as_echo "no" >&6; }
31051
31052if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31053        _pkg_short_errors_supported=yes
31054else
31055        _pkg_short_errors_supported=no
31056fi
31057        if test $_pkg_short_errors_supported = yes; then
31058	        RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
31059        else
31060	        RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
31061        fi
31062	# Put the nasty error message in config.log where it belongs
31063	echo "$RAQM_PKG_ERRORS" >&5
31064
31065	have_raqm=no
31066elif test $pkg_failed = untried; then
31067        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068$as_echo "no" >&6; }
31069	have_raqm=no
31070else
31071	RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
31072	RAQM_LIBS=$pkg_cv_RAQM_LIBS
31073        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31074$as_echo "yes" >&6; }
31075	have_raqm=yes
31076fi
31077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31078$as_echo "" >&6; }
31079fi
31080
31081if test "$have_raqm" = 'yes'; then
31082
31083$as_echo "#define RAQM_DELEGATE 1" >>confdefs.h
31084
31085  CFLAGS="$RAQM_CFLAGS $CFLAGS"
31086fi
31087
31088 if test "$have_raqm" = 'yes'; then
31089  RAQM_DELEGATE_TRUE=
31090  RAQM_DELEGATE_FALSE='#'
31091else
31092  RAQM_DELEGATE_TRUE='#'
31093  RAQM_DELEGATE_FALSE=
31094fi
31095
31096
31097
31098
31099
31100#
31101# Check for Ghostscript library or framework.
31102#
31103# Test for iapi.h & test for gsapi_new_instance in -lgs
31104# or -framework Ghostscript
31105
31106
31107# Check whether --with-gslib was given.
31108if test "${with_gslib+set}" = set; then :
31109  withval=$with_gslib; with_gslib=$withval
31110else
31111  with_gslib='no'
31112fi
31113
31114
31115gslib_framework='no'
31116if test "$with_gslib" != 'yes'; then
31117    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
31118fi
31119
31120have_gslib='no'
31121GS_LIBS=''
31122if test "$with_gslib" != 'no'; then
31123    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31124$as_echo "-------------------------------------------------------------" >&6; }
31125    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
31126$as_echo_n "checking for Ghostscript... " >&6; }
31127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31128$as_echo "" >&6; }
31129    framework=0
31130    failed=0
31131    passed=0
31132    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
31133if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
31134  passed=`expr $passed + 1`
31135else
31136  failed=`expr $failed + 1`
31137fi
31138
31139
31140    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
31141if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
31142  passed=`expr $passed + 1`
31143else
31144  failed=`expr $failed + 1`
31145fi
31146
31147
31148    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
31149$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
31150if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
31151  $as_echo_n "(cached) " >&6
31152else
31153  ac_check_framework_save_LIBS=$LIBS
31154LIBS="-framework Ghostscript  $LIBS"
31155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31156/* end confdefs.h.  */
31157
31158/* Override any GCC internal prototype to avoid an error.
31159   Use char because int might match the return type of a GCC
31160   builtin and then its argument prototype would still apply.  */
31161#ifdef __cplusplus
31162extern "C"
31163#endif
31164char gsapi_new_instance ();
31165int
31166main ()
31167{
31168return gsapi_new_instance ();
31169  ;
31170  return 0;
31171}
31172_ACEOF
31173if ac_fn_c_try_link "$LINENO"; then :
31174  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
31175else
31176  ac_cv_framework_Ghostscript_gsapi_new_instance=no
31177fi
31178rm -f core conftest.err conftest.$ac_objext \
31179    conftest$ac_exeext conftest.$ac_ext
31180LIBS=$ac_check_framework_save_LIBS
31181fi
31182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
31183$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
31184if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
31185  framework=`expr $framework + 1`
31186else
31187  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
31188$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
31189if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
31190  $as_echo_n "(cached) " >&6
31191else
31192  ac_check_lib_save_LIBS=$LIBS
31193LIBS="-lgs  $LIBS"
31194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31195/* end confdefs.h.  */
31196
31197/* Override any GCC internal prototype to avoid an error.
31198   Use char because int might match the return type of a GCC
31199   builtin and then its argument prototype would still apply.  */
31200#ifdef __cplusplus
31201extern "C"
31202#endif
31203char gsapi_new_instance ();
31204int
31205main ()
31206{
31207return gsapi_new_instance ();
31208  ;
31209  return 0;
31210}
31211_ACEOF
31212if ac_fn_c_try_link "$LINENO"; then :
31213  ac_cv_lib_gs_gsapi_new_instance=yes
31214else
31215  ac_cv_lib_gs_gsapi_new_instance=no
31216fi
31217rm -f core conftest.err conftest.$ac_objext \
31218    conftest$ac_exeext conftest.$ac_ext
31219LIBS=$ac_check_lib_save_LIBS
31220fi
31221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
31222$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
31223if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
31224  passed=`expr $passed + 1`
31225else
31226  failed=`expr $failed + 1`
31227fi
31228
31229fi
31230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
31231$as_echo_n "checking if Ghostscript package is complete... " >&6; }
31232    if test $passed -gt 0; then
31233        if test $failed -gt 0; then
31234            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31235$as_echo "no -- some components failed test" >&6; }
31236            have_gslib='no (failed tests)'
31237        else
31238            if test $framework -gt 0; then
31239                GS_LIBS='-framework Ghostscript'
31240                gslib_framework='yes'
31241                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
31242$as_echo "yes, using framework." >&6; }
31243            else
31244                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
31245$as_echo "yes, using library." >&6; }
31246                GS_LIBS='-lgs'
31247            fi
31248            LIBS="$GS_LIBS $LIBS"
31249
31250$as_echo "#define GS_DELEGATE 1" >>confdefs.h
31251
31252            have_gslib='yes'
31253        fi
31254    else
31255        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256$as_echo "no" >&6; }
31257    fi
31258fi
31259 if test "$have_gslib" = 'yes'; then
31260  GS_DELEGATE_TRUE=
31261  GS_DELEGATE_FALSE='#'
31262else
31263  GS_DELEGATE_TRUE='#'
31264  GS_DELEGATE_FALSE=
31265fi
31266
31267
31268
31269# Set default font search path
31270
31271# Check whether --with-fontpath was given.
31272if test "${with_fontpath+set}" = set; then :
31273  withval=$with_fontpath; with_fontpath=$withval
31274else
31275  with_fontpath=''
31276fi
31277
31278
31279if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
31280    with_fontpath=''
31281else
31282
31283cat >>confdefs.h <<_ACEOF
31284#define MAGICK_FONT_PATH "$with_fontpath"
31285_ACEOF
31286
31287fi
31288if test "$with_fontpath=" != ''; then
31289    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
31290fi
31291
31292# Set Ghostscript font directory
31293
31294# Check whether --with-gs-font-dir was given.
31295if test "${with_gs_font_dir+set}" = set; then :
31296  withval=$with_gs_font_dir; with_gs_font_dir=$withval
31297else
31298  with_gs_font_dir='default'
31299fi
31300
31301
31302if test "$with_gs_font_dir" != 'default'; then
31303    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
31304fi
31305
31306
31307#
31308# Check for GVC delegate library.
31309#
31310
31311# Check whether --with-gvc was given.
31312if test "${with_gvc+set}" = set; then :
31313  withval=$with_gvc; with_gvc=$withval
31314else
31315  with_gvc='yes'
31316fi
31317
31318
31319if test "$with_gvc" != 'yes'; then
31320    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
31321fi
31322
31323GVC_PKG=""
31324if test "x$with_gvc" = "xyes"; then
31325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31326$as_echo "-------------------------------------------------------------" >&6; }
31327
31328pkg_failed=no
31329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgvc >= 2.9.0" >&5
31330$as_echo_n "checking for libgvc >= 2.9.0... " >&6; }
31331
31332if test -n "$GVC_CFLAGS"; then
31333    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
31334 elif test -n "$PKG_CONFIG"; then
31335    if test -n "$PKG_CONFIG" && \
31336    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
31337  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
31338  ac_status=$?
31339  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31340  test $ac_status = 0; }; then
31341  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
31342		      test "x$?" != "x0" && pkg_failed=yes
31343else
31344  pkg_failed=yes
31345fi
31346 else
31347    pkg_failed=untried
31348fi
31349if test -n "$GVC_LIBS"; then
31350    pkg_cv_GVC_LIBS="$GVC_LIBS"
31351 elif test -n "$PKG_CONFIG"; then
31352    if test -n "$PKG_CONFIG" && \
31353    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
31354  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
31355  ac_status=$?
31356  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31357  test $ac_status = 0; }; then
31358  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
31359		      test "x$?" != "x0" && pkg_failed=yes
31360else
31361  pkg_failed=yes
31362fi
31363 else
31364    pkg_failed=untried
31365fi
31366
31367
31368
31369if test $pkg_failed = yes; then
31370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371$as_echo "no" >&6; }
31372
31373if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31374        _pkg_short_errors_supported=yes
31375else
31376        _pkg_short_errors_supported=no
31377fi
31378        if test $_pkg_short_errors_supported = yes; then
31379	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
31380        else
31381	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
31382        fi
31383	# Put the nasty error message in config.log where it belongs
31384	echo "$GVC_PKG_ERRORS" >&5
31385
31386	have_gvc=no
31387elif test $pkg_failed = untried; then
31388        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31389$as_echo "no" >&6; }
31390	have_gvc=no
31391else
31392	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
31393	GVC_LIBS=$pkg_cv_GVC_LIBS
31394        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31395$as_echo "yes" >&6; }
31396	have_gvc=yes
31397fi
31398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31399$as_echo "" >&6; }
31400fi
31401
31402if test "$have_gvc" = 'yes'; then
31403
31404$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
31405
31406  CFLAGS="$GVC_CFLAGS $CFLAGS"
31407fi
31408
31409 if test "$have_gvc" = 'yes'; then
31410  GVC_DELEGATE_TRUE=
31411  GVC_DELEGATE_FALSE='#'
31412else
31413  GVC_DELEGATE_TRUE='#'
31414  GVC_DELEGATE_FALSE=
31415fi
31416
31417
31418
31419
31420
31421#
31422# Check for the HEIC delegate library.
31423#
31424
31425# Check whether --with-heic was given.
31426if test "${with_heic+set}" = set; then :
31427  withval=$with_heic; with_heic=$withval
31428else
31429  with_heic='yes'
31430fi
31431
31432
31433if test "$with_heic" != 'yes'; then
31434    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-heic=$with_heic "
31435fi
31436
31437have_heic='no'
31438HEIF_CFLAGS=""
31439HEIF_LIBS=""
31440HEIF_PKG=""
31441if test "x$with_heic" = "xyes"; then
31442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31443$as_echo "-------------------------------------------------------------" >&6; }
31444
31445pkg_failed=no
31446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libheif" >&5
31447$as_echo_n "checking for libheif... " >&6; }
31448
31449if test -n "$HEIF_CFLAGS"; then
31450    pkg_cv_HEIF_CFLAGS="$HEIF_CFLAGS"
31451 elif test -n "$PKG_CONFIG"; then
31452    if test -n "$PKG_CONFIG" && \
31453    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif\""; } >&5
31454  ($PKG_CONFIG --exists --print-errors "libheif") 2>&5
31455  ac_status=$?
31456  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31457  test $ac_status = 0; }; then
31458  pkg_cv_HEIF_CFLAGS=`$PKG_CONFIG --cflags "libheif" 2>/dev/null`
31459		      test "x$?" != "x0" && pkg_failed=yes
31460else
31461  pkg_failed=yes
31462fi
31463 else
31464    pkg_failed=untried
31465fi
31466if test -n "$HEIF_LIBS"; then
31467    pkg_cv_HEIF_LIBS="$HEIF_LIBS"
31468 elif test -n "$PKG_CONFIG"; then
31469    if test -n "$PKG_CONFIG" && \
31470    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libheif\""; } >&5
31471  ($PKG_CONFIG --exists --print-errors "libheif") 2>&5
31472  ac_status=$?
31473  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31474  test $ac_status = 0; }; then
31475  pkg_cv_HEIF_LIBS=`$PKG_CONFIG --libs "libheif" 2>/dev/null`
31476		      test "x$?" != "x0" && pkg_failed=yes
31477else
31478  pkg_failed=yes
31479fi
31480 else
31481    pkg_failed=untried
31482fi
31483
31484
31485
31486if test $pkg_failed = yes; then
31487        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31488$as_echo "no" >&6; }
31489
31490if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31491        _pkg_short_errors_supported=yes
31492else
31493        _pkg_short_errors_supported=no
31494fi
31495        if test $_pkg_short_errors_supported = yes; then
31496	        HEIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libheif" 2>&1`
31497        else
31498	        HEIF_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libheif" 2>&1`
31499        fi
31500	# Put the nasty error message in config.log where it belongs
31501	echo "$HEIF_PKG_ERRORS" >&5
31502
31503	have_heic=no
31504elif test $pkg_failed = untried; then
31505        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31506$as_echo "no" >&6; }
31507	have_heic=no
31508else
31509	HEIF_CFLAGS=$pkg_cv_HEIF_CFLAGS
31510	HEIF_LIBS=$pkg_cv_HEIF_LIBS
31511        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31512$as_echo "yes" >&6; }
31513	have_heic=yes
31514fi
31515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31516$as_echo "" >&6; }
31517fi
31518
31519if test "$have_heic" = 'yes'; then
31520
31521$as_echo "#define HEIC_DELEGATE 1" >>confdefs.h
31522
31523  CFLAGS="$HEIF_CFLAGS $CFLAGS"
31524fi
31525
31526 if test "$have_heic" = 'yes'; then
31527  HEIC_DELEGATE_TRUE=
31528  HEIC_DELEGATE_FALSE='#'
31529else
31530  HEIC_DELEGATE_TRUE='#'
31531  HEIC_DELEGATE_FALSE=
31532fi
31533
31534
31535
31536
31537
31538#
31539# Check for JBIG delegate library.
31540#
31541
31542# Check whether --with-jbig was given.
31543if test "${with_jbig+set}" = set; then :
31544  withval=$with_jbig; with_jbig=$withval
31545else
31546  with_jbig='yes'
31547fi
31548
31549
31550have_jbig='no'
31551JBIG_LIBS=''
31552if test "$with_jbig" != 'no'; then
31553    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31554$as_echo "-------------------------------------------------------------" >&6; }
31555    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
31556$as_echo_n "checking for JBIG... " >&6; }
31557    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31558$as_echo "" >&6; }
31559    failed=0
31560    passed=0
31561    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
31562if test "x$ac_cv_header_jbig_h" = xyes; then :
31563  passed=`expr $passed + 1`
31564else
31565  failed=`expr $failed + 1`
31566fi
31567
31568
31569    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
31570$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
31571if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
31572  $as_echo_n "(cached) " >&6
31573else
31574  ac_check_lib_save_LIBS=$LIBS
31575LIBS="-ljbig  $LIBS"
31576cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31577/* end confdefs.h.  */
31578
31579/* Override any GCC internal prototype to avoid an error.
31580   Use char because int might match the return type of a GCC
31581   builtin and then its argument prototype would still apply.  */
31582#ifdef __cplusplus
31583extern "C"
31584#endif
31585char jbg_dec_init ();
31586int
31587main ()
31588{
31589return jbg_dec_init ();
31590  ;
31591  return 0;
31592}
31593_ACEOF
31594if ac_fn_c_try_link "$LINENO"; then :
31595  ac_cv_lib_jbig_jbg_dec_init=yes
31596else
31597  ac_cv_lib_jbig_jbg_dec_init=no
31598fi
31599rm -f core conftest.err conftest.$ac_objext \
31600    conftest$ac_exeext conftest.$ac_ext
31601LIBS=$ac_check_lib_save_LIBS
31602fi
31603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
31604$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
31605if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
31606  passed=`expr $passed + 1`
31607else
31608  failed=`expr $failed + 1`
31609fi
31610
31611    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
31612$as_echo_n "checking if JBIG package is complete... " >&6; }
31613    if test $passed -gt 0; then
31614        if test $failed -gt 0; then
31615            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31616$as_echo "no -- some components failed test" >&6; }
31617            have_jbig='no (failed tests)'
31618        else
31619            JBIG_LIBS='-ljbig'
31620            LIBS="$JBIG_LIBS $LIBS"
31621
31622$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
31623
31624            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31625$as_echo "yes" >&6; }
31626            have_jbig='yes'
31627        fi
31628    else
31629        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31630$as_echo "no" >&6; }
31631    fi
31632fi
31633 if test "$have_jbig" = 'yes'; then
31634  JBIG_DELEGATE_TRUE=
31635  JBIG_DELEGATE_FALSE='#'
31636else
31637  JBIG_DELEGATE_TRUE='#'
31638  JBIG_DELEGATE_FALSE=
31639fi
31640
31641
31642
31643
31644#
31645# Check for JPEG delegate library.
31646#
31647
31648# Check whether --with-jpeg was given.
31649if test "${with_jpeg+set}" = set; then :
31650  withval=$with_jpeg; with_jpeg=$withval
31651else
31652  with_jpeg='yes'
31653fi
31654
31655
31656if test "$with_jpeg" != 'yes'; then
31657    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
31658fi
31659
31660have_jpeg='no'
31661JPEG_LIBS=''
31662if test "$with_jpeg" != 'no'; then
31663    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31664$as_echo "-------------------------------------------------------------" >&6; }
31665    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
31666$as_echo_n "checking for JPEG... " >&6; }
31667    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31668$as_echo "" >&6; }
31669    failed=0
31670    passed=0
31671    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
31672if test "x$ac_cv_header_jconfig_h" = xyes; then :
31673  passed=`expr $passed + 1`
31674else
31675  failed=`expr $failed + 1`
31676fi
31677
31678
31679    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
31680if test "x$ac_cv_header_jerror_h" = xyes; then :
31681  passed=`expr $passed + 1`
31682else
31683  failed=`expr $failed + 1`
31684fi
31685
31686
31687    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
31688if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
31689  passed=`expr $passed + 1`
31690else
31691  failed=`expr $failed + 1`
31692fi
31693
31694
31695    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
31696if test "x$ac_cv_header_jpeglib_h" = xyes; then :
31697  passed=`expr $passed + 1`
31698else
31699  failed=`expr $failed + 1`
31700fi
31701
31702
31703    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
31704$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
31705if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
31706  $as_echo_n "(cached) " >&6
31707else
31708  ac_check_lib_save_LIBS=$LIBS
31709LIBS="-ljpeg  $LIBS"
31710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31711/* end confdefs.h.  */
31712
31713/* Override any GCC internal prototype to avoid an error.
31714   Use char because int might match the return type of a GCC
31715   builtin and then its argument prototype would still apply.  */
31716#ifdef __cplusplus
31717extern "C"
31718#endif
31719char jpeg_read_header ();
31720int
31721main ()
31722{
31723return jpeg_read_header ();
31724  ;
31725  return 0;
31726}
31727_ACEOF
31728if ac_fn_c_try_link "$LINENO"; then :
31729  ac_cv_lib_jpeg_jpeg_read_header=yes
31730else
31731  ac_cv_lib_jpeg_jpeg_read_header=no
31732fi
31733rm -f core conftest.err conftest.$ac_objext \
31734    conftest$ac_exeext conftest.$ac_ext
31735LIBS=$ac_check_lib_save_LIBS
31736fi
31737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
31738$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
31739if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
31740  passed=`expr $passed + 1`
31741else
31742  failed=`expr $failed + 1`
31743fi
31744
31745
31746# Test for compatible JPEG library
31747if test "$ac_cv_jpeg_version_ok" != 'yes'; then
31748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
31749$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
31750if ${ac_cv_jpeg_version_ok+:} false; then :
31751  $as_echo_n "(cached) " >&6
31752else
31753  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31754/* end confdefs.h.  */
31755#include <stdio.h>
31756#include <stdlib.h>
31757#include <jpeglib.h>
31758
31759int
31760main ()
31761{
31762
31763#if JPEG_LIB_VERSION < 62
31764#error IJG JPEG library must be version 6b or newer!
31765#endif
31766return 0;
31767
31768  ;
31769  return 0;
31770}
31771_ACEOF
31772if ac_fn_c_try_compile "$LINENO"; then :
31773  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
31774else
31775  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
31776fi
31777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31778fi
31779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
31780$as_echo "$ac_cv_jpeg_version_ok" >&6; }
31781fi
31782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
31783$as_echo_n "checking if JPEG package is complete... " >&6; }
31784    if test $passed -gt 0; then
31785        if test $failed -gt 0; then
31786            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31787$as_echo "no -- some components failed test" >&6; }
31788            have_jpeg='no (failed tests)'
31789        else
31790            JPEG_LIBS='-ljpeg'
31791            LIBS="$JPEG_LIBS $LIBS"
31792
31793$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
31794
31795            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31796$as_echo "yes" >&6; }
31797            have_jpeg='yes'
31798        fi
31799    else
31800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31801$as_echo "no" >&6; }
31802    fi
31803fi
31804 if test "$have_jpeg" = 'yes'; then
31805  JPEG_DELEGATE_TRUE=
31806  JPEG_DELEGATE_FALSE='#'
31807else
31808  JPEG_DELEGATE_TRUE='#'
31809  JPEG_DELEGATE_FALSE=
31810fi
31811
31812
31813
31814
31815#
31816# Check for LCMS delegate library.
31817#
31818
31819# Check whether --with-lcms was given.
31820if test "${with_lcms+set}" = set; then :
31821  withval=$with_lcms; with_lcms=$withval
31822else
31823  with_lcms='yes'
31824fi
31825
31826if test "$with_lcms" != 'yes' ; then
31827    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
31828fi
31829
31830have_lcms='no'
31831LCMS_CFLAGS=""
31832LCMS_LIBS=""
31833LCMS_PKG=""
31834if test "x$with_lcms" = "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 lcms2 >= 2.0.0" >&5
31840$as_echo_n "checking for lcms2 >= 2.0.0... " >&6; }
31841
31842if test -n "$LCMS2_CFLAGS"; then
31843    pkg_cv_LCMS2_CFLAGS="$LCMS2_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 \"lcms2 >= 2.0.0\""; } >&5
31847  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 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_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 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 "$LCMS2_LIBS"; then
31860    pkg_cv_LCMS2_LIBS="$LCMS2_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 \"lcms2 >= 2.0.0\""; } >&5
31864  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 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_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 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	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31890        else
31891	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
31892        fi
31893	# Put the nasty error message in config.log where it belongs
31894	echo "$LCMS2_PKG_ERRORS" >&5
31895
31896	have_lcms=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_lcms=no
31901else
31902	LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
31903	LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
31904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31905$as_echo "yes" >&6; }
31906	have_lcms=yes
31907fi
31908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31909$as_echo "" >&6; }
31910fi
31911
31912if test "$have_lcms" = 'yes'; then
31913
31914$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
31915
31916  LCMS_CFLAGS="$LCMS2_CFLAGS"
31917  LCMS_LIBS="$LCMS2_LIBS"
31918  CFLAGS="$LCMS2_CFLAGS $CFLAGS"
31919  ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
31920if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
31921  have_lcms_header='yes'
31922fi
31923
31924
31925  if test "$have_lcms_header" = 'yes'; then
31926
31927$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
31928
31929  else
31930
31931$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
31932
31933  fi
31934fi
31935
31936 if test "$have_lcms" = 'yes'; then
31937  LCMS_DELEGATE_TRUE=
31938  LCMS_DELEGATE_FALSE='#'
31939else
31940  LCMS_DELEGATE_TRUE='#'
31941  LCMS_DELEGATE_FALSE=
31942fi
31943
31944
31945
31946
31947
31948#
31949# Check for the OpenJP2 delegate library.
31950#
31951
31952# Check whether --with-openjp2 was given.
31953if test "${with_openjp2+set}" = set; then :
31954  withval=$with_openjp2; with_openjp2=$withval
31955else
31956  with_openjp2='yes'
31957fi
31958
31959
31960if test "$with_openjp2" != 'yes'; then
31961    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
31962fi
31963
31964have_openjp2='no'
31965LIBOPENJP2_CFLAGS=""
31966LIBOPENJP2_LIBS=""
31967LIBOPENJP2_PKG=""
31968if test "x$with_openjp2" = "xyes"; then
31969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31970$as_echo "-------------------------------------------------------------" >&6; }
31971
31972pkg_failed=no
31973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libopenjp2 >= 2.1.0" >&5
31974$as_echo_n "checking for libopenjp2 >= 2.1.0... " >&6; }
31975
31976if test -n "$LIBOPENJP2_CFLAGS"; then
31977    pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
31978 elif test -n "$PKG_CONFIG"; then
31979    if test -n "$PKG_CONFIG" && \
31980    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31981  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
31982  ac_status=$?
31983  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31984  test $ac_status = 0; }; then
31985  pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
31986		      test "x$?" != "x0" && pkg_failed=yes
31987else
31988  pkg_failed=yes
31989fi
31990 else
31991    pkg_failed=untried
31992fi
31993if test -n "$LIBOPENJP2_LIBS"; then
31994    pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
31995 elif test -n "$PKG_CONFIG"; then
31996    if test -n "$PKG_CONFIG" && \
31997    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
31998  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
31999  ac_status=$?
32000  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32001  test $ac_status = 0; }; then
32002  pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
32003		      test "x$?" != "x0" && pkg_failed=yes
32004else
32005  pkg_failed=yes
32006fi
32007 else
32008    pkg_failed=untried
32009fi
32010
32011
32012
32013if test $pkg_failed = yes; then
32014        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32015$as_echo "no" >&6; }
32016
32017if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32018        _pkg_short_errors_supported=yes
32019else
32020        _pkg_short_errors_supported=no
32021fi
32022        if test $_pkg_short_errors_supported = yes; then
32023	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
32024        else
32025	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
32026        fi
32027	# Put the nasty error message in config.log where it belongs
32028	echo "$LIBOPENJP2_PKG_ERRORS" >&5
32029
32030	have_openjp2=no
32031elif test $pkg_failed = untried; then
32032        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32033$as_echo "no" >&6; }
32034	have_openjp2=no
32035else
32036	LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
32037	LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
32038        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32039$as_echo "yes" >&6; }
32040	have_openjp2=yes
32041fi
32042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32043$as_echo "" >&6; }
32044fi
32045
32046if test "$have_openjp2" = 'yes'; then
32047
32048$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
32049
32050  CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
32051fi
32052
32053 if test "$have_openjp2" = 'yes'; then
32054  LIBOPENJP2_DELEGATE_TRUE=
32055  LIBOPENJP2_DELEGATE_FALSE='#'
32056else
32057  LIBOPENJP2_DELEGATE_TRUE='#'
32058  LIBOPENJP2_DELEGATE_FALSE=
32059fi
32060
32061
32062
32063
32064
32065
32066#
32067# Check for the LQR (Liquid Rescale) delegate library.
32068#
32069
32070# Check whether --with-lqr was given.
32071if test "${with_lqr+set}" = set; then :
32072  withval=$with_lqr; with_lqr=$withval
32073else
32074  with_lqr='yes'
32075fi
32076
32077
32078if test "$with_lqr" != 'yes'; then
32079    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
32080fi
32081
32082have_lqr='no'
32083LQR_CFLAGS=""
32084LQR_LIBS=""
32085LQR_PKG=""
32086if test "x$with_lqr" = "xyes"; then
32087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32088$as_echo "-------------------------------------------------------------" >&6; }
32089
32090pkg_failed=no
32091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lqr-1 >= 0.1.0" >&5
32092$as_echo_n "checking for lqr-1 >= 0.1.0... " >&6; }
32093
32094if test -n "$LQR_CFLAGS"; then
32095    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
32096 elif test -n "$PKG_CONFIG"; then
32097    if test -n "$PKG_CONFIG" && \
32098    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
32099  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
32100  ac_status=$?
32101  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32102  test $ac_status = 0; }; then
32103  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
32104		      test "x$?" != "x0" && pkg_failed=yes
32105else
32106  pkg_failed=yes
32107fi
32108 else
32109    pkg_failed=untried
32110fi
32111if test -n "$LQR_LIBS"; then
32112    pkg_cv_LQR_LIBS="$LQR_LIBS"
32113 elif test -n "$PKG_CONFIG"; then
32114    if test -n "$PKG_CONFIG" && \
32115    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
32116  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
32117  ac_status=$?
32118  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32119  test $ac_status = 0; }; then
32120  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
32121		      test "x$?" != "x0" && pkg_failed=yes
32122else
32123  pkg_failed=yes
32124fi
32125 else
32126    pkg_failed=untried
32127fi
32128
32129
32130
32131if test $pkg_failed = yes; then
32132        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32133$as_echo "no" >&6; }
32134
32135if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32136        _pkg_short_errors_supported=yes
32137else
32138        _pkg_short_errors_supported=no
32139fi
32140        if test $_pkg_short_errors_supported = yes; then
32141	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
32142        else
32143	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
32144        fi
32145	# Put the nasty error message in config.log where it belongs
32146	echo "$LQR_PKG_ERRORS" >&5
32147
32148	have_lqr=no
32149elif test $pkg_failed = untried; then
32150        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32151$as_echo "no" >&6; }
32152	have_lqr=no
32153else
32154	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
32155	LQR_LIBS=$pkg_cv_LQR_LIBS
32156        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32157$as_echo "yes" >&6; }
32158	have_lqr=yes
32159fi
32160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32161$as_echo "" >&6; }
32162fi
32163
32164if test "$have_lqr" = 'yes'; then
32165
32166$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
32167
32168  CFLAGS="$LQR_CFLAGS $CFLAGS"
32169fi
32170
32171 if test "$have_lqr" = 'yes'; then
32172  LQR_DELEGATE_TRUE=
32173  LQR_DELEGATE_FALSE='#'
32174else
32175  LQR_DELEGATE_TRUE='#'
32176  LQR_DELEGATE_FALSE=
32177fi
32178
32179
32180
32181
32182
32183# Disable LZMA (lzma library)
32184
32185# Check whether --with-lzma was given.
32186if test "${with_lzma+set}" = set; then :
32187  withval=$with_lzma; with_lzma=$withval
32188else
32189  with_lzma='yes'
32190fi
32191
32192if test "$with_lzma" != 'yes' ; then
32193    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
32194fi
32195
32196LZMA_PKG=""
32197if test "x$with_lzma" = "xyes"; then
32198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32199$as_echo "-------------------------------------------------------------" >&6; }
32200
32201pkg_failed=no
32202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for liblzma >= 2.9.0" >&5
32203$as_echo_n "checking for liblzma >= 2.9.0... " >&6; }
32204
32205if test -n "$LZMA_CFLAGS"; then
32206    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
32207 elif test -n "$PKG_CONFIG"; then
32208    if test -n "$PKG_CONFIG" && \
32209    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
32210  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
32211  ac_status=$?
32212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32213  test $ac_status = 0; }; then
32214  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
32215		      test "x$?" != "x0" && pkg_failed=yes
32216else
32217  pkg_failed=yes
32218fi
32219 else
32220    pkg_failed=untried
32221fi
32222if test -n "$LZMA_LIBS"; then
32223    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
32224 elif test -n "$PKG_CONFIG"; then
32225    if test -n "$PKG_CONFIG" && \
32226    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
32227  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
32228  ac_status=$?
32229  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32230  test $ac_status = 0; }; then
32231  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
32232		      test "x$?" != "x0" && pkg_failed=yes
32233else
32234  pkg_failed=yes
32235fi
32236 else
32237    pkg_failed=untried
32238fi
32239
32240
32241
32242if test $pkg_failed = yes; then
32243        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32244$as_echo "no" >&6; }
32245
32246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32247        _pkg_short_errors_supported=yes
32248else
32249        _pkg_short_errors_supported=no
32250fi
32251        if test $_pkg_short_errors_supported = yes; then
32252	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
32253        else
32254	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
32255        fi
32256	# Put the nasty error message in config.log where it belongs
32257	echo "$LZMA_PKG_ERRORS" >&5
32258
32259	have_lzma=no
32260elif test $pkg_failed = untried; then
32261        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32262$as_echo "no" >&6; }
32263	have_lzma=no
32264else
32265	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
32266	LZMA_LIBS=$pkg_cv_LZMA_LIBS
32267        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32268$as_echo "yes" >&6; }
32269	have_lzma=yes
32270fi
32271  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32272$as_echo "" >&6; }
32273fi
32274
32275if test "$have_lzma" = 'yes'; then
32276
32277$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
32278
32279  CFLAGS="$LZMA_CFLAGS $CFLAGS"
32280fi
32281
32282 if test "$have_lzma" = 'yes'; then
32283  LZMA_DELEGATE_TRUE=
32284  LZMA_DELEGATE_FALSE='#'
32285else
32286  LZMA_DELEGATE_TRUE='#'
32287  LZMA_DELEGATE_FALSE=
32288fi
32289
32290
32291
32292
32293
32294#
32295# Check for the OpenEXR delegate library.
32296#
32297
32298# Check whether --with-openexr was given.
32299if test "${with_openexr+set}" = set; then :
32300  withval=$with_openexr; with_openexr=$withval
32301else
32302  with_openexr='yes'
32303fi
32304
32305
32306if test "$with_openexr" != 'yes'; then
32307    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
32308fi
32309
32310have_openexr='no'
32311OPENEXR_CFLAGS=""
32312OPENEXR_LIBS=""
32313OPENEXR_PKG=""
32314if test "x$with_openexr" = "xyes"; then
32315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32316$as_echo "-------------------------------------------------------------" >&6; }
32317
32318pkg_failed=no
32319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenEXR >= 1.0.6" >&5
32320$as_echo_n "checking for OpenEXR >= 1.0.6... " >&6; }
32321
32322if test -n "$OPENEXR_CFLAGS"; then
32323    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
32324 elif test -n "$PKG_CONFIG"; then
32325    if test -n "$PKG_CONFIG" && \
32326    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
32327  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
32328  ac_status=$?
32329  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32330  test $ac_status = 0; }; then
32331  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
32332		      test "x$?" != "x0" && pkg_failed=yes
32333else
32334  pkg_failed=yes
32335fi
32336 else
32337    pkg_failed=untried
32338fi
32339if test -n "$OPENEXR_LIBS"; then
32340    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
32341 elif test -n "$PKG_CONFIG"; then
32342    if test -n "$PKG_CONFIG" && \
32343    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
32344  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
32345  ac_status=$?
32346  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32347  test $ac_status = 0; }; then
32348  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
32349		      test "x$?" != "x0" && pkg_failed=yes
32350else
32351  pkg_failed=yes
32352fi
32353 else
32354    pkg_failed=untried
32355fi
32356
32357
32358
32359if test $pkg_failed = yes; then
32360        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32361$as_echo "no" >&6; }
32362
32363if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32364        _pkg_short_errors_supported=yes
32365else
32366        _pkg_short_errors_supported=no
32367fi
32368        if test $_pkg_short_errors_supported = yes; then
32369	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
32370        else
32371	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
32372        fi
32373	# Put the nasty error message in config.log where it belongs
32374	echo "$OPENEXR_PKG_ERRORS" >&5
32375
32376	have_openexr=no
32377elif test $pkg_failed = untried; then
32378        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32379$as_echo "no" >&6; }
32380	have_openexr=no
32381else
32382	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
32383	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
32384        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32385$as_echo "yes" >&6; }
32386	have_openexr=yes
32387fi
32388  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32389$as_echo "" >&6; }
32390fi
32391
32392if test "$have_openexr" = 'yes'; then
32393
32394$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
32395
32396  CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
32397fi
32398
32399 if test "$have_openexr" = 'yes'; then
32400  OPENEXR_DELEGATE_TRUE=
32401  OPENEXR_DELEGATE_FALSE='#'
32402else
32403  OPENEXR_DELEGATE_TRUE='#'
32404  OPENEXR_DELEGATE_FALSE=
32405fi
32406
32407
32408
32409
32410
32411#
32412# Check for PANGO delegate library.
32413#
32414
32415# Check whether --with-pango was given.
32416if test "${with_pango+set}" = set; then :
32417  withval=$with_pango; with_pango=$withval
32418else
32419  with_pango='yes'
32420fi
32421
32422
32423if test "$with_pango" != 'yes'; then
32424    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
32425fi
32426
32427have_pango='no'
32428have_pangocairo='no'
32429PANGO_CFLAGS=""
32430PANGO_LIBS=""
32431PANGO_PKG=""
32432if test "x$with_pango" = "xyes"; then
32433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32434$as_echo "-------------------------------------------------------------" >&6; }
32435
32436pkg_failed=no
32437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangocairo >= 1.28.1" >&5
32438$as_echo_n "checking for pangocairo >= 1.28.1... " >&6; }
32439
32440if test -n "$PANGO_CFLAGS"; then
32441    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
32442 elif test -n "$PKG_CONFIG"; then
32443    if test -n "$PKG_CONFIG" && \
32444    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
32445  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
32446  ac_status=$?
32447  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32448  test $ac_status = 0; }; then
32449  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
32450		      test "x$?" != "x0" && pkg_failed=yes
32451else
32452  pkg_failed=yes
32453fi
32454 else
32455    pkg_failed=untried
32456fi
32457if test -n "$PANGO_LIBS"; then
32458    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
32459 elif test -n "$PKG_CONFIG"; then
32460    if test -n "$PKG_CONFIG" && \
32461    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
32462  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
32463  ac_status=$?
32464  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32465  test $ac_status = 0; }; then
32466  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
32467		      test "x$?" != "x0" && pkg_failed=yes
32468else
32469  pkg_failed=yes
32470fi
32471 else
32472    pkg_failed=untried
32473fi
32474
32475
32476
32477if test $pkg_failed = yes; then
32478        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32479$as_echo "no" >&6; }
32480
32481if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32482        _pkg_short_errors_supported=yes
32483else
32484        _pkg_short_errors_supported=no
32485fi
32486        if test $_pkg_short_errors_supported = yes; then
32487	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
32488        else
32489	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
32490        fi
32491	# Put the nasty error message in config.log where it belongs
32492	echo "$PANGO_PKG_ERRORS" >&5
32493
32494	have_pangocairo=no
32495elif test $pkg_failed = untried; then
32496        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32497$as_echo "no" >&6; }
32498	have_pangocairo=no
32499else
32500	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
32501	PANGO_LIBS=$pkg_cv_PANGO_LIBS
32502        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32503$as_echo "yes" >&6; }
32504	have_pangocairo=yes
32505fi
32506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32507$as_echo "" >&6; }
32508
32509pkg_failed=no
32510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pango >= 1.28.1" >&5
32511$as_echo_n "checking for pango >= 1.28.1... " >&6; }
32512
32513if test -n "$PANGO_CFLAGS"; then
32514    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
32515 elif test -n "$PKG_CONFIG"; then
32516    if test -n "$PKG_CONFIG" && \
32517    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
32518  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
32519  ac_status=$?
32520  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32521  test $ac_status = 0; }; then
32522  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
32523		      test "x$?" != "x0" && pkg_failed=yes
32524else
32525  pkg_failed=yes
32526fi
32527 else
32528    pkg_failed=untried
32529fi
32530if test -n "$PANGO_LIBS"; then
32531    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
32532 elif test -n "$PKG_CONFIG"; then
32533    if test -n "$PKG_CONFIG" && \
32534    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
32535  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
32536  ac_status=$?
32537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32538  test $ac_status = 0; }; then
32539  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
32540		      test "x$?" != "x0" && pkg_failed=yes
32541else
32542  pkg_failed=yes
32543fi
32544 else
32545    pkg_failed=untried
32546fi
32547
32548
32549
32550if test $pkg_failed = yes; then
32551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32552$as_echo "no" >&6; }
32553
32554if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32555        _pkg_short_errors_supported=yes
32556else
32557        _pkg_short_errors_supported=no
32558fi
32559        if test $_pkg_short_errors_supported = yes; then
32560	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
32561        else
32562	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
32563        fi
32564	# Put the nasty error message in config.log where it belongs
32565	echo "$PANGO_PKG_ERRORS" >&5
32566
32567	have_pango=no
32568elif test $pkg_failed = untried; then
32569        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32570$as_echo "no" >&6; }
32571	have_pango=no
32572else
32573	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
32574	PANGO_LIBS=$pkg_cv_PANGO_LIBS
32575        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32576$as_echo "yes" >&6; }
32577	have_pango=yes
32578fi
32579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32580$as_echo "" >&6; }
32581fi
32582
32583if test "$have_pango" = 'yes'; then
32584
32585$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
32586
32587  CFLAGS="$PANGO_CFLAGS $CFLAGS"
32588fi
32589
32590if test "$have_pangocairo" = 'yes'; then
32591
32592$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
32593
32594  CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
32595fi
32596
32597 if test "$have_pango" = 'yes'; then
32598  PANGO_DELEGATE_TRUE=
32599  PANGO_DELEGATE_FALSE='#'
32600else
32601  PANGO_DELEGATE_TRUE='#'
32602  PANGO_DELEGATE_FALSE=
32603fi
32604
32605 if test "$have_pangocairo" = 'yes'; then
32606  PANGOCAIRO_DELEGATE_TRUE=
32607  PANGOCAIRO_DELEGATE_FALSE='#'
32608else
32609  PANGOCAIRO_DELEGATE_TRUE='#'
32610  PANGOCAIRO_DELEGATE_FALSE=
32611fi
32612
32613
32614
32615
32616
32617#
32618# Check for PNG delegate library.
32619#
32620
32621# Check whether --with-png was given.
32622if test "${with_png+set}" = set; then :
32623  withval=$with_png; with_png=$withval
32624else
32625  with_png='yes'
32626fi
32627
32628
32629if test "$with_png" != 'yes'; then
32630    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
32631fi
32632
32633have_png='no'
32634PNG_CFLAGS=""
32635PNG_LIBS=""
32636PNG_PKG=""
32637if test "x$with_png" = "xyes"; then
32638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32639$as_echo "-------------------------------------------------------------" >&6; }
32640
32641pkg_failed=no
32642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng >= 1.0.0" >&5
32643$as_echo_n "checking for libpng >= 1.0.0... " >&6; }
32644
32645if test -n "$PNG_CFLAGS"; then
32646    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
32647 elif test -n "$PKG_CONFIG"; then
32648    if test -n "$PKG_CONFIG" && \
32649    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
32650  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
32651  ac_status=$?
32652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32653  test $ac_status = 0; }; then
32654  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
32655		      test "x$?" != "x0" && pkg_failed=yes
32656else
32657  pkg_failed=yes
32658fi
32659 else
32660    pkg_failed=untried
32661fi
32662if test -n "$PNG_LIBS"; then
32663    pkg_cv_PNG_LIBS="$PNG_LIBS"
32664 elif test -n "$PKG_CONFIG"; then
32665    if test -n "$PKG_CONFIG" && \
32666    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
32667  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
32668  ac_status=$?
32669  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32670  test $ac_status = 0; }; then
32671  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
32672		      test "x$?" != "x0" && pkg_failed=yes
32673else
32674  pkg_failed=yes
32675fi
32676 else
32677    pkg_failed=untried
32678fi
32679
32680
32681
32682if test $pkg_failed = yes; then
32683        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32684$as_echo "no" >&6; }
32685
32686if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32687        _pkg_short_errors_supported=yes
32688else
32689        _pkg_short_errors_supported=no
32690fi
32691        if test $_pkg_short_errors_supported = yes; then
32692	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
32693        else
32694	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
32695        fi
32696	# Put the nasty error message in config.log where it belongs
32697	echo "$PNG_PKG_ERRORS" >&5
32698
32699	have_png=no
32700elif test $pkg_failed = untried; then
32701        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32702$as_echo "no" >&6; }
32703	have_png=no
32704else
32705	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
32706	PNG_LIBS=$pkg_cv_PNG_LIBS
32707        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32708$as_echo "yes" >&6; }
32709	have_png=yes
32710fi
32711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32712$as_echo "" >&6; }
32713fi
32714
32715if test "$have_png" = 'yes'; then
32716
32717$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
32718
32719  CFLAGS="$PNG_CFLAGS $CFLAGS"
32720fi
32721
32722 if test "$have_png" = 'yes'; then
32723  PNG_DELEGATE_TRUE=
32724  PNG_DELEGATE_FALSE='#'
32725else
32726  PNG_DELEGATE_TRUE='#'
32727  PNG_DELEGATE_FALSE=
32728fi
32729
32730
32731
32732
32733
32734#
32735# Check for the Raw delegate library.
32736#
32737
32738# Check whether --with-raw was given.
32739if test "${with_raw+set}" = set; then :
32740  withval=$with_raw; with_raw=$withval
32741else
32742  with_raw='yes'
32743fi
32744
32745
32746if test "$with_raw" != 'yes'; then
32747    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-libraw=$with_raw "
32748fi
32749
32750have_raw='no'
32751RAW_R_CFLAGS=""
32752RAW_R_LIBS=""
32753RAW_R_PKG=""
32754if test "x$with_raw" = "xyes"; then
32755  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32756$as_echo "-------------------------------------------------------------" >&6; }
32757
32758pkg_failed=no
32759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraw_r >= 0.14.8" >&5
32760$as_echo_n "checking for libraw_r >= 0.14.8... " >&6; }
32761
32762if test -n "$RAW_R_CFLAGS"; then
32763    pkg_cv_RAW_R_CFLAGS="$RAW_R_CFLAGS"
32764 elif test -n "$PKG_CONFIG"; then
32765    if test -n "$PKG_CONFIG" && \
32766    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
32767  ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
32768  ac_status=$?
32769  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32770  test $ac_status = 0; }; then
32771  pkg_cv_RAW_R_CFLAGS=`$PKG_CONFIG --cflags "libraw_r >= 0.14.8" 2>/dev/null`
32772		      test "x$?" != "x0" && pkg_failed=yes
32773else
32774  pkg_failed=yes
32775fi
32776 else
32777    pkg_failed=untried
32778fi
32779if test -n "$RAW_R_LIBS"; then
32780    pkg_cv_RAW_R_LIBS="$RAW_R_LIBS"
32781 elif test -n "$PKG_CONFIG"; then
32782    if test -n "$PKG_CONFIG" && \
32783    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libraw_r >= 0.14.8\""; } >&5
32784  ($PKG_CONFIG --exists --print-errors "libraw_r >= 0.14.8") 2>&5
32785  ac_status=$?
32786  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32787  test $ac_status = 0; }; then
32788  pkg_cv_RAW_R_LIBS=`$PKG_CONFIG --libs "libraw_r >= 0.14.8" 2>/dev/null`
32789		      test "x$?" != "x0" && pkg_failed=yes
32790else
32791  pkg_failed=yes
32792fi
32793 else
32794    pkg_failed=untried
32795fi
32796
32797
32798
32799if test $pkg_failed = yes; then
32800        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32801$as_echo "no" >&6; }
32802
32803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32804        _pkg_short_errors_supported=yes
32805else
32806        _pkg_short_errors_supported=no
32807fi
32808        if test $_pkg_short_errors_supported = yes; then
32809	        RAW_R_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
32810        else
32811	        RAW_R_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libraw_r >= 0.14.8" 2>&1`
32812        fi
32813	# Put the nasty error message in config.log where it belongs
32814	echo "$RAW_R_PKG_ERRORS" >&5
32815
32816	have_raw=no
32817elif test $pkg_failed = untried; then
32818        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32819$as_echo "no" >&6; }
32820	have_raw=no
32821else
32822	RAW_R_CFLAGS=$pkg_cv_RAW_R_CFLAGS
32823	RAW_R_LIBS=$pkg_cv_RAW_R_LIBS
32824        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32825$as_echo "yes" >&6; }
32826	have_raw=yes
32827fi
32828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32829$as_echo "" >&6; }
32830fi
32831
32832if test "$have_raw" = 'yes'; then
32833
32834$as_echo "#define RAW_R_DELEGATE 1" >>confdefs.h
32835
32836  CFLAGS="$RAW_R_CFLAGS $CFLAGS"
32837fi
32838
32839 if test "$have_raw" = 'yes'; then
32840  RAW_R_DELEGATE_TRUE=
32841  RAW_R_DELEGATE_FALSE='#'
32842else
32843  RAW_R_DELEGATE_TRUE='#'
32844  RAW_R_DELEGATE_FALSE=
32845fi
32846
32847
32848
32849
32850
32851#
32852# Check for RSVG delegate library.
32853#
32854
32855# Check whether --with-rsvg was given.
32856if test "${with_rsvg+set}" = set; then :
32857  withval=$with_rsvg; with_rsvg=$withval
32858else
32859  with_rsvg='no'
32860fi
32861
32862
32863if test "$with_rsvg" != 'yes'; then
32864    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
32865fi
32866
32867have_rsvg='no'
32868have_cairo='no'
32869RSVG_CFLAGS=""
32870RSVG_LIBS=""
32871RSVG_PKG=""
32872if test "x$with_rsvg" = "xyes"; then
32873  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32874$as_echo "-------------------------------------------------------------" >&6; }
32875
32876pkg_failed=no
32877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for librsvg-2.0 >= 2.9.0" >&5
32878$as_echo_n "checking for librsvg-2.0 >= 2.9.0... " >&6; }
32879
32880if test -n "$RSVG_CFLAGS"; then
32881    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
32882 elif test -n "$PKG_CONFIG"; then
32883    if test -n "$PKG_CONFIG" && \
32884    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32885  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32886  ac_status=$?
32887  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32888  test $ac_status = 0; }; then
32889  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32890		      test "x$?" != "x0" && pkg_failed=yes
32891else
32892  pkg_failed=yes
32893fi
32894 else
32895    pkg_failed=untried
32896fi
32897if test -n "$RSVG_LIBS"; then
32898    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
32899 elif test -n "$PKG_CONFIG"; then
32900    if test -n "$PKG_CONFIG" && \
32901    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
32902  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
32903  ac_status=$?
32904  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32905  test $ac_status = 0; }; then
32906  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
32907		      test "x$?" != "x0" && pkg_failed=yes
32908else
32909  pkg_failed=yes
32910fi
32911 else
32912    pkg_failed=untried
32913fi
32914
32915
32916
32917if test $pkg_failed = yes; then
32918        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32919$as_echo "no" >&6; }
32920
32921if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32922        _pkg_short_errors_supported=yes
32923else
32924        _pkg_short_errors_supported=no
32925fi
32926        if test $_pkg_short_errors_supported = yes; then
32927	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
32928        else
32929	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
32930        fi
32931	# Put the nasty error message in config.log where it belongs
32932	echo "$RSVG_PKG_ERRORS" >&5
32933
32934	have_rsvg=no
32935elif test $pkg_failed = untried; then
32936        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32937$as_echo "no" >&6; }
32938	have_rsvg=no
32939else
32940	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
32941	RSVG_LIBS=$pkg_cv_RSVG_LIBS
32942        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32943$as_echo "yes" >&6; }
32944	have_rsvg=yes
32945fi
32946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32947$as_echo "" >&6; }
32948
32949pkg_failed=no
32950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo-svg" >&5
32951$as_echo_n "checking for cairo-svg... " >&6; }
32952
32953if test -n "$CAIRO_SVG_CFLAGS"; then
32954    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
32955 elif test -n "$PKG_CONFIG"; then
32956    if test -n "$PKG_CONFIG" && \
32957    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32958  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32959  ac_status=$?
32960  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32961  test $ac_status = 0; }; then
32962  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
32963		      test "x$?" != "x0" && pkg_failed=yes
32964else
32965  pkg_failed=yes
32966fi
32967 else
32968    pkg_failed=untried
32969fi
32970if test -n "$CAIRO_SVG_LIBS"; then
32971    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
32972 elif test -n "$PKG_CONFIG"; then
32973    if test -n "$PKG_CONFIG" && \
32974    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
32975  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
32976  ac_status=$?
32977  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32978  test $ac_status = 0; }; then
32979  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
32980		      test "x$?" != "x0" && pkg_failed=yes
32981else
32982  pkg_failed=yes
32983fi
32984 else
32985    pkg_failed=untried
32986fi
32987
32988
32989
32990if test $pkg_failed = yes; then
32991        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32992$as_echo "no" >&6; }
32993
32994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32995        _pkg_short_errors_supported=yes
32996else
32997        _pkg_short_errors_supported=no
32998fi
32999        if test $_pkg_short_errors_supported = yes; then
33000	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
33001        else
33002	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
33003        fi
33004	# Put the nasty error message in config.log where it belongs
33005	echo "$CAIRO_SVG_PKG_ERRORS" >&5
33006
33007	have_cairo=no
33008elif test $pkg_failed = untried; then
33009        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33010$as_echo "no" >&6; }
33011	have_cairo=no
33012else
33013	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
33014	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
33015        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33016$as_echo "yes" >&6; }
33017	have_cairo=yes
33018fi
33019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33020$as_echo "" >&6; }
33021fi
33022
33023if test "$have_rsvg" = 'yes'; then
33024
33025$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
33026
33027  CFLAGS="$RSVG_CFLAGS $CFLAGS"
33028fi
33029
33030if test "$have_cairo" = 'yes'; then
33031
33032$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
33033
33034  CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
33035fi
33036
33037 if test "$have_rsvg" = 'yes'; then
33038  RSVG_DELEGATE_TRUE=
33039  RSVG_DELEGATE_FALSE='#'
33040else
33041  RSVG_DELEGATE_TRUE='#'
33042  RSVG_DELEGATE_FALSE=
33043fi
33044
33045 if test "$have_cairo" = 'yes'; then
33046  CAIRO_DELEGATE_TRUE=
33047  CAIRO_DELEGATE_FALSE='#'
33048else
33049  CAIRO_DELEGATE_TRUE='#'
33050  CAIRO_DELEGATE_FALSE=
33051fi
33052
33053
33054
33055
33056
33057#
33058# Check for TIFF delegate library.
33059#
33060
33061# Check whether --with-tiff was given.
33062if test "${with_tiff+set}" = set; then :
33063  withval=$with_tiff; with_tiff=$withval
33064else
33065  with_tiff='yes'
33066fi
33067
33068
33069if test "$with_tiff" != 'yes'; then
33070    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
33071fi
33072
33073have_tiff='no'
33074TIFF_LIBS=''
33075if test "$with_tiff" != 'no'; then
33076    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33077$as_echo "-------------------------------------------------------------" >&6; }
33078    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
33079$as_echo_n "checking for TIFF... " >&6; }
33080    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33081$as_echo "" >&6; }
33082    failed=0
33083    passed=0
33084    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
33085if test "x$ac_cv_header_tiff_h" = xyes; then :
33086  passed=`expr $passed + 1`
33087else
33088  failed=`expr $failed + 1`
33089fi
33090
33091
33092    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
33093if test "x$ac_cv_header_tiffio_h" = xyes; then :
33094  passed=`expr $passed + 1`
33095else
33096  failed=`expr $failed + 1`
33097fi
33098
33099
33100    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
33101$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
33102if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
33103  $as_echo_n "(cached) " >&6
33104else
33105  ac_check_lib_save_LIBS=$LIBS
33106LIBS="-ltiff  $LIBS"
33107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33108/* end confdefs.h.  */
33109
33110/* Override any GCC internal prototype to avoid an error.
33111   Use char because int might match the return type of a GCC
33112   builtin and then its argument prototype would still apply.  */
33113#ifdef __cplusplus
33114extern "C"
33115#endif
33116char TIFFOpen ();
33117int
33118main ()
33119{
33120return TIFFOpen ();
33121  ;
33122  return 0;
33123}
33124_ACEOF
33125if ac_fn_c_try_link "$LINENO"; then :
33126  ac_cv_lib_tiff_TIFFOpen=yes
33127else
33128  ac_cv_lib_tiff_TIFFOpen=no
33129fi
33130rm -f core conftest.err conftest.$ac_objext \
33131    conftest$ac_exeext conftest.$ac_ext
33132LIBS=$ac_check_lib_save_LIBS
33133fi
33134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
33135$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
33136if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
33137  passed=`expr $passed + 1`
33138else
33139  failed=`expr $failed + 1`
33140fi
33141
33142    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
33143$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
33144if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
33145  $as_echo_n "(cached) " >&6
33146else
33147  ac_check_lib_save_LIBS=$LIBS
33148LIBS="-ltiff  $LIBS"
33149cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33150/* end confdefs.h.  */
33151
33152/* Override any GCC internal prototype to avoid an error.
33153   Use char because int might match the return type of a GCC
33154   builtin and then its argument prototype would still apply.  */
33155#ifdef __cplusplus
33156extern "C"
33157#endif
33158char TIFFClientOpen ();
33159int
33160main ()
33161{
33162return TIFFClientOpen ();
33163  ;
33164  return 0;
33165}
33166_ACEOF
33167if ac_fn_c_try_link "$LINENO"; then :
33168  ac_cv_lib_tiff_TIFFClientOpen=yes
33169else
33170  ac_cv_lib_tiff_TIFFClientOpen=no
33171fi
33172rm -f core conftest.err conftest.$ac_objext \
33173    conftest$ac_exeext conftest.$ac_ext
33174LIBS=$ac_check_lib_save_LIBS
33175fi
33176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
33177$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
33178if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
33179  passed=`expr $passed + 1`
33180else
33181  failed=`expr $failed + 1`
33182fi
33183
33184    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
33185$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
33186if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
33187  $as_echo_n "(cached) " >&6
33188else
33189  ac_check_lib_save_LIBS=$LIBS
33190LIBS="-ltiff  $LIBS"
33191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33192/* end confdefs.h.  */
33193
33194/* Override any GCC internal prototype to avoid an error.
33195   Use char because int might match the return type of a GCC
33196   builtin and then its argument prototype would still apply.  */
33197#ifdef __cplusplus
33198extern "C"
33199#endif
33200char TIFFIsByteSwapped ();
33201int
33202main ()
33203{
33204return TIFFIsByteSwapped ();
33205  ;
33206  return 0;
33207}
33208_ACEOF
33209if ac_fn_c_try_link "$LINENO"; then :
33210  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
33211else
33212  ac_cv_lib_tiff_TIFFIsByteSwapped=no
33213fi
33214rm -f core conftest.err conftest.$ac_objext \
33215    conftest$ac_exeext conftest.$ac_ext
33216LIBS=$ac_check_lib_save_LIBS
33217fi
33218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
33219$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
33220if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
33221  passed=`expr $passed + 1`
33222else
33223  failed=`expr $failed + 1`
33224fi
33225
33226    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
33227$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
33228if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
33229  $as_echo_n "(cached) " >&6
33230else
33231  ac_check_lib_save_LIBS=$LIBS
33232LIBS="-ltiff  $LIBS"
33233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33234/* end confdefs.h.  */
33235
33236/* Override any GCC internal prototype to avoid an error.
33237   Use char because int might match the return type of a GCC
33238   builtin and then its argument prototype would still apply.  */
33239#ifdef __cplusplus
33240extern "C"
33241#endif
33242char TIFFReadRGBATile ();
33243int
33244main ()
33245{
33246return TIFFReadRGBATile ();
33247  ;
33248  return 0;
33249}
33250_ACEOF
33251if ac_fn_c_try_link "$LINENO"; then :
33252  ac_cv_lib_tiff_TIFFReadRGBATile=yes
33253else
33254  ac_cv_lib_tiff_TIFFReadRGBATile=no
33255fi
33256rm -f core conftest.err conftest.$ac_objext \
33257    conftest$ac_exeext conftest.$ac_ext
33258LIBS=$ac_check_lib_save_LIBS
33259fi
33260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
33261$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
33262if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
33263  passed=`expr $passed + 1`
33264else
33265  failed=`expr $failed + 1`
33266fi
33267
33268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
33269$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
33270if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
33271  $as_echo_n "(cached) " >&6
33272else
33273  ac_check_lib_save_LIBS=$LIBS
33274LIBS="-ltiff  $LIBS"
33275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33276/* end confdefs.h.  */
33277
33278/* Override any GCC internal prototype to avoid an error.
33279   Use char because int might match the return type of a GCC
33280   builtin and then its argument prototype would still apply.  */
33281#ifdef __cplusplus
33282extern "C"
33283#endif
33284char TIFFReadRGBAStrip ();
33285int
33286main ()
33287{
33288return TIFFReadRGBAStrip ();
33289  ;
33290  return 0;
33291}
33292_ACEOF
33293if ac_fn_c_try_link "$LINENO"; then :
33294  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
33295else
33296  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
33297fi
33298rm -f core conftest.err conftest.$ac_objext \
33299    conftest$ac_exeext conftest.$ac_ext
33300LIBS=$ac_check_lib_save_LIBS
33301fi
33302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
33303$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
33304if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
33305  passed=`expr $passed + 1`
33306else
33307  failed=`expr $failed + 1`
33308fi
33309
33310    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
33311$as_echo_n "checking if TIFF package is complete... " >&6; }
33312    if test $passed -gt 0; then
33313        if test $failed -gt 0; then
33314            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33315$as_echo "no -- some components failed test" >&6; }
33316            have_tiff='no (failed tests)'
33317        else
33318            TIFF_LIBS='-ltiff'
33319            LIBS="$TIFF_LIBS $LIBS"
33320
33321$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
33322
33323            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33324$as_echo "yes" >&6; }
33325            have_tiff='yes'
33326            for ac_header in tiffconf.h
33327do :
33328  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
33329if test "x$ac_cv_header_tiffconf_h" = xyes; then :
33330  cat >>confdefs.h <<_ACEOF
33331#define HAVE_TIFFCONF_H 1
33332_ACEOF
33333
33334fi
33335
33336done
33337
33338            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
33339              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
33340              TIFFSetTagExtender TIFFSetWarningHandlerExt \
33341              TIFFSwabArrayOfTriples
33342do :
33343  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33344ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33345if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33346  cat >>confdefs.h <<_ACEOF
33347#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33348_ACEOF
33349
33350fi
33351done
33352
33353        fi
33354    else
33355        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33356$as_echo "no" >&6; }
33357    fi
33358fi
33359 if test "$have_tiff" = 'yes'; then
33360  TIFF_DELEGATE_TRUE=
33361  TIFF_DELEGATE_FALSE='#'
33362else
33363  TIFF_DELEGATE_TRUE='#'
33364  TIFF_DELEGATE_FALSE=
33365fi
33366
33367
33368
33369#
33370# Set URW Base35 font directory.
33371#
33372
33373# Check whether --with-urw-base35-font-dir was given.
33374if test "${with_urw_base35_font_dir+set}" = set; then :
33375  withval=$with_urw_base35_font_dir; with_urw_base35_font_dir=$withval
33376else
33377  with_urw_base35_font_dir='default'
33378fi
33379
33380
33381if test "$with_urw_base35_font_dir" != 'default'; then
33382    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-urw-base35-font-dir=$with_urw_base35_font_dir "
33383fi
33384
33385
33386#
33387# Check for the WEBP delegate library.
33388#
33389
33390# Check whether --with-webp was given.
33391if test "${with_webp+set}" = set; then :
33392  withval=$with_webp; with_webp=$withval
33393else
33394  with_webp='yes'
33395fi
33396
33397
33398if test "$with_webp" != 'yes'; then
33399    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
33400fi
33401
33402have_webp='no'
33403have_webpmux='no'
33404WEBP_CFLAGS=""
33405WEBP_LIBS=""
33406WEBP_PKG=""
33407WEBPMUX_CFLAGS=""
33408WEBPMUX_LIBS=""
33409WEBPMUX_PKG=""
33410if test "x$with_webp" = "xyes"; then
33411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33412$as_echo "-------------------------------------------------------------" >&6; }
33413
33414pkg_failed=no
33415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebp" >&5
33416$as_echo_n "checking for libwebp... " >&6; }
33417
33418if test -n "$WEBP_CFLAGS"; then
33419    pkg_cv_WEBP_CFLAGS="$WEBP_CFLAGS"
33420 elif test -n "$PKG_CONFIG"; then
33421    if test -n "$PKG_CONFIG" && \
33422    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
33423  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
33424  ac_status=$?
33425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33426  test $ac_status = 0; }; then
33427  pkg_cv_WEBP_CFLAGS=`$PKG_CONFIG --cflags "libwebp" 2>/dev/null`
33428		      test "x$?" != "x0" && pkg_failed=yes
33429else
33430  pkg_failed=yes
33431fi
33432 else
33433    pkg_failed=untried
33434fi
33435if test -n "$WEBP_LIBS"; then
33436    pkg_cv_WEBP_LIBS="$WEBP_LIBS"
33437 elif test -n "$PKG_CONFIG"; then
33438    if test -n "$PKG_CONFIG" && \
33439    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebp\""; } >&5
33440  ($PKG_CONFIG --exists --print-errors "libwebp") 2>&5
33441  ac_status=$?
33442  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33443  test $ac_status = 0; }; then
33444  pkg_cv_WEBP_LIBS=`$PKG_CONFIG --libs "libwebp" 2>/dev/null`
33445		      test "x$?" != "x0" && pkg_failed=yes
33446else
33447  pkg_failed=yes
33448fi
33449 else
33450    pkg_failed=untried
33451fi
33452
33453
33454
33455if test $pkg_failed = yes; then
33456        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33457$as_echo "no" >&6; }
33458
33459if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33460        _pkg_short_errors_supported=yes
33461else
33462        _pkg_short_errors_supported=no
33463fi
33464        if test $_pkg_short_errors_supported = yes; then
33465	        WEBP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebp" 2>&1`
33466        else
33467	        WEBP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebp" 2>&1`
33468        fi
33469	# Put the nasty error message in config.log where it belongs
33470	echo "$WEBP_PKG_ERRORS" >&5
33471
33472	have_webp=no
33473elif test $pkg_failed = untried; then
33474        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33475$as_echo "no" >&6; }
33476	have_webp=no
33477else
33478	WEBP_CFLAGS=$pkg_cv_WEBP_CFLAGS
33479	WEBP_LIBS=$pkg_cv_WEBP_LIBS
33480        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33481$as_echo "yes" >&6; }
33482	have_webp=yes
33483fi
33484
33485pkg_failed=no
33486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwebpmux >= 0.4.4" >&5
33487$as_echo_n "checking for libwebpmux >= 0.4.4... " >&6; }
33488
33489if test -n "$WEBPMUX_CFLAGS"; then
33490    pkg_cv_WEBPMUX_CFLAGS="$WEBPMUX_CFLAGS"
33491 elif test -n "$PKG_CONFIG"; then
33492    if test -n "$PKG_CONFIG" && \
33493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.4.4\""; } >&5
33494  ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.4.4") 2>&5
33495  ac_status=$?
33496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33497  test $ac_status = 0; }; then
33498  pkg_cv_WEBPMUX_CFLAGS=`$PKG_CONFIG --cflags "libwebpmux >= 0.4.4" 2>/dev/null`
33499		      test "x$?" != "x0" && pkg_failed=yes
33500else
33501  pkg_failed=yes
33502fi
33503 else
33504    pkg_failed=untried
33505fi
33506if test -n "$WEBPMUX_LIBS"; then
33507    pkg_cv_WEBPMUX_LIBS="$WEBPMUX_LIBS"
33508 elif test -n "$PKG_CONFIG"; then
33509    if test -n "$PKG_CONFIG" && \
33510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libwebpmux >= 0.4.4\""; } >&5
33511  ($PKG_CONFIG --exists --print-errors "libwebpmux >= 0.4.4") 2>&5
33512  ac_status=$?
33513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33514  test $ac_status = 0; }; then
33515  pkg_cv_WEBPMUX_LIBS=`$PKG_CONFIG --libs "libwebpmux >= 0.4.4" 2>/dev/null`
33516		      test "x$?" != "x0" && pkg_failed=yes
33517else
33518  pkg_failed=yes
33519fi
33520 else
33521    pkg_failed=untried
33522fi
33523
33524
33525
33526if test $pkg_failed = yes; then
33527        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33528$as_echo "no" >&6; }
33529
33530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33531        _pkg_short_errors_supported=yes
33532else
33533        _pkg_short_errors_supported=no
33534fi
33535        if test $_pkg_short_errors_supported = yes; then
33536	        WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libwebpmux >= 0.4.4" 2>&1`
33537        else
33538	        WEBPMUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libwebpmux >= 0.4.4" 2>&1`
33539        fi
33540	# Put the nasty error message in config.log where it belongs
33541	echo "$WEBPMUX_PKG_ERRORS" >&5
33542
33543	have_webpmux=no
33544elif test $pkg_failed = untried; then
33545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33546$as_echo "no" >&6; }
33547	have_webpmux=no
33548else
33549	WEBPMUX_CFLAGS=$pkg_cv_WEBPMUX_CFLAGS
33550	WEBPMUX_LIBS=$pkg_cv_WEBPMUX_LIBS
33551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33552$as_echo "yes" >&6; }
33553	have_webpmux=yes
33554fi
33555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33556$as_echo "" >&6; }
33557fi
33558
33559if test "$have_webp" = 'yes'; then
33560
33561$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
33562
33563  CFLAGS="$WEBP_CFLAGS $CFLAGS"
33564fi
33565
33566if test "$have_webpmux" = 'yes'; then
33567
33568$as_echo "#define WEBPMUX_DELEGATE 1" >>confdefs.h
33569
33570  CFLAGS="$WEBPMUX_CFLAGS $CFLAGS"
33571fi
33572
33573 if test "$have_webp" = 'yes'; then
33574  WEBP_DELEGATE_TRUE=
33575  WEBP_DELEGATE_FALSE='#'
33576else
33577  WEBP_DELEGATE_TRUE='#'
33578  WEBP_DELEGATE_FALSE=
33579fi
33580
33581 if test "$have_webpmux" = 'yes'; then
33582  WEBPMUX_DELEGATE_TRUE=
33583  WEBPMUX_DELEGATE_FALSE='#'
33584else
33585  WEBPMUX_DELEGATE_TRUE='#'
33586  WEBPMUX_DELEGATE_FALSE=
33587fi
33588
33589
33590
33591
33592
33593
33594
33595#
33596# Set Windows font directory.
33597#
33598
33599# Check whether --with-windows-font-dir was given.
33600if test "${with_windows_font_dir+set}" = set; then :
33601  withval=$with_windows_font_dir; with_windows_font_dir=$withval
33602else
33603  with_windows_font_dir='default'
33604fi
33605
33606
33607if test "$with_windows_font_dir" != 'default'; then
33608    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
33609fi
33610
33611
33612#
33613# Check for WMF delegate library.
33614#
33615
33616# Check whether --with-wmf was given.
33617if test "${with_wmf+set}" = set; then :
33618  withval=$with_wmf; with_wmf=$withval
33619else
33620  with_wmf='yes'
33621fi
33622
33623
33624if test "$with_wmf" != 'yes'; then
33625    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
33626fi
33627
33628have_wmf='no'
33629WMF_LIBS=''
33630WMF_CFLAGS=''
33631OLIBS="$LIBS"
33632if test "$with_wmf" != 'no'; then
33633  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
33634$as_echo_n "checking for WMF support ... " >&6; }
33635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33636$as_echo "" >&6; }
33637
33638  have_libwmflite='no'
33639  have_libwmf_ipa_h='no'
33640
33641  ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
33642"
33643if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
33644  have_libwmf_ipa_h='yes'
33645fi
33646
33647
33648  if test "$have_libwmf_ipa_h" = 'yes'; then
33649    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
33650$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
33651if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
33652  $as_echo_n "(cached) " >&6
33653else
33654  ac_check_lib_save_LIBS=$LIBS
33655LIBS="-lwmflite  $LIBS"
33656cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33657/* end confdefs.h.  */
33658
33659/* Override any GCC internal prototype to avoid an error.
33660   Use char because int might match the return type of a GCC
33661   builtin and then its argument prototype would still apply.  */
33662#ifdef __cplusplus
33663extern "C"
33664#endif
33665char wmf_lite_create ();
33666int
33667main ()
33668{
33669return wmf_lite_create ();
33670  ;
33671  return 0;
33672}
33673_ACEOF
33674if ac_fn_c_try_link "$LINENO"; then :
33675  ac_cv_lib_wmflite_wmf_lite_create=yes
33676else
33677  ac_cv_lib_wmflite_wmf_lite_create=no
33678fi
33679rm -f core conftest.err conftest.$ac_objext \
33680    conftest$ac_exeext conftest.$ac_ext
33681LIBS=$ac_check_lib_save_LIBS
33682fi
33683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
33684$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
33685if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
33686  have_libwmflite='yes'
33687fi
33688
33689    if test "$have_libwmflite" = 'yes'; then
33690
33691$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
33692
33693      WMF_LIBS='-lwmflite'
33694      LIBS="$WMF_LIBS $LIBS"
33695      have_wmf='yes'
33696    else
33697      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33698$as_echo "no -- some components failed test" >&6; }
33699      have_wmf='no (failed tests)'
33700      have_wmflite='no (failed tests)'
33701      LIBS="$OLIBS"
33702      WMF_LIBS=''
33703    fi
33704  fi
33705fi
33706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
33707$as_echo_n "checking if WMF package is complete ... " >&6; }
33708if test "$have_wmf" = 'yes'; then
33709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33710$as_echo "yes" >&6; }
33711else
33712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33713$as_echo "no" >&6; }
33714fi
33715 if test "$have_wmf" = 'yes'; then
33716  WMF_DELEGATE_TRUE=
33717  WMF_DELEGATE_FALSE='#'
33718else
33719  WMF_DELEGATE_TRUE='#'
33720  WMF_DELEGATE_FALSE=
33721fi
33722
33723
33724
33725
33726
33727#
33728# Check for XML delegate library.
33729#
33730
33731# Check whether --with-xml was given.
33732if test "${with_xml+set}" = set; then :
33733  withval=$with_xml; with_xml=$withval
33734else
33735  with_xml='yes'
33736fi
33737
33738
33739if test "$with_xml" != 'yes' ; then
33740    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
33741fi
33742
33743have_xml='no'
33744XML_CFLAGS=""
33745XML_LIBS=""
33746XML_PKG=""
33747if test "x$with_xml" = "xyes"; then
33748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33749$as_echo "-------------------------------------------------------------" >&6; }
33750
33751pkg_failed=no
33752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.0.0" >&5
33753$as_echo_n "checking for libxml-2.0 >= 2.0.0... " >&6; }
33754
33755if test -n "$XML_CFLAGS"; then
33756    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
33757 elif test -n "$PKG_CONFIG"; then
33758    if test -n "$PKG_CONFIG" && \
33759    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
33760  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
33761  ac_status=$?
33762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33763  test $ac_status = 0; }; then
33764  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
33765		      test "x$?" != "x0" && pkg_failed=yes
33766else
33767  pkg_failed=yes
33768fi
33769 else
33770    pkg_failed=untried
33771fi
33772if test -n "$XML_LIBS"; then
33773    pkg_cv_XML_LIBS="$XML_LIBS"
33774 elif test -n "$PKG_CONFIG"; then
33775    if test -n "$PKG_CONFIG" && \
33776    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
33777  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
33778  ac_status=$?
33779  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33780  test $ac_status = 0; }; then
33781  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
33782		      test "x$?" != "x0" && pkg_failed=yes
33783else
33784  pkg_failed=yes
33785fi
33786 else
33787    pkg_failed=untried
33788fi
33789
33790
33791
33792if test $pkg_failed = yes; then
33793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33794$as_echo "no" >&6; }
33795
33796if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33797        _pkg_short_errors_supported=yes
33798else
33799        _pkg_short_errors_supported=no
33800fi
33801        if test $_pkg_short_errors_supported = yes; then
33802	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
33803        else
33804	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
33805        fi
33806	# Put the nasty error message in config.log where it belongs
33807	echo "$XML_PKG_ERRORS" >&5
33808
33809	have_xml=no
33810elif test $pkg_failed = untried; then
33811        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33812$as_echo "no" >&6; }
33813	have_xml=no
33814else
33815	XML_CFLAGS=$pkg_cv_XML_CFLAGS
33816	XML_LIBS=$pkg_cv_XML_LIBS
33817        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33818$as_echo "yes" >&6; }
33819	have_xml=yes
33820fi
33821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33822$as_echo "" >&6; }
33823fi
33824
33825if test "$have_xml" = 'yes'; then
33826
33827$as_echo "#define XML_DELEGATE 1" >>confdefs.h
33828
33829  CFLAGS="$XML_CFLAGS $CFLAGS"
33830fi
33831
33832 if test "$have_xml" = 'yes'; then
33833  XML_DELEGATE_TRUE=
33834  XML_DELEGATE_FALSE='#'
33835else
33836  XML_DELEGATE_TRUE='#'
33837  XML_DELEGATE_FALSE=
33838fi
33839
33840
33841
33842
33843
33844# Substitute compiler name to build/link PerlMagick
33845#
33846
33847
33848#
33849# Configure install Paths
33850#
33851
33852# Path to ImageMagick header files
33853INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
33854INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
33855DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
33856case "${build_os}" in
33857  mingw* )
33858    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
33859    ;;
33860esac
33861
33862cat >>confdefs.h <<_ACEOF
33863#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
33864_ACEOF
33865
33866
33867
33868# Path to ImageMagick header files (arch part)
33869INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
33870DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
33871case "${build_os}" in
33872  mingw* )
33873    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
33874    ;;
33875esac
33876
33877cat >>confdefs.h <<_ACEOF
33878#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
33879_ACEOF
33880
33881
33882
33883# Subdirectory under lib to place ImageMagick lib files
33884LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
33885
33886cat >>confdefs.h <<_ACEOF
33887#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
33888_ACEOF
33889
33890
33891# Path to ImageMagick bin directory
33892EXECUTABLE_PATH="${BIN_DIR}"
33893DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
33894case "${build_os}" in
33895  mingw* )
33896    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
33897    ;;
33898esac
33899
33900cat >>confdefs.h <<_ACEOF
33901#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
33902_ACEOF
33903
33904
33905
33906# Path to ImageMagick lib
33907LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
33908DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
33909case "${build_os}" in
33910  mingw* )
33911    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
33912    ;;
33913esac
33914
33915cat >>confdefs.h <<_ACEOF
33916#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
33917_ACEOF
33918
33919
33920
33921#
33922# path to local binaries
33923if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
33924   LIB_BIN_BASEDIRNAME="bin"
33925fi
33926
33927cat >>confdefs.h <<_ACEOF
33928#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
33929_ACEOF
33930
33931
33932
33933if test "x$LIB_BIN_DIR" = "x"; then
33934   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33935fi
33936
33937
33938LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
33939
33940LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
33941
33942
33943#
33944# path to modules lib
33945if test "x$MODULES_BASEDIRNAME" = "x"; then
33946   MODULES_BASEDIRNAME="modules"
33947fi
33948
33949cat >>confdefs.h <<_ACEOF
33950#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
33951_ACEOF
33952
33953
33954
33955if test "x$MODULES_DIRNAME" = "x"; then
33956  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
33957else
33958
33959cat >>confdefs.h <<_ACEOF
33960#define MODULES_DIRNAME "$MODULES_DIRNAME"
33961_ACEOF
33962
33963fi
33964
33965
33966MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
33967
33968MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
33969
33970
33971#
33972# path to coders lib
33973if test "x$CODER_DIRNAME" = "x"; then
33974   CODER_DIRNAME="coders"
33975fi
33976
33977cat >>confdefs.h <<_ACEOF
33978#define CODER_DIRNAME "$CODER_DIRNAME"
33979_ACEOF
33980
33981
33982
33983CODER_RELATIVE_PATH="${CODER_DIRNAME}"
33984CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
33985
33986
33987#
33988# Subdirectory under lib to place ImageMagick filter module files
33989#
33990# path to coders lib
33991if test "x$FILTER_DIRNAME" = "x"; then
33992   FILTER_DIRNAME="filters"
33993fi
33994
33995cat >>confdefs.h <<_ACEOF
33996#define FILTER_DIRNAME "$FILTER_DIRNAME"
33997_ACEOF
33998
33999
34000
34001FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
34002FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
34003
34004
34005#
34006# Path to ImageMagick documentation files
34007DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34008DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
34009DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
34010case "${build_os}" in
34011  mingw* )
34012    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
34013    ;;
34014esac
34015
34016cat >>confdefs.h <<_ACEOF
34017#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
34018_ACEOF
34019
34020
34021
34022#
34023# Enable/Disable documentation
34024# Check whether --enable-docs was given.
34025if test "${enable_docs+set}" = set; then :
34026  enableval=$enable_docs; wantdocs=$enableval
34027else
34028  wantdocs=yes
34029fi
34030
34031 if test "$wantdocs" = "yes"; then
34032  INSTALL_DOC_TRUE=
34033  INSTALL_DOC_FALSE='#'
34034else
34035  INSTALL_DOC_TRUE='#'
34036  INSTALL_DOC_FALSE=
34037fi
34038
34039
34040# Subdirectory to place architecture-dependent configuration files
34041CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34042
34043cat >>confdefs.h <<_ACEOF
34044#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
34045_ACEOF
34046
34047CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
34048DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
34049case "${build_os}" in
34050  mingw* )
34051    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
34052    ;;
34053esac
34054
34055cat >>confdefs.h <<_ACEOF
34056#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
34057_ACEOF
34058
34059
34060
34061# Subdirectory to place architecture-independent configuration files
34062SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34063
34064cat >>confdefs.h <<_ACEOF
34065#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
34066_ACEOF
34067
34068SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
34069DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
34070case "${build_os}" in
34071  mingw* )
34072    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
34073    ;;
34074esac
34075
34076cat >>confdefs.h <<_ACEOF
34077#define SHARE_PATH "$DEFINE_SHARE_PATH"
34078_ACEOF
34079
34080
34081
34082#
34083# Subdirectory to place architecture-dependent configuration files.
34084if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
34085   SHAREARCH_BASEDIRNAME="config"
34086fi
34087
34088cat >>confdefs.h <<_ACEOF
34089#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
34090_ACEOF
34091
34092
34093
34094if test "x$SHAREARCH_DIRNAME" = "x"; then
34095  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34096else
34097
34098cat >>confdefs.h <<_ACEOF
34099#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
34100_ACEOF
34101
34102fi
34103
34104
34105SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
34106
34107SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
34108
34109
34110#
34111# program_transform_name is formed for use in a Makefile, so create a
34112# modified version for use in a shell script.
34113configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
34114
34115# Default delegate definitions
34116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34117$as_echo "-------------------------------------------------------------" >&6; }
34118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
34119$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
34120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34121$as_echo "" >&6; }
34122BPGDecodeDelegateDefault='bpgdec'
34123BPGEncodeDelegateDefault='bpgenc'
34124BlenderDecodeDelegateDefault='blender'
34125BrowseDelegateDefault='xdg-open'
34126DNGDecodeDelegateDefault='ufraw-batch'
34127DOCDecodeDelegateDefault='soffice'
34128GVCDecodeDelegateDefault='dot'
34129DVIDecodeDelegateDefault='dvips'
34130EditorDelegateDefault='xterm'
34131ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
34132DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
34133MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
34134HPGLDecodeDelegateDefault='hp2xx'
34135HTMLDecodeDelegateDefault='html2ps'
34136ILBMDecodeDelegateDefault='ilbmtoppm'
34137ILBMEncodeDelegateDefault='ppmtoilbm'
34138JXRDecodeDelegateDefault='JxrDecApp'
34139JXREncodeDelegateDefault='JxrEncApp'
34140LEPDelegateDefault='lepton'
34141LPDelegateDefault='lp'
34142LPRDelegateDefault='lpr'
34143LaunchDelegateDefault='gimp'
34144MPEGDecodeDelegateDefault='avconv'
34145MPEGEncodeDelegateDefault='avconv'
34146MrSIDDecodeDelegateDefault='mrsidgeodecode'
34147MVDelegateDefault='mv'
34148PCLDelegateDefault='pcl6'
34149if test "$native_win32_build" = 'yes'; then
34150    PSDelegateDefault='gswin32c'
34151elif test "$gslib_framework" = 'yes'; then
34152    PSDelegateDefault='gsc'
34153else
34154    PSDelegateDefault='gs'
34155fi
34156RMDelegateDefault='rm'
34157RSVGDecodeDelegateDefault='rsvg-convert'
34158SVGDecodeDelegateDefault='inkscape'
34159UniconvertorDelegateDefault='uniconvertor'
34160WebPDecodeDelegateDefault='dwebp'
34161WebPEncodeDelegateDefault='cwebp'
34162WWWDecodeDelegateDefault='curl'
34163XPSDelegateDefault='gxps'
34164
34165# Search for delegates
34166# Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
34167set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
34168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34169$as_echo_n "checking for $ac_word... " >&6; }
34170if ${ac_cv_path_BPGDecodeDelegate+:} false; then :
34171  $as_echo_n "(cached) " >&6
34172else
34173  case $BPGDecodeDelegate in
34174  [\\/]* | ?:[\\/]*)
34175  ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
34176  ;;
34177  *)
34178  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34179for as_dir in $PATH
34180do
34181  IFS=$as_save_IFS
34182  test -z "$as_dir" && as_dir=.
34183    for ac_exec_ext in '' $ac_executable_extensions; do
34184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34185    ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34187    break 2
34188  fi
34189done
34190  done
34191IFS=$as_save_IFS
34192
34193  test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
34194  ;;
34195esac
34196fi
34197BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
34198if test -n "$BPGDecodeDelegate"; then
34199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
34200$as_echo "$BPGDecodeDelegate" >&6; }
34201else
34202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203$as_echo "no" >&6; }
34204fi
34205
34206
34207# Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
34208set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
34209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34210$as_echo_n "checking for $ac_word... " >&6; }
34211if ${ac_cv_path_BPGEncodeDelegate+:} false; then :
34212  $as_echo_n "(cached) " >&6
34213else
34214  case $BPGEncodeDelegate in
34215  [\\/]* | ?:[\\/]*)
34216  ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
34217  ;;
34218  *)
34219  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34220for as_dir in $PATH
34221do
34222  IFS=$as_save_IFS
34223  test -z "$as_dir" && as_dir=.
34224    for ac_exec_ext in '' $ac_executable_extensions; do
34225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34226    ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34228    break 2
34229  fi
34230done
34231  done
34232IFS=$as_save_IFS
34233
34234  test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
34235  ;;
34236esac
34237fi
34238BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
34239if test -n "$BPGEncodeDelegate"; then
34240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
34241$as_echo "$BPGEncodeDelegate" >&6; }
34242else
34243  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34244$as_echo "no" >&6; }
34245fi
34246
34247
34248# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
34249set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
34250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34251$as_echo_n "checking for $ac_word... " >&6; }
34252if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
34253  $as_echo_n "(cached) " >&6
34254else
34255  case $BlenderDecodeDelegate in
34256  [\\/]* | ?:[\\/]*)
34257  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
34258  ;;
34259  *)
34260  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34261for as_dir in $PATH
34262do
34263  IFS=$as_save_IFS
34264  test -z "$as_dir" && as_dir=.
34265    for ac_exec_ext in '' $ac_executable_extensions; do
34266  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34267    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34268    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34269    break 2
34270  fi
34271done
34272  done
34273IFS=$as_save_IFS
34274
34275  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
34276  ;;
34277esac
34278fi
34279BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
34280if test -n "$BlenderDecodeDelegate"; then
34281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
34282$as_echo "$BlenderDecodeDelegate" >&6; }
34283else
34284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34285$as_echo "no" >&6; }
34286fi
34287
34288
34289for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
34290do
34291  # Extract the first word of "$ac_prog", so it can be a program name with args.
34292set dummy $ac_prog; ac_word=$2
34293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34294$as_echo_n "checking for $ac_word... " >&6; }
34295if ${ac_cv_path_BrowseDelegate+:} false; then :
34296  $as_echo_n "(cached) " >&6
34297else
34298  case $BrowseDelegate in
34299  [\\/]* | ?:[\\/]*)
34300  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
34301  ;;
34302  *)
34303  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34304for as_dir in $PATH
34305do
34306  IFS=$as_save_IFS
34307  test -z "$as_dir" && as_dir=.
34308    for ac_exec_ext in '' $ac_executable_extensions; do
34309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34310    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
34311    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34312    break 2
34313  fi
34314done
34315  done
34316IFS=$as_save_IFS
34317
34318  ;;
34319esac
34320fi
34321BrowseDelegate=$ac_cv_path_BrowseDelegate
34322if test -n "$BrowseDelegate"; then
34323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
34324$as_echo "$BrowseDelegate" >&6; }
34325else
34326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34327$as_echo "no" >&6; }
34328fi
34329
34330
34331  test -n "$BrowseDelegate" && break
34332done
34333test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
34334
34335# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
34337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34338$as_echo_n "checking for $ac_word... " >&6; }
34339if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
34340  $as_echo_n "(cached) " >&6
34341else
34342  case $DNGDecodeDelegate in
34343  [\\/]* | ?:[\\/]*)
34344  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
34345  ;;
34346  *)
34347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350  IFS=$as_save_IFS
34351  test -z "$as_dir" && as_dir=.
34352    for ac_exec_ext in '' $ac_executable_extensions; do
34353  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34354    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34356    break 2
34357  fi
34358done
34359  done
34360IFS=$as_save_IFS
34361
34362  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
34363  ;;
34364esac
34365fi
34366DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
34367if test -n "$DNGDecodeDelegate"; then
34368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
34369$as_echo "$DNGDecodeDelegate" >&6; }
34370else
34371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372$as_echo "no" >&6; }
34373fi
34374
34375
34376# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
34377set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
34378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34379$as_echo_n "checking for $ac_word... " >&6; }
34380if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
34381  $as_echo_n "(cached) " >&6
34382else
34383  case $DOCDecodeDelegate in
34384  [\\/]* | ?:[\\/]*)
34385  ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
34386  ;;
34387  *)
34388  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391  IFS=$as_save_IFS
34392  test -z "$as_dir" && as_dir=.
34393    for ac_exec_ext in '' $ac_executable_extensions; do
34394  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34395    ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34396    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34397    break 2
34398  fi
34399done
34400  done
34401IFS=$as_save_IFS
34402
34403  test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
34404  ;;
34405esac
34406fi
34407DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
34408if test -n "$DOCDecodeDelegate"; then
34409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
34410$as_echo "$DOCDecodeDelegate" >&6; }
34411else
34412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413$as_echo "no" >&6; }
34414fi
34415
34416
34417# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
34418set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
34419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34420$as_echo_n "checking for $ac_word... " >&6; }
34421if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
34422  $as_echo_n "(cached) " >&6
34423else
34424  case $DVIDecodeDelegate in
34425  [\\/]* | ?:[\\/]*)
34426  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
34427  ;;
34428  *)
34429  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432  IFS=$as_save_IFS
34433  test -z "$as_dir" && as_dir=.
34434    for ac_exec_ext in '' $ac_executable_extensions; do
34435  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34436    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34437    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34438    break 2
34439  fi
34440done
34441  done
34442IFS=$as_save_IFS
34443
34444  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
34445  ;;
34446esac
34447fi
34448DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
34449if test -n "$DVIDecodeDelegate"; then
34450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
34451$as_echo "$DVIDecodeDelegate" >&6; }
34452else
34453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34454$as_echo "no" >&6; }
34455fi
34456
34457
34458# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
34459set dummy "$ConvertDelegateDefault"; ac_word=$2
34460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34461$as_echo_n "checking for $ac_word... " >&6; }
34462if ${ac_cv_path_ConvertDelegate+:} false; then :
34463  $as_echo_n "(cached) " >&6
34464else
34465  case $ConvertDelegate in
34466  [\\/]* | ?:[\\/]*)
34467  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
34468  ;;
34469  *)
34470  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34471for as_dir in $PATH
34472do
34473  IFS=$as_save_IFS
34474  test -z "$as_dir" && as_dir=.
34475    for ac_exec_ext in '' $ac_executable_extensions; do
34476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34477    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
34478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34479    break 2
34480  fi
34481done
34482  done
34483IFS=$as_save_IFS
34484
34485  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
34486  ;;
34487esac
34488fi
34489ConvertDelegate=$ac_cv_path_ConvertDelegate
34490if test -n "$ConvertDelegate"; then
34491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
34492$as_echo "$ConvertDelegate" >&6; }
34493else
34494  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34495$as_echo "no" >&6; }
34496fi
34497
34498
34499# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
34500set dummy "$DisplayDelegateDefault"; ac_word=$2
34501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34502$as_echo_n "checking for $ac_word... " >&6; }
34503if ${ac_cv_path_DisplayDelegate+:} false; then :
34504  $as_echo_n "(cached) " >&6
34505else
34506  case $DisplayDelegate in
34507  [\\/]* | ?:[\\/]*)
34508  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
34509  ;;
34510  *)
34511  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34512for as_dir in $PATH
34513do
34514  IFS=$as_save_IFS
34515  test -z "$as_dir" && as_dir=.
34516    for ac_exec_ext in '' $ac_executable_extensions; do
34517  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34518    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
34519    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34520    break 2
34521  fi
34522done
34523  done
34524IFS=$as_save_IFS
34525
34526  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
34527  ;;
34528esac
34529fi
34530DisplayDelegate=$ac_cv_path_DisplayDelegate
34531if test -n "$DisplayDelegate"; then
34532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
34533$as_echo "$DisplayDelegate" >&6; }
34534else
34535  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34536$as_echo "no" >&6; }
34537fi
34538
34539
34540# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
34541set dummy "$EditorDelegateDefault"; ac_word=$2
34542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34543$as_echo_n "checking for $ac_word... " >&6; }
34544if ${ac_cv_path_EditorDelegate+:} false; then :
34545  $as_echo_n "(cached) " >&6
34546else
34547  case $EditorDelegate in
34548  [\\/]* | ?:[\\/]*)
34549  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
34550  ;;
34551  *)
34552  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555  IFS=$as_save_IFS
34556  test -z "$as_dir" && as_dir=.
34557    for ac_exec_ext in '' $ac_executable_extensions; do
34558  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34559    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
34560    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34561    break 2
34562  fi
34563done
34564  done
34565IFS=$as_save_IFS
34566
34567  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
34568  ;;
34569esac
34570fi
34571EditorDelegate=$ac_cv_path_EditorDelegate
34572if test -n "$EditorDelegate"; then
34573  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
34574$as_echo "$EditorDelegate" >&6; }
34575else
34576  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34577$as_echo "no" >&6; }
34578fi
34579
34580
34581# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
34582set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
34583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34584$as_echo_n "checking for $ac_word... " >&6; }
34585if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
34586  $as_echo_n "(cached) " >&6
34587else
34588  case $GVCDecodeDelegate in
34589  [\\/]* | ?:[\\/]*)
34590  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
34591  ;;
34592  *)
34593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34594for as_dir in $PATH
34595do
34596  IFS=$as_save_IFS
34597  test -z "$as_dir" && as_dir=.
34598    for ac_exec_ext in '' $ac_executable_extensions; do
34599  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34600    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34602    break 2
34603  fi
34604done
34605  done
34606IFS=$as_save_IFS
34607
34608  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
34609  ;;
34610esac
34611fi
34612GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
34613if test -n "$GVCDecodeDelegate"; then
34614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
34615$as_echo "$GVCDecodeDelegate" >&6; }
34616else
34617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618$as_echo "no" >&6; }
34619fi
34620
34621
34622# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
34623set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
34624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34625$as_echo_n "checking for $ac_word... " >&6; }
34626if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
34627  $as_echo_n "(cached) " >&6
34628else
34629  case $HPGLDecodeDelegate in
34630  [\\/]* | ?:[\\/]*)
34631  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
34632  ;;
34633  *)
34634  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637  IFS=$as_save_IFS
34638  test -z "$as_dir" && as_dir=.
34639    for ac_exec_ext in '' $ac_executable_extensions; do
34640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34641    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34643    break 2
34644  fi
34645done
34646  done
34647IFS=$as_save_IFS
34648
34649  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
34650  ;;
34651esac
34652fi
34653HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
34654if test -n "$HPGLDecodeDelegate"; then
34655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
34656$as_echo "$HPGLDecodeDelegate" >&6; }
34657else
34658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34659$as_echo "no" >&6; }
34660fi
34661
34662
34663# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
34664set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
34665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34666$as_echo_n "checking for $ac_word... " >&6; }
34667if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
34668  $as_echo_n "(cached) " >&6
34669else
34670  case $HTMLDecodeDelegate in
34671  [\\/]* | ?:[\\/]*)
34672  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
34673  ;;
34674  *)
34675  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34676for as_dir in $PATH
34677do
34678  IFS=$as_save_IFS
34679  test -z "$as_dir" && as_dir=.
34680    for ac_exec_ext in '' $ac_executable_extensions; do
34681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34682    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34684    break 2
34685  fi
34686done
34687  done
34688IFS=$as_save_IFS
34689
34690  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
34691  ;;
34692esac
34693fi
34694HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
34695if test -n "$HTMLDecodeDelegate"; then
34696  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
34697$as_echo "$HTMLDecodeDelegate" >&6; }
34698else
34699  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34700$as_echo "no" >&6; }
34701fi
34702
34703
34704# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
34705set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
34706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34707$as_echo_n "checking for $ac_word... " >&6; }
34708if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
34709  $as_echo_n "(cached) " >&6
34710else
34711  case $ILBMDecodeDelegate in
34712  [\\/]* | ?:[\\/]*)
34713  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
34714  ;;
34715  *)
34716  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34717for as_dir in $PATH
34718do
34719  IFS=$as_save_IFS
34720  test -z "$as_dir" && as_dir=.
34721    for ac_exec_ext in '' $ac_executable_extensions; do
34722  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34723    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34724    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34725    break 2
34726  fi
34727done
34728  done
34729IFS=$as_save_IFS
34730
34731  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
34732  ;;
34733esac
34734fi
34735ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
34736if test -n "$ILBMDecodeDelegate"; then
34737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
34738$as_echo "$ILBMDecodeDelegate" >&6; }
34739else
34740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34741$as_echo "no" >&6; }
34742fi
34743
34744
34745# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
34746set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
34747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34748$as_echo_n "checking for $ac_word... " >&6; }
34749if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
34750  $as_echo_n "(cached) " >&6
34751else
34752  case $ILBMEncodeDelegate in
34753  [\\/]* | ?:[\\/]*)
34754  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
34755  ;;
34756  *)
34757  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34758for as_dir in $PATH
34759do
34760  IFS=$as_save_IFS
34761  test -z "$as_dir" && as_dir=.
34762    for ac_exec_ext in '' $ac_executable_extensions; do
34763  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34764    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34765    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34766    break 2
34767  fi
34768done
34769  done
34770IFS=$as_save_IFS
34771
34772  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
34773  ;;
34774esac
34775fi
34776ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
34777if test -n "$ILBMEncodeDelegate"; then
34778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
34779$as_echo "$ILBMEncodeDelegate" >&6; }
34780else
34781  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34782$as_echo "no" >&6; }
34783fi
34784
34785
34786# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
34787set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
34788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34789$as_echo_n "checking for $ac_word... " >&6; }
34790if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
34791  $as_echo_n "(cached) " >&6
34792else
34793  case $JXRDecodeDelegate in
34794  [\\/]* | ?:[\\/]*)
34795  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
34796  ;;
34797  *)
34798  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34799for as_dir in $PATH
34800do
34801  IFS=$as_save_IFS
34802  test -z "$as_dir" && as_dir=.
34803    for ac_exec_ext in '' $ac_executable_extensions; do
34804  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34805    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34806    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34807    break 2
34808  fi
34809done
34810  done
34811IFS=$as_save_IFS
34812
34813  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
34814  ;;
34815esac
34816fi
34817JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
34818if test -n "$JXRDecodeDelegate"; then
34819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
34820$as_echo "$JXRDecodeDelegate" >&6; }
34821else
34822  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34823$as_echo "no" >&6; }
34824fi
34825
34826
34827# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
34828set dummy "$JXREncodeDelegateDefault"; ac_word=$2
34829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34830$as_echo_n "checking for $ac_word... " >&6; }
34831if ${ac_cv_path_JXREncodeDelegate+:} false; then :
34832  $as_echo_n "(cached) " >&6
34833else
34834  case $JXREncodeDelegate in
34835  [\\/]* | ?:[\\/]*)
34836  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
34837  ;;
34838  *)
34839  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34840for as_dir in $PATH
34841do
34842  IFS=$as_save_IFS
34843  test -z "$as_dir" && as_dir=.
34844    for ac_exec_ext in '' $ac_executable_extensions; do
34845  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34846    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34847    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34848    break 2
34849  fi
34850done
34851  done
34852IFS=$as_save_IFS
34853
34854  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
34855  ;;
34856esac
34857fi
34858JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
34859if test -n "$JXREncodeDelegate"; then
34860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
34861$as_echo "$JXREncodeDelegate" >&6; }
34862else
34863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34864$as_echo "no" >&6; }
34865fi
34866
34867
34868# Extract the first word of ""$LEPDelegateDefault"", so it can be a program name with args.
34869set dummy "$LEPDelegateDefault"; ac_word=$2
34870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34871$as_echo_n "checking for $ac_word... " >&6; }
34872if ${ac_cv_path_LEPDelegate+:} false; then :
34873  $as_echo_n "(cached) " >&6
34874else
34875  case $LEPDelegate in
34876  [\\/]* | ?:[\\/]*)
34877  ac_cv_path_LEPDelegate="$LEPDelegate" # Let the user override the test with a path.
34878  ;;
34879  *)
34880  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34881for as_dir in $PATH
34882do
34883  IFS=$as_save_IFS
34884  test -z "$as_dir" && as_dir=.
34885    for ac_exec_ext in '' $ac_executable_extensions; do
34886  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34887    ac_cv_path_LEPDelegate="$as_dir/$ac_word$ac_exec_ext"
34888    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34889    break 2
34890  fi
34891done
34892  done
34893IFS=$as_save_IFS
34894
34895  test -z "$ac_cv_path_LEPDelegate" && ac_cv_path_LEPDelegate=""$LEPDelegateDefault""
34896  ;;
34897esac
34898fi
34899LEPDelegate=$ac_cv_path_LEPDelegate
34900if test -n "$LEPDelegate"; then
34901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEPDelegate" >&5
34902$as_echo "$LEPDelegate" >&6; }
34903else
34904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34905$as_echo "no" >&6; }
34906fi
34907
34908
34909# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
34910set dummy "$LPDelegateDefault"; ac_word=$2
34911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34912$as_echo_n "checking for $ac_word... " >&6; }
34913if ${ac_cv_path_LPDelegate+:} false; then :
34914  $as_echo_n "(cached) " >&6
34915else
34916  case $LPDelegate in
34917  [\\/]* | ?:[\\/]*)
34918  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
34919  ;;
34920  *)
34921  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34922for as_dir in $PATH
34923do
34924  IFS=$as_save_IFS
34925  test -z "$as_dir" && as_dir=.
34926    for ac_exec_ext in '' $ac_executable_extensions; do
34927  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34928    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
34929    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34930    break 2
34931  fi
34932done
34933  done
34934IFS=$as_save_IFS
34935
34936  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
34937  ;;
34938esac
34939fi
34940LPDelegate=$ac_cv_path_LPDelegate
34941if test -n "$LPDelegate"; then
34942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
34943$as_echo "$LPDelegate" >&6; }
34944else
34945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34946$as_echo "no" >&6; }
34947fi
34948
34949
34950# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
34951set dummy "$LPRDelegateDefault"; ac_word=$2
34952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34953$as_echo_n "checking for $ac_word... " >&6; }
34954if ${ac_cv_path_LPRDelegate+:} false; then :
34955  $as_echo_n "(cached) " >&6
34956else
34957  case $LPRDelegate in
34958  [\\/]* | ?:[\\/]*)
34959  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
34960  ;;
34961  *)
34962  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34963for as_dir in $PATH
34964do
34965  IFS=$as_save_IFS
34966  test -z "$as_dir" && as_dir=.
34967    for ac_exec_ext in '' $ac_executable_extensions; do
34968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34969    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
34970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34971    break 2
34972  fi
34973done
34974  done
34975IFS=$as_save_IFS
34976
34977  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
34978  ;;
34979esac
34980fi
34981LPRDelegate=$ac_cv_path_LPRDelegate
34982if test -n "$LPRDelegate"; then
34983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
34984$as_echo "$LPRDelegate" >&6; }
34985else
34986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34987$as_echo "no" >&6; }
34988fi
34989
34990
34991# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
34992set dummy "$LaunchDelegateDefault"; ac_word=$2
34993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34994$as_echo_n "checking for $ac_word... " >&6; }
34995if ${ac_cv_path_LaunchDelegate+:} false; then :
34996  $as_echo_n "(cached) " >&6
34997else
34998  case $LaunchDelegate in
34999  [\\/]* | ?:[\\/]*)
35000  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
35001  ;;
35002  *)
35003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35004for as_dir in $PATH
35005do
35006  IFS=$as_save_IFS
35007  test -z "$as_dir" && as_dir=.
35008    for ac_exec_ext in '' $ac_executable_extensions; do
35009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35010    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
35011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35012    break 2
35013  fi
35014done
35015  done
35016IFS=$as_save_IFS
35017
35018  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
35019  ;;
35020esac
35021fi
35022LaunchDelegate=$ac_cv_path_LaunchDelegate
35023if test -n "$LaunchDelegate"; then
35024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
35025$as_echo "$LaunchDelegate" >&6; }
35026else
35027  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35028$as_echo "no" >&6; }
35029fi
35030
35031
35032# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
35033set dummy "$MogrifyDelegateDefault"; ac_word=$2
35034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35035$as_echo_n "checking for $ac_word... " >&6; }
35036if ${ac_cv_path_MogrifyDelegate+:} false; then :
35037  $as_echo_n "(cached) " >&6
35038else
35039  case $MogrifyDelegate in
35040  [\\/]* | ?:[\\/]*)
35041  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
35042  ;;
35043  *)
35044  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35045for as_dir in $PATH
35046do
35047  IFS=$as_save_IFS
35048  test -z "$as_dir" && as_dir=.
35049    for ac_exec_ext in '' $ac_executable_extensions; do
35050  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35051    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
35052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35053    break 2
35054  fi
35055done
35056  done
35057IFS=$as_save_IFS
35058
35059  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
35060  ;;
35061esac
35062fi
35063MogrifyDelegate=$ac_cv_path_MogrifyDelegate
35064if test -n "$MogrifyDelegate"; then
35065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
35066$as_echo "$MogrifyDelegate" >&6; }
35067else
35068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35069$as_echo "no" >&6; }
35070fi
35071
35072
35073# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
35074set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
35075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35076$as_echo_n "checking for $ac_word... " >&6; }
35077if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
35078  $as_echo_n "(cached) " >&6
35079else
35080  case $MPEGDecodeDelegate in
35081  [\\/]* | ?:[\\/]*)
35082  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
35083  ;;
35084  *)
35085  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35086for as_dir in $PATH
35087do
35088  IFS=$as_save_IFS
35089  test -z "$as_dir" && as_dir=.
35090    for ac_exec_ext in '' $ac_executable_extensions; do
35091  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35092    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35093    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35094    break 2
35095  fi
35096done
35097  done
35098IFS=$as_save_IFS
35099
35100  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
35101  ;;
35102esac
35103fi
35104MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
35105if test -n "$MPEGDecodeDelegate"; then
35106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
35107$as_echo "$MPEGDecodeDelegate" >&6; }
35108else
35109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35110$as_echo "no" >&6; }
35111fi
35112
35113
35114if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
35115  MPEGDecodeDelegateDefault='ffmpeg'
35116  # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
35117set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
35118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35119$as_echo_n "checking for $ac_word... " >&6; }
35120if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
35121  $as_echo_n "(cached) " >&6
35122else
35123  case $MPEGDecodeDelegate in
35124  [\\/]* | ?:[\\/]*)
35125  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
35126  ;;
35127  *)
35128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35129for as_dir in $PATH
35130do
35131  IFS=$as_save_IFS
35132  test -z "$as_dir" && as_dir=.
35133    for ac_exec_ext in '' $ac_executable_extensions; do
35134  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35135    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35137    break 2
35138  fi
35139done
35140  done
35141IFS=$as_save_IFS
35142
35143  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
35144  ;;
35145esac
35146fi
35147MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
35148if test -n "$MPEGDecodeDelegate"; then
35149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
35150$as_echo "$MPEGDecodeDelegate" >&6; }
35151else
35152  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35153$as_echo "no" >&6; }
35154fi
35155
35156
35157fi;
35158# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
35159set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
35160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35161$as_echo_n "checking for $ac_word... " >&6; }
35162if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
35163  $as_echo_n "(cached) " >&6
35164else
35165  case $MPEGEncodeDelegate in
35166  [\\/]* | ?:[\\/]*)
35167  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
35168  ;;
35169  *)
35170  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35171for as_dir in $PATH
35172do
35173  IFS=$as_save_IFS
35174  test -z "$as_dir" && as_dir=.
35175    for ac_exec_ext in '' $ac_executable_extensions; do
35176  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35177    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35178    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35179    break 2
35180  fi
35181done
35182  done
35183IFS=$as_save_IFS
35184
35185  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
35186  ;;
35187esac
35188fi
35189MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
35190if test -n "$MPEGEncodeDelegate"; then
35191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
35192$as_echo "$MPEGEncodeDelegate" >&6; }
35193else
35194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35195$as_echo "no" >&6; }
35196fi
35197
35198
35199if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
35200  MPEGEncodeDelegateDefault='ffmpeg'
35201  # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
35202set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
35203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35204$as_echo_n "checking for $ac_word... " >&6; }
35205if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
35206  $as_echo_n "(cached) " >&6
35207else
35208  case $MPEGEncodeDelegate in
35209  [\\/]* | ?:[\\/]*)
35210  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
35211  ;;
35212  *)
35213  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35214for as_dir in $PATH
35215do
35216  IFS=$as_save_IFS
35217  test -z "$as_dir" && as_dir=.
35218    for ac_exec_ext in '' $ac_executable_extensions; do
35219  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35220    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35221    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35222    break 2
35223  fi
35224done
35225  done
35226IFS=$as_save_IFS
35227
35228  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
35229  ;;
35230esac
35231fi
35232MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
35233if test -n "$MPEGEncodeDelegate"; then
35234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
35235$as_echo "$MPEGEncodeDelegate" >&6; }
35236else
35237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35238$as_echo "no" >&6; }
35239fi
35240
35241
35242fi;
35243# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
35244set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
35245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35246$as_echo_n "checking for $ac_word... " >&6; }
35247if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
35248  $as_echo_n "(cached) " >&6
35249else
35250  case $MrSIDDecodeDelegate in
35251  [\\/]* | ?:[\\/]*)
35252  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
35253  ;;
35254  *)
35255  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35256for as_dir in $PATH
35257do
35258  IFS=$as_save_IFS
35259  test -z "$as_dir" && as_dir=.
35260    for ac_exec_ext in '' $ac_executable_extensions; do
35261  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35262    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35263    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35264    break 2
35265  fi
35266done
35267  done
35268IFS=$as_save_IFS
35269
35270  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
35271  ;;
35272esac
35273fi
35274MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
35275if test -n "$MrSIDDecodeDelegate"; then
35276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
35277$as_echo "$MrSIDDecodeDelegate" >&6; }
35278else
35279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35280$as_echo "no" >&6; }
35281fi
35282
35283
35284# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
35285set dummy "$MVDelegateDefault"; ac_word=$2
35286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35287$as_echo_n "checking for $ac_word... " >&6; }
35288if ${ac_cv_path_MVDelegate+:} false; then :
35289  $as_echo_n "(cached) " >&6
35290else
35291  case $MVDelegate in
35292  [\\/]* | ?:[\\/]*)
35293  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
35294  ;;
35295  *)
35296  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35297for as_dir in $PATH
35298do
35299  IFS=$as_save_IFS
35300  test -z "$as_dir" && as_dir=.
35301    for ac_exec_ext in '' $ac_executable_extensions; do
35302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35303    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
35304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35305    break 2
35306  fi
35307done
35308  done
35309IFS=$as_save_IFS
35310
35311  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
35312  ;;
35313esac
35314fi
35315MVDelegate=$ac_cv_path_MVDelegate
35316if test -n "$MVDelegate"; then
35317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
35318$as_echo "$MVDelegate" >&6; }
35319else
35320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35321$as_echo "no" >&6; }
35322fi
35323
35324
35325# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
35326set dummy "$PCLDelegateDefault"; ac_word=$2
35327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35328$as_echo_n "checking for $ac_word... " >&6; }
35329if ${ac_cv_path_PCLDelegate+:} false; then :
35330  $as_echo_n "(cached) " >&6
35331else
35332  case $PCLDelegate in
35333  [\\/]* | ?:[\\/]*)
35334  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
35335  ;;
35336  *)
35337  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35338for as_dir in $PATH
35339do
35340  IFS=$as_save_IFS
35341  test -z "$as_dir" && as_dir=.
35342    for ac_exec_ext in '' $ac_executable_extensions; do
35343  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35344    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
35345    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35346    break 2
35347  fi
35348done
35349  done
35350IFS=$as_save_IFS
35351
35352  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
35353  ;;
35354esac
35355fi
35356PCLDelegate=$ac_cv_path_PCLDelegate
35357if test -n "$PCLDelegate"; then
35358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
35359$as_echo "$PCLDelegate" >&6; }
35360else
35361  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35362$as_echo "no" >&6; }
35363fi
35364
35365
35366for ac_prog in gsx gsc "$PSDelegateDefault"
35367do
35368  # Extract the first word of "$ac_prog", so it can be a program name with args.
35369set dummy $ac_prog; ac_word=$2
35370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35371$as_echo_n "checking for $ac_word... " >&6; }
35372if ${ac_cv_path_PSDelegate+:} false; then :
35373  $as_echo_n "(cached) " >&6
35374else
35375  case $PSDelegate in
35376  [\\/]* | ?:[\\/]*)
35377  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
35378  ;;
35379  *)
35380  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35381for as_dir in $PATH
35382do
35383  IFS=$as_save_IFS
35384  test -z "$as_dir" && as_dir=.
35385    for ac_exec_ext in '' $ac_executable_extensions; do
35386  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35387    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
35388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35389    break 2
35390  fi
35391done
35392  done
35393IFS=$as_save_IFS
35394
35395  ;;
35396esac
35397fi
35398PSDelegate=$ac_cv_path_PSDelegate
35399if test -n "$PSDelegate"; then
35400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
35401$as_echo "$PSDelegate" >&6; }
35402else
35403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35404$as_echo "no" >&6; }
35405fi
35406
35407
35408  test -n "$PSDelegate" && break
35409done
35410test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
35411
35412# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
35413set dummy "$RMDelegateDefault"; ac_word=$2
35414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35415$as_echo_n "checking for $ac_word... " >&6; }
35416if ${ac_cv_path_RMDelegate+:} false; then :
35417  $as_echo_n "(cached) " >&6
35418else
35419  case $RMDelegate in
35420  [\\/]* | ?:[\\/]*)
35421  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
35422  ;;
35423  *)
35424  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35425for as_dir in $PATH
35426do
35427  IFS=$as_save_IFS
35428  test -z "$as_dir" && as_dir=.
35429    for ac_exec_ext in '' $ac_executable_extensions; do
35430  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35431    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
35432    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35433    break 2
35434  fi
35435done
35436  done
35437IFS=$as_save_IFS
35438
35439  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
35440  ;;
35441esac
35442fi
35443RMDelegate=$ac_cv_path_RMDelegate
35444if test -n "$RMDelegate"; then
35445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
35446$as_echo "$RMDelegate" >&6; }
35447else
35448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35449$as_echo "no" >&6; }
35450fi
35451
35452
35453# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
35454set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
35455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35456$as_echo_n "checking for $ac_word... " >&6; }
35457if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
35458  $as_echo_n "(cached) " >&6
35459else
35460  case $RSVGDecodeDelegate in
35461  [\\/]* | ?:[\\/]*)
35462  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
35463  ;;
35464  *)
35465  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35466for as_dir in $PATH
35467do
35468  IFS=$as_save_IFS
35469  test -z "$as_dir" && as_dir=.
35470    for ac_exec_ext in '' $ac_executable_extensions; do
35471  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35472    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35473    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35474    break 2
35475  fi
35476done
35477  done
35478IFS=$as_save_IFS
35479
35480  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
35481  ;;
35482esac
35483fi
35484RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
35485if test -n "$RSVGDecodeDelegate"; then
35486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
35487$as_echo "$RSVGDecodeDelegate" >&6; }
35488else
35489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35490$as_echo "no" >&6; }
35491fi
35492
35493
35494# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
35495set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
35496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35497$as_echo_n "checking for $ac_word... " >&6; }
35498if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
35499  $as_echo_n "(cached) " >&6
35500else
35501  case $SVGDecodeDelegate in
35502  [\\/]* | ?:[\\/]*)
35503  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
35504  ;;
35505  *)
35506  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35507for as_dir in $PATH
35508do
35509  IFS=$as_save_IFS
35510  test -z "$as_dir" && as_dir=.
35511    for ac_exec_ext in '' $ac_executable_extensions; do
35512  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35513    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35514    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35515    break 2
35516  fi
35517done
35518  done
35519IFS=$as_save_IFS
35520
35521  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35522  ;;
35523esac
35524fi
35525SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35526if test -n "$SVGDecodeDelegate"; then
35527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35528$as_echo "$SVGDecodeDelegate" >&6; }
35529else
35530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35531$as_echo "no" >&6; }
35532fi
35533
35534
35535# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35536set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35538$as_echo_n "checking for $ac_word... " >&6; }
35539if ${ac_cv_path_UniconvertorDelegate+:} false; then :
35540  $as_echo_n "(cached) " >&6
35541else
35542  case $UniconvertorDelegate in
35543  [\\/]* | ?:[\\/]*)
35544  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35545  ;;
35546  *)
35547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35548for as_dir in $PATH
35549do
35550  IFS=$as_save_IFS
35551  test -z "$as_dir" && as_dir=.
35552    for ac_exec_ext in '' $ac_executable_extensions; do
35553  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35554    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35555    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35556    break 2
35557  fi
35558done
35559  done
35560IFS=$as_save_IFS
35561
35562  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
35563  ;;
35564esac
35565fi
35566UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
35567if test -n "$UniconvertorDelegate"; then
35568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
35569$as_echo "$UniconvertorDelegate" >&6; }
35570else
35571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35572$as_echo "no" >&6; }
35573fi
35574
35575
35576# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
35577set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
35578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35579$as_echo_n "checking for $ac_word... " >&6; }
35580if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
35581  $as_echo_n "(cached) " >&6
35582else
35583  case $WebPDecodeDelegate in
35584  [\\/]* | ?:[\\/]*)
35585  ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
35586  ;;
35587  *)
35588  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35589for as_dir in $PATH
35590do
35591  IFS=$as_save_IFS
35592  test -z "$as_dir" && as_dir=.
35593    for ac_exec_ext in '' $ac_executable_extensions; do
35594  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35595    ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35596    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35597    break 2
35598  fi
35599done
35600  done
35601IFS=$as_save_IFS
35602
35603  test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
35604  ;;
35605esac
35606fi
35607WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
35608if test -n "$WebPDecodeDelegate"; then
35609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
35610$as_echo "$WebPDecodeDelegate" >&6; }
35611else
35612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35613$as_echo "no" >&6; }
35614fi
35615
35616
35617# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
35618set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
35619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35620$as_echo_n "checking for $ac_word... " >&6; }
35621if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
35622  $as_echo_n "(cached) " >&6
35623else
35624  case $WebPEncodeDelegate in
35625  [\\/]* | ?:[\\/]*)
35626  ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
35627  ;;
35628  *)
35629  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35630for as_dir in $PATH
35631do
35632  IFS=$as_save_IFS
35633  test -z "$as_dir" && as_dir=.
35634    for ac_exec_ext in '' $ac_executable_extensions; do
35635  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35636    ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35638    break 2
35639  fi
35640done
35641  done
35642IFS=$as_save_IFS
35643
35644  test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
35645  ;;
35646esac
35647fi
35648WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
35649if test -n "$WebPEncodeDelegate"; then
35650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
35651$as_echo "$WebPEncodeDelegate" >&6; }
35652else
35653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35654$as_echo "no" >&6; }
35655fi
35656
35657
35658# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
35659set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
35660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35661$as_echo_n "checking for $ac_word... " >&6; }
35662if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
35663  $as_echo_n "(cached) " >&6
35664else
35665  case $WWWDecodeDelegate in
35666  [\\/]* | ?:[\\/]*)
35667  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
35668  ;;
35669  *)
35670  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35671for as_dir in $PATH
35672do
35673  IFS=$as_save_IFS
35674  test -z "$as_dir" && as_dir=.
35675    for ac_exec_ext in '' $ac_executable_extensions; do
35676  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35677    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35678    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35679    break 2
35680  fi
35681done
35682  done
35683IFS=$as_save_IFS
35684
35685  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
35686  ;;
35687esac
35688fi
35689WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
35690if test -n "$WWWDecodeDelegate"; then
35691  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
35692$as_echo "$WWWDecodeDelegate" >&6; }
35693else
35694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35695$as_echo "no" >&6; }
35696fi
35697
35698
35699# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
35700set dummy "$XPSDelegateDefault"; ac_word=$2
35701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35702$as_echo_n "checking for $ac_word... " >&6; }
35703if ${ac_cv_path_XPSDelegate+:} false; then :
35704  $as_echo_n "(cached) " >&6
35705else
35706  case $XPSDelegate in
35707  [\\/]* | ?:[\\/]*)
35708  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
35709  ;;
35710  *)
35711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35712for as_dir in $PATH
35713do
35714  IFS=$as_save_IFS
35715  test -z "$as_dir" && as_dir=.
35716    for ac_exec_ext in '' $ac_executable_extensions; do
35717  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35718    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
35719    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35720    break 2
35721  fi
35722done
35723  done
35724IFS=$as_save_IFS
35725
35726  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
35727  ;;
35728esac
35729fi
35730XPSDelegate=$ac_cv_path_XPSDelegate
35731if test -n "$XPSDelegate"; then
35732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
35733$as_echo "$XPSDelegate" >&6; }
35734else
35735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35736$as_echo "no" >&6; }
35737fi
35738
35739
35740
35741# Prefer lpr to lp; lp needs options tacked on.
35742if test "$LPRDelegate" != no; then
35743    PrintDelegate="$LPRDelegate"
35744else
35745    PrintDelegate="$LPDelegate -c -s"
35746fi
35747
35748
35749# Installed ImageMagick utiltity paths
35750ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
35751DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
35752MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
35753
35754# Set delegate booleans
35755have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
35756have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
35757have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
35758have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
35759have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
35760have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
35761have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
35762have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
35763
35764#
35765# Test for font directories
35766#
35767type_include_files=''
35768
35769# Apple fonts.
35770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
35771$as_echo_n "checking for Apple fonts directory... " >&6; }
35772apple_font_dir=''
35773if test "${with_apple_font_dir}" != 'default'; then
35774  apple_font_dir="${with_apple_font_dir}/"
35775else
35776  for font_dir in '/Library/Fonts/'; do
35777    if test -f "${font_dir}Arial.ttf"; then
35778      apple_font_dir="${font_dir}"
35779      break 1
35780    fi
35781  done
35782fi
35783if test "${apple_font_dir}x" != 'x'; then
35784  type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
35785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
35786$as_echo "$apple_font_dir" >&6; }
35787else
35788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35789$as_echo "not found!" >&6; };
35790fi
35791
35792
35793# Dejavu fonts.
35794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
35795$as_echo_n "checking for Dejavu fonts directory... " >&6; }
35796dejavu_font_dir=''
35797if test "${with_dejavu_font_dir}" != 'default'; then
35798  dejavu_font_dir="${with_dejavu_font_dir}/"
35799else
35800  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
35801    if test -f "${font_dir}DejaVuSerif.ttf"; then
35802      dejavu_font_dir="${font_dir}"
35803      break 1
35804    fi
35805  done
35806fi
35807if test "${dejavu_font_dir}x" != 'x'; then
35808  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
35809  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
35810$as_echo "$dejavu_font_dir" >&6; }
35811else
35812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35813$as_echo "not found!" >&6; };
35814fi
35815
35816
35817# Ghostscript
35818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
35819$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
35820ghostscript_font_dir=''
35821if test "${with_gs_font_dir}" != 'default'; then
35822  ghostscript_font_dir="${with_gs_font_dir}/"
35823else
35824  if test "${native_win32_build}" = 'yes'; then
35825    # Native Windows Build
35826    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
35827      if test -f "${font_dir}a010013l.pfb"; then
35828        ghostscript_font_dir="$font_dir"
35829        break 1
35830      fi
35831    done
35832    if test "${PSDelegate}" != 'gswin32c'; then
35833      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
35834    fi
35835  else
35836    # Linux / Mac OS X / Unix Build
35837    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
35838      if test -f "${font_dir}a010013l.pfb"; then
35839        ghostscript_font_dir="${font_dir}"
35840        break 1
35841      fi
35842    done
35843    if test "${ghostscript_font_dir}x" = 'x'; then
35844      if test "$PSDelegate" != 'gs'; then
35845        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
35846      fi
35847    fi
35848  fi
35849fi
35850if test "${ghostscript_font_dir}x" != 'x'; then
35851  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
35852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
35853$as_echo "$ghostscript_font_dir" >&6; }
35854else
35855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35856$as_echo "not found!" >&6; };
35857fi
35858
35859case "${build_os}" in
35860  mingw* )
35861    PSDelegate=`$WinPathScript "$PSDelegate" 1`
35862    ;;
35863esac
35864
35865# URW-base35 fonts.
35866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for URW-base35 fonts directory" >&5
35867$as_echo_n "checking for URW-base35 fonts directory... " >&6; }
35868urw_base35_font_dir=''
35869if test "${with_urw_base35_font_dir}" != 'default'; then
35870  urw_base35_font_dir="${with_urw_base35_font_dir}/"
35871else
35872  for font_dir in "${prefix}/share/urw-base35/fonts/" '/usr/share/fonts/urw-base35/'; do
35873    if test -f "${font_dir}StandardSymbolsPS.t1"; then
35874      urw_base35_font_dir="${font_dir}"
35875      break 1
35876    fi
35877  done
35878fi
35879if test "${urw_base35_font_dir}x" != 'x'; then
35880  type_include_files="${type_include_files} "'<include file="type-urw-base35.xml" />'
35881  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $urw_base35_font_dir" >&5
35882$as_echo "$urw_base35_font_dir" >&6; }
35883else
35884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35885$as_echo "not found!" >&6; };
35886fi
35887
35888
35889# Windows fonts.
35890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
35891$as_echo_n "checking for Windows fonts directory... " >&6; }
35892windows_font_dir=''
35893if test "${with_windows_font_dir}" != 'default'; then
35894  windows_font_dir="${with_windows_font_dir}/"
35895else
35896  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/' '/usr/share/fonts/microsoft/' '/usr/share/fonts/truetype/msttcorefonts/'; do
35897    if test -f "${font_dir}arial.ttf"; then
35898      windows_font_dir="${font_dir}"
35899      break 1
35900    fi
35901  done
35902fi
35903if test "${windows_font_dir}x" != 'x'; then
35904  type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
35905  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
35906$as_echo "$windows_font_dir" >&6; }
35907else
35908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
35909$as_echo "not found!" >&6; };
35910fi
35911
35912
35913
35914
35915#
35916# Handle case where user doesn't want frozen paths
35917#
35918if test "$with_frozenpaths" != 'yes'; then
35919  # Re-set delegate definitions to default (no paths)
35920  BPGDecodeDelegate="$BPGDecodeDelegateDefault"
35921  BPGEncodeDelegate="$BPGEncodeDelegateDefault"
35922  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
35923  BrowseDelegate="$BrowseDelegateDefault"
35924  ConvertDelegate="$ConvertDelegateDefault"
35925  DisplayDelegate="$DisplayDelegateDefault"
35926  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
35927  DOCDecodeDelegate="$DOCDecodeDelegateDefault"
35928  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
35929  EditorDelegate="$EditorDelegateDefault"
35930  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
35931  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
35932  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
35933  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
35934  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
35935  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
35936  JXREncodeDelegate="$JXREncodeDelegateDefault"
35937  LEPDelegate="$LEPDelegateDefault"
35938  LPDelegate="$LPDelegateDefault"
35939  LaunchDelegate="$LaunchDelegateDefault"
35940  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
35941  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
35942  MogrifyDelegate="$MogrifyDelegateDefault"
35943  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
35944  PCLDelegate="$PCLDelegateDefault"
35945  PSDelegate="$PSDelegateDefault"
35946  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
35947  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
35948  ShowImageDelegate="$ShowImageDelegateDefault"
35949  UniconvertorDelegate="$UniconvertorDelegateDefault"
35950  WebPDecodeDelegate="$WebPDecodeDelegateDefault"
35951  WebPEncodeDelegate="$WebPEncodeDelegateDefault"
35952  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
35953  XPSDelegate="$XPSDelegateDefault"
35954fi
35955
35956# Delegate substitutions
35957
35958
35959
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977
35978
35979
35980
35981
35982
35983
35984
35985
35986
35987#
35988# RPM support.
35989#
35990RPM=''
35991for ac_prog in gnutar gtar tar
35992do
35993  # Extract the first word of "$ac_prog", so it can be a program name with args.
35994set dummy $ac_prog; ac_word=$2
35995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35996$as_echo_n "checking for $ac_word... " >&6; }
35997if ${ac_cv_prog_TAR+:} false; then :
35998  $as_echo_n "(cached) " >&6
35999else
36000  if test -n "$TAR"; then
36001  ac_cv_prog_TAR="$TAR" # Let the user override the test.
36002else
36003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36004for as_dir in $PATH
36005do
36006  IFS=$as_save_IFS
36007  test -z "$as_dir" && as_dir=.
36008    for ac_exec_ext in '' $ac_executable_extensions; do
36009  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36010    ac_cv_prog_TAR="$ac_prog"
36011    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36012    break 2
36013  fi
36014done
36015  done
36016IFS=$as_save_IFS
36017
36018fi
36019fi
36020TAR=$ac_cv_prog_TAR
36021if test -n "$TAR"; then
36022  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
36023$as_echo "$TAR" >&6; }
36024else
36025  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36026$as_echo "no" >&6; }
36027fi
36028
36029
36030  test -n "$TAR" && break
36031done
36032
36033for ac_prog in perl
36034do
36035  # Extract the first word of "$ac_prog", so it can be a program name with args.
36036set dummy $ac_prog; ac_word=$2
36037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36038$as_echo_n "checking for $ac_word... " >&6; }
36039if ${ac_cv_prog_PERL+:} false; then :
36040  $as_echo_n "(cached) " >&6
36041else
36042  if test -n "$PERL"; then
36043  ac_cv_prog_PERL="$PERL" # Let the user override the test.
36044else
36045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36046for as_dir in $PATH
36047do
36048  IFS=$as_save_IFS
36049  test -z "$as_dir" && as_dir=.
36050    for ac_exec_ext in '' $ac_executable_extensions; do
36051  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36052    ac_cv_prog_PERL="$ac_prog"
36053    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36054    break 2
36055  fi
36056done
36057  done
36058IFS=$as_save_IFS
36059
36060fi
36061fi
36062PERL=$ac_cv_prog_PERL
36063if test -n "$PERL"; then
36064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36065$as_echo "$PERL" >&6; }
36066else
36067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36068$as_echo "no" >&6; }
36069fi
36070
36071
36072  test -n "$PERL" && break
36073done
36074
36075for ac_prog in rpmbuild rpm
36076do
36077  # Extract the first word of "$ac_prog", so it can be a program name with args.
36078set dummy $ac_prog; ac_word=$2
36079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36080$as_echo_n "checking for $ac_word... " >&6; }
36081if ${ac_cv_prog_RPM+:} false; then :
36082  $as_echo_n "(cached) " >&6
36083else
36084  if test -n "$RPM"; then
36085  ac_cv_prog_RPM="$RPM" # Let the user override the test.
36086else
36087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36088for as_dir in $PATH
36089do
36090  IFS=$as_save_IFS
36091  test -z "$as_dir" && as_dir=.
36092    for ac_exec_ext in '' $ac_executable_extensions; do
36093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36094    ac_cv_prog_RPM="$ac_prog"
36095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36096    break 2
36097  fi
36098done
36099  done
36100IFS=$as_save_IFS
36101
36102fi
36103fi
36104RPM=$ac_cv_prog_RPM
36105if test -n "$RPM"; then
36106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
36107$as_echo "$RPM" >&6; }
36108else
36109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36110$as_echo "no" >&6; }
36111fi
36112
36113
36114  test -n "$RPM" && break
36115done
36116
36117
36118ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
36119
36120
36121AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
36122
36123
36124AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
36125
36126
36127AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
36128
36129
36130 if test "x$RPM" != "x" ; then
36131  RPM_DELEGATE_TRUE=
36132  RPM_DELEGATE_FALSE='#'
36133else
36134  RPM_DELEGATE_TRUE='#'
36135  RPM_DELEGATE_FALSE=
36136fi
36137
36138
36139#
36140# 7ZIP support (http://p7zip.sourceforge.net/)
36141#
36142P7ZIP=''
36143for ac_prog in 7za
36144do
36145  # Extract the first word of "$ac_prog", so it can be a program name with args.
36146set dummy $ac_prog; ac_word=$2
36147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36148$as_echo_n "checking for $ac_word... " >&6; }
36149if ${ac_cv_prog_P7ZIP+:} false; then :
36150  $as_echo_n "(cached) " >&6
36151else
36152  if test -n "$P7ZIP"; then
36153  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
36154else
36155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36156for as_dir in $PATH
36157do
36158  IFS=$as_save_IFS
36159  test -z "$as_dir" && as_dir=.
36160    for ac_exec_ext in '' $ac_executable_extensions; do
36161  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36162    ac_cv_prog_P7ZIP="$ac_prog"
36163    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36164    break 2
36165  fi
36166done
36167  done
36168IFS=$as_save_IFS
36169
36170fi
36171fi
36172P7ZIP=$ac_cv_prog_P7ZIP
36173if test -n "$P7ZIP"; then
36174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
36175$as_echo "$P7ZIP" >&6; }
36176else
36177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36178$as_echo "no" >&6; }
36179fi
36180
36181
36182  test -n "$P7ZIP" && break
36183done
36184
36185
36186 if test "x$P7ZIP" != "x" ; then
36187  P7ZIP_DELEGATE_TRUE=
36188  P7ZIP_DELEGATE_FALSE='#'
36189else
36190  P7ZIP_DELEGATE_TRUE='#'
36191  P7ZIP_DELEGATE_FALSE=
36192fi
36193
36194
36195#
36196# ZIP support (http://www.info-zip.org/Zip.html)
36197#
36198ZIP=''
36199for ac_prog in zip
36200do
36201  # Extract the first word of "$ac_prog", so it can be a program name with args.
36202set dummy $ac_prog; ac_word=$2
36203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36204$as_echo_n "checking for $ac_word... " >&6; }
36205if ${ac_cv_prog_ZIP+:} false; then :
36206  $as_echo_n "(cached) " >&6
36207else
36208  if test -n "$ZIP"; then
36209  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
36210else
36211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36212for as_dir in $PATH
36213do
36214  IFS=$as_save_IFS
36215  test -z "$as_dir" && as_dir=.
36216    for ac_exec_ext in '' $ac_executable_extensions; do
36217  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36218    ac_cv_prog_ZIP="$ac_prog"
36219    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36220    break 2
36221  fi
36222done
36223  done
36224IFS=$as_save_IFS
36225
36226fi
36227fi
36228ZIP=$ac_cv_prog_ZIP
36229if test -n "$ZIP"; then
36230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
36231$as_echo "$ZIP" >&6; }
36232else
36233  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36234$as_echo "no" >&6; }
36235fi
36236
36237
36238  test -n "$ZIP" && break
36239done
36240
36241
36242 if test "x$ZIP" != "x" ; then
36243  ZIP_DELEGATE_TRUE=
36244  ZIP_DELEGATE_FALSE='#'
36245else
36246  ZIP_DELEGATE_TRUE='#'
36247  ZIP_DELEGATE_FALSE=
36248fi
36249
36250
36251#
36252# GhostPCL related configuration.
36253#
36254PCLColorDevice=ppmraw
36255PCLCMYKDevice=pamcmyk32
36256PCLMonoDevice=pbmraw
36257if test -z "$PCLVersion"; then
36258    PCLVersion='unknown'
36259fi
36260if test $have_pcl = 'yes'; then
36261    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36262$as_echo "-------------------------------------------------------------" >&6; }
36263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
36264$as_echo_n "checking for PCL... " >&6; }
36265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36266$as_echo "" >&6; }
36267    # PCLColorDevice
36268    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
36269$as_echo_n "checking for pcl color device... " >&6; }
36270    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36271        :
36272    else
36273        PCLColorDevice=ppmraw
36274    fi
36275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
36276$as_echo "$PCLColorDevice" >&6; }
36277
36278    # PCLCMYKDevice
36279    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
36280$as_echo_n "checking for pcl CMYK device... " >&6; }
36281    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36282        :
36283    else
36284        PCLCMYKDevice=$PCLColorDevice
36285    fi
36286    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
36287$as_echo "$PCLCMYKDevice" >&6; }
36288
36289    # PCLMonoDevice
36290    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
36291$as_echo_n "checking for pcl mono device... " >&6; }
36292    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36293        :
36294    else
36295        PCLMonoDevice=$PCLColorDevice
36296    fi
36297    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
36298$as_echo "$PCLMonoDevice" >&6; }
36299fi
36300
36301
36302
36303
36304
36305
36306#
36307# GhostXPS related configuration.
36308#
36309XPSColorDevice=ppmraw
36310XPSCMYKDevice=bmpsep8
36311XPSMonoDevice=pbmraw
36312if test -z "$XPSVersion"; then
36313    XPSVersion='unknown'
36314fi
36315if test $have_xps = 'yes'; then
36316    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36317$as_echo "-------------------------------------------------------------" >&6; }
36318    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
36319$as_echo_n "checking for XPS... " >&6; }
36320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36321$as_echo "" >&6; }
36322    # XPSColorDevice
36323    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
36324$as_echo_n "checking for xps color device... " >&6; }
36325    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36326        :
36327    else
36328        XPSColorDevice=ppmraw
36329    fi
36330    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
36331$as_echo "$XPSColorDevice" >&6; }
36332
36333    # XPSCMYKDevice
36334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
36335$as_echo_n "checking for xps CMYK device... " >&6; }
36336    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36337        :
36338    else
36339        XPSCMYKDevice=$XPSColorDevice
36340    fi
36341    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
36342$as_echo "$XPSCMYKDevice" >&6; }
36343
36344    # XPSMonoDevice
36345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
36346$as_echo_n "checking for xps mono device... " >&6; }
36347    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36348        :
36349    else
36350        XPSMonoDevice=$XPSColorDevice
36351    fi
36352    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
36353$as_echo "$XPSMonoDevice" >&6; }
36354fi
36355
36356
36357
36358
36359
36360
36361#
36362# Ghostscript related configuration.
36363#
36364GSAlphaDevice=pngalpha
36365GSColorDevice=pnmraw
36366GSCMYKDevice=pamcmyk32
36367GSMonoDevice=pbmraw
36368GSPDFDevice=pdfwrite
36369GSPSDevice=ps2write
36370GSEPSDevice=eps2write
36371GSVersion='unknown'
36372if test $have_gs = 'yes'; then
36373    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36374$as_echo "-------------------------------------------------------------" >&6; }
36375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
36376$as_echo_n "checking for Ghostscript... " >&6; }
36377    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36378$as_echo "" >&6; }
36379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
36380$as_echo_n "checking for Ghostscript version... " >&6; }
36381    if GSVersion=`$PSDelegate --version`; then
36382        :
36383    else
36384        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36385    fi
36386    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36387$as_echo "$GSVersion" >&6; }
36388
36389    # GSColorDevice
36390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
36391$as_echo_n "checking for gs color device... " >&6; }
36392    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36393        :
36394    else
36395        GSColorDevice=ppmraw
36396    fi
36397    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36398$as_echo "$GSColorDevice" >&6; }
36399
36400    # GSAlphaDevice
36401    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
36402$as_echo_n "checking for gs alpha device... " >&6; }
36403    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36404        :
36405    else
36406        GSAlphaDevice=$GSColorDevice
36407    fi
36408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36409$as_echo "$GSAlphaDevice" >&6; }
36410
36411    # GSCMYKDevice
36412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
36413$as_echo_n "checking for gs CMYK device... " >&6; }
36414    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36415        :
36416    else
36417        GSCMYKDevice=pam
36418    fi
36419    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36420$as_echo "$GSCMYKDevice" >&6; }
36421
36422    # GSMonoDevice
36423    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
36424$as_echo_n "checking for gs mono device... " >&6; }
36425    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36426        :
36427    else
36428        GSMonoDevice=$GSColorDevice
36429    fi
36430    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36431$as_echo "$GSMonoDevice" >&6; }
36432
36433    # GSPDFDevice
36434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
36435$as_echo_n "checking for gs PDF writing device... " >&6; }
36436    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36437        :
36438    else
36439        GSPDFDevice=nodevice
36440    fi
36441    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
36442$as_echo "$GSPDFDevice" >&6; }
36443
36444    # GSPSDevice
36445    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
36446$as_echo_n "checking for gs PS writing device... " >&6; }
36447    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36448        :
36449    else
36450        GSPSDevice=pswrite
36451    fi
36452    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36453$as_echo "$GSPSDevice" >&6; }
36454
36455    # GSEPSDevice
36456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
36457$as_echo_n "checking for gs EPS writing device... " >&6; }
36458    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36459        :
36460    else
36461        GSEPSDevice=epswrite
36462    fi
36463    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36464$as_echo "$GSEPSDevice" >&6; }
36465fi
36466
36467
36468
36469
36470
36471
36472
36473
36474
36475
36476#
36477# PerlMagick-related configuration
36478#
36479
36480# Look for PERL if PerlMagick requested
36481# If name/path of desired PERL interpreter is specified, look for that one first
36482have_perl='no'
36483if test "$with_perl" != 'no'; then
36484    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36485$as_echo "-------------------------------------------------------------" >&6; }
36486    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
36487$as_echo_n "checking for Perl... " >&6; }
36488    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36489$as_echo "" >&6; }
36490    if test "$with_perl" != 'yes'; then
36491        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
36492$as_echo_n "checking for perl... " >&6; }
36493if ${ac_cv_path_PERL+:} false; then :
36494  $as_echo_n "(cached) " >&6
36495else
36496  ac_cv_path_PERL="$with_perl"
36497fi
36498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
36499$as_echo "$ac_cv_path_PERL" >&6; };
36500        PERL=$ac_cv_path_PERL
36501                have_perl="$ac_cv_path_PERL"
36502    else
36503        for ac_prog in perl perl5
36504do
36505  # Extract the first word of "$ac_prog", so it can be a program name with args.
36506set dummy $ac_prog; ac_word=$2
36507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36508$as_echo_n "checking for $ac_word... " >&6; }
36509if ${ac_cv_path_PERL+:} false; then :
36510  $as_echo_n "(cached) " >&6
36511else
36512  case $PERL in
36513  [\\/]* | ?:[\\/]*)
36514  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36515  ;;
36516  *)
36517  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36518for as_dir in $PATH
36519do
36520  IFS=$as_save_IFS
36521  test -z "$as_dir" && as_dir=.
36522    for ac_exec_ext in '' $ac_executable_extensions; do
36523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36524    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36526    break 2
36527  fi
36528done
36529  done
36530IFS=$as_save_IFS
36531
36532  ;;
36533esac
36534fi
36535PERL=$ac_cv_path_PERL
36536if test -n "$PERL"; then
36537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36538$as_echo "$PERL" >&6; }
36539else
36540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36541$as_echo "no" >&6; }
36542fi
36543
36544
36545  test -n "$PERL" && break
36546done
36547        if test "$ac_cv_path_PERL"; then
36548            have_perl="$ac_cv_path_PERL"
36549        fi
36550    fi
36551fi
36552
36553if test "$with_perl" != 'yes' ; then
36554    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36555fi
36556
36557PERL_SUPPORTS_DESTDIR='no'
36558
36559with_perl_static='no'
36560with_perl_dynamic='no'
36561if test "$have_perl" != 'no'; then
36562    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36563        with_perl_static='yes'
36564    fi
36565    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36566        with_perl_dynamic='yes'
36567    fi
36568    # Is PERL's MakeMaker new enough to support DESTDIR?
36569
36570
36571
36572
36573    if test -n "$PERL"; then :
36574
36575        ax_perl_version="5.8.1"
36576
36577        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36578$as_echo_n "checking for perl version... " >&6; }
36579
36580        perl_version=`$PERL --version 2>&1 \
36581          | $SED -n -e '/This is perl/b inspect
36582b
36583: inspect
36584s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
36585
36586        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
36587$as_echo "$perl_version" >&6; }
36588
36589	PERL_VERSION=$perl_version
36590
36591
36592
36593
36594
36595  # Used to indicate true or false condition
36596  ax_compare_version=false
36597
36598  # Convert the two version strings to be compared into a format that
36599  # allows a simple string comparison.  The end result is that a version
36600  # string of the form 1.12.5-r617 will be converted to the form
36601  # 0001001200050617.  In other words, each number is zero padded to four
36602  # digits, and non digits are removed.
36603
36604  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36605                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36606                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36607                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36608                     -e 's/[^0-9]//g'`
36609
36610
36611  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
36612                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
36613                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
36614                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
36615                     -e 's/[^0-9]//g'`
36616
36617
36618    ax_compare_version=`echo "x$ax_compare_version_A
36619x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
36620
36621
36622
36623    if test "$ax_compare_version" = "true" ; then
36624
36625	    :
36626            PERL_SUPPORTS_DESTDIR='yes'
36627
36628    else
36629	    :
36630            PERL_SUPPORTS_DESTDIR='no'
36631
36632  fi
36633
36634
36635else
36636
36637        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
36638$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
36639        PERL_SUPPORTS_DESTDIR='no'
36640
36641fi
36642
36643fi
36644 if test "$have_perl" != 'no'; then
36645  WITH_PERL_TRUE=
36646  WITH_PERL_FALSE='#'
36647else
36648  WITH_PERL_TRUE='#'
36649  WITH_PERL_FALSE=
36650fi
36651
36652 if test $with_perl_static = 'yes'; then
36653  WITH_PERL_STATIC_TRUE=
36654  WITH_PERL_STATIC_FALSE='#'
36655else
36656  WITH_PERL_STATIC_TRUE='#'
36657  WITH_PERL_STATIC_FALSE=
36658fi
36659
36660 if test $with_perl_dynamic = 'yes'; then
36661  WITH_PERL_DYNAMIC_TRUE=
36662  WITH_PERL_DYNAMIC_FALSE='#'
36663else
36664  WITH_PERL_DYNAMIC_TRUE='#'
36665  WITH_PERL_DYNAMIC_FALSE=
36666fi
36667
36668
36669
36670# Determine path to pick up MagickCore library from for use with building PerlMagick
36671MAGICKCORE_PATH="${LIB_DIR}"
36672if test $with_perl_static = 'yes'; then
36673    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
36674    libtool_objdir=$objdir
36675
36676    # Linker search path to library, followed by -lMagickCore
36677    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
36678fi
36679
36680
36681# Create a simple string containing format names for all delegate libraries.
36682MAGICK_DELEGATES=''
36683if test "$have_autotrace"  = 'yes' ; then
36684   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
36685fi
36686if test "$have_bzlib"  = 'yes' ; then
36687   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
36688fi
36689if test "$have_dps"    = 'yes' ; then
36690   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
36691fi
36692if test "$have_djvu"    = 'yes' ; then
36693   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
36694fi
36695if test "$have_avconv"   = 'yes' ; then
36696   MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
36697fi
36698if test "$have_fftw"    = 'yes' ; then
36699   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
36700fi
36701if test "$have_flif"    = 'yes' ; then
36702   MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
36703fi
36704if test "$have_fpx"    = 'yes' ; then
36705   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
36706fi
36707if test "$have_fontconfig"    = 'yes' ; then
36708   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
36709fi
36710if test "$have_freetype"    = 'yes' ; then
36711   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
36712fi
36713if test "$have_gslib"    = 'yes' ; then
36714   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
36715fi
36716if test "$have_heic"    = 'yes' ; then
36717   MAGICK_DELEGATES="$MAGICK_DELEGATES heic"
36718fi
36719if test "$have_jbig"    = 'yes' ; then
36720   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
36721fi
36722if test "$have_png$have_jpeg" = 'yesyes' ; then
36723   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
36724fi
36725if test "$have_jpeg"   = 'yes' ; then
36726   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
36727fi
36728if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
36729   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
36730fi
36731if test "$have_lqr"    = 'yes' ; then
36732   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
36733fi
36734if test "$have_lzma"    = 'yes' ; then
36735   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
36736fi
36737if test "$have_openexr"    = 'yes' ; then
36738   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
36739fi
36740if test "$have_openjp2"    = 'yes' ; then
36741   MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
36742fi
36743if test "$have_pango"    = 'yes' ; then
36744   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
36745fi
36746if test "$have_png"    = 'yes' ; then
36747   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
36748fi
36749have_ps='no'
36750if test "$have_dps"    = 'yes' || \
36751   test "$have_gs" = 'yes' || \
36752   test "${native_win32_build}" = 'yes' ; then
36753   have_ps='yes'
36754fi
36755if test "$have_ps"     = 'yes' ; then
36756   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
36757fi
36758if test "$have_raw"    = 'yes' ; then
36759   MAGICK_DELEGATES="$MAGICK_DELEGATES raw"
36760fi
36761if test "$have_raqm"    = 'yes' ; then
36762   MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
36763fi
36764if test "$have_ra_ppm" = 'yes' ; then
36765   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
36766fi
36767if test "$have_rsvg"   = 'yes' ; then
36768   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
36769fi
36770if test "$have_tiff"   = 'yes' ; then
36771   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
36772fi
36773if test "$have_ttf"    = 'yes' ; then
36774   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
36775fi
36776if test "$have_webp"    = 'yes' ; then
36777   MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
36778fi
36779if test "$have_wmf"    = 'yes' ; then
36780   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
36781fi
36782if test "$have_x"      = 'yes' ; then
36783   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
36784fi
36785if test "$have_xml"      = 'yes' ; then
36786   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
36787fi
36788if test "$have_zlib"   = 'yes' ; then
36789   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
36790fi
36791if test "$have_zstd"   = 'yes' ; then
36792   MAGICK_DELEGATES="$MAGICK_DELEGATES zstd"
36793fi
36794
36795# Remove extraneous spaces from output variables (asthetic)
36796MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
36797MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
36798
36799
36800
36801#
36802# Handle special compiler flags
36803#
36804
36805# Add '-p' if prof source profiling support enabled
36806if test "$enable_prof" = 'yes'; then
36807    CFLAGS="-p $CFLAGS"
36808    CXXFLAGS="-p $CXXFLAGS"
36809    LDFLAGS="-p $LDFLAGS"
36810fi
36811
36812# Add '-pg' if gprof source profiling support enabled
36813if test "$enable_gprof" = 'yes'; then
36814    CFLAGS="-pg $CFLAGS"
36815    CXXFLAGS="-pg $CXXFLAGS"
36816    LDFLAGS="-pg $LDFLAGS"
36817fi
36818
36819# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
36820# This is a gcc-specific feature
36821if test "$enable_gcov" = 'yes'; then
36822    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
36823$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
36824if ${ac_cv_lib_gcov__gcov_init+:} false; then :
36825  $as_echo_n "(cached) " >&6
36826else
36827  ac_check_lib_save_LIBS=$LIBS
36828LIBS="-lgcov  $LIBS"
36829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36830/* end confdefs.h.  */
36831
36832/* Override any GCC internal prototype to avoid an error.
36833   Use char because int might match the return type of a GCC
36834   builtin and then its argument prototype would still apply.  */
36835#ifdef __cplusplus
36836extern "C"
36837#endif
36838char _gcov_init ();
36839int
36840main ()
36841{
36842return _gcov_init ();
36843  ;
36844  return 0;
36845}
36846_ACEOF
36847if ac_fn_c_try_link "$LINENO"; then :
36848  ac_cv_lib_gcov__gcov_init=yes
36849else
36850  ac_cv_lib_gcov__gcov_init=no
36851fi
36852rm -f core conftest.err conftest.$ac_objext \
36853    conftest$ac_exeext conftest.$ac_ext
36854LIBS=$ac_check_lib_save_LIBS
36855fi
36856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
36857$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
36858if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
36859  cat >>confdefs.h <<_ACEOF
36860#define HAVE_LIBGCOV 1
36861_ACEOF
36862
36863  LIBS="-lgcov $LIBS"
36864
36865fi
36866
36867    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
36868$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
36869if ${ac_cv_lib_gcov___gcov_init+:} false; then :
36870  $as_echo_n "(cached) " >&6
36871else
36872  ac_check_lib_save_LIBS=$LIBS
36873LIBS="-lgcov  $LIBS"
36874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36875/* end confdefs.h.  */
36876
36877/* Override any GCC internal prototype to avoid an error.
36878   Use char because int might match the return type of a GCC
36879   builtin and then its argument prototype would still apply.  */
36880#ifdef __cplusplus
36881extern "C"
36882#endif
36883char __gcov_init ();
36884int
36885main ()
36886{
36887return __gcov_init ();
36888  ;
36889  return 0;
36890}
36891_ACEOF
36892if ac_fn_c_try_link "$LINENO"; then :
36893  ac_cv_lib_gcov___gcov_init=yes
36894else
36895  ac_cv_lib_gcov___gcov_init=no
36896fi
36897rm -f core conftest.err conftest.$ac_objext \
36898    conftest$ac_exeext conftest.$ac_ext
36899LIBS=$ac_check_lib_save_LIBS
36900fi
36901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
36902$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
36903if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
36904  cat >>confdefs.h <<_ACEOF
36905#define HAVE_LIBGCOV 1
36906_ACEOF
36907
36908  LIBS="-lgcov $LIBS"
36909
36910fi
36911
36912    case "$target_os" in
36913        darwin*)
36914            OSX_GCOV_LDFLAG="-Wl,-single_module"
36915        ;;
36916        *)
36917            OSX_GCOV_LDFLAG=""
36918        ;;
36919    esac
36920
36921    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
36922    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
36923    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
36924fi
36925
36926#
36927# Build library dependency list for libMagickCore
36928#
36929
36930if test "$build_modules" != 'no'; then
36931    MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $XML_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $WS2_32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
36932else
36933    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 $HEIF_LIBS $WEBPMUX_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 $RAW_R_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $ZSTD_LIBS $LTDL_LIBS $GDI32_LIBS $WS2_32_LIBS $MATH_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
36934fi
36935MAGICK_EXTRA_DEP_LIBS="$GOMP_LIBS"
36936
36937
36938
36939# Pass only user-provided LIBS as "global" libraries
36940LIBS=$USER_LIBS
36941
36942#AC_SUBST(CPPFLAGS)
36943
36944#AC_SUBST(LDFLAGS)
36945#AC_SUBST(X_PRE_LIBS)
36946#AC_SUBST(X_LIBS)
36947#AC_SUBST(X_EXTRA_LIBS)
36948
36949MAGICK_CFLAGS=$CFLAGS
36950MAGICK_CXXFLAGS="$CXXFLAGS"
36951MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
36952MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
36953MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
36954MAGICK_LIBS="$MAGICK_DEP_LIBS $MAGICK_EXTRA_DEP_LIBS"
36955
36956
36957
36958
36959
36960
36961
36962
36963# Set configured scripts to executable.
36964ac_config_commands="$ac_config_commands default"
36965
36966ac_config_commands="$ac_config_commands magick.sh.in"
36967
36968ac_config_commands="$ac_config_commands MagickCore-config.in"
36969
36970ac_config_commands="$ac_config_commands MagickWand-config.in"
36971
36972ac_config_commands="$ac_config_commands Magick++-config.in"
36973
36974ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
36975
36976
36977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36978$as_echo "-------------------------------------------------------------" >&6; }
36979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
36980$as_echo "Update ImageMagick configuration" >&6; }
36981
36982rm -f magick-version
36983
36984result_dejavu_font_dir='none'
36985if test "${dejavu_font_dir}x" != 'x'; then
36986    result_dejavu_font_dir=$dejavu_font_dir
36987fi
36988
36989result_ghostscript_font_dir='none'
36990if test "${ghostscript_font_dir}x" != 'x'; then
36991    result_ghostscript_font_dir=$ghostscript_font_dir
36992fi
36993
36994result_urw_base35_font_dir='none'
36995if test "${urw_base35_font_dir}x" != 'x'; then
36996    result_urw_base35_font_dir=$urw_base35_font_dir
36997fi
36998
36999result_windows_font_dir='none'
37000if test "${windows_font_dir}x" != 'x'; then
37001    result_windows_font_dir=${windows_font_dir}
37002fi
37003
37004# ==============================================================================
37005# Generate build environment
37006# ==============================================================================
37007ac_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-urw-base35.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"
37008
37009cat >confcache <<\_ACEOF
37010# This file is a shell script that caches the results of configure
37011# tests run on this system so they can be shared between configure
37012# scripts and configure runs, see configure's option --config-cache.
37013# It is not useful on other systems.  If it contains results you don't
37014# want to keep, you may remove or edit it.
37015#
37016# config.status only pays attention to the cache file if you give it
37017# the --recheck option to rerun configure.
37018#
37019# `ac_cv_env_foo' variables (set or unset) will be overridden when
37020# loading this file, other *unset* `ac_cv_foo' will be assigned the
37021# following values.
37022
37023_ACEOF
37024
37025# The following way of writing the cache mishandles newlines in values,
37026# but we know of no workaround that is simple, portable, and efficient.
37027# So, we kill variables containing newlines.
37028# Ultrix sh set writes to stderr and can't be redirected directly,
37029# and sets the high bit in the cache file unless we assign to the vars.
37030(
37031  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37032    eval ac_val=\$$ac_var
37033    case $ac_val in #(
37034    *${as_nl}*)
37035      case $ac_var in #(
37036      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37037$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37038      esac
37039      case $ac_var in #(
37040      _ | IFS | as_nl) ;; #(
37041      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37042      *) { eval $ac_var=; unset $ac_var;} ;;
37043      esac ;;
37044    esac
37045  done
37046
37047  (set) 2>&1 |
37048    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37049    *${as_nl}ac_space=\ *)
37050      # `set' does not quote correctly, so add quotes: double-quote
37051      # substitution turns \\\\ into \\, and sed turns \\ into \.
37052      sed -n \
37053	"s/'/'\\\\''/g;
37054	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37055      ;; #(
37056    *)
37057      # `set' quotes correctly as required by POSIX, so do not add quotes.
37058      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37059      ;;
37060    esac |
37061    sort
37062) |
37063  sed '
37064     /^ac_cv_env_/b end
37065     t clear
37066     :clear
37067     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37068     t end
37069     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37070     :end' >>confcache
37071if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37072  if test -w "$cache_file"; then
37073    if test "x$cache_file" != "x/dev/null"; then
37074      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37075$as_echo "$as_me: updating cache $cache_file" >&6;}
37076      if test ! -f "$cache_file" || test -h "$cache_file"; then
37077	cat confcache >"$cache_file"
37078      else
37079        case $cache_file in #(
37080        */* | ?:*)
37081	  mv -f confcache "$cache_file"$$ &&
37082	  mv -f "$cache_file"$$ "$cache_file" ;; #(
37083        *)
37084	  mv -f confcache "$cache_file" ;;
37085	esac
37086      fi
37087    fi
37088  else
37089    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37090$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37091  fi
37092fi
37093rm -f confcache
37094
37095test "x$prefix" = xNONE && prefix=$ac_default_prefix
37096# Let make expand exec_prefix.
37097test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37098
37099DEFS=-DHAVE_CONFIG_H
37100
37101ac_libobjs=
37102ac_ltlibobjs=
37103U=
37104for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37105  # 1. Remove the extension, and $U if already installed.
37106  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37107  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37108  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37109  #    will be set to the directory where LIBOBJS objects are built.
37110  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37111  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37112done
37113LIBOBJS=$ac_libobjs
37114
37115LTLIBOBJS=$ac_ltlibobjs
37116
37117
37118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37119$as_echo_n "checking that generated files are newer than configure... " >&6; }
37120   if test -n "$am_sleep_pid"; then
37121     # Hide warnings about reused PIDs.
37122     wait $am_sleep_pid 2>/dev/null
37123   fi
37124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37125$as_echo "done" >&6; }
37126 if test -n "$EXEEXT"; then
37127  am__EXEEXT_TRUE=
37128  am__EXEEXT_FALSE='#'
37129else
37130  am__EXEEXT_TRUE='#'
37131  am__EXEEXT_FALSE=
37132fi
37133
37134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37135$as_echo_n "checking that generated files are newer than configure... " >&6; }
37136   if test -n "$am_sleep_pid"; then
37137     # Hide warnings about reused PIDs.
37138     wait $am_sleep_pid 2>/dev/null
37139   fi
37140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37141$as_echo "done" >&6; }
37142if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37143  as_fn_error $? "conditional \"AMDEP\" was never defined.
37144Usually this means the macro was only invoked conditionally." "$LINENO" 5
37145fi
37146if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37147  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37148Usually this means the macro was only invoked conditionally." "$LINENO" 5
37149fi
37150if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37151  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37152Usually this means the macro was only invoked conditionally." "$LINENO" 5
37153fi
37154if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37155  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37156Usually this means the macro was only invoked conditionally." "$LINENO" 5
37157fi
37158if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
37159  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
37160Usually this means the macro was only invoked conditionally." "$LINENO" 5
37161fi
37162if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
37163  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
37164Usually this means the macro was only invoked conditionally." "$LINENO" 5
37165fi
37166if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
37167  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
37168Usually this means the macro was only invoked conditionally." "$LINENO" 5
37169fi
37170if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
37171  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
37172Usually this means the macro was only invoked conditionally." "$LINENO" 5
37173fi
37174if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
37175  as_fn_error $? "conditional \"USING_CL\" was never defined.
37176Usually this means the macro was only invoked conditionally." "$LINENO" 5
37177fi
37178if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
37179  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
37180Usually this means the macro was only invoked conditionally." "$LINENO" 5
37181fi
37182if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
37183  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
37184Usually this means the macro was only invoked conditionally." "$LINENO" 5
37185fi
37186if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
37187  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
37188Usually this means the macro was only invoked conditionally." "$LINENO" 5
37189fi
37190if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
37191  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
37192Usually this means the macro was only invoked conditionally." "$LINENO" 5
37193fi
37194if test -z "${WITH_UTILITIES_TRUE}" && test -z "${WITH_UTILITIES_FALSE}"; then
37195  as_fn_error $? "conditional \"WITH_UTILITIES\" was never defined.
37196Usually this means the macro was only invoked conditionally." "$LINENO" 5
37197fi
37198
37199if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37200  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37201Usually this means the macro was only invoked conditionally." "$LINENO" 5
37202fi
37203if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
37204  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
37205Usually this means the macro was only invoked conditionally." "$LINENO" 5
37206fi
37207if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
37208  as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
37209Usually this means the macro was only invoked conditionally." "$LINENO" 5
37210fi
37211if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
37212  as_fn_error $? "conditional \"HasUMEM\" was never defined.
37213Usually this means the macro was only invoked conditionally." "$LINENO" 5
37214fi
37215if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
37216  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
37217Usually this means the macro was only invoked conditionally." "$LINENO" 5
37218fi
37219if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
37220  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
37221Usually this means the macro was only invoked conditionally." "$LINENO" 5
37222fi
37223if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
37224  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
37225Usually this means the macro was only invoked conditionally." "$LINENO" 5
37226fi
37227if test -z "${ZSTD_DELEGATE_TRUE}" && test -z "${ZSTD_DELEGATE_FALSE}"; then
37228  as_fn_error $? "conditional \"ZSTD_DELEGATE\" was never defined.
37229Usually this means the macro was only invoked conditionally." "$LINENO" 5
37230fi
37231if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
37232  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
37233Usually this means the macro was only invoked conditionally." "$LINENO" 5
37234fi
37235if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
37236  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
37237Usually this means the macro was only invoked conditionally." "$LINENO" 5
37238fi
37239if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
37240  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
37241Usually this means the macro was only invoked conditionally." "$LINENO" 5
37242fi
37243if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
37244  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
37245Usually this means the macro was only invoked conditionally." "$LINENO" 5
37246fi
37247if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
37248  as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
37249Usually this means the macro was only invoked conditionally." "$LINENO" 5
37250fi
37251if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
37252  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
37253Usually this means the macro was only invoked conditionally." "$LINENO" 5
37254fi
37255if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
37256  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
37257Usually this means the macro was only invoked conditionally." "$LINENO" 5
37258fi
37259if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
37260  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
37261Usually this means the macro was only invoked conditionally." "$LINENO" 5
37262fi
37263if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
37264  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
37265Usually this means the macro was only invoked conditionally." "$LINENO" 5
37266fi
37267if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
37268  as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
37269Usually this means the macro was only invoked conditionally." "$LINENO" 5
37270fi
37271if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
37272  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
37273Usually this means the macro was only invoked conditionally." "$LINENO" 5
37274fi
37275if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
37276  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
37277Usually this means the macro was only invoked conditionally." "$LINENO" 5
37278fi
37279if test -z "${HEIC_DELEGATE_TRUE}" && test -z "${HEIC_DELEGATE_FALSE}"; then
37280  as_fn_error $? "conditional \"HEIC_DELEGATE\" was never defined.
37281Usually this means the macro was only invoked conditionally." "$LINENO" 5
37282fi
37283if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
37284  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
37285Usually this means the macro was only invoked conditionally." "$LINENO" 5
37286fi
37287if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
37288  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
37289Usually this means the macro was only invoked conditionally." "$LINENO" 5
37290fi
37291if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
37292  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
37293Usually this means the macro was only invoked conditionally." "$LINENO" 5
37294fi
37295if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
37296  as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
37297Usually this means the macro was only invoked conditionally." "$LINENO" 5
37298fi
37299if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
37300  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
37301Usually this means the macro was only invoked conditionally." "$LINENO" 5
37302fi
37303if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
37304  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
37305Usually this means the macro was only invoked conditionally." "$LINENO" 5
37306fi
37307if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
37308  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
37309Usually this means the macro was only invoked conditionally." "$LINENO" 5
37310fi
37311if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
37312  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
37313Usually this means the macro was only invoked conditionally." "$LINENO" 5
37314fi
37315if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
37316  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
37317Usually this means the macro was only invoked conditionally." "$LINENO" 5
37318fi
37319if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
37320  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
37321Usually this means the macro was only invoked conditionally." "$LINENO" 5
37322fi
37323if test -z "${RAW_R_DELEGATE_TRUE}" && test -z "${RAW_R_DELEGATE_FALSE}"; then
37324  as_fn_error $? "conditional \"RAW_R_DELEGATE\" was never defined.
37325Usually this means the macro was only invoked conditionally." "$LINENO" 5
37326fi
37327if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
37328  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
37329Usually this means the macro was only invoked conditionally." "$LINENO" 5
37330fi
37331if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
37332  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
37333Usually this means the macro was only invoked conditionally." "$LINENO" 5
37334fi
37335if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
37336  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
37337Usually this means the macro was only invoked conditionally." "$LINENO" 5
37338fi
37339if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
37340  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
37341Usually this means the macro was only invoked conditionally." "$LINENO" 5
37342fi
37343if test -z "${WEBPMUX_DELEGATE_TRUE}" && test -z "${WEBPMUX_DELEGATE_FALSE}"; then
37344  as_fn_error $? "conditional \"WEBPMUX_DELEGATE\" was never defined.
37345Usually this means the macro was only invoked conditionally." "$LINENO" 5
37346fi
37347if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
37348  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
37349Usually this means the macro was only invoked conditionally." "$LINENO" 5
37350fi
37351if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
37352  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
37353Usually this means the macro was only invoked conditionally." "$LINENO" 5
37354fi
37355if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
37356  as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
37357Usually this means the macro was only invoked conditionally." "$LINENO" 5
37358fi
37359if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
37360  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
37361Usually this means the macro was only invoked conditionally." "$LINENO" 5
37362fi
37363if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
37364  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
37365Usually this means the macro was only invoked conditionally." "$LINENO" 5
37366fi
37367if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
37368  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
37369Usually this means the macro was only invoked conditionally." "$LINENO" 5
37370fi
37371if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
37372  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
37373Usually this means the macro was only invoked conditionally." "$LINENO" 5
37374fi
37375if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
37376  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
37377Usually this means the macro was only invoked conditionally." "$LINENO" 5
37378fi
37379if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
37380  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
37381Usually this means the macro was only invoked conditionally." "$LINENO" 5
37382fi
37383
37384: "${CONFIG_STATUS=./config.status}"
37385ac_write_fail=0
37386ac_clean_files_save=$ac_clean_files
37387ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37388{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37389$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37390as_write_fail=0
37391cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37392#! $SHELL
37393# Generated by $as_me.
37394# Run this file to recreate the current configuration.
37395# Compiler output produced by configure, useful for debugging
37396# configure, is in config.log if it exists.
37397
37398debug=false
37399ac_cs_recheck=false
37400ac_cs_silent=false
37401
37402SHELL=\${CONFIG_SHELL-$SHELL}
37403export SHELL
37404_ASEOF
37405cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37406## -------------------- ##
37407## M4sh Initialization. ##
37408## -------------------- ##
37409
37410# Be more Bourne compatible
37411DUALCASE=1; export DUALCASE # for MKS sh
37412if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37413  emulate sh
37414  NULLCMD=:
37415  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37416  # is contrary to our usage.  Disable this feature.
37417  alias -g '${1+"$@"}'='"$@"'
37418  setopt NO_GLOB_SUBST
37419else
37420  case `(set -o) 2>/dev/null` in #(
37421  *posix*) :
37422    set -o posix ;; #(
37423  *) :
37424     ;;
37425esac
37426fi
37427
37428
37429as_nl='
37430'
37431export as_nl
37432# Printing a long string crashes Solaris 7 /usr/bin/printf.
37433as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37434as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37435as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37436# Prefer a ksh shell builtin over an external printf program on Solaris,
37437# but without wasting forks for bash or zsh.
37438if test -z "$BASH_VERSION$ZSH_VERSION" \
37439    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37440  as_echo='print -r --'
37441  as_echo_n='print -rn --'
37442elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37443  as_echo='printf %s\n'
37444  as_echo_n='printf %s'
37445else
37446  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37447    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37448    as_echo_n='/usr/ucb/echo -n'
37449  else
37450    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37451    as_echo_n_body='eval
37452      arg=$1;
37453      case $arg in #(
37454      *"$as_nl"*)
37455	expr "X$arg" : "X\\(.*\\)$as_nl";
37456	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37457      esac;
37458      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37459    '
37460    export as_echo_n_body
37461    as_echo_n='sh -c $as_echo_n_body as_echo'
37462  fi
37463  export as_echo_body
37464  as_echo='sh -c $as_echo_body as_echo'
37465fi
37466
37467# The user is always right.
37468if test "${PATH_SEPARATOR+set}" != set; then
37469  PATH_SEPARATOR=:
37470  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37471    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37472      PATH_SEPARATOR=';'
37473  }
37474fi
37475
37476
37477# IFS
37478# We need space, tab and new line, in precisely that order.  Quoting is
37479# there to prevent editors from complaining about space-tab.
37480# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37481# splitting by setting IFS to empty value.)
37482IFS=" ""	$as_nl"
37483
37484# Find who we are.  Look in the path if we contain no directory separator.
37485as_myself=
37486case $0 in #((
37487  *[\\/]* ) as_myself=$0 ;;
37488  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37489for as_dir in $PATH
37490do
37491  IFS=$as_save_IFS
37492  test -z "$as_dir" && as_dir=.
37493    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37494  done
37495IFS=$as_save_IFS
37496
37497     ;;
37498esac
37499# We did not find ourselves, most probably we were run as `sh COMMAND'
37500# in which case we are not to be found in the path.
37501if test "x$as_myself" = x; then
37502  as_myself=$0
37503fi
37504if test ! -f "$as_myself"; then
37505  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37506  exit 1
37507fi
37508
37509# Unset variables that we do not need and which cause bugs (e.g. in
37510# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37511# suppresses any "Segmentation fault" message there.  '((' could
37512# trigger a bug in pdksh 5.2.14.
37513for as_var in BASH_ENV ENV MAIL MAILPATH
37514do eval test x\${$as_var+set} = xset \
37515  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37516done
37517PS1='$ '
37518PS2='> '
37519PS4='+ '
37520
37521# NLS nuisances.
37522LC_ALL=C
37523export LC_ALL
37524LANGUAGE=C
37525export LANGUAGE
37526
37527# CDPATH.
37528(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37529
37530
37531# as_fn_error STATUS ERROR [LINENO LOG_FD]
37532# ----------------------------------------
37533# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37534# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37535# script with STATUS, using 1 if that was 0.
37536as_fn_error ()
37537{
37538  as_status=$1; test $as_status -eq 0 && as_status=1
37539  if test "$4"; then
37540    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37541    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37542  fi
37543  $as_echo "$as_me: error: $2" >&2
37544  as_fn_exit $as_status
37545} # as_fn_error
37546
37547
37548# as_fn_set_status STATUS
37549# -----------------------
37550# Set $? to STATUS, without forking.
37551as_fn_set_status ()
37552{
37553  return $1
37554} # as_fn_set_status
37555
37556# as_fn_exit STATUS
37557# -----------------
37558# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37559as_fn_exit ()
37560{
37561  set +e
37562  as_fn_set_status $1
37563  exit $1
37564} # as_fn_exit
37565
37566# as_fn_unset VAR
37567# ---------------
37568# Portably unset VAR.
37569as_fn_unset ()
37570{
37571  { eval $1=; unset $1;}
37572}
37573as_unset=as_fn_unset
37574# as_fn_append VAR VALUE
37575# ----------------------
37576# Append the text in VALUE to the end of the definition contained in VAR. Take
37577# advantage of any shell optimizations that allow amortized linear growth over
37578# repeated appends, instead of the typical quadratic growth present in naive
37579# implementations.
37580if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37581  eval 'as_fn_append ()
37582  {
37583    eval $1+=\$2
37584  }'
37585else
37586  as_fn_append ()
37587  {
37588    eval $1=\$$1\$2
37589  }
37590fi # as_fn_append
37591
37592# as_fn_arith ARG...
37593# ------------------
37594# Perform arithmetic evaluation on the ARGs, and store the result in the
37595# global $as_val. Take advantage of shells that can avoid forks. The arguments
37596# must be portable across $(()) and expr.
37597if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37598  eval 'as_fn_arith ()
37599  {
37600    as_val=$(( $* ))
37601  }'
37602else
37603  as_fn_arith ()
37604  {
37605    as_val=`expr "$@" || test $? -eq 1`
37606  }
37607fi # as_fn_arith
37608
37609
37610if expr a : '\(a\)' >/dev/null 2>&1 &&
37611   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37612  as_expr=expr
37613else
37614  as_expr=false
37615fi
37616
37617if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37618  as_basename=basename
37619else
37620  as_basename=false
37621fi
37622
37623if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37624  as_dirname=dirname
37625else
37626  as_dirname=false
37627fi
37628
37629as_me=`$as_basename -- "$0" ||
37630$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37631	 X"$0" : 'X\(//\)$' \| \
37632	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37633$as_echo X/"$0" |
37634    sed '/^.*\/\([^/][^/]*\)\/*$/{
37635	    s//\1/
37636	    q
37637	  }
37638	  /^X\/\(\/\/\)$/{
37639	    s//\1/
37640	    q
37641	  }
37642	  /^X\/\(\/\).*/{
37643	    s//\1/
37644	    q
37645	  }
37646	  s/.*/./; q'`
37647
37648# Avoid depending upon Character Ranges.
37649as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37650as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37651as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37652as_cr_digits='0123456789'
37653as_cr_alnum=$as_cr_Letters$as_cr_digits
37654
37655ECHO_C= ECHO_N= ECHO_T=
37656case `echo -n x` in #(((((
37657-n*)
37658  case `echo 'xy\c'` in
37659  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
37660  xy)  ECHO_C='\c';;
37661  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
37662       ECHO_T='	';;
37663  esac;;
37664*)
37665  ECHO_N='-n';;
37666esac
37667
37668rm -f conf$$ conf$$.exe conf$$.file
37669if test -d conf$$.dir; then
37670  rm -f conf$$.dir/conf$$.file
37671else
37672  rm -f conf$$.dir
37673  mkdir conf$$.dir 2>/dev/null
37674fi
37675if (echo >conf$$.file) 2>/dev/null; then
37676  if ln -s conf$$.file conf$$ 2>/dev/null; then
37677    as_ln_s='ln -s'
37678    # ... but there are two gotchas:
37679    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37680    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37681    # In both cases, we have to default to `cp -pR'.
37682    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37683      as_ln_s='cp -pR'
37684  elif ln conf$$.file conf$$ 2>/dev/null; then
37685    as_ln_s=ln
37686  else
37687    as_ln_s='cp -pR'
37688  fi
37689else
37690  as_ln_s='cp -pR'
37691fi
37692rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37693rmdir conf$$.dir 2>/dev/null
37694
37695
37696# as_fn_mkdir_p
37697# -------------
37698# Create "$as_dir" as a directory, including parents if necessary.
37699as_fn_mkdir_p ()
37700{
37701
37702  case $as_dir in #(
37703  -*) as_dir=./$as_dir;;
37704  esac
37705  test -d "$as_dir" || eval $as_mkdir_p || {
37706    as_dirs=
37707    while :; do
37708      case $as_dir in #(
37709      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37710      *) as_qdir=$as_dir;;
37711      esac
37712      as_dirs="'$as_qdir' $as_dirs"
37713      as_dir=`$as_dirname -- "$as_dir" ||
37714$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37715	 X"$as_dir" : 'X\(//\)[^/]' \| \
37716	 X"$as_dir" : 'X\(//\)$' \| \
37717	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37718$as_echo X"$as_dir" |
37719    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37720	    s//\1/
37721	    q
37722	  }
37723	  /^X\(\/\/\)[^/].*/{
37724	    s//\1/
37725	    q
37726	  }
37727	  /^X\(\/\/\)$/{
37728	    s//\1/
37729	    q
37730	  }
37731	  /^X\(\/\).*/{
37732	    s//\1/
37733	    q
37734	  }
37735	  s/.*/./; q'`
37736      test -d "$as_dir" && break
37737    done
37738    test -z "$as_dirs" || eval "mkdir $as_dirs"
37739  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37740
37741
37742} # as_fn_mkdir_p
37743if mkdir -p . 2>/dev/null; then
37744  as_mkdir_p='mkdir -p "$as_dir"'
37745else
37746  test -d ./-p && rmdir ./-p
37747  as_mkdir_p=false
37748fi
37749
37750
37751# as_fn_executable_p FILE
37752# -----------------------
37753# Test if FILE is an executable regular file.
37754as_fn_executable_p ()
37755{
37756  test -f "$1" && test -x "$1"
37757} # as_fn_executable_p
37758as_test_x='test -x'
37759as_executable_p=as_fn_executable_p
37760
37761# Sed expression to map a string onto a valid CPP name.
37762as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37763
37764# Sed expression to map a string onto a valid variable name.
37765as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37766
37767
37768exec 6>&1
37769## ----------------------------------- ##
37770## Main body of $CONFIG_STATUS script. ##
37771## ----------------------------------- ##
37772_ASEOF
37773test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37774
37775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37776# Save the log message, to keep $0 and so on meaningful, and to
37777# report actual input values of CONFIG_FILES etc. instead of their
37778# values after options handling.
37779ac_log="
37780This file was extended by ImageMagick $as_me 7.0.8-32, which was
37781generated by GNU Autoconf 2.69.  Invocation command line was
37782
37783  CONFIG_FILES    = $CONFIG_FILES
37784  CONFIG_HEADERS  = $CONFIG_HEADERS
37785  CONFIG_LINKS    = $CONFIG_LINKS
37786  CONFIG_COMMANDS = $CONFIG_COMMANDS
37787  $ $0 $@
37788
37789on `(hostname || uname -n) 2>/dev/null | sed 1q`
37790"
37791
37792_ACEOF
37793
37794case $ac_config_files in *"
37795"*) set x $ac_config_files; shift; ac_config_files=$*;;
37796esac
37797
37798case $ac_config_headers in *"
37799"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37800esac
37801
37802
37803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37804# Files that config.status was made for.
37805config_files="$ac_config_files"
37806config_headers="$ac_config_headers"
37807config_commands="$ac_config_commands"
37808
37809_ACEOF
37810
37811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37812ac_cs_usage="\
37813\`$as_me' instantiates files and other configuration actions
37814from templates according to the current configuration.  Unless the files
37815and actions are specified as TAGs, all are instantiated by default.
37816
37817Usage: $0 [OPTION]... [TAG]...
37818
37819  -h, --help       print this help, then exit
37820  -V, --version    print version number and configuration settings, then exit
37821      --config     print configuration, then exit
37822  -q, --quiet, --silent
37823                   do not print progress messages
37824  -d, --debug      don't remove temporary files
37825      --recheck    update $as_me by reconfiguring in the same conditions
37826      --file=FILE[:TEMPLATE]
37827                   instantiate the configuration file FILE
37828      --header=FILE[:TEMPLATE]
37829                   instantiate the configuration header FILE
37830
37831Configuration files:
37832$config_files
37833
37834Configuration headers:
37835$config_headers
37836
37837Configuration commands:
37838$config_commands
37839
37840Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
37841ImageMagick home page: <https://imagemagick.org>."
37842
37843_ACEOF
37844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37845ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37846ac_cs_version="\\
37847ImageMagick config.status 7.0.8-32
37848configured by $0, generated by GNU Autoconf 2.69,
37849  with options \\"\$ac_cs_config\\"
37850
37851Copyright (C) 2012 Free Software Foundation, Inc.
37852This config.status script is free software; the Free Software Foundation
37853gives unlimited permission to copy, distribute and modify it."
37854
37855ac_pwd='$ac_pwd'
37856srcdir='$srcdir'
37857INSTALL='$INSTALL'
37858MKDIR_P='$MKDIR_P'
37859AWK='$AWK'
37860test -n "\$AWK" || AWK=awk
37861_ACEOF
37862
37863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37864# The default lists apply if the user does not specify any file.
37865ac_need_defaults=:
37866while test $# != 0
37867do
37868  case $1 in
37869  --*=?*)
37870    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37871    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37872    ac_shift=:
37873    ;;
37874  --*=)
37875    ac_option=`expr "X$1" : 'X\([^=]*\)='`
37876    ac_optarg=
37877    ac_shift=:
37878    ;;
37879  *)
37880    ac_option=$1
37881    ac_optarg=$2
37882    ac_shift=shift
37883    ;;
37884  esac
37885
37886  case $ac_option in
37887  # Handling of the options.
37888  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37889    ac_cs_recheck=: ;;
37890  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37891    $as_echo "$ac_cs_version"; exit ;;
37892  --config | --confi | --conf | --con | --co | --c )
37893    $as_echo "$ac_cs_config"; exit ;;
37894  --debug | --debu | --deb | --de | --d | -d )
37895    debug=: ;;
37896  --file | --fil | --fi | --f )
37897    $ac_shift
37898    case $ac_optarg in
37899    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37900    '') as_fn_error $? "missing file argument" ;;
37901    esac
37902    as_fn_append CONFIG_FILES " '$ac_optarg'"
37903    ac_need_defaults=false;;
37904  --header | --heade | --head | --hea )
37905    $ac_shift
37906    case $ac_optarg in
37907    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37908    esac
37909    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37910    ac_need_defaults=false;;
37911  --he | --h)
37912    # Conflict between --help and --header
37913    as_fn_error $? "ambiguous option: \`$1'
37914Try \`$0 --help' for more information.";;
37915  --help | --hel | -h )
37916    $as_echo "$ac_cs_usage"; exit ;;
37917  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37918  | -silent | --silent | --silen | --sile | --sil | --si | --s)
37919    ac_cs_silent=: ;;
37920
37921  # This is an error.
37922  -*) as_fn_error $? "unrecognized option: \`$1'
37923Try \`$0 --help' for more information." ;;
37924
37925  *) as_fn_append ac_config_targets " $1"
37926     ac_need_defaults=false ;;
37927
37928  esac
37929  shift
37930done
37931
37932ac_configure_extra_args=
37933
37934if $ac_cs_silent; then
37935  exec 6>/dev/null
37936  ac_configure_extra_args="$ac_configure_extra_args --silent"
37937fi
37938
37939_ACEOF
37940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37941if \$ac_cs_recheck; then
37942  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37943  shift
37944  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37945  CONFIG_SHELL='$SHELL'
37946  export CONFIG_SHELL
37947  exec "\$@"
37948fi
37949
37950_ACEOF
37951cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37952exec 5>>config.log
37953{
37954  echo
37955  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37956## Running $as_me. ##
37957_ASBOX
37958  $as_echo "$ac_log"
37959} >&5
37960
37961_ACEOF
37962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37963#
37964# INIT-COMMANDS
37965#
37966PACKAGE="$PACKAGE"
37967AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
37968
37969
37970# The HP-UX ksh and POSIX shell print the target directory to stdout
37971# if CDPATH is set.
37972(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37973
37974sed_quote_subst='$sed_quote_subst'
37975double_quote_subst='$double_quote_subst'
37976delay_variable_subst='$delay_variable_subst'
37977SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37978Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37979GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37980EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37981FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37982SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37983ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37984LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37985macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37986macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37987AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
37988DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37989OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37990enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37991enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37992pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37993enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37994shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
37995PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37996host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37997host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37998host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37999build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38000build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38001build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38002NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38003LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38004max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38005ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38006exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38007lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38008lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38009lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38010lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38011lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38012reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38013reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38014deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38015file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38016file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38017want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38018sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38019AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38020AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38021archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38022STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38023RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38024old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38025old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38026old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38027lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38028CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38029CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38030compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38031GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38032lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38033lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38034lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
38035lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38036lt_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"`'
38037lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
38038nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38039lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38040lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
38041objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38042MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38043lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38044lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38045lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38046lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38047lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38048need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38049MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38050DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38051NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38052LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38053OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38054OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38055libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38056shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38057extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38058archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38059enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38060export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38061whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38062compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38063old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38064old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38065archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38066archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38067module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38068module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38069with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38070allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38071no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38072hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38073hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38074hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38075hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38076hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38077hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38078hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38079inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38080link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38081always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38082export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38083exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38084include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38085prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38086postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38087file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38088variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38089need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38090need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38091version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38092runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38093shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38094shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38095libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38096library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38097soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38098install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38099postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38100postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38101finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38102finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38103hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38104sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38105configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38106configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
38107hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38108enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38109enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38110enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38111old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38112striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38113compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38114predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38115postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38116predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38117postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38118compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38119LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38120reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38121reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38122old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38123compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38124GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38125lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38126lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38127lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38128lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38129lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38130archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38131enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38132export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38133whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38134compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38135old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38136old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38137archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38138archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38139module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38140module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38141with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38142allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38143no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38144hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38145hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38146hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38147hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38148hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38149hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38150hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38151inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38152link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38153always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38154export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38155exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38156include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38157prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38158postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38159file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38160hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38161compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38162predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38163postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38164predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38165postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38166compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38167
38168LTCC='$LTCC'
38169LTCFLAGS='$LTCFLAGS'
38170compiler='$compiler_DEFAULT'
38171
38172# A function that is used when there is no print builtin or printf.
38173func_fallback_echo ()
38174{
38175  eval 'cat <<_LTECHO_EOF
38176\$1
38177_LTECHO_EOF'
38178}
38179
38180# Quote evaled strings.
38181for var in SED \
38182GREP \
38183EGREP \
38184FGREP \
38185SHELL \
38186ECHO \
38187LD \
38188AS \
38189DLLTOOL \
38190OBJDUMP \
38191PATH_SEPARATOR \
38192NM \
38193LN_S \
38194lt_SP2NL \
38195lt_NL2SP \
38196reload_flag \
38197deplibs_check_method \
38198file_magic_cmd \
38199file_magic_glob \
38200want_nocaseglob \
38201sharedlib_from_linklib_cmd \
38202AR \
38203AR_FLAGS \
38204archiver_list_spec \
38205STRIP \
38206RANLIB \
38207CC \
38208CFLAGS \
38209compiler \
38210lt_cv_sys_global_symbol_pipe \
38211lt_cv_sys_global_symbol_to_cdecl \
38212lt_cv_sys_global_symbol_to_import \
38213lt_cv_sys_global_symbol_to_c_name_address \
38214lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38215lt_cv_nm_interface \
38216nm_file_list_spec \
38217lt_cv_truncate_bin \
38218lt_prog_compiler_no_builtin_flag \
38219lt_prog_compiler_pic \
38220lt_prog_compiler_wl \
38221lt_prog_compiler_static \
38222lt_cv_prog_compiler_c_o \
38223need_locks \
38224MANIFEST_TOOL \
38225DSYMUTIL \
38226NMEDIT \
38227LIPO \
38228OTOOL \
38229OTOOL64 \
38230shrext_cmds \
38231export_dynamic_flag_spec \
38232whole_archive_flag_spec \
38233compiler_needs_object \
38234with_gnu_ld \
38235allow_undefined_flag \
38236no_undefined_flag \
38237hardcode_libdir_flag_spec \
38238hardcode_libdir_separator \
38239exclude_expsyms \
38240include_expsyms \
38241file_list_spec \
38242variables_saved_for_relink \
38243libname_spec \
38244library_names_spec \
38245soname_spec \
38246install_override_mode \
38247finish_eval \
38248old_striplib \
38249striplib \
38250compiler_lib_search_dirs \
38251predep_objects \
38252postdep_objects \
38253predeps \
38254postdeps \
38255compiler_lib_search_path \
38256LD_CXX \
38257reload_flag_CXX \
38258compiler_CXX \
38259lt_prog_compiler_no_builtin_flag_CXX \
38260lt_prog_compiler_pic_CXX \
38261lt_prog_compiler_wl_CXX \
38262lt_prog_compiler_static_CXX \
38263lt_cv_prog_compiler_c_o_CXX \
38264export_dynamic_flag_spec_CXX \
38265whole_archive_flag_spec_CXX \
38266compiler_needs_object_CXX \
38267with_gnu_ld_CXX \
38268allow_undefined_flag_CXX \
38269no_undefined_flag_CXX \
38270hardcode_libdir_flag_spec_CXX \
38271hardcode_libdir_separator_CXX \
38272exclude_expsyms_CXX \
38273include_expsyms_CXX \
38274file_list_spec_CXX \
38275compiler_lib_search_dirs_CXX \
38276predep_objects_CXX \
38277postdep_objects_CXX \
38278predeps_CXX \
38279postdeps_CXX \
38280compiler_lib_search_path_CXX; do
38281    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38282    *[\\\\\\\`\\"\\\$]*)
38283      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38284      ;;
38285    *)
38286      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38287      ;;
38288    esac
38289done
38290
38291# Double-quote double-evaled strings.
38292for var in reload_cmds \
38293old_postinstall_cmds \
38294old_postuninstall_cmds \
38295old_archive_cmds \
38296extract_expsyms_cmds \
38297old_archive_from_new_cmds \
38298old_archive_from_expsyms_cmds \
38299archive_cmds \
38300archive_expsym_cmds \
38301module_cmds \
38302module_expsym_cmds \
38303export_symbols_cmds \
38304prelink_cmds \
38305postlink_cmds \
38306postinstall_cmds \
38307postuninstall_cmds \
38308finish_cmds \
38309sys_lib_search_path_spec \
38310configure_time_dlsearch_path \
38311configure_time_lt_sys_library_path \
38312reload_cmds_CXX \
38313old_archive_cmds_CXX \
38314old_archive_from_new_cmds_CXX \
38315old_archive_from_expsyms_cmds_CXX \
38316archive_cmds_CXX \
38317archive_expsym_cmds_CXX \
38318module_cmds_CXX \
38319module_expsym_cmds_CXX \
38320export_symbols_cmds_CXX \
38321prelink_cmds_CXX \
38322postlink_cmds_CXX; do
38323    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38324    *[\\\\\\\`\\"\\\$]*)
38325      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38326      ;;
38327    *)
38328      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38329      ;;
38330    esac
38331done
38332
38333ac_aux_dir='$ac_aux_dir'
38334
38335# See if we are running on zsh, and set the options that allow our
38336# commands through without removal of \ escapes INIT.
38337if test -n "\${ZSH_VERSION+set}"; then
38338   setopt NO_GLOB_SUBST
38339fi
38340
38341
38342    PACKAGE='$PACKAGE'
38343    VERSION='$VERSION'
38344    RM='$RM'
38345    ofile='$ofile'
38346
38347
38348
38349
38350
38351
38352_ACEOF
38353
38354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38355
38356# Handling of arguments.
38357for ac_config_target in $ac_config_targets
38358do
38359  case $ac_config_target in
38360    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
38361    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
38362    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38363    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38364    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38365    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
38366    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
38367    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
38368    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
38369    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
38370    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
38371    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
38372    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
38373    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
38374    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
38375    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
38376    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
38377    "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
38378    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
38379    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
38380    "config/type-urw-base35.xml") CONFIG_FILES="$CONFIG_FILES config/type-urw-base35.xml" ;;
38381    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
38382    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
38383    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
38384    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
38385    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
38386    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
38387    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
38388    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
38389    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
38390    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38391    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
38392    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
38393    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
38394    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
38395    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
38396    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
38397    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
38398    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
38399    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
38400    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
38401    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
38402    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
38403    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
38404    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
38405    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
38406    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
38407    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
38408    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
38409    "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
38410    "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
38411    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
38412    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
38413    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
38414    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
38415    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
38416
38417  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38418  esac
38419done
38420
38421
38422# If the user did not use the arguments to specify the items to instantiate,
38423# then the envvar interface is used.  Set only those that are not.
38424# We use the long form for the default assignment because of an extremely
38425# bizarre bug on SunOS 4.1.3.
38426if $ac_need_defaults; then
38427  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38428  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38429  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38430fi
38431
38432# Have a temporary directory for convenience.  Make it in the build tree
38433# simply because there is no reason against having it here, and in addition,
38434# creating and moving files from /tmp can sometimes cause problems.
38435# Hook for its removal unless debugging.
38436# Note that there is a small window in which the directory will not be cleaned:
38437# after its creation but before its name has been assigned to `$tmp'.
38438$debug ||
38439{
38440  tmp= ac_tmp=
38441  trap 'exit_status=$?
38442  : "${ac_tmp:=$tmp}"
38443  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38444' 0
38445  trap 'as_fn_exit 1' 1 2 13 15
38446}
38447# Create a (secure) tmp directory for tmp files.
38448
38449{
38450  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38451  test -d "$tmp"
38452}  ||
38453{
38454  tmp=./conf$$-$RANDOM
38455  (umask 077 && mkdir "$tmp")
38456} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38457ac_tmp=$tmp
38458
38459# Set up the scripts for CONFIG_FILES section.
38460# No need to generate them if there are no CONFIG_FILES.
38461# This happens for instance with `./config.status config.h'.
38462if test -n "$CONFIG_FILES"; then
38463
38464
38465ac_cr=`echo X | tr X '\015'`
38466# On cygwin, bash can eat \r inside `` if the user requested igncr.
38467# But we know of no other shell where ac_cr would be empty at this
38468# point, so we can use a bashism as a fallback.
38469if test "x$ac_cr" = x; then
38470  eval ac_cr=\$\'\\r\'
38471fi
38472ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38473if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38474  ac_cs_awk_cr='\\r'
38475else
38476  ac_cs_awk_cr=$ac_cr
38477fi
38478
38479echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38480_ACEOF
38481
38482
38483{
38484  echo "cat >conf$$subs.awk <<_ACEOF" &&
38485  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38486  echo "_ACEOF"
38487} >conf$$subs.sh ||
38488  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38489ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38490ac_delim='%!_!# '
38491for ac_last_try in false false false false false :; do
38492  . ./conf$$subs.sh ||
38493    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38494
38495  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38496  if test $ac_delim_n = $ac_delim_num; then
38497    break
38498  elif $ac_last_try; then
38499    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38500  else
38501    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38502  fi
38503done
38504rm -f conf$$subs.sh
38505
38506cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38507cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38508_ACEOF
38509sed -n '
38510h
38511s/^/S["/; s/!.*/"]=/
38512p
38513g
38514s/^[^!]*!//
38515:repl
38516t repl
38517s/'"$ac_delim"'$//
38518t delim
38519:nl
38520h
38521s/\(.\{148\}\)..*/\1/
38522t more1
38523s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38524p
38525n
38526b repl
38527:more1
38528s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38529p
38530g
38531s/.\{148\}//
38532t nl
38533:delim
38534h
38535s/\(.\{148\}\)..*/\1/
38536t more2
38537s/["\\]/\\&/g; s/^/"/; s/$/"/
38538p
38539b
38540:more2
38541s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38542p
38543g
38544s/.\{148\}//
38545t delim
38546' <conf$$subs.awk | sed '
38547/^[^""]/{
38548  N
38549  s/\n//
38550}
38551' >>$CONFIG_STATUS || ac_write_fail=1
38552rm -f conf$$subs.awk
38553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38554_ACAWK
38555cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38556  for (key in S) S_is_set[key] = 1
38557  FS = ""
38558
38559}
38560{
38561  line = $ 0
38562  nfields = split(line, field, "@")
38563  substed = 0
38564  len = length(field[1])
38565  for (i = 2; i < nfields; i++) {
38566    key = field[i]
38567    keylen = length(key)
38568    if (S_is_set[key]) {
38569      value = S[key]
38570      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38571      len += length(value) + length(field[++i])
38572      substed = 1
38573    } else
38574      len += 1 + keylen
38575  }
38576
38577  print line
38578}
38579
38580_ACAWK
38581_ACEOF
38582cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38583if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38584  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38585else
38586  cat
38587fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38588  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38589_ACEOF
38590
38591# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38592# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38593# trailing colons and then remove the whole line if VPATH becomes empty
38594# (actually we leave an empty line to preserve line numbers).
38595if test "x$srcdir" = x.; then
38596  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38597h
38598s///
38599s/^/:/
38600s/[	 ]*$/:/
38601s/:\$(srcdir):/:/g
38602s/:\${srcdir}:/:/g
38603s/:@srcdir@:/:/g
38604s/^:*//
38605s/:*$//
38606x
38607s/\(=[	 ]*\).*/\1/
38608G
38609s/\n//
38610s/^[^=]*=[	 ]*$//
38611}'
38612fi
38613
38614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38615fi # test -n "$CONFIG_FILES"
38616
38617# Set up the scripts for CONFIG_HEADERS section.
38618# No need to generate them if there are no CONFIG_HEADERS.
38619# This happens for instance with `./config.status Makefile'.
38620if test -n "$CONFIG_HEADERS"; then
38621cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38622BEGIN {
38623_ACEOF
38624
38625# Transform confdefs.h into an awk script `defines.awk', embedded as
38626# here-document in config.status, that substitutes the proper values into
38627# config.h.in to produce config.h.
38628
38629# Create a delimiter string that does not exist in confdefs.h, to ease
38630# handling of long lines.
38631ac_delim='%!_!# '
38632for ac_last_try in false false :; do
38633  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38634  if test -z "$ac_tt"; then
38635    break
38636  elif $ac_last_try; then
38637    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38638  else
38639    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38640  fi
38641done
38642
38643# For the awk script, D is an array of macro values keyed by name,
38644# likewise P contains macro parameters if any.  Preserve backslash
38645# newline sequences.
38646
38647ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38648sed -n '
38649s/.\{148\}/&'"$ac_delim"'/g
38650t rset
38651:rset
38652s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
38653t def
38654d
38655:def
38656s/\\$//
38657t bsnl
38658s/["\\]/\\&/g
38659s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38660D["\1"]=" \3"/p
38661s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
38662d
38663:bsnl
38664s/["\\]/\\&/g
38665s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
38666D["\1"]=" \3\\\\\\n"\\/p
38667t cont
38668s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38669t cont
38670d
38671:cont
38672n
38673s/.\{148\}/&'"$ac_delim"'/g
38674t clear
38675:clear
38676s/\\$//
38677t bsnlc
38678s/["\\]/\\&/g; s/^/"/; s/$/"/p
38679d
38680:bsnlc
38681s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38682b cont
38683' <confdefs.h | sed '
38684s/'"$ac_delim"'/"\\\
38685"/g' >>$CONFIG_STATUS || ac_write_fail=1
38686
38687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38688  for (key in D) D_is_set[key] = 1
38689  FS = ""
38690}
38691/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38692  line = \$ 0
38693  split(line, arg, " ")
38694  if (arg[1] == "#") {
38695    defundef = arg[2]
38696    mac1 = arg[3]
38697  } else {
38698    defundef = substr(arg[1], 2)
38699    mac1 = arg[2]
38700  }
38701  split(mac1, mac2, "(") #)
38702  macro = mac2[1]
38703  prefix = substr(line, 1, index(line, defundef) - 1)
38704  if (D_is_set[macro]) {
38705    # Preserve the white space surrounding the "#".
38706    print prefix "define", macro P[macro] D[macro]
38707    next
38708  } else {
38709    # Replace #undef with comments.  This is necessary, for example,
38710    # in the case of _POSIX_SOURCE, which is predefined and required
38711    # on some systems where configure will not decide to define it.
38712    if (defundef == "undef") {
38713      print "/*", prefix defundef, macro, "*/"
38714      next
38715    }
38716  }
38717}
38718{ print }
38719_ACAWK
38720_ACEOF
38721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38722  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38723fi # test -n "$CONFIG_HEADERS"
38724
38725
38726eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
38727shift
38728for ac_tag
38729do
38730  case $ac_tag in
38731  :[FHLC]) ac_mode=$ac_tag; continue;;
38732  esac
38733  case $ac_mode$ac_tag in
38734  :[FHL]*:*);;
38735  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38736  :[FH]-) ac_tag=-:-;;
38737  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38738  esac
38739  ac_save_IFS=$IFS
38740  IFS=:
38741  set x $ac_tag
38742  IFS=$ac_save_IFS
38743  shift
38744  ac_file=$1
38745  shift
38746
38747  case $ac_mode in
38748  :L) ac_source=$1;;
38749  :[FH])
38750    ac_file_inputs=
38751    for ac_f
38752    do
38753      case $ac_f in
38754      -) ac_f="$ac_tmp/stdin";;
38755      *) # Look for the file first in the build tree, then in the source tree
38756	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
38757	 # because $ac_f cannot contain `:'.
38758	 test -f "$ac_f" ||
38759	   case $ac_f in
38760	   [\\/$]*) false;;
38761	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38762	   esac ||
38763	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38764      esac
38765      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38766      as_fn_append ac_file_inputs " '$ac_f'"
38767    done
38768
38769    # Let's still pretend it is `configure' which instantiates (i.e., don't
38770    # use $as_me), people would be surprised to read:
38771    #    /* config.h.  Generated by config.status.  */
38772    configure_input='Generated from '`
38773	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38774	`' by configure.'
38775    if test x"$ac_file" != x-; then
38776      configure_input="$ac_file.  $configure_input"
38777      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38778$as_echo "$as_me: creating $ac_file" >&6;}
38779    fi
38780    # Neutralize special characters interpreted by sed in replacement strings.
38781    case $configure_input in #(
38782    *\&* | *\|* | *\\* )
38783       ac_sed_conf_input=`$as_echo "$configure_input" |
38784       sed 's/[\\\\&|]/\\\\&/g'`;; #(
38785    *) ac_sed_conf_input=$configure_input;;
38786    esac
38787
38788    case $ac_tag in
38789    *:-:* | *:-) cat >"$ac_tmp/stdin" \
38790      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38791    esac
38792    ;;
38793  esac
38794
38795  ac_dir=`$as_dirname -- "$ac_file" ||
38796$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38797	 X"$ac_file" : 'X\(//\)[^/]' \| \
38798	 X"$ac_file" : 'X\(//\)$' \| \
38799	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38800$as_echo X"$ac_file" |
38801    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38802	    s//\1/
38803	    q
38804	  }
38805	  /^X\(\/\/\)[^/].*/{
38806	    s//\1/
38807	    q
38808	  }
38809	  /^X\(\/\/\)$/{
38810	    s//\1/
38811	    q
38812	  }
38813	  /^X\(\/\).*/{
38814	    s//\1/
38815	    q
38816	  }
38817	  s/.*/./; q'`
38818  as_dir="$ac_dir"; as_fn_mkdir_p
38819  ac_builddir=.
38820
38821case "$ac_dir" in
38822.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38823*)
38824  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38825  # A ".." for each directory in $ac_dir_suffix.
38826  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38827  case $ac_top_builddir_sub in
38828  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38829  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38830  esac ;;
38831esac
38832ac_abs_top_builddir=$ac_pwd
38833ac_abs_builddir=$ac_pwd$ac_dir_suffix
38834# for backward compatibility:
38835ac_top_builddir=$ac_top_build_prefix
38836
38837case $srcdir in
38838  .)  # We are building in place.
38839    ac_srcdir=.
38840    ac_top_srcdir=$ac_top_builddir_sub
38841    ac_abs_top_srcdir=$ac_pwd ;;
38842  [\\/]* | ?:[\\/]* )  # Absolute name.
38843    ac_srcdir=$srcdir$ac_dir_suffix;
38844    ac_top_srcdir=$srcdir
38845    ac_abs_top_srcdir=$srcdir ;;
38846  *) # Relative name.
38847    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38848    ac_top_srcdir=$ac_top_build_prefix$srcdir
38849    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38850esac
38851ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38852
38853
38854  case $ac_mode in
38855  :F)
38856  #
38857  # CONFIG_FILE
38858  #
38859
38860  case $INSTALL in
38861  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38862  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38863  esac
38864  ac_MKDIR_P=$MKDIR_P
38865  case $MKDIR_P in
38866  [\\/$]* | ?:[\\/]* ) ;;
38867  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38868  esac
38869_ACEOF
38870
38871cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38872# If the template does not know about datarootdir, expand it.
38873# FIXME: This hack should be removed a few years after 2.60.
38874ac_datarootdir_hack=; ac_datarootdir_seen=
38875ac_sed_dataroot='
38876/datarootdir/ {
38877  p
38878  q
38879}
38880/@datadir@/p
38881/@docdir@/p
38882/@infodir@/p
38883/@localedir@/p
38884/@mandir@/p'
38885case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38886*datarootdir*) ac_datarootdir_seen=yes;;
38887*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38888  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38889$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38890_ACEOF
38891cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38892  ac_datarootdir_hack='
38893  s&@datadir@&$datadir&g
38894  s&@docdir@&$docdir&g
38895  s&@infodir@&$infodir&g
38896  s&@localedir@&$localedir&g
38897  s&@mandir@&$mandir&g
38898  s&\\\${datarootdir}&$datarootdir&g' ;;
38899esac
38900_ACEOF
38901
38902# Neutralize VPATH when `$srcdir' = `.'.
38903# Shell code in configure.ac might set extrasub.
38904# FIXME: do we really want to maintain this feature?
38905cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38906ac_sed_extra="$ac_vpsub
38907$extrasub
38908_ACEOF
38909cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38910:t
38911/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38912s|@configure_input@|$ac_sed_conf_input|;t t
38913s&@top_builddir@&$ac_top_builddir_sub&;t t
38914s&@top_build_prefix@&$ac_top_build_prefix&;t t
38915s&@srcdir@&$ac_srcdir&;t t
38916s&@abs_srcdir@&$ac_abs_srcdir&;t t
38917s&@top_srcdir@&$ac_top_srcdir&;t t
38918s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38919s&@builddir@&$ac_builddir&;t t
38920s&@abs_builddir@&$ac_abs_builddir&;t t
38921s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38922s&@INSTALL@&$ac_INSTALL&;t t
38923s&@MKDIR_P@&$ac_MKDIR_P&;t t
38924$ac_datarootdir_hack
38925"
38926eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38927  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38928
38929test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38930  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38931  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
38932      "$ac_tmp/out"`; test -z "$ac_out"; } &&
38933  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38934which seems to be undefined.  Please make sure it is defined" >&5
38935$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38936which seems to be undefined.  Please make sure it is defined" >&2;}
38937
38938  rm -f "$ac_tmp/stdin"
38939  case $ac_file in
38940  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38941  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38942  esac \
38943  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38944 ;;
38945  :H)
38946  #
38947  # CONFIG_HEADER
38948  #
38949  if test x"$ac_file" != x-; then
38950    {
38951      $as_echo "/* $configure_input  */" \
38952      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38953    } >"$ac_tmp/config.h" \
38954      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38955    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38956      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38957$as_echo "$as_me: $ac_file is unchanged" >&6;}
38958    else
38959      rm -f "$ac_file"
38960      mv "$ac_tmp/config.h" "$ac_file" \
38961	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
38962    fi
38963  else
38964    $as_echo "/* $configure_input  */" \
38965      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38966      || as_fn_error $? "could not create -" "$LINENO" 5
38967  fi
38968# Compute "$ac_file"'s index in $config_headers.
38969_am_arg="$ac_file"
38970_am_stamp_count=1
38971for _am_header in $config_headers :; do
38972  case $_am_header in
38973    $_am_arg | $_am_arg:* )
38974      break ;;
38975    * )
38976      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38977  esac
38978done
38979echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38980$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38981	 X"$_am_arg" : 'X\(//\)[^/]' \| \
38982	 X"$_am_arg" : 'X\(//\)$' \| \
38983	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38984$as_echo X"$_am_arg" |
38985    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38986	    s//\1/
38987	    q
38988	  }
38989	  /^X\(\/\/\)[^/].*/{
38990	    s//\1/
38991	    q
38992	  }
38993	  /^X\(\/\/\)$/{
38994	    s//\1/
38995	    q
38996	  }
38997	  /^X\(\/\).*/{
38998	    s//\1/
38999	    q
39000	  }
39001	  s/.*/./; q'`/stamp-h$_am_stamp_count
39002 ;;
39003
39004  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39005$as_echo "$as_me: executing $ac_file commands" >&6;}
39006 ;;
39007  esac
39008
39009
39010  case $ac_file$ac_mode in
39011    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
39012ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
39013ac_prefix_conf_PKG=`echo MagickCore`
39014ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
39015ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
39016ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
39017if test ".$ac_prefix_conf_INP" = "."; then
39018   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
39019     case "$ac_file" in
39020        *.h) ac_prefix_conf_INP=$ac_file ;;
39021        *)
39022     esac
39023     test ".$ac_prefix_conf_INP" != "." && break
39024   done
39025fi
39026if test ".$ac_prefix_conf_INP" = "."; then
39027   case "$ac_prefix_conf_OUT" in
39028      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
39029      ;;
39030      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
39031      ;;
39032      *) ac_prefix_conf_INP=config.h
39033      ;;
39034   esac
39035fi
39036if test -z "$ac_prefix_conf_PKG" ; then
39037   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
39038else
39039  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
39040     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
39041  fi fi
39042  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
39043$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
39044  if test -f $ac_prefix_conf_INP ; then
39045    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
39046    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
39047    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
39048    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
39049    $as_echo "#endif/" >> conftest.prefix
39050    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
39051    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
39052    $as_echo "#endif/" >> conftest.prefix
39053    # now executing _script on _DEF input to create _OUT output file
39054    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
39055    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
39056    echo ' ' >>$tmp/pconfig.h
39057    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
39058
39059    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
39060    echo ' ' >>$tmp/pconfig.h
39061    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
39062    echo "#endif" >>$tmp/pconfig.h
39063    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
39064      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
39065$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
39066    else
39067      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
39068$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39069	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
39070	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
39071	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
39072$as_echo X"$ac_prefix_conf_OUT" |
39073    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39074	    s//\1/
39075	    q
39076	  }
39077	  /^X\(\/\/\)[^/].*/{
39078	    s//\1/
39079	    q
39080	  }
39081	  /^X\(\/\/\)$/{
39082	    s//\1/
39083	    q
39084	  }
39085	  /^X\(\/\).*/{
39086	    s//\1/
39087	    q
39088	  }
39089	  s/.*/./; q'`
39090      as_dir="$ac_dir"; as_fn_mkdir_p
39091      rm -f "$ac_prefix_conf_OUT"
39092      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
39093    fi
39094  else
39095    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
39096  fi
39097  rm -f conftest.*
39098fi
39099 ;;
39100    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39101  # Older Autoconf quotes --file arguments for eval, but not when files
39102  # are listed without --file.  Let's play safe and only enable the eval
39103  # if we detect the quoting.
39104  # TODO: see whether this extra hack can be removed once we start
39105  # requiring Autoconf 2.70 or later.
39106  case $CONFIG_FILES in #(
39107  *\'*) :
39108    eval set x "$CONFIG_FILES" ;; #(
39109  *) :
39110    set x $CONFIG_FILES ;; #(
39111  *) :
39112     ;;
39113esac
39114  shift
39115  # Used to flag and report bootstrapping failures.
39116  am_rc=0
39117  for am_mf
39118  do
39119    # Strip MF so we end up with the name of the file.
39120    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
39121    # Check whether this is an Automake generated Makefile which includes
39122    # dependency-tracking related rules and includes.
39123    # Grep'ing the whole file directly is not great: AIX grep has a line
39124    # limit of 2048, but all sed's we know have understand at least 4000.
39125    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
39126      || continue
39127    am_dirpart=`$as_dirname -- "$am_mf" ||
39128$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39129	 X"$am_mf" : 'X\(//\)[^/]' \| \
39130	 X"$am_mf" : 'X\(//\)$' \| \
39131	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
39132$as_echo X"$am_mf" |
39133    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39134	    s//\1/
39135	    q
39136	  }
39137	  /^X\(\/\/\)[^/].*/{
39138	    s//\1/
39139	    q
39140	  }
39141	  /^X\(\/\/\)$/{
39142	    s//\1/
39143	    q
39144	  }
39145	  /^X\(\/\).*/{
39146	    s//\1/
39147	    q
39148	  }
39149	  s/.*/./; q'`
39150    am_filepart=`$as_basename -- "$am_mf" ||
39151$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
39152	 X"$am_mf" : 'X\(//\)$' \| \
39153	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
39154$as_echo X/"$am_mf" |
39155    sed '/^.*\/\([^/][^/]*\)\/*$/{
39156	    s//\1/
39157	    q
39158	  }
39159	  /^X\/\(\/\/\)$/{
39160	    s//\1/
39161	    q
39162	  }
39163	  /^X\/\(\/\).*/{
39164	    s//\1/
39165	    q
39166	  }
39167	  s/.*/./; q'`
39168    { echo "$as_me:$LINENO: cd "$am_dirpart" \
39169      && sed -e '/# am--include-marker/d' "$am_filepart" \
39170        | $MAKE -f - am--depfiles" >&5
39171   (cd "$am_dirpart" \
39172      && sed -e '/# am--include-marker/d' "$am_filepart" \
39173        | $MAKE -f - am--depfiles) >&5 2>&5
39174   ac_status=$?
39175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176   (exit $ac_status); } || am_rc=$?
39177  done
39178  if test $am_rc -ne 0; then
39179    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39181as_fn_error $? "Something went wrong bootstrapping makefile fragments
39182    for automatic dependency tracking.  Try re-running configure with the
39183    '--disable-dependency-tracking' option to at least be able to build
39184    the package (albeit without support for automatic dependency tracking).
39185See \`config.log' for more details" "$LINENO" 5; }
39186  fi
39187  { am_dirpart=; unset am_dirpart;}
39188  { am_filepart=; unset am_filepart;}
39189  { am_mf=; unset am_mf;}
39190  { am_rc=; unset am_rc;}
39191  rm -f conftest-deps.mk
39192}
39193 ;;
39194    "libtool":C)
39195
39196    # See if we are running on zsh, and set the options that allow our
39197    # commands through without removal of \ escapes.
39198    if test -n "${ZSH_VERSION+set}"; then
39199      setopt NO_GLOB_SUBST
39200    fi
39201
39202    cfgfile=${ofile}T
39203    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39204    $RM "$cfgfile"
39205
39206    cat <<_LT_EOF >> "$cfgfile"
39207#! $SHELL
39208# Generated automatically by $as_me ($PACKAGE) $VERSION
39209# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39210# NOTE: Changes made to this file will be lost: look at ltmain.sh.
39211
39212# Provide generalized library-building support services.
39213# Written by Gordon Matzigkeit, 1996
39214
39215# Copyright (C) 2014 Free Software Foundation, Inc.
39216# This is free software; see the source for copying conditions.  There is NO
39217# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39218
39219# GNU Libtool is free software; you can redistribute it and/or modify
39220# it under the terms of the GNU General Public License as published by
39221# the Free Software Foundation; either version 2 of of the License, or
39222# (at your option) any later version.
39223#
39224# As a special exception to the GNU General Public License, if you
39225# distribute this file as part of a program or library that is built
39226# using GNU Libtool, you may include this file under the  same
39227# distribution terms that you use for the rest of that program.
39228#
39229# GNU Libtool is distributed in the hope that it will be useful, but
39230# WITHOUT ANY WARRANTY; without even the implied warranty of
39231# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39232# GNU General Public License for more details.
39233#
39234# You should have received a copy of the GNU General Public License
39235# along with this program.  If not, see <http://www.gnu.org/licenses/>.
39236
39237
39238# The names of the tagged configurations supported by this script.
39239available_tags='CXX '
39240
39241# Configured defaults for sys_lib_dlsearch_path munging.
39242: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
39243
39244# ### BEGIN LIBTOOL CONFIG
39245
39246# A sed program that does not truncate output.
39247SED=$lt_SED
39248
39249# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39250Xsed="\$SED -e 1s/^X//"
39251
39252# A grep program that handles long lines.
39253GREP=$lt_GREP
39254
39255# An ERE matcher.
39256EGREP=$lt_EGREP
39257
39258# A literal string matcher.
39259FGREP=$lt_FGREP
39260
39261# Shell to use when invoking shell scripts.
39262SHELL=$lt_SHELL
39263
39264# An echo program that protects backslashes.
39265ECHO=$lt_ECHO
39266
39267# Which release of libtool.m4 was used?
39268macro_version=$macro_version
39269macro_revision=$macro_revision
39270
39271# Assembler program.
39272AS=$lt_AS
39273
39274# DLL creation program.
39275DLLTOOL=$lt_DLLTOOL
39276
39277# Object dumper program.
39278OBJDUMP=$lt_OBJDUMP
39279
39280# Whether or not to build shared libraries.
39281build_libtool_libs=$enable_shared
39282
39283# Whether or not to build static libraries.
39284build_old_libs=$enable_static
39285
39286# What type of objects to build.
39287pic_mode=$pic_mode
39288
39289# Whether or not to optimize for fast installation.
39290fast_install=$enable_fast_install
39291
39292# Shared archive member basename,for filename based shared library versioning on AIX.
39293shared_archive_member_spec=$shared_archive_member_spec
39294
39295# The PATH separator for the build system.
39296PATH_SEPARATOR=$lt_PATH_SEPARATOR
39297
39298# The host system.
39299host_alias=$host_alias
39300host=$host
39301host_os=$host_os
39302
39303# The build system.
39304build_alias=$build_alias
39305build=$build
39306build_os=$build_os
39307
39308# A BSD- or MS-compatible name lister.
39309NM=$lt_NM
39310
39311# Whether we need soft or hard links.
39312LN_S=$lt_LN_S
39313
39314# What is the maximum length of a command?
39315max_cmd_len=$max_cmd_len
39316
39317# Object file suffix (normally "o").
39318objext=$ac_objext
39319
39320# Executable file suffix (normally "").
39321exeext=$exeext
39322
39323# whether the shell understands "unset".
39324lt_unset=$lt_unset
39325
39326# turn spaces into newlines.
39327SP2NL=$lt_lt_SP2NL
39328
39329# turn newlines into spaces.
39330NL2SP=$lt_lt_NL2SP
39331
39332# convert \$build file names to \$host format.
39333to_host_file_cmd=$lt_cv_to_host_file_cmd
39334
39335# convert \$build files to toolchain format.
39336to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39337
39338# Method to check whether dependent libraries are shared objects.
39339deplibs_check_method=$lt_deplibs_check_method
39340
39341# Command to use when deplibs_check_method = "file_magic".
39342file_magic_cmd=$lt_file_magic_cmd
39343
39344# How to find potential files when deplibs_check_method = "file_magic".
39345file_magic_glob=$lt_file_magic_glob
39346
39347# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39348want_nocaseglob=$lt_want_nocaseglob
39349
39350# Command to associate shared and link libraries.
39351sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39352
39353# The archiver.
39354AR=$lt_AR
39355
39356# Flags to create an archive.
39357AR_FLAGS=$lt_AR_FLAGS
39358
39359# How to feed a file listing to the archiver.
39360archiver_list_spec=$lt_archiver_list_spec
39361
39362# A symbol stripping program.
39363STRIP=$lt_STRIP
39364
39365# Commands used to install an old-style archive.
39366RANLIB=$lt_RANLIB
39367old_postinstall_cmds=$lt_old_postinstall_cmds
39368old_postuninstall_cmds=$lt_old_postuninstall_cmds
39369
39370# Whether to use a lock for old archive extraction.
39371lock_old_archive_extraction=$lock_old_archive_extraction
39372
39373# A C compiler.
39374LTCC=$lt_CC
39375
39376# LTCC compiler flags.
39377LTCFLAGS=$lt_CFLAGS
39378
39379# Take the output of nm and produce a listing of raw symbols and C names.
39380global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39381
39382# Transform the output of nm in a proper C declaration.
39383global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39384
39385# Transform the output of nm into a list of symbols to manually relocate.
39386global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39387
39388# Transform the output of nm in a C name address pair.
39389global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39390
39391# Transform the output of nm in a C name address pair when lib prefix is needed.
39392global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39393
39394# The name lister interface.
39395nm_interface=$lt_lt_cv_nm_interface
39396
39397# Specify filename containing input files for \$NM.
39398nm_file_list_spec=$lt_nm_file_list_spec
39399
39400# The root where to search for dependent libraries,and where our libraries should be installed.
39401lt_sysroot=$lt_sysroot
39402
39403# Command to truncate a binary pipe.
39404lt_truncate_bin=$lt_lt_cv_truncate_bin
39405
39406# The name of the directory that contains temporary libtool files.
39407objdir=$objdir
39408
39409# Used to examine libraries when file_magic_cmd begins with "file".
39410MAGIC_CMD=$MAGIC_CMD
39411
39412# Must we lock files when doing compilation?
39413need_locks=$lt_need_locks
39414
39415# Manifest tool.
39416MANIFEST_TOOL=$lt_MANIFEST_TOOL
39417
39418# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39419DSYMUTIL=$lt_DSYMUTIL
39420
39421# Tool to change global to local symbols on Mac OS X.
39422NMEDIT=$lt_NMEDIT
39423
39424# Tool to manipulate fat objects and archives on Mac OS X.
39425LIPO=$lt_LIPO
39426
39427# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39428OTOOL=$lt_OTOOL
39429
39430# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39431OTOOL64=$lt_OTOOL64
39432
39433# Old archive suffix (normally "a").
39434libext=$libext
39435
39436# Shared library suffix (normally ".so").
39437shrext_cmds=$lt_shrext_cmds
39438
39439# The commands to extract the exported symbol list from a shared archive.
39440extract_expsyms_cmds=$lt_extract_expsyms_cmds
39441
39442# Variables whose values should be saved in libtool wrapper scripts and
39443# restored at link time.
39444variables_saved_for_relink=$lt_variables_saved_for_relink
39445
39446# Do we need the "lib" prefix for modules?
39447need_lib_prefix=$need_lib_prefix
39448
39449# Do we need a version for libraries?
39450need_version=$need_version
39451
39452# Library versioning type.
39453version_type=$version_type
39454
39455# Shared library runtime path variable.
39456runpath_var=$runpath_var
39457
39458# Shared library path variable.
39459shlibpath_var=$shlibpath_var
39460
39461# Is shlibpath searched before the hard-coded library search path?
39462shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39463
39464# Format of library name prefix.
39465libname_spec=$lt_libname_spec
39466
39467# List of archive names.  First name is the real one, the rest are links.
39468# The last name is the one that the linker finds with -lNAME
39469library_names_spec=$lt_library_names_spec
39470
39471# The coded name of the library, if different from the real name.
39472soname_spec=$lt_soname_spec
39473
39474# Permission mode override for installation of shared libraries.
39475install_override_mode=$lt_install_override_mode
39476
39477# Command to use after installation of a shared archive.
39478postinstall_cmds=$lt_postinstall_cmds
39479
39480# Command to use after uninstallation of a shared archive.
39481postuninstall_cmds=$lt_postuninstall_cmds
39482
39483# Commands used to finish a libtool library installation in a directory.
39484finish_cmds=$lt_finish_cmds
39485
39486# As "finish_cmds", except a single script fragment to be evaled but
39487# not shown.
39488finish_eval=$lt_finish_eval
39489
39490# Whether we should hardcode library paths into libraries.
39491hardcode_into_libs=$hardcode_into_libs
39492
39493# Compile-time system search path for libraries.
39494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39495
39496# Detected run-time system search path for libraries.
39497sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39498
39499# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39500configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
39501
39502# Whether dlopen is supported.
39503dlopen_support=$enable_dlopen
39504
39505# Whether dlopen of programs is supported.
39506dlopen_self=$enable_dlopen_self
39507
39508# Whether dlopen of statically linked programs is supported.
39509dlopen_self_static=$enable_dlopen_self_static
39510
39511# Commands to strip libraries.
39512old_striplib=$lt_old_striplib
39513striplib=$lt_striplib
39514
39515
39516# The linker used to build libraries.
39517LD=$lt_LD
39518
39519# How to create reloadable object files.
39520reload_flag=$lt_reload_flag
39521reload_cmds=$lt_reload_cmds
39522
39523# Commands used to build an old-style archive.
39524old_archive_cmds=$lt_old_archive_cmds
39525
39526# A language specific compiler.
39527CC=$lt_compiler
39528
39529# Is the compiler the GNU compiler?
39530with_gcc=$GCC
39531
39532# Compiler flag to turn off builtin functions.
39533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39534
39535# Additional compiler flags for building library objects.
39536pic_flag=$lt_lt_prog_compiler_pic
39537
39538# How to pass a linker flag through the compiler.
39539wl=$lt_lt_prog_compiler_wl
39540
39541# Compiler flag to prevent dynamic linking.
39542link_static_flag=$lt_lt_prog_compiler_static
39543
39544# Does compiler simultaneously support -c and -o options?
39545compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39546
39547# Whether or not to add -lc for building shared libraries.
39548build_libtool_need_lc=$archive_cmds_need_lc
39549
39550# Whether or not to disallow shared libs when runtime libs are static.
39551allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39552
39553# Compiler flag to allow reflexive dlopens.
39554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39555
39556# Compiler flag to generate shared objects directly from archives.
39557whole_archive_flag_spec=$lt_whole_archive_flag_spec
39558
39559# Whether the compiler copes with passing no objects directly.
39560compiler_needs_object=$lt_compiler_needs_object
39561
39562# Create an old-style archive from a shared archive.
39563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39564
39565# Create a temporary old-style archive to link instead of a shared archive.
39566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39567
39568# Commands used to build a shared archive.
39569archive_cmds=$lt_archive_cmds
39570archive_expsym_cmds=$lt_archive_expsym_cmds
39571
39572# Commands used to build a loadable module if different from building
39573# a shared archive.
39574module_cmds=$lt_module_cmds
39575module_expsym_cmds=$lt_module_expsym_cmds
39576
39577# Whether we are building with GNU ld or not.
39578with_gnu_ld=$lt_with_gnu_ld
39579
39580# Flag that allows shared libraries with undefined symbols to be built.
39581allow_undefined_flag=$lt_allow_undefined_flag
39582
39583# Flag that enforces no undefined symbols.
39584no_undefined_flag=$lt_no_undefined_flag
39585
39586# Flag to hardcode \$libdir into a binary during linking.
39587# This must work even if \$libdir does not exist
39588hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39589
39590# Whether we need a single "-rpath" flag with a separated argument.
39591hardcode_libdir_separator=$lt_hardcode_libdir_separator
39592
39593# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39594# DIR into the resulting binary.
39595hardcode_direct=$hardcode_direct
39596
39597# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39598# DIR into the resulting binary and the resulting library dependency is
39599# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39600# library is relocated.
39601hardcode_direct_absolute=$hardcode_direct_absolute
39602
39603# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39604# into the resulting binary.
39605hardcode_minus_L=$hardcode_minus_L
39606
39607# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39608# into the resulting binary.
39609hardcode_shlibpath_var=$hardcode_shlibpath_var
39610
39611# Set to "yes" if building a shared library automatically hardcodes DIR
39612# into the library and all subsequent libraries and executables linked
39613# against it.
39614hardcode_automatic=$hardcode_automatic
39615
39616# Set to yes if linker adds runtime paths of dependent libraries
39617# to runtime path list.
39618inherit_rpath=$inherit_rpath
39619
39620# Whether libtool must link a program against all its dependency libraries.
39621link_all_deplibs=$link_all_deplibs
39622
39623# Set to "yes" if exported symbols are required.
39624always_export_symbols=$always_export_symbols
39625
39626# The commands to list exported symbols.
39627export_symbols_cmds=$lt_export_symbols_cmds
39628
39629# Symbols that should not be listed in the preloaded symbols.
39630exclude_expsyms=$lt_exclude_expsyms
39631
39632# Symbols that must always be exported.
39633include_expsyms=$lt_include_expsyms
39634
39635# Commands necessary for linking programs (against libraries) with templates.
39636prelink_cmds=$lt_prelink_cmds
39637
39638# Commands necessary for finishing linking programs.
39639postlink_cmds=$lt_postlink_cmds
39640
39641# Specify filename containing input files.
39642file_list_spec=$lt_file_list_spec
39643
39644# How to hardcode a shared library path into an executable.
39645hardcode_action=$hardcode_action
39646
39647# The directories searched by this compiler when creating a shared library.
39648compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
39649
39650# Dependencies to place before and after the objects being linked to
39651# create a shared library.
39652predep_objects=$lt_predep_objects
39653postdep_objects=$lt_postdep_objects
39654predeps=$lt_predeps
39655postdeps=$lt_postdeps
39656
39657# The library search path used internally by the compiler when linking
39658# a shared library.
39659compiler_lib_search_path=$lt_compiler_lib_search_path
39660
39661# ### END LIBTOOL CONFIG
39662
39663_LT_EOF
39664
39665    cat <<'_LT_EOF' >> "$cfgfile"
39666
39667# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
39668
39669# func_munge_path_list VARIABLE PATH
39670# -----------------------------------
39671# VARIABLE is name of variable containing _space_ separated list of
39672# directories to be munged by the contents of PATH, which is string
39673# having a format:
39674# "DIR[:DIR]:"
39675#       string "DIR[ DIR]" will be prepended to VARIABLE
39676# ":DIR[:DIR]"
39677#       string "DIR[ DIR]" will be appended to VARIABLE
39678# "DIRP[:DIRP]::[DIRA:]DIRA"
39679#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
39680#       "DIRA[ DIRA]" will be appended to VARIABLE
39681# "DIR[:DIR]"
39682#       VARIABLE will be replaced by "DIR[ DIR]"
39683func_munge_path_list ()
39684{
39685    case x$2 in
39686    x)
39687        ;;
39688    *:)
39689        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
39690        ;;
39691    x:*)
39692        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
39693        ;;
39694    *::*)
39695        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
39696        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
39697        ;;
39698    *)
39699        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
39700        ;;
39701    esac
39702}
39703
39704
39705# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
39706func_cc_basename ()
39707{
39708    for cc_temp in $*""; do
39709      case $cc_temp in
39710        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39711        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39712        \-*) ;;
39713        *) break;;
39714      esac
39715    done
39716    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
39717}
39718
39719
39720# ### END FUNCTIONS SHARED WITH CONFIGURE
39721
39722_LT_EOF
39723
39724  case $host_os in
39725  aix3*)
39726    cat <<\_LT_EOF >> "$cfgfile"
39727# AIX sometimes has problems with the GCC collect2 program.  For some
39728# reason, if we set the COLLECT_NAMES environment variable, the problems
39729# vanish in a puff of smoke.
39730if test set != "${COLLECT_NAMES+set}"; then
39731  COLLECT_NAMES=
39732  export COLLECT_NAMES
39733fi
39734_LT_EOF
39735    ;;
39736  esac
39737
39738
39739ltmain=$ac_aux_dir/ltmain.sh
39740
39741
39742  # We use sed instead of cat because bash on DJGPP gets confused if
39743  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
39744  # text mode, it properly converts lines to CR/LF.  This bash problem
39745  # is reportedly fixed, but why not run on old versions too?
39746  sed '$q' "$ltmain" >> "$cfgfile" \
39747     || (rm -f "$cfgfile"; exit 1)
39748
39749   mv -f "$cfgfile" "$ofile" ||
39750    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39751  chmod +x "$ofile"
39752
39753
39754    cat <<_LT_EOF >> "$ofile"
39755
39756# ### BEGIN LIBTOOL TAG CONFIG: CXX
39757
39758# The linker used to build libraries.
39759LD=$lt_LD_CXX
39760
39761# How to create reloadable object files.
39762reload_flag=$lt_reload_flag_CXX
39763reload_cmds=$lt_reload_cmds_CXX
39764
39765# Commands used to build an old-style archive.
39766old_archive_cmds=$lt_old_archive_cmds_CXX
39767
39768# A language specific compiler.
39769CC=$lt_compiler_CXX
39770
39771# Is the compiler the GNU compiler?
39772with_gcc=$GCC_CXX
39773
39774# Compiler flag to turn off builtin functions.
39775no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
39776
39777# Additional compiler flags for building library objects.
39778pic_flag=$lt_lt_prog_compiler_pic_CXX
39779
39780# How to pass a linker flag through the compiler.
39781wl=$lt_lt_prog_compiler_wl_CXX
39782
39783# Compiler flag to prevent dynamic linking.
39784link_static_flag=$lt_lt_prog_compiler_static_CXX
39785
39786# Does compiler simultaneously support -c and -o options?
39787compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
39788
39789# Whether or not to add -lc for building shared libraries.
39790build_libtool_need_lc=$archive_cmds_need_lc_CXX
39791
39792# Whether or not to disallow shared libs when runtime libs are static.
39793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
39794
39795# Compiler flag to allow reflexive dlopens.
39796export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
39797
39798# Compiler flag to generate shared objects directly from archives.
39799whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
39800
39801# Whether the compiler copes with passing no objects directly.
39802compiler_needs_object=$lt_compiler_needs_object_CXX
39803
39804# Create an old-style archive from a shared archive.
39805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
39806
39807# Create a temporary old-style archive to link instead of a shared archive.
39808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
39809
39810# Commands used to build a shared archive.
39811archive_cmds=$lt_archive_cmds_CXX
39812archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
39813
39814# Commands used to build a loadable module if different from building
39815# a shared archive.
39816module_cmds=$lt_module_cmds_CXX
39817module_expsym_cmds=$lt_module_expsym_cmds_CXX
39818
39819# Whether we are building with GNU ld or not.
39820with_gnu_ld=$lt_with_gnu_ld_CXX
39821
39822# Flag that allows shared libraries with undefined symbols to be built.
39823allow_undefined_flag=$lt_allow_undefined_flag_CXX
39824
39825# Flag that enforces no undefined symbols.
39826no_undefined_flag=$lt_no_undefined_flag_CXX
39827
39828# Flag to hardcode \$libdir into a binary during linking.
39829# This must work even if \$libdir does not exist
39830hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
39831
39832# Whether we need a single "-rpath" flag with a separated argument.
39833hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
39834
39835# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39836# DIR into the resulting binary.
39837hardcode_direct=$hardcode_direct_CXX
39838
39839# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39840# DIR into the resulting binary and the resulting library dependency is
39841# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39842# library is relocated.
39843hardcode_direct_absolute=$hardcode_direct_absolute_CXX
39844
39845# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39846# into the resulting binary.
39847hardcode_minus_L=$hardcode_minus_L_CXX
39848
39849# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39850# into the resulting binary.
39851hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
39852
39853# Set to "yes" if building a shared library automatically hardcodes DIR
39854# into the library and all subsequent libraries and executables linked
39855# against it.
39856hardcode_automatic=$hardcode_automatic_CXX
39857
39858# Set to yes if linker adds runtime paths of dependent libraries
39859# to runtime path list.
39860inherit_rpath=$inherit_rpath_CXX
39861
39862# Whether libtool must link a program against all its dependency libraries.
39863link_all_deplibs=$link_all_deplibs_CXX
39864
39865# Set to "yes" if exported symbols are required.
39866always_export_symbols=$always_export_symbols_CXX
39867
39868# The commands to list exported symbols.
39869export_symbols_cmds=$lt_export_symbols_cmds_CXX
39870
39871# Symbols that should not be listed in the preloaded symbols.
39872exclude_expsyms=$lt_exclude_expsyms_CXX
39873
39874# Symbols that must always be exported.
39875include_expsyms=$lt_include_expsyms_CXX
39876
39877# Commands necessary for linking programs (against libraries) with templates.
39878prelink_cmds=$lt_prelink_cmds_CXX
39879
39880# Commands necessary for finishing linking programs.
39881postlink_cmds=$lt_postlink_cmds_CXX
39882
39883# Specify filename containing input files.
39884file_list_spec=$lt_file_list_spec_CXX
39885
39886# How to hardcode a shared library path into an executable.
39887hardcode_action=$hardcode_action_CXX
39888
39889# The directories searched by this compiler when creating a shared library.
39890compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
39891
39892# Dependencies to place before and after the objects being linked to
39893# create a shared library.
39894predep_objects=$lt_predep_objects_CXX
39895postdep_objects=$lt_postdep_objects_CXX
39896predeps=$lt_predeps_CXX
39897postdeps=$lt_postdeps_CXX
39898
39899# The library search path used internally by the compiler when linking
39900# a shared library.
39901compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
39902
39903# ### END LIBTOOL TAG CONFIG: CXX
39904_LT_EOF
39905
39906 ;;
39907    "magick.sh.in":C) chmod +x magick.sh ;;
39908    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
39909    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
39910    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
39911    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
39912
39913  esac
39914done # for ac_tag
39915
39916
39917as_fn_exit 0
39918_ACEOF
39919ac_clean_files=$ac_clean_files_save
39920
39921test $ac_write_fail = 0 ||
39922  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39923
39924
39925# configure is writing to config.log, and then calls config.status.
39926# config.status does its own redirection, appending to config.log.
39927# Unfortunately, on DOS this fails, as config.log is still kept open
39928# by configure, so config.status won't be able to write to it; its
39929# output is simply discarded.  So we exec the FD to /dev/null,
39930# effectively closing config.log, so it can be properly (re)opened and
39931# appended to by config.status.  When coming back to configure, we
39932# need to make the FD available again.
39933if test "$no_create" != yes; then
39934  ac_cs_success=:
39935  ac_config_status_args=
39936  test "$silent" = yes &&
39937    ac_config_status_args="$ac_config_status_args --quiet"
39938  exec 5>/dev/null
39939  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39940  exec 5>>config.log
39941  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39942  # would make configure fail if this is the last instruction.
39943  $ac_cs_success || as_fn_exit 1
39944fi
39945if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39946  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39947$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39948fi
39949
39950
39951# ==============================================================================
39952# ImageMagick Configuration
39953# ==============================================================================
39954{ $as_echo "$as_me:${as_lineno-$LINENO}:
39955==============================================================================
39956ImageMagick is configured as follows. Please verify that this configuration
39957matches your expectations.
39958
39959  Host system type: $host
39960  Build system type: $build
39961
39962                 Option                        Value
39963  ------------------------------------------------------------------------------
39964  Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
39965  Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
39966  Build utilities   --with-utilities=$with_utilities        $with_utilities
39967  Module support    --with-modules=$build_modules		$build_modules
39968  GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
39969  Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
39970  High Dynamic Range Imagery
39971                    --enable-hdri=$enable_hdri		$enable_hdri
39972
39973  Install documentation:			$wantdocs
39974
39975  Delegate Library Configuration:
39976  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
39977  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
39978  DJVU              --with-djvu=$with_djvu		$have_djvu
39979  DPS               --with-dps=$with_dps		$have_dps
39980  FFTW              --with-fftw=$with_fftw		$have_fftw
39981  FLIF              --with-flif=$with_flif		$have_flif
39982  FlashPIX          --with-fpx=$with_fpx		$have_fpx
39983  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
39984  FreeType          --with-freetype=$with_freetype		$have_freetype
39985  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
39986  Graphviz          --with-gvc=$with_gvc		$have_gvc
39987  HEIC              --with-heic=$with_heic             $have_heic
39988  JBIG              --with-jbig=$with_jbig		$have_jbig
39989  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
39990  LCMS              --with-lcms=$with_lcms		$have_lcms
39991  LQR               --with-lqr=$with_lqr		$have_lqr
39992  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
39993  LZMA              --with-lzma=$with_lzma		$have_lzma
39994  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
39995  OpenEXR           --with-openexr=$with_openexr		$have_openexr
39996  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
39997  PANGO             --with-pango=$with_pango		$have_pango
39998  PERL              --with-perl=$with_perl		$have_perl
39999  PNG               --with-png=$with_png		$have_png
40000  RAQM              --with-raqm=$with_raqm		$have_raqm
40001  RAW               --with-raw=$with_raw 	   	$have_raw
40002  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
40003  TIFF              --with-tiff=$with_tiff		$have_tiff
40004  WEBP              --with-webp=$with_webp		$have_webp
40005  WMF               --with-wmf=$with_wmf		$have_wmf
40006  X11               --with-x=$with_x			$have_x
40007  XML               --with-xml=$with_xml		$have_xml
40008  ZLIB              --with-zlib=$with_zlib		$have_zlib
40009  ZSTD              --with-zstd=$with_zstd		$have_zstd
40010
40011  Delegate Program Configuration:
40012  GhostPCL          None				$PCLDelegate ($PCLVersion)
40013  GhostXPS          None				$XPSDelegate ($XPSVersion)
40014  Ghostscript       None				$PSDelegate ($GSVersion)
40015
40016  Font Configuration:
40017  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
40018  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
40019  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
40020  URW-base35 fonts  --with-urw-base35-font-dir=$with_urw_base35_font_dir  $result_urw_base35_font_dir
40021  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
40022
40023  X11 Configuration:
40024        X_CFLAGS        = $X_CFLAGS
40025        X_PRE_LIBS      = $X_PRE_LIBS
40026        X_LIBS          = $X_LIBS
40027        X_EXTRA_LIBS    = $X_EXTRA_LIBS
40028
40029  Options used to compile and link:
40030    PREFIX          = $PREFIX_DIR
40031    EXEC-PREFIX     = $EXEC_PREFIX_DIR
40032    VERSION         = $PACKAGE_VERSION
40033    CC              = $CC
40034    CFLAGS          = $CFLAGS
40035    CPPFLAGS        = $CPPFLAGS
40036    PCFLAGS         = $PCFLAGS
40037    DEFS            = $DEFS
40038    LDFLAGS         = $LDFLAGS
40039    LIBS            = $MAGICK_DEP_LIBS
40040    CXX             = $CXX
40041    CXXFLAGS        = $CXXFLAGS
40042    FEATURES        = $MAGICK_FEATURES
40043    DELEGATES       = $MAGICK_DELEGATES
40044==============================================================================
40045" >&5
40046$as_echo "$as_me:
40047==============================================================================
40048ImageMagick is configured as follows. Please verify that this configuration
40049matches your expectations.
40050
40051  Host system type: $host
40052  Build system type: $build
40053
40054                 Option                        Value
40055  ------------------------------------------------------------------------------
40056  Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
40057  Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
40058  Build utilities   --with-utilities=$with_utilities        $with_utilities
40059  Module support    --with-modules=$build_modules		$build_modules
40060  GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
40061  Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
40062  High Dynamic Range Imagery
40063                    --enable-hdri=$enable_hdri		$enable_hdri
40064
40065  Install documentation:			$wantdocs
40066
40067  Delegate Library Configuration:
40068  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
40069  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
40070  DJVU              --with-djvu=$with_djvu		$have_djvu
40071  DPS               --with-dps=$with_dps		$have_dps
40072  FFTW              --with-fftw=$with_fftw		$have_fftw
40073  FLIF              --with-flif=$with_flif		$have_flif
40074  FlashPIX          --with-fpx=$with_fpx		$have_fpx
40075  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
40076  FreeType          --with-freetype=$with_freetype		$have_freetype
40077  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
40078  Graphviz          --with-gvc=$with_gvc		$have_gvc
40079  HEIC              --with-heic=$with_heic             $have_heic
40080  JBIG              --with-jbig=$with_jbig		$have_jbig
40081  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
40082  LCMS              --with-lcms=$with_lcms		$have_lcms
40083  LQR               --with-lqr=$with_lqr		$have_lqr
40084  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
40085  LZMA              --with-lzma=$with_lzma		$have_lzma
40086  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
40087  OpenEXR           --with-openexr=$with_openexr		$have_openexr
40088  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
40089  PANGO             --with-pango=$with_pango		$have_pango
40090  PERL              --with-perl=$with_perl		$have_perl
40091  PNG               --with-png=$with_png		$have_png
40092  RAQM              --with-raqm=$with_raqm		$have_raqm
40093  RAW               --with-raw=$with_raw 	   	$have_raw
40094  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
40095  TIFF              --with-tiff=$with_tiff		$have_tiff
40096  WEBP              --with-webp=$with_webp		$have_webp
40097  WMF               --with-wmf=$with_wmf		$have_wmf
40098  X11               --with-x=$with_x			$have_x
40099  XML               --with-xml=$with_xml		$have_xml
40100  ZLIB              --with-zlib=$with_zlib		$have_zlib
40101  ZSTD              --with-zstd=$with_zstd		$have_zstd
40102
40103  Delegate Program Configuration:
40104  GhostPCL          None				$PCLDelegate ($PCLVersion)
40105  GhostXPS          None				$XPSDelegate ($XPSVersion)
40106  Ghostscript       None				$PSDelegate ($GSVersion)
40107
40108  Font Configuration:
40109  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
40110  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
40111  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
40112  URW-base35 fonts  --with-urw-base35-font-dir=$with_urw_base35_font_dir  $result_urw_base35_font_dir
40113  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
40114
40115  X11 Configuration:
40116        X_CFLAGS        = $X_CFLAGS
40117        X_PRE_LIBS      = $X_PRE_LIBS
40118        X_LIBS          = $X_LIBS
40119        X_EXTRA_LIBS    = $X_EXTRA_LIBS
40120
40121  Options used to compile and link:
40122    PREFIX          = $PREFIX_DIR
40123    EXEC-PREFIX     = $EXEC_PREFIX_DIR
40124    VERSION         = $PACKAGE_VERSION
40125    CC              = $CC
40126    CFLAGS          = $CFLAGS
40127    CPPFLAGS        = $CPPFLAGS
40128    PCFLAGS         = $PCFLAGS
40129    DEFS            = $DEFS
40130    LDFLAGS         = $LDFLAGS
40131    LIBS            = $MAGICK_DEP_LIBS
40132    CXX             = $CXX
40133    CXXFLAGS        = $CXXFLAGS
40134    FEATURES        = $MAGICK_FEATURES
40135    DELEGATES       = $MAGICK_DELEGATES
40136==============================================================================
40137" >&6;}
40138