1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.2-5.
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.2-5'
594PACKAGE_STRING='ImageMagick 7.0.2-5'
595PACKAGE_BUGREPORT='https://github.com/ImageMagick/ImageMagick/issues'
596PACKAGE_URL='http://www.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_DEP_LIBS
646OSX_GCOV_LDFLAG
647MAGICK_FEATURES
648MAGICK_DELEGATES
649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
676ZIP
677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
679P7ZIP
680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687windows_font_dir
688ghostscript_font_dir
689dejavu_font_dir
690apple_font_dir
691PrintDelegate
692XPSDelegate
693WWWDecodeDelegate
694WebPEncodeDelegate
695WebPDecodeDelegate
696UniconvertorDelegate
697SVGDecodeDelegate
698RSVGDecodeDelegate
699RMDelegate
700PSDelegate
701PCLDelegate
702MVDelegate
703MrSIDDecodeDelegate
704MPEGEncodeDelegate
705MPEGDecodeDelegate
706MogrifyDelegate
707LaunchDelegate
708LPRDelegate
709LPDelegate
710JXREncodeDelegate
711JXRDecodeDelegate
712ILBMEncodeDelegate
713ILBMDecodeDelegate
714HTMLDecodeDelegate
715HPGLDecodeDelegate
716GVCDecodeDelegate
717EditorDelegate
718DisplayDelegate
719ConvertDelegate
720DVIDecodeDelegate
721DOCDecodeDelegate
722DNGDecodeDelegate
723BrowseDelegate
724BlenderDecodeDelegate
725BPGEncodeDelegate
726BPGDecodeDelegate
727SHAREARCH_PATH
728SHAREARCH_RELATIVE_PATH
729SHAREARCH_DIRNAME
730SHAREARCH_BASEDIRNAME
731SHARE_PATH
732CONFIGURE_PATH
733INSTALL_DOC_FALSE
734INSTALL_DOC_TRUE
735DOCUMENTATION_PATH
736FILTER_PATH
737FILTER_DIRNAME
738CODER_PATH
739CODER_DIRNAME
740MODULES_PATH
741MODULES_RELATIVE_PATH
742MODULES_DIRNAME
743MODULES_BASEDIRNAME
744LIB_BIN_DIR_PATH
745LIB_BIN_DIR_RELATIVE_PATH
746LIB_BIN_DIR
747LIB_BIN_BASEDIRNAME
748LIBRARY_PATH
749EXECUTABLE_PATH
750INCLUDEARCH_PATH
751INCLUDE_PATH
752PERLMAINCC
753XML_DELEGATE_FALSE
754XML_DELEGATE_TRUE
755XML_LIBS
756XML_CFLAGS
757WMF_LIBS
758WMF_CFLAGS
759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
764TIFF_LIBS
765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
773RSVG_LIBS
774RSVG_CFLAGS
775PNG_DELEGATE_FALSE
776PNG_DELEGATE_TRUE
777PNG_LIBS
778PNG_CFLAGS
779PANGOCAIRO_DELEGATE_FALSE
780PANGOCAIRO_DELEGATE_TRUE
781PANGO_DELEGATE_FALSE
782PANGO_DELEGATE_TRUE
783PANGO_LIBS
784PANGO_CFLAGS
785OPENEXR_DELEGATE_FALSE
786OPENEXR_DELEGATE_TRUE
787OPENEXR_LIBS
788OPENEXR_CFLAGS
789LZMA_DELEGATE_FALSE
790LZMA_DELEGATE_TRUE
791LZMA_LIBS
792LZMA_CFLAGS
793LQR_DELEGATE_FALSE
794LQR_DELEGATE_TRUE
795LQR_LIBS
796LQR_CFLAGS
797LIBOPENJP2_DELEGATE_FALSE
798LIBOPENJP2_DELEGATE_TRUE
799LIBOPENJP2_LIBS
800LIBOPENJP2_CFLAGS
801LCMS_LIBS
802LCMS_CFLAGS
803LCMS_DELEGATE_FALSE
804LCMS_DELEGATE_TRUE
805LCMS2_LIBS
806LCMS2_CFLAGS
807JPEG_LIBS
808JPEG_DELEGATE_FALSE
809JPEG_DELEGATE_TRUE
810JBIG_LIBS
811JBIG_DELEGATE_FALSE
812JBIG_DELEGATE_TRUE
813GVC_DELEGATE_FALSE
814GVC_DELEGATE_TRUE
815GVC_LIBS
816GVC_CFLAGS
817GS_LIBS
818GS_DELEGATE_FALSE
819GS_DELEGATE_TRUE
820RAQM_DELEGATE_FALSE
821RAQM_DELEGATE_TRUE
822RAQM_LIBS
823RAQM_CFLAGS
824FREETYPE_DELEGATE_FALSE
825FREETYPE_DELEGATE_TRUE
826FREETYPE_LIBS
827FREETYPE_CFLAGS
828FONTCONFIG_DELEGATE_FALSE
829FONTCONFIG_DELEGATE_TRUE
830FONTCONFIG_LIBS
831FONTCONFIG_CFLAGS
832DJVU_LIBS
833DJVU_CFLAGS
834DJVU_DELEGATE_FALSE
835DJVU_DELEGATE_TRUE
836ddjvuapi_LIBS
837ddjvuapi_CFLAGS
838FPX_LIBS
839FPX_DELEGATE_FALSE
840FPX_DELEGATE_TRUE
841FLIF_LIBS
842FLIF_DELEGATE_FALSE
843FLIF_DELEGATE_TRUE
844FFTW_LIBS
845FFTW_CFLAGS
846FFTW_DELEGATE_FALSE
847FFTW_DELEGATE_TRUE
848fftw3_LIBS
849fftw3_CFLAGS
850DPS_LIBS
851DPS_DELEGATE_FALSE
852DPS_DELEGATE_TRUE
853AUTOTRACE_DELEGATE_FALSE
854AUTOTRACE_DELEGATE_TRUE
855AUTOTRACE_LIBS
856AUTOTRACE_CFLAGS
857LIB_DL
858WITH_LTDL_FALSE
859WITH_LTDL_TRUE
860ZLIB_DELEGATE_FALSE
861ZLIB_DELEGATE_TRUE
862ZLIB_LIBS
863ZLIB_CFLAGS
864XEXT_LIBS
865X11_LIBS
866X11_DELEGATE_FALSE
867X11_DELEGATE_TRUE
868X_EXTRA_LIBS
869X_LIBS
870X_PRE_LIBS
871X_CFLAGS
872XMKMF
873BZLIB_LIBS
874BZLIB_DELEGATE_FALSE
875BZLIB_DELEGATE_TRUE
876CCMALLOCDelegate
877UMEM_LIBS
878HasUMEM_FALSE
879HasUMEM_TRUE
880JEMALLOC_LIBS
881HasJEMALLOC_FALSE
882HasJEMALLOC_TRUE
883GOMP_LIBS
884WITH_MAGICK_PLUS_PLUS_FALSE
885WITH_MAGICK_PLUS_PLUS_TRUE
886OPENMP_CXXFLAGS
887MATH_LIBS
888POW_LIB
889LIBOBJS
890UINTPTR_F
891UINTPTR_T
892UINTMAX_F
893UINTMAX_T
894UINT64_F
895UINT64_T
896INT64_F
897INT64_T
898UINT32_F
899UINT32_T
900INT32_F
901INT32_T
902UINT16_T
903INT16_T
904UINT8_T
905INT8_T
906LIBRARY_EXTRA_CPPFLAGS
907MODULE_EXTRA_CPPFLAGS
908LIBSTDCLDFLAGS
909PERL_MAKE_OPTIONS
910MAGICK_LT_RELEASE_OPTS
911MAGICK_ABI_SUFFIX
912QUANTUM_DEPTH
913LEGACY_SUPPORT_FALSE
914LEGACY_SUPPORT_TRUE
915MAINT
916MAINTAINER_MODE_FALSE
917MAINTAINER_MODE_TRUE
918MAGICK_HDRI
919WITH_MODULES_FALSE
920WITH_MODULES_TRUE
921WITH_SHARED_LIBS_FALSE
922WITH_SHARED_LIBS_TRUE
923LIBTOOL_DEPS
924CXXCPP
925LT_SYS_LIBRARY_PATH
926OTOOL64
927OTOOL
928LIPO
929NMEDIT
930DSYMUTIL
931MANIFEST_TOOL
932RANLIB
933NM
934ac_ct_DUMPBIN
935DUMPBIN
936LIBTOOL
937OBJDUMP
938DLLTOOL
939AS
940LFS_CPPFLAGS
941CL_LIBS
942CL_CFLAGS
943OPENMP_CFLAGS
944THREAD_LIBS
945PTHREAD_CFLAGS
946PTHREAD_LIBS
947PTHREAD_CC
948ax_pthread_config
949pkgconfigdir
950SHAREARCH_DIR
951INCLUDEARCH_DIR
952WinPathScript
953USING_CL_FALSE
954USING_CL_TRUE
955CYGWIN_BUILD_FALSE
956CYGWIN_BUILD_TRUE
957WIN32_NATIVE_BUILD_FALSE
958WIN32_NATIVE_BUILD_TRUE
959WINGDI32_DELEGATE_FALSE
960WINGDI32_DELEGATE_TRUE
961GDI32_LIBS
962HAVE_LD_VERSION_SCRIPT_FALSE
963HAVE_LD_VERSION_SCRIPT_TRUE
964WARN_SCANNERFLAGS
965WARN_LDFLAGS
966WARN_CXXFLAGS
967WARN_CFLAGS
968PKG_CONFIG_LIBDIR
969PKG_CONFIG_PATH
970PKG_CONFIG
971PRTDIAG
972LN_S
973LD
974FGREP
975SED
976am__fastdepCXX_FALSE
977am__fastdepCXX_TRUE
978CXXDEPMODE
979ac_ct_CXX
980CXXFLAGS
981CXX
982ac_ct_AR
983AR
984EGREP
985GREP
986CPP
987am__fastdepCC_FALSE
988am__fastdepCC_TRUE
989CCDEPMODE
990am__nodep
991AMDEPBACKSLASH
992AMDEP_FALSE
993AMDEP_TRUE
994am__quote
995am__include
996DEPDIR
997OBJEXT
998EXEEXT
999ac_ct_CC
1000CPPFLAGS
1001LDFLAGS
1002CFLAGS
1003CC
1004DIRSEP
1005MAGICK_FILTER_MODULE_PATH
1006MAGICK_CONFIGURE_BUILD_PATH
1007MAGICK_CONFIGURE_SRC_PATH
1008MAGICK_CODER_MODULE_PATH
1009MAN_DIR
1010INFO_DIR
1011PERSISTINCLUDE_DIR
1012INCLUDE_DIR
1013LIB_DIR
1014LOCALSTATE_DIR
1015SHAREDSTATE_DIR
1016SYSCONF_DIR
1017DOC_DIR
1018DATA_DIR
1019LIBEXEC_DIR
1020SBIN_DIR
1021BIN_DIR
1022EXEC_PREFIX_DIR
1023PREFIX_DIR
1024CONFIG_STATUS_DEPENDENCIES
1025MAGICKPP_LIB_VERSION_TEXT
1026MAGICKPP_LIB_VERSION
1027MAGICK_LIB_VERSION_NUMBER
1028MAGICK_LIB_VERSION_TEXT
1029MAGICK_LIB_VERSION
1030PACKAGE_VERSION_ADDENDUM
1031PACKAGE_RELEASE_DATE
1032PACKAGE_LIB_VERSION_NUMBER
1033PACKAGE_LIB_VERSION
1034PACKAGE_CHANGE_DATE
1035PACKAGE_RELEASE
1036PACKAGE_PERL_VERSION
1037MAGICKPP_LIBRARY_VERSION_INFO
1038MAGICKPP_LIBRARY_CURRENT_MIN
1039MAGICKPP_LIBRARY_AGE
1040MAGICKPP_LIBRARY_REVISION
1041MAGICKPP_LIBRARY_CURRENT
1042MAGICK_LIBRARY_VERSION_INFO
1043MAGICK_LIBRARY_CURRENT_MIN
1044MAGICK_LIBRARY_AGE
1045MAGICK_LIBRARY_REVISION
1046MAGICK_LIBRARY_CURRENT
1047MAGICK_GIT_REVISION
1048MAGICK_VERSION
1049MAGICK_PATCHLEVEL_VERSION
1050MAGICK_MICRO_VERSION
1051MAGICK_MINOR_VERSION
1052MAGICK_MAJOR_VERSION
1053MAGICK_TARGET_OS
1054MAGICK_TARGET_VENDOR
1055MAGICK_TARGET_CPU
1056CONFIGURE_ARGS
1057DISTCHECK_CONFIG_FLAGS
1058AM_BACKSLASH
1059AM_DEFAULT_VERBOSITY
1060AM_DEFAULT_V
1061AM_V
1062am__untar
1063am__tar
1064AMTAR
1065am__leading_dot
1066SET_MAKE
1067AWK
1068mkdir_p
1069MKDIR_P
1070INSTALL_STRIP_PROGRAM
1071STRIP
1072install_sh
1073MAKEINFO
1074AUTOHEADER
1075AUTOMAKE
1076AUTOCONF
1077ACLOCAL
1078VERSION
1079PACKAGE
1080CYGPATH_W
1081am__isrc
1082INSTALL_DATA
1083INSTALL_SCRIPT
1084INSTALL_PROGRAM
1085target_os
1086target_vendor
1087target_cpu
1088target
1089host_os
1090host_vendor
1091host_cpu
1092host
1093build_os
1094build_vendor
1095build_cpu
1096build
1097target_alias
1098host_alias
1099build_alias
1100LIBS
1101ECHO_T
1102ECHO_N
1103ECHO_C
1104DEFS
1105mandir
1106localedir
1107libdir
1108psdir
1109pdfdir
1110dvidir
1111htmldir
1112infodir
1113docdir
1114oldincludedir
1115includedir
1116localstatedir
1117sharedstatedir
1118sysconfdir
1119datadir
1120datarootdir
1121libexecdir
1122sbindir
1123bindir
1124program_transform_name
1125prefix
1126exec_prefix
1127PACKAGE_URL
1128PACKAGE_BUGREPORT
1129PACKAGE_STRING
1130PACKAGE_VERSION
1131PACKAGE_TARNAME
1132PACKAGE_NAME
1133PATH_SEPARATOR
1134SHELL'
1135ac_subst_files=''
1136ac_user_opts='
1137enable_option_checking
1138enable_silent_rules
1139enable_reproducible_build
1140enable_dependency_tracking
1141with_gnu_ld
1142with_dmalloc
1143with_gcc_arch
1144enable_compile_warnings
1145enable_Werror
1146enable_ld_version_script
1147enable_bounds_checking
1148enable_osx_universal_binary
1149with_includearch_dir
1150with_sharearch_dir
1151with_pkgconfigdir
1152with_threads
1153enable_openmp
1154enable_opencl
1155enable_largefile
1156enable_shared
1157enable_static
1158with_pic
1159enable_fast_install
1160with_aix_soname
1161with_sysroot
1162enable_libtool_lock
1163with_modules
1164enable_delegate_build
1165enable_deprecated
1166enable_installed
1167enable_cipher
1168enable_zero_configuration
1169enable_hdri
1170enable_pipes
1171enable_assert
1172enable_maintainer_mode
1173enable_hugepages
1174enable_ccmalloc
1175enable_efence
1176enable_prof
1177enable_gprof
1178enable_gcov
1179with_method_prefix
1180enable_legacy_support
1181with_quantum_depth
1182with_cache
1183with_frozenpaths
1184with_magick_plus_plus
1185with_package_release_name
1186with_perl
1187with_perl_options
1188with_jemalloc
1189with_umem
1190with_libstdc
1191with_bzlib
1192with_x
1193with_zlib
1194with_apple_font_dir
1195with_autotrace
1196with_dps
1197with_dejavu_font_dir
1198with_fftw
1199with_flif
1200with_fpx
1201with_djvu
1202with_fontconfig
1203with_freetype
1204with_raqm
1205with_gslib
1206with_fontpath
1207with_gs_font_dir
1208with_gvc
1209with_jbig
1210with_jpeg
1211with_lcms
1212with_openjp2
1213with_lqr
1214with_lzma
1215with_openexr
1216with_pango
1217with_png
1218with_rsvg
1219with_tiff
1220with_webp
1221with_windows_font_dir
1222with_wmf
1223with_xml
1224enable_docs
1225'
1226      ac_precious_vars='build_alias
1227host_alias
1228target_alias
1229CC
1230CFLAGS
1231LDFLAGS
1232LIBS
1233CPPFLAGS
1234CPP
1235CXX
1236CXXFLAGS
1237CCC
1238PKG_CONFIG
1239PKG_CONFIG_PATH
1240PKG_CONFIG_LIBDIR
1241LT_SYS_LIBRARY_PATH
1242CXXCPP
1243XMKMF
1244ZLIB_CFLAGS
1245ZLIB_LIBS
1246AUTOTRACE_CFLAGS
1247AUTOTRACE_LIBS
1248fftw3_CFLAGS
1249fftw3_LIBS
1250ddjvuapi_CFLAGS
1251ddjvuapi_LIBS
1252FONTCONFIG_CFLAGS
1253FONTCONFIG_LIBS
1254FREETYPE_CFLAGS
1255FREETYPE_LIBS
1256RAQM_CFLAGS
1257RAQM_LIBS
1258GVC_CFLAGS
1259GVC_LIBS
1260LCMS2_CFLAGS
1261LCMS2_LIBS
1262LIBOPENJP2_CFLAGS
1263LIBOPENJP2_LIBS
1264LQR_CFLAGS
1265LQR_LIBS
1266LZMA_CFLAGS
1267LZMA_LIBS
1268OPENEXR_CFLAGS
1269OPENEXR_LIBS
1270PANGO_CFLAGS
1271PANGO_LIBS
1272PNG_CFLAGS
1273PNG_LIBS
1274RSVG_CFLAGS
1275RSVG_LIBS
1276CAIRO_SVG_CFLAGS
1277CAIRO_SVG_LIBS
1278XML_CFLAGS
1279XML_LIBS'
1280
1281
1282# Initialize some variables set by options.
1283ac_init_help=
1284ac_init_version=false
1285ac_unrecognized_opts=
1286ac_unrecognized_sep=
1287# The variables have the same names as the options, with
1288# dashes changed to underlines.
1289cache_file=/dev/null
1290exec_prefix=NONE
1291no_create=
1292no_recursion=
1293prefix=NONE
1294program_prefix=NONE
1295program_suffix=NONE
1296program_transform_name=s,x,x,
1297silent=
1298site=
1299srcdir=
1300verbose=
1301x_includes=NONE
1302x_libraries=NONE
1303
1304# Installation directory options.
1305# These are left unexpanded so users can "make install exec_prefix=/foo"
1306# and all the variables that are supposed to be based on exec_prefix
1307# by default will actually change.
1308# Use braces instead of parens because sh, perl, etc. also accept them.
1309# (The list follows the same order as the GNU Coding Standards.)
1310bindir='${exec_prefix}/bin'
1311sbindir='${exec_prefix}/sbin'
1312libexecdir='${exec_prefix}/libexec'
1313datarootdir='${prefix}/share'
1314datadir='${datarootdir}'
1315sysconfdir='${prefix}/etc'
1316sharedstatedir='${prefix}/com'
1317localstatedir='${prefix}/var'
1318includedir='${prefix}/include'
1319oldincludedir='/usr/include'
1320docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1321infodir='${datarootdir}/info'
1322htmldir='${docdir}'
1323dvidir='${docdir}'
1324pdfdir='${docdir}'
1325psdir='${docdir}'
1326libdir='${exec_prefix}/lib'
1327localedir='${datarootdir}/locale'
1328mandir='${datarootdir}/man'
1329
1330ac_prev=
1331ac_dashdash=
1332for ac_option
1333do
1334  # If the previous option needs an argument, assign it.
1335  if test -n "$ac_prev"; then
1336    eval $ac_prev=\$ac_option
1337    ac_prev=
1338    continue
1339  fi
1340
1341  case $ac_option in
1342  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1343  *=)   ac_optarg= ;;
1344  *)    ac_optarg=yes ;;
1345  esac
1346
1347  # Accept the important Cygnus configure options, so we can diagnose typos.
1348
1349  case $ac_dashdash$ac_option in
1350  --)
1351    ac_dashdash=yes ;;
1352
1353  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1354    ac_prev=bindir ;;
1355  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1356    bindir=$ac_optarg ;;
1357
1358  -build | --build | --buil | --bui | --bu)
1359    ac_prev=build_alias ;;
1360  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1361    build_alias=$ac_optarg ;;
1362
1363  -cache-file | --cache-file | --cache-fil | --cache-fi \
1364  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1365    ac_prev=cache_file ;;
1366  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1367  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1368    cache_file=$ac_optarg ;;
1369
1370  --config-cache | -C)
1371    cache_file=config.cache ;;
1372
1373  -datadir | --datadir | --datadi | --datad)
1374    ac_prev=datadir ;;
1375  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1376    datadir=$ac_optarg ;;
1377
1378  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1379  | --dataroo | --dataro | --datar)
1380    ac_prev=datarootdir ;;
1381  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1382  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1383    datarootdir=$ac_optarg ;;
1384
1385  -disable-* | --disable-*)
1386    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1387    # Reject names that are not valid shell variable names.
1388    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1389      as_fn_error $? "invalid feature name: $ac_useropt"
1390    ac_useropt_orig=$ac_useropt
1391    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392    case $ac_user_opts in
1393      *"
1394"enable_$ac_useropt"
1395"*) ;;
1396      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1397	 ac_unrecognized_sep=', ';;
1398    esac
1399    eval enable_$ac_useropt=no ;;
1400
1401  -docdir | --docdir | --docdi | --doc | --do)
1402    ac_prev=docdir ;;
1403  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1404    docdir=$ac_optarg ;;
1405
1406  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1407    ac_prev=dvidir ;;
1408  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1409    dvidir=$ac_optarg ;;
1410
1411  -enable-* | --enable-*)
1412    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1413    # Reject names that are not valid shell variable names.
1414    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1415      as_fn_error $? "invalid feature name: $ac_useropt"
1416    ac_useropt_orig=$ac_useropt
1417    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1418    case $ac_user_opts in
1419      *"
1420"enable_$ac_useropt"
1421"*) ;;
1422      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1423	 ac_unrecognized_sep=', ';;
1424    esac
1425    eval enable_$ac_useropt=\$ac_optarg ;;
1426
1427  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1428  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1429  | --exec | --exe | --ex)
1430    ac_prev=exec_prefix ;;
1431  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1432  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1433  | --exec=* | --exe=* | --ex=*)
1434    exec_prefix=$ac_optarg ;;
1435
1436  -gas | --gas | --ga | --g)
1437    # Obsolete; use --with-gas.
1438    with_gas=yes ;;
1439
1440  -help | --help | --hel | --he | -h)
1441    ac_init_help=long ;;
1442  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1443    ac_init_help=recursive ;;
1444  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1445    ac_init_help=short ;;
1446
1447  -host | --host | --hos | --ho)
1448    ac_prev=host_alias ;;
1449  -host=* | --host=* | --hos=* | --ho=*)
1450    host_alias=$ac_optarg ;;
1451
1452  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1453    ac_prev=htmldir ;;
1454  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1455  | --ht=*)
1456    htmldir=$ac_optarg ;;
1457
1458  -includedir | --includedir | --includedi | --included | --include \
1459  | --includ | --inclu | --incl | --inc)
1460    ac_prev=includedir ;;
1461  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1462  | --includ=* | --inclu=* | --incl=* | --inc=*)
1463    includedir=$ac_optarg ;;
1464
1465  -infodir | --infodir | --infodi | --infod | --info | --inf)
1466    ac_prev=infodir ;;
1467  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1468    infodir=$ac_optarg ;;
1469
1470  -libdir | --libdir | --libdi | --libd)
1471    ac_prev=libdir ;;
1472  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1473    libdir=$ac_optarg ;;
1474
1475  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1476  | --libexe | --libex | --libe)
1477    ac_prev=libexecdir ;;
1478  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1479  | --libexe=* | --libex=* | --libe=*)
1480    libexecdir=$ac_optarg ;;
1481
1482  -localedir | --localedir | --localedi | --localed | --locale)
1483    ac_prev=localedir ;;
1484  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1485    localedir=$ac_optarg ;;
1486
1487  -localstatedir | --localstatedir | --localstatedi | --localstated \
1488  | --localstate | --localstat | --localsta | --localst | --locals)
1489    ac_prev=localstatedir ;;
1490  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1491  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1492    localstatedir=$ac_optarg ;;
1493
1494  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1495    ac_prev=mandir ;;
1496  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1497    mandir=$ac_optarg ;;
1498
1499  -nfp | --nfp | --nf)
1500    # Obsolete; use --without-fp.
1501    with_fp=no ;;
1502
1503  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1504  | --no-cr | --no-c | -n)
1505    no_create=yes ;;
1506
1507  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1508  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1509    no_recursion=yes ;;
1510
1511  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1512  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1513  | --oldin | --oldi | --old | --ol | --o)
1514    ac_prev=oldincludedir ;;
1515  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1516  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1517  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1518    oldincludedir=$ac_optarg ;;
1519
1520  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1521    ac_prev=prefix ;;
1522  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1523    prefix=$ac_optarg ;;
1524
1525  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1526  | --program-pre | --program-pr | --program-p)
1527    ac_prev=program_prefix ;;
1528  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1529  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1530    program_prefix=$ac_optarg ;;
1531
1532  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1533  | --program-suf | --program-su | --program-s)
1534    ac_prev=program_suffix ;;
1535  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1536  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1537    program_suffix=$ac_optarg ;;
1538
1539  -program-transform-name | --program-transform-name \
1540  | --program-transform-nam | --program-transform-na \
1541  | --program-transform-n | --program-transform- \
1542  | --program-transform | --program-transfor \
1543  | --program-transfo | --program-transf \
1544  | --program-trans | --program-tran \
1545  | --progr-tra | --program-tr | --program-t)
1546    ac_prev=program_transform_name ;;
1547  -program-transform-name=* | --program-transform-name=* \
1548  | --program-transform-nam=* | --program-transform-na=* \
1549  | --program-transform-n=* | --program-transform-=* \
1550  | --program-transform=* | --program-transfor=* \
1551  | --program-transfo=* | --program-transf=* \
1552  | --program-trans=* | --program-tran=* \
1553  | --progr-tra=* | --program-tr=* | --program-t=*)
1554    program_transform_name=$ac_optarg ;;
1555
1556  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1557    ac_prev=pdfdir ;;
1558  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1559    pdfdir=$ac_optarg ;;
1560
1561  -psdir | --psdir | --psdi | --psd | --ps)
1562    ac_prev=psdir ;;
1563  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1564    psdir=$ac_optarg ;;
1565
1566  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1567  | -silent | --silent | --silen | --sile | --sil)
1568    silent=yes ;;
1569
1570  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1571    ac_prev=sbindir ;;
1572  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1573  | --sbi=* | --sb=*)
1574    sbindir=$ac_optarg ;;
1575
1576  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1577  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1578  | --sharedst | --shareds | --shared | --share | --shar \
1579  | --sha | --sh)
1580    ac_prev=sharedstatedir ;;
1581  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1582  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1583  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1584  | --sha=* | --sh=*)
1585    sharedstatedir=$ac_optarg ;;
1586
1587  -site | --site | --sit)
1588    ac_prev=site ;;
1589  -site=* | --site=* | --sit=*)
1590    site=$ac_optarg ;;
1591
1592  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1593    ac_prev=srcdir ;;
1594  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1595    srcdir=$ac_optarg ;;
1596
1597  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1598  | --syscon | --sysco | --sysc | --sys | --sy)
1599    ac_prev=sysconfdir ;;
1600  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1601  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1602    sysconfdir=$ac_optarg ;;
1603
1604  -target | --target | --targe | --targ | --tar | --ta | --t)
1605    ac_prev=target_alias ;;
1606  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1607    target_alias=$ac_optarg ;;
1608
1609  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1610    verbose=yes ;;
1611
1612  -version | --version | --versio | --versi | --vers | -V)
1613    ac_init_version=: ;;
1614
1615  -with-* | --with-*)
1616    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1617    # Reject names that are not valid shell variable names.
1618    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1619      as_fn_error $? "invalid package name: $ac_useropt"
1620    ac_useropt_orig=$ac_useropt
1621    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1622    case $ac_user_opts in
1623      *"
1624"with_$ac_useropt"
1625"*) ;;
1626      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1627	 ac_unrecognized_sep=', ';;
1628    esac
1629    eval with_$ac_useropt=\$ac_optarg ;;
1630
1631  -without-* | --without-*)
1632    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1633    # Reject names that are not valid shell variable names.
1634    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1635      as_fn_error $? "invalid package name: $ac_useropt"
1636    ac_useropt_orig=$ac_useropt
1637    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1638    case $ac_user_opts in
1639      *"
1640"with_$ac_useropt"
1641"*) ;;
1642      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1643	 ac_unrecognized_sep=', ';;
1644    esac
1645    eval with_$ac_useropt=no ;;
1646
1647  --x)
1648    # Obsolete; use --with-x.
1649    with_x=yes ;;
1650
1651  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1652  | --x-incl | --x-inc | --x-in | --x-i)
1653    ac_prev=x_includes ;;
1654  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1655  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1656    x_includes=$ac_optarg ;;
1657
1658  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1659  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1660    ac_prev=x_libraries ;;
1661  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1662  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1663    x_libraries=$ac_optarg ;;
1664
1665  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1666Try \`$0 --help' for more information"
1667    ;;
1668
1669  *=*)
1670    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1671    # Reject names that are not valid shell variable names.
1672    case $ac_envvar in #(
1673      '' | [0-9]* | *[!_$as_cr_alnum]* )
1674      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1675    esac
1676    eval $ac_envvar=\$ac_optarg
1677    export $ac_envvar ;;
1678
1679  *)
1680    # FIXME: should be removed in autoconf 3.0.
1681    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1682    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1683      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1684    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1685    ;;
1686
1687  esac
1688done
1689
1690if test -n "$ac_prev"; then
1691  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1692  as_fn_error $? "missing argument to $ac_option"
1693fi
1694
1695if test -n "$ac_unrecognized_opts"; then
1696  case $enable_option_checking in
1697    no) ;;
1698    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1699    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1700  esac
1701fi
1702
1703# Check all directory arguments for consistency.
1704for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1705		datadir sysconfdir sharedstatedir localstatedir includedir \
1706		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1707		libdir localedir mandir
1708do
1709  eval ac_val=\$$ac_var
1710  # Remove trailing slashes.
1711  case $ac_val in
1712    */ )
1713      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1714      eval $ac_var=\$ac_val;;
1715  esac
1716  # Be sure to have absolute directory names.
1717  case $ac_val in
1718    [\\/$]* | ?:[\\/]* )  continue;;
1719    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1720  esac
1721  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1722done
1723
1724# There might be people who depend on the old broken behavior: `$host'
1725# used to hold the argument of --host etc.
1726# FIXME: To remove some day.
1727build=$build_alias
1728host=$host_alias
1729target=$target_alias
1730
1731# FIXME: To remove some day.
1732if test "x$host_alias" != x; then
1733  if test "x$build_alias" = x; then
1734    cross_compiling=maybe
1735  elif test "x$build_alias" != "x$host_alias"; then
1736    cross_compiling=yes
1737  fi
1738fi
1739
1740ac_tool_prefix=
1741test -n "$host_alias" && ac_tool_prefix=$host_alias-
1742
1743test "$silent" = yes && exec 6>/dev/null
1744
1745
1746ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747ac_ls_di=`ls -di .` &&
1748ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1749  as_fn_error $? "working directory cannot be determined"
1750test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1751  as_fn_error $? "pwd does not report name of working directory"
1752
1753
1754# Find the source files, if location was not specified.
1755if test -z "$srcdir"; then
1756  ac_srcdir_defaulted=yes
1757  # Try the directory containing this script, then the parent directory.
1758  ac_confdir=`$as_dirname -- "$as_myself" ||
1759$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760	 X"$as_myself" : 'X\(//\)[^/]' \| \
1761	 X"$as_myself" : 'X\(//\)$' \| \
1762	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763$as_echo X"$as_myself" |
1764    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1765	    s//\1/
1766	    q
1767	  }
1768	  /^X\(\/\/\)[^/].*/{
1769	    s//\1/
1770	    q
1771	  }
1772	  /^X\(\/\/\)$/{
1773	    s//\1/
1774	    q
1775	  }
1776	  /^X\(\/\).*/{
1777	    s//\1/
1778	    q
1779	  }
1780	  s/.*/./; q'`
1781  srcdir=$ac_confdir
1782  if test ! -r "$srcdir/$ac_unique_file"; then
1783    srcdir=..
1784  fi
1785else
1786  ac_srcdir_defaulted=no
1787fi
1788if test ! -r "$srcdir/$ac_unique_file"; then
1789  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1790  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1791fi
1792ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1793ac_abs_confdir=`(
1794	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1795	pwd)`
1796# When building in place, set srcdir=.
1797if test "$ac_abs_confdir" = "$ac_pwd"; then
1798  srcdir=.
1799fi
1800# Remove unnecessary trailing slashes from srcdir.
1801# Double slashes in file names in object file debugging info
1802# mess up M-x gdb in Emacs.
1803case $srcdir in
1804*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1805esac
1806for ac_var in $ac_precious_vars; do
1807  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808  eval ac_env_${ac_var}_value=\$${ac_var}
1809  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1811done
1812
1813#
1814# Report the --help message.
1815#
1816if test "$ac_init_help" = "long"; then
1817  # Omit some internal or obsolete options to make the list less imposing.
1818  # This message is too long to be a string in the A/UX 3.1 sh.
1819  cat <<_ACEOF
1820\`configure' configures ImageMagick 7.0.2-5 to adapt to many kinds of systems.
1821
1822Usage: $0 [OPTION]... [VAR=VALUE]...
1823
1824To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825VAR=VALUE.  See below for descriptions of some of the useful variables.
1826
1827Defaults for the options are specified in brackets.
1828
1829Configuration:
1830  -h, --help              display this help and exit
1831      --help=short        display options specific to this package
1832      --help=recursive    display the short help of all the included packages
1833  -V, --version           display version information and exit
1834  -q, --quiet, --silent   do not print \`checking ...' messages
1835      --cache-file=FILE   cache test results in FILE [disabled]
1836  -C, --config-cache      alias for \`--cache-file=config.cache'
1837  -n, --no-create         do not create output files
1838      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1839
1840Installation directories:
1841  --prefix=PREFIX         install architecture-independent files in PREFIX
1842                          [$ac_default_prefix]
1843  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1844                          [PREFIX]
1845
1846By default, \`make install' will install all the files in
1847\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1848an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849for instance \`--prefix=\$HOME'.
1850
1851For better control, use the options below.
1852
1853Fine tuning of the installation directories:
1854  --bindir=DIR            user executables [EPREFIX/bin]
1855  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1856  --libexecdir=DIR        program executables [EPREFIX/libexec]
1857  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1858  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1859  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1860  --libdir=DIR            object code libraries [EPREFIX/lib]
1861  --includedir=DIR        C header files [PREFIX/include]
1862  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1863  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1864  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1865  --infodir=DIR           info documentation [DATAROOTDIR/info]
1866  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1867  --mandir=DIR            man documentation [DATAROOTDIR/man]
1868  --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1869  --htmldir=DIR           html documentation [DOCDIR]
1870  --dvidir=DIR            dvi documentation [DOCDIR]
1871  --pdfdir=DIR            pdf documentation [DOCDIR]
1872  --psdir=DIR             ps documentation [DOCDIR]
1873_ACEOF
1874
1875  cat <<\_ACEOF
1876
1877Program names:
1878  --program-prefix=PREFIX            prepend PREFIX to installed program names
1879  --program-suffix=SUFFIX            append SUFFIX to installed program names
1880  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1881
1882X features:
1883  --x-includes=DIR    X include files are in DIR
1884  --x-libraries=DIR   X library files are in DIR
1885
1886System types:
1887  --build=BUILD     configure for building on BUILD [guessed]
1888  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1889  --target=TARGET   configure for building compilers for TARGET [HOST]
1890_ACEOF
1891fi
1892
1893if test -n "$ac_init_help"; then
1894  case $ac_init_help in
1895     short | recursive ) echo "Configuration of ImageMagick 7.0.2-5:";;
1896   esac
1897  cat <<\_ACEOF
1898
1899Optional Features:
1900  --disable-option-checking  ignore unrecognized --enable/--with options
1901  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1902  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1903  --enable-silent-rules   less verbose build output (undo: "make V=1")
1904  --disable-silent-rules  verbose build output (undo: "make V=0")
1905  --enable-reproducible-build
1906                          enable reproducible build
1907  --enable-dependency-tracking
1908                          do not reject slow dependency extractors
1909  --disable-dependency-tracking
1910                          speeds up one-time build
1911  --enable-compile-warnings=[no/yes/error]
1912                          Enable compiler warnings and errors
1913  --disable-Werror        Unconditionally make all compiler warnings non-fatal
1914  --enable-ld-version-script
1915                          enable linker version script (default is enabled
1916                          when possible)
1917  --enable-bounds-checking
1918                          enable run-time bounds-checking
1919  --enable-osx-universal-binary
1920                          build universal binary on OS X [[default=no]]
1921  --disable-openmp        do not use OpenMP
1922  --enable-opencl         enable OpenCL support
1923  --disable-largefile     omit support for large files
1924  --enable-shared[=PKGS]  build shared libraries [default=yes]
1925  --enable-static[=PKGS]  build static libraries [default=yes]
1926  --enable-fast-install[=PKGS]
1927                          optimize for fast installation [default=yes]
1928  --disable-libtool-lock  avoid locking (might break parallel builds)
1929  --enable-delegate-build look for delegate libraries in build directory
1930  --disable-deprecated    exclude deprecated methods in MagickCore and
1931                          MagickWand APIs
1932  --disable-installed     Formally install ImageMagick under PREFIX
1933  --disable-cipher        disable enciphering and deciphering image pixels
1934  --enable-zero-configuration
1935                          enable self-contained, embeddable,
1936                          zero-configuration ImageMagick
1937  --enable-hdri           accurately represent the wide range of intensity
1938                          levels found in real scenes
1939  --enable-pipes          enable pipes (|) in filenames
1940  --disable-assert        disable assert() statements in build
1941  --enable-maintainer-mode
1942                          enable make rules and dependencies not useful (and
1943                          sometimes confusing) to the casual installer
1944  --enable-hugepages      enable 'huge pages' support
1945  --enable-ccmalloc       enable 'ccmalloc' memory debug support
1946  --enable-efence         enable 'efence' memory debug support
1947  --enable-prof           enable 'prof' profiling support
1948  --enable-gprof          enable 'gprof' profiling support
1949  --enable-gcov           enable 'gcov' profiling support
1950  --enable-legacy-support  install legacy command-line utilities (default disabled)
1951  --disable-assert        turn off assertions
1952  --disable-docs          disable building of documentation
1953
1954Optional Packages:
1955  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1956  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1957  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1958  --with-dmalloc          use dmalloc, as in http://www.dmalloc.com
1959  --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1960                          instead of guessing
1961  --includearch-dir=DIR   ARCH specific include directory
1962  --sharearch-dir=DIR     ARCH specific config directory
1963  --with-pkgconfigdir=DIR Path to the pkgconfig directory [LIBDIR/pkgconfig]
1964  --without-threads       disable threads support
1965  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1966                          both]
1967  --with-aix-soname=aix|svr4|both
1968                          shared library versioning (aka "SONAME") variant to
1969                          provide on AIX, [default=aix].
1970  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1971                          compiler's sysroot if not specified).
1972  --with-modules          enable building dynamically loadable modules
1973  --with-method-prefix=PREFIX
1974                          prefix MagickCore API methods
1975  --with-quantum-depth=DEPTH
1976                          number of bits in a pixel quantum (default 16)
1977  --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1978                          memory)
1979  --with-frozenpaths      freeze delegate paths
1980  --without-magick-plus-plus
1981                          disable build/install of Magick++
1982  --with-package-release-name=NAME
1983                          encode this name into the shared library
1984  --with-perl             enable build/install of PerlMagick
1985  --with-perl-options=OPTIONS
1986                          options to pass on command-line when generating
1987                          PerlMagick build file
1988  --with-jemalloc         enable jemalloc memory allocation library support
1989  --with-umem             enable umem memory allocation library support
1990  --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1991  --without-bzlib         disable BZLIB support
1992  --with-x                use the X Window System
1993  --without-zlib          disable ZLIB support
1994  --with-apple-font-dir=DIR
1995                          Apple font directory
1996  --with-autotrace        enable autotrace support
1997  --without-dps           disable Display Postscript support
1998  --with-dejavu-font-dir=DIR
1999                          DejaVu font directory
2000  --without-fftw          disable FFTW support
2001  --without-flif          disable FLIF support
2002  --without-fpx           disable FlashPIX support
2003  --without-djvu          disable DjVu support
2004  --without-fontconfig    disable fontconfig support
2005  --without-freetype      disable Freetype support
2006  --without-raqm          disable Raqm support
2007  --with-gslib            enable Ghostscript library support
2008  --with-fontpath=DIR     prepend to default font search path
2009  --with-gs-font-dir=DIR  Ghostscript font directory
2010  --with-gvc              enable GVC support
2011  --without-jbig          disable JBIG support
2012  --without-jpeg          disable JPEG support
2013  --without-lcms          disable lcms (v1.1X) support
2014  --without-openjp2       disable OpenJP2 support
2015  --without-lqr           disable Liquid Rescale support
2016  --without-lzma          disable LZMA support
2017  --without-openexr       disable OpenEXR support
2018  --without-pango         disable PANGO support
2019  --without-png           disable PNG support
2020  --with-rsvg             enable RSVG support
2021  --without-tiff          disable TIFF support
2022  --without-webp          disable WEBP support
2023  --with-windows-font-dir=DIR
2024                          Windows font directory
2025  --with-wmf              enable WMF support
2026  --without-xml           disable XML support
2027
2028Some influential environment variables:
2029  CC          C compiler command
2030  CFLAGS      C compiler flags
2031  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2032              nonstandard directory <lib dir>
2033  LIBS        libraries to pass to the linker, e.g. -l<library>
2034  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2035              you have headers in a nonstandard directory <include dir>
2036  CPP         C preprocessor
2037  CXX         C++ compiler command
2038  CXXFLAGS    C++ compiler flags
2039  PKG_CONFIG  path to pkg-config utility
2040  PKG_CONFIG_PATH
2041              directories to add to pkg-config's search path
2042  PKG_CONFIG_LIBDIR
2043              path overriding pkg-config's built-in search path
2044  LT_SYS_LIBRARY_PATH
2045              User-defined run-time library search path.
2046  CXXCPP      C++ preprocessor
2047  XMKMF       Path to xmkmf, Makefile generator for X Window System
2048  ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
2049  ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
2050  AUTOTRACE_CFLAGS
2051              C compiler flags for AUTOTRACE, overriding pkg-config
2052  AUTOTRACE_LIBS
2053              linker flags for AUTOTRACE, overriding pkg-config
2054  fftw3_CFLAGS
2055              C compiler flags for fftw3, overriding pkg-config
2056  fftw3_LIBS  linker flags for fftw3, overriding pkg-config
2057  ddjvuapi_CFLAGS
2058              C compiler flags for ddjvuapi, overriding pkg-config
2059  ddjvuapi_LIBS
2060              linker flags for ddjvuapi, overriding pkg-config
2061  FONTCONFIG_CFLAGS
2062              C compiler flags for FONTCONFIG, overriding pkg-config
2063  FONTCONFIG_LIBS
2064              linker flags for FONTCONFIG, overriding pkg-config
2065  FREETYPE_CFLAGS
2066              C compiler flags for FREETYPE, overriding pkg-config
2067  FREETYPE_LIBS
2068              linker flags for FREETYPE, overriding pkg-config
2069  RAQM_CFLAGS C compiler flags for RAQM, overriding pkg-config
2070  RAQM_LIBS   linker flags for RAQM, overriding pkg-config
2071  GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
2072  GVC_LIBS    linker flags for GVC, overriding pkg-config
2073  LCMS2_CFLAGS
2074              C compiler flags for LCMS2, overriding pkg-config
2075  LCMS2_LIBS  linker flags for LCMS2, overriding pkg-config
2076  LIBOPENJP2_CFLAGS
2077              C compiler flags for LIBOPENJP2, overriding pkg-config
2078  LIBOPENJP2_LIBS
2079              linker flags for LIBOPENJP2, overriding pkg-config
2080  LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
2081  LQR_LIBS    linker flags for LQR, overriding pkg-config
2082  LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
2083  LZMA_LIBS   linker flags for LZMA, overriding pkg-config
2084  OPENEXR_CFLAGS
2085              C compiler flags for OPENEXR, overriding pkg-config
2086  OPENEXR_LIBS
2087              linker flags for OPENEXR, overriding pkg-config
2088  PANGO_CFLAGS
2089              C compiler flags for PANGO, overriding pkg-config
2090  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
2091  PNG_CFLAGS  C compiler flags for PNG, overriding pkg-config
2092  PNG_LIBS    linker flags for PNG, overriding pkg-config
2093  RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2094  RSVG_LIBS   linker flags for RSVG, overriding pkg-config
2095  CAIRO_SVG_CFLAGS
2096              C compiler flags for CAIRO_SVG, overriding pkg-config
2097  CAIRO_SVG_LIBS
2098              linker flags for CAIRO_SVG, overriding pkg-config
2099  XML_CFLAGS  C compiler flags for XML, overriding pkg-config
2100  XML_LIBS    linker flags for XML, overriding pkg-config
2101
2102Use these variables to override the choices made by `configure' or to help
2103it to find libraries and programs with nonstandard names/locations.
2104
2105Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
2106ImageMagick home page: <http://www.imagemagick.org>.
2107_ACEOF
2108ac_status=$?
2109fi
2110
2111if test "$ac_init_help" = "recursive"; then
2112  # If there are subdirs, report their specific --help.
2113  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2114    test -d "$ac_dir" ||
2115      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2116      continue
2117    ac_builddir=.
2118
2119case "$ac_dir" in
2120.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2121*)
2122  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2123  # A ".." for each directory in $ac_dir_suffix.
2124  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2125  case $ac_top_builddir_sub in
2126  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2127  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2128  esac ;;
2129esac
2130ac_abs_top_builddir=$ac_pwd
2131ac_abs_builddir=$ac_pwd$ac_dir_suffix
2132# for backward compatibility:
2133ac_top_builddir=$ac_top_build_prefix
2134
2135case $srcdir in
2136  .)  # We are building in place.
2137    ac_srcdir=.
2138    ac_top_srcdir=$ac_top_builddir_sub
2139    ac_abs_top_srcdir=$ac_pwd ;;
2140  [\\/]* | ?:[\\/]* )  # Absolute name.
2141    ac_srcdir=$srcdir$ac_dir_suffix;
2142    ac_top_srcdir=$srcdir
2143    ac_abs_top_srcdir=$srcdir ;;
2144  *) # Relative name.
2145    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2146    ac_top_srcdir=$ac_top_build_prefix$srcdir
2147    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2148esac
2149ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2150
2151    cd "$ac_dir" || { ac_status=$?; continue; }
2152    # Check for guested configure.
2153    if test -f "$ac_srcdir/configure.gnu"; then
2154      echo &&
2155      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2156    elif test -f "$ac_srcdir/configure"; then
2157      echo &&
2158      $SHELL "$ac_srcdir/configure" --help=recursive
2159    else
2160      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2161    fi || ac_status=$?
2162    cd "$ac_pwd" || { ac_status=$?; break; }
2163  done
2164fi
2165
2166test -n "$ac_init_help" && exit $ac_status
2167if $ac_init_version; then
2168  cat <<\_ACEOF
2169ImageMagick configure 7.0.2-5
2170generated by GNU Autoconf 2.69
2171
2172Copyright (C) 2012 Free Software Foundation, Inc.
2173This configure script is free software; the Free Software Foundation
2174gives unlimited permission to copy, distribute and modify it.
2175_ACEOF
2176  exit
2177fi
2178
2179## ------------------------ ##
2180## Autoconf initialization. ##
2181## ------------------------ ##
2182
2183# ac_fn_c_try_compile LINENO
2184# --------------------------
2185# Try to compile conftest.$ac_ext, and return whether this succeeded.
2186ac_fn_c_try_compile ()
2187{
2188  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189  rm -f conftest.$ac_objext
2190  if { { ac_try="$ac_compile"
2191case "(($ac_try" in
2192  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193  *) ac_try_echo=$ac_try;;
2194esac
2195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196$as_echo "$ac_try_echo"; } >&5
2197  (eval "$ac_compile") 2>conftest.err
2198  ac_status=$?
2199  if test -s conftest.err; then
2200    grep -v '^ *+' conftest.err >conftest.er1
2201    cat conftest.er1 >&5
2202    mv -f conftest.er1 conftest.err
2203  fi
2204  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205  test $ac_status = 0; } && {
2206	 test -z "$ac_c_werror_flag" ||
2207	 test ! -s conftest.err
2208       } && test -s conftest.$ac_objext; then :
2209  ac_retval=0
2210else
2211  $as_echo "$as_me: failed program was:" >&5
2212sed 's/^/| /' conftest.$ac_ext >&5
2213
2214	ac_retval=1
2215fi
2216  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217  as_fn_set_status $ac_retval
2218
2219} # ac_fn_c_try_compile
2220
2221# ac_fn_c_try_cpp LINENO
2222# ----------------------
2223# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2224ac_fn_c_try_cpp ()
2225{
2226  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227  if { { ac_try="$ac_cpp conftest.$ac_ext"
2228case "(($ac_try" in
2229  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230  *) ac_try_echo=$ac_try;;
2231esac
2232eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233$as_echo "$ac_try_echo"; } >&5
2234  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235  ac_status=$?
2236  if test -s conftest.err; then
2237    grep -v '^ *+' conftest.err >conftest.er1
2238    cat conftest.er1 >&5
2239    mv -f conftest.er1 conftest.err
2240  fi
2241  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242  test $ac_status = 0; } > conftest.i && {
2243	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244	 test ! -s conftest.err
2245       }; then :
2246  ac_retval=0
2247else
2248  $as_echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251    ac_retval=1
2252fi
2253  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254  as_fn_set_status $ac_retval
2255
2256} # ac_fn_c_try_cpp
2257
2258# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2259# -------------------------------------------------------
2260# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2261# the include files in INCLUDES and setting the cache variable VAR
2262# accordingly.
2263ac_fn_c_check_header_mongrel ()
2264{
2265  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266  if eval \${$3+:} false; then :
2267  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268$as_echo_n "checking for $2... " >&6; }
2269if eval \${$3+:} false; then :
2270  $as_echo_n "(cached) " >&6
2271fi
2272eval ac_res=\$$3
2273	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274$as_echo "$ac_res" >&6; }
2275else
2276  # Is the header compilable?
2277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2278$as_echo_n "checking $2 usability... " >&6; }
2279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280/* end confdefs.h.  */
2281$4
2282#include <$2>
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285  ac_header_compiler=yes
2286else
2287  ac_header_compiler=no
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2291$as_echo "$ac_header_compiler" >&6; }
2292
2293# Is the header present?
2294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2295$as_echo_n "checking $2 presence... " >&6; }
2296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h.  */
2298#include <$2>
2299_ACEOF
2300if ac_fn_c_try_cpp "$LINENO"; then :
2301  ac_header_preproc=yes
2302else
2303  ac_header_preproc=no
2304fi
2305rm -f conftest.err conftest.i conftest.$ac_ext
2306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2307$as_echo "$ac_header_preproc" >&6; }
2308
2309# So?  What about this header?
2310case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2311  yes:no: )
2312    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2313$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2314    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2315$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2316    ;;
2317  no:yes:* )
2318    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2319$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2320    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2321$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2322    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2323$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2324    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2325$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2326    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2327$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2328( $as_echo "## ---------------------------------------------------------------- ##
2329## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
2330## ---------------------------------------------------------------- ##"
2331     ) | sed "s/^/$as_me: WARNING:     /" >&2
2332    ;;
2333esac
2334  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335$as_echo_n "checking for $2... " >&6; }
2336if eval \${$3+:} false; then :
2337  $as_echo_n "(cached) " >&6
2338else
2339  eval "$3=\$ac_header_compiler"
2340fi
2341eval ac_res=\$$3
2342	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343$as_echo "$ac_res" >&6; }
2344fi
2345  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2346
2347} # ac_fn_c_check_header_mongrel
2348
2349# ac_fn_c_try_run LINENO
2350# ----------------------
2351# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2352# that executables *can* be run.
2353ac_fn_c_try_run ()
2354{
2355  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356  if { { ac_try="$ac_link"
2357case "(($ac_try" in
2358  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359  *) ac_try_echo=$ac_try;;
2360esac
2361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362$as_echo "$ac_try_echo"; } >&5
2363  (eval "$ac_link") 2>&5
2364  ac_status=$?
2365  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2367  { { case "(($ac_try" in
2368  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369  *) ac_try_echo=$ac_try;;
2370esac
2371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372$as_echo "$ac_try_echo"; } >&5
2373  (eval "$ac_try") 2>&5
2374  ac_status=$?
2375  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376  test $ac_status = 0; }; }; then :
2377  ac_retval=0
2378else
2379  $as_echo "$as_me: program exited with status $ac_status" >&5
2380       $as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383       ac_retval=$ac_status
2384fi
2385  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2386  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387  as_fn_set_status $ac_retval
2388
2389} # ac_fn_c_try_run
2390
2391# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2392# -------------------------------------------------------
2393# Tests whether HEADER exists and can be compiled using the include files in
2394# INCLUDES, setting the cache variable VAR accordingly.
2395ac_fn_c_check_header_compile ()
2396{
2397  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399$as_echo_n "checking for $2... " >&6; }
2400if eval \${$3+:} false; then :
2401  $as_echo_n "(cached) " >&6
2402else
2403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404/* end confdefs.h.  */
2405$4
2406#include <$2>
2407_ACEOF
2408if ac_fn_c_try_compile "$LINENO"; then :
2409  eval "$3=yes"
2410else
2411  eval "$3=no"
2412fi
2413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414fi
2415eval ac_res=\$$3
2416	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417$as_echo "$ac_res" >&6; }
2418  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419
2420} # ac_fn_c_check_header_compile
2421
2422# ac_fn_cxx_try_compile LINENO
2423# ----------------------------
2424# Try to compile conftest.$ac_ext, and return whether this succeeded.
2425ac_fn_cxx_try_compile ()
2426{
2427  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428  rm -f conftest.$ac_objext
2429  if { { ac_try="$ac_compile"
2430case "(($ac_try" in
2431  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432  *) ac_try_echo=$ac_try;;
2433esac
2434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435$as_echo "$ac_try_echo"; } >&5
2436  (eval "$ac_compile") 2>conftest.err
2437  ac_status=$?
2438  if test -s conftest.err; then
2439    grep -v '^ *+' conftest.err >conftest.er1
2440    cat conftest.er1 >&5
2441    mv -f conftest.er1 conftest.err
2442  fi
2443  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444  test $ac_status = 0; } && {
2445	 test -z "$ac_cxx_werror_flag" ||
2446	 test ! -s conftest.err
2447       } && test -s conftest.$ac_objext; then :
2448  ac_retval=0
2449else
2450  $as_echo "$as_me: failed program was:" >&5
2451sed 's/^/| /' conftest.$ac_ext >&5
2452
2453	ac_retval=1
2454fi
2455  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456  as_fn_set_status $ac_retval
2457
2458} # ac_fn_cxx_try_compile
2459
2460# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2461# --------------------------------------------
2462# Tries to find the compile-time value of EXPR in a program that includes
2463# INCLUDES, setting VAR accordingly. Returns whether the value could be
2464# computed
2465ac_fn_c_compute_int ()
2466{
2467  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468  if test "$cross_compiling" = yes; then
2469    # Depending upon the size, compute the lo and hi bounds.
2470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2471/* end confdefs.h.  */
2472$4
2473int
2474main ()
2475{
2476static int test_array [1 - 2 * !(($2) >= 0)];
2477test_array [0] = 0;
2478return test_array [0];
2479
2480  ;
2481  return 0;
2482}
2483_ACEOF
2484if ac_fn_c_try_compile "$LINENO"; then :
2485  ac_lo=0 ac_mid=0
2486  while :; do
2487    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488/* end confdefs.h.  */
2489$4
2490int
2491main ()
2492{
2493static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2494test_array [0] = 0;
2495return test_array [0];
2496
2497  ;
2498  return 0;
2499}
2500_ACEOF
2501if ac_fn_c_try_compile "$LINENO"; then :
2502  ac_hi=$ac_mid; break
2503else
2504  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2505			if test $ac_lo -le $ac_mid; then
2506			  ac_lo= ac_hi=
2507			  break
2508			fi
2509			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2510fi
2511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2512  done
2513else
2514  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515/* end confdefs.h.  */
2516$4
2517int
2518main ()
2519{
2520static int test_array [1 - 2 * !(($2) < 0)];
2521test_array [0] = 0;
2522return test_array [0];
2523
2524  ;
2525  return 0;
2526}
2527_ACEOF
2528if ac_fn_c_try_compile "$LINENO"; then :
2529  ac_hi=-1 ac_mid=-1
2530  while :; do
2531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h.  */
2533$4
2534int
2535main ()
2536{
2537static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2538test_array [0] = 0;
2539return test_array [0];
2540
2541  ;
2542  return 0;
2543}
2544_ACEOF
2545if ac_fn_c_try_compile "$LINENO"; then :
2546  ac_lo=$ac_mid; break
2547else
2548  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2549			if test $ac_mid -le $ac_hi; then
2550			  ac_lo= ac_hi=
2551			  break
2552			fi
2553			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2554fi
2555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556  done
2557else
2558  ac_lo= ac_hi=
2559fi
2560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561fi
2562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2563# Binary search between lo and hi bounds.
2564while test "x$ac_lo" != "x$ac_hi"; do
2565  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h.  */
2568$4
2569int
2570main ()
2571{
2572static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2573test_array [0] = 0;
2574return test_array [0];
2575
2576  ;
2577  return 0;
2578}
2579_ACEOF
2580if ac_fn_c_try_compile "$LINENO"; then :
2581  ac_hi=$ac_mid
2582else
2583  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2584fi
2585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586done
2587case $ac_lo in #((
2588?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2589'') ac_retval=1 ;;
2590esac
2591  else
2592    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2593/* end confdefs.h.  */
2594$4
2595static long int longval () { return $2; }
2596static unsigned long int ulongval () { return $2; }
2597#include <stdio.h>
2598#include <stdlib.h>
2599int
2600main ()
2601{
2602
2603  FILE *f = fopen ("conftest.val", "w");
2604  if (! f)
2605    return 1;
2606  if (($2) < 0)
2607    {
2608      long int i = longval ();
2609      if (i != ($2))
2610	return 1;
2611      fprintf (f, "%ld", i);
2612    }
2613  else
2614    {
2615      unsigned long int i = ulongval ();
2616      if (i != ($2))
2617	return 1;
2618      fprintf (f, "%lu", i);
2619    }
2620  /* Do not output a trailing newline, as this causes \r\n confusion
2621     on some platforms.  */
2622  return ferror (f) || fclose (f) != 0;
2623
2624  ;
2625  return 0;
2626}
2627_ACEOF
2628if ac_fn_c_try_run "$LINENO"; then :
2629  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2630else
2631  ac_retval=1
2632fi
2633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2634  conftest.$ac_objext conftest.beam conftest.$ac_ext
2635rm -f conftest.val
2636
2637  fi
2638  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2639  as_fn_set_status $ac_retval
2640
2641} # ac_fn_c_compute_int
2642
2643# ac_fn_c_try_link LINENO
2644# -----------------------
2645# Try to link conftest.$ac_ext, and return whether this succeeded.
2646ac_fn_c_try_link ()
2647{
2648  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649  rm -f conftest.$ac_objext conftest$ac_exeext
2650  if { { ac_try="$ac_link"
2651case "(($ac_try" in
2652  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2653  *) ac_try_echo=$ac_try;;
2654esac
2655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2656$as_echo "$ac_try_echo"; } >&5
2657  (eval "$ac_link") 2>conftest.err
2658  ac_status=$?
2659  if test -s conftest.err; then
2660    grep -v '^ *+' conftest.err >conftest.er1
2661    cat conftest.er1 >&5
2662    mv -f conftest.er1 conftest.err
2663  fi
2664  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2665  test $ac_status = 0; } && {
2666	 test -z "$ac_c_werror_flag" ||
2667	 test ! -s conftest.err
2668       } && test -s conftest$ac_exeext && {
2669	 test "$cross_compiling" = yes ||
2670	 test -x conftest$ac_exeext
2671       }; then :
2672  ac_retval=0
2673else
2674  $as_echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677	ac_retval=1
2678fi
2679  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2680  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2681  # interfere with the next link command; also delete a directory that is
2682  # left behind by Apple's compiler.  We do this before executing the actions.
2683  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685  as_fn_set_status $ac_retval
2686
2687} # ac_fn_c_try_link
2688
2689# ac_fn_c_check_func LINENO FUNC VAR
2690# ----------------------------------
2691# Tests whether FUNC exists, setting the cache variable VAR accordingly
2692ac_fn_c_check_func ()
2693{
2694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2695  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2696$as_echo_n "checking for $2... " >&6; }
2697if eval \${$3+:} false; then :
2698  $as_echo_n "(cached) " >&6
2699else
2700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701/* end confdefs.h.  */
2702/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2703   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2704#define $2 innocuous_$2
2705
2706/* System header to define __stub macros and hopefully few prototypes,
2707    which can conflict with char $2 (); below.
2708    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2709    <limits.h> exists even on freestanding compilers.  */
2710
2711#ifdef __STDC__
2712# include <limits.h>
2713#else
2714# include <assert.h>
2715#endif
2716
2717#undef $2
2718
2719/* Override any GCC internal prototype to avoid an error.
2720   Use char because int might match the return type of a GCC
2721   builtin and then its argument prototype would still apply.  */
2722#ifdef __cplusplus
2723extern "C"
2724#endif
2725char $2 ();
2726/* The GNU C library defines this for functions which it implements
2727    to always fail with ENOSYS.  Some functions are actually named
2728    something starting with __ and the normal name is an alias.  */
2729#if defined __stub_$2 || defined __stub___$2
2730choke me
2731#endif
2732
2733int
2734main ()
2735{
2736return $2 ();
2737  ;
2738  return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_link "$LINENO"; then :
2742  eval "$3=yes"
2743else
2744  eval "$3=no"
2745fi
2746rm -f core conftest.err conftest.$ac_objext \
2747    conftest$ac_exeext conftest.$ac_ext
2748fi
2749eval ac_res=\$$3
2750	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751$as_echo "$ac_res" >&6; }
2752  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753
2754} # ac_fn_c_check_func
2755
2756# ac_fn_cxx_try_cpp LINENO
2757# ------------------------
2758# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2759ac_fn_cxx_try_cpp ()
2760{
2761  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2762  if { { ac_try="$ac_cpp conftest.$ac_ext"
2763case "(($ac_try" in
2764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765  *) ac_try_echo=$ac_try;;
2766esac
2767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2768$as_echo "$ac_try_echo"; } >&5
2769  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2770  ac_status=$?
2771  if test -s conftest.err; then
2772    grep -v '^ *+' conftest.err >conftest.er1
2773    cat conftest.er1 >&5
2774    mv -f conftest.er1 conftest.err
2775  fi
2776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777  test $ac_status = 0; } > conftest.i && {
2778	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2779	 test ! -s conftest.err
2780       }; then :
2781  ac_retval=0
2782else
2783  $as_echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786    ac_retval=1
2787fi
2788  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789  as_fn_set_status $ac_retval
2790
2791} # ac_fn_cxx_try_cpp
2792
2793# ac_fn_cxx_try_link LINENO
2794# -------------------------
2795# Try to link conftest.$ac_ext, and return whether this succeeded.
2796ac_fn_cxx_try_link ()
2797{
2798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799  rm -f conftest.$ac_objext conftest$ac_exeext
2800  if { { ac_try="$ac_link"
2801case "(($ac_try" in
2802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2803  *) ac_try_echo=$ac_try;;
2804esac
2805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2806$as_echo "$ac_try_echo"; } >&5
2807  (eval "$ac_link") 2>conftest.err
2808  ac_status=$?
2809  if test -s conftest.err; then
2810    grep -v '^ *+' conftest.err >conftest.er1
2811    cat conftest.er1 >&5
2812    mv -f conftest.er1 conftest.err
2813  fi
2814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2815  test $ac_status = 0; } && {
2816	 test -z "$ac_cxx_werror_flag" ||
2817	 test ! -s conftest.err
2818       } && test -s conftest$ac_exeext && {
2819	 test "$cross_compiling" = yes ||
2820	 test -x conftest$ac_exeext
2821       }; then :
2822  ac_retval=0
2823else
2824  $as_echo "$as_me: failed program was:" >&5
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
2827	ac_retval=1
2828fi
2829  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2830  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2831  # interfere with the next link command; also delete a directory that is
2832  # left behind by Apple's compiler.  We do this before executing the actions.
2833  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2834  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2835  as_fn_set_status $ac_retval
2836
2837} # ac_fn_cxx_try_link
2838
2839# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2840# -------------------------------------------
2841# Tests whether TYPE exists after having included INCLUDES, setting cache
2842# variable VAR accordingly.
2843ac_fn_c_check_type ()
2844{
2845  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2846  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2847$as_echo_n "checking for $2... " >&6; }
2848if eval \${$3+:} false; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  eval "$3=no"
2852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2853/* end confdefs.h.  */
2854$4
2855int
2856main ()
2857{
2858if (sizeof ($2))
2859	 return 0;
2860  ;
2861  return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2866/* end confdefs.h.  */
2867$4
2868int
2869main ()
2870{
2871if (sizeof (($2)))
2872	    return 0;
2873  ;
2874  return 0;
2875}
2876_ACEOF
2877if ac_fn_c_try_compile "$LINENO"; then :
2878
2879else
2880  eval "$3=yes"
2881fi
2882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883fi
2884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2885fi
2886eval ac_res=\$$3
2887	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888$as_echo "$ac_res" >&6; }
2889  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890
2891} # ac_fn_c_check_type
2892
2893# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2894# ----------------------------------------------------
2895# Tries to find if the field MEMBER exists in type AGGR, after including
2896# INCLUDES, setting cache variable VAR accordingly.
2897ac_fn_c_check_member ()
2898{
2899  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2901$as_echo_n "checking for $2.$3... " >&6; }
2902if eval \${$4+:} false; then :
2903  $as_echo_n "(cached) " >&6
2904else
2905  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2906/* end confdefs.h.  */
2907$5
2908int
2909main ()
2910{
2911static $2 ac_aggr;
2912if (ac_aggr.$3)
2913return 0;
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918if ac_fn_c_try_compile "$LINENO"; then :
2919  eval "$4=yes"
2920else
2921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922/* end confdefs.h.  */
2923$5
2924int
2925main ()
2926{
2927static $2 ac_aggr;
2928if (sizeof ac_aggr.$3)
2929return 0;
2930  ;
2931  return 0;
2932}
2933_ACEOF
2934if ac_fn_c_try_compile "$LINENO"; then :
2935  eval "$4=yes"
2936else
2937  eval "$4=no"
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942fi
2943eval ac_res=\$$4
2944	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2945$as_echo "$ac_res" >&6; }
2946  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2947
2948} # ac_fn_c_check_member
2949
2950# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2951# ---------------------------------------------
2952# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2953# accordingly.
2954ac_fn_c_check_decl ()
2955{
2956  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2957  as_decl_name=`echo $2|sed 's/ *(.*//'`
2958  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2960$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2961if eval \${$3+:} false; then :
2962  $as_echo_n "(cached) " >&6
2963else
2964  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2965/* end confdefs.h.  */
2966$4
2967int
2968main ()
2969{
2970#ifndef $as_decl_name
2971#ifdef __cplusplus
2972  (void) $as_decl_use;
2973#else
2974  (void) $as_decl_name;
2975#endif
2976#endif
2977
2978  ;
2979  return 0;
2980}
2981_ACEOF
2982if ac_fn_c_try_compile "$LINENO"; then :
2983  eval "$3=yes"
2984else
2985  eval "$3=no"
2986fi
2987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2988fi
2989eval ac_res=\$$3
2990	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2991$as_echo "$ac_res" >&6; }
2992  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2993
2994} # ac_fn_c_check_decl
2995
2996# ac_fn_c_find_intX_t LINENO BITS VAR
2997# -----------------------------------
2998# Finds a signed integer type with width BITS, setting cache variable VAR
2999# accordingly.
3000ac_fn_c_find_intX_t ()
3001{
3002  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
3004$as_echo_n "checking for int$2_t... " >&6; }
3005if eval \${$3+:} false; then :
3006  $as_echo_n "(cached) " >&6
3007else
3008  eval "$3=no"
3009     # Order is important - never check a type that is potentially smaller
3010     # than half of the expected target width.
3011     for ac_type in int$2_t 'int' 'long int' \
3012	 'long long int' 'short int' 'signed char'; do
3013       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3014/* end confdefs.h.  */
3015$ac_includes_default
3016	     enum { N = $2 / 2 - 1 };
3017int
3018main ()
3019{
3020static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
3021test_array [0] = 0;
3022return test_array [0];
3023
3024  ;
3025  return 0;
3026}
3027_ACEOF
3028if ac_fn_c_try_compile "$LINENO"; then :
3029  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3030/* end confdefs.h.  */
3031$ac_includes_default
3032	        enum { N = $2 / 2 - 1 };
3033int
3034main ()
3035{
3036static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
3037		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
3038test_array [0] = 0;
3039return test_array [0];
3040
3041  ;
3042  return 0;
3043}
3044_ACEOF
3045if ac_fn_c_try_compile "$LINENO"; then :
3046
3047else
3048  case $ac_type in #(
3049  int$2_t) :
3050    eval "$3=yes" ;; #(
3051  *) :
3052    eval "$3=\$ac_type" ;;
3053esac
3054fi
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056fi
3057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3058       if eval test \"x\$"$3"\" = x"no"; then :
3059
3060else
3061  break
3062fi
3063     done
3064fi
3065eval ac_res=\$$3
3066	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3067$as_echo "$ac_res" >&6; }
3068  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3069
3070} # ac_fn_c_find_intX_t
3071
3072# ac_fn_c_find_uintX_t LINENO BITS VAR
3073# ------------------------------------
3074# Finds an unsigned integer type with width BITS, setting cache variable VAR
3075# accordingly.
3076ac_fn_c_find_uintX_t ()
3077{
3078  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3079  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
3080$as_echo_n "checking for uint$2_t... " >&6; }
3081if eval \${$3+:} false; then :
3082  $as_echo_n "(cached) " >&6
3083else
3084  eval "$3=no"
3085     # Order is important - never check a type that is potentially smaller
3086     # than half of the expected target width.
3087     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
3088	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
3089       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3090/* end confdefs.h.  */
3091$ac_includes_default
3092int
3093main ()
3094{
3095static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
3096test_array [0] = 0;
3097return test_array [0];
3098
3099  ;
3100  return 0;
3101}
3102_ACEOF
3103if ac_fn_c_try_compile "$LINENO"; then :
3104  case $ac_type in #(
3105  uint$2_t) :
3106    eval "$3=yes" ;; #(
3107  *) :
3108    eval "$3=\$ac_type" ;;
3109esac
3110fi
3111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3112       if eval test \"x\$"$3"\" = x"no"; then :
3113
3114else
3115  break
3116fi
3117     done
3118fi
3119eval ac_res=\$$3
3120	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3121$as_echo "$ac_res" >&6; }
3122  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3123
3124} # ac_fn_c_find_uintX_t
3125
3126# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3127# ---------------------------------------------------------
3128# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3129# the include files in INCLUDES and setting the cache variable VAR
3130# accordingly.
3131ac_fn_cxx_check_header_mongrel ()
3132{
3133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3134  if eval \${$3+:} false; then :
3135  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3136$as_echo_n "checking for $2... " >&6; }
3137if eval \${$3+:} false; then :
3138  $as_echo_n "(cached) " >&6
3139fi
3140eval ac_res=\$$3
3141	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3142$as_echo "$ac_res" >&6; }
3143else
3144  # Is the header compilable?
3145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3146$as_echo_n "checking $2 usability... " >&6; }
3147cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148/* end confdefs.h.  */
3149$4
3150#include <$2>
3151_ACEOF
3152if ac_fn_cxx_try_compile "$LINENO"; then :
3153  ac_header_compiler=yes
3154else
3155  ac_header_compiler=no
3156fi
3157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3159$as_echo "$ac_header_compiler" >&6; }
3160
3161# Is the header present?
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3163$as_echo_n "checking $2 presence... " >&6; }
3164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3165/* end confdefs.h.  */
3166#include <$2>
3167_ACEOF
3168if ac_fn_cxx_try_cpp "$LINENO"; then :
3169  ac_header_preproc=yes
3170else
3171  ac_header_preproc=no
3172fi
3173rm -f conftest.err conftest.i conftest.$ac_ext
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3175$as_echo "$ac_header_preproc" >&6; }
3176
3177# So?  What about this header?
3178case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3179  yes:no: )
3180    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3181$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3182    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3183$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3184    ;;
3185  no:yes:* )
3186    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3187$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3188    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3189$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3190    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3191$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3192    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3193$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3194    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3195$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3196( $as_echo "## ---------------------------------------------------------------- ##
3197## Report this to https://github.com/ImageMagick/ImageMagick/issues ##
3198## ---------------------------------------------------------------- ##"
3199     ) | sed "s/^/$as_me: WARNING:     /" >&2
3200    ;;
3201esac
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3203$as_echo_n "checking for $2... " >&6; }
3204if eval \${$3+:} false; then :
3205  $as_echo_n "(cached) " >&6
3206else
3207  eval "$3=\$ac_header_compiler"
3208fi
3209eval ac_res=\$$3
3210	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3211$as_echo "$ac_res" >&6; }
3212fi
3213  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3214
3215} # ac_fn_cxx_check_header_mongrel
3216cat >config.log <<_ACEOF
3217This file contains any messages produced by compilers while
3218running configure, to aid debugging if configure makes a mistake.
3219
3220It was created by ImageMagick $as_me 7.0.2-5, which was
3221generated by GNU Autoconf 2.69.  Invocation command line was
3222
3223  $ $0 $@
3224
3225_ACEOF
3226exec 5>>config.log
3227{
3228cat <<_ASUNAME
3229## --------- ##
3230## Platform. ##
3231## --------- ##
3232
3233hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3234uname -m = `(uname -m) 2>/dev/null || echo unknown`
3235uname -r = `(uname -r) 2>/dev/null || echo unknown`
3236uname -s = `(uname -s) 2>/dev/null || echo unknown`
3237uname -v = `(uname -v) 2>/dev/null || echo unknown`
3238
3239/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3240/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3241
3242/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3243/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3244/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3245/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3246/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3247/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3248/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3249
3250_ASUNAME
3251
3252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253for as_dir in $PATH
3254do
3255  IFS=$as_save_IFS
3256  test -z "$as_dir" && as_dir=.
3257    $as_echo "PATH: $as_dir"
3258  done
3259IFS=$as_save_IFS
3260
3261} >&5
3262
3263cat >&5 <<_ACEOF
3264
3265
3266## ----------- ##
3267## Core tests. ##
3268## ----------- ##
3269
3270_ACEOF
3271
3272
3273# Keep a trace of the command line.
3274# Strip out --no-create and --no-recursion so they do not pile up.
3275# Strip out --silent because we don't want to record it for future runs.
3276# Also quote any args containing shell meta-characters.
3277# Make two passes to allow for proper duplicate-argument suppression.
3278ac_configure_args=
3279ac_configure_args0=
3280ac_configure_args1=
3281ac_must_keep_next=false
3282for ac_pass in 1 2
3283do
3284  for ac_arg
3285  do
3286    case $ac_arg in
3287    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3288    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3289    | -silent | --silent | --silen | --sile | --sil)
3290      continue ;;
3291    *\'*)
3292      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3293    esac
3294    case $ac_pass in
3295    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3296    2)
3297      as_fn_append ac_configure_args1 " '$ac_arg'"
3298      if test $ac_must_keep_next = true; then
3299	ac_must_keep_next=false # Got value, back to normal.
3300      else
3301	case $ac_arg in
3302	  *=* | --config-cache | -C | -disable-* | --disable-* \
3303	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3304	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3305	  | -with-* | --with-* | -without-* | --without-* | --x)
3306	    case "$ac_configure_args0 " in
3307	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3308	    esac
3309	    ;;
3310	  -* ) ac_must_keep_next=true ;;
3311	esac
3312      fi
3313      as_fn_append ac_configure_args " '$ac_arg'"
3314      ;;
3315    esac
3316  done
3317done
3318{ ac_configure_args0=; unset ac_configure_args0;}
3319{ ac_configure_args1=; unset ac_configure_args1;}
3320
3321# When interrupted or exit'd, cleanup temporary files, and complete
3322# config.log.  We remove comments because anyway the quotes in there
3323# would cause problems or look ugly.
3324# WARNING: Use '\'' to represent an apostrophe within the trap.
3325# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3326trap 'exit_status=$?
3327  # Save into config.log some information that might help in debugging.
3328  {
3329    echo
3330
3331    $as_echo "## ---------------- ##
3332## Cache variables. ##
3333## ---------------- ##"
3334    echo
3335    # The following way of writing the cache mishandles newlines in values,
3336(
3337  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3338    eval ac_val=\$$ac_var
3339    case $ac_val in #(
3340    *${as_nl}*)
3341      case $ac_var in #(
3342      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3343$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3344      esac
3345      case $ac_var in #(
3346      _ | IFS | as_nl) ;; #(
3347      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3348      *) { eval $ac_var=; unset $ac_var;} ;;
3349      esac ;;
3350    esac
3351  done
3352  (set) 2>&1 |
3353    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3354    *${as_nl}ac_space=\ *)
3355      sed -n \
3356	"s/'\''/'\''\\\\'\'''\''/g;
3357	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3358      ;; #(
3359    *)
3360      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3361      ;;
3362    esac |
3363    sort
3364)
3365    echo
3366
3367    $as_echo "## ----------------- ##
3368## Output variables. ##
3369## ----------------- ##"
3370    echo
3371    for ac_var in $ac_subst_vars
3372    do
3373      eval ac_val=\$$ac_var
3374      case $ac_val in
3375      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3376      esac
3377      $as_echo "$ac_var='\''$ac_val'\''"
3378    done | sort
3379    echo
3380
3381    if test -n "$ac_subst_files"; then
3382      $as_echo "## ------------------- ##
3383## File substitutions. ##
3384## ------------------- ##"
3385      echo
3386      for ac_var in $ac_subst_files
3387      do
3388	eval ac_val=\$$ac_var
3389	case $ac_val in
3390	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3391	esac
3392	$as_echo "$ac_var='\''$ac_val'\''"
3393      done | sort
3394      echo
3395    fi
3396
3397    if test -s confdefs.h; then
3398      $as_echo "## ----------- ##
3399## confdefs.h. ##
3400## ----------- ##"
3401      echo
3402      cat confdefs.h
3403      echo
3404    fi
3405    test "$ac_signal" != 0 &&
3406      $as_echo "$as_me: caught signal $ac_signal"
3407    $as_echo "$as_me: exit $exit_status"
3408  } >&5
3409  rm -f core *.core core.conftest.* &&
3410    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3411    exit $exit_status
3412' 0
3413for ac_signal in 1 2 13 15; do
3414  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3415done
3416ac_signal=0
3417
3418# confdefs.h avoids OS command line length limits that DEFS can exceed.
3419rm -f -r conftest* confdefs.h
3420
3421$as_echo "/* confdefs.h */" > confdefs.h
3422
3423# Predefined preprocessor variables.
3424
3425cat >>confdefs.h <<_ACEOF
3426#define PACKAGE_NAME "$PACKAGE_NAME"
3427_ACEOF
3428
3429cat >>confdefs.h <<_ACEOF
3430#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3431_ACEOF
3432
3433cat >>confdefs.h <<_ACEOF
3434#define PACKAGE_VERSION "$PACKAGE_VERSION"
3435_ACEOF
3436
3437cat >>confdefs.h <<_ACEOF
3438#define PACKAGE_STRING "$PACKAGE_STRING"
3439_ACEOF
3440
3441cat >>confdefs.h <<_ACEOF
3442#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3443_ACEOF
3444
3445cat >>confdefs.h <<_ACEOF
3446#define PACKAGE_URL "$PACKAGE_URL"
3447_ACEOF
3448
3449
3450# Let the site file select an alternate cache file if it wants to.
3451# Prefer an explicitly selected file to automatically selected ones.
3452ac_site_file1=NONE
3453ac_site_file2=NONE
3454if test -n "$CONFIG_SITE"; then
3455  # We do not want a PATH search for config.site.
3456  case $CONFIG_SITE in #((
3457    -*)  ac_site_file1=./$CONFIG_SITE;;
3458    */*) ac_site_file1=$CONFIG_SITE;;
3459    *)   ac_site_file1=./$CONFIG_SITE;;
3460  esac
3461elif test "x$prefix" != xNONE; then
3462  ac_site_file1=$prefix/share/config.site
3463  ac_site_file2=$prefix/etc/config.site
3464else
3465  ac_site_file1=$ac_default_prefix/share/config.site
3466  ac_site_file2=$ac_default_prefix/etc/config.site
3467fi
3468for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3469do
3470  test "x$ac_site_file" = xNONE && continue
3471  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3472    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3473$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3474    sed 's/^/| /' "$ac_site_file" >&5
3475    . "$ac_site_file" \
3476      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478as_fn_error $? "failed to load site script $ac_site_file
3479See \`config.log' for more details" "$LINENO" 5; }
3480  fi
3481done
3482
3483if test -r "$cache_file"; then
3484  # Some versions of bash will fail to source /dev/null (special files
3485  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3486  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3487    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3488$as_echo "$as_me: loading cache $cache_file" >&6;}
3489    case $cache_file in
3490      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3491      *)                      . "./$cache_file";;
3492    esac
3493  fi
3494else
3495  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3496$as_echo "$as_me: creating cache $cache_file" >&6;}
3497  >$cache_file
3498fi
3499
3500as_fn_append ac_header_list " stdlib.h"
3501as_fn_append ac_header_list " unistd.h"
3502as_fn_append ac_header_list " sys/param.h"
3503# Check that the precious variables saved in the cache have kept the same
3504# value.
3505ac_cache_corrupted=false
3506for ac_var in $ac_precious_vars; do
3507  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3508  eval ac_new_set=\$ac_env_${ac_var}_set
3509  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3510  eval ac_new_val=\$ac_env_${ac_var}_value
3511  case $ac_old_set,$ac_new_set in
3512    set,)
3513      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3514$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3515      ac_cache_corrupted=: ;;
3516    ,set)
3517      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3518$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3519      ac_cache_corrupted=: ;;
3520    ,);;
3521    *)
3522      if test "x$ac_old_val" != "x$ac_new_val"; then
3523	# differences in whitespace do not lead to failure.
3524	ac_old_val_w=`echo x $ac_old_val`
3525	ac_new_val_w=`echo x $ac_new_val`
3526	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3527	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3528$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3529	  ac_cache_corrupted=:
3530	else
3531	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3532$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3533	  eval $ac_var=\$ac_old_val
3534	fi
3535	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3536$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3537	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3538$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3539      fi;;
3540  esac
3541  # Pass precious variables to config.status.
3542  if test "$ac_new_set" = set; then
3543    case $ac_new_val in
3544    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3545    *) ac_arg=$ac_var=$ac_new_val ;;
3546    esac
3547    case " $ac_configure_args " in
3548      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3549      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3550    esac
3551  fi
3552done
3553if $ac_cache_corrupted; then
3554  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3557$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3558  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3559fi
3560## -------------------- ##
3561## Main body of script. ##
3562## -------------------- ##
3563
3564ac_ext=c
3565ac_cpp='$CPP $CPPFLAGS'
3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3568ac_compiler_gnu=$ac_cv_c_compiler_gnu
3569
3570
3571
3572ac_aux_dir=
3573for ac_dir in config "$srcdir"/config; do
3574  if test -f "$ac_dir/install-sh"; then
3575    ac_aux_dir=$ac_dir
3576    ac_install_sh="$ac_aux_dir/install-sh -c"
3577    break
3578  elif test -f "$ac_dir/install.sh"; then
3579    ac_aux_dir=$ac_dir
3580    ac_install_sh="$ac_aux_dir/install.sh -c"
3581    break
3582  elif test -f "$ac_dir/shtool"; then
3583    ac_aux_dir=$ac_dir
3584    ac_install_sh="$ac_aux_dir/shtool install -c"
3585    break
3586  fi
3587done
3588if test -z "$ac_aux_dir"; then
3589  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3590fi
3591
3592# These three variables are undocumented and unsupported,
3593# and are intended to be withdrawn in a future Autoconf release.
3594# They can cause serious problems if a builder's source tree is in a directory
3595# whose full name contains unusual characters.
3596ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3597ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3598ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3599
3600
3601
3602
3603ac_config_headers="$ac_config_headers config/config.h"
3604
3605
3606ac_config_commands="$ac_config_commands MagickCore/magick-baseconfig.h"
3607
3608# Make sure we can run config.sub.
3609$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3610  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3611
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3613$as_echo_n "checking build system type... " >&6; }
3614if ${ac_cv_build+:} false; then :
3615  $as_echo_n "(cached) " >&6
3616else
3617  ac_build_alias=$build_alias
3618test "x$ac_build_alias" = x &&
3619  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3620test "x$ac_build_alias" = x &&
3621  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3622ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3623  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3624
3625fi
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3627$as_echo "$ac_cv_build" >&6; }
3628case $ac_cv_build in
3629*-*-*) ;;
3630*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3631esac
3632build=$ac_cv_build
3633ac_save_IFS=$IFS; IFS='-'
3634set x $ac_cv_build
3635shift
3636build_cpu=$1
3637build_vendor=$2
3638shift; shift
3639# Remember, the first character of IFS is used to create $*,
3640# except with old shells:
3641build_os=$*
3642IFS=$ac_save_IFS
3643case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3644
3645
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3647$as_echo_n "checking host system type... " >&6; }
3648if ${ac_cv_host+:} false; then :
3649  $as_echo_n "(cached) " >&6
3650else
3651  if test "x$host_alias" = x; then
3652  ac_cv_host=$ac_cv_build
3653else
3654  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3655    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3656fi
3657
3658fi
3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3660$as_echo "$ac_cv_host" >&6; }
3661case $ac_cv_host in
3662*-*-*) ;;
3663*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3664esac
3665host=$ac_cv_host
3666ac_save_IFS=$IFS; IFS='-'
3667set x $ac_cv_host
3668shift
3669host_cpu=$1
3670host_vendor=$2
3671shift; shift
3672# Remember, the first character of IFS is used to create $*,
3673# except with old shells:
3674host_os=$*
3675IFS=$ac_save_IFS
3676case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3677
3678
3679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3680$as_echo_n "checking target system type... " >&6; }
3681if ${ac_cv_target+:} false; then :
3682  $as_echo_n "(cached) " >&6
3683else
3684  if test "x$target_alias" = x; then
3685  ac_cv_target=$ac_cv_host
3686else
3687  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3688    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3689fi
3690
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3693$as_echo "$ac_cv_target" >&6; }
3694case $ac_cv_target in
3695*-*-*) ;;
3696*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3697esac
3698target=$ac_cv_target
3699ac_save_IFS=$IFS; IFS='-'
3700set x $ac_cv_target
3701shift
3702target_cpu=$1
3703target_vendor=$2
3704shift; shift
3705# Remember, the first character of IFS is used to create $*,
3706# except with old shells:
3707target_os=$*
3708IFS=$ac_save_IFS
3709case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3710
3711
3712# The aliases save the names the user supplied, while $host etc.
3713# will get canonicalized.
3714test -n "$target_alias" &&
3715  test "$program_prefix$program_suffix$program_transform_name" = \
3716    NONENONEs,x,x, &&
3717  program_prefix=${target_alias}-
3718
3719
3720am__api_version='1.15'
3721
3722# Find a good install program.  We prefer a C program (faster),
3723# so one script is as good as another.  But avoid the broken or
3724# incompatible versions:
3725# SysV /etc/install, /usr/sbin/install
3726# SunOS /usr/etc/install
3727# IRIX /sbin/install
3728# AIX /bin/install
3729# AmigaOS /C/install, which installs bootblocks on floppy discs
3730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3733# OS/2's system install, which has a completely different semantic
3734# ./install, which can be erroneously created by make from ./install.sh.
3735# Reject install programs that cannot install multiple files.
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3737$as_echo_n "checking for a BSD-compatible install... " >&6; }
3738if test -z "$INSTALL"; then
3739if ${ac_cv_path_install+:} false; then :
3740  $as_echo_n "(cached) " >&6
3741else
3742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745  IFS=$as_save_IFS
3746  test -z "$as_dir" && as_dir=.
3747    # Account for people who put trailing slashes in PATH elements.
3748case $as_dir/ in #((
3749  ./ | .// | /[cC]/* | \
3750  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3751  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3752  /usr/ucb/* ) ;;
3753  *)
3754    # OSF1 and SCO ODT 3.0 have their own names for install.
3755    # Don't use installbsd from OSF since it installs stuff as root
3756    # by default.
3757    for ac_prog in ginstall scoinst install; do
3758      for ac_exec_ext in '' $ac_executable_extensions; do
3759	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3760	  if test $ac_prog = install &&
3761	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3762	    # AIX install.  It has an incompatible calling convention.
3763	    :
3764	  elif test $ac_prog = install &&
3765	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3766	    # program-specific install script used by HP pwplus--don't use.
3767	    :
3768	  else
3769	    rm -rf conftest.one conftest.two conftest.dir
3770	    echo one > conftest.one
3771	    echo two > conftest.two
3772	    mkdir conftest.dir
3773	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3774	      test -s conftest.one && test -s conftest.two &&
3775	      test -s conftest.dir/conftest.one &&
3776	      test -s conftest.dir/conftest.two
3777	    then
3778	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3779	      break 3
3780	    fi
3781	  fi
3782	fi
3783      done
3784    done
3785    ;;
3786esac
3787
3788  done
3789IFS=$as_save_IFS
3790
3791rm -rf conftest.one conftest.two conftest.dir
3792
3793fi
3794  if test "${ac_cv_path_install+set}" = set; then
3795    INSTALL=$ac_cv_path_install
3796  else
3797    # As a last resort, use the slow shell script.  Don't cache a
3798    # value for INSTALL within a source directory, because that will
3799    # break other packages using the cache if that directory is
3800    # removed, or if the value is a relative name.
3801    INSTALL=$ac_install_sh
3802  fi
3803fi
3804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3805$as_echo "$INSTALL" >&6; }
3806
3807# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3808# It thinks the first close brace ends the variable substitution.
3809test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3810
3811test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3812
3813test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3814
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3816$as_echo_n "checking whether build environment is sane... " >&6; }
3817# Reject unsafe characters in $srcdir or the absolute working directory
3818# name.  Accept space and tab only in the latter.
3819am_lf='
3820'
3821case `pwd` in
3822  *[\\\"\#\$\&\'\`$am_lf]*)
3823    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3824esac
3825case $srcdir in
3826  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3827    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3828esac
3829
3830# Do 'set' in a subshell so we don't clobber the current shell's
3831# arguments.  Must try -L first in case configure is actually a
3832# symlink; some systems play weird games with the mod time of symlinks
3833# (eg FreeBSD returns the mod time of the symlink's containing
3834# directory).
3835if (
3836   am_has_slept=no
3837   for am_try in 1 2; do
3838     echo "timestamp, slept: $am_has_slept" > conftest.file
3839     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3840     if test "$*" = "X"; then
3841	# -L didn't work.
3842	set X `ls -t "$srcdir/configure" conftest.file`
3843     fi
3844     if test "$*" != "X $srcdir/configure conftest.file" \
3845	&& test "$*" != "X conftest.file $srcdir/configure"; then
3846
3847	# If neither matched, then we have a broken ls.  This can happen
3848	# if, for instance, CONFIG_SHELL is bash and it inherits a
3849	# broken ls alias from the environment.  This has actually
3850	# happened.  Such a system could not be considered "sane".
3851	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3852  alias in your environment" "$LINENO" 5
3853     fi
3854     if test "$2" = conftest.file || test $am_try -eq 2; then
3855       break
3856     fi
3857     # Just in case.
3858     sleep 1
3859     am_has_slept=yes
3860   done
3861   test "$2" = conftest.file
3862   )
3863then
3864   # Ok.
3865   :
3866else
3867   as_fn_error $? "newly created file is older than distributed files!
3868Check your system clock" "$LINENO" 5
3869fi
3870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871$as_echo "yes" >&6; }
3872# If we didn't sleep, we still need to ensure time stamps of config.status and
3873# generated files are strictly newer.
3874am_sleep_pid=
3875if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3876  ( sleep 1 ) &
3877  am_sleep_pid=$!
3878fi
3879
3880rm -f conftest.file
3881
3882test "$program_prefix" != NONE &&
3883  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3884# Use a double $ so make ignores it.
3885test "$program_suffix" != NONE &&
3886  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3887# Double any \ or $.
3888# By default was `s,x,x', remove it if useless.
3889ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3890program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3891
3892# Expand $ac_aux_dir to an absolute path.
3893am_aux_dir=`cd "$ac_aux_dir" && pwd`
3894
3895if test x"${MISSING+set}" != xset; then
3896  case $am_aux_dir in
3897  *\ * | *\	*)
3898    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3899  *)
3900    MISSING="\${SHELL} $am_aux_dir/missing" ;;
3901  esac
3902fi
3903# Use eval to expand $SHELL
3904if eval "$MISSING --is-lightweight"; then
3905  am_missing_run="$MISSING "
3906else
3907  am_missing_run=
3908  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3909$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3910fi
3911
3912if test x"${install_sh+set}" != xset; then
3913  case $am_aux_dir in
3914  *\ * | *\	*)
3915    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3916  *)
3917    install_sh="\${SHELL} $am_aux_dir/install-sh"
3918  esac
3919fi
3920
3921# Installed binaries are usually stripped using 'strip' when the user
3922# run "make install-strip".  However 'strip' might not be the right
3923# tool to use in cross-compilation environments, therefore Automake
3924# will honor the 'STRIP' environment variable to overrule this program.
3925if test "$cross_compiling" != no; then
3926  if test -n "$ac_tool_prefix"; then
3927  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3928set dummy ${ac_tool_prefix}strip; ac_word=$2
3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3930$as_echo_n "checking for $ac_word... " >&6; }
3931if ${ac_cv_prog_STRIP+:} false; then :
3932  $as_echo_n "(cached) " >&6
3933else
3934  if test -n "$STRIP"; then
3935  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3936else
3937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938for as_dir in $PATH
3939do
3940  IFS=$as_save_IFS
3941  test -z "$as_dir" && as_dir=.
3942    for ac_exec_ext in '' $ac_executable_extensions; do
3943  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3944    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3945    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946    break 2
3947  fi
3948done
3949  done
3950IFS=$as_save_IFS
3951
3952fi
3953fi
3954STRIP=$ac_cv_prog_STRIP
3955if test -n "$STRIP"; then
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3957$as_echo "$STRIP" >&6; }
3958else
3959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963
3964fi
3965if test -z "$ac_cv_prog_STRIP"; then
3966  ac_ct_STRIP=$STRIP
3967  # Extract the first word of "strip", so it can be a program name with args.
3968set dummy strip; ac_word=$2
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3970$as_echo_n "checking for $ac_word... " >&6; }
3971if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3972  $as_echo_n "(cached) " >&6
3973else
3974  if test -n "$ac_ct_STRIP"; then
3975  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3976else
3977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978for as_dir in $PATH
3979do
3980  IFS=$as_save_IFS
3981  test -z "$as_dir" && as_dir=.
3982    for ac_exec_ext in '' $ac_executable_extensions; do
3983  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3984    ac_cv_prog_ac_ct_STRIP="strip"
3985    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3986    break 2
3987  fi
3988done
3989  done
3990IFS=$as_save_IFS
3991
3992fi
3993fi
3994ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3995if test -n "$ac_ct_STRIP"; then
3996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3997$as_echo "$ac_ct_STRIP" >&6; }
3998else
3999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
4002
4003  if test "x$ac_ct_STRIP" = x; then
4004    STRIP=":"
4005  else
4006    case $cross_compiling:$ac_tool_warned in
4007yes:)
4008{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4009$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4010ac_tool_warned=yes ;;
4011esac
4012    STRIP=$ac_ct_STRIP
4013  fi
4014else
4015  STRIP="$ac_cv_prog_STRIP"
4016fi
4017
4018fi
4019INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4020
4021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4022$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4023if test -z "$MKDIR_P"; then
4024  if ${ac_cv_path_mkdir+:} false; then :
4025  $as_echo_n "(cached) " >&6
4026else
4027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4029do
4030  IFS=$as_save_IFS
4031  test -z "$as_dir" && as_dir=.
4032    for ac_prog in mkdir gmkdir; do
4033	 for ac_exec_ext in '' $ac_executable_extensions; do
4034	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4035	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4036	     'mkdir (GNU coreutils) '* | \
4037	     'mkdir (coreutils) '* | \
4038	     'mkdir (fileutils) '4.1*)
4039	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4040	       break 3;;
4041	   esac
4042	 done
4043       done
4044  done
4045IFS=$as_save_IFS
4046
4047fi
4048
4049  test -d ./--version && rmdir ./--version
4050  if test "${ac_cv_path_mkdir+set}" = set; then
4051    MKDIR_P="$ac_cv_path_mkdir -p"
4052  else
4053    # As a last resort, use the slow shell script.  Don't cache a
4054    # value for MKDIR_P within a source directory, because that will
4055    # break other packages using the cache if that directory is
4056    # removed, or if the value is a relative name.
4057    MKDIR_P="$ac_install_sh -d"
4058  fi
4059fi
4060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4061$as_echo "$MKDIR_P" >&6; }
4062
4063for ac_prog in gawk mawk nawk awk
4064do
4065  # Extract the first word of "$ac_prog", so it can be a program name with args.
4066set dummy $ac_prog; ac_word=$2
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4068$as_echo_n "checking for $ac_word... " >&6; }
4069if ${ac_cv_prog_AWK+:} false; then :
4070  $as_echo_n "(cached) " >&6
4071else
4072  if test -n "$AWK"; then
4073  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4074else
4075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076for as_dir in $PATH
4077do
4078  IFS=$as_save_IFS
4079  test -z "$as_dir" && as_dir=.
4080    for ac_exec_ext in '' $ac_executable_extensions; do
4081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4082    ac_cv_prog_AWK="$ac_prog"
4083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084    break 2
4085  fi
4086done
4087  done
4088IFS=$as_save_IFS
4089
4090fi
4091fi
4092AWK=$ac_cv_prog_AWK
4093if test -n "$AWK"; then
4094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4095$as_echo "$AWK" >&6; }
4096else
4097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098$as_echo "no" >&6; }
4099fi
4100
4101
4102  test -n "$AWK" && break
4103done
4104
4105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4106$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4107set x ${MAKE-make}
4108ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4109if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4110  $as_echo_n "(cached) " >&6
4111else
4112  cat >conftest.make <<\_ACEOF
4113SHELL = /bin/sh
4114all:
4115	@echo '@@@%%%=$(MAKE)=@@@%%%'
4116_ACEOF
4117# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4118case `${MAKE-make} -f conftest.make 2>/dev/null` in
4119  *@@@%%%=?*=@@@%%%*)
4120    eval ac_cv_prog_make_${ac_make}_set=yes;;
4121  *)
4122    eval ac_cv_prog_make_${ac_make}_set=no;;
4123esac
4124rm -f conftest.make
4125fi
4126if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4128$as_echo "yes" >&6; }
4129  SET_MAKE=
4130else
4131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132$as_echo "no" >&6; }
4133  SET_MAKE="MAKE=${MAKE-make}"
4134fi
4135
4136rm -rf .tst 2>/dev/null
4137mkdir .tst 2>/dev/null
4138if test -d .tst; then
4139  am__leading_dot=.
4140else
4141  am__leading_dot=_
4142fi
4143rmdir .tst 2>/dev/null
4144
4145# Check whether --enable-silent-rules was given.
4146if test "${enable_silent_rules+set}" = set; then :
4147  enableval=$enable_silent_rules;
4148fi
4149
4150case $enable_silent_rules in # (((
4151  yes) AM_DEFAULT_VERBOSITY=0;;
4152   no) AM_DEFAULT_VERBOSITY=1;;
4153    *) AM_DEFAULT_VERBOSITY=1;;
4154esac
4155am_make=${MAKE-make}
4156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4157$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4158if ${am_cv_make_support_nested_variables+:} false; then :
4159  $as_echo_n "(cached) " >&6
4160else
4161  if $as_echo 'TRUE=$(BAR$(V))
4162BAR0=false
4163BAR1=true
4164V=1
4165am__doit:
4166	@$(TRUE)
4167.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4168  am_cv_make_support_nested_variables=yes
4169else
4170  am_cv_make_support_nested_variables=no
4171fi
4172fi
4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4174$as_echo "$am_cv_make_support_nested_variables" >&6; }
4175if test $am_cv_make_support_nested_variables = yes; then
4176    AM_V='$(V)'
4177  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4178else
4179  AM_V=$AM_DEFAULT_VERBOSITY
4180  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4181fi
4182AM_BACKSLASH='\'
4183
4184if test "`cd $srcdir && pwd`" != "`pwd`"; then
4185  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4186  # is not polluted with repeated "-I."
4187  am__isrc=' -I$(srcdir)'
4188  # test to see if srcdir already configured
4189  if test -f $srcdir/config.status; then
4190    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4191  fi
4192fi
4193
4194# test whether we have cygpath
4195if test -z "$CYGPATH_W"; then
4196  if (cygpath --version) >/dev/null 2>/dev/null; then
4197    CYGPATH_W='cygpath -w'
4198  else
4199    CYGPATH_W=echo
4200  fi
4201fi
4202
4203
4204# Define the identity of the package.
4205 PACKAGE='ImageMagick'
4206 VERSION='7.0.2-5'
4207
4208
4209cat >>confdefs.h <<_ACEOF
4210#define PACKAGE "$PACKAGE"
4211_ACEOF
4212
4213
4214cat >>confdefs.h <<_ACEOF
4215#define VERSION "$VERSION"
4216_ACEOF
4217
4218# Some tools Automake needs.
4219
4220ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4221
4222
4223AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4224
4225
4226AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4227
4228
4229AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4230
4231
4232MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4233
4234# For better backward compatibility.  To be removed once Automake 1.9.x
4235# dies out for good.  For more background, see:
4236# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4237# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4238mkdir_p='$(MKDIR_P)'
4239
4240# We need awk for the "check" target (and possibly the TAP driver).  The
4241# system "awk" is bad on some platforms.
4242# Always define AMTAR for backward compatibility.  Yes, it's still used
4243# in the wild :-(  We should find a proper way to deprecate it ...
4244AMTAR='$${TAR-tar}'
4245
4246
4247# We'll loop over all known methods to create a tar archive until one works.
4248_am_tools='gnutar plaintar pax cpio none'
4249
4250# The POSIX 1988 'ustar' format is defined with fixed-size fields.
4251      # There is notably a 21 bits limit for the UID and the GID.  In fact,
4252      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4253      # and bug#13588).
4254      am_max_uid=2097151 # 2^21 - 1
4255      am_max_gid=$am_max_uid
4256      # The $UID and $GID variables are not portable, so we need to resort
4257      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
4258      # below are definitely unexpected, so allow the users to see them
4259      # (that is, avoid stderr redirection).
4260      am_uid=`id -u || echo unknown`
4261      am_gid=`id -g || echo unknown`
4262      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4263$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4264      if test $am_uid -le $am_max_uid; then
4265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4266$as_echo "yes" >&6; }
4267      else
4268         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269$as_echo "no" >&6; }
4270         _am_tools=none
4271      fi
4272      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4273$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4274      if test $am_gid -le $am_max_gid; then
4275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4276$as_echo "yes" >&6; }
4277      else
4278        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279$as_echo "no" >&6; }
4280        _am_tools=none
4281      fi
4282
4283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4284$as_echo_n "checking how to create a ustar tar archive... " >&6; }
4285
4286  # Go ahead even if we have the value already cached.  We do so because we
4287  # need to set the values for the 'am__tar' and 'am__untar' variables.
4288  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4289
4290  for _am_tool in $_am_tools; do
4291    case $_am_tool in
4292    gnutar)
4293      for _am_tar in tar gnutar gtar; do
4294        { echo "$as_me:$LINENO: $_am_tar --version" >&5
4295   ($_am_tar --version) >&5 2>&5
4296   ac_status=$?
4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298   (exit $ac_status); } && break
4299      done
4300      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4301      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4302      am__untar="$_am_tar -xf -"
4303      ;;
4304    plaintar)
4305      # Must skip GNU tar: if it does not support --format= it doesn't create
4306      # ustar tarball either.
4307      (tar --version) >/dev/null 2>&1 && continue
4308      am__tar='tar chf - "$$tardir"'
4309      am__tar_='tar chf - "$tardir"'
4310      am__untar='tar xf -'
4311      ;;
4312    pax)
4313      am__tar='pax -L -x ustar -w "$$tardir"'
4314      am__tar_='pax -L -x ustar -w "$tardir"'
4315      am__untar='pax -r'
4316      ;;
4317    cpio)
4318      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4319      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4320      am__untar='cpio -i -H ustar -d'
4321      ;;
4322    none)
4323      am__tar=false
4324      am__tar_=false
4325      am__untar=false
4326      ;;
4327    esac
4328
4329    # If the value was cached, stop now.  We just wanted to have am__tar
4330    # and am__untar set.
4331    test -n "${am_cv_prog_tar_ustar}" && break
4332
4333    # tar/untar a dummy directory, and stop if the command works.
4334    rm -rf conftest.dir
4335    mkdir conftest.dir
4336    echo GrepMe > conftest.dir/file
4337    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4338   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }
4342    rm -rf conftest.dir
4343    if test -s conftest.tar; then
4344      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4345   ($am__untar <conftest.tar) >&5 2>&5
4346   ac_status=$?
4347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); }
4349      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4350   (cat conftest.dir/file) >&5 2>&5
4351   ac_status=$?
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); }
4354      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4355    fi
4356  done
4357  rm -rf conftest.dir
4358
4359  if ${am_cv_prog_tar_ustar+:} false; then :
4360  $as_echo_n "(cached) " >&6
4361else
4362  am_cv_prog_tar_ustar=$_am_tool
4363fi
4364
4365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4366$as_echo "$am_cv_prog_tar_ustar" >&6; }
4367
4368
4369
4370
4371
4372
4373# POSIX will say in a future version that running "rm -f" with no argument
4374# is OK; and we want to be able to make that assumption in our Makefile
4375# recipes.  So use an aggressive probe to check that the usage we want is
4376# actually supported "in the wild" to an acceptable degree.
4377# See automake bug#10828.
4378# To make any issue more visible, cause the running configure to be aborted
4379# by default if the 'rm' program in use doesn't match our expectations; the
4380# user can still override this though.
4381if rm -f && rm -fr && rm -rf; then : OK; else
4382  cat >&2 <<'END'
4383Oops!
4384
4385Your 'rm' program seems unable to run without file operands specified
4386on the command line, even when the '-f' option is present.  This is contrary
4387to the behaviour of most rm programs out there, and not conforming with
4388the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4389
4390Please tell bug-automake@gnu.org about your system, including the value
4391of your $PATH and any error possibly output before this message.  This
4392can help us improve future automake versions.
4393
4394END
4395  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4396    echo 'Configuration will proceed anyway, since you have set the' >&2
4397    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4398    echo >&2
4399  else
4400    cat >&2 <<'END'
4401Aborting the configuration process, to ensure you take notice of the issue.
4402
4403You can download and install GNU coreutils to get an 'rm' implementation
4404that behaves properly: <http://www.gnu.org/software/coreutils/>.
4405
4406If you want to complete the configuration process using your problematic
4407'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4408to "yes", and re-run configure.
4409
4410END
4411    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4412  fi
4413fi
4414
4415# Check whether --enable-silent-rules was given.
4416if test "${enable_silent_rules+set}" = set; then :
4417  enableval=$enable_silent_rules;
4418fi
4419
4420case $enable_silent_rules in # (((
4421  yes) AM_DEFAULT_VERBOSITY=0;;
4422   no) AM_DEFAULT_VERBOSITY=1;;
4423    *) AM_DEFAULT_VERBOSITY=0;;
4424esac
4425am_make=${MAKE-make}
4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4427$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4428if ${am_cv_make_support_nested_variables+:} false; then :
4429  $as_echo_n "(cached) " >&6
4430else
4431  if $as_echo 'TRUE=$(BAR$(V))
4432BAR0=false
4433BAR1=true
4434V=1
4435am__doit:
4436	@$(TRUE)
4437.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4438  am_cv_make_support_nested_variables=yes
4439else
4440  am_cv_make_support_nested_variables=no
4441fi
4442fi
4443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4444$as_echo "$am_cv_make_support_nested_variables" >&6; }
4445if test $am_cv_make_support_nested_variables = yes; then
4446    AM_V='$(V)'
4447  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4448else
4449  AM_V=$AM_DEFAULT_VERBOSITY
4450  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4451fi
4452AM_BACKSLASH='\'
4453
4454
4455#
4456# Save initial user-tunable values
4457#
4458USER_LIBS=$LIBS
4459for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
4460  eval isset=\${$var+set}
4461    if test "$isset" = 'set'; then
4462        eval val=$`echo $var`
4463        DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
4464    fi
4465done
4466
4467
4468CONFIGURE_ARGS="$0 ${ac_configure_args}"
4469
4470
4471# Check whether --enable-reproducible-build was given.
4472if test "${enable_reproducible_build+set}" = set; then :
4473  enableval=$enable_reproducible_build; enable_reproducible_build=$enableval
4474else
4475  enable_reproducible_build='no'
4476fi
4477
4478
4479# Source file containing package/library versioning information.
4480. ${srcdir}/version.sh
4481
4482echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4483
4484MAGICK_TARGET_CPU=$host_cpu
4485
4486
4487cat >>confdefs.h <<_ACEOF
4488#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
4489_ACEOF
4490
4491
4492MAGICK_TARGET_VENDOR=$host_vendor
4493
4494
4495cat >>confdefs.h <<_ACEOF
4496#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
4497_ACEOF
4498
4499
4500MAGICK_TARGET_OS=$host_os
4501
4502
4503cat >>confdefs.h <<_ACEOF
4504#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
4505_ACEOF
4506
4507
4508
4509# Substitute versioning
4510MAGICK_MAJOR_VERSION=7
4511
4512MAGICK_MINOR_VERSION=0
4513
4514MAGICK_MICRO_VERSION=2
4515
4516MAGICK_PATCHLEVEL_VERSION=5
4517
4518MAGICK_VERSION=7.0.2-5
4519
4520MAGICK_GIT_REVISION=18594:4c16bb8:20160711
4521
4522
4523# Substitute library versioning
4524MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
4525
4526MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
4527
4528
4529MAGICKPP_LIBRARY_CURRENT_MIN=`expr $MAGICKPP_LIBRARY_CURRENT - $MAGICKPP_LIBRARY_AGE`
4530
4531MAGICKPP_LIBRARY_VERSION_INFO=$MAGICKPP_LIBRARY_CURRENT:$MAGICKPP_LIBRARY_REVISION:$MAGICKPP_LIBRARY_AGE
4532
4533
4534if test X$enable_reproducible_build = Xyes; then :
4535  PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_REPRODUCIBLE
4536elif PACKAGE_RELEASE_DATE=$PACKAGE_RELEASE_DATE_RAW; then :
4537
4538fi
4539
4540
4541# Ensure that make can run correctly
4542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4543$as_echo_n "checking whether build environment is sane... " >&6; }
4544# Reject unsafe characters in $srcdir or the absolute working directory
4545# name.  Accept space and tab only in the latter.
4546am_lf='
4547'
4548case `pwd` in
4549  *[\\\"\#\$\&\'\`$am_lf]*)
4550    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4551esac
4552case $srcdir in
4553  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
4554    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4555esac
4556
4557# Do 'set' in a subshell so we don't clobber the current shell's
4558# arguments.  Must try -L first in case configure is actually a
4559# symlink; some systems play weird games with the mod time of symlinks
4560# (eg FreeBSD returns the mod time of the symlink's containing
4561# directory).
4562if (
4563   am_has_slept=no
4564   for am_try in 1 2; do
4565     echo "timestamp, slept: $am_has_slept" > conftest.file
4566     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4567     if test "$*" = "X"; then
4568	# -L didn't work.
4569	set X `ls -t "$srcdir/configure" conftest.file`
4570     fi
4571     if test "$*" != "X $srcdir/configure conftest.file" \
4572	&& test "$*" != "X conftest.file $srcdir/configure"; then
4573
4574	# If neither matched, then we have a broken ls.  This can happen
4575	# if, for instance, CONFIG_SHELL is bash and it inherits a
4576	# broken ls alias from the environment.  This has actually
4577	# happened.  Such a system could not be considered "sane".
4578	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
4579  alias in your environment" "$LINENO" 5
4580     fi
4581     if test "$2" = conftest.file || test $am_try -eq 2; then
4582       break
4583     fi
4584     # Just in case.
4585     sleep 1
4586     am_has_slept=yes
4587   done
4588   test "$2" = conftest.file
4589   )
4590then
4591   # Ok.
4592   :
4593else
4594   as_fn_error $? "newly created file is older than distributed files!
4595Check your system clock" "$LINENO" 5
4596fi
4597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4598$as_echo "yes" >&6; }
4599# If we didn't sleep, we still need to ensure time stamps of config.status and
4600# generated files are strictly newer.
4601am_sleep_pid=
4602if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4603  ( sleep 1 ) &
4604  am_sleep_pid=$!
4605fi
4606
4607rm -f conftest.file
4608
4609
4610# versioning of library
4611MAGICK_LIB_VERSION="0x"
4612if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4613  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4614fi
4615MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4616if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4617  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4618fi
4619MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4620if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4621  MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4622fi
4623MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4624
4625
4626# Definition used to define MagickLibVersionText in version.h
4627MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4628
4629
4630# Definition used to define MagickLibVersionNumber in version.h
4631MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4632
4633
4634MAGICKPP_LIB_VERSION="0x"
4635if test ${MAGICKPP_LIBRARY_CURRENT} -lt 10 ; then
4636  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4637fi
4638MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_CURRENT}
4639if test ${MAGICKPP_LIBRARY_AGE} -lt 10 ; then
4640  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4641fi
4642MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_AGE}
4643if test ${MAGICKPP_LIBRARY_REVISION} -lt 10 ; then
4644  MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}0
4645fi
4646MAGICKPP_LIB_VERSION=${MAGICKPP_LIB_VERSION}${MAGICKPP_LIBRARY_REVISION}
4647
4648
4649# Definition used to define MagickLibVersionText in version.h
4650MAGICKPP_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4651
4652
4653# Definition used to define MagickLibVersionNumber in version.h
4654MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4655
4656
4657
4658
4659# Regenerate config.status if ChangeLog or version.sh is updated.
4660CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4661
4662
4663PERLMAINCC=$CC
4664
4665MAGICK_CFLAGS=''
4666MAGICK_CPPFLAGS=$CPPFLAGS_USER
4667MAGICK_PCFLAGS=$CPPFLAGS_USER
4668MAGICK_LDFLAGS=''
4669MAGICK_LIBS=''
4670MAGICK_FEATURES=''
4671
4672#
4673# Evaluate shell variable equivalents to Makefile directory variables
4674#
4675if test "x$prefix" = xNONE; then
4676    prefix=$ac_default_prefix
4677fi
4678# Let make expand exec_prefix.
4679if test "x$exec_prefix" = xNONE; then
4680    exec_prefix='${prefix}'
4681fi
4682
4683#
4684eval "eval PREFIX_DIR=${prefix}"
4685
4686eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4687
4688eval "eval BIN_DIR=$bindir"
4689
4690eval "eval SBIN_DIR=$sbindir"
4691
4692eval "eval LIBEXEC_DIR=$libexecdir"
4693
4694eval "eval DATA_DIR=$datadir"
4695
4696eval "eval DOC_DIR=$datadir/doc"
4697
4698eval "eval SYSCONF_DIR=$sysconfdir"
4699
4700eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4701
4702eval "eval LOCALSTATE_DIR=$localstatedir"
4703
4704eval "eval LIB_DIR=$libdir"
4705
4706eval "eval INCLUDE_DIR=$includedir"
4707
4708eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4709
4710eval "eval INFO_DIR=$infodir"
4711
4712eval "eval MAN_DIR=$mandir"
4713
4714
4715# Get full paths to source and build directories
4716srcdirfull="`cd $srcdir && pwd`"
4717builddir="`pwd`"
4718
4719#
4720# Compute variables useful for running uninstalled software.
4721#
4722MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4723MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4724MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4725MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4726DIRSEP=':'
4727case "${build_os}" in
4728    mingw* )
4729        MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4730        MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4731        MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4732        MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4733        DIRSEP=';'
4734    ;;
4735esac
4736case "${host_os}" in
4737  mingw* )
4738    DIRSEP=';'
4739    ;;
4740esac
4741
4742
4743
4744
4745
4746
4747
4748#
4749# Enable OS features.
4750#
4751DEPDIR="${am__leading_dot}deps"
4752
4753ac_config_commands="$ac_config_commands depfiles"
4754
4755
4756am_make=${MAKE-make}
4757cat > confinc << 'END'
4758am__doit:
4759	@echo this is the am__doit target
4760.PHONY: am__doit
4761END
4762# If we don't find an include directive, just comment out the code.
4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4764$as_echo_n "checking for style of include used by $am_make... " >&6; }
4765am__include="#"
4766am__quote=
4767_am_result=none
4768# First try GNU make style include.
4769echo "include confinc" > confmf
4770# Ignore all kinds of additional output from 'make'.
4771case `$am_make -s -f confmf 2> /dev/null` in #(
4772*the\ am__doit\ target*)
4773  am__include=include
4774  am__quote=
4775  _am_result=GNU
4776  ;;
4777esac
4778# Now try BSD make style include.
4779if test "$am__include" = "#"; then
4780   echo '.include "confinc"' > confmf
4781   case `$am_make -s -f confmf 2> /dev/null` in #(
4782   *the\ am__doit\ target*)
4783     am__include=.include
4784     am__quote="\""
4785     _am_result=BSD
4786     ;;
4787   esac
4788fi
4789
4790
4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4792$as_echo "$_am_result" >&6; }
4793rm -f confinc confmf
4794
4795# Check whether --enable-dependency-tracking was given.
4796if test "${enable_dependency_tracking+set}" = set; then :
4797  enableval=$enable_dependency_tracking;
4798fi
4799
4800if test "x$enable_dependency_tracking" != xno; then
4801  am_depcomp="$ac_aux_dir/depcomp"
4802  AMDEPBACKSLASH='\'
4803  am__nodep='_no'
4804fi
4805 if test "x$enable_dependency_tracking" != xno; then
4806  AMDEP_TRUE=
4807  AMDEP_FALSE='#'
4808else
4809  AMDEP_TRUE='#'
4810  AMDEP_FALSE=
4811fi
4812
4813
4814ac_ext=c
4815ac_cpp='$CPP $CPPFLAGS'
4816ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4817ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4818ac_compiler_gnu=$ac_cv_c_compiler_gnu
4819if test -n "$ac_tool_prefix"; then
4820  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4821set dummy ${ac_tool_prefix}gcc; ac_word=$2
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4823$as_echo_n "checking for $ac_word... " >&6; }
4824if ${ac_cv_prog_CC+:} false; then :
4825  $as_echo_n "(cached) " >&6
4826else
4827  if test -n "$CC"; then
4828  ac_cv_prog_CC="$CC" # Let the user override the test.
4829else
4830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4831for as_dir in $PATH
4832do
4833  IFS=$as_save_IFS
4834  test -z "$as_dir" && as_dir=.
4835    for ac_exec_ext in '' $ac_executable_extensions; do
4836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4837    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4839    break 2
4840  fi
4841done
4842  done
4843IFS=$as_save_IFS
4844
4845fi
4846fi
4847CC=$ac_cv_prog_CC
4848if test -n "$CC"; then
4849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4850$as_echo "$CC" >&6; }
4851else
4852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853$as_echo "no" >&6; }
4854fi
4855
4856
4857fi
4858if test -z "$ac_cv_prog_CC"; then
4859  ac_ct_CC=$CC
4860  # Extract the first word of "gcc", so it can be a program name with args.
4861set dummy gcc; ac_word=$2
4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4863$as_echo_n "checking for $ac_word... " >&6; }
4864if ${ac_cv_prog_ac_ct_CC+:} false; then :
4865  $as_echo_n "(cached) " >&6
4866else
4867  if test -n "$ac_ct_CC"; then
4868  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
4872do
4873  IFS=$as_save_IFS
4874  test -z "$as_dir" && as_dir=.
4875    for ac_exec_ext in '' $ac_executable_extensions; do
4876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877    ac_cv_prog_ac_ct_CC="gcc"
4878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4879    break 2
4880  fi
4881done
4882  done
4883IFS=$as_save_IFS
4884
4885fi
4886fi
4887ac_ct_CC=$ac_cv_prog_ac_ct_CC
4888if test -n "$ac_ct_CC"; then
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4890$as_echo "$ac_ct_CC" >&6; }
4891else
4892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893$as_echo "no" >&6; }
4894fi
4895
4896  if test "x$ac_ct_CC" = x; then
4897    CC=""
4898  else
4899    case $cross_compiling:$ac_tool_warned in
4900yes:)
4901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4903ac_tool_warned=yes ;;
4904esac
4905    CC=$ac_ct_CC
4906  fi
4907else
4908  CC="$ac_cv_prog_CC"
4909fi
4910
4911if test -z "$CC"; then
4912          if test -n "$ac_tool_prefix"; then
4913    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914set dummy ${ac_tool_prefix}cc; ac_word=$2
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_CC+:} false; then :
4918  $as_echo_n "(cached) " >&6
4919else
4920  if test -n "$CC"; then
4921  ac_cv_prog_CC="$CC" # Let the user override the test.
4922else
4923as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924for as_dir in $PATH
4925do
4926  IFS=$as_save_IFS
4927  test -z "$as_dir" && as_dir=.
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_CC="${ac_tool_prefix}cc"
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
4940CC=$ac_cv_prog_CC
4941if test -n "$CC"; then
4942  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4943$as_echo "$CC" >&6; }
4944else
4945  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4946$as_echo "no" >&6; }
4947fi
4948
4949
4950  fi
4951fi
4952if test -z "$CC"; then
4953  # Extract the first word of "cc", so it can be a program name with args.
4954set dummy cc; ac_word=$2
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4956$as_echo_n "checking for $ac_word... " >&6; }
4957if ${ac_cv_prog_CC+:} false; then :
4958  $as_echo_n "(cached) " >&6
4959else
4960  if test -n "$CC"; then
4961  ac_cv_prog_CC="$CC" # Let the user override the test.
4962else
4963  ac_prog_rejected=no
4964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965for as_dir in $PATH
4966do
4967  IFS=$as_save_IFS
4968  test -z "$as_dir" && as_dir=.
4969    for ac_exec_ext in '' $ac_executable_extensions; do
4970  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4971    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4972       ac_prog_rejected=yes
4973       continue
4974     fi
4975    ac_cv_prog_CC="cc"
4976    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4977    break 2
4978  fi
4979done
4980  done
4981IFS=$as_save_IFS
4982
4983if test $ac_prog_rejected = yes; then
4984  # We found a bogon in the path, so make sure we never use it.
4985  set dummy $ac_cv_prog_CC
4986  shift
4987  if test $# != 0; then
4988    # We chose a different compiler from the bogus one.
4989    # However, it has the same basename, so the bogon will be chosen
4990    # first if we set CC to just the basename; use the full file name.
4991    shift
4992    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4993  fi
4994fi
4995fi
4996fi
4997CC=$ac_cv_prog_CC
4998if test -n "$CC"; then
4999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5000$as_echo "$CC" >&6; }
5001else
5002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003$as_echo "no" >&6; }
5004fi
5005
5006
5007fi
5008if test -z "$CC"; then
5009  if test -n "$ac_tool_prefix"; then
5010  for ac_prog in cl.exe
5011  do
5012    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5015$as_echo_n "checking for $ac_word... " >&6; }
5016if ${ac_cv_prog_CC+:} false; then :
5017  $as_echo_n "(cached) " >&6
5018else
5019  if test -n "$CC"; then
5020  ac_cv_prog_CC="$CC" # Let the user override the test.
5021else
5022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023for as_dir in $PATH
5024do
5025  IFS=$as_save_IFS
5026  test -z "$as_dir" && as_dir=.
5027    for ac_exec_ext in '' $ac_executable_extensions; do
5028  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5029    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5030    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5031    break 2
5032  fi
5033done
5034  done
5035IFS=$as_save_IFS
5036
5037fi
5038fi
5039CC=$ac_cv_prog_CC
5040if test -n "$CC"; then
5041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5042$as_echo "$CC" >&6; }
5043else
5044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045$as_echo "no" >&6; }
5046fi
5047
5048
5049    test -n "$CC" && break
5050  done
5051fi
5052if test -z "$CC"; then
5053  ac_ct_CC=$CC
5054  for ac_prog in cl.exe
5055do
5056  # Extract the first word of "$ac_prog", so it can be a program name with args.
5057set dummy $ac_prog; ac_word=$2
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
5060if ${ac_cv_prog_ac_ct_CC+:} false; then :
5061  $as_echo_n "(cached) " >&6
5062else
5063  if test -n "$ac_ct_CC"; then
5064  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071    for ac_exec_ext in '' $ac_executable_extensions; do
5072  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073    ac_cv_prog_ac_ct_CC="$ac_prog"
5074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075    break 2
5076  fi
5077done
5078  done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084if test -n "$ac_ct_CC"; then
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5086$as_echo "$ac_ct_CC" >&6; }
5087else
5088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092
5093  test -n "$ac_ct_CC" && break
5094done
5095
5096  if test "x$ac_ct_CC" = x; then
5097    CC=""
5098  else
5099    case $cross_compiling:$ac_tool_warned in
5100yes:)
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5103ac_tool_warned=yes ;;
5104esac
5105    CC=$ac_ct_CC
5106  fi
5107fi
5108
5109fi
5110
5111
5112test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5113$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5114as_fn_error $? "no acceptable C compiler found in \$PATH
5115See \`config.log' for more details" "$LINENO" 5; }
5116
5117# Provide some information about the compiler.
5118$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5119set X $ac_compile
5120ac_compiler=$2
5121for ac_option in --version -v -V -qversion; do
5122  { { ac_try="$ac_compiler $ac_option >&5"
5123case "(($ac_try" in
5124  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5125  *) ac_try_echo=$ac_try;;
5126esac
5127eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5128$as_echo "$ac_try_echo"; } >&5
5129  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5130  ac_status=$?
5131  if test -s conftest.err; then
5132    sed '10a\
5133... rest of stderr output deleted ...
5134         10q' conftest.err >conftest.er1
5135    cat conftest.er1 >&5
5136  fi
5137  rm -f conftest.er1 conftest.err
5138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5139  test $ac_status = 0; }
5140done
5141
5142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143/* end confdefs.h.  */
5144
5145int
5146main ()
5147{
5148
5149  ;
5150  return 0;
5151}
5152_ACEOF
5153ac_clean_files_save=$ac_clean_files
5154ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5155# Try to create an executable without -o first, disregard a.out.
5156# It will help us diagnose broken compilers, and finding out an intuition
5157# of exeext.
5158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5159$as_echo_n "checking whether the C compiler works... " >&6; }
5160ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5161
5162# The possible output files:
5163ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5164
5165ac_rmfiles=
5166for ac_file in $ac_files
5167do
5168  case $ac_file in
5169    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5170    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5171  esac
5172done
5173rm -f $ac_rmfiles
5174
5175if { { ac_try="$ac_link_default"
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_link_default") 2>&5
5183  ac_status=$?
5184  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5185  test $ac_status = 0; }; then :
5186  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5187# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5188# in a Makefile.  We should not override ac_cv_exeext if it was cached,
5189# so that the user can short-circuit this test for compilers unknown to
5190# Autoconf.
5191for ac_file in $ac_files ''
5192do
5193  test -f "$ac_file" || continue
5194  case $ac_file in
5195    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5196	;;
5197    [ab].out )
5198	# We found the default executable, but exeext='' is most
5199	# certainly right.
5200	break;;
5201    *.* )
5202	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5203	then :; else
5204	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5205	fi
5206	# We set ac_cv_exeext here because the later test for it is not
5207	# safe: cross compilers may not add the suffix if given an `-o'
5208	# argument, so we may need to know it at that point already.
5209	# Even if this section looks crufty: it has the advantage of
5210	# actually working.
5211	break;;
5212    * )
5213	break;;
5214  esac
5215done
5216test "$ac_cv_exeext" = no && ac_cv_exeext=
5217
5218else
5219  ac_file=''
5220fi
5221if test -z "$ac_file"; then :
5222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5223$as_echo "no" >&6; }
5224$as_echo "$as_me: failed program was:" >&5
5225sed 's/^/| /' conftest.$ac_ext >&5
5226
5227{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5229as_fn_error 77 "C compiler cannot create executables
5230See \`config.log' for more details" "$LINENO" 5; }
5231else
5232  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5233$as_echo "yes" >&6; }
5234fi
5235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5236$as_echo_n "checking for C compiler default output file name... " >&6; }
5237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5238$as_echo "$ac_file" >&6; }
5239ac_exeext=$ac_cv_exeext
5240
5241rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5242ac_clean_files=$ac_clean_files_save
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5244$as_echo_n "checking for suffix of executables... " >&6; }
5245if { { ac_try="$ac_link"
5246case "(($ac_try" in
5247  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5248  *) ac_try_echo=$ac_try;;
5249esac
5250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5251$as_echo "$ac_try_echo"; } >&5
5252  (eval "$ac_link") 2>&5
5253  ac_status=$?
5254  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5255  test $ac_status = 0; }; then :
5256  # If both `conftest.exe' and `conftest' are `present' (well, observable)
5257# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5258# work properly (i.e., refer to `conftest.exe'), while it won't with
5259# `rm'.
5260for ac_file in conftest.exe conftest conftest.*; do
5261  test -f "$ac_file" || continue
5262  case $ac_file in
5263    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5264    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5265	  break;;
5266    * ) break;;
5267  esac
5268done
5269else
5270  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5272as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5273See \`config.log' for more details" "$LINENO" 5; }
5274fi
5275rm -f conftest conftest$ac_cv_exeext
5276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5277$as_echo "$ac_cv_exeext" >&6; }
5278
5279rm -f conftest.$ac_ext
5280EXEEXT=$ac_cv_exeext
5281ac_exeext=$EXEEXT
5282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283/* end confdefs.h.  */
5284#include <stdio.h>
5285int
5286main ()
5287{
5288FILE *f = fopen ("conftest.out", "w");
5289 return ferror (f) || fclose (f) != 0;
5290
5291  ;
5292  return 0;
5293}
5294_ACEOF
5295ac_clean_files="$ac_clean_files conftest.out"
5296# Check that the compiler produces executables we can run.  If not, either
5297# the compiler is broken, or we cross compile.
5298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5299$as_echo_n "checking whether we are cross compiling... " >&6; }
5300if test "$cross_compiling" != yes; then
5301  { { ac_try="$ac_link"
5302case "(($ac_try" in
5303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5304  *) ac_try_echo=$ac_try;;
5305esac
5306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5307$as_echo "$ac_try_echo"; } >&5
5308  (eval "$ac_link") 2>&5
5309  ac_status=$?
5310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5311  test $ac_status = 0; }
5312  if { ac_try='./conftest$ac_cv_exeext'
5313  { { case "(($ac_try" in
5314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315  *) ac_try_echo=$ac_try;;
5316esac
5317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5318$as_echo "$ac_try_echo"; } >&5
5319  (eval "$ac_try") 2>&5
5320  ac_status=$?
5321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5322  test $ac_status = 0; }; }; then
5323    cross_compiling=no
5324  else
5325    if test "$cross_compiling" = maybe; then
5326	cross_compiling=yes
5327    else
5328	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5330as_fn_error $? "cannot run C compiled programs.
5331If you meant to cross compile, use \`--host'.
5332See \`config.log' for more details" "$LINENO" 5; }
5333    fi
5334  fi
5335fi
5336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5337$as_echo "$cross_compiling" >&6; }
5338
5339rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5340ac_clean_files=$ac_clean_files_save
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5342$as_echo_n "checking for suffix of object files... " >&6; }
5343if ${ac_cv_objext+:} false; then :
5344  $as_echo_n "(cached) " >&6
5345else
5346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5347/* end confdefs.h.  */
5348
5349int
5350main ()
5351{
5352
5353  ;
5354  return 0;
5355}
5356_ACEOF
5357rm -f conftest.o conftest.obj
5358if { { ac_try="$ac_compile"
5359case "(($ac_try" in
5360  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361  *) ac_try_echo=$ac_try;;
5362esac
5363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5364$as_echo "$ac_try_echo"; } >&5
5365  (eval "$ac_compile") 2>&5
5366  ac_status=$?
5367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5368  test $ac_status = 0; }; then :
5369  for ac_file in conftest.o conftest.obj conftest.*; do
5370  test -f "$ac_file" || continue;
5371  case $ac_file in
5372    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5373    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5374       break;;
5375  esac
5376done
5377else
5378  $as_echo "$as_me: failed program was:" >&5
5379sed 's/^/| /' conftest.$ac_ext >&5
5380
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 compute suffix of object files: cannot compile
5384See \`config.log' for more details" "$LINENO" 5; }
5385fi
5386rm -f conftest.$ac_cv_objext conftest.$ac_ext
5387fi
5388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5389$as_echo "$ac_cv_objext" >&6; }
5390OBJEXT=$ac_cv_objext
5391ac_objext=$OBJEXT
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5393$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5394if ${ac_cv_c_compiler_gnu+:} false; then :
5395  $as_echo_n "(cached) " >&6
5396else
5397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5398/* end confdefs.h.  */
5399
5400int
5401main ()
5402{
5403#ifndef __GNUC__
5404       choke me
5405#endif
5406
5407  ;
5408  return 0;
5409}
5410_ACEOF
5411if ac_fn_c_try_compile "$LINENO"; then :
5412  ac_compiler_gnu=yes
5413else
5414  ac_compiler_gnu=no
5415fi
5416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5417ac_cv_c_compiler_gnu=$ac_compiler_gnu
5418
5419fi
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5421$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5422if test $ac_compiler_gnu = yes; then
5423  GCC=yes
5424else
5425  GCC=
5426fi
5427ac_test_CFLAGS=${CFLAGS+set}
5428ac_save_CFLAGS=$CFLAGS
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5430$as_echo_n "checking whether $CC accepts -g... " >&6; }
5431if ${ac_cv_prog_cc_g+:} false; then :
5432  $as_echo_n "(cached) " >&6
5433else
5434  ac_save_c_werror_flag=$ac_c_werror_flag
5435   ac_c_werror_flag=yes
5436   ac_cv_prog_cc_g=no
5437   CFLAGS="-g"
5438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439/* end confdefs.h.  */
5440
5441int
5442main ()
5443{
5444
5445  ;
5446  return 0;
5447}
5448_ACEOF
5449if ac_fn_c_try_compile "$LINENO"; then :
5450  ac_cv_prog_cc_g=yes
5451else
5452  CFLAGS=""
5453      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h.  */
5455
5456int
5457main ()
5458{
5459
5460  ;
5461  return 0;
5462}
5463_ACEOF
5464if ac_fn_c_try_compile "$LINENO"; then :
5465
5466else
5467  ac_c_werror_flag=$ac_save_c_werror_flag
5468	 CFLAGS="-g"
5469	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470/* end confdefs.h.  */
5471
5472int
5473main ()
5474{
5475
5476  ;
5477  return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_compile "$LINENO"; then :
5481  ac_cv_prog_cc_g=yes
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484fi
5485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486fi
5487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5488   ac_c_werror_flag=$ac_save_c_werror_flag
5489fi
5490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5491$as_echo "$ac_cv_prog_cc_g" >&6; }
5492if test "$ac_test_CFLAGS" = set; then
5493  CFLAGS=$ac_save_CFLAGS
5494elif test $ac_cv_prog_cc_g = yes; then
5495  if test "$GCC" = yes; then
5496    CFLAGS="-g -O2"
5497  else
5498    CFLAGS="-g"
5499  fi
5500else
5501  if test "$GCC" = yes; then
5502    CFLAGS="-O2"
5503  else
5504    CFLAGS=
5505  fi
5506fi
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5508$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5509if ${ac_cv_prog_cc_c89+:} false; then :
5510  $as_echo_n "(cached) " >&6
5511else
5512  ac_cv_prog_cc_c89=no
5513ac_save_CC=$CC
5514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515/* end confdefs.h.  */
5516#include <stdarg.h>
5517#include <stdio.h>
5518struct stat;
5519/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5520struct buf { int x; };
5521FILE * (*rcsopen) (struct buf *, struct stat *, int);
5522static char *e (p, i)
5523     char **p;
5524     int i;
5525{
5526  return p[i];
5527}
5528static char *f (char * (*g) (char **, int), char **p, ...)
5529{
5530  char *s;
5531  va_list v;
5532  va_start (v,p);
5533  s = g (p, va_arg (v,int));
5534  va_end (v);
5535  return s;
5536}
5537
5538/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5539   function prototypes and stuff, but not '\xHH' hex character constants.
5540   These don't provoke an error unfortunately, instead are silently treated
5541   as 'x'.  The following induces an error, until -std is added to get
5542   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5543   array size at least.  It's necessary to write '\x00'==0 to get something
5544   that's true only with -std.  */
5545int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5546
5547/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5548   inside strings and character constants.  */
5549#define FOO(x) 'x'
5550int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5551
5552int test (int i, double x);
5553struct s1 {int (*f) (int a);};
5554struct s2 {int (*f) (double a);};
5555int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5556int argc;
5557char **argv;
5558int
5559main ()
5560{
5561return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5562  ;
5563  return 0;
5564}
5565_ACEOF
5566for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5567	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5568do
5569  CC="$ac_save_CC $ac_arg"
5570  if ac_fn_c_try_compile "$LINENO"; then :
5571  ac_cv_prog_cc_c89=$ac_arg
5572fi
5573rm -f core conftest.err conftest.$ac_objext
5574  test "x$ac_cv_prog_cc_c89" != "xno" && break
5575done
5576rm -f conftest.$ac_ext
5577CC=$ac_save_CC
5578
5579fi
5580# AC_CACHE_VAL
5581case "x$ac_cv_prog_cc_c89" in
5582  x)
5583    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5584$as_echo "none needed" >&6; } ;;
5585  xno)
5586    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5587$as_echo "unsupported" >&6; } ;;
5588  *)
5589    CC="$CC $ac_cv_prog_cc_c89"
5590    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5591$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5592esac
5593if test "x$ac_cv_prog_cc_c89" != xno; then :
5594
5595fi
5596
5597ac_ext=c
5598ac_cpp='$CPP $CPPFLAGS'
5599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5601ac_compiler_gnu=$ac_cv_c_compiler_gnu
5602
5603ac_ext=c
5604ac_cpp='$CPP $CPPFLAGS'
5605ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5609$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5610if ${am_cv_prog_cc_c_o+:} false; then :
5611  $as_echo_n "(cached) " >&6
5612else
5613  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5614/* end confdefs.h.  */
5615
5616int
5617main ()
5618{
5619
5620  ;
5621  return 0;
5622}
5623_ACEOF
5624  # Make sure it works both with $CC and with simple cc.
5625  # Following AC_PROG_CC_C_O, we do the test twice because some
5626  # compilers refuse to overwrite an existing .o file with -o,
5627  # though they will create one.
5628  am_cv_prog_cc_c_o=yes
5629  for am_i in 1 2; do
5630    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5631   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5632   ac_status=$?
5633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634   (exit $ac_status); } \
5635         && test -f conftest2.$ac_objext; then
5636      : OK
5637    else
5638      am_cv_prog_cc_c_o=no
5639      break
5640    fi
5641  done
5642  rm -f core conftest*
5643  unset am_i
5644fi
5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5646$as_echo "$am_cv_prog_cc_c_o" >&6; }
5647if test "$am_cv_prog_cc_c_o" != yes; then
5648   # Losing compiler, so override with the script.
5649   # FIXME: It is wrong to rewrite CC.
5650   # But if we don't then we get into trouble of one sort or another.
5651   # A longer-term fix would be to have automake use am__CC in this case,
5652   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5653   CC="$am_aux_dir/compile $CC"
5654fi
5655ac_ext=c
5656ac_cpp='$CPP $CPPFLAGS'
5657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5659ac_compiler_gnu=$ac_cv_c_compiler_gnu
5660
5661
5662depcc="$CC"   am_compiler_list=
5663
5664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5665$as_echo_n "checking dependency style of $depcc... " >&6; }
5666if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5667  $as_echo_n "(cached) " >&6
5668else
5669  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5670  # We make a subdir and do the tests there.  Otherwise we can end up
5671  # making bogus files that we don't know about and never remove.  For
5672  # instance it was reported that on HP-UX the gcc test will end up
5673  # making a dummy file named 'D' -- because '-MD' means "put the output
5674  # in D".
5675  rm -rf conftest.dir
5676  mkdir conftest.dir
5677  # Copy depcomp to subdir because otherwise we won't find it if we're
5678  # using a relative directory.
5679  cp "$am_depcomp" conftest.dir
5680  cd conftest.dir
5681  # We will build objects and dependencies in a subdirectory because
5682  # it helps to detect inapplicable dependency modes.  For instance
5683  # both Tru64's cc and ICC support -MD to output dependencies as a
5684  # side effect of compilation, but ICC will put the dependencies in
5685  # the current directory while Tru64 will put them in the object
5686  # directory.
5687  mkdir sub
5688
5689  am_cv_CC_dependencies_compiler_type=none
5690  if test "$am_compiler_list" = ""; then
5691     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5692  fi
5693  am__universal=false
5694  case " $depcc " in #(
5695     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5696     esac
5697
5698  for depmode in $am_compiler_list; do
5699    # Setup a source with many dependencies, because some compilers
5700    # like to wrap large dependency lists on column 80 (with \), and
5701    # we should not choose a depcomp mode which is confused by this.
5702    #
5703    # We need to recreate these files for each test, as the compiler may
5704    # overwrite some of them when testing with obscure command lines.
5705    # This happens at least with the AIX C compiler.
5706    : > sub/conftest.c
5707    for i in 1 2 3 4 5 6; do
5708      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5709      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5710      # Solaris 10 /bin/sh.
5711      echo '/* dummy */' > sub/conftst$i.h
5712    done
5713    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5714
5715    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5716    # mode.  It turns out that the SunPro C++ compiler does not properly
5717    # handle '-M -o', and we need to detect this.  Also, some Intel
5718    # versions had trouble with output in subdirs.
5719    am__obj=sub/conftest.${OBJEXT-o}
5720    am__minus_obj="-o $am__obj"
5721    case $depmode in
5722    gcc)
5723      # This depmode causes a compiler race in universal mode.
5724      test "$am__universal" = false || continue
5725      ;;
5726    nosideeffect)
5727      # After this tag, mechanisms are not by side-effect, so they'll
5728      # only be used when explicitly requested.
5729      if test "x$enable_dependency_tracking" = xyes; then
5730	continue
5731      else
5732	break
5733      fi
5734      ;;
5735    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5736      # This compiler won't grok '-c -o', but also, the minuso test has
5737      # not run yet.  These depmodes are late enough in the game, and
5738      # so weak that their functioning should not be impacted.
5739      am__obj=conftest.${OBJEXT-o}
5740      am__minus_obj=
5741      ;;
5742    none) break ;;
5743    esac
5744    if depmode=$depmode \
5745       source=sub/conftest.c object=$am__obj \
5746       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5747       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5748         >/dev/null 2>conftest.err &&
5749       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5750       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5751       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5752       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5753      # icc doesn't choke on unknown options, it will just issue warnings
5754      # or remarks (even with -Werror).  So we grep stderr for any message
5755      # that says an option was ignored or not supported.
5756      # When given -MP, icc 7.0 and 7.1 complain thusly:
5757      #   icc: Command line warning: ignoring option '-M'; no argument required
5758      # The diagnosis changed in icc 8.0:
5759      #   icc: Command line remark: option '-MP' not supported
5760      if (grep 'ignoring option' conftest.err ||
5761          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5762        am_cv_CC_dependencies_compiler_type=$depmode
5763        break
5764      fi
5765    fi
5766  done
5767
5768  cd ..
5769  rm -rf conftest.dir
5770else
5771  am_cv_CC_dependencies_compiler_type=none
5772fi
5773
5774fi
5775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5776$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5777CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5778
5779 if
5780  test "x$enable_dependency_tracking" != xno \
5781  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5782  am__fastdepCC_TRUE=
5783  am__fastdepCC_FALSE='#'
5784else
5785  am__fastdepCC_TRUE='#'
5786  am__fastdepCC_FALSE=
5787fi
5788
5789
5790
5791ac_ext=c
5792ac_cpp='$CPP $CPPFLAGS'
5793ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5794ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5795ac_compiler_gnu=$ac_cv_c_compiler_gnu
5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5797$as_echo_n "checking how to run the C preprocessor... " >&6; }
5798# On Suns, sometimes $CPP names a directory.
5799if test -n "$CPP" && test -d "$CPP"; then
5800  CPP=
5801fi
5802if test -z "$CPP"; then
5803  if ${ac_cv_prog_CPP+:} false; then :
5804  $as_echo_n "(cached) " >&6
5805else
5806      # Double quotes because CPP needs to be expanded
5807    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5808    do
5809      ac_preproc_ok=false
5810for ac_c_preproc_warn_flag in '' yes
5811do
5812  # Use a header file that comes with gcc, so configuring glibc
5813  # with a fresh cross-compiler works.
5814  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5815  # <limits.h> exists even on freestanding compilers.
5816  # On the NeXT, cc -E runs the code through the compiler's parser,
5817  # not just through cpp. "Syntax error" is here to catch this case.
5818  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819/* end confdefs.h.  */
5820#ifdef __STDC__
5821# include <limits.h>
5822#else
5823# include <assert.h>
5824#endif
5825		     Syntax error
5826_ACEOF
5827if ac_fn_c_try_cpp "$LINENO"; then :
5828
5829else
5830  # Broken: fails on valid input.
5831continue
5832fi
5833rm -f conftest.err conftest.i conftest.$ac_ext
5834
5835  # OK, works on sane cases.  Now check whether nonexistent headers
5836  # can be detected and how.
5837  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838/* end confdefs.h.  */
5839#include <ac_nonexistent.h>
5840_ACEOF
5841if ac_fn_c_try_cpp "$LINENO"; then :
5842  # Broken: success on invalid input.
5843continue
5844else
5845  # Passes both tests.
5846ac_preproc_ok=:
5847break
5848fi
5849rm -f conftest.err conftest.i conftest.$ac_ext
5850
5851done
5852# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5853rm -f conftest.i conftest.err conftest.$ac_ext
5854if $ac_preproc_ok; then :
5855  break
5856fi
5857
5858    done
5859    ac_cv_prog_CPP=$CPP
5860
5861fi
5862  CPP=$ac_cv_prog_CPP
5863else
5864  ac_cv_prog_CPP=$CPP
5865fi
5866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5867$as_echo "$CPP" >&6; }
5868ac_preproc_ok=false
5869for ac_c_preproc_warn_flag in '' yes
5870do
5871  # Use a header file that comes with gcc, so configuring glibc
5872  # with a fresh cross-compiler works.
5873  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5874  # <limits.h> exists even on freestanding compilers.
5875  # On the NeXT, cc -E runs the code through the compiler's parser,
5876  # not just through cpp. "Syntax error" is here to catch this case.
5877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878/* end confdefs.h.  */
5879#ifdef __STDC__
5880# include <limits.h>
5881#else
5882# include <assert.h>
5883#endif
5884		     Syntax error
5885_ACEOF
5886if ac_fn_c_try_cpp "$LINENO"; then :
5887
5888else
5889  # Broken: fails on valid input.
5890continue
5891fi
5892rm -f conftest.err conftest.i conftest.$ac_ext
5893
5894  # OK, works on sane cases.  Now check whether nonexistent headers
5895  # can be detected and how.
5896  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897/* end confdefs.h.  */
5898#include <ac_nonexistent.h>
5899_ACEOF
5900if ac_fn_c_try_cpp "$LINENO"; then :
5901  # Broken: success on invalid input.
5902continue
5903else
5904  # Passes both tests.
5905ac_preproc_ok=:
5906break
5907fi
5908rm -f conftest.err conftest.i conftest.$ac_ext
5909
5910done
5911# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5912rm -f conftest.i conftest.err conftest.$ac_ext
5913if $ac_preproc_ok; then :
5914
5915else
5916  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5918as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5919See \`config.log' for more details" "$LINENO" 5; }
5920fi
5921
5922ac_ext=c
5923ac_cpp='$CPP $CPPFLAGS'
5924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926ac_compiler_gnu=$ac_cv_c_compiler_gnu
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5930$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5931if ${ac_cv_path_GREP+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934  if test -z "$GREP"; then
5935  ac_path_GREP_found=false
5936  # Loop through the user's path and test for each of PROGNAME-LIST
5937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5939do
5940  IFS=$as_save_IFS
5941  test -z "$as_dir" && as_dir=.
5942    for ac_prog in grep ggrep; do
5943    for ac_exec_ext in '' $ac_executable_extensions; do
5944      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5945      as_fn_executable_p "$ac_path_GREP" || continue
5946# Check for GNU ac_path_GREP and select it if it is found.
5947  # Check for GNU $ac_path_GREP
5948case `"$ac_path_GREP" --version 2>&1` in
5949*GNU*)
5950  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5951*)
5952  ac_count=0
5953  $as_echo_n 0123456789 >"conftest.in"
5954  while :
5955  do
5956    cat "conftest.in" "conftest.in" >"conftest.tmp"
5957    mv "conftest.tmp" "conftest.in"
5958    cp "conftest.in" "conftest.nl"
5959    $as_echo 'GREP' >> "conftest.nl"
5960    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5961    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5962    as_fn_arith $ac_count + 1 && ac_count=$as_val
5963    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5964      # Best one so far, save it but keep looking for a better one
5965      ac_cv_path_GREP="$ac_path_GREP"
5966      ac_path_GREP_max=$ac_count
5967    fi
5968    # 10*(2^10) chars as input seems more than enough
5969    test $ac_count -gt 10 && break
5970  done
5971  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5972esac
5973
5974      $ac_path_GREP_found && break 3
5975    done
5976  done
5977  done
5978IFS=$as_save_IFS
5979  if test -z "$ac_cv_path_GREP"; then
5980    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5981  fi
5982else
5983  ac_cv_path_GREP=$GREP
5984fi
5985
5986fi
5987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5988$as_echo "$ac_cv_path_GREP" >&6; }
5989 GREP="$ac_cv_path_GREP"
5990
5991
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5993$as_echo_n "checking for egrep... " >&6; }
5994if ${ac_cv_path_EGREP+:} false; then :
5995  $as_echo_n "(cached) " >&6
5996else
5997  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5998   then ac_cv_path_EGREP="$GREP -E"
5999   else
6000     if test -z "$EGREP"; then
6001  ac_path_EGREP_found=false
6002  # Loop through the user's path and test for each of PROGNAME-LIST
6003  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6005do
6006  IFS=$as_save_IFS
6007  test -z "$as_dir" && as_dir=.
6008    for ac_prog in egrep; do
6009    for ac_exec_ext in '' $ac_executable_extensions; do
6010      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6011      as_fn_executable_p "$ac_path_EGREP" || continue
6012# Check for GNU ac_path_EGREP and select it if it is found.
6013  # Check for GNU $ac_path_EGREP
6014case `"$ac_path_EGREP" --version 2>&1` in
6015*GNU*)
6016  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6017*)
6018  ac_count=0
6019  $as_echo_n 0123456789 >"conftest.in"
6020  while :
6021  do
6022    cat "conftest.in" "conftest.in" >"conftest.tmp"
6023    mv "conftest.tmp" "conftest.in"
6024    cp "conftest.in" "conftest.nl"
6025    $as_echo 'EGREP' >> "conftest.nl"
6026    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6027    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6028    as_fn_arith $ac_count + 1 && ac_count=$as_val
6029    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6030      # Best one so far, save it but keep looking for a better one
6031      ac_cv_path_EGREP="$ac_path_EGREP"
6032      ac_path_EGREP_max=$ac_count
6033    fi
6034    # 10*(2^10) chars as input seems more than enough
6035    test $ac_count -gt 10 && break
6036  done
6037  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6038esac
6039
6040      $ac_path_EGREP_found && break 3
6041    done
6042  done
6043  done
6044IFS=$as_save_IFS
6045  if test -z "$ac_cv_path_EGREP"; then
6046    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6047  fi
6048else
6049  ac_cv_path_EGREP=$EGREP
6050fi
6051
6052   fi
6053fi
6054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6055$as_echo "$ac_cv_path_EGREP" >&6; }
6056 EGREP="$ac_cv_path_EGREP"
6057
6058
6059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6060$as_echo_n "checking for ANSI C header files... " >&6; }
6061if ${ac_cv_header_stdc+:} false; then :
6062  $as_echo_n "(cached) " >&6
6063else
6064  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6065/* end confdefs.h.  */
6066#include <stdlib.h>
6067#include <stdarg.h>
6068#include <string.h>
6069#include <float.h>
6070
6071int
6072main ()
6073{
6074
6075  ;
6076  return 0;
6077}
6078_ACEOF
6079if ac_fn_c_try_compile "$LINENO"; then :
6080  ac_cv_header_stdc=yes
6081else
6082  ac_cv_header_stdc=no
6083fi
6084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6085
6086if test $ac_cv_header_stdc = yes; then
6087  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6088  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6089/* end confdefs.h.  */
6090#include <string.h>
6091
6092_ACEOF
6093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6094  $EGREP "memchr" >/dev/null 2>&1; then :
6095
6096else
6097  ac_cv_header_stdc=no
6098fi
6099rm -f conftest*
6100
6101fi
6102
6103if test $ac_cv_header_stdc = yes; then
6104  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6105  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106/* end confdefs.h.  */
6107#include <stdlib.h>
6108
6109_ACEOF
6110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6111  $EGREP "free" >/dev/null 2>&1; then :
6112
6113else
6114  ac_cv_header_stdc=no
6115fi
6116rm -f conftest*
6117
6118fi
6119
6120if test $ac_cv_header_stdc = yes; then
6121  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6122  if test "$cross_compiling" = yes; then :
6123  :
6124else
6125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6126/* end confdefs.h.  */
6127#include <ctype.h>
6128#include <stdlib.h>
6129#if ((' ' & 0x0FF) == 0x020)
6130# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6131# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6132#else
6133# define ISLOWER(c) \
6134		   (('a' <= (c) && (c) <= 'i') \
6135		     || ('j' <= (c) && (c) <= 'r') \
6136		     || ('s' <= (c) && (c) <= 'z'))
6137# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6138#endif
6139
6140#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6141int
6142main ()
6143{
6144  int i;
6145  for (i = 0; i < 256; i++)
6146    if (XOR (islower (i), ISLOWER (i))
6147	|| toupper (i) != TOUPPER (i))
6148      return 2;
6149  return 0;
6150}
6151_ACEOF
6152if ac_fn_c_try_run "$LINENO"; then :
6153
6154else
6155  ac_cv_header_stdc=no
6156fi
6157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6158  conftest.$ac_objext conftest.beam conftest.$ac_ext
6159fi
6160
6161fi
6162fi
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6164$as_echo "$ac_cv_header_stdc" >&6; }
6165if test $ac_cv_header_stdc = yes; then
6166
6167$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6168
6169fi
6170
6171# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6172for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6173		  inttypes.h stdint.h unistd.h
6174do :
6175  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6176ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6177"
6178if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6179  cat >>confdefs.h <<_ACEOF
6180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6181_ACEOF
6182
6183fi
6184
6185done
6186
6187
6188
6189  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6190if test "x$ac_cv_header_minix_config_h" = xyes; then :
6191  MINIX=yes
6192else
6193  MINIX=
6194fi
6195
6196
6197  if test "$MINIX" = yes; then
6198
6199$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6200
6201
6202$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6203
6204
6205$as_echo "#define _MINIX 1" >>confdefs.h
6206
6207  fi
6208
6209
6210  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6211$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6212if ${ac_cv_safe_to_define___extensions__+:} false; then :
6213  $as_echo_n "(cached) " >&6
6214else
6215  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6216/* end confdefs.h.  */
6217
6218#         define __EXTENSIONS__ 1
6219          $ac_includes_default
6220int
6221main ()
6222{
6223
6224  ;
6225  return 0;
6226}
6227_ACEOF
6228if ac_fn_c_try_compile "$LINENO"; then :
6229  ac_cv_safe_to_define___extensions__=yes
6230else
6231  ac_cv_safe_to_define___extensions__=no
6232fi
6233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6236$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6237  test $ac_cv_safe_to_define___extensions__ = yes &&
6238    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6239
6240  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6241
6242  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6243
6244  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6245
6246  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6247
6248
6249
6250# ==============================================================================
6251# Find required base packages
6252# ==============================================================================
6253if test -n "$ac_tool_prefix"; then
6254  for ac_prog in ar lib "link -lib"
6255  do
6256    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6257set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259$as_echo_n "checking for $ac_word... " >&6; }
6260if ${ac_cv_prog_AR+:} false; then :
6261  $as_echo_n "(cached) " >&6
6262else
6263  if test -n "$AR"; then
6264  ac_cv_prog_AR="$AR" # Let the user override the test.
6265else
6266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267for as_dir in $PATH
6268do
6269  IFS=$as_save_IFS
6270  test -z "$as_dir" && as_dir=.
6271    for ac_exec_ext in '' $ac_executable_extensions; do
6272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6273    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275    break 2
6276  fi
6277done
6278  done
6279IFS=$as_save_IFS
6280
6281fi
6282fi
6283AR=$ac_cv_prog_AR
6284if test -n "$AR"; then
6285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6286$as_echo "$AR" >&6; }
6287else
6288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289$as_echo "no" >&6; }
6290fi
6291
6292
6293    test -n "$AR" && break
6294  done
6295fi
6296if test -z "$AR"; then
6297  ac_ct_AR=$AR
6298  for ac_prog in ar lib "link -lib"
6299do
6300  # Extract the first word of "$ac_prog", so it can be a program name with args.
6301set dummy $ac_prog; ac_word=$2
6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6303$as_echo_n "checking for $ac_word... " >&6; }
6304if ${ac_cv_prog_ac_ct_AR+:} false; then :
6305  $as_echo_n "(cached) " >&6
6306else
6307  if test -n "$ac_ct_AR"; then
6308  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6309else
6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6311for as_dir in $PATH
6312do
6313  IFS=$as_save_IFS
6314  test -z "$as_dir" && as_dir=.
6315    for ac_exec_ext in '' $ac_executable_extensions; do
6316  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6317    ac_cv_prog_ac_ct_AR="$ac_prog"
6318    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6319    break 2
6320  fi
6321done
6322  done
6323IFS=$as_save_IFS
6324
6325fi
6326fi
6327ac_ct_AR=$ac_cv_prog_ac_ct_AR
6328if test -n "$ac_ct_AR"; then
6329  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6330$as_echo "$ac_ct_AR" >&6; }
6331else
6332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
6334fi
6335
6336
6337  test -n "$ac_ct_AR" && break
6338done
6339
6340  if test "x$ac_ct_AR" = x; then
6341    AR="false"
6342  else
6343    case $cross_compiling:$ac_tool_warned in
6344yes:)
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347ac_tool_warned=yes ;;
6348esac
6349    AR=$ac_ct_AR
6350  fi
6351fi
6352
6353: ${AR=ar}
6354
6355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
6356$as_echo_n "checking the archiver ($AR) interface... " >&6; }
6357if ${am_cv_ar_interface+:} false; then :
6358  $as_echo_n "(cached) " >&6
6359else
6360  ac_ext=c
6361ac_cpp='$CPP $CPPFLAGS'
6362ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6363ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6364ac_compiler_gnu=$ac_cv_c_compiler_gnu
6365
6366   am_cv_ar_interface=ar
6367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368/* end confdefs.h.  */
6369int some_variable = 0;
6370_ACEOF
6371if ac_fn_c_try_compile "$LINENO"; then :
6372  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
6373      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6374  (eval $am_ar_try) 2>&5
6375  ac_status=$?
6376  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6377  test $ac_status = 0; }
6378      if test "$ac_status" -eq 0; then
6379        am_cv_ar_interface=ar
6380      else
6381        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
6382        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
6383  (eval $am_ar_try) 2>&5
6384  ac_status=$?
6385  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386  test $ac_status = 0; }
6387        if test "$ac_status" -eq 0; then
6388          am_cv_ar_interface=lib
6389        else
6390          am_cv_ar_interface=unknown
6391        fi
6392      fi
6393      rm -f conftest.lib libconftest.a
6394
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397   ac_ext=c
6398ac_cpp='$CPP $CPPFLAGS'
6399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6401ac_compiler_gnu=$ac_cv_c_compiler_gnu
6402
6403fi
6404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
6405$as_echo "$am_cv_ar_interface" >&6; }
6406
6407case $am_cv_ar_interface in
6408ar)
6409  ;;
6410lib)
6411  # Microsoft lib, so override with the ar-lib wrapper script.
6412  # FIXME: It is wrong to rewrite AR.
6413  # But if we don't then we get into trouble of one sort or another.
6414  # A longer-term fix would be to have automake use am__AR in this case,
6415  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
6416  # similar.
6417  AR="$am_aux_dir/ar-lib $AR"
6418  ;;
6419unknown)
6420  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
6421  ;;
6422esac
6423
6424ac_ext=c
6425ac_cpp='$CPP $CPPFLAGS'
6426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6428ac_compiler_gnu=$ac_cv_c_compiler_gnu
6429if test -n "$ac_tool_prefix"; then
6430  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6431set dummy ${ac_tool_prefix}gcc; ac_word=$2
6432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if ${ac_cv_prog_CC+:} false; then :
6435  $as_echo_n "(cached) " >&6
6436else
6437  if test -n "$CC"; then
6438  ac_cv_prog_CC="$CC" # Let the user override the test.
6439else
6440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441for as_dir in $PATH
6442do
6443  IFS=$as_save_IFS
6444  test -z "$as_dir" && as_dir=.
6445    for ac_exec_ext in '' $ac_executable_extensions; do
6446  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6447    ac_cv_prog_CC="${ac_tool_prefix}gcc"
6448    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449    break 2
6450  fi
6451done
6452  done
6453IFS=$as_save_IFS
6454
6455fi
6456fi
6457CC=$ac_cv_prog_CC
6458if test -n "$CC"; then
6459  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6460$as_echo "$CC" >&6; }
6461else
6462  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466
6467fi
6468if test -z "$ac_cv_prog_CC"; then
6469  ac_ct_CC=$CC
6470  # Extract the first word of "gcc", so it can be a program name with args.
6471set dummy gcc; ac_word=$2
6472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6473$as_echo_n "checking for $ac_word... " >&6; }
6474if ${ac_cv_prog_ac_ct_CC+:} false; then :
6475  $as_echo_n "(cached) " >&6
6476else
6477  if test -n "$ac_ct_CC"; then
6478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6479else
6480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6481for as_dir in $PATH
6482do
6483  IFS=$as_save_IFS
6484  test -z "$as_dir" && as_dir=.
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6487    ac_cv_prog_ac_ct_CC="gcc"
6488    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6489    break 2
6490  fi
6491done
6492  done
6493IFS=$as_save_IFS
6494
6495fi
6496fi
6497ac_ct_CC=$ac_cv_prog_ac_ct_CC
6498if test -n "$ac_ct_CC"; then
6499  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6500$as_echo "$ac_ct_CC" >&6; }
6501else
6502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6503$as_echo "no" >&6; }
6504fi
6505
6506  if test "x$ac_ct_CC" = x; then
6507    CC=""
6508  else
6509    case $cross_compiling:$ac_tool_warned in
6510yes:)
6511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6513ac_tool_warned=yes ;;
6514esac
6515    CC=$ac_ct_CC
6516  fi
6517else
6518  CC="$ac_cv_prog_CC"
6519fi
6520
6521if test -z "$CC"; then
6522          if test -n "$ac_tool_prefix"; then
6523    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6524set dummy ${ac_tool_prefix}cc; ac_word=$2
6525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6526$as_echo_n "checking for $ac_word... " >&6; }
6527if ${ac_cv_prog_CC+:} false; then :
6528  $as_echo_n "(cached) " >&6
6529else
6530  if test -n "$CC"; then
6531  ac_cv_prog_CC="$CC" # Let the user override the test.
6532else
6533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534for as_dir in $PATH
6535do
6536  IFS=$as_save_IFS
6537  test -z "$as_dir" && as_dir=.
6538    for ac_exec_ext in '' $ac_executable_extensions; do
6539  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6540    ac_cv_prog_CC="${ac_tool_prefix}cc"
6541    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6542    break 2
6543  fi
6544done
6545  done
6546IFS=$as_save_IFS
6547
6548fi
6549fi
6550CC=$ac_cv_prog_CC
6551if test -n "$CC"; then
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6553$as_echo "$CC" >&6; }
6554else
6555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6556$as_echo "no" >&6; }
6557fi
6558
6559
6560  fi
6561fi
6562if test -z "$CC"; then
6563  # Extract the first word of "cc", so it can be a program name with args.
6564set dummy cc; ac_word=$2
6565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6566$as_echo_n "checking for $ac_word... " >&6; }
6567if ${ac_cv_prog_CC+:} false; then :
6568  $as_echo_n "(cached) " >&6
6569else
6570  if test -n "$CC"; then
6571  ac_cv_prog_CC="$CC" # Let the user override the test.
6572else
6573  ac_prog_rejected=no
6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575for as_dir in $PATH
6576do
6577  IFS=$as_save_IFS
6578  test -z "$as_dir" && as_dir=.
6579    for ac_exec_ext in '' $ac_executable_extensions; do
6580  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6582       ac_prog_rejected=yes
6583       continue
6584     fi
6585    ac_cv_prog_CC="cc"
6586    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6587    break 2
6588  fi
6589done
6590  done
6591IFS=$as_save_IFS
6592
6593if test $ac_prog_rejected = yes; then
6594  # We found a bogon in the path, so make sure we never use it.
6595  set dummy $ac_cv_prog_CC
6596  shift
6597  if test $# != 0; then
6598    # We chose a different compiler from the bogus one.
6599    # However, it has the same basename, so the bogon will be chosen
6600    # first if we set CC to just the basename; use the full file name.
6601    shift
6602    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6603  fi
6604fi
6605fi
6606fi
6607CC=$ac_cv_prog_CC
6608if test -n "$CC"; then
6609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6610$as_echo "$CC" >&6; }
6611else
6612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6613$as_echo "no" >&6; }
6614fi
6615
6616
6617fi
6618if test -z "$CC"; then
6619  if test -n "$ac_tool_prefix"; then
6620  for ac_prog in cl.exe
6621  do
6622    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6623set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625$as_echo_n "checking for $ac_word... " >&6; }
6626if ${ac_cv_prog_CC+:} false; then :
6627  $as_echo_n "(cached) " >&6
6628else
6629  if test -n "$CC"; then
6630  ac_cv_prog_CC="$CC" # Let the user override the test.
6631else
6632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633for as_dir in $PATH
6634do
6635  IFS=$as_save_IFS
6636  test -z "$as_dir" && as_dir=.
6637    for ac_exec_ext in '' $ac_executable_extensions; do
6638  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6640    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641    break 2
6642  fi
6643done
6644  done
6645IFS=$as_save_IFS
6646
6647fi
6648fi
6649CC=$ac_cv_prog_CC
6650if test -n "$CC"; then
6651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6652$as_echo "$CC" >&6; }
6653else
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655$as_echo "no" >&6; }
6656fi
6657
6658
6659    test -n "$CC" && break
6660  done
6661fi
6662if test -z "$CC"; then
6663  ac_ct_CC=$CC
6664  for ac_prog in cl.exe
6665do
6666  # Extract the first word of "$ac_prog", so it can be a program name with args.
6667set dummy $ac_prog; ac_word=$2
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6669$as_echo_n "checking for $ac_word... " >&6; }
6670if ${ac_cv_prog_ac_ct_CC+:} false; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  if test -n "$ac_ct_CC"; then
6674  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6675else
6676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6677for as_dir in $PATH
6678do
6679  IFS=$as_save_IFS
6680  test -z "$as_dir" && as_dir=.
6681    for ac_exec_ext in '' $ac_executable_extensions; do
6682  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6683    ac_cv_prog_ac_ct_CC="$ac_prog"
6684    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6685    break 2
6686  fi
6687done
6688  done
6689IFS=$as_save_IFS
6690
6691fi
6692fi
6693ac_ct_CC=$ac_cv_prog_ac_ct_CC
6694if test -n "$ac_ct_CC"; then
6695  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6696$as_echo "$ac_ct_CC" >&6; }
6697else
6698  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6699$as_echo "no" >&6; }
6700fi
6701
6702
6703  test -n "$ac_ct_CC" && break
6704done
6705
6706  if test "x$ac_ct_CC" = x; then
6707    CC=""
6708  else
6709    case $cross_compiling:$ac_tool_warned in
6710yes:)
6711{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6712$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6713ac_tool_warned=yes ;;
6714esac
6715    CC=$ac_ct_CC
6716  fi
6717fi
6718
6719fi
6720
6721
6722test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6724as_fn_error $? "no acceptable C compiler found in \$PATH
6725See \`config.log' for more details" "$LINENO" 5; }
6726
6727# Provide some information about the compiler.
6728$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6729set X $ac_compile
6730ac_compiler=$2
6731for ac_option in --version -v -V -qversion; do
6732  { { ac_try="$ac_compiler $ac_option >&5"
6733case "(($ac_try" in
6734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735  *) ac_try_echo=$ac_try;;
6736esac
6737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6738$as_echo "$ac_try_echo"; } >&5
6739  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6740  ac_status=$?
6741  if test -s conftest.err; then
6742    sed '10a\
6743... rest of stderr output deleted ...
6744         10q' conftest.err >conftest.er1
6745    cat conftest.er1 >&5
6746  fi
6747  rm -f conftest.er1 conftest.err
6748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6749  test $ac_status = 0; }
6750done
6751
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6753$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6754if ${ac_cv_c_compiler_gnu+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6758/* end confdefs.h.  */
6759
6760int
6761main ()
6762{
6763#ifndef __GNUC__
6764       choke me
6765#endif
6766
6767  ;
6768  return 0;
6769}
6770_ACEOF
6771if ac_fn_c_try_compile "$LINENO"; then :
6772  ac_compiler_gnu=yes
6773else
6774  ac_compiler_gnu=no
6775fi
6776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6777ac_cv_c_compiler_gnu=$ac_compiler_gnu
6778
6779fi
6780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6781$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6782if test $ac_compiler_gnu = yes; then
6783  GCC=yes
6784else
6785  GCC=
6786fi
6787ac_test_CFLAGS=${CFLAGS+set}
6788ac_save_CFLAGS=$CFLAGS
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6790$as_echo_n "checking whether $CC accepts -g... " >&6; }
6791if ${ac_cv_prog_cc_g+:} false; then :
6792  $as_echo_n "(cached) " >&6
6793else
6794  ac_save_c_werror_flag=$ac_c_werror_flag
6795   ac_c_werror_flag=yes
6796   ac_cv_prog_cc_g=no
6797   CFLAGS="-g"
6798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799/* end confdefs.h.  */
6800
6801int
6802main ()
6803{
6804
6805  ;
6806  return 0;
6807}
6808_ACEOF
6809if ac_fn_c_try_compile "$LINENO"; then :
6810  ac_cv_prog_cc_g=yes
6811else
6812  CFLAGS=""
6813      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6814/* end confdefs.h.  */
6815
6816int
6817main ()
6818{
6819
6820  ;
6821  return 0;
6822}
6823_ACEOF
6824if ac_fn_c_try_compile "$LINENO"; then :
6825
6826else
6827  ac_c_werror_flag=$ac_save_c_werror_flag
6828	 CFLAGS="-g"
6829	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6830/* end confdefs.h.  */
6831
6832int
6833main ()
6834{
6835
6836  ;
6837  return 0;
6838}
6839_ACEOF
6840if ac_fn_c_try_compile "$LINENO"; then :
6841  ac_cv_prog_cc_g=yes
6842fi
6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6844fi
6845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6846fi
6847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6848   ac_c_werror_flag=$ac_save_c_werror_flag
6849fi
6850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6851$as_echo "$ac_cv_prog_cc_g" >&6; }
6852if test "$ac_test_CFLAGS" = set; then
6853  CFLAGS=$ac_save_CFLAGS
6854elif test $ac_cv_prog_cc_g = yes; then
6855  if test "$GCC" = yes; then
6856    CFLAGS="-g -O2"
6857  else
6858    CFLAGS="-g"
6859  fi
6860else
6861  if test "$GCC" = yes; then
6862    CFLAGS="-O2"
6863  else
6864    CFLAGS=
6865  fi
6866fi
6867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6868$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6869if ${ac_cv_prog_cc_c89+:} false; then :
6870  $as_echo_n "(cached) " >&6
6871else
6872  ac_cv_prog_cc_c89=no
6873ac_save_CC=$CC
6874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6875/* end confdefs.h.  */
6876#include <stdarg.h>
6877#include <stdio.h>
6878struct stat;
6879/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6880struct buf { int x; };
6881FILE * (*rcsopen) (struct buf *, struct stat *, int);
6882static char *e (p, i)
6883     char **p;
6884     int i;
6885{
6886  return p[i];
6887}
6888static char *f (char * (*g) (char **, int), char **p, ...)
6889{
6890  char *s;
6891  va_list v;
6892  va_start (v,p);
6893  s = g (p, va_arg (v,int));
6894  va_end (v);
6895  return s;
6896}
6897
6898/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6899   function prototypes and stuff, but not '\xHH' hex character constants.
6900   These don't provoke an error unfortunately, instead are silently treated
6901   as 'x'.  The following induces an error, until -std is added to get
6902   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6903   array size at least.  It's necessary to write '\x00'==0 to get something
6904   that's true only with -std.  */
6905int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6906
6907/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6908   inside strings and character constants.  */
6909#define FOO(x) 'x'
6910int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6911
6912int test (int i, double x);
6913struct s1 {int (*f) (int a);};
6914struct s2 {int (*f) (double a);};
6915int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6916int argc;
6917char **argv;
6918int
6919main ()
6920{
6921return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6922  ;
6923  return 0;
6924}
6925_ACEOF
6926for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6927	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6928do
6929  CC="$ac_save_CC $ac_arg"
6930  if ac_fn_c_try_compile "$LINENO"; then :
6931  ac_cv_prog_cc_c89=$ac_arg
6932fi
6933rm -f core conftest.err conftest.$ac_objext
6934  test "x$ac_cv_prog_cc_c89" != "xno" && break
6935done
6936rm -f conftest.$ac_ext
6937CC=$ac_save_CC
6938
6939fi
6940# AC_CACHE_VAL
6941case "x$ac_cv_prog_cc_c89" in
6942  x)
6943    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6944$as_echo "none needed" >&6; } ;;
6945  xno)
6946    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6947$as_echo "unsupported" >&6; } ;;
6948  *)
6949    CC="$CC $ac_cv_prog_cc_c89"
6950    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6951$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6952esac
6953if test "x$ac_cv_prog_cc_c89" != xno; then :
6954
6955fi
6956
6957ac_ext=c
6958ac_cpp='$CPP $CPPFLAGS'
6959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963ac_ext=c
6964ac_cpp='$CPP $CPPFLAGS'
6965ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6969$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
6970if ${am_cv_prog_cc_c_o+:} false; then :
6971  $as_echo_n "(cached) " >&6
6972else
6973  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6974/* end confdefs.h.  */
6975
6976int
6977main ()
6978{
6979
6980  ;
6981  return 0;
6982}
6983_ACEOF
6984  # Make sure it works both with $CC and with simple cc.
6985  # Following AC_PROG_CC_C_O, we do the test twice because some
6986  # compilers refuse to overwrite an existing .o file with -o,
6987  # though they will create one.
6988  am_cv_prog_cc_c_o=yes
6989  for am_i in 1 2; do
6990    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6991   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6992   ac_status=$?
6993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994   (exit $ac_status); } \
6995         && test -f conftest2.$ac_objext; then
6996      : OK
6997    else
6998      am_cv_prog_cc_c_o=no
6999      break
7000    fi
7001  done
7002  rm -f core conftest*
7003  unset am_i
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7006$as_echo "$am_cv_prog_cc_c_o" >&6; }
7007if test "$am_cv_prog_cc_c_o" != yes; then
7008   # Losing compiler, so override with the script.
7009   # FIXME: It is wrong to rewrite CC.
7010   # But if we don't then we get into trouble of one sort or another.
7011   # A longer-term fix would be to have automake use am__CC in this case,
7012   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7013   CC="$am_aux_dir/compile $CC"
7014fi
7015ac_ext=c
7016ac_cpp='$CPP $CPPFLAGS'
7017ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7018ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7019ac_compiler_gnu=$ac_cv_c_compiler_gnu
7020
7021
7022depcc="$CC"   am_compiler_list=
7023
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7025$as_echo_n "checking dependency style of $depcc... " >&6; }
7026if ${am_cv_CC_dependencies_compiler_type+:} false; then :
7027  $as_echo_n "(cached) " >&6
7028else
7029  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7030  # We make a subdir and do the tests there.  Otherwise we can end up
7031  # making bogus files that we don't know about and never remove.  For
7032  # instance it was reported that on HP-UX the gcc test will end up
7033  # making a dummy file named 'D' -- because '-MD' means "put the output
7034  # in D".
7035  rm -rf conftest.dir
7036  mkdir conftest.dir
7037  # Copy depcomp to subdir because otherwise we won't find it if we're
7038  # using a relative directory.
7039  cp "$am_depcomp" conftest.dir
7040  cd conftest.dir
7041  # We will build objects and dependencies in a subdirectory because
7042  # it helps to detect inapplicable dependency modes.  For instance
7043  # both Tru64's cc and ICC support -MD to output dependencies as a
7044  # side effect of compilation, but ICC will put the dependencies in
7045  # the current directory while Tru64 will put them in the object
7046  # directory.
7047  mkdir sub
7048
7049  am_cv_CC_dependencies_compiler_type=none
7050  if test "$am_compiler_list" = ""; then
7051     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7052  fi
7053  am__universal=false
7054  case " $depcc " in #(
7055     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7056     esac
7057
7058  for depmode in $am_compiler_list; do
7059    # Setup a source with many dependencies, because some compilers
7060    # like to wrap large dependency lists on column 80 (with \), and
7061    # we should not choose a depcomp mode which is confused by this.
7062    #
7063    # We need to recreate these files for each test, as the compiler may
7064    # overwrite some of them when testing with obscure command lines.
7065    # This happens at least with the AIX C compiler.
7066    : > sub/conftest.c
7067    for i in 1 2 3 4 5 6; do
7068      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7069      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7070      # Solaris 10 /bin/sh.
7071      echo '/* dummy */' > sub/conftst$i.h
7072    done
7073    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7074
7075    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7076    # mode.  It turns out that the SunPro C++ compiler does not properly
7077    # handle '-M -o', and we need to detect this.  Also, some Intel
7078    # versions had trouble with output in subdirs.
7079    am__obj=sub/conftest.${OBJEXT-o}
7080    am__minus_obj="-o $am__obj"
7081    case $depmode in
7082    gcc)
7083      # This depmode causes a compiler race in universal mode.
7084      test "$am__universal" = false || continue
7085      ;;
7086    nosideeffect)
7087      # After this tag, mechanisms are not by side-effect, so they'll
7088      # only be used when explicitly requested.
7089      if test "x$enable_dependency_tracking" = xyes; then
7090	continue
7091      else
7092	break
7093      fi
7094      ;;
7095    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7096      # This compiler won't grok '-c -o', but also, the minuso test has
7097      # not run yet.  These depmodes are late enough in the game, and
7098      # so weak that their functioning should not be impacted.
7099      am__obj=conftest.${OBJEXT-o}
7100      am__minus_obj=
7101      ;;
7102    none) break ;;
7103    esac
7104    if depmode=$depmode \
7105       source=sub/conftest.c object=$am__obj \
7106       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7107       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7108         >/dev/null 2>conftest.err &&
7109       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7110       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7111       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7112       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7113      # icc doesn't choke on unknown options, it will just issue warnings
7114      # or remarks (even with -Werror).  So we grep stderr for any message
7115      # that says an option was ignored or not supported.
7116      # When given -MP, icc 7.0 and 7.1 complain thusly:
7117      #   icc: Command line warning: ignoring option '-M'; no argument required
7118      # The diagnosis changed in icc 8.0:
7119      #   icc: Command line remark: option '-MP' not supported
7120      if (grep 'ignoring option' conftest.err ||
7121          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7122        am_cv_CC_dependencies_compiler_type=$depmode
7123        break
7124      fi
7125    fi
7126  done
7127
7128  cd ..
7129  rm -rf conftest.dir
7130else
7131  am_cv_CC_dependencies_compiler_type=none
7132fi
7133
7134fi
7135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
7136$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
7137CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
7138
7139 if
7140  test "x$enable_dependency_tracking" != xno \
7141  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
7142  am__fastdepCC_TRUE=
7143  am__fastdepCC_FALSE='#'
7144else
7145  am__fastdepCC_TRUE='#'
7146  am__fastdepCC_FALSE=
7147fi
7148
7149
7150ac_ext=cpp
7151ac_cpp='$CXXCPP $CPPFLAGS'
7152ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7153ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7154ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7155if test -z "$CXX"; then
7156  if test -n "$CCC"; then
7157    CXX=$CCC
7158  else
7159    if test -n "$ac_tool_prefix"; then
7160  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7161  do
7162    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7163set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_prog_CXX+:} false; then :
7167  $as_echo_n "(cached) " >&6
7168else
7169  if test -n "$CXX"; then
7170  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175  IFS=$as_save_IFS
7176  test -z "$as_dir" && as_dir=.
7177    for ac_exec_ext in '' $ac_executable_extensions; do
7178  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7180    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181    break 2
7182  fi
7183done
7184  done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189CXX=$ac_cv_prog_CXX
7190if test -n "$CXX"; then
7191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7192$as_echo "$CXX" >&6; }
7193else
7194  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199    test -n "$CXX" && break
7200  done
7201fi
7202if test -z "$CXX"; then
7203  ac_ct_CXX=$CXX
7204  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7205do
7206  # Extract the first word of "$ac_prog", so it can be a program name with args.
7207set dummy $ac_prog; ac_word=$2
7208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209$as_echo_n "checking for $ac_word... " >&6; }
7210if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7211  $as_echo_n "(cached) " >&6
7212else
7213  if test -n "$ac_ct_CXX"; then
7214  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7215else
7216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217for as_dir in $PATH
7218do
7219  IFS=$as_save_IFS
7220  test -z "$as_dir" && as_dir=.
7221    for ac_exec_ext in '' $ac_executable_extensions; do
7222  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223    ac_cv_prog_ac_ct_CXX="$ac_prog"
7224    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225    break 2
7226  fi
7227done
7228  done
7229IFS=$as_save_IFS
7230
7231fi
7232fi
7233ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7234if test -n "$ac_ct_CXX"; then
7235  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7236$as_echo "$ac_ct_CXX" >&6; }
7237else
7238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239$as_echo "no" >&6; }
7240fi
7241
7242
7243  test -n "$ac_ct_CXX" && break
7244done
7245
7246  if test "x$ac_ct_CXX" = x; then
7247    CXX="g++"
7248  else
7249    case $cross_compiling:$ac_tool_warned in
7250yes:)
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7253ac_tool_warned=yes ;;
7254esac
7255    CXX=$ac_ct_CXX
7256  fi
7257fi
7258
7259  fi
7260fi
7261# Provide some information about the compiler.
7262$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7263set X $ac_compile
7264ac_compiler=$2
7265for ac_option in --version -v -V -qversion; do
7266  { { ac_try="$ac_compiler $ac_option >&5"
7267case "(($ac_try" in
7268  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7269  *) ac_try_echo=$ac_try;;
7270esac
7271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7272$as_echo "$ac_try_echo"; } >&5
7273  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7274  ac_status=$?
7275  if test -s conftest.err; then
7276    sed '10a\
7277... rest of stderr output deleted ...
7278         10q' conftest.err >conftest.er1
7279    cat conftest.er1 >&5
7280  fi
7281  rm -f conftest.er1 conftest.err
7282  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7283  test $ac_status = 0; }
7284done
7285
7286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7287$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7288if ${ac_cv_cxx_compiler_gnu+:} false; then :
7289  $as_echo_n "(cached) " >&6
7290else
7291  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292/* end confdefs.h.  */
7293
7294int
7295main ()
7296{
7297#ifndef __GNUC__
7298       choke me
7299#endif
7300
7301  ;
7302  return 0;
7303}
7304_ACEOF
7305if ac_fn_cxx_try_compile "$LINENO"; then :
7306  ac_compiler_gnu=yes
7307else
7308  ac_compiler_gnu=no
7309fi
7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7312
7313fi
7314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7315$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7316if test $ac_compiler_gnu = yes; then
7317  GXX=yes
7318else
7319  GXX=
7320fi
7321ac_test_CXXFLAGS=${CXXFLAGS+set}
7322ac_save_CXXFLAGS=$CXXFLAGS
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7324$as_echo_n "checking whether $CXX accepts -g... " >&6; }
7325if ${ac_cv_prog_cxx_g+:} false; then :
7326  $as_echo_n "(cached) " >&6
7327else
7328  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7329   ac_cxx_werror_flag=yes
7330   ac_cv_prog_cxx_g=no
7331   CXXFLAGS="-g"
7332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7333/* end confdefs.h.  */
7334
7335int
7336main ()
7337{
7338
7339  ;
7340  return 0;
7341}
7342_ACEOF
7343if ac_fn_cxx_try_compile "$LINENO"; then :
7344  ac_cv_prog_cxx_g=yes
7345else
7346  CXXFLAGS=""
7347      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348/* end confdefs.h.  */
7349
7350int
7351main ()
7352{
7353
7354  ;
7355  return 0;
7356}
7357_ACEOF
7358if ac_fn_cxx_try_compile "$LINENO"; then :
7359
7360else
7361  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7362	 CXXFLAGS="-g"
7363	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7364/* end confdefs.h.  */
7365
7366int
7367main ()
7368{
7369
7370  ;
7371  return 0;
7372}
7373_ACEOF
7374if ac_fn_cxx_try_compile "$LINENO"; then :
7375  ac_cv_prog_cxx_g=yes
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7383fi
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7385$as_echo "$ac_cv_prog_cxx_g" >&6; }
7386if test "$ac_test_CXXFLAGS" = set; then
7387  CXXFLAGS=$ac_save_CXXFLAGS
7388elif test $ac_cv_prog_cxx_g = yes; then
7389  if test "$GXX" = yes; then
7390    CXXFLAGS="-g -O2"
7391  else
7392    CXXFLAGS="-g"
7393  fi
7394else
7395  if test "$GXX" = yes; then
7396    CXXFLAGS="-O2"
7397  else
7398    CXXFLAGS=
7399  fi
7400fi
7401ac_ext=c
7402ac_cpp='$CPP $CPPFLAGS'
7403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7405ac_compiler_gnu=$ac_cv_c_compiler_gnu
7406
7407depcc="$CXX"  am_compiler_list=
7408
7409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7410$as_echo_n "checking dependency style of $depcc... " >&6; }
7411if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
7412  $as_echo_n "(cached) " >&6
7413else
7414  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7415  # We make a subdir and do the tests there.  Otherwise we can end up
7416  # making bogus files that we don't know about and never remove.  For
7417  # instance it was reported that on HP-UX the gcc test will end up
7418  # making a dummy file named 'D' -- because '-MD' means "put the output
7419  # in D".
7420  rm -rf conftest.dir
7421  mkdir conftest.dir
7422  # Copy depcomp to subdir because otherwise we won't find it if we're
7423  # using a relative directory.
7424  cp "$am_depcomp" conftest.dir
7425  cd conftest.dir
7426  # We will build objects and dependencies in a subdirectory because
7427  # it helps to detect inapplicable dependency modes.  For instance
7428  # both Tru64's cc and ICC support -MD to output dependencies as a
7429  # side effect of compilation, but ICC will put the dependencies in
7430  # the current directory while Tru64 will put them in the object
7431  # directory.
7432  mkdir sub
7433
7434  am_cv_CXX_dependencies_compiler_type=none
7435  if test "$am_compiler_list" = ""; then
7436     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7437  fi
7438  am__universal=false
7439  case " $depcc " in #(
7440     *\ -arch\ *\ -arch\ *) am__universal=true ;;
7441     esac
7442
7443  for depmode in $am_compiler_list; do
7444    # Setup a source with many dependencies, because some compilers
7445    # like to wrap large dependency lists on column 80 (with \), and
7446    # we should not choose a depcomp mode which is confused by this.
7447    #
7448    # We need to recreate these files for each test, as the compiler may
7449    # overwrite some of them when testing with obscure command lines.
7450    # This happens at least with the AIX C compiler.
7451    : > sub/conftest.c
7452    for i in 1 2 3 4 5 6; do
7453      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7454      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7455      # Solaris 10 /bin/sh.
7456      echo '/* dummy */' > sub/conftst$i.h
7457    done
7458    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7459
7460    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7461    # mode.  It turns out that the SunPro C++ compiler does not properly
7462    # handle '-M -o', and we need to detect this.  Also, some Intel
7463    # versions had trouble with output in subdirs.
7464    am__obj=sub/conftest.${OBJEXT-o}
7465    am__minus_obj="-o $am__obj"
7466    case $depmode in
7467    gcc)
7468      # This depmode causes a compiler race in universal mode.
7469      test "$am__universal" = false || continue
7470      ;;
7471    nosideeffect)
7472      # After this tag, mechanisms are not by side-effect, so they'll
7473      # only be used when explicitly requested.
7474      if test "x$enable_dependency_tracking" = xyes; then
7475	continue
7476      else
7477	break
7478      fi
7479      ;;
7480    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7481      # This compiler won't grok '-c -o', but also, the minuso test has
7482      # not run yet.  These depmodes are late enough in the game, and
7483      # so weak that their functioning should not be impacted.
7484      am__obj=conftest.${OBJEXT-o}
7485      am__minus_obj=
7486      ;;
7487    none) break ;;
7488    esac
7489    if depmode=$depmode \
7490       source=sub/conftest.c object=$am__obj \
7491       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7492       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7493         >/dev/null 2>conftest.err &&
7494       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7495       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7496       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7497       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7498      # icc doesn't choke on unknown options, it will just issue warnings
7499      # or remarks (even with -Werror).  So we grep stderr for any message
7500      # that says an option was ignored or not supported.
7501      # When given -MP, icc 7.0 and 7.1 complain thusly:
7502      #   icc: Command line warning: ignoring option '-M'; no argument required
7503      # The diagnosis changed in icc 8.0:
7504      #   icc: Command line remark: option '-MP' not supported
7505      if (grep 'ignoring option' conftest.err ||
7506          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7507        am_cv_CXX_dependencies_compiler_type=$depmode
7508        break
7509      fi
7510    fi
7511  done
7512
7513  cd ..
7514  rm -rf conftest.dir
7515else
7516  am_cv_CXX_dependencies_compiler_type=none
7517fi
7518
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7521$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7522CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7523
7524 if
7525  test "x$enable_dependency_tracking" != xno \
7526  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7527  am__fastdepCXX_TRUE=
7528  am__fastdepCXX_FALSE='#'
7529else
7530  am__fastdepCXX_TRUE='#'
7531  am__fastdepCXX_FALSE=
7532fi
7533
7534
7535   case $ac_cv_prog_cc_stdc in #(
7536  no) :
7537    ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
7538  *) :
7539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7540$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7541if ${ac_cv_prog_cc_c99+:} false; then :
7542  $as_echo_n "(cached) " >&6
7543else
7544  ac_cv_prog_cc_c99=no
7545ac_save_CC=$CC
7546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547/* end confdefs.h.  */
7548#include <stdarg.h>
7549#include <stdbool.h>
7550#include <stdlib.h>
7551#include <wchar.h>
7552#include <stdio.h>
7553
7554// Check varargs macros.  These examples are taken from C99 6.10.3.5.
7555#define debug(...) fprintf (stderr, __VA_ARGS__)
7556#define showlist(...) puts (#__VA_ARGS__)
7557#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7558static void
7559test_varargs_macros (void)
7560{
7561  int x = 1234;
7562  int y = 5678;
7563  debug ("Flag");
7564  debug ("X = %d\n", x);
7565  showlist (The first, second, and third items.);
7566  report (x>y, "x is %d but y is %d", x, y);
7567}
7568
7569// Check long long types.
7570#define BIG64 18446744073709551615ull
7571#define BIG32 4294967295ul
7572#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7573#if !BIG_OK
7574  your preprocessor is broken;
7575#endif
7576#if BIG_OK
7577#else
7578  your preprocessor is broken;
7579#endif
7580static long long int bignum = -9223372036854775807LL;
7581static unsigned long long int ubignum = BIG64;
7582
7583struct incomplete_array
7584{
7585  int datasize;
7586  double data[];
7587};
7588
7589struct named_init {
7590  int number;
7591  const wchar_t *name;
7592  double average;
7593};
7594
7595typedef const char *ccp;
7596
7597static inline int
7598test_restrict (ccp restrict text)
7599{
7600  // See if C++-style comments work.
7601  // Iterate through items via the restricted pointer.
7602  // Also check for declarations in for loops.
7603  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7604    continue;
7605  return 0;
7606}
7607
7608// Check varargs and va_copy.
7609static void
7610test_varargs (const char *format, ...)
7611{
7612  va_list args;
7613  va_start (args, format);
7614  va_list args_copy;
7615  va_copy (args_copy, args);
7616
7617  const char *str;
7618  int number;
7619  float fnumber;
7620
7621  while (*format)
7622    {
7623      switch (*format++)
7624	{
7625	case 's': // string
7626	  str = va_arg (args_copy, const char *);
7627	  break;
7628	case 'd': // int
7629	  number = va_arg (args_copy, int);
7630	  break;
7631	case 'f': // float
7632	  fnumber = va_arg (args_copy, double);
7633	  break;
7634	default:
7635	  break;
7636	}
7637    }
7638  va_end (args_copy);
7639  va_end (args);
7640}
7641
7642int
7643main ()
7644{
7645
7646  // Check bool.
7647  _Bool success = false;
7648
7649  // Check restrict.
7650  if (test_restrict ("String literal") == 0)
7651    success = true;
7652  char *restrict newvar = "Another string";
7653
7654  // Check varargs.
7655  test_varargs ("s, d' f .", "string", 65, 34.234);
7656  test_varargs_macros ();
7657
7658  // Check flexible array members.
7659  struct incomplete_array *ia =
7660    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7661  ia->datasize = 10;
7662  for (int i = 0; i < ia->datasize; ++i)
7663    ia->data[i] = i * 1.234;
7664
7665  // Check named initializers.
7666  struct named_init ni = {
7667    .number = 34,
7668    .name = L"Test wide string",
7669    .average = 543.34343,
7670  };
7671
7672  ni.number = 58;
7673
7674  int dynamic_array[ni.number];
7675  dynamic_array[ni.number - 1] = 543;
7676
7677  // work around unused variable warnings
7678  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7679	  || dynamic_array[ni.number - 1] != 543);
7680
7681  ;
7682  return 0;
7683}
7684_ACEOF
7685for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
7686do
7687  CC="$ac_save_CC $ac_arg"
7688  if ac_fn_c_try_compile "$LINENO"; then :
7689  ac_cv_prog_cc_c99=$ac_arg
7690fi
7691rm -f core conftest.err conftest.$ac_objext
7692  test "x$ac_cv_prog_cc_c99" != "xno" && break
7693done
7694rm -f conftest.$ac_ext
7695CC=$ac_save_CC
7696
7697fi
7698# AC_CACHE_VAL
7699case "x$ac_cv_prog_cc_c99" in
7700  x)
7701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7702$as_echo "none needed" >&6; } ;;
7703  xno)
7704    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7705$as_echo "unsupported" >&6; } ;;
7706  *)
7707    CC="$CC $ac_cv_prog_cc_c99"
7708    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7709$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7710esac
7711if test "x$ac_cv_prog_cc_c99" != xno; then :
7712  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7713else
7714  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7715$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7716if ${ac_cv_prog_cc_c89+:} false; then :
7717  $as_echo_n "(cached) " >&6
7718else
7719  ac_cv_prog_cc_c89=no
7720ac_save_CC=$CC
7721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722/* end confdefs.h.  */
7723#include <stdarg.h>
7724#include <stdio.h>
7725struct stat;
7726/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7727struct buf { int x; };
7728FILE * (*rcsopen) (struct buf *, struct stat *, int);
7729static char *e (p, i)
7730     char **p;
7731     int i;
7732{
7733  return p[i];
7734}
7735static char *f (char * (*g) (char **, int), char **p, ...)
7736{
7737  char *s;
7738  va_list v;
7739  va_start (v,p);
7740  s = g (p, va_arg (v,int));
7741  va_end (v);
7742  return s;
7743}
7744
7745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
7746   function prototypes and stuff, but not '\xHH' hex character constants.
7747   These don't provoke an error unfortunately, instead are silently treated
7748   as 'x'.  The following induces an error, until -std is added to get
7749   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
7750   array size at least.  It's necessary to write '\x00'==0 to get something
7751   that's true only with -std.  */
7752int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7753
7754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7755   inside strings and character constants.  */
7756#define FOO(x) 'x'
7757int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7758
7759int test (int i, double x);
7760struct s1 {int (*f) (int a);};
7761struct s2 {int (*f) (double a);};
7762int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7763int argc;
7764char **argv;
7765int
7766main ()
7767{
7768return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7769  ;
7770  return 0;
7771}
7772_ACEOF
7773for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7774	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7775do
7776  CC="$ac_save_CC $ac_arg"
7777  if ac_fn_c_try_compile "$LINENO"; then :
7778  ac_cv_prog_cc_c89=$ac_arg
7779fi
7780rm -f core conftest.err conftest.$ac_objext
7781  test "x$ac_cv_prog_cc_c89" != "xno" && break
7782done
7783rm -f conftest.$ac_ext
7784CC=$ac_save_CC
7785
7786fi
7787# AC_CACHE_VAL
7788case "x$ac_cv_prog_cc_c89" in
7789  x)
7790    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7791$as_echo "none needed" >&6; } ;;
7792  xno)
7793    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7794$as_echo "unsupported" >&6; } ;;
7795  *)
7796    CC="$CC $ac_cv_prog_cc_c89"
7797    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7798$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7799esac
7800if test "x$ac_cv_prog_cc_c89" != xno; then :
7801  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7802else
7803  ac_cv_prog_cc_stdc=no
7804fi
7805
7806fi
7807 ;;
7808esac
7809  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
7810$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
7811  if ${ac_cv_prog_cc_stdc+:} false; then :
7812  $as_echo_n "(cached) " >&6
7813fi
7814
7815  case $ac_cv_prog_cc_stdc in #(
7816  no) :
7817    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7818$as_echo "unsupported" >&6; } ;; #(
7819  '') :
7820    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7821$as_echo "none needed" >&6; } ;; #(
7822  *) :
7823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7824$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7825esac
7826
7827ac_ext=c
7828ac_cpp='$CPP $CPPFLAGS'
7829ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7830ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7831ac_compiler_gnu=$ac_cv_c_compiler_gnu
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7833$as_echo_n "checking how to run the C preprocessor... " >&6; }
7834# On Suns, sometimes $CPP names a directory.
7835if test -n "$CPP" && test -d "$CPP"; then
7836  CPP=
7837fi
7838if test -z "$CPP"; then
7839  if ${ac_cv_prog_CPP+:} false; then :
7840  $as_echo_n "(cached) " >&6
7841else
7842      # Double quotes because CPP needs to be expanded
7843    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7844    do
7845      ac_preproc_ok=false
7846for ac_c_preproc_warn_flag in '' yes
7847do
7848  # Use a header file that comes with gcc, so configuring glibc
7849  # with a fresh cross-compiler works.
7850  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7851  # <limits.h> exists even on freestanding compilers.
7852  # On the NeXT, cc -E runs the code through the compiler's parser,
7853  # not just through cpp. "Syntax error" is here to catch this case.
7854  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7855/* end confdefs.h.  */
7856#ifdef __STDC__
7857# include <limits.h>
7858#else
7859# include <assert.h>
7860#endif
7861		     Syntax error
7862_ACEOF
7863if ac_fn_c_try_cpp "$LINENO"; then :
7864
7865else
7866  # Broken: fails on valid input.
7867continue
7868fi
7869rm -f conftest.err conftest.i conftest.$ac_ext
7870
7871  # OK, works on sane cases.  Now check whether nonexistent headers
7872  # can be detected and how.
7873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874/* end confdefs.h.  */
7875#include <ac_nonexistent.h>
7876_ACEOF
7877if ac_fn_c_try_cpp "$LINENO"; then :
7878  # Broken: success on invalid input.
7879continue
7880else
7881  # Passes both tests.
7882ac_preproc_ok=:
7883break
7884fi
7885rm -f conftest.err conftest.i conftest.$ac_ext
7886
7887done
7888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7889rm -f conftest.i conftest.err conftest.$ac_ext
7890if $ac_preproc_ok; then :
7891  break
7892fi
7893
7894    done
7895    ac_cv_prog_CPP=$CPP
7896
7897fi
7898  CPP=$ac_cv_prog_CPP
7899else
7900  ac_cv_prog_CPP=$CPP
7901fi
7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7903$as_echo "$CPP" >&6; }
7904ac_preproc_ok=false
7905for ac_c_preproc_warn_flag in '' yes
7906do
7907  # Use a header file that comes with gcc, so configuring glibc
7908  # with a fresh cross-compiler works.
7909  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7910  # <limits.h> exists even on freestanding compilers.
7911  # On the NeXT, cc -E runs the code through the compiler's parser,
7912  # not just through cpp. "Syntax error" is here to catch this case.
7913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7914/* end confdefs.h.  */
7915#ifdef __STDC__
7916# include <limits.h>
7917#else
7918# include <assert.h>
7919#endif
7920		     Syntax error
7921_ACEOF
7922if ac_fn_c_try_cpp "$LINENO"; then :
7923
7924else
7925  # Broken: fails on valid input.
7926continue
7927fi
7928rm -f conftest.err conftest.i conftest.$ac_ext
7929
7930  # OK, works on sane cases.  Now check whether nonexistent headers
7931  # can be detected and how.
7932  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h.  */
7934#include <ac_nonexistent.h>
7935_ACEOF
7936if ac_fn_c_try_cpp "$LINENO"; then :
7937  # Broken: success on invalid input.
7938continue
7939else
7940  # Passes both tests.
7941ac_preproc_ok=:
7942break
7943fi
7944rm -f conftest.err conftest.i conftest.$ac_ext
7945
7946done
7947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7948rm -f conftest.i conftest.err conftest.$ac_ext
7949if $ac_preproc_ok; then :
7950
7951else
7952  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7953$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7954as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7955See \`config.log' for more details" "$LINENO" 5; }
7956fi
7957
7958ac_ext=c
7959ac_cpp='$CPP $CPPFLAGS'
7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7965$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7966if ${ac_cv_path_SED+:} false; then :
7967  $as_echo_n "(cached) " >&6
7968else
7969            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7970     for ac_i in 1 2 3 4 5 6 7; do
7971       ac_script="$ac_script$as_nl$ac_script"
7972     done
7973     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7974     { ac_script=; unset ac_script;}
7975     if test -z "$SED"; then
7976  ac_path_SED_found=false
7977  # Loop through the user's path and test for each of PROGNAME-LIST
7978  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979for as_dir in $PATH
7980do
7981  IFS=$as_save_IFS
7982  test -z "$as_dir" && as_dir=.
7983    for ac_prog in sed gsed; do
7984    for ac_exec_ext in '' $ac_executable_extensions; do
7985      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7986      as_fn_executable_p "$ac_path_SED" || continue
7987# Check for GNU ac_path_SED and select it if it is found.
7988  # Check for GNU $ac_path_SED
7989case `"$ac_path_SED" --version 2>&1` in
7990*GNU*)
7991  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7992*)
7993  ac_count=0
7994  $as_echo_n 0123456789 >"conftest.in"
7995  while :
7996  do
7997    cat "conftest.in" "conftest.in" >"conftest.tmp"
7998    mv "conftest.tmp" "conftest.in"
7999    cp "conftest.in" "conftest.nl"
8000    $as_echo '' >> "conftest.nl"
8001    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8002    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8003    as_fn_arith $ac_count + 1 && ac_count=$as_val
8004    if test $ac_count -gt ${ac_path_SED_max-0}; then
8005      # Best one so far, save it but keep looking for a better one
8006      ac_cv_path_SED="$ac_path_SED"
8007      ac_path_SED_max=$ac_count
8008    fi
8009    # 10*(2^10) chars as input seems more than enough
8010    test $ac_count -gt 10 && break
8011  done
8012  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8013esac
8014
8015      $ac_path_SED_found && break 3
8016    done
8017  done
8018  done
8019IFS=$as_save_IFS
8020  if test -z "$ac_cv_path_SED"; then
8021    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8022  fi
8023else
8024  ac_cv_path_SED=$SED
8025fi
8026
8027fi
8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8029$as_echo "$ac_cv_path_SED" >&6; }
8030 SED="$ac_cv_path_SED"
8031  rm -f conftest.sed
8032
8033test -z "$SED" && SED=sed
8034Xsed="$SED -e 1s/^X//"
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8047$as_echo_n "checking for fgrep... " >&6; }
8048if ${ac_cv_path_FGREP+:} false; then :
8049  $as_echo_n "(cached) " >&6
8050else
8051  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8052   then ac_cv_path_FGREP="$GREP -F"
8053   else
8054     if test -z "$FGREP"; then
8055  ac_path_FGREP_found=false
8056  # Loop through the user's path and test for each of PROGNAME-LIST
8057  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8059do
8060  IFS=$as_save_IFS
8061  test -z "$as_dir" && as_dir=.
8062    for ac_prog in fgrep; do
8063    for ac_exec_ext in '' $ac_executable_extensions; do
8064      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8065      as_fn_executable_p "$ac_path_FGREP" || continue
8066# Check for GNU ac_path_FGREP and select it if it is found.
8067  # Check for GNU $ac_path_FGREP
8068case `"$ac_path_FGREP" --version 2>&1` in
8069*GNU*)
8070  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8071*)
8072  ac_count=0
8073  $as_echo_n 0123456789 >"conftest.in"
8074  while :
8075  do
8076    cat "conftest.in" "conftest.in" >"conftest.tmp"
8077    mv "conftest.tmp" "conftest.in"
8078    cp "conftest.in" "conftest.nl"
8079    $as_echo 'FGREP' >> "conftest.nl"
8080    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8081    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8082    as_fn_arith $ac_count + 1 && ac_count=$as_val
8083    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8084      # Best one so far, save it but keep looking for a better one
8085      ac_cv_path_FGREP="$ac_path_FGREP"
8086      ac_path_FGREP_max=$ac_count
8087    fi
8088    # 10*(2^10) chars as input seems more than enough
8089    test $ac_count -gt 10 && break
8090  done
8091  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8092esac
8093
8094      $ac_path_FGREP_found && break 3
8095    done
8096  done
8097  done
8098IFS=$as_save_IFS
8099  if test -z "$ac_cv_path_FGREP"; then
8100    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8101  fi
8102else
8103  ac_cv_path_FGREP=$FGREP
8104fi
8105
8106   fi
8107fi
8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8109$as_echo "$ac_cv_path_FGREP" >&6; }
8110 FGREP="$ac_cv_path_FGREP"
8111
8112
8113test -z "$GREP" && GREP=grep
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8132ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8133ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8134
8135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8136$as_echo_n "checking how to print strings... " >&6; }
8137# Test print first, because it will be a builtin if present.
8138if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8139   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8140  ECHO='print -r --'
8141elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8142  ECHO='printf %s\n'
8143else
8144  # Use this function as a fallback that always works.
8145  func_fallback_echo ()
8146  {
8147    eval 'cat <<_LTECHO_EOF
8148$1
8149_LTECHO_EOF'
8150  }
8151  ECHO='func_fallback_echo'
8152fi
8153
8154# func_echo_all arg...
8155# Invoke $ECHO with all args, space-separated.
8156func_echo_all ()
8157{
8158    $ECHO ""
8159}
8160
8161case $ECHO in
8162  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8163$as_echo "printf" >&6; } ;;
8164  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8165$as_echo "print -r" >&6; } ;;
8166  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8167$as_echo "cat" >&6; } ;;
8168esac
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185# Check whether --with-gnu-ld was given.
8186if test "${with_gnu_ld+set}" = set; then :
8187  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8188else
8189  with_gnu_ld=no
8190fi
8191
8192ac_prog=ld
8193if test yes = "$GCC"; then
8194  # Check if gcc -print-prog-name=ld gives a path.
8195  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8196$as_echo_n "checking for ld used by $CC... " >&6; }
8197  case $host in
8198  *-*-mingw*)
8199    # gcc leaves a trailing carriage return, which upsets mingw
8200    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8201  *)
8202    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8203  esac
8204  case $ac_prog in
8205    # Accept absolute paths.
8206    [\\/]* | ?:[\\/]*)
8207      re_direlt='/[^/][^/]*/\.\./'
8208      # Canonicalize the pathname of ld
8209      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8210      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8211	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8212      done
8213      test -z "$LD" && LD=$ac_prog
8214      ;;
8215  "")
8216    # If it fails, then pretend we aren't using GCC.
8217    ac_prog=ld
8218    ;;
8219  *)
8220    # If it is relative, then search for the first ld in PATH.
8221    with_gnu_ld=unknown
8222    ;;
8223  esac
8224elif test yes = "$with_gnu_ld"; then
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8226$as_echo_n "checking for GNU ld... " >&6; }
8227else
8228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8229$as_echo_n "checking for non-GNU ld... " >&6; }
8230fi
8231if ${lt_cv_path_LD+:} false; then :
8232  $as_echo_n "(cached) " >&6
8233else
8234  if test -z "$LD"; then
8235  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8236  for ac_dir in $PATH; do
8237    IFS=$lt_save_ifs
8238    test -z "$ac_dir" && ac_dir=.
8239    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8240      lt_cv_path_LD=$ac_dir/$ac_prog
8241      # Check to see if the program is GNU ld.  I'd rather use --version,
8242      # but apparently some variants of GNU ld only accept -v.
8243      # Break only if it was the GNU/non-GNU ld that we prefer.
8244      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8245      *GNU* | *'with BFD'*)
8246	test no != "$with_gnu_ld" && break
8247	;;
8248      *)
8249	test yes != "$with_gnu_ld" && break
8250	;;
8251      esac
8252    fi
8253  done
8254  IFS=$lt_save_ifs
8255else
8256  lt_cv_path_LD=$LD # Let the user override the test with a path.
8257fi
8258fi
8259
8260LD=$lt_cv_path_LD
8261if test -n "$LD"; then
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8263$as_echo "$LD" >&6; }
8264else
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8270$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8271if ${lt_cv_prog_gnu_ld+:} false; then :
8272  $as_echo_n "(cached) " >&6
8273else
8274  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8275case `$LD -v 2>&1 </dev/null` in
8276*GNU* | *'with BFD'*)
8277  lt_cv_prog_gnu_ld=yes
8278  ;;
8279*)
8280  lt_cv_prog_gnu_ld=no
8281  ;;
8282esac
8283fi
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8285$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8286with_gnu_ld=$lt_cv_prog_gnu_ld
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
8298$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
8299if ${ac_cv_prog_cc_c99+:} false; then :
8300  $as_echo_n "(cached) " >&6
8301else
8302  ac_cv_prog_cc_c99=no
8303ac_save_CC=$CC
8304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8305/* end confdefs.h.  */
8306#include <stdarg.h>
8307#include <stdbool.h>
8308#include <stdlib.h>
8309#include <wchar.h>
8310#include <stdio.h>
8311
8312// Check varargs macros.  These examples are taken from C99 6.10.3.5.
8313#define debug(...) fprintf (stderr, __VA_ARGS__)
8314#define showlist(...) puts (#__VA_ARGS__)
8315#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
8316static void
8317test_varargs_macros (void)
8318{
8319  int x = 1234;
8320  int y = 5678;
8321  debug ("Flag");
8322  debug ("X = %d\n", x);
8323  showlist (The first, second, and third items.);
8324  report (x>y, "x is %d but y is %d", x, y);
8325}
8326
8327// Check long long types.
8328#define BIG64 18446744073709551615ull
8329#define BIG32 4294967295ul
8330#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
8331#if !BIG_OK
8332  your preprocessor is broken;
8333#endif
8334#if BIG_OK
8335#else
8336  your preprocessor is broken;
8337#endif
8338static long long int bignum = -9223372036854775807LL;
8339static unsigned long long int ubignum = BIG64;
8340
8341struct incomplete_array
8342{
8343  int datasize;
8344  double data[];
8345};
8346
8347struct named_init {
8348  int number;
8349  const wchar_t *name;
8350  double average;
8351};
8352
8353typedef const char *ccp;
8354
8355static inline int
8356test_restrict (ccp restrict text)
8357{
8358  // See if C++-style comments work.
8359  // Iterate through items via the restricted pointer.
8360  // Also check for declarations in for loops.
8361  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
8362    continue;
8363  return 0;
8364}
8365
8366// Check varargs and va_copy.
8367static void
8368test_varargs (const char *format, ...)
8369{
8370  va_list args;
8371  va_start (args, format);
8372  va_list args_copy;
8373  va_copy (args_copy, args);
8374
8375  const char *str;
8376  int number;
8377  float fnumber;
8378
8379  while (*format)
8380    {
8381      switch (*format++)
8382	{
8383	case 's': // string
8384	  str = va_arg (args_copy, const char *);
8385	  break;
8386	case 'd': // int
8387	  number = va_arg (args_copy, int);
8388	  break;
8389	case 'f': // float
8390	  fnumber = va_arg (args_copy, double);
8391	  break;
8392	default:
8393	  break;
8394	}
8395    }
8396  va_end (args_copy);
8397  va_end (args);
8398}
8399
8400int
8401main ()
8402{
8403
8404  // Check bool.
8405  _Bool success = false;
8406
8407  // Check restrict.
8408  if (test_restrict ("String literal") == 0)
8409    success = true;
8410  char *restrict newvar = "Another string";
8411
8412  // Check varargs.
8413  test_varargs ("s, d' f .", "string", 65, 34.234);
8414  test_varargs_macros ();
8415
8416  // Check flexible array members.
8417  struct incomplete_array *ia =
8418    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
8419  ia->datasize = 10;
8420  for (int i = 0; i < ia->datasize; ++i)
8421    ia->data[i] = i * 1.234;
8422
8423  // Check named initializers.
8424  struct named_init ni = {
8425    .number = 34,
8426    .name = L"Test wide string",
8427    .average = 543.34343,
8428  };
8429
8430  ni.number = 58;
8431
8432  int dynamic_array[ni.number];
8433  dynamic_array[ni.number - 1] = 543;
8434
8435  // work around unused variable warnings
8436  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
8437	  || dynamic_array[ni.number - 1] != 543);
8438
8439  ;
8440  return 0;
8441}
8442_ACEOF
8443for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
8444do
8445  CC="$ac_save_CC $ac_arg"
8446  if ac_fn_c_try_compile "$LINENO"; then :
8447  ac_cv_prog_cc_c99=$ac_arg
8448fi
8449rm -f core conftest.err conftest.$ac_objext
8450  test "x$ac_cv_prog_cc_c99" != "xno" && break
8451done
8452rm -f conftest.$ac_ext
8453CC=$ac_save_CC
8454
8455fi
8456# AC_CACHE_VAL
8457case "x$ac_cv_prog_cc_c99" in
8458  x)
8459    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8460$as_echo "none needed" >&6; } ;;
8461  xno)
8462    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8463$as_echo "unsupported" >&6; } ;;
8464  *)
8465    CC="$CC $ac_cv_prog_cc_c99"
8466    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
8467$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
8468esac
8469if test "x$ac_cv_prog_cc_c99" != xno; then :
8470
8471fi
8472
8473
8474
8475ac_ext=c
8476ac_cpp='$CPP $CPPFLAGS'
8477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479ac_compiler_gnu=$ac_cv_c_compiler_gnu
8480
8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
8482$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
8483if ${ac_cv_cflags_warn_all+:} false; then :
8484  $as_echo_n "(cached) " >&6
8485else
8486  ac_cv_cflags_warn_all="no, unknown"
8487ac_save_CFLAGS="$CFLAGS"
8488for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
8489do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
8490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8491/* end confdefs.h.  */
8492
8493int
8494main ()
8495{
8496
8497  ;
8498  return 0;
8499}
8500_ACEOF
8501if ac_fn_c_try_compile "$LINENO"; then :
8502  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
8503fi
8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8505done
8506CFLAGS="$ac_save_CFLAGS"
8507
8508fi
8509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
8510$as_echo "$ac_cv_cflags_warn_all" >&6; }
8511
8512
8513case ".$ac_cv_cflags_warn_all" in
8514     .ok|.ok,*)  ;;
8515   .|.no|.no,*)  ;;
8516   *)
8517if ${CFLAGS+:} false; then :
8518
8519  case " $CFLAGS " in #(
8520  *" $ac_cv_cflags_warn_all "*) :
8521    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
8522  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
8523  ac_status=$?
8524  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8525  test $ac_status = 0; } ;; #(
8526  *) :
8527
8528     as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
8529     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8530  (: CFLAGS="$CFLAGS") 2>&5
8531  ac_status=$?
8532  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8533  test $ac_status = 0; }
8534     ;;
8535esac
8536
8537else
8538
8539  CFLAGS=$ac_cv_cflags_warn_all
8540  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
8541  (: CFLAGS="$CFLAGS") 2>&5
8542  ac_status=$?
8543  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8544  test $ac_status = 0; }
8545
8546fi
8547 ;;
8548esac
8549
8550ac_ext=c
8551ac_cpp='$CPP $CPPFLAGS'
8552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554ac_compiler_gnu=$ac_cv_c_compiler_gnu
8555
8556
8557
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8559$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8560set x ${MAKE-make}
8561ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8562if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8563  $as_echo_n "(cached) " >&6
8564else
8565  cat >conftest.make <<\_ACEOF
8566SHELL = /bin/sh
8567all:
8568	@echo '@@@%%%=$(MAKE)=@@@%%%'
8569_ACEOF
8570# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8571case `${MAKE-make} -f conftest.make 2>/dev/null` in
8572  *@@@%%%=?*=@@@%%%*)
8573    eval ac_cv_prog_make_${ac_make}_set=yes;;
8574  *)
8575    eval ac_cv_prog_make_${ac_make}_set=no;;
8576esac
8577rm -f conftest.make
8578fi
8579if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8581$as_echo "yes" >&6; }
8582  SET_MAKE=
8583else
8584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585$as_echo "no" >&6; }
8586  SET_MAKE="MAKE=${MAKE-make}"
8587fi
8588
8589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8590$as_echo_n "checking whether ln -s works... " >&6; }
8591LN_S=$as_ln_s
8592if test "$LN_S" = "ln -s"; then
8593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8594$as_echo "yes" >&6; }
8595else
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8597$as_echo "no, using $LN_S" >&6; }
8598fi
8599
8600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8601$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8602if ${ac_cv_path_SED+:} false; then :
8603  $as_echo_n "(cached) " >&6
8604else
8605            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8606     for ac_i in 1 2 3 4 5 6 7; do
8607       ac_script="$ac_script$as_nl$ac_script"
8608     done
8609     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8610     { ac_script=; unset ac_script;}
8611     if test -z "$SED"; then
8612  ac_path_SED_found=false
8613  # Loop through the user's path and test for each of PROGNAME-LIST
8614  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615for as_dir in $PATH
8616do
8617  IFS=$as_save_IFS
8618  test -z "$as_dir" && as_dir=.
8619    for ac_prog in sed gsed; do
8620    for ac_exec_ext in '' $ac_executable_extensions; do
8621      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8622      as_fn_executable_p "$ac_path_SED" || continue
8623# Check for GNU ac_path_SED and select it if it is found.
8624  # Check for GNU $ac_path_SED
8625case `"$ac_path_SED" --version 2>&1` in
8626*GNU*)
8627  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8628*)
8629  ac_count=0
8630  $as_echo_n 0123456789 >"conftest.in"
8631  while :
8632  do
8633    cat "conftest.in" "conftest.in" >"conftest.tmp"
8634    mv "conftest.tmp" "conftest.in"
8635    cp "conftest.in" "conftest.nl"
8636    $as_echo '' >> "conftest.nl"
8637    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8638    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8639    as_fn_arith $ac_count + 1 && ac_count=$as_val
8640    if test $ac_count -gt ${ac_path_SED_max-0}; then
8641      # Best one so far, save it but keep looking for a better one
8642      ac_cv_path_SED="$ac_path_SED"
8643      ac_path_SED_max=$ac_count
8644    fi
8645    # 10*(2^10) chars as input seems more than enough
8646    test $ac_count -gt 10 && break
8647  done
8648  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8649esac
8650
8651      $ac_path_SED_found && break 3
8652    done
8653  done
8654  done
8655IFS=$as_save_IFS
8656  if test -z "$ac_cv_path_SED"; then
8657    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8658  fi
8659else
8660  ac_cv_path_SED=$SED
8661fi
8662
8663fi
8664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8665$as_echo "$ac_cv_path_SED" >&6; }
8666 SED="$ac_cv_path_SED"
8667  rm -f conftest.sed
8668
8669for ac_prog in gawk mawk nawk awk
8670do
8671  # Extract the first word of "$ac_prog", so it can be a program name with args.
8672set dummy $ac_prog; ac_word=$2
8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674$as_echo_n "checking for $ac_word... " >&6; }
8675if ${ac_cv_prog_AWK+:} false; then :
8676  $as_echo_n "(cached) " >&6
8677else
8678  if test -n "$AWK"; then
8679  ac_cv_prog_AWK="$AWK" # Let the user override the test.
8680else
8681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682for as_dir in $PATH
8683do
8684  IFS=$as_save_IFS
8685  test -z "$as_dir" && as_dir=.
8686    for ac_exec_ext in '' $ac_executable_extensions; do
8687  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688    ac_cv_prog_AWK="$ac_prog"
8689    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690    break 2
8691  fi
8692done
8693  done
8694IFS=$as_save_IFS
8695
8696fi
8697fi
8698AWK=$ac_cv_prog_AWK
8699if test -n "$AWK"; then
8700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8701$as_echo "$AWK" >&6; }
8702else
8703  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704$as_echo "no" >&6; }
8705fi
8706
8707
8708  test -n "$AWK" && break
8709done
8710
8711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8712$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8713
8714# Check whether --with-dmalloc was given.
8715if test "${with_dmalloc+set}" = set; then :
8716  withval=$with_dmalloc; if test "$withval" = yes; then
8717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8718$as_echo "yes" >&6; }
8719
8720$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8721
8722  LIBS="$LIBS -ldmalloc"
8723  LDFLAGS="$LDFLAGS -g"
8724else
8725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726$as_echo "no" >&6; }
8727fi
8728else
8729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730$as_echo "no" >&6; }
8731fi
8732
8733
8734
8735  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8736$as_echo_n "checking for __attribute__... " >&6; }
8737if ${ax_cv___attribute__+:} false; then :
8738  $as_echo_n "(cached) " >&6
8739else
8740  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741/* end confdefs.h.  */
8742#include <stdlib.h>
8743	  static void foo(void) __attribute__ ((unused));
8744	  static void
8745	  foo(void) {
8746	      exit(1);
8747	  }
8748
8749int
8750main ()
8751{
8752
8753  ;
8754  return 0;
8755}
8756_ACEOF
8757if ac_fn_c_try_compile "$LINENO"; then :
8758  ax_cv___attribute__=yes
8759else
8760  ax_cv___attribute__=no
8761
8762fi
8763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764
8765fi
8766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8767$as_echo "$ax_cv___attribute__" >&6; }
8768  if test "$ax_cv___attribute__" = "yes"; then
8769
8770$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8771
8772  fi
8773
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
8775$as_echo_n "checking for C compiler vendor... " >&6; }
8776if ${ax_cv_c_compiler_vendor+:} false; then :
8777  $as_echo_n "(cached) " >&6
8778else
8779    # note: don't check for gcc first since some other compilers define __GNUC__
8780  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
8781           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
8782           pathscale: __PATHCC__,__PATHSCALE__
8783           clang:     __clang__
8784           cray:      _CRAYC
8785           fujitsu:   __FUJITSU
8786           gnu:       __GNUC__
8787           sun:       __SUNPRO_C,__SUNPRO_CC
8788           hp:        __HP_cc,__HP_aCC
8789           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8790           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
8791           comeau:    __COMO__
8792           kai:       __KCC
8793           lcc:       __LCC__
8794           sgi:       __sgi,sgi
8795           microsoft: _MSC_VER
8796           metrowerks: __MWERKS__
8797           watcom:    __WATCOMC__
8798           portland:  __PGI
8799	   tcc:       __TINYC__
8800           unknown:   UNKNOWN"
8801  for ventest in $vendors; do
8802    case $ventest in
8803      *:) vendor=$ventest; continue ;;
8804      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8805    esac
8806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808
8809int
8810main ()
8811{
8812
8813      #if !($vencpp)
8814        thisisanerror;
8815      #endif
8816
8817  ;
8818  return 0;
8819}
8820_ACEOF
8821if ac_fn_c_try_compile "$LINENO"; then :
8822  break
8823fi
8824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825  done
8826  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8827
8828fi
8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8830$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8831
8832
8833
8834
8835
8836
8837
8838# Check whether --with-gcc-arch was given.
8839if test "${with_gcc_arch+set}" = set; then :
8840  withval=$with_gcc_arch; ax_gcc_arch=$withval
8841else
8842  ax_gcc_arch=yes
8843fi
8844
8845
8846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8847$as_echo_n "checking for gcc architecture flag... " >&6; }
8848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8849$as_echo "" >&6; }
8850if ${ax_cv_gcc_archflag+:} false; then :
8851  $as_echo_n "(cached) " >&6
8852else
8853
8854ax_cv_gcc_archflag="unknown"
8855
8856if test "$GCC" = yes; then
8857
8858if test "x$ax_gcc_arch" = xyes; then
8859ax_gcc_arch=""
8860if test "$cross_compiling" = no; then
8861case $host_cpu in
8862  i[3456]86*|x86_64*|amd64*) # use cpuid codes
8863
8864ac_ext=c
8865ac_cpp='$CPP $CPPFLAGS'
8866ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869
8870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8871$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8872if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8873  $as_echo_n "(cached) " >&6
8874else
8875  if test "$cross_compiling" = yes; then :
8876  ax_cv_gcc_x86_cpuid_0=unknown
8877else
8878  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8879/* end confdefs.h.  */
8880#include <stdio.h>
8881int
8882main ()
8883{
8884
8885     int op = 0, level = 0, eax, ebx, ecx, edx;
8886     FILE *f;
8887      __asm__ __volatile__ ("cpuid"
8888        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8889        : "a" (op), "2" (level));
8890
8891     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8892     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8893     fclose(f);
8894     return 0;
8895
8896  ;
8897  return 0;
8898}
8899_ACEOF
8900if ac_fn_c_try_run "$LINENO"; then :
8901  ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8902else
8903  ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8904fi
8905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8906  conftest.$ac_objext conftest.beam conftest.$ac_ext
8907fi
8908
8909fi
8910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8911$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8912ac_ext=c
8913ac_cpp='$CPP $CPPFLAGS'
8914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8916ac_compiler_gnu=$ac_cv_c_compiler_gnu
8917
8918
8919
8920
8921ac_ext=c
8922ac_cpp='$CPP $CPPFLAGS'
8923ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8924ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8925ac_compiler_gnu=$ac_cv_c_compiler_gnu
8926
8927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8928$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8929if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8930  $as_echo_n "(cached) " >&6
8931else
8932  if test "$cross_compiling" = yes; then :
8933  ax_cv_gcc_x86_cpuid_1=unknown
8934else
8935  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936/* end confdefs.h.  */
8937#include <stdio.h>
8938int
8939main ()
8940{
8941
8942     int op = 1, level = 0, eax, ebx, ecx, edx;
8943     FILE *f;
8944      __asm__ __volatile__ ("cpuid"
8945        : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8946        : "a" (op), "2" (level));
8947
8948     f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8949     fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8950     fclose(f);
8951     return 0;
8952
8953  ;
8954  return 0;
8955}
8956_ACEOF
8957if ac_fn_c_try_run "$LINENO"; then :
8958  ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8959else
8960  ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8961fi
8962rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8963  conftest.$ac_objext conftest.beam conftest.$ac_ext
8964fi
8965
8966fi
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8968$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8969ac_ext=c
8970ac_cpp='$CPP $CPPFLAGS'
8971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975
8976
8977     case $ax_cv_gcc_x86_cpuid_0 in
8978       *:756e6547:6c65746e:49656e69) # Intel
8979          case $ax_cv_gcc_x86_cpuid_1 in
8980	    *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8981	    *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
8982	    *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
8983	    *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8984	    *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8985	    *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8986	    *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
8987	    *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8988	    *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8989	    *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
8990	    *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
8991	    *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8992	    *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8993	    *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8994	    *3?6d?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8995	    *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
8996	    *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
8997	    *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
8998	    *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
8999	    # fallback
9000	    *5??:*:*:*) ax_gcc_arch=pentium ;;
9001	    *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
9002	    *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
9003	    *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
9004          esac ;;
9005       *:68747541:444d4163:69746e65) # AMD
9006          case $ax_cv_gcc_x86_cpuid_1 in
9007	    *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
9008	    *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
9009	    *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
9010	    *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
9011	    *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
9012	    *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
9013	    *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
9014	    *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9015	    *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9016	    *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9017	    *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9018	    *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9019	    *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9020	    *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9021	    # fallback
9022	    *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
9023	    *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
9024	    *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
9025	    *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
9026	    *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
9027	    *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
9028	    *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
9029	    *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
9030          esac ;;
9031	*:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
9032	   case $ax_cv_gcc_x86_cpuid_1 in
9033	     *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
9034	     *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
9035	     *66?:*:*:*) ax_gcc_arch=winchip2 ;;
9036	     *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
9037	     *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
9038	   esac ;;
9039     esac
9040     if test x"$ax_gcc_arch" = x; then # fallback
9041	case $host_cpu in
9042	  i586*) ax_gcc_arch=pentium ;;
9043	  i686*) ax_gcc_arch=pentiumpro ;;
9044        esac
9045     fi
9046     ;;
9047
9048  sparc*)
9049     # Extract the first word of "prtdiag", so it can be a program name with args.
9050set dummy prtdiag; ac_word=$2
9051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052$as_echo_n "checking for $ac_word... " >&6; }
9053if ${ac_cv_path_PRTDIAG+:} false; then :
9054  $as_echo_n "(cached) " >&6
9055else
9056  case $PRTDIAG in
9057  [\\/]* | ?:[\\/]*)
9058  ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
9059  ;;
9060  *)
9061  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
9063for as_dir in $as_dummy
9064do
9065  IFS=$as_save_IFS
9066  test -z "$as_dir" && as_dir=.
9067    for ac_exec_ext in '' $ac_executable_extensions; do
9068  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9069    ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
9070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9071    break 2
9072  fi
9073done
9074  done
9075IFS=$as_save_IFS
9076
9077  test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
9078  ;;
9079esac
9080fi
9081PRTDIAG=$ac_cv_path_PRTDIAG
9082if test -n "$PRTDIAG"; then
9083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
9084$as_echo "$PRTDIAG" >&6; }
9085else
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087$as_echo "no" >&6; }
9088fi
9089
9090
9091     cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
9092     cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
9093     case $cputype in
9094         *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
9095         *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
9096         *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
9097         *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
9098         *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
9099         *cypress*) ax_gcc_arch=cypress ;;
9100     esac ;;
9101
9102  alphaev5) ax_gcc_arch=ev5 ;;
9103  alphaev56) ax_gcc_arch=ev56 ;;
9104  alphapca56) ax_gcc_arch="pca56 ev56" ;;
9105  alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
9106  alphaev6) ax_gcc_arch=ev6 ;;
9107  alphaev67) ax_gcc_arch=ev67 ;;
9108  alphaev68) ax_gcc_arch="ev68 ev67" ;;
9109  alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
9110  alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
9111  alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
9112
9113  powerpc*)
9114     cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
9115     cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
9116     case $cputype in
9117       *750*) ax_gcc_arch="750 G3" ;;
9118       *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
9119       *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
9120       *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
9121       *970*) ax_gcc_arch="970 G5 power4";;
9122       *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
9123       *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
9124       603ev|8240) ax_gcc_arch="$cputype 603e 603";;
9125       *) ax_gcc_arch=$cputype ;;
9126     esac
9127     ax_gcc_arch="$ax_gcc_arch powerpc"
9128     ;;
9129esac
9130fi # not cross-compiling
9131fi # guess arch
9132
9133if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
9134if test "xyes" = xyes; then # if we require portable code
9135  flag_prefixes="-mtune="
9136  if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
9137  # -mcpu=$arch and m$arch generate nonportable code on every arch except
9138  # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
9139  case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
9140else
9141  flag_prefixes="-march= -mcpu= -m"
9142fi
9143for flag_prefix in $flag_prefixes; do
9144  for arch in $ax_gcc_arch; do
9145    flag="$flag_prefix$arch"
9146    as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
9147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9148$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9149if eval \${$as_CACHEVAR+:} false; then :
9150  $as_echo_n "(cached) " >&6
9151else
9152
9153  ax_check_save_flags=$CFLAGS
9154  CFLAGS="$CFLAGS  $flag"
9155  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9156/* end confdefs.h.  */
9157
9158int
9159main ()
9160{
9161
9162  ;
9163  return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_compile "$LINENO"; then :
9167  eval "$as_CACHEVAR=yes"
9168else
9169  eval "$as_CACHEVAR=no"
9170fi
9171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9172  CFLAGS=$ax_check_save_flags
9173fi
9174eval ac_res=\$$as_CACHEVAR
9175	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9176$as_echo "$ac_res" >&6; }
9177if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9178  if test "x$ax_cv_c_compiler_vendor" = xclang; then
9179      if test "xyes" = xyes; then
9180	if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
9181      fi
9182    fi; ax_cv_gcc_archflag=$flag; break
9183else
9184  :
9185fi
9186
9187  done
9188  test "x$ax_cv_gcc_archflag" = xunknown || break
9189done
9190fi
9191
9192fi # $GCC=yes
9193
9194fi
9195
9196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
9197$as_echo_n "checking for gcc architecture flag... " >&6; }
9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
9199$as_echo "$ax_cv_gcc_archflag" >&6; }
9200if test "x$ax_cv_gcc_archflag" = xunknown; then
9201  :
9202else
9203  CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
9204fi
9205
9206
9207
9208
9209
9210
9211
9212
9213if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9214	if test -n "$ac_tool_prefix"; then
9215  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
9216set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9218$as_echo_n "checking for $ac_word... " >&6; }
9219if ${ac_cv_path_PKG_CONFIG+:} false; then :
9220  $as_echo_n "(cached) " >&6
9221else
9222  case $PKG_CONFIG in
9223  [\\/]* | ?:[\\/]*)
9224  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9225  ;;
9226  *)
9227  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9228for as_dir in $PATH
9229do
9230  IFS=$as_save_IFS
9231  test -z "$as_dir" && as_dir=.
9232    for ac_exec_ext in '' $ac_executable_extensions; do
9233  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9234    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9235    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9236    break 2
9237  fi
9238done
9239  done
9240IFS=$as_save_IFS
9241
9242  ;;
9243esac
9244fi
9245PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9246if test -n "$PKG_CONFIG"; then
9247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
9248$as_echo "$PKG_CONFIG" >&6; }
9249else
9250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9251$as_echo "no" >&6; }
9252fi
9253
9254
9255fi
9256if test -z "$ac_cv_path_PKG_CONFIG"; then
9257  ac_pt_PKG_CONFIG=$PKG_CONFIG
9258  # Extract the first word of "pkg-config", so it can be a program name with args.
9259set dummy pkg-config; ac_word=$2
9260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9261$as_echo_n "checking for $ac_word... " >&6; }
9262if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
9263  $as_echo_n "(cached) " >&6
9264else
9265  case $ac_pt_PKG_CONFIG in
9266  [\\/]* | ?:[\\/]*)
9267  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
9268  ;;
9269  *)
9270  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271for as_dir in $PATH
9272do
9273  IFS=$as_save_IFS
9274  test -z "$as_dir" && as_dir=.
9275    for ac_exec_ext in '' $ac_executable_extensions; do
9276  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9277    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9278    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9279    break 2
9280  fi
9281done
9282  done
9283IFS=$as_save_IFS
9284
9285  ;;
9286esac
9287fi
9288ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
9289if test -n "$ac_pt_PKG_CONFIG"; then
9290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
9291$as_echo "$ac_pt_PKG_CONFIG" >&6; }
9292else
9293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9294$as_echo "no" >&6; }
9295fi
9296
9297  if test "x$ac_pt_PKG_CONFIG" = x; then
9298    PKG_CONFIG=""
9299  else
9300    case $cross_compiling:$ac_tool_warned in
9301yes:)
9302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9304ac_tool_warned=yes ;;
9305esac
9306    PKG_CONFIG=$ac_pt_PKG_CONFIG
9307  fi
9308else
9309  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
9310fi
9311
9312fi
9313if test -n "$PKG_CONFIG"; then
9314	_pkg_min_version=0.20
9315	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
9316$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
9317	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9318		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9319$as_echo "yes" >&6; }
9320	else
9321		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9322$as_echo "no" >&6; }
9323		PKG_CONFIG=""
9324	fi
9325fi
9326
9327
9328
9329# Test for 64-bit build.
9330# The cast to long int works around a bug in the HP C Compiler
9331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9333# This bug is HP SR number 8606223364.
9334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
9335$as_echo_n "checking size of size_t... " >&6; }
9336if ${ac_cv_sizeof_size_t+:} false; then :
9337  $as_echo_n "(cached) " >&6
9338else
9339  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
9340
9341else
9342  if test "$ac_cv_type_size_t" = yes; then
9343     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9345as_fn_error 77 "cannot compute sizeof (size_t)
9346See \`config.log' for more details" "$LINENO" 5; }
9347   else
9348     ac_cv_sizeof_size_t=0
9349   fi
9350fi
9351
9352fi
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
9354$as_echo "$ac_cv_sizeof_size_t" >&6; }
9355
9356
9357
9358cat >>confdefs.h <<_ACEOF
9359#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
9360_ACEOF
9361
9362
9363
9364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
9365$as_echo_n "checking for C compiler vendor... " >&6; }
9366if ${ax_cv_c_compiler_vendor+:} false; then :
9367  $as_echo_n "(cached) " >&6
9368else
9369    # note: don't check for gcc first since some other compilers define __GNUC__
9370  vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
9371           ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
9372           pathscale: __PATHCC__,__PATHSCALE__
9373           clang:     __clang__
9374           cray:      _CRAYC
9375           fujitsu:   __FUJITSU
9376           gnu:       __GNUC__
9377           sun:       __SUNPRO_C,__SUNPRO_CC
9378           hp:        __HP_cc,__HP_aCC
9379           dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
9380           borland:   __BORLANDC__,__CODEGEARC__,__TURBOC__
9381           comeau:    __COMO__
9382           kai:       __KCC
9383           lcc:       __LCC__
9384           sgi:       __sgi,sgi
9385           microsoft: _MSC_VER
9386           metrowerks: __MWERKS__
9387           watcom:    __WATCOMC__
9388           portland:  __PGI
9389	   tcc:       __TINYC__
9390           unknown:   UNKNOWN"
9391  for ventest in $vendors; do
9392    case $ventest in
9393      *:) vendor=$ventest; continue ;;
9394      *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
9395    esac
9396    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9397/* end confdefs.h.  */
9398
9399int
9400main ()
9401{
9402
9403      #if !($vencpp)
9404        thisisanerror;
9405      #endif
9406
9407  ;
9408  return 0;
9409}
9410_ACEOF
9411if ac_fn_c_try_compile "$LINENO"; then :
9412  break
9413fi
9414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9415  done
9416  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
9417
9418fi
9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
9420$as_echo "$ax_cv_c_compiler_vendor" >&6; }
9421
9422
9423
9424    # C support is enabled by default.
9425
9426
9427    # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
9428    # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
9429    # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
9430    # checked.
9431
9432
9433
9434
9435
9436    # Default value for IS-RELEASE is $ax_is_release
9437    ax_compiler_flags_is_release=$ax_is_release
9438
9439    # Check whether --enable-compile-warnings was given.
9440if test "${enable_compile_warnings+set}" = set; then :
9441  enableval=$enable_compile_warnings;
9442else
9443  if test "$ax_compiler_flags_is_release" = "yes"; then :
9444  enable_compile_warnings="yes"
9445else
9446  enable_compile_warnings="error"
9447fi
9448fi
9449
9450    # Check whether --enable-Werror was given.
9451if test "${enable_Werror+set}" = set; then :
9452  enableval=$enable_Werror;
9453else
9454  enable_Werror=maybe
9455fi
9456
9457
9458    # Return the user's chosen warning level
9459    if test "$enable_Werror" = "no" -a \
9460                "$enable_compile_warnings" = "error"; then :
9461
9462        enable_compile_warnings="yes"
9463
9464fi
9465
9466    ax_enable_compile_warnings=$enable_compile_warnings
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477    # Variable names
9478
9479
9480    ac_ext=c
9481ac_cpp='$CPP $CPPFLAGS'
9482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9484ac_compiler_gnu=$ac_cv_c_compiler_gnu
9485
9486
9487    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
9488    # flags, otherwise they are always appended to the warn_cflags variable, and
9489    # Clang warns on them for every compilation unit.
9490    # If this is passed to GCC, it will explode, so the flag must be enabled
9491    # conditionally.
9492    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
9493$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
9494if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
9495  $as_echo_n "(cached) " >&6
9496else
9497
9498  ax_check_save_flags=$CFLAGS
9499  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
9500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9501/* end confdefs.h.  */
9502
9503int
9504main ()
9505{
9506
9507  ;
9508  return 0;
9509}
9510_ACEOF
9511if ac_fn_c_try_compile "$LINENO"; then :
9512  ax_cv_check_cflags___Werror_unknown_warning_option=yes
9513else
9514  ax_cv_check_cflags___Werror_unknown_warning_option=no
9515fi
9516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9517  CFLAGS=$ax_check_save_flags
9518fi
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
9520$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
9521if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
9522
9523        ax_compiler_flags_test="-Werror=unknown-warning-option"
9524
9525else
9526
9527        ax_compiler_flags_test=""
9528
9529fi
9530
9531
9532    # Base flags
9533
9534
9535
9536
9537for flag in          -fno-strict-aliasing              ; do
9538  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9540$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9541if eval \${$as_CACHEVAR+:} false; then :
9542  $as_echo_n "(cached) " >&6
9543else
9544
9545  ax_check_save_flags=$CFLAGS
9546  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548/* end confdefs.h.  */
9549
9550int
9551main ()
9552{
9553
9554  ;
9555  return 0;
9556}
9557_ACEOF
9558if ac_fn_c_try_compile "$LINENO"; then :
9559  eval "$as_CACHEVAR=yes"
9560else
9561  eval "$as_CACHEVAR=no"
9562fi
9563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9564  CFLAGS=$ax_check_save_flags
9565fi
9566eval ac_res=\$$as_CACHEVAR
9567	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9568$as_echo "$ac_res" >&6; }
9569if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9570
9571if ${WARN_CFLAGS+:} false; then :
9572
9573  case " $WARN_CFLAGS " in #(
9574  *" $flag "*) :
9575    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9576  (: WARN_CFLAGS already contains $flag) 2>&5
9577  ac_status=$?
9578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579  test $ac_status = 0; } ;; #(
9580  *) :
9581
9582     as_fn_append WARN_CFLAGS " $flag"
9583     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9584  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9585  ac_status=$?
9586  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9587  test $ac_status = 0; }
9588     ;;
9589esac
9590
9591else
9592
9593  WARN_CFLAGS=$flag
9594  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9595  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9596  ac_status=$?
9597  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9598  test $ac_status = 0; }
9599
9600fi
9601
9602else
9603  :
9604fi
9605
9606done
9607
9608
9609    if test "$ax_enable_compile_warnings" != "no"; then :
9610
9611        # "yes" flags
9612
9613
9614
9615
9616for flag in              -Wall             -Wextra             -Wundef             -Wnested-externs             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wmissing-prototypes             -Wstrict-prototypes             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wdeclaration-after-statement             -Wformat=2             -Wold-style-definition             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wimplicit-function-declaration             -Wreturn-type             -Wswitch-enum             -Wswitch-default                                                                ; do
9617  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9619$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9620if eval \${$as_CACHEVAR+:} false; then :
9621  $as_echo_n "(cached) " >&6
9622else
9623
9624  ax_check_save_flags=$CFLAGS
9625  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9626  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9627/* end confdefs.h.  */
9628
9629int
9630main ()
9631{
9632
9633  ;
9634  return 0;
9635}
9636_ACEOF
9637if ac_fn_c_try_compile "$LINENO"; then :
9638  eval "$as_CACHEVAR=yes"
9639else
9640  eval "$as_CACHEVAR=no"
9641fi
9642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9643  CFLAGS=$ax_check_save_flags
9644fi
9645eval ac_res=\$$as_CACHEVAR
9646	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9647$as_echo "$ac_res" >&6; }
9648if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9649
9650if ${WARN_CFLAGS+:} false; then :
9651
9652  case " $WARN_CFLAGS " in #(
9653  *" $flag "*) :
9654    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9655  (: WARN_CFLAGS already contains $flag) 2>&5
9656  ac_status=$?
9657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9658  test $ac_status = 0; } ;; #(
9659  *) :
9660
9661     as_fn_append WARN_CFLAGS " $flag"
9662     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9663  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9664  ac_status=$?
9665  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9666  test $ac_status = 0; }
9667     ;;
9668esac
9669
9670else
9671
9672  WARN_CFLAGS=$flag
9673  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9674  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9675  ac_status=$?
9676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9677  test $ac_status = 0; }
9678
9679fi
9680
9681else
9682  :
9683fi
9684
9685done
9686
9687
9688fi
9689    if test "$ax_enable_compile_warnings" = "error"; then :
9690
9691        # "error" flags; -Werror has to be appended unconditionally because
9692        # it's not possible to test for
9693        #
9694        # suggest-attribute=format is disabled because it gives too many false
9695        # positives
9696
9697if ${WARN_CFLAGS+:} false; then :
9698
9699  case " $WARN_CFLAGS " in #(
9700  *" -Werror "*) :
9701    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
9702  (: WARN_CFLAGS already contains -Werror) 2>&5
9703  ac_status=$?
9704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9705  test $ac_status = 0; } ;; #(
9706  *) :
9707
9708     as_fn_append WARN_CFLAGS " -Werror"
9709     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9710  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9711  ac_status=$?
9712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9713  test $ac_status = 0; }
9714     ;;
9715esac
9716
9717else
9718
9719  WARN_CFLAGS=-Werror
9720  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9721  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9722  ac_status=$?
9723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9724  test $ac_status = 0; }
9725
9726fi
9727
9728
9729
9730
9731
9732
9733for flag in              -Wno-suggest-attribute=format         ; do
9734  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9736$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9737if eval \${$as_CACHEVAR+:} false; then :
9738  $as_echo_n "(cached) " >&6
9739else
9740
9741  ax_check_save_flags=$CFLAGS
9742  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9743  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744/* end confdefs.h.  */
9745
9746int
9747main ()
9748{
9749
9750  ;
9751  return 0;
9752}
9753_ACEOF
9754if ac_fn_c_try_compile "$LINENO"; then :
9755  eval "$as_CACHEVAR=yes"
9756else
9757  eval "$as_CACHEVAR=no"
9758fi
9759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9760  CFLAGS=$ax_check_save_flags
9761fi
9762eval ac_res=\$$as_CACHEVAR
9763	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9764$as_echo "$ac_res" >&6; }
9765if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9766
9767if ${WARN_CFLAGS+:} false; then :
9768
9769  case " $WARN_CFLAGS " in #(
9770  *" $flag "*) :
9771    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9772  (: WARN_CFLAGS already contains $flag) 2>&5
9773  ac_status=$?
9774  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9775  test $ac_status = 0; } ;; #(
9776  *) :
9777
9778     as_fn_append WARN_CFLAGS " $flag"
9779     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9780  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9781  ac_status=$?
9782  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9783  test $ac_status = 0; }
9784     ;;
9785esac
9786
9787else
9788
9789  WARN_CFLAGS=$flag
9790  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9791  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9792  ac_status=$?
9793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9794  test $ac_status = 0; }
9795
9796fi
9797
9798else
9799  :
9800fi
9801
9802done
9803
9804
9805fi
9806
9807    # In the flags below, when disabling specific flags, always add *both*
9808    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
9809    # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
9810    # which effectively turns that flag back on again as an error.
9811    for flag in $WARN_CFLAGS; do
9812        case $flag in #(
9813  -Wno-*=*) :
9814     ;; #(
9815  -Wno-*) :
9816
9817
9818
9819
9820
9821for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
9822  as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
9824$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
9825if eval \${$as_CACHEVAR+:} false; then :
9826  $as_echo_n "(cached) " >&6
9827else
9828
9829  ax_check_save_flags=$CFLAGS
9830  CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
9831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9832/* end confdefs.h.  */
9833
9834int
9835main ()
9836{
9837
9838  ;
9839  return 0;
9840}
9841_ACEOF
9842if ac_fn_c_try_compile "$LINENO"; then :
9843  eval "$as_CACHEVAR=yes"
9844else
9845  eval "$as_CACHEVAR=no"
9846fi
9847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9848  CFLAGS=$ax_check_save_flags
9849fi
9850eval ac_res=\$$as_CACHEVAR
9851	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9852$as_echo "$ac_res" >&6; }
9853if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
9854
9855if ${WARN_CFLAGS+:} false; then :
9856
9857  case " $WARN_CFLAGS " in #(
9858  *" $flag "*) :
9859    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
9860  (: WARN_CFLAGS already contains $flag) 2>&5
9861  ac_status=$?
9862  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9863  test $ac_status = 0; } ;; #(
9864  *) :
9865
9866     as_fn_append WARN_CFLAGS " $flag"
9867     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9868  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9869  ac_status=$?
9870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871  test $ac_status = 0; }
9872     ;;
9873esac
9874
9875else
9876
9877  WARN_CFLAGS=$flag
9878  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
9879  (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
9880  ac_status=$?
9881  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9882  test $ac_status = 0; }
9883
9884fi
9885
9886else
9887  :
9888fi
9889
9890done
9891
9892                 ;; #(
9893  *) :
9894     ;;
9895esac
9896    done
9897
9898    ac_ext=c
9899ac_cpp='$CPP $CPPFLAGS'
9900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9902ac_compiler_gnu=$ac_cv_c_compiler_gnu
9903
9904
9905    # Substitute the variables
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917    # Variable names
9918
9919
9920    ac_ext=cpp
9921ac_cpp='$CXXCPP $CPPFLAGS'
9922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9925
9926
9927    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
9928    # flags, otherwise they are always appended to the warn_cxxflags variable,
9929    # and Clang warns on them for every compilation unit.
9930    # If this is passed to GCC, it will explode, so the flag must be enabled
9931    # conditionally.
9932    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Werror=unknown-warning-option" >&5
9933$as_echo_n "checking whether C++ compiler accepts -Werror=unknown-warning-option... " >&6; }
9934if ${ax_cv_check_cxxflags___Werror_unknown_warning_option+:} false; then :
9935  $as_echo_n "(cached) " >&6
9936else
9937
9938  ax_check_save_flags=$CXXFLAGS
9939  CXXFLAGS="$CXXFLAGS  -Werror=unknown-warning-option"
9940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942
9943int
9944main ()
9945{
9946
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951if ac_fn_cxx_try_compile "$LINENO"; then :
9952  ax_cv_check_cxxflags___Werror_unknown_warning_option=yes
9953else
9954  ax_cv_check_cxxflags___Werror_unknown_warning_option=no
9955fi
9956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9957  CXXFLAGS=$ax_check_save_flags
9958fi
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags___Werror_unknown_warning_option" >&5
9960$as_echo "$ax_cv_check_cxxflags___Werror_unknown_warning_option" >&6; }
9961if test "x$ax_cv_check_cxxflags___Werror_unknown_warning_option" = xyes; then :
9962
9963        ax_compiler_flags_test="-Werror=unknown-warning-option"
9964
9965else
9966
9967        ax_compiler_flags_test=""
9968
9969fi
9970
9971
9972    # Base flags
9973
9974
9975
9976
9977for flag in          -fno-strict-aliasing              ; do
9978  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
9979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
9980$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
9981if eval \${$as_CACHEVAR+:} false; then :
9982  $as_echo_n "(cached) " >&6
9983else
9984
9985  ax_check_save_flags=$CXXFLAGS
9986  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
9987  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9988/* end confdefs.h.  */
9989
9990int
9991main ()
9992{
9993
9994  ;
9995  return 0;
9996}
9997_ACEOF
9998if ac_fn_cxx_try_compile "$LINENO"; then :
9999  eval "$as_CACHEVAR=yes"
10000else
10001  eval "$as_CACHEVAR=no"
10002fi
10003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10004  CXXFLAGS=$ax_check_save_flags
10005fi
10006eval ac_res=\$$as_CACHEVAR
10007	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10008$as_echo "$ac_res" >&6; }
10009if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10010
10011if ${WARN_CXXFLAGS+:} false; then :
10012
10013  case " $WARN_CXXFLAGS " in #(
10014  *" $flag "*) :
10015    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10016  (: WARN_CXXFLAGS already contains $flag) 2>&5
10017  ac_status=$?
10018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019  test $ac_status = 0; } ;; #(
10020  *) :
10021
10022     as_fn_append WARN_CXXFLAGS " $flag"
10023     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10024  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10025  ac_status=$?
10026  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10027  test $ac_status = 0; }
10028     ;;
10029esac
10030
10031else
10032
10033  WARN_CXXFLAGS=$flag
10034  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10035  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10036  ac_status=$?
10037  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038  test $ac_status = 0; }
10039
10040fi
10041
10042else
10043  :
10044fi
10045
10046done
10047
10048
10049    if test "$ax_enable_compile_warnings" != "no"; then :
10050
10051        # "yes" flags
10052
10053
10054
10055
10056for flag in              -Wall             -Wextra             -Wundef             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wformat=2             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wreturn-type             -Wno-overloaded-virtual             -Wswitch-enum             -Wswitch-default                                                                ; do
10057  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10059$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
10060if eval \${$as_CACHEVAR+:} false; then :
10061  $as_echo_n "(cached) " >&6
10062else
10063
10064  ax_check_save_flags=$CXXFLAGS
10065  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
10066  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10067/* end confdefs.h.  */
10068
10069int
10070main ()
10071{
10072
10073  ;
10074  return 0;
10075}
10076_ACEOF
10077if ac_fn_cxx_try_compile "$LINENO"; then :
10078  eval "$as_CACHEVAR=yes"
10079else
10080  eval "$as_CACHEVAR=no"
10081fi
10082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10083  CXXFLAGS=$ax_check_save_flags
10084fi
10085eval ac_res=\$$as_CACHEVAR
10086	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10087$as_echo "$ac_res" >&6; }
10088if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10089
10090if ${WARN_CXXFLAGS+:} false; then :
10091
10092  case " $WARN_CXXFLAGS " in #(
10093  *" $flag "*) :
10094    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10095  (: WARN_CXXFLAGS already contains $flag) 2>&5
10096  ac_status=$?
10097  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098  test $ac_status = 0; } ;; #(
10099  *) :
10100
10101     as_fn_append WARN_CXXFLAGS " $flag"
10102     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10103  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10104  ac_status=$?
10105  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106  test $ac_status = 0; }
10107     ;;
10108esac
10109
10110else
10111
10112  WARN_CXXFLAGS=$flag
10113  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10114  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10115  ac_status=$?
10116  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10117  test $ac_status = 0; }
10118
10119fi
10120
10121else
10122  :
10123fi
10124
10125done
10126
10127
10128fi
10129    if test "$ax_enable_compile_warnings" = "error"; then :
10130
10131        # "error" flags; -Werror has to be appended unconditionally because
10132        # it's not possible to test for
10133        #
10134        # suggest-attribute=format is disabled because it gives too many false
10135        # positives
10136
10137if ${WARN_CXXFLAGS+:} false; then :
10138
10139  case " $WARN_CXXFLAGS " in #(
10140  *" -Werror "*) :
10141    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains -Werror"; } >&5
10142  (: WARN_CXXFLAGS already contains -Werror) 2>&5
10143  ac_status=$?
10144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10145  test $ac_status = 0; } ;; #(
10146  *) :
10147
10148     as_fn_append WARN_CXXFLAGS " -Werror"
10149     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10150  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10151  ac_status=$?
10152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10153  test $ac_status = 0; }
10154     ;;
10155esac
10156
10157else
10158
10159  WARN_CXXFLAGS=-Werror
10160  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10161  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10162  ac_status=$?
10163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10164  test $ac_status = 0; }
10165
10166fi
10167
10168
10169
10170
10171
10172
10173for flag in              -Wno-suggest-attribute=format         ; do
10174  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10176$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
10177if eval \${$as_CACHEVAR+:} false; then :
10178  $as_echo_n "(cached) " >&6
10179else
10180
10181  ax_check_save_flags=$CXXFLAGS
10182  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
10183  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184/* end confdefs.h.  */
10185
10186int
10187main ()
10188{
10189
10190  ;
10191  return 0;
10192}
10193_ACEOF
10194if ac_fn_cxx_try_compile "$LINENO"; then :
10195  eval "$as_CACHEVAR=yes"
10196else
10197  eval "$as_CACHEVAR=no"
10198fi
10199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10200  CXXFLAGS=$ax_check_save_flags
10201fi
10202eval ac_res=\$$as_CACHEVAR
10203	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10204$as_echo "$ac_res" >&6; }
10205if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10206
10207if ${WARN_CXXFLAGS+:} false; then :
10208
10209  case " $WARN_CXXFLAGS " in #(
10210  *" $flag "*) :
10211    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10212  (: WARN_CXXFLAGS already contains $flag) 2>&5
10213  ac_status=$?
10214  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10215  test $ac_status = 0; } ;; #(
10216  *) :
10217
10218     as_fn_append WARN_CXXFLAGS " $flag"
10219     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10220  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10221  ac_status=$?
10222  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10223  test $ac_status = 0; }
10224     ;;
10225esac
10226
10227else
10228
10229  WARN_CXXFLAGS=$flag
10230  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10231  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10232  ac_status=$?
10233  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10234  test $ac_status = 0; }
10235
10236fi
10237
10238else
10239  :
10240fi
10241
10242done
10243
10244
10245fi
10246
10247    # In the flags below, when disabling specific flags, always add *both*
10248    # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
10249    # we enable -Werror, disable a flag, and a build bot passes CXXFLAGS=-Wall,
10250    # which effectively turns that flag back on again as an error.
10251    for flag in $WARN_CXXFLAGS; do
10252        case $flag in #(
10253  -Wno-*=*) :
10254     ;; #(
10255  -Wno-*) :
10256
10257
10258
10259
10260
10261for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
10262  as_CACHEVAR=`$as_echo "ax_cv_check_cxxflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts $flag" >&5
10264$as_echo_n "checking whether C++ compiler accepts $flag... " >&6; }
10265if eval \${$as_CACHEVAR+:} false; then :
10266  $as_echo_n "(cached) " >&6
10267else
10268
10269  ax_check_save_flags=$CXXFLAGS
10270  CXXFLAGS="$CXXFLAGS $ax_compiler_flags_test $flag"
10271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10272/* end confdefs.h.  */
10273
10274int
10275main ()
10276{
10277
10278  ;
10279  return 0;
10280}
10281_ACEOF
10282if ac_fn_cxx_try_compile "$LINENO"; then :
10283  eval "$as_CACHEVAR=yes"
10284else
10285  eval "$as_CACHEVAR=no"
10286fi
10287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10288  CXXFLAGS=$ax_check_save_flags
10289fi
10290eval ac_res=\$$as_CACHEVAR
10291	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10292$as_echo "$ac_res" >&6; }
10293if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10294
10295if ${WARN_CXXFLAGS+:} false; then :
10296
10297  case " $WARN_CXXFLAGS " in #(
10298  *" $flag "*) :
10299    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS already contains \$flag"; } >&5
10300  (: WARN_CXXFLAGS already contains $flag) 2>&5
10301  ac_status=$?
10302  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10303  test $ac_status = 0; } ;; #(
10304  *) :
10305
10306     as_fn_append WARN_CXXFLAGS " $flag"
10307     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10308  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10309  ac_status=$?
10310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10311  test $ac_status = 0; }
10312     ;;
10313esac
10314
10315else
10316
10317  WARN_CXXFLAGS=$flag
10318  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CXXFLAGS=\"\$WARN_CXXFLAGS\""; } >&5
10319  (: WARN_CXXFLAGS="$WARN_CXXFLAGS") 2>&5
10320  ac_status=$?
10321  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10322  test $ac_status = 0; }
10323
10324fi
10325
10326else
10327  :
10328fi
10329
10330done
10331
10332                 ;; #(
10333  *) :
10334     ;;
10335esac
10336    done
10337
10338    ac_ext=c
10339ac_cpp='$CPP $CPPFLAGS'
10340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10342ac_compiler_gnu=$ac_cv_c_compiler_gnu
10343
10344
10345    # Substitute the variables
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356    # Variable names
10357
10358
10359    # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
10360    # flags, otherwise they are always appended to the warn_ldflags variable,
10361    # and Clang warns on them for every compilation unit.
10362    # If this is passed to GCC, it will explode, so the flag must be enabled
10363    # conditionally.
10364    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
10365$as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
10366if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
10367  $as_echo_n "(cached) " >&6
10368else
10369
10370  ax_check_save_flags=$CFLAGS
10371  CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
10372  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10373/* end confdefs.h.  */
10374
10375int
10376main ()
10377{
10378
10379  ;
10380  return 0;
10381}
10382_ACEOF
10383if ac_fn_c_try_compile "$LINENO"; then :
10384  ax_cv_check_cflags___Werror_unknown_warning_option=yes
10385else
10386  ax_cv_check_cflags___Werror_unknown_warning_option=no
10387fi
10388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10389  CFLAGS=$ax_check_save_flags
10390fi
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
10392$as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
10393if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
10394
10395        ax_compiler_flags_test="-Werror=unknown-warning-option"
10396
10397else
10398
10399        ax_compiler_flags_test=""
10400
10401fi
10402
10403
10404    # Base flags
10405
10406
10407
10408
10409for flag in          -Wl,--no-as-needed              ; do
10410  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
10412$as_echo_n "checking whether the linker accepts $flag... " >&6; }
10413if eval \${$as_CACHEVAR+:} false; then :
10414  $as_echo_n "(cached) " >&6
10415else
10416
10417  ax_check_save_flags=$LDFLAGS
10418  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
10419  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10420/* end confdefs.h.  */
10421
10422int
10423main ()
10424{
10425
10426  ;
10427  return 0;
10428}
10429_ACEOF
10430if ac_fn_c_try_link "$LINENO"; then :
10431  eval "$as_CACHEVAR=yes"
10432else
10433  eval "$as_CACHEVAR=no"
10434fi
10435rm -f core conftest.err conftest.$ac_objext \
10436    conftest$ac_exeext conftest.$ac_ext
10437  LDFLAGS=$ax_check_save_flags
10438fi
10439eval ac_res=\$$as_CACHEVAR
10440	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10441$as_echo "$ac_res" >&6; }
10442if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10443
10444if ${WARN_LDFLAGS+:} false; then :
10445
10446  case " $WARN_LDFLAGS " in #(
10447  *" $flag "*) :
10448    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
10449  (: WARN_LDFLAGS already contains $flag) 2>&5
10450  ac_status=$?
10451  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10452  test $ac_status = 0; } ;; #(
10453  *) :
10454
10455     as_fn_append WARN_LDFLAGS " $flag"
10456     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10457  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10458  ac_status=$?
10459  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10460  test $ac_status = 0; }
10461     ;;
10462esac
10463
10464else
10465
10466  WARN_LDFLAGS=$flag
10467  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10468  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10469  ac_status=$?
10470  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10471  test $ac_status = 0; }
10472
10473fi
10474
10475else
10476  :
10477fi
10478
10479done
10480
10481
10482    if test "$ax_enable_compile_warnings" != "no"; then :
10483
10484        # "yes" flags
10485
10486
10487
10488
10489for flag in       ; do
10490  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
10492$as_echo_n "checking whether the linker accepts $flag... " >&6; }
10493if eval \${$as_CACHEVAR+:} false; then :
10494  $as_echo_n "(cached) " >&6
10495else
10496
10497  ax_check_save_flags=$LDFLAGS
10498  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
10499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10500/* end confdefs.h.  */
10501
10502int
10503main ()
10504{
10505
10506  ;
10507  return 0;
10508}
10509_ACEOF
10510if ac_fn_c_try_link "$LINENO"; then :
10511  eval "$as_CACHEVAR=yes"
10512else
10513  eval "$as_CACHEVAR=no"
10514fi
10515rm -f core conftest.err conftest.$ac_objext \
10516    conftest$ac_exeext conftest.$ac_ext
10517  LDFLAGS=$ax_check_save_flags
10518fi
10519eval ac_res=\$$as_CACHEVAR
10520	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10521$as_echo "$ac_res" >&6; }
10522if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10523
10524if ${WARN_LDFLAGS+:} false; then :
10525
10526  case " $WARN_LDFLAGS " in #(
10527  *" $flag "*) :
10528    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
10529  (: WARN_LDFLAGS already contains $flag) 2>&5
10530  ac_status=$?
10531  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10532  test $ac_status = 0; } ;; #(
10533  *) :
10534
10535     as_fn_append WARN_LDFLAGS " $flag"
10536     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10537  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10538  ac_status=$?
10539  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10540  test $ac_status = 0; }
10541     ;;
10542esac
10543
10544else
10545
10546  WARN_LDFLAGS=$flag
10547  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10548  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10549  ac_status=$?
10550  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10551  test $ac_status = 0; }
10552
10553fi
10554
10555else
10556  :
10557fi
10558
10559done
10560
10561
10562fi
10563    if test "$ax_enable_compile_warnings" = "error"; then :
10564
10565        # "error" flags; -Werror has to be appended unconditionally because
10566        # it's not possible to test for
10567        #
10568        # suggest-attribute=format is disabled because it gives too many false
10569        # positives
10570
10571
10572
10573
10574for flag in              -Wl,--fatal-warnings         ; do
10575  as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
10577$as_echo_n "checking whether the linker accepts $flag... " >&6; }
10578if eval \${$as_CACHEVAR+:} false; then :
10579  $as_echo_n "(cached) " >&6
10580else
10581
10582  ax_check_save_flags=$LDFLAGS
10583  LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
10584  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10585/* end confdefs.h.  */
10586
10587int
10588main ()
10589{
10590
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595if ac_fn_c_try_link "$LINENO"; then :
10596  eval "$as_CACHEVAR=yes"
10597else
10598  eval "$as_CACHEVAR=no"
10599fi
10600rm -f core conftest.err conftest.$ac_objext \
10601    conftest$ac_exeext conftest.$ac_ext
10602  LDFLAGS=$ax_check_save_flags
10603fi
10604eval ac_res=\$$as_CACHEVAR
10605	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10606$as_echo "$ac_res" >&6; }
10607if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
10608
10609if ${WARN_LDFLAGS+:} false; then :
10610
10611  case " $WARN_LDFLAGS " in #(
10612  *" $flag "*) :
10613    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
10614  (: WARN_LDFLAGS already contains $flag) 2>&5
10615  ac_status=$?
10616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10617  test $ac_status = 0; } ;; #(
10618  *) :
10619
10620     as_fn_append WARN_LDFLAGS " $flag"
10621     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10622  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10623  ac_status=$?
10624  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10625  test $ac_status = 0; }
10626     ;;
10627esac
10628
10629else
10630
10631  WARN_LDFLAGS=$flag
10632  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
10633  (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
10634  ac_status=$?
10635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636  test $ac_status = 0; }
10637
10638fi
10639
10640else
10641  :
10642fi
10643
10644done
10645
10646
10647fi
10648
10649    # Substitute the variables
10650
10651
10652
10653
10654
10655
10656    # Variable names
10657
10658
10659    # Base flags
10660
10661if ${WARN_SCANNERFLAGS+:} false; then :
10662
10663  case " $WARN_SCANNERFLAGS " in #(
10664  *"  "*) :
10665    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
10666  (: WARN_SCANNERFLAGS already contains ) 2>&5
10667  ac_status=$?
10668  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10669  test $ac_status = 0; } ;; #(
10670  *) :
10671
10672     as_fn_append WARN_SCANNERFLAGS " "
10673     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10674  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10675  ac_status=$?
10676  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10677  test $ac_status = 0; }
10678     ;;
10679esac
10680
10681else
10682
10683  WARN_SCANNERFLAGS=
10684  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10685  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10686  ac_status=$?
10687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10688  test $ac_status = 0; }
10689
10690fi
10691
10692
10693    if test "$ax_enable_compile_warnings" != "no"; then :
10694
10695        # "yes" flags
10696
10697if ${WARN_SCANNERFLAGS+:} false; then :
10698
10699  case " $WARN_SCANNERFLAGS " in #(
10700  *"              --warn-all                                                              "*) :
10701    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-all                                                             "; } >&5
10702  (: WARN_SCANNERFLAGS already contains              --warn-all                                                             ) 2>&5
10703  ac_status=$?
10704  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10705  test $ac_status = 0; } ;; #(
10706  *) :
10707
10708     as_fn_append WARN_SCANNERFLAGS "              --warn-all                                                             "
10709     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10710  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10711  ac_status=$?
10712  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10713  test $ac_status = 0; }
10714     ;;
10715esac
10716
10717else
10718
10719  WARN_SCANNERFLAGS=             --warn-all
10720  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10721  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10722  ac_status=$?
10723  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10724  test $ac_status = 0; }
10725
10726fi
10727
10728
10729fi
10730    if test "$ax_enable_compile_warnings" = "error"; then :
10731
10732        # "error" flags
10733
10734if ${WARN_SCANNERFLAGS+:} false; then :
10735
10736  case " $WARN_SCANNERFLAGS " in #(
10737  *"              --warn-error          "*) :
10738    { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-error         "; } >&5
10739  (: WARN_SCANNERFLAGS already contains              --warn-error         ) 2>&5
10740  ac_status=$?
10741  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10742  test $ac_status = 0; } ;; #(
10743  *) :
10744
10745     as_fn_append WARN_SCANNERFLAGS "              --warn-error         "
10746     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10747  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10748  ac_status=$?
10749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750  test $ac_status = 0; }
10751     ;;
10752esac
10753
10754else
10755
10756  WARN_SCANNERFLAGS=             --warn-error
10757  { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
10758  (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
10759  ac_status=$?
10760  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10761  test $ac_status = 0; }
10762
10763fi
10764
10765
10766fi
10767
10768    # Substitute the variables
10769
10770
10771
10772# The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
10773# compiler.
10774if test "$ax_cv_c_compiler_vendor" != "sun"; then
10775  ac_ext=c
10776ac_cpp='$CPP $CPPFLAGS'
10777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779ac_compiler_gnu=$ac_cv_c_compiler_gnu
10780
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
10782$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
10783if ${ac_cv_cflags_warn_all+:} false; then :
10784  $as_echo_n "(cached) " >&6
10785else
10786  ac_cv_cflags_warn_all="no, unknown"
10787ac_save_CFLAGS="$CFLAGS"
10788for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
10789do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
10790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791/* end confdefs.h.  */
10792
10793int
10794main ()
10795{
10796
10797  ;
10798  return 0;
10799}
10800_ACEOF
10801if ac_fn_c_try_compile "$LINENO"; then :
10802  ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
10803fi
10804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10805done
10806CFLAGS="$ac_save_CFLAGS"
10807
10808fi
10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
10810$as_echo "$ac_cv_cflags_warn_all" >&6; }
10811
10812
10813case ".$ac_cv_cflags_warn_all" in
10814     .ok|.ok,*)  ;;
10815   .|.no|.no,*)  ;;
10816   *)
10817if ${CFLAGS+:} false; then :
10818
10819  case " $CFLAGS " in #(
10820  *" $ac_cv_cflags_warn_all "*) :
10821    { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
10822  (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
10823  ac_status=$?
10824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10825  test $ac_status = 0; } ;; #(
10826  *) :
10827
10828     as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
10829     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
10830  (: CFLAGS="$CFLAGS") 2>&5
10831  ac_status=$?
10832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10833  test $ac_status = 0; }
10834     ;;
10835esac
10836
10837else
10838
10839  CFLAGS=$ac_cv_cflags_warn_all
10840  { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
10841  (: CFLAGS="$CFLAGS") 2>&5
10842  ac_status=$?
10843  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10844  test $ac_status = 0; }
10845
10846fi
10847 ;;
10848esac
10849
10850ac_ext=c
10851ac_cpp='$CPP $CPPFLAGS'
10852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854ac_compiler_gnu=$ac_cv_c_compiler_gnu
10855
10856
10857fi
10858
10859if test "x$GCC" = "xyes"; then
10860  CFLAGS="$CFLAGS -fexceptions"
10861  touch local.exp
10862else
10863  cat > local.exp <<EOF
10864set CC_FOR_TARGET "$CC"
10865EOF
10866fi
10867
10868# Check for linker script support
10869
10870  # Check whether --enable-ld-version-script was given.
10871if test "${enable_ld_version_script+set}" = set; then :
10872  enableval=$enable_ld_version_script; have_ld_version_script=$enableval
10873fi
10874
10875  if test -z "$have_ld_version_script"; then
10876    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
10877$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
10878    save_LDFLAGS="$LDFLAGS"
10879    LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
10880    cat > conftest.map <<EOF
10881foo
10882EOF
10883    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10884/* end confdefs.h.  */
10885
10886int
10887main ()
10888{
10889
10890  ;
10891  return 0;
10892}
10893_ACEOF
10894if ac_fn_c_try_link "$LINENO"; then :
10895  accepts_syntax_errors=yes
10896else
10897  accepts_syntax_errors=no
10898fi
10899rm -f core conftest.err conftest.$ac_objext \
10900    conftest$ac_exeext conftest.$ac_ext
10901    if test "$accepts_syntax_errors" = no; then
10902      cat > conftest.map <<EOF
10903VERS_1 {
10904        global: sym;
10905};
10906
10907VERS_2 {
10908        global: sym;
10909} VERS_1;
10910EOF
10911      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912/* end confdefs.h.  */
10913
10914int
10915main ()
10916{
10917
10918  ;
10919  return 0;
10920}
10921_ACEOF
10922if ac_fn_c_try_link "$LINENO"; then :
10923  have_ld_version_script=yes
10924else
10925  have_ld_version_script=no
10926fi
10927rm -f core conftest.err conftest.$ac_objext \
10928    conftest$ac_exeext conftest.$ac_ext
10929    else
10930      have_ld_version_script=no
10931    fi
10932    rm -f conftest.map
10933    LDFLAGS="$save_LDFLAGS"
10934    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
10935$as_echo "$have_ld_version_script" >&6; }
10936  fi
10937   if test "$have_ld_version_script" = "yes"; then
10938  HAVE_LD_VERSION_SCRIPT_TRUE=
10939  HAVE_LD_VERSION_SCRIPT_FALSE='#'
10940else
10941  HAVE_LD_VERSION_SCRIPT_TRUE='#'
10942  HAVE_LD_VERSION_SCRIPT_FALSE=
10943fi
10944
10945
10946
10947#
10948# Enable run-time checking.
10949#
10950# Check whether --enable-bounds-checking was given.
10951if test "${enable_bounds_checking+set}" = set; then :
10952  enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
10953else
10954  enable_bounds_checking='no'
10955fi
10956
10957
10958if test "$enable_bounds_checking" = yes; then
10959
10960$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
10961
10962fi
10963
10964#
10965# Tests for Windows
10966#
10967
10968
10969
10970GDI32_LIBS=''
10971native_win32_build='no'
10972cygwin_build='no'
10973case "${host_os}" in
10974    cygwin* )
10975        cygwin_build='yes'
10976        GDI32_LIBS='-lgdi32'
10977    ;;
10978    mingw* )
10979        native_win32_build='yes'
10980        GDI32_LIBS='-lgdi32'
10981    ;;
10982esac
10983if test "${GDI32_LIBS}x" != 'x'; then
10984
10985$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
10986
10987fi
10988
10989 if test "${GDI32_LIBS}x" != 'x' ; then
10990  WINGDI32_DELEGATE_TRUE=
10991  WINGDI32_DELEGATE_FALSE='#'
10992else
10993  WINGDI32_DELEGATE_TRUE='#'
10994  WINGDI32_DELEGATE_FALSE=
10995fi
10996
10997 if test "${native_win32_build}" = 'yes' ; then
10998  WIN32_NATIVE_BUILD_TRUE=
10999  WIN32_NATIVE_BUILD_FALSE='#'
11000else
11001  WIN32_NATIVE_BUILD_TRUE='#'
11002  WIN32_NATIVE_BUILD_FALSE=
11003fi
11004
11005 if test "${cygwin_build}" = 'yes' ; then
11006  CYGWIN_BUILD_TRUE=
11007  CYGWIN_BUILD_FALSE='#'
11008else
11009  CYGWIN_BUILD_TRUE='#'
11010  CYGWIN_BUILD_FALSE=
11011fi
11012
11013 if test "x${CC}" = 'xcl.exe' ; then
11014  USING_CL_TRUE=
11015  USING_CL_FALSE='#'
11016else
11017  USING_CL_TRUE='#'
11018  USING_CL_FALSE=
11019fi
11020
11021
11022WinPathScript="${srcdirfull}/winpath.sh"
11023
11024
11025#
11026# Compiler flags tweaks
11027#
11028if test "${GCC}" != "yes"; then
11029    case "${host}" in
11030        *-*-hpux* )
11031            # aCC: HP ANSI C++ B3910B A.03.34
11032            CFLAGS="${CFLAGS} -Wp,-H30000"
11033            if test -n "${CXXFLAGS}"; then
11034                CXXFLAGS='-AA'
11035            else
11036                CXXFLAGS="${CXXFLAGS} -AA"
11037            fi
11038        ;;
11039        *-dec-osf5.* )
11040            # Compaq alphaev68-dec-osf5.1 compiler
11041            if test -n "${CXXFLAGS}"; then
11042                CXXFLAGS='-std strict_ansi -noimplicit_include'
11043            else
11044                CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
11045            fi
11046  esac
11047fi
11048
11049# Check for lazy-loading.
11050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
11051$as_echo_n "checking for linker lazyload option... " >&6; }
11052if ${im_cv_ld_lazyload+:} false; then :
11053  $as_echo_n "(cached) " >&6
11054else
11055
11056im_cv_ld_lazyload='none'
11057case "${host}" in
11058  *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
11059    if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
11060       im_cv_ld_lazyload='-Wl,-zlazyload'
11061    fi
11062    ;;
11063esac
11064
11065fi
11066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
11067$as_echo "$im_cv_ld_lazyload" >&6; }
11068if test "${im_cv_ld_lazyload}" != 'none' ; then
11069  if test -z "${LDFLAGS}" ; then
11070    LDFLAGS="${im_cv_ld_lazyload}"
11071  else
11072    LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
11073  fi
11074fi
11075
11076case "$host" in
11077  *darwin* | *-macos10*)
11078        CFLAGS="${CFLAGS} -D_FORTIFY_SOURCE=0"
11079        # Check whether --enable-osx-universal-binary was given.
11080if test "${enable_osx_universal_binary+set}" = set; then :
11081  enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
11082else
11083  build_osxuniversal=no
11084fi
11085
11086
11087    if test "${build_osxuniversal}" != no ; then
11088      if test "$enable_dependency_tracking" != no ; then
11089        as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
11090Please re-run configure with these options:
11091  --disable-dependency-tracking --enable-osx-universal-binary
11092        " "$LINENO" 5
11093      fi
11094      CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
11095      CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
11096      LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
11097  fi
11098  ;;
11099esac
11100
11101#
11102# ARCH specific include directory
11103#
11104
11105# Check whether --with-includearch-dir was given.
11106if test "${with_includearch_dir+set}" = set; then :
11107  withval=$with_includearch_dir; includearch_dir=$withval
11108else
11109  includearch_dir=$INCLUDE_DIR
11110fi
11111
11112
11113eval "eval INCLUDEARCH_DIR=$includearch_dir"
11114
11115
11116#
11117# ARCH specific configuration directory
11118#
11119
11120# Check whether --with-sharearch-dir was given.
11121if test "${with_sharearch_dir+set}" = set; then :
11122  withval=$with_sharearch_dir; sharearch_dir=$withval
11123else
11124  sharearch_dir="${LIB_DIR}"
11125fi
11126
11127
11128eval "eval SHAREARCH_DIR=$sharearch_dir"
11129
11130
11131# Path to the pkgconfig folder
11132
11133# Check whether --with-pkgconfigdir was given.
11134if test "${with_pkgconfigdir+set}" = set; then :
11135  withval=$with_pkgconfigdir; pkgconfigdir="$withval"
11136else
11137  pkgconfigdir='${libdir}/pkgconfig'
11138fi
11139
11140
11141
11142#
11143# Enable support for threads
11144#
11145# Find Posix threads library
11146#
11147
11148# Check whether --with-threads was given.
11149if test "${with_threads+set}" = set; then :
11150  withval=$with_threads; with_threads=$withval
11151else
11152  with_threads='yes'
11153fi
11154
11155
11156THREAD_LIBS=''
11157have_threads=no
11158if test "$with_threads" != 'no'; then
11159
11160
11161ac_ext=c
11162ac_cpp='$CPP $CPPFLAGS'
11163ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11164ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11165ac_compiler_gnu=$ac_cv_c_compiler_gnu
11166
11167ax_pthread_ok=no
11168
11169# We used to check for pthread.h first, but this fails if pthread.h
11170# requires special compiler flags (e.g. on True64 or Sequent).
11171# It gets checked for in the link test anyway.
11172
11173# First of all, check if the user has set any of the PTHREAD_LIBS,
11174# etcetera environment variables, and if threads linking works using
11175# them:
11176if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
11177        save_CFLAGS="$CFLAGS"
11178        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11179        save_LIBS="$LIBS"
11180        LIBS="$PTHREAD_LIBS $LIBS"
11181        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
11182$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
11183        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11184/* end confdefs.h.  */
11185
11186/* Override any GCC internal prototype to avoid an error.
11187   Use char because int might match the return type of a GCC
11188   builtin and then its argument prototype would still apply.  */
11189#ifdef __cplusplus
11190extern "C"
11191#endif
11192char pthread_join ();
11193int
11194main ()
11195{
11196return pthread_join ();
11197  ;
11198  return 0;
11199}
11200_ACEOF
11201if ac_fn_c_try_link "$LINENO"; then :
11202  ax_pthread_ok=yes
11203fi
11204rm -f core conftest.err conftest.$ac_objext \
11205    conftest$ac_exeext conftest.$ac_ext
11206        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11207$as_echo "$ax_pthread_ok" >&6; }
11208        if test x"$ax_pthread_ok" = xno; then
11209                PTHREAD_LIBS=""
11210                PTHREAD_CFLAGS=""
11211        fi
11212        LIBS="$save_LIBS"
11213        CFLAGS="$save_CFLAGS"
11214fi
11215
11216# We must check for the threads library under a number of different
11217# names; the ordering is very important because some systems
11218# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11219# libraries is broken (non-POSIX).
11220
11221# Create a list of thread flags to try.  Items starting with a "-" are
11222# C compiler flags, and other items are library names, except for "none"
11223# which indicates that we try without any flags at all, and "pthread-config"
11224# which is a program returning the flags for the Pth emulation library.
11225
11226ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11227
11228# The ordering *is* (sometimes) important.  Some notes on the
11229# individual items follow:
11230
11231# pthreads: AIX (must check this before -lpthread)
11232# none: in case threads are in libc; should be tried before -Kthread and
11233#       other compiler flags to prevent continual compiler warnings
11234# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11235# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11236# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11237# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
11238# -pthreads: Solaris/gcc
11239# -mthreads: Mingw32/gcc, Lynx/gcc
11240# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11241#      doesn't hurt to check since this sometimes defines pthreads too;
11242#      also defines -D_REENTRANT)
11243#      ... -mt is also the pthreads flag for HP/aCC
11244# pthread: Linux, etcetera
11245# --thread-safe: KAI C++
11246# pthread-config: use pthread-config program (for GNU Pth library)
11247
11248case ${host_os} in
11249        solaris*)
11250
11251        # On Solaris (at least, for some versions), libc contains stubbed
11252        # (non-functional) versions of the pthreads routines, so link-based
11253        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
11254        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
11255        # a function called by this macro, so we could check for that, but
11256        # who knows whether they'll stub that too in a future libc.)  So,
11257        # we'll just look for -pthreads and -lpthread first:
11258
11259        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
11260        ;;
11261
11262        darwin*)
11263        ax_pthread_flags="-pthread $ax_pthread_flags"
11264        ;;
11265esac
11266
11267# Clang doesn't consider unrecognized options an error unless we specify
11268# -Werror. We throw in some extra Clang-specific options to ensure that
11269# this doesn't happen for GCC, which also accepts -Werror.
11270
11271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
11272$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
11273save_CFLAGS="$CFLAGS"
11274ax_pthread_extra_flags="-Werror"
11275CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277/* end confdefs.h.  */
11278int foo(void);
11279int
11280main ()
11281{
11282foo()
11283  ;
11284  return 0;
11285}
11286_ACEOF
11287if ac_fn_c_try_compile "$LINENO"; then :
11288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11289$as_echo "yes" >&6; }
11290else
11291  ax_pthread_extra_flags=
11292                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293$as_echo "no" >&6; }
11294fi
11295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11296CFLAGS="$save_CFLAGS"
11297
11298if test x"$ax_pthread_ok" = xno; then
11299for flag in $ax_pthread_flags; do
11300
11301        case $flag in
11302                none)
11303                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11304$as_echo_n "checking whether pthreads work without any flags... " >&6; }
11305                ;;
11306
11307                -*)
11308                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
11309$as_echo_n "checking whether pthreads work with $flag... " >&6; }
11310                PTHREAD_CFLAGS="$flag"
11311                ;;
11312
11313                pthread-config)
11314                # Extract the first word of "pthread-config", so it can be a program name with args.
11315set dummy pthread-config; ac_word=$2
11316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317$as_echo_n "checking for $ac_word... " >&6; }
11318if ${ac_cv_prog_ax_pthread_config+:} false; then :
11319  $as_echo_n "(cached) " >&6
11320else
11321  if test -n "$ax_pthread_config"; then
11322  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11323else
11324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325for as_dir in $PATH
11326do
11327  IFS=$as_save_IFS
11328  test -z "$as_dir" && as_dir=.
11329    for ac_exec_ext in '' $ac_executable_extensions; do
11330  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331    ac_cv_prog_ax_pthread_config="yes"
11332    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11333    break 2
11334  fi
11335done
11336  done
11337IFS=$as_save_IFS
11338
11339  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11340fi
11341fi
11342ax_pthread_config=$ac_cv_prog_ax_pthread_config
11343if test -n "$ax_pthread_config"; then
11344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11345$as_echo "$ax_pthread_config" >&6; }
11346else
11347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11348$as_echo "no" >&6; }
11349fi
11350
11351
11352                if test x"$ax_pthread_config" = xno; then continue; fi
11353                PTHREAD_CFLAGS="`pthread-config --cflags`"
11354                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11355                ;;
11356
11357                *)
11358                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
11359$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
11360                PTHREAD_LIBS="-l$flag"
11361                ;;
11362        esac
11363
11364        save_LIBS="$LIBS"
11365        save_CFLAGS="$CFLAGS"
11366        LIBS="$PTHREAD_LIBS $LIBS"
11367        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
11368
11369        # Check for various functions.  We must include pthread.h,
11370        # since some functions may be macros.  (On the Sequent, we
11371        # need a special flag -Kthread to make this header compile.)
11372        # We check for pthread_join because it is in -lpthread on IRIX
11373        # while pthread_create is in libc.  We check for pthread_attr_init
11374        # due to DEC craziness with -lpthreads.  We check for
11375        # pthread_cleanup_push because it is one of the few pthread
11376        # functions on Solaris that doesn't have a non-functional libc stub.
11377        # We try pthread_create on general principles.
11378        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380#include <pthread.h>
11381                        static void routine(void *a) { a = 0; }
11382                        static void *start_routine(void *a) { return a; }
11383int
11384main ()
11385{
11386pthread_t th; pthread_attr_t attr;
11387                        pthread_create(&th, 0, start_routine, 0);
11388                        pthread_join(th, 0);
11389                        pthread_attr_init(&attr);
11390                        pthread_cleanup_push(routine, 0);
11391                        pthread_cleanup_pop(0) /* ; */
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_link "$LINENO"; then :
11397  ax_pthread_ok=yes
11398fi
11399rm -f core conftest.err conftest.$ac_objext \
11400    conftest$ac_exeext conftest.$ac_ext
11401
11402        LIBS="$save_LIBS"
11403        CFLAGS="$save_CFLAGS"
11404
11405        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11406$as_echo "$ax_pthread_ok" >&6; }
11407        if test "x$ax_pthread_ok" = xyes; then
11408                break;
11409        fi
11410
11411        PTHREAD_LIBS=""
11412        PTHREAD_CFLAGS=""
11413done
11414fi
11415
11416# Various other checks:
11417if test "x$ax_pthread_ok" = xyes; then
11418        save_LIBS="$LIBS"
11419        LIBS="$PTHREAD_LIBS $LIBS"
11420        save_CFLAGS="$CFLAGS"
11421        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11422
11423        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11424        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11425$as_echo_n "checking for joinable pthread attribute... " >&6; }
11426        attr_name=unknown
11427        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11428            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11429/* end confdefs.h.  */
11430#include <pthread.h>
11431int
11432main ()
11433{
11434int attr = $attr; return attr /* ; */
11435  ;
11436  return 0;
11437}
11438_ACEOF
11439if ac_fn_c_try_link "$LINENO"; then :
11440  attr_name=$attr; break
11441fi
11442rm -f core conftest.err conftest.$ac_objext \
11443    conftest$ac_exeext conftest.$ac_ext
11444        done
11445        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
11446$as_echo "$attr_name" >&6; }
11447        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
11448
11449cat >>confdefs.h <<_ACEOF
11450#define PTHREAD_CREATE_JOINABLE $attr_name
11451_ACEOF
11452
11453        fi
11454
11455        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
11456$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
11457        flag=no
11458        case ${host_os} in
11459            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
11460            osf* | hpux*) flag="-D_REENTRANT";;
11461            solaris*)
11462            if test "$GCC" = "yes"; then
11463                flag="-D_REENTRANT"
11464            else
11465                # TODO: What about Clang on Solaris?
11466                flag="-mt -D_REENTRANT"
11467            fi
11468            ;;
11469        esac
11470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
11471$as_echo "$flag" >&6; }
11472        if test "x$flag" != xno; then
11473            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
11474        fi
11475
11476        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
11477$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
11478if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
11479  $as_echo_n "(cached) " >&6
11480else
11481
11482                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11483/* end confdefs.h.  */
11484#include <pthread.h>
11485int
11486main ()
11487{
11488int i = PTHREAD_PRIO_INHERIT;
11489  ;
11490  return 0;
11491}
11492_ACEOF
11493if ac_fn_c_try_link "$LINENO"; then :
11494  ax_cv_PTHREAD_PRIO_INHERIT=yes
11495else
11496  ax_cv_PTHREAD_PRIO_INHERIT=no
11497fi
11498rm -f core conftest.err conftest.$ac_objext \
11499    conftest$ac_exeext conftest.$ac_ext
11500
11501fi
11502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
11503$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
11504        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
11505
11506$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
11507
11508fi
11509
11510        LIBS="$save_LIBS"
11511        CFLAGS="$save_CFLAGS"
11512
11513        # More AIX lossage: compile with *_r variant
11514        if test "x$GCC" != xyes; then
11515            case $host_os in
11516                aix*)
11517                case "x/$CC" in #(
11518  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
11519    #handle absolute path differently from PATH based program lookup
11520                   case "x$CC" in #(
11521  x/*) :
11522    if as_fn_executable_p ${CC}_r; then :
11523  PTHREAD_CC="${CC}_r"
11524fi ;; #(
11525  *) :
11526    for ac_prog in ${CC}_r
11527do
11528  # Extract the first word of "$ac_prog", so it can be a program name with args.
11529set dummy $ac_prog; ac_word=$2
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11531$as_echo_n "checking for $ac_word... " >&6; }
11532if ${ac_cv_prog_PTHREAD_CC+:} false; then :
11533  $as_echo_n "(cached) " >&6
11534else
11535  if test -n "$PTHREAD_CC"; then
11536  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
11537else
11538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539for as_dir in $PATH
11540do
11541  IFS=$as_save_IFS
11542  test -z "$as_dir" && as_dir=.
11543    for ac_exec_ext in '' $ac_executable_extensions; do
11544  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545    ac_cv_prog_PTHREAD_CC="$ac_prog"
11546    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11547    break 2
11548  fi
11549done
11550  done
11551IFS=$as_save_IFS
11552
11553fi
11554fi
11555PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
11556if test -n "$PTHREAD_CC"; then
11557  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
11558$as_echo "$PTHREAD_CC" >&6; }
11559else
11560  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
11562fi
11563
11564
11565  test -n "$PTHREAD_CC" && break
11566done
11567test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11568 ;;
11569esac ;; #(
11570  *) :
11571     ;;
11572esac
11573                ;;
11574            esac
11575        fi
11576fi
11577
11578test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
11579
11580
11581
11582
11583
11584# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
11585if test x"$ax_pthread_ok" = xyes; then
11586
11587$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
11588
11589        :
11590else
11591        ax_pthread_ok=no
11592
11593fi
11594ac_ext=c
11595ac_cpp='$CPP $CPPFLAGS'
11596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11598ac_compiler_gnu=$ac_cv_c_compiler_gnu
11599
11600
11601    if test "$ax_pthread_ok" = yes; then
11602        have_threads=yes
11603        DEF_THREAD="$PTHREAD_CFLAGS"
11604        CFLAGS="$CFLAGS $DEF_THREAD"
11605        CXXFLAGS="$CXXFLAGS $DEF_THREAD"
11606	THREAD_LIBS="$PTHREAD_LIBS"
11607        if test "$CC" != "$PTHREAD_CC"; then
11608            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
11609$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
11610            CC="$PTHREAD_CC"
11611        fi
11612
11613$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
11614
11615    fi
11616fi
11617LIBS="$LIBS $THREAD_LIBS"
11618
11619
11620# Enable support for OpenMP
11621if test "$have_threads" != 'yes'; then
11622  ac_cv_prog_c_openmp=unsupported
11623fi
11624
11625  OPENMP_CFLAGS=
11626  # Check whether --enable-openmp was given.
11627if test "${enable_openmp+set}" = set; then :
11628  enableval=$enable_openmp;
11629fi
11630
11631  if test "$enable_openmp" != no; then
11632    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
11633$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
11634if ${ac_cv_prog_c_openmp+:} false; then :
11635  $as_echo_n "(cached) " >&6
11636else
11637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11638/* end confdefs.h.  */
11639
11640#ifndef _OPENMP
11641 choke me
11642#endif
11643#include <omp.h>
11644int main () { return omp_get_num_threads (); }
11645
11646_ACEOF
11647if ac_fn_c_try_link "$LINENO"; then :
11648  ac_cv_prog_c_openmp='none needed'
11649else
11650  ac_cv_prog_c_openmp='unsupported'
11651	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
11652                           -Popenmp --openmp; do
11653	    ac_save_CFLAGS=$CFLAGS
11654	    CFLAGS="$CFLAGS $ac_option"
11655	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11656/* end confdefs.h.  */
11657
11658#ifndef _OPENMP
11659 choke me
11660#endif
11661#include <omp.h>
11662int main () { return omp_get_num_threads (); }
11663
11664_ACEOF
11665if ac_fn_c_try_link "$LINENO"; then :
11666  ac_cv_prog_c_openmp=$ac_option
11667fi
11668rm -f core conftest.err conftest.$ac_objext \
11669    conftest$ac_exeext conftest.$ac_ext
11670	    CFLAGS=$ac_save_CFLAGS
11671	    if test "$ac_cv_prog_c_openmp" != unsupported; then
11672	      break
11673	    fi
11674	  done
11675fi
11676rm -f core conftest.err conftest.$ac_objext \
11677    conftest$ac_exeext conftest.$ac_ext
11678fi
11679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
11680$as_echo "$ac_cv_prog_c_openmp" >&6; }
11681    case $ac_cv_prog_c_openmp in #(
11682      "none needed" | unsupported)
11683	;; #(
11684      *)
11685	OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
11686    esac
11687  fi
11688
11689
11690CFLAGS="$OPENMP_CFLAGS $CFLAGS"
11691MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
11692
11693if test "$enable_openmp" != no; then
11694  if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
11695    MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
11696  fi
11697fi
11698
11699# Enable support for OpenCL
11700
11701
11702ac_ext=c
11703ac_cpp='$CPP $CPPFLAGS'
11704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707
11708ax_pthread_ok=no
11709
11710# We used to check for pthread.h first, but this fails if pthread.h
11711# requires special compiler flags (e.g. on True64 or Sequent).
11712# It gets checked for in the link test anyway.
11713
11714# First of all, check if the user has set any of the PTHREAD_LIBS,
11715# etcetera environment variables, and if threads linking works using
11716# them:
11717if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
11718        save_CFLAGS="$CFLAGS"
11719        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11720        save_LIBS="$LIBS"
11721        LIBS="$PTHREAD_LIBS $LIBS"
11722        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
11723$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
11724        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725/* end confdefs.h.  */
11726
11727/* Override any GCC internal prototype to avoid an error.
11728   Use char because int might match the return type of a GCC
11729   builtin and then its argument prototype would still apply.  */
11730#ifdef __cplusplus
11731extern "C"
11732#endif
11733char pthread_join ();
11734int
11735main ()
11736{
11737return pthread_join ();
11738  ;
11739  return 0;
11740}
11741_ACEOF
11742if ac_fn_c_try_link "$LINENO"; then :
11743  ax_pthread_ok=yes
11744fi
11745rm -f core conftest.err conftest.$ac_objext \
11746    conftest$ac_exeext conftest.$ac_ext
11747        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11748$as_echo "$ax_pthread_ok" >&6; }
11749        if test x"$ax_pthread_ok" = xno; then
11750                PTHREAD_LIBS=""
11751                PTHREAD_CFLAGS=""
11752        fi
11753        LIBS="$save_LIBS"
11754        CFLAGS="$save_CFLAGS"
11755fi
11756
11757# We must check for the threads library under a number of different
11758# names; the ordering is very important because some systems
11759# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
11760# libraries is broken (non-POSIX).
11761
11762# Create a list of thread flags to try.  Items starting with a "-" are
11763# C compiler flags, and other items are library names, except for "none"
11764# which indicates that we try without any flags at all, and "pthread-config"
11765# which is a program returning the flags for the Pth emulation library.
11766
11767ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
11768
11769# The ordering *is* (sometimes) important.  Some notes on the
11770# individual items follow:
11771
11772# pthreads: AIX (must check this before -lpthread)
11773# none: in case threads are in libc; should be tried before -Kthread and
11774#       other compiler flags to prevent continual compiler warnings
11775# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
11776# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
11777# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
11778# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
11779# -pthreads: Solaris/gcc
11780# -mthreads: Mingw32/gcc, Lynx/gcc
11781# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
11782#      doesn't hurt to check since this sometimes defines pthreads too;
11783#      also defines -D_REENTRANT)
11784#      ... -mt is also the pthreads flag for HP/aCC
11785# pthread: Linux, etcetera
11786# --thread-safe: KAI C++
11787# pthread-config: use pthread-config program (for GNU Pth library)
11788
11789case ${host_os} in
11790        solaris*)
11791
11792        # On Solaris (at least, for some versions), libc contains stubbed
11793        # (non-functional) versions of the pthreads routines, so link-based
11794        # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
11795        # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
11796        # a function called by this macro, so we could check for that, but
11797        # who knows whether they'll stub that too in a future libc.)  So,
11798        # we'll just look for -pthreads and -lpthread first:
11799
11800        ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
11801        ;;
11802
11803        darwin*)
11804        ax_pthread_flags="-pthread $ax_pthread_flags"
11805        ;;
11806esac
11807
11808# Clang doesn't consider unrecognized options an error unless we specify
11809# -Werror. We throw in some extra Clang-specific options to ensure that
11810# this doesn't happen for GCC, which also accepts -Werror.
11811
11812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
11813$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
11814save_CFLAGS="$CFLAGS"
11815ax_pthread_extra_flags="-Werror"
11816CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
11817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818/* end confdefs.h.  */
11819int foo(void);
11820int
11821main ()
11822{
11823foo()
11824  ;
11825  return 0;
11826}
11827_ACEOF
11828if ac_fn_c_try_compile "$LINENO"; then :
11829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11830$as_echo "yes" >&6; }
11831else
11832  ax_pthread_extra_flags=
11833                   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834$as_echo "no" >&6; }
11835fi
11836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837CFLAGS="$save_CFLAGS"
11838
11839if test x"$ax_pthread_ok" = xno; then
11840for flag in $ax_pthread_flags; do
11841
11842        case $flag in
11843                none)
11844                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
11845$as_echo_n "checking whether pthreads work without any flags... " >&6; }
11846                ;;
11847
11848                -*)
11849                { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
11850$as_echo_n "checking whether pthreads work with $flag... " >&6; }
11851                PTHREAD_CFLAGS="$flag"
11852                ;;
11853
11854                pthread-config)
11855                # Extract the first word of "pthread-config", so it can be a program name with args.
11856set dummy pthread-config; ac_word=$2
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858$as_echo_n "checking for $ac_word... " >&6; }
11859if ${ac_cv_prog_ax_pthread_config+:} false; then :
11860  $as_echo_n "(cached) " >&6
11861else
11862  if test -n "$ax_pthread_config"; then
11863  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
11864else
11865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866for as_dir in $PATH
11867do
11868  IFS=$as_save_IFS
11869  test -z "$as_dir" && as_dir=.
11870    for ac_exec_ext in '' $ac_executable_extensions; do
11871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872    ac_cv_prog_ax_pthread_config="yes"
11873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11874    break 2
11875  fi
11876done
11877  done
11878IFS=$as_save_IFS
11879
11880  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
11881fi
11882fi
11883ax_pthread_config=$ac_cv_prog_ax_pthread_config
11884if test -n "$ax_pthread_config"; then
11885  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
11886$as_echo "$ax_pthread_config" >&6; }
11887else
11888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889$as_echo "no" >&6; }
11890fi
11891
11892
11893                if test x"$ax_pthread_config" = xno; then continue; fi
11894                PTHREAD_CFLAGS="`pthread-config --cflags`"
11895                PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
11896                ;;
11897
11898                *)
11899                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
11900$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
11901                PTHREAD_LIBS="-l$flag"
11902                ;;
11903        esac
11904
11905        save_LIBS="$LIBS"
11906        save_CFLAGS="$CFLAGS"
11907        LIBS="$PTHREAD_LIBS $LIBS"
11908        CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
11909
11910        # Check for various functions.  We must include pthread.h,
11911        # since some functions may be macros.  (On the Sequent, we
11912        # need a special flag -Kthread to make this header compile.)
11913        # We check for pthread_join because it is in -lpthread on IRIX
11914        # while pthread_create is in libc.  We check for pthread_attr_init
11915        # due to DEC craziness with -lpthreads.  We check for
11916        # pthread_cleanup_push because it is one of the few pthread
11917        # functions on Solaris that doesn't have a non-functional libc stub.
11918        # We try pthread_create on general principles.
11919        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h.  */
11921#include <pthread.h>
11922                        static void routine(void *a) { a = 0; }
11923                        static void *start_routine(void *a) { return a; }
11924int
11925main ()
11926{
11927pthread_t th; pthread_attr_t attr;
11928                        pthread_create(&th, 0, start_routine, 0);
11929                        pthread_join(th, 0);
11930                        pthread_attr_init(&attr);
11931                        pthread_cleanup_push(routine, 0);
11932                        pthread_cleanup_pop(0) /* ; */
11933  ;
11934  return 0;
11935}
11936_ACEOF
11937if ac_fn_c_try_link "$LINENO"; then :
11938  ax_pthread_ok=yes
11939fi
11940rm -f core conftest.err conftest.$ac_objext \
11941    conftest$ac_exeext conftest.$ac_ext
11942
11943        LIBS="$save_LIBS"
11944        CFLAGS="$save_CFLAGS"
11945
11946        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
11947$as_echo "$ax_pthread_ok" >&6; }
11948        if test "x$ax_pthread_ok" = xyes; then
11949                break;
11950        fi
11951
11952        PTHREAD_LIBS=""
11953        PTHREAD_CFLAGS=""
11954done
11955fi
11956
11957# Various other checks:
11958if test "x$ax_pthread_ok" = xyes; then
11959        save_LIBS="$LIBS"
11960        LIBS="$PTHREAD_LIBS $LIBS"
11961        save_CFLAGS="$CFLAGS"
11962        CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
11963
11964        # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
11965        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
11966$as_echo_n "checking for joinable pthread attribute... " >&6; }
11967        attr_name=unknown
11968        for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
11969            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11970/* end confdefs.h.  */
11971#include <pthread.h>
11972int
11973main ()
11974{
11975int attr = $attr; return attr /* ; */
11976  ;
11977  return 0;
11978}
11979_ACEOF
11980if ac_fn_c_try_link "$LINENO"; then :
11981  attr_name=$attr; break
11982fi
11983rm -f core conftest.err conftest.$ac_objext \
11984    conftest$ac_exeext conftest.$ac_ext
11985        done
11986        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
11987$as_echo "$attr_name" >&6; }
11988        if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
11989
11990cat >>confdefs.h <<_ACEOF
11991#define PTHREAD_CREATE_JOINABLE $attr_name
11992_ACEOF
11993
11994        fi
11995
11996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
11997$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
11998        flag=no
11999        case ${host_os} in
12000            aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
12001            osf* | hpux*) flag="-D_REENTRANT";;
12002            solaris*)
12003            if test "$GCC" = "yes"; then
12004                flag="-D_REENTRANT"
12005            else
12006                # TODO: What about Clang on Solaris?
12007                flag="-mt -D_REENTRANT"
12008            fi
12009            ;;
12010        esac
12011        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
12012$as_echo "$flag" >&6; }
12013        if test "x$flag" != xno; then
12014            PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
12015        fi
12016
12017        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
12018$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
12019if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
12020  $as_echo_n "(cached) " >&6
12021else
12022
12023                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12024/* end confdefs.h.  */
12025#include <pthread.h>
12026int
12027main ()
12028{
12029int i = PTHREAD_PRIO_INHERIT;
12030  ;
12031  return 0;
12032}
12033_ACEOF
12034if ac_fn_c_try_link "$LINENO"; then :
12035  ax_cv_PTHREAD_PRIO_INHERIT=yes
12036else
12037  ax_cv_PTHREAD_PRIO_INHERIT=no
12038fi
12039rm -f core conftest.err conftest.$ac_objext \
12040    conftest$ac_exeext conftest.$ac_ext
12041
12042fi
12043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
12044$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
12045        if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
12046
12047$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
12048
12049fi
12050
12051        LIBS="$save_LIBS"
12052        CFLAGS="$save_CFLAGS"
12053
12054        # More AIX lossage: compile with *_r variant
12055        if test "x$GCC" != xyes; then
12056            case $host_os in
12057                aix*)
12058                case "x/$CC" in #(
12059  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
12060    #handle absolute path differently from PATH based program lookup
12061                   case "x$CC" in #(
12062  x/*) :
12063    if as_fn_executable_p ${CC}_r; then :
12064  PTHREAD_CC="${CC}_r"
12065fi ;; #(
12066  *) :
12067    for ac_prog in ${CC}_r
12068do
12069  # Extract the first word of "$ac_prog", so it can be a program name with args.
12070set dummy $ac_prog; ac_word=$2
12071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12072$as_echo_n "checking for $ac_word... " >&6; }
12073if ${ac_cv_prog_PTHREAD_CC+:} false; then :
12074  $as_echo_n "(cached) " >&6
12075else
12076  if test -n "$PTHREAD_CC"; then
12077  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
12078else
12079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12080for as_dir in $PATH
12081do
12082  IFS=$as_save_IFS
12083  test -z "$as_dir" && as_dir=.
12084    for ac_exec_ext in '' $ac_executable_extensions; do
12085  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12086    ac_cv_prog_PTHREAD_CC="$ac_prog"
12087    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12088    break 2
12089  fi
12090done
12091  done
12092IFS=$as_save_IFS
12093
12094fi
12095fi
12096PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
12097if test -n "$PTHREAD_CC"; then
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
12099$as_echo "$PTHREAD_CC" >&6; }
12100else
12101  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12102$as_echo "no" >&6; }
12103fi
12104
12105
12106  test -n "$PTHREAD_CC" && break
12107done
12108test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
12109 ;;
12110esac ;; #(
12111  *) :
12112     ;;
12113esac
12114                ;;
12115            esac
12116        fi
12117fi
12118
12119test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
12120
12121
12122
12123
12124
12125# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
12126if test x"$ax_pthread_ok" = xyes; then
12127
12128$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
12129
12130        :
12131else
12132        ax_pthread_ok=no
12133
12134fi
12135ac_ext=c
12136ac_cpp='$CPP $CPPFLAGS'
12137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12139ac_compiler_gnu=$ac_cv_c_compiler_gnu
12140
12141
12142
12143# Check whether --enable-opencl was given.
12144if test "${enable_opencl+set}" = set; then :
12145  enableval=$enable_opencl; enable_opencl=$enableval
12146else
12147  enable_opencl='no'
12148fi
12149
12150
12151if test "$enable_opencl" = 'yes'; then
12152  ac_ext=c
12153ac_cpp='$CPP $CPPFLAGS'
12154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
12158  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
12159$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
12160if ${ax_cv_c_compiler_ms+:} false; then :
12161  $as_echo_n "(cached) " >&6
12162else
12163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12164/* end confdefs.h.  */
12165
12166int
12167main ()
12168{
12169#ifndef _MSC_VER
12170       choke me
12171#endif
12172
12173  ;
12174  return 0;
12175}
12176_ACEOF
12177if ac_fn_c_try_compile "$LINENO"; then :
12178  ax_compiler_ms=yes
12179else
12180  ax_compiler_ms=no
12181fi
12182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183ax_cv_c_compiler_ms=$ax_compiler_ms
12184
12185fi
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
12187$as_echo "$ax_cv_c_compiler_ms" >&6; }
12188  if test X$ax_compiler_ms = Xno; then :
12189  CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
12190fi
12191
12192  ax_save_CPPFLAGS=$CPPFLAGS
12193  ax_save_CL_CFLAGS=$CL_CFLAGS
12194
12195  found_opencl_header='no'
12196  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
12197  for ac_header in CL/cl.h OpenCL/cl.h
12198do :
12199  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12200ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12201if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12202  cat >>confdefs.h <<_ACEOF
12203#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12204_ACEOF
12205 found_opencl_header='yes'
12206                    break;
12207else
12208  found_opencl_header='no'
12209fi
12210
12211done
12212
12213
12214  if test X$found_opencl_header = Xno; then :
12215  { ac_cv_header_CL_cl_h=; unset ac_cv_header_CL_cl_h;}
12216         { ac_cv_header_OpenCL_cl_h=; unset ac_cv_header_OpenCL_cl_h;}
12217         CL_CFLAGS="-I$AMDAPPSDKROOT/include"
12218         CPPFLAGS="$ax_save_CPPFLAGS $CL_CFLAGS"
12219         for ac_header in CL/cl.h OpenCL/cl.h
12220do :
12221  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12223if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12224  cat >>confdefs.h <<_ACEOF
12225#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12226_ACEOF
12227 found_opencl_header='yes'
12228                           break;
12229else
12230  found_opencl_header='no'
12231fi
12232
12233done
12234
12235
12236fi
12237
12238  CPPFLAGS="$ax_save_CPPFLAGS"
12239
12240  for ac_header in windows.h
12241do :
12242  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12243if test "x$ac_cv_header_windows_h" = xyes; then :
12244  cat >>confdefs.h <<_ACEOF
12245#define HAVE_WINDOWS_H 1
12246_ACEOF
12247
12248fi
12249
12250done
12251
12252
12253
12254
12255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
12256$as_echo_n "checking for OpenCL library... " >&6; }
12257if ${ax_cv_check_cl_libcl+:} false; then :
12258  $as_echo_n "(cached) " >&6
12259else
12260  ax_cv_check_cl_libcl=no
12261  case $host_cpu in
12262    x86_64) ax_check_cl_libdir=lib64
12263            ax_check_cl_amd_libdir=x86_64
12264	    ;;
12265    *)      ax_check_cl_libdir=lib
12266            ax_check_cl_amd_libdir=x86
12267            ;;
12268  esac
12269  ax_save_CPPFLAGS=$CPPFLAGS
12270  CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
12271  ax_save_LIBS=$LIBS
12272  LIBS=""
12273  ax_check_libs="-lOpenCL -lCL -lclparser"
12274  for ax_lib in $ax_check_libs; do
12275    if test X$ax_compiler_ms = Xyes; then :
12276  ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
12277else
12278  ax_try_lib=$ax_lib
12279fi
12280    LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
12281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12282/* end confdefs.h.  */
12283
12284  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12285  #   include <windows.h>
12286  # endif
12287  # ifdef HAVE_CL_CL_H
12288  #   include <CL/cl.h>
12289  # elif defined(HAVE_OPENCL_CL_H)
12290  #   include <OpenCL/cl.h>
12291  # else
12292  #   error no CL.h
12293  # endif
12294int
12295main ()
12296{
12297clCreateContextFromType(0,0,0,0,0)
12298  ;
12299  return 0;
12300}
12301_ACEOF
12302if ac_fn_c_try_link "$LINENO"; then :
12303  ax_cv_check_cl_libcl=$ax_try_lib; break
12304else
12305  ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
12306                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12307/* end confdefs.h.  */
12308
12309  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12310  #   include <windows.h>
12311  # endif
12312  # ifdef HAVE_CL_CL_H
12313  #   include <CL/cl.h>
12314  # elif defined(HAVE_OPENCL_CL_H)
12315  #   include <OpenCL/cl.h>
12316  # else
12317  #   error no CL.h
12318  # endif
12319int
12320main ()
12321{
12322clCreateContextFromType(0,0,0,0,0)
12323  ;
12324  return 0;
12325}
12326_ACEOF
12327if ac_fn_c_try_link "$LINENO"; then :
12328  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
12329else
12330  ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
12331                                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332/* end confdefs.h.  */
12333
12334  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12335  #   include <windows.h>
12336  # endif
12337  # ifdef HAVE_CL_CL_H
12338  #   include <CL/cl.h>
12339  # elif defined(HAVE_OPENCL_CL_H)
12340  #   include <OpenCL/cl.h>
12341  # else
12342  #   error no CL.h
12343  # endif
12344int
12345main ()
12346{
12347clCreateContextFromType(0,0,0,0,0)
12348  ;
12349  return 0;
12350}
12351_ACEOF
12352if ac_fn_c_try_link "$LINENO"; then :
12353  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
12354else
12355  ax_check_cl_amd_flags="-L$AMDAPPSDKROOT/lib/$ax_check_cl_amd_libdir" LIBS="$ax_try_lib $ax_check_cl_amd_flags $CL_LIBS $ax_save_LIBS"
12356						                                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12357/* end confdefs.h.  */
12358
12359  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12360  #   include <windows.h>
12361  # endif
12362  # ifdef HAVE_CL_CL_H
12363  #   include <CL/cl.h>
12364  # elif defined(HAVE_OPENCL_CL_H)
12365  #   include <OpenCL/cl.h>
12366  # else
12367  #   error no CL.h
12368  # endif
12369int
12370main ()
12371{
12372clCreateContextFromType(0,0,0,0,0)
12373  ;
12374  return 0;
12375}
12376_ACEOF
12377if ac_fn_c_try_link "$LINENO"; then :
12378  ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_amd_flags"; break
12379
12380fi
12381rm -f core conftest.err conftest.$ac_objext \
12382    conftest$ac_exeext conftest.$ac_ext
12383
12384
12385fi
12386rm -f core conftest.err conftest.$ac_objext \
12387    conftest$ac_exeext conftest.$ac_ext
12388fi
12389rm -f core conftest.err conftest.$ac_objext \
12390    conftest$ac_exeext conftest.$ac_ext
12391fi
12392rm -f core conftest.err conftest.$ac_objext \
12393    conftest$ac_exeext conftest.$ac_ext
12394  done
12395
12396  if test "X$ax_cv_check_cl_libcl" = Xno; then :
12397  LIBS='-Wl,-framework,OpenCL'
12398        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h.  */
12400
12401  # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
12402  #   include <windows.h>
12403  # endif
12404  # ifdef HAVE_CL_CL_H
12405  #   include <CL/cl.h>
12406  # elif defined(HAVE_OPENCL_CL_H)
12407  #   include <OpenCL/cl.h>
12408  # else
12409  #   error no CL.h
12410  # endif
12411int
12412main ()
12413{
12414clCreateContextFromType(0,0,0,0,0)
12415  ;
12416  return 0;
12417}
12418_ACEOF
12419if ac_fn_c_try_link "$LINENO"; then :
12420  ax_cv_check_cl_libcl=$LIBS
12421fi
12422rm -f core conftest.err conftest.$ac_objext \
12423    conftest$ac_exeext conftest.$ac_ext
12424fi
12425
12426  LIBS=$ax_save_LIBS
12427  CPPFLAGS=$ax_save_CPPFLAGS
12428fi
12429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
12430$as_echo "$ax_cv_check_cl_libcl" >&6; }
12431
12432  if test "X$ax_cv_check_cl_libcl" = Xno; then :
12433  no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
12434else
12435  CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
12436$as_echo "#define _OPENCL 1" >>confdefs.h
12437
12438fi
12439  ac_ext=c
12440ac_cpp='$CPP $CPPFLAGS'
12441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12443ac_compiler_gnu=$ac_cv_c_compiler_gnu
12444
12445fi
12446
12447
12448
12449#remove static link on Linux
12450CL_LIBS=`echo $CL_LIBS | $SED -e 's/-lOpenCL //'`
12451
12452
12453CFLAGS="$CL_CFLAGS $CFLAGS"
12454CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
12455LIBS="$CL_LIBS $LIBS"
12456
12457if test "$enable_opencl" != no; then
12458  if test "X$ax_cv_check_cl_libcl" != Xno; then :
12459    MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
12460  fi
12461fi
12462
12463########
12464#
12465# Check for large file support
12466#
12467########
12468# Check whether --enable-largefile was given.
12469if test "${enable_largefile+set}" = set; then :
12470  enableval=$enable_largefile;
12471fi
12472
12473if test "$enable_largefile" != no; then
12474
12475  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12476$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
12477if ${ac_cv_sys_largefile_CC+:} false; then :
12478  $as_echo_n "(cached) " >&6
12479else
12480  ac_cv_sys_largefile_CC=no
12481     if test "$GCC" != yes; then
12482       ac_save_CC=$CC
12483       while :; do
12484	 # IRIX 6.2 and later do not support large files by default,
12485	 # so use the C compiler's -n32 option if that helps.
12486	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487/* end confdefs.h.  */
12488#include <sys/types.h>
12489 /* Check that off_t can represent 2**63 - 1 correctly.
12490    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12491    since some C++ compilers masquerading as C compilers
12492    incorrectly reject 9223372036854775807.  */
12493#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12494  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12495		       && LARGE_OFF_T % 2147483647 == 1)
12496		      ? 1 : -1];
12497int
12498main ()
12499{
12500
12501  ;
12502  return 0;
12503}
12504_ACEOF
12505	 if ac_fn_c_try_compile "$LINENO"; then :
12506  break
12507fi
12508rm -f core conftest.err conftest.$ac_objext
12509	 CC="$CC -n32"
12510	 if ac_fn_c_try_compile "$LINENO"; then :
12511  ac_cv_sys_largefile_CC=' -n32'; break
12512fi
12513rm -f core conftest.err conftest.$ac_objext
12514	 break
12515       done
12516       CC=$ac_save_CC
12517       rm -f conftest.$ac_ext
12518    fi
12519fi
12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12521$as_echo "$ac_cv_sys_largefile_CC" >&6; }
12522  if test "$ac_cv_sys_largefile_CC" != no; then
12523    CC=$CC$ac_cv_sys_largefile_CC
12524  fi
12525
12526  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12527$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12528if ${ac_cv_sys_file_offset_bits+:} false; then :
12529  $as_echo_n "(cached) " >&6
12530else
12531  while :; do
12532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533/* end confdefs.h.  */
12534#include <sys/types.h>
12535 /* Check that off_t can represent 2**63 - 1 correctly.
12536    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12537    since some C++ compilers masquerading as C compilers
12538    incorrectly reject 9223372036854775807.  */
12539#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12540  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12541		       && LARGE_OFF_T % 2147483647 == 1)
12542		      ? 1 : -1];
12543int
12544main ()
12545{
12546
12547  ;
12548  return 0;
12549}
12550_ACEOF
12551if ac_fn_c_try_compile "$LINENO"; then :
12552  ac_cv_sys_file_offset_bits=no; break
12553fi
12554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556/* end confdefs.h.  */
12557#define _FILE_OFFSET_BITS 64
12558#include <sys/types.h>
12559 /* Check that off_t can represent 2**63 - 1 correctly.
12560    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12561    since some C++ compilers masquerading as C compilers
12562    incorrectly reject 9223372036854775807.  */
12563#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12564  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12565		       && LARGE_OFF_T % 2147483647 == 1)
12566		      ? 1 : -1];
12567int
12568main ()
12569{
12570
12571  ;
12572  return 0;
12573}
12574_ACEOF
12575if ac_fn_c_try_compile "$LINENO"; then :
12576  ac_cv_sys_file_offset_bits=64; break
12577fi
12578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12579  ac_cv_sys_file_offset_bits=unknown
12580  break
12581done
12582fi
12583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12584$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12585case $ac_cv_sys_file_offset_bits in #(
12586  no | unknown) ;;
12587  *)
12588cat >>confdefs.h <<_ACEOF
12589#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12590_ACEOF
12591;;
12592esac
12593rm -rf conftest*
12594  if test $ac_cv_sys_file_offset_bits = unknown; then
12595    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12596$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12597if ${ac_cv_sys_large_files+:} false; then :
12598  $as_echo_n "(cached) " >&6
12599else
12600  while :; do
12601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602/* end confdefs.h.  */
12603#include <sys/types.h>
12604 /* Check that off_t can represent 2**63 - 1 correctly.
12605    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12606    since some C++ compilers masquerading as C compilers
12607    incorrectly reject 9223372036854775807.  */
12608#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12609  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12610		       && LARGE_OFF_T % 2147483647 == 1)
12611		      ? 1 : -1];
12612int
12613main ()
12614{
12615
12616  ;
12617  return 0;
12618}
12619_ACEOF
12620if ac_fn_c_try_compile "$LINENO"; then :
12621  ac_cv_sys_large_files=no; break
12622fi
12623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12625/* end confdefs.h.  */
12626#define _LARGE_FILES 1
12627#include <sys/types.h>
12628 /* Check that off_t can represent 2**63 - 1 correctly.
12629    We can't simply define LARGE_OFF_T to be 9223372036854775807,
12630    since some C++ compilers masquerading as C compilers
12631    incorrectly reject 9223372036854775807.  */
12632#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12633  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12634		       && LARGE_OFF_T % 2147483647 == 1)
12635		      ? 1 : -1];
12636int
12637main ()
12638{
12639
12640  ;
12641  return 0;
12642}
12643_ACEOF
12644if ac_fn_c_try_compile "$LINENO"; then :
12645  ac_cv_sys_large_files=1; break
12646fi
12647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648  ac_cv_sys_large_files=unknown
12649  break
12650done
12651fi
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12653$as_echo "$ac_cv_sys_large_files" >&6; }
12654case $ac_cv_sys_large_files in #(
12655  no | unknown) ;;
12656  *)
12657cat >>confdefs.h <<_ACEOF
12658#define _LARGE_FILES $ac_cv_sys_large_files
12659_ACEOF
12660;;
12661esac
12662rm -rf conftest*
12663  fi
12664
12665
12666fi
12667
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
12669$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
12670if ${ac_cv_sys_largefile_source+:} false; then :
12671  $as_echo_n "(cached) " >&6
12672else
12673  while :; do
12674  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12675/* end confdefs.h.  */
12676#include <sys/types.h> /* for off_t */
12677     #include <stdio.h>
12678int
12679main ()
12680{
12681int (*fp) (FILE *, off_t, int) = fseeko;
12682     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12683  ;
12684  return 0;
12685}
12686_ACEOF
12687if ac_fn_c_try_link "$LINENO"; then :
12688  ac_cv_sys_largefile_source=no; break
12689fi
12690rm -f core conftest.err conftest.$ac_objext \
12691    conftest$ac_exeext conftest.$ac_ext
12692  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693/* end confdefs.h.  */
12694#define _LARGEFILE_SOURCE 1
12695#include <sys/types.h> /* for off_t */
12696     #include <stdio.h>
12697int
12698main ()
12699{
12700int (*fp) (FILE *, off_t, int) = fseeko;
12701     return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
12702  ;
12703  return 0;
12704}
12705_ACEOF
12706if ac_fn_c_try_link "$LINENO"; then :
12707  ac_cv_sys_largefile_source=1; break
12708fi
12709rm -f core conftest.err conftest.$ac_objext \
12710    conftest$ac_exeext conftest.$ac_ext
12711  ac_cv_sys_largefile_source=unknown
12712  break
12713done
12714fi
12715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
12716$as_echo "$ac_cv_sys_largefile_source" >&6; }
12717case $ac_cv_sys_largefile_source in #(
12718  no | unknown) ;;
12719  *)
12720cat >>confdefs.h <<_ACEOF
12721#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
12722_ACEOF
12723;;
12724esac
12725rm -rf conftest*
12726
12727# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
12728# in glibc 2.1.3, but that breaks too many other things.
12729# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
12730if test $ac_cv_sys_largefile_source != unknown; then
12731
12732$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
12733
12734fi
12735
12736LFS_CPPFLAGS=''
12737if test "$enable_largefile" != no; then
12738    case $ac_cv_sys_file_offset_bits in
12739    no)
12740        # nothing to do here as the host supports LFS fine
12741        ;;
12742    unknown)
12743        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
12744$as_echo_n "checking for native large file support... " >&6; }
12745        if test "$cross_compiling" = yes; then :
12746  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12748as_fn_error $? "cannot run test program while cross compiling
12749See \`config.log' for more details" "$LINENO" 5; }
12750else
12751  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752/* end confdefs.h.  */
12753#include <unistd.h>
12754          main () {
12755          exit(!(sizeof(off_t) == 8));
12756        }
12757int
12758main ()
12759{
12760
12761  ;
12762  return 0;
12763}
12764_ACEOF
12765if ac_fn_c_try_run "$LINENO"; then :
12766  ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
12767
12768         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12769$as_echo "yes" >&6; }
12770else
12771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12772$as_echo "no" >&6; }
12773fi
12774rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12775  conftest.$ac_objext conftest.beam conftest.$ac_ext
12776fi
12777
12778        ;;
12779    *)
12780        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
12781        ;;
12782    esac
12783    if test "$ac_cv_sys_large_files" != 'no'; then
12784        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
12785    fi
12786    if test "$ac_cv_sys_largefile_source" != 'no'; then
12787        LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
12788    fi
12789fi
12790
12791
12792# Configure libtool
12793enable_dlopen=yes
12794
12795
12796
12797case `pwd` in
12798  *\ * | *\	*)
12799    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
12800$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
12801esac
12802
12803
12804
12805macro_version='2.4.6'
12806macro_revision='2.4.6'
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820ltmain=$ac_aux_dir/ltmain.sh
12821
12822# Backslashify metacharacters that are still active within
12823# double-quoted strings.
12824sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12825
12826# Same as above, but do not quote variable references.
12827double_quote_subst='s/\(["`\\]\)/\\\1/g'
12828
12829# Sed substitution to delay expansion of an escaped shell variable in a
12830# double_quote_subst'ed string.
12831delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12832
12833# Sed substitution to delay expansion of an escaped single quote.
12834delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12835
12836# Sed substitution to avoid accidental globbing in evaled expressions
12837no_glob_subst='s/\*/\\\*/g'
12838
12839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
12840$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
12841if ${lt_cv_path_NM+:} false; then :
12842  $as_echo_n "(cached) " >&6
12843else
12844  if test -n "$NM"; then
12845  # Let the user override the test.
12846  lt_cv_path_NM=$NM
12847else
12848  lt_nm_to_check=${ac_tool_prefix}nm
12849  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
12850    lt_nm_to_check="$lt_nm_to_check nm"
12851  fi
12852  for lt_tmp_nm in $lt_nm_to_check; do
12853    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12854    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
12855      IFS=$lt_save_ifs
12856      test -z "$ac_dir" && ac_dir=.
12857      tmp_nm=$ac_dir/$lt_tmp_nm
12858      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
12859	# Check to see if the nm accepts a BSD-compat flag.
12860	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
12861	#   nm: unknown option "B" ignored
12862	# Tru64's nm complains that /dev/null is an invalid object file
12863	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
12864	case $build_os in
12865	mingw*) lt_bad_file=conftest.nm/nofile ;;
12866	*) lt_bad_file=/dev/null ;;
12867	esac
12868	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
12869	*$lt_bad_file* | *'Invalid file or object type'*)
12870	  lt_cv_path_NM="$tmp_nm -B"
12871	  break 2
12872	  ;;
12873	*)
12874	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
12875	  */dev/null*)
12876	    lt_cv_path_NM="$tmp_nm -p"
12877	    break 2
12878	    ;;
12879	  *)
12880	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
12881	    continue # so that we can try to find one that supports BSD flags
12882	    ;;
12883	  esac
12884	  ;;
12885	esac
12886      fi
12887    done
12888    IFS=$lt_save_ifs
12889  done
12890  : ${lt_cv_path_NM=no}
12891fi
12892fi
12893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
12894$as_echo "$lt_cv_path_NM" >&6; }
12895if test no != "$lt_cv_path_NM"; then
12896  NM=$lt_cv_path_NM
12897else
12898  # Didn't find any BSD compatible name lister, look for dumpbin.
12899  if test -n "$DUMPBIN"; then :
12900    # Let the user override the test.
12901  else
12902    if test -n "$ac_tool_prefix"; then
12903  for ac_prog in dumpbin "link -dump"
12904  do
12905    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12908$as_echo_n "checking for $ac_word... " >&6; }
12909if ${ac_cv_prog_DUMPBIN+:} false; then :
12910  $as_echo_n "(cached) " >&6
12911else
12912  if test -n "$DUMPBIN"; then
12913  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
12914else
12915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916for as_dir in $PATH
12917do
12918  IFS=$as_save_IFS
12919  test -z "$as_dir" && as_dir=.
12920    for ac_exec_ext in '' $ac_executable_extensions; do
12921  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
12923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12924    break 2
12925  fi
12926done
12927  done
12928IFS=$as_save_IFS
12929
12930fi
12931fi
12932DUMPBIN=$ac_cv_prog_DUMPBIN
12933if test -n "$DUMPBIN"; then
12934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
12935$as_echo "$DUMPBIN" >&6; }
12936else
12937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12938$as_echo "no" >&6; }
12939fi
12940
12941
12942    test -n "$DUMPBIN" && break
12943  done
12944fi
12945if test -z "$DUMPBIN"; then
12946  ac_ct_DUMPBIN=$DUMPBIN
12947  for ac_prog in dumpbin "link -dump"
12948do
12949  # Extract the first word of "$ac_prog", so it can be a program name with args.
12950set dummy $ac_prog; ac_word=$2
12951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12952$as_echo_n "checking for $ac_word... " >&6; }
12953if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
12954  $as_echo_n "(cached) " >&6
12955else
12956  if test -n "$ac_ct_DUMPBIN"; then
12957  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
12958else
12959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12960for as_dir in $PATH
12961do
12962  IFS=$as_save_IFS
12963  test -z "$as_dir" && as_dir=.
12964    for ac_exec_ext in '' $ac_executable_extensions; do
12965  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12966    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
12967    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12968    break 2
12969  fi
12970done
12971  done
12972IFS=$as_save_IFS
12973
12974fi
12975fi
12976ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
12977if test -n "$ac_ct_DUMPBIN"; then
12978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
12979$as_echo "$ac_ct_DUMPBIN" >&6; }
12980else
12981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12982$as_echo "no" >&6; }
12983fi
12984
12985
12986  test -n "$ac_ct_DUMPBIN" && break
12987done
12988
12989  if test "x$ac_ct_DUMPBIN" = x; then
12990    DUMPBIN=":"
12991  else
12992    case $cross_compiling:$ac_tool_warned in
12993yes:)
12994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12996ac_tool_warned=yes ;;
12997esac
12998    DUMPBIN=$ac_ct_DUMPBIN
12999  fi
13000fi
13001
13002    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
13003    *COFF*)
13004      DUMPBIN="$DUMPBIN -symbols -headers"
13005      ;;
13006    *)
13007      DUMPBIN=:
13008      ;;
13009    esac
13010  fi
13011
13012  if test : != "$DUMPBIN"; then
13013    NM=$DUMPBIN
13014  fi
13015fi
13016test -z "$NM" && NM=nm
13017
13018
13019
13020
13021
13022
13023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
13024$as_echo_n "checking the name lister ($NM) interface... " >&6; }
13025if ${lt_cv_nm_interface+:} false; then :
13026  $as_echo_n "(cached) " >&6
13027else
13028  lt_cv_nm_interface="BSD nm"
13029  echo "int some_variable = 0;" > conftest.$ac_ext
13030  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
13031  (eval "$ac_compile" 2>conftest.err)
13032  cat conftest.err >&5
13033  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
13034  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
13035  cat conftest.err >&5
13036  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
13037  cat conftest.out >&5
13038  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
13039    lt_cv_nm_interface="MS dumpbin"
13040  fi
13041  rm -f conftest*
13042fi
13043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
13044$as_echo "$lt_cv_nm_interface" >&6; }
13045
13046# find the maximum length of command line arguments
13047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
13048$as_echo_n "checking the maximum length of command line arguments... " >&6; }
13049if ${lt_cv_sys_max_cmd_len+:} false; then :
13050  $as_echo_n "(cached) " >&6
13051else
13052    i=0
13053  teststring=ABCD
13054
13055  case $build_os in
13056  msdosdjgpp*)
13057    # On DJGPP, this test can blow up pretty badly due to problems in libc
13058    # (any single argument exceeding 2000 bytes causes a buffer overrun
13059    # during glob expansion).  Even if it were fixed, the result of this
13060    # check would be larger than it should be.
13061    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
13062    ;;
13063
13064  gnu*)
13065    # Under GNU Hurd, this test is not required because there is
13066    # no limit to the length of command line arguments.
13067    # Libtool will interpret -1 as no limit whatsoever
13068    lt_cv_sys_max_cmd_len=-1;
13069    ;;
13070
13071  cygwin* | mingw* | cegcc*)
13072    # On Win9x/ME, this test blows up -- it succeeds, but takes
13073    # about 5 minutes as the teststring grows exponentially.
13074    # Worse, since 9x/ME are not pre-emptively multitasking,
13075    # you end up with a "frozen" computer, even though with patience
13076    # the test eventually succeeds (with a max line length of 256k).
13077    # Instead, let's just punt: use the minimum linelength reported by
13078    # all of the supported platforms: 8192 (on NT/2K/XP).
13079    lt_cv_sys_max_cmd_len=8192;
13080    ;;
13081
13082  mint*)
13083    # On MiNT this can take a long time and run out of memory.
13084    lt_cv_sys_max_cmd_len=8192;
13085    ;;
13086
13087  amigaos*)
13088    # On AmigaOS with pdksh, this test takes hours, literally.
13089    # So we just punt and use a minimum line length of 8192.
13090    lt_cv_sys_max_cmd_len=8192;
13091    ;;
13092
13093  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
13094    # This has been around since 386BSD, at least.  Likely further.
13095    if test -x /sbin/sysctl; then
13096      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
13097    elif test -x /usr/sbin/sysctl; then
13098      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
13099    else
13100      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
13101    fi
13102    # And add a safety zone
13103    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13104    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13105    ;;
13106
13107  interix*)
13108    # We know the value 262144 and hardcode it with a safety zone (like BSD)
13109    lt_cv_sys_max_cmd_len=196608
13110    ;;
13111
13112  os2*)
13113    # The test takes a long time on OS/2.
13114    lt_cv_sys_max_cmd_len=8192
13115    ;;
13116
13117  osf*)
13118    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
13119    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
13120    # nice to cause kernel panics so lets avoid the loop below.
13121    # First set a reasonable default.
13122    lt_cv_sys_max_cmd_len=16384
13123    #
13124    if test -x /sbin/sysconfig; then
13125      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
13126        *1*) lt_cv_sys_max_cmd_len=-1 ;;
13127      esac
13128    fi
13129    ;;
13130  sco3.2v5*)
13131    lt_cv_sys_max_cmd_len=102400
13132    ;;
13133  sysv5* | sco5v6* | sysv4.2uw2*)
13134    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
13135    if test -n "$kargmax"; then
13136      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
13137    else
13138      lt_cv_sys_max_cmd_len=32768
13139    fi
13140    ;;
13141  *)
13142    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
13143    if test -n "$lt_cv_sys_max_cmd_len" && \
13144       test undefined != "$lt_cv_sys_max_cmd_len"; then
13145      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
13146      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
13147    else
13148      # Make teststring a little bigger before we do anything with it.
13149      # a 1K string should be a reasonable start.
13150      for i in 1 2 3 4 5 6 7 8; do
13151        teststring=$teststring$teststring
13152      done
13153      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
13154      # If test is not a shell built-in, we'll probably end up computing a
13155      # maximum length that is only half of the actual maximum length, but
13156      # we can't tell.
13157      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
13158	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
13159	      test 17 != "$i" # 1/2 MB should be enough
13160      do
13161        i=`expr $i + 1`
13162        teststring=$teststring$teststring
13163      done
13164      # Only check the string length outside the loop.
13165      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
13166      teststring=
13167      # Add a significant safety factor because C++ compilers can tack on
13168      # massive amounts of additional arguments before passing them to the
13169      # linker.  It appears as though 1/2 is a usable value.
13170      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
13171    fi
13172    ;;
13173  esac
13174
13175fi
13176
13177if test -n "$lt_cv_sys_max_cmd_len"; then
13178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
13179$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
13180else
13181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13182$as_echo "none" >&6; }
13183fi
13184max_cmd_len=$lt_cv_sys_max_cmd_len
13185
13186
13187
13188
13189
13190
13191: ${CP="cp -f"}
13192: ${MV="mv -f"}
13193: ${RM="rm -f"}
13194
13195if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13196  lt_unset=unset
13197else
13198  lt_unset=false
13199fi
13200
13201
13202
13203
13204
13205# test EBCDIC or ASCII
13206case `echo X|tr X '\101'` in
13207 A) # ASCII based system
13208    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
13209  lt_SP2NL='tr \040 \012'
13210  lt_NL2SP='tr \015\012 \040\040'
13211  ;;
13212 *) # EBCDIC based system
13213  lt_SP2NL='tr \100 \n'
13214  lt_NL2SP='tr \r\n \100\100'
13215  ;;
13216esac
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
13227$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
13228if ${lt_cv_to_host_file_cmd+:} false; then :
13229  $as_echo_n "(cached) " >&6
13230else
13231  case $host in
13232  *-*-mingw* )
13233    case $build in
13234      *-*-mingw* ) # actually msys
13235        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
13236        ;;
13237      *-*-cygwin* )
13238        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
13239        ;;
13240      * ) # otherwise, assume *nix
13241        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
13242        ;;
13243    esac
13244    ;;
13245  *-*-cygwin* )
13246    case $build in
13247      *-*-mingw* ) # actually msys
13248        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
13249        ;;
13250      *-*-cygwin* )
13251        lt_cv_to_host_file_cmd=func_convert_file_noop
13252        ;;
13253      * ) # otherwise, assume *nix
13254        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
13255        ;;
13256    esac
13257    ;;
13258  * ) # unhandled hosts (and "normal" native builds)
13259    lt_cv_to_host_file_cmd=func_convert_file_noop
13260    ;;
13261esac
13262
13263fi
13264
13265to_host_file_cmd=$lt_cv_to_host_file_cmd
13266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
13267$as_echo "$lt_cv_to_host_file_cmd" >&6; }
13268
13269
13270
13271
13272
13273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
13274$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
13275if ${lt_cv_to_tool_file_cmd+:} false; then :
13276  $as_echo_n "(cached) " >&6
13277else
13278  #assume ordinary cross tools, or native build.
13279lt_cv_to_tool_file_cmd=func_convert_file_noop
13280case $host in
13281  *-*-mingw* )
13282    case $build in
13283      *-*-mingw* ) # actually msys
13284        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
13285        ;;
13286    esac
13287    ;;
13288esac
13289
13290fi
13291
13292to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
13294$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
13295
13296
13297
13298
13299
13300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
13301$as_echo_n "checking for $LD option to reload object files... " >&6; }
13302if ${lt_cv_ld_reload_flag+:} false; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  lt_cv_ld_reload_flag='-r'
13306fi
13307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
13308$as_echo "$lt_cv_ld_reload_flag" >&6; }
13309reload_flag=$lt_cv_ld_reload_flag
13310case $reload_flag in
13311"" | " "*) ;;
13312*) reload_flag=" $reload_flag" ;;
13313esac
13314reload_cmds='$LD$reload_flag -o $output$reload_objs'
13315case $host_os in
13316  cygwin* | mingw* | pw32* | cegcc*)
13317    if test yes != "$GCC"; then
13318      reload_cmds=false
13319    fi
13320    ;;
13321  darwin*)
13322    if test yes = "$GCC"; then
13323      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
13324    else
13325      reload_cmds='$LD$reload_flag -o $output$reload_objs'
13326    fi
13327    ;;
13328esac
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338if test -n "$ac_tool_prefix"; then
13339  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13340set dummy ${ac_tool_prefix}objdump; ac_word=$2
13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13342$as_echo_n "checking for $ac_word... " >&6; }
13343if ${ac_cv_prog_OBJDUMP+:} false; then :
13344  $as_echo_n "(cached) " >&6
13345else
13346  if test -n "$OBJDUMP"; then
13347  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13348else
13349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13350for as_dir in $PATH
13351do
13352  IFS=$as_save_IFS
13353  test -z "$as_dir" && as_dir=.
13354    for ac_exec_ext in '' $ac_executable_extensions; do
13355  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13356    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13357    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13358    break 2
13359  fi
13360done
13361  done
13362IFS=$as_save_IFS
13363
13364fi
13365fi
13366OBJDUMP=$ac_cv_prog_OBJDUMP
13367if test -n "$OBJDUMP"; then
13368  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13369$as_echo "$OBJDUMP" >&6; }
13370else
13371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372$as_echo "no" >&6; }
13373fi
13374
13375
13376fi
13377if test -z "$ac_cv_prog_OBJDUMP"; then
13378  ac_ct_OBJDUMP=$OBJDUMP
13379  # Extract the first word of "objdump", so it can be a program name with args.
13380set dummy objdump; ac_word=$2
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13382$as_echo_n "checking for $ac_word... " >&6; }
13383if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
13384  $as_echo_n "(cached) " >&6
13385else
13386  if test -n "$ac_ct_OBJDUMP"; then
13387  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13388else
13389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390for as_dir in $PATH
13391do
13392  IFS=$as_save_IFS
13393  test -z "$as_dir" && as_dir=.
13394    for ac_exec_ext in '' $ac_executable_extensions; do
13395  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13396    ac_cv_prog_ac_ct_OBJDUMP="objdump"
13397    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398    break 2
13399  fi
13400done
13401  done
13402IFS=$as_save_IFS
13403
13404fi
13405fi
13406ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13407if test -n "$ac_ct_OBJDUMP"; then
13408  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13409$as_echo "$ac_ct_OBJDUMP" >&6; }
13410else
13411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13412$as_echo "no" >&6; }
13413fi
13414
13415  if test "x$ac_ct_OBJDUMP" = x; then
13416    OBJDUMP="false"
13417  else
13418    case $cross_compiling:$ac_tool_warned in
13419yes:)
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13421$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13422ac_tool_warned=yes ;;
13423esac
13424    OBJDUMP=$ac_ct_OBJDUMP
13425  fi
13426else
13427  OBJDUMP="$ac_cv_prog_OBJDUMP"
13428fi
13429
13430test -z "$OBJDUMP" && OBJDUMP=objdump
13431
13432
13433
13434
13435
13436
13437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
13438$as_echo_n "checking how to recognize dependent libraries... " >&6; }
13439if ${lt_cv_deplibs_check_method+:} false; then :
13440  $as_echo_n "(cached) " >&6
13441else
13442  lt_cv_file_magic_cmd='$MAGIC_CMD'
13443lt_cv_file_magic_test_file=
13444lt_cv_deplibs_check_method='unknown'
13445# Need to set the preceding variable on all platforms that support
13446# interlibrary dependencies.
13447# 'none' -- dependencies not supported.
13448# 'unknown' -- same as none, but documents that we really don't know.
13449# 'pass_all' -- all dependencies passed with no checks.
13450# 'test_compile' -- check by making test program.
13451# 'file_magic [[regex]]' -- check by looking for files in library path
13452# that responds to the $file_magic_cmd with a given extended regex.
13453# If you have 'file' or equivalent on your system and you're not sure
13454# whether 'pass_all' will *always* work, you probably want this one.
13455
13456case $host_os in
13457aix[4-9]*)
13458  lt_cv_deplibs_check_method=pass_all
13459  ;;
13460
13461beos*)
13462  lt_cv_deplibs_check_method=pass_all
13463  ;;
13464
13465bsdi[45]*)
13466  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
13467  lt_cv_file_magic_cmd='/usr/bin/file -L'
13468  lt_cv_file_magic_test_file=/shlib/libc.so
13469  ;;
13470
13471cygwin*)
13472  # func_win32_libid is a shell function defined in ltmain.sh
13473  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13474  lt_cv_file_magic_cmd='func_win32_libid'
13475  ;;
13476
13477mingw* | pw32*)
13478  # Base MSYS/MinGW do not provide the 'file' command needed by
13479  # func_win32_libid shell function, so use a weaker test based on 'objdump',
13480  # unless we find 'file', for example because we are cross-compiling.
13481  if ( file / ) >/dev/null 2>&1; then
13482    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
13483    lt_cv_file_magic_cmd='func_win32_libid'
13484  else
13485    # Keep this pattern in sync with the one in func_win32_libid.
13486    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
13487    lt_cv_file_magic_cmd='$OBJDUMP -f'
13488  fi
13489  ;;
13490
13491cegcc*)
13492  # use the weaker test based on 'objdump'. See mingw*.
13493  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
13494  lt_cv_file_magic_cmd='$OBJDUMP -f'
13495  ;;
13496
13497darwin* | rhapsody*)
13498  lt_cv_deplibs_check_method=pass_all
13499  ;;
13500
13501freebsd* | dragonfly*)
13502  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13503    case $host_cpu in
13504    i*86 )
13505      # Not sure whether the presence of OpenBSD here was a mistake.
13506      # Let's accept both of them until this is cleared up.
13507      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
13508      lt_cv_file_magic_cmd=/usr/bin/file
13509      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
13510      ;;
13511    esac
13512  else
13513    lt_cv_deplibs_check_method=pass_all
13514  fi
13515  ;;
13516
13517haiku*)
13518  lt_cv_deplibs_check_method=pass_all
13519  ;;
13520
13521hpux10.20* | hpux11*)
13522  lt_cv_file_magic_cmd=/usr/bin/file
13523  case $host_cpu in
13524  ia64*)
13525    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
13526    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
13527    ;;
13528  hppa*64*)
13529    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]'
13530    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
13531    ;;
13532  *)
13533    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
13534    lt_cv_file_magic_test_file=/usr/lib/libc.sl
13535    ;;
13536  esac
13537  ;;
13538
13539interix[3-9]*)
13540  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
13541  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
13542  ;;
13543
13544irix5* | irix6* | nonstopux*)
13545  case $LD in
13546  *-32|*"-32 ") libmagic=32-bit;;
13547  *-n32|*"-n32 ") libmagic=N32;;
13548  *-64|*"-64 ") libmagic=64-bit;;
13549  *) libmagic=never-match;;
13550  esac
13551  lt_cv_deplibs_check_method=pass_all
13552  ;;
13553
13554# This must be glibc/ELF.
13555linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13556  lt_cv_deplibs_check_method=pass_all
13557  ;;
13558
13559netbsd*)
13560  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
13561    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13562  else
13563    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
13564  fi
13565  ;;
13566
13567newos6*)
13568  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
13569  lt_cv_file_magic_cmd=/usr/bin/file
13570  lt_cv_file_magic_test_file=/usr/lib/libnls.so
13571  ;;
13572
13573*nto* | *qnx*)
13574  lt_cv_deplibs_check_method=pass_all
13575  ;;
13576
13577openbsd* | bitrig*)
13578  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13579    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
13580  else
13581    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
13582  fi
13583  ;;
13584
13585osf3* | osf4* | osf5*)
13586  lt_cv_deplibs_check_method=pass_all
13587  ;;
13588
13589rdos*)
13590  lt_cv_deplibs_check_method=pass_all
13591  ;;
13592
13593solaris*)
13594  lt_cv_deplibs_check_method=pass_all
13595  ;;
13596
13597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13598  lt_cv_deplibs_check_method=pass_all
13599  ;;
13600
13601sysv4 | sysv4.3*)
13602  case $host_vendor in
13603  motorola)
13604    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
13605    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
13606    ;;
13607  ncr)
13608    lt_cv_deplibs_check_method=pass_all
13609    ;;
13610  sequent)
13611    lt_cv_file_magic_cmd='/bin/file'
13612    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
13613    ;;
13614  sni)
13615    lt_cv_file_magic_cmd='/bin/file'
13616    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
13617    lt_cv_file_magic_test_file=/lib/libc.so
13618    ;;
13619  siemens)
13620    lt_cv_deplibs_check_method=pass_all
13621    ;;
13622  pc)
13623    lt_cv_deplibs_check_method=pass_all
13624    ;;
13625  esac
13626  ;;
13627
13628tpf*)
13629  lt_cv_deplibs_check_method=pass_all
13630  ;;
13631os2*)
13632  lt_cv_deplibs_check_method=pass_all
13633  ;;
13634esac
13635
13636fi
13637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
13638$as_echo "$lt_cv_deplibs_check_method" >&6; }
13639
13640file_magic_glob=
13641want_nocaseglob=no
13642if test "$build" = "$host"; then
13643  case $host_os in
13644  mingw* | pw32*)
13645    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
13646      want_nocaseglob=yes
13647    else
13648      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
13649    fi
13650    ;;
13651  esac
13652fi
13653
13654file_magic_cmd=$lt_cv_file_magic_cmd
13655deplibs_check_method=$lt_cv_deplibs_check_method
13656test -z "$deplibs_check_method" && deplibs_check_method=unknown
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679if test -n "$ac_tool_prefix"; then
13680  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13681set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13683$as_echo_n "checking for $ac_word... " >&6; }
13684if ${ac_cv_prog_DLLTOOL+:} false; then :
13685  $as_echo_n "(cached) " >&6
13686else
13687  if test -n "$DLLTOOL"; then
13688  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13689else
13690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691for as_dir in $PATH
13692do
13693  IFS=$as_save_IFS
13694  test -z "$as_dir" && as_dir=.
13695    for ac_exec_ext in '' $ac_executable_extensions; do
13696  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13697    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13698    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13699    break 2
13700  fi
13701done
13702  done
13703IFS=$as_save_IFS
13704
13705fi
13706fi
13707DLLTOOL=$ac_cv_prog_DLLTOOL
13708if test -n "$DLLTOOL"; then
13709  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13710$as_echo "$DLLTOOL" >&6; }
13711else
13712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13713$as_echo "no" >&6; }
13714fi
13715
13716
13717fi
13718if test -z "$ac_cv_prog_DLLTOOL"; then
13719  ac_ct_DLLTOOL=$DLLTOOL
13720  # Extract the first word of "dlltool", so it can be a program name with args.
13721set dummy dlltool; ac_word=$2
13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13723$as_echo_n "checking for $ac_word... " >&6; }
13724if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
13725  $as_echo_n "(cached) " >&6
13726else
13727  if test -n "$ac_ct_DLLTOOL"; then
13728  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13729else
13730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13731for as_dir in $PATH
13732do
13733  IFS=$as_save_IFS
13734  test -z "$as_dir" && as_dir=.
13735    for ac_exec_ext in '' $ac_executable_extensions; do
13736  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13737    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13738    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13739    break 2
13740  fi
13741done
13742  done
13743IFS=$as_save_IFS
13744
13745fi
13746fi
13747ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13748if test -n "$ac_ct_DLLTOOL"; then
13749  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13750$as_echo "$ac_ct_DLLTOOL" >&6; }
13751else
13752  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753$as_echo "no" >&6; }
13754fi
13755
13756  if test "x$ac_ct_DLLTOOL" = x; then
13757    DLLTOOL="false"
13758  else
13759    case $cross_compiling:$ac_tool_warned in
13760yes:)
13761{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13763ac_tool_warned=yes ;;
13764esac
13765    DLLTOOL=$ac_ct_DLLTOOL
13766  fi
13767else
13768  DLLTOOL="$ac_cv_prog_DLLTOOL"
13769fi
13770
13771test -z "$DLLTOOL" && DLLTOOL=dlltool
13772
13773
13774
13775
13776
13777
13778
13779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
13780$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
13781if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
13782  $as_echo_n "(cached) " >&6
13783else
13784  lt_cv_sharedlib_from_linklib_cmd='unknown'
13785
13786case $host_os in
13787cygwin* | mingw* | pw32* | cegcc*)
13788  # two different shell functions defined in ltmain.sh;
13789  # decide which one to use based on capabilities of $DLLTOOL
13790  case `$DLLTOOL --help 2>&1` in
13791  *--identify-strict*)
13792    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
13793    ;;
13794  *)
13795    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
13796    ;;
13797  esac
13798  ;;
13799*)
13800  # fallback: assume linklib IS sharedlib
13801  lt_cv_sharedlib_from_linklib_cmd=$ECHO
13802  ;;
13803esac
13804
13805fi
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
13807$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
13808sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
13809test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
13810
13811
13812
13813
13814
13815
13816
13817if test -n "$ac_tool_prefix"; then
13818  for ac_prog in ar
13819  do
13820    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13821set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13823$as_echo_n "checking for $ac_word... " >&6; }
13824if ${ac_cv_prog_AR+:} false; then :
13825  $as_echo_n "(cached) " >&6
13826else
13827  if test -n "$AR"; then
13828  ac_cv_prog_AR="$AR" # Let the user override the test.
13829else
13830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13831for as_dir in $PATH
13832do
13833  IFS=$as_save_IFS
13834  test -z "$as_dir" && as_dir=.
13835    for ac_exec_ext in '' $ac_executable_extensions; do
13836  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13837    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
13838    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13839    break 2
13840  fi
13841done
13842  done
13843IFS=$as_save_IFS
13844
13845fi
13846fi
13847AR=$ac_cv_prog_AR
13848if test -n "$AR"; then
13849  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
13850$as_echo "$AR" >&6; }
13851else
13852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13853$as_echo "no" >&6; }
13854fi
13855
13856
13857    test -n "$AR" && break
13858  done
13859fi
13860if test -z "$AR"; then
13861  ac_ct_AR=$AR
13862  for ac_prog in ar
13863do
13864  # Extract the first word of "$ac_prog", so it can be a program name with args.
13865set dummy $ac_prog; ac_word=$2
13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13867$as_echo_n "checking for $ac_word... " >&6; }
13868if ${ac_cv_prog_ac_ct_AR+:} false; then :
13869  $as_echo_n "(cached) " >&6
13870else
13871  if test -n "$ac_ct_AR"; then
13872  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13873else
13874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13875for as_dir in $PATH
13876do
13877  IFS=$as_save_IFS
13878  test -z "$as_dir" && as_dir=.
13879    for ac_exec_ext in '' $ac_executable_extensions; do
13880  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13881    ac_cv_prog_ac_ct_AR="$ac_prog"
13882    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13883    break 2
13884  fi
13885done
13886  done
13887IFS=$as_save_IFS
13888
13889fi
13890fi
13891ac_ct_AR=$ac_cv_prog_ac_ct_AR
13892if test -n "$ac_ct_AR"; then
13893  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
13894$as_echo "$ac_ct_AR" >&6; }
13895else
13896  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13897$as_echo "no" >&6; }
13898fi
13899
13900
13901  test -n "$ac_ct_AR" && break
13902done
13903
13904  if test "x$ac_ct_AR" = x; then
13905    AR="false"
13906  else
13907    case $cross_compiling:$ac_tool_warned in
13908yes:)
13909{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13910$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13911ac_tool_warned=yes ;;
13912esac
13913    AR=$ac_ct_AR
13914  fi
13915fi
13916
13917: ${AR=ar}
13918: ${AR_FLAGS=cru}
13919
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
13931$as_echo_n "checking for archiver @FILE support... " >&6; }
13932if ${lt_cv_ar_at_file+:} false; then :
13933  $as_echo_n "(cached) " >&6
13934else
13935  lt_cv_ar_at_file=no
13936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13937/* end confdefs.h.  */
13938
13939int
13940main ()
13941{
13942
13943  ;
13944  return 0;
13945}
13946_ACEOF
13947if ac_fn_c_try_compile "$LINENO"; then :
13948  echo conftest.$ac_objext > conftest.lst
13949      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
13950      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13951  (eval $lt_ar_try) 2>&5
13952  ac_status=$?
13953  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954  test $ac_status = 0; }
13955      if test 0 -eq "$ac_status"; then
13956	# Ensure the archiver fails upon bogus file names.
13957	rm -f conftest.$ac_objext libconftest.a
13958	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
13959  (eval $lt_ar_try) 2>&5
13960  ac_status=$?
13961  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13962  test $ac_status = 0; }
13963	if test 0 -ne "$ac_status"; then
13964          lt_cv_ar_at_file=@
13965        fi
13966      fi
13967      rm -f conftest.* libconftest.a
13968
13969fi
13970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13971
13972fi
13973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
13974$as_echo "$lt_cv_ar_at_file" >&6; }
13975
13976if test no = "$lt_cv_ar_at_file"; then
13977  archiver_list_spec=
13978else
13979  archiver_list_spec=$lt_cv_ar_at_file
13980fi
13981
13982
13983
13984
13985
13986
13987
13988if test -n "$ac_tool_prefix"; then
13989  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13990set dummy ${ac_tool_prefix}strip; ac_word=$2
13991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13992$as_echo_n "checking for $ac_word... " >&6; }
13993if ${ac_cv_prog_STRIP+:} false; then :
13994  $as_echo_n "(cached) " >&6
13995else
13996  if test -n "$STRIP"; then
13997  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13998else
13999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14000for as_dir in $PATH
14001do
14002  IFS=$as_save_IFS
14003  test -z "$as_dir" && as_dir=.
14004    for ac_exec_ext in '' $ac_executable_extensions; do
14005  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14006    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
14007    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14008    break 2
14009  fi
14010done
14011  done
14012IFS=$as_save_IFS
14013
14014fi
14015fi
14016STRIP=$ac_cv_prog_STRIP
14017if test -n "$STRIP"; then
14018  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
14019$as_echo "$STRIP" >&6; }
14020else
14021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022$as_echo "no" >&6; }
14023fi
14024
14025
14026fi
14027if test -z "$ac_cv_prog_STRIP"; then
14028  ac_ct_STRIP=$STRIP
14029  # Extract the first word of "strip", so it can be a program name with args.
14030set dummy strip; ac_word=$2
14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14032$as_echo_n "checking for $ac_word... " >&6; }
14033if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
14034  $as_echo_n "(cached) " >&6
14035else
14036  if test -n "$ac_ct_STRIP"; then
14037  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
14038else
14039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14040for as_dir in $PATH
14041do
14042  IFS=$as_save_IFS
14043  test -z "$as_dir" && as_dir=.
14044    for ac_exec_ext in '' $ac_executable_extensions; do
14045  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14046    ac_cv_prog_ac_ct_STRIP="strip"
14047    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14048    break 2
14049  fi
14050done
14051  done
14052IFS=$as_save_IFS
14053
14054fi
14055fi
14056ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
14057if test -n "$ac_ct_STRIP"; then
14058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
14059$as_echo "$ac_ct_STRIP" >&6; }
14060else
14061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14062$as_echo "no" >&6; }
14063fi
14064
14065  if test "x$ac_ct_STRIP" = x; then
14066    STRIP=":"
14067  else
14068    case $cross_compiling:$ac_tool_warned in
14069yes:)
14070{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14071$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14072ac_tool_warned=yes ;;
14073esac
14074    STRIP=$ac_ct_STRIP
14075  fi
14076else
14077  STRIP="$ac_cv_prog_STRIP"
14078fi
14079
14080test -z "$STRIP" && STRIP=:
14081
14082
14083
14084
14085
14086
14087if test -n "$ac_tool_prefix"; then
14088  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
14089set dummy ${ac_tool_prefix}ranlib; ac_word=$2
14090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14091$as_echo_n "checking for $ac_word... " >&6; }
14092if ${ac_cv_prog_RANLIB+:} false; then :
14093  $as_echo_n "(cached) " >&6
14094else
14095  if test -n "$RANLIB"; then
14096  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
14097else
14098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099for as_dir in $PATH
14100do
14101  IFS=$as_save_IFS
14102  test -z "$as_dir" && as_dir=.
14103    for ac_exec_ext in '' $ac_executable_extensions; do
14104  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
14106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14107    break 2
14108  fi
14109done
14110  done
14111IFS=$as_save_IFS
14112
14113fi
14114fi
14115RANLIB=$ac_cv_prog_RANLIB
14116if test -n "$RANLIB"; then
14117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
14118$as_echo "$RANLIB" >&6; }
14119else
14120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121$as_echo "no" >&6; }
14122fi
14123
14124
14125fi
14126if test -z "$ac_cv_prog_RANLIB"; then
14127  ac_ct_RANLIB=$RANLIB
14128  # Extract the first word of "ranlib", so it can be a program name with args.
14129set dummy ranlib; ac_word=$2
14130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131$as_echo_n "checking for $ac_word... " >&6; }
14132if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
14133  $as_echo_n "(cached) " >&6
14134else
14135  if test -n "$ac_ct_RANLIB"; then
14136  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
14137else
14138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139for as_dir in $PATH
14140do
14141  IFS=$as_save_IFS
14142  test -z "$as_dir" && as_dir=.
14143    for ac_exec_ext in '' $ac_executable_extensions; do
14144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145    ac_cv_prog_ac_ct_RANLIB="ranlib"
14146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14147    break 2
14148  fi
14149done
14150  done
14151IFS=$as_save_IFS
14152
14153fi
14154fi
14155ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
14156if test -n "$ac_ct_RANLIB"; then
14157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
14158$as_echo "$ac_ct_RANLIB" >&6; }
14159else
14160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161$as_echo "no" >&6; }
14162fi
14163
14164  if test "x$ac_ct_RANLIB" = x; then
14165    RANLIB=":"
14166  else
14167    case $cross_compiling:$ac_tool_warned in
14168yes:)
14169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14171ac_tool_warned=yes ;;
14172esac
14173    RANLIB=$ac_ct_RANLIB
14174  fi
14175else
14176  RANLIB="$ac_cv_prog_RANLIB"
14177fi
14178
14179test -z "$RANLIB" && RANLIB=:
14180
14181
14182
14183
14184
14185
14186# Determine commands to create old-style static archives.
14187old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
14188old_postinstall_cmds='chmod 644 $oldlib'
14189old_postuninstall_cmds=
14190
14191if test -n "$RANLIB"; then
14192  case $host_os in
14193  bitrig* | openbsd*)
14194    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
14195    ;;
14196  *)
14197    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
14198    ;;
14199  esac
14200  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
14201fi
14202
14203case $host_os in
14204  darwin*)
14205    lock_old_archive_extraction=yes ;;
14206  *)
14207    lock_old_archive_extraction=no ;;
14208esac
14209
14210
14211
14212
14213
14214
14215
14216
14217
14218
14219
14220
14221
14222
14223
14224
14225
14226
14227
14228
14229
14230
14231
14232
14233
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248# If no C compiler was specified, use CC.
14249LTCC=${LTCC-"$CC"}
14250
14251# If no C compiler flags were specified, use CFLAGS.
14252LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14253
14254# Allow CC to be a program name with arguments.
14255compiler=$CC
14256
14257
14258# Check for command to grab the raw symbol name followed by C symbol from nm.
14259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
14260$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
14261if ${lt_cv_sys_global_symbol_pipe+:} false; then :
14262  $as_echo_n "(cached) " >&6
14263else
14264
14265# These are sane defaults that work on at least a few old systems.
14266# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
14267
14268# Character class describing NM global symbol codes.
14269symcode='[BCDEGRST]'
14270
14271# Regexp to match symbols that can be accessed directly from C.
14272sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
14273
14274# Define system-specific variables.
14275case $host_os in
14276aix*)
14277  symcode='[BCDT]'
14278  ;;
14279cygwin* | mingw* | pw32* | cegcc*)
14280  symcode='[ABCDGISTW]'
14281  ;;
14282hpux*)
14283  if test ia64 = "$host_cpu"; then
14284    symcode='[ABCDEGRST]'
14285  fi
14286  ;;
14287irix* | nonstopux*)
14288  symcode='[BCDEGRST]'
14289  ;;
14290osf*)
14291  symcode='[BCDEGQRST]'
14292  ;;
14293solaris*)
14294  symcode='[BDRT]'
14295  ;;
14296sco3.2v5*)
14297  symcode='[DT]'
14298  ;;
14299sysv4.2uw2*)
14300  symcode='[DT]'
14301  ;;
14302sysv5* | sco5v6* | unixware* | OpenUNIX*)
14303  symcode='[ABDT]'
14304  ;;
14305sysv4)
14306  symcode='[DFNSTU]'
14307  ;;
14308esac
14309
14310# If we're using GNU nm, then use its standard symbol codes.
14311case `$NM -V 2>&1` in
14312*GNU* | *'with BFD'*)
14313  symcode='[ABCDGIRSTW]' ;;
14314esac
14315
14316if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14317  # Gets list of data symbols to import.
14318  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
14319  # Adjust the below global symbol transforms to fixup imported variables.
14320  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
14321  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
14322  lt_c_name_lib_hook="\
14323  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
14324  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
14325else
14326  # Disable hooks by default.
14327  lt_cv_sys_global_symbol_to_import=
14328  lt_cdecl_hook=
14329  lt_c_name_hook=
14330  lt_c_name_lib_hook=
14331fi
14332
14333# Transform an extracted symbol line into a proper C declaration.
14334# Some systems (esp. on ia64) link data and code symbols differently,
14335# so use this general approach.
14336lt_cv_sys_global_symbol_to_cdecl="sed -n"\
14337$lt_cdecl_hook\
14338" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
14339" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
14340
14341# Transform an extracted symbol line into symbol name and symbol address
14342lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
14343$lt_c_name_hook\
14344" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
14345" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
14346
14347# Transform an extracted symbol line into symbol name with lib prefix and
14348# symbol address.
14349lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
14350$lt_c_name_lib_hook\
14351" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
14352" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
14353" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
14354
14355# Handle CRLF in mingw tool chain
14356opt_cr=
14357case $build_os in
14358mingw*)
14359  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
14360  ;;
14361esac
14362
14363# Try without a prefix underscore, then with it.
14364for ac_symprfx in "" "_"; do
14365
14366  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
14367  symxfrm="\\1 $ac_symprfx\\2 \\2"
14368
14369  # Write the raw and C identifiers.
14370  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14371    # Fake it for dumpbin and say T for any non-static function,
14372    # D for any global variable and I for any imported variable.
14373    # Also find C++ and __fastcall symbols from MSVC++,
14374    # which start with @ or ?.
14375    lt_cv_sys_global_symbol_pipe="$AWK '"\
14376"     {last_section=section; section=\$ 3};"\
14377"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
14378"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
14379"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
14380"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
14381"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
14382"     \$ 0!~/External *\|/{next};"\
14383"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
14384"     {if(hide[section]) next};"\
14385"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
14386"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
14387"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
14388"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
14389"     ' prfx=^$ac_symprfx"
14390  else
14391    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
14392  fi
14393  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
14394
14395  # Check to see that the pipe works correctly.
14396  pipe_works=no
14397
14398  rm -f conftest*
14399  cat > conftest.$ac_ext <<_LT_EOF
14400#ifdef __cplusplus
14401extern "C" {
14402#endif
14403char nm_test_var;
14404void nm_test_func(void);
14405void nm_test_func(void){}
14406#ifdef __cplusplus
14407}
14408#endif
14409int main(){nm_test_var='a';nm_test_func();return(0);}
14410_LT_EOF
14411
14412  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14413  (eval $ac_compile) 2>&5
14414  ac_status=$?
14415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14416  test $ac_status = 0; }; then
14417    # Now try to grab the symbols.
14418    nlist=conftest.nm
14419    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
14420  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
14421  ac_status=$?
14422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423  test $ac_status = 0; } && test -s "$nlist"; then
14424      # Try sorting and uniquifying the output.
14425      if sort "$nlist" | uniq > "$nlist"T; then
14426	mv -f "$nlist"T "$nlist"
14427      else
14428	rm -f "$nlist"T
14429      fi
14430
14431      # Make sure that we snagged all the symbols we need.
14432      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
14433	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
14434	  cat <<_LT_EOF > conftest.$ac_ext
14435/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
14436#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
14437/* DATA imports from DLLs on WIN32 can't be const, because runtime
14438   relocations are performed -- see ld's documentation on pseudo-relocs.  */
14439# define LT_DLSYM_CONST
14440#elif defined __osf__
14441/* This system does not cope well with relocations in const data.  */
14442# define LT_DLSYM_CONST
14443#else
14444# define LT_DLSYM_CONST const
14445#endif
14446
14447#ifdef __cplusplus
14448extern "C" {
14449#endif
14450
14451_LT_EOF
14452	  # Now generate the symbol file.
14453	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
14454
14455	  cat <<_LT_EOF >> conftest.$ac_ext
14456
14457/* The mapping between symbol names and symbols.  */
14458LT_DLSYM_CONST struct {
14459  const char *name;
14460  void       *address;
14461}
14462lt__PROGRAM__LTX_preloaded_symbols[] =
14463{
14464  { "@PROGRAM@", (void *) 0 },
14465_LT_EOF
14466	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
14467	  cat <<\_LT_EOF >> conftest.$ac_ext
14468  {0, (void *) 0}
14469};
14470
14471/* This works around a problem in FreeBSD linker */
14472#ifdef FREEBSD_WORKAROUND
14473static const void *lt_preloaded_setup() {
14474  return lt__PROGRAM__LTX_preloaded_symbols;
14475}
14476#endif
14477
14478#ifdef __cplusplus
14479}
14480#endif
14481_LT_EOF
14482	  # Now try linking the two files.
14483	  mv conftest.$ac_objext conftstm.$ac_objext
14484	  lt_globsym_save_LIBS=$LIBS
14485	  lt_globsym_save_CFLAGS=$CFLAGS
14486	  LIBS=conftstm.$ac_objext
14487	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
14488	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14489  (eval $ac_link) 2>&5
14490  ac_status=$?
14491  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14492  test $ac_status = 0; } && test -s conftest$ac_exeext; then
14493	    pipe_works=yes
14494	  fi
14495	  LIBS=$lt_globsym_save_LIBS
14496	  CFLAGS=$lt_globsym_save_CFLAGS
14497	else
14498	  echo "cannot find nm_test_func in $nlist" >&5
14499	fi
14500      else
14501	echo "cannot find nm_test_var in $nlist" >&5
14502      fi
14503    else
14504      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
14505    fi
14506  else
14507    echo "$progname: failed program was:" >&5
14508    cat conftest.$ac_ext >&5
14509  fi
14510  rm -rf conftest* conftst*
14511
14512  # Do not use the global_symbol_pipe unless it works.
14513  if test yes = "$pipe_works"; then
14514    break
14515  else
14516    lt_cv_sys_global_symbol_pipe=
14517  fi
14518done
14519
14520fi
14521
14522if test -z "$lt_cv_sys_global_symbol_pipe"; then
14523  lt_cv_sys_global_symbol_to_cdecl=
14524fi
14525if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
14526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
14527$as_echo "failed" >&6; }
14528else
14529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
14530$as_echo "ok" >&6; }
14531fi
14532
14533# Response file support.
14534if test "$lt_cv_nm_interface" = "MS dumpbin"; then
14535  nm_file_list_spec='@'
14536elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
14537  nm_file_list_spec='@'
14538fi
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
14577$as_echo_n "checking for sysroot... " >&6; }
14578
14579# Check whether --with-sysroot was given.
14580if test "${with_sysroot+set}" = set; then :
14581  withval=$with_sysroot;
14582else
14583  with_sysroot=no
14584fi
14585
14586
14587lt_sysroot=
14588case $with_sysroot in #(
14589 yes)
14590   if test yes = "$GCC"; then
14591     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
14592   fi
14593   ;; #(
14594 /*)
14595   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
14596   ;; #(
14597 no|'')
14598   ;; #(
14599 *)
14600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
14601$as_echo "$with_sysroot" >&6; }
14602   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
14603   ;;
14604esac
14605
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
14607$as_echo "${lt_sysroot:-no}" >&6; }
14608
14609
14610
14611
14612
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
14614$as_echo_n "checking for a working dd... " >&6; }
14615if ${ac_cv_path_lt_DD+:} false; then :
14616  $as_echo_n "(cached) " >&6
14617else
14618  printf 0123456789abcdef0123456789abcdef >conftest.i
14619cat conftest.i conftest.i >conftest2.i
14620: ${lt_DD:=$DD}
14621if test -z "$lt_DD"; then
14622  ac_path_lt_DD_found=false
14623  # Loop through the user's path and test for each of PROGNAME-LIST
14624  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14625for as_dir in $PATH
14626do
14627  IFS=$as_save_IFS
14628  test -z "$as_dir" && as_dir=.
14629    for ac_prog in dd; do
14630    for ac_exec_ext in '' $ac_executable_extensions; do
14631      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
14632      as_fn_executable_p "$ac_path_lt_DD" || continue
14633if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14634  cmp -s conftest.i conftest.out \
14635  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
14636fi
14637      $ac_path_lt_DD_found && break 3
14638    done
14639  done
14640  done
14641IFS=$as_save_IFS
14642  if test -z "$ac_cv_path_lt_DD"; then
14643    :
14644  fi
14645else
14646  ac_cv_path_lt_DD=$lt_DD
14647fi
14648
14649rm -f conftest.i conftest2.i conftest.out
14650fi
14651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
14652$as_echo "$ac_cv_path_lt_DD" >&6; }
14653
14654
14655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
14656$as_echo_n "checking how to truncate binary pipes... " >&6; }
14657if ${lt_cv_truncate_bin+:} false; then :
14658  $as_echo_n "(cached) " >&6
14659else
14660  printf 0123456789abcdef0123456789abcdef >conftest.i
14661cat conftest.i conftest.i >conftest2.i
14662lt_cv_truncate_bin=
14663if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
14664  cmp -s conftest.i conftest.out \
14665  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
14666fi
14667rm -f conftest.i conftest2.i conftest.out
14668test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
14669fi
14670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
14671$as_echo "$lt_cv_truncate_bin" >&6; }
14672
14673
14674
14675
14676
14677
14678
14679# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
14680func_cc_basename ()
14681{
14682    for cc_temp in $*""; do
14683      case $cc_temp in
14684        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14685        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14686        \-*) ;;
14687        *) break;;
14688      esac
14689    done
14690    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14691}
14692
14693# Check whether --enable-libtool-lock was given.
14694if test "${enable_libtool_lock+set}" = set; then :
14695  enableval=$enable_libtool_lock;
14696fi
14697
14698test no = "$enable_libtool_lock" || enable_libtool_lock=yes
14699
14700# Some flags need to be propagated to the compiler or linker for good
14701# libtool support.
14702case $host in
14703ia64-*-hpux*)
14704  # Find out what ABI is being produced by ac_compile, and set mode
14705  # options accordingly.
14706  echo 'int i;' > conftest.$ac_ext
14707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14708  (eval $ac_compile) 2>&5
14709  ac_status=$?
14710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14711  test $ac_status = 0; }; then
14712    case `/usr/bin/file conftest.$ac_objext` in
14713      *ELF-32*)
14714	HPUX_IA64_MODE=32
14715	;;
14716      *ELF-64*)
14717	HPUX_IA64_MODE=64
14718	;;
14719    esac
14720  fi
14721  rm -rf conftest*
14722  ;;
14723*-*-irix6*)
14724  # Find out what ABI is being produced by ac_compile, and set linker
14725  # options accordingly.
14726  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14727  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14728  (eval $ac_compile) 2>&5
14729  ac_status=$?
14730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14731  test $ac_status = 0; }; then
14732    if test yes = "$lt_cv_prog_gnu_ld"; then
14733      case `/usr/bin/file conftest.$ac_objext` in
14734	*32-bit*)
14735	  LD="${LD-ld} -melf32bsmip"
14736	  ;;
14737	*N32*)
14738	  LD="${LD-ld} -melf32bmipn32"
14739	  ;;
14740	*64-bit*)
14741	  LD="${LD-ld} -melf64bmip"
14742	;;
14743      esac
14744    else
14745      case `/usr/bin/file conftest.$ac_objext` in
14746	*32-bit*)
14747	  LD="${LD-ld} -32"
14748	  ;;
14749	*N32*)
14750	  LD="${LD-ld} -n32"
14751	  ;;
14752	*64-bit*)
14753	  LD="${LD-ld} -64"
14754	  ;;
14755      esac
14756    fi
14757  fi
14758  rm -rf conftest*
14759  ;;
14760
14761mips64*-*linux*)
14762  # Find out what ABI is being produced by ac_compile, and set linker
14763  # options accordingly.
14764  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
14765  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14766  (eval $ac_compile) 2>&5
14767  ac_status=$?
14768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769  test $ac_status = 0; }; then
14770    emul=elf
14771    case `/usr/bin/file conftest.$ac_objext` in
14772      *32-bit*)
14773	emul="${emul}32"
14774	;;
14775      *64-bit*)
14776	emul="${emul}64"
14777	;;
14778    esac
14779    case `/usr/bin/file conftest.$ac_objext` in
14780      *MSB*)
14781	emul="${emul}btsmip"
14782	;;
14783      *LSB*)
14784	emul="${emul}ltsmip"
14785	;;
14786    esac
14787    case `/usr/bin/file conftest.$ac_objext` in
14788      *N32*)
14789	emul="${emul}n32"
14790	;;
14791    esac
14792    LD="${LD-ld} -m $emul"
14793  fi
14794  rm -rf conftest*
14795  ;;
14796
14797x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
14798s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
14799  # Find out what ABI is being produced by ac_compile, and set linker
14800  # options accordingly.  Note that the listed cases only cover the
14801  # situations where additional linker options are needed (such as when
14802  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
14803  # vice versa); the common cases where no linker options are needed do
14804  # not appear in the list.
14805  echo 'int i;' > conftest.$ac_ext
14806  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14807  (eval $ac_compile) 2>&5
14808  ac_status=$?
14809  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14810  test $ac_status = 0; }; then
14811    case `/usr/bin/file conftest.o` in
14812      *32-bit*)
14813	case $host in
14814	  x86_64-*kfreebsd*-gnu)
14815	    LD="${LD-ld} -m elf_i386_fbsd"
14816	    ;;
14817	  x86_64-*linux*)
14818	    case `/usr/bin/file conftest.o` in
14819	      *x86-64*)
14820		LD="${LD-ld} -m elf32_x86_64"
14821		;;
14822	      *)
14823		LD="${LD-ld} -m elf_i386"
14824		;;
14825	    esac
14826	    ;;
14827	  powerpc64le-*linux*)
14828	    LD="${LD-ld} -m elf32lppclinux"
14829	    ;;
14830	  powerpc64-*linux*)
14831	    LD="${LD-ld} -m elf32ppclinux"
14832	    ;;
14833	  s390x-*linux*)
14834	    LD="${LD-ld} -m elf_s390"
14835	    ;;
14836	  sparc64-*linux*)
14837	    LD="${LD-ld} -m elf32_sparc"
14838	    ;;
14839	esac
14840	;;
14841      *64-bit*)
14842	case $host in
14843	  x86_64-*kfreebsd*-gnu)
14844	    LD="${LD-ld} -m elf_x86_64_fbsd"
14845	    ;;
14846	  x86_64-*linux*)
14847	    LD="${LD-ld} -m elf_x86_64"
14848	    ;;
14849	  powerpcle-*linux*)
14850	    LD="${LD-ld} -m elf64lppc"
14851	    ;;
14852	  powerpc-*linux*)
14853	    LD="${LD-ld} -m elf64ppc"
14854	    ;;
14855	  s390*-*linux*|s390*-*tpf*)
14856	    LD="${LD-ld} -m elf64_s390"
14857	    ;;
14858	  sparc*-*linux*)
14859	    LD="${LD-ld} -m elf64_sparc"
14860	    ;;
14861	esac
14862	;;
14863    esac
14864  fi
14865  rm -rf conftest*
14866  ;;
14867
14868*-*-sco3.2v5*)
14869  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
14870  SAVE_CFLAGS=$CFLAGS
14871  CFLAGS="$CFLAGS -belf"
14872  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
14873$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
14874if ${lt_cv_cc_needs_belf+:} false; then :
14875  $as_echo_n "(cached) " >&6
14876else
14877  ac_ext=c
14878ac_cpp='$CPP $CPPFLAGS'
14879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14881ac_compiler_gnu=$ac_cv_c_compiler_gnu
14882
14883     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14884/* end confdefs.h.  */
14885
14886int
14887main ()
14888{
14889
14890  ;
14891  return 0;
14892}
14893_ACEOF
14894if ac_fn_c_try_link "$LINENO"; then :
14895  lt_cv_cc_needs_belf=yes
14896else
14897  lt_cv_cc_needs_belf=no
14898fi
14899rm -f core conftest.err conftest.$ac_objext \
14900    conftest$ac_exeext conftest.$ac_ext
14901     ac_ext=c
14902ac_cpp='$CPP $CPPFLAGS'
14903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14905ac_compiler_gnu=$ac_cv_c_compiler_gnu
14906
14907fi
14908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
14909$as_echo "$lt_cv_cc_needs_belf" >&6; }
14910  if test yes != "$lt_cv_cc_needs_belf"; then
14911    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
14912    CFLAGS=$SAVE_CFLAGS
14913  fi
14914  ;;
14915*-*solaris*)
14916  # Find out what ABI is being produced by ac_compile, and set linker
14917  # options accordingly.
14918  echo 'int i;' > conftest.$ac_ext
14919  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14920  (eval $ac_compile) 2>&5
14921  ac_status=$?
14922  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14923  test $ac_status = 0; }; then
14924    case `/usr/bin/file conftest.o` in
14925    *64-bit*)
14926      case $lt_cv_prog_gnu_ld in
14927      yes*)
14928        case $host in
14929        i?86-*-solaris*|x86_64-*-solaris*)
14930          LD="${LD-ld} -m elf_x86_64"
14931          ;;
14932        sparc*-*-solaris*)
14933          LD="${LD-ld} -m elf64_sparc"
14934          ;;
14935        esac
14936        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
14937        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
14938          LD=${LD-ld}_sol2
14939        fi
14940        ;;
14941      *)
14942	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
14943	  LD="${LD-ld} -64"
14944	fi
14945	;;
14946      esac
14947      ;;
14948    esac
14949  fi
14950  rm -rf conftest*
14951  ;;
14952esac
14953
14954need_locks=$enable_libtool_lock
14955
14956if test -n "$ac_tool_prefix"; then
14957  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
14958set dummy ${ac_tool_prefix}mt; ac_word=$2
14959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14960$as_echo_n "checking for $ac_word... " >&6; }
14961if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
14962  $as_echo_n "(cached) " >&6
14963else
14964  if test -n "$MANIFEST_TOOL"; then
14965  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
14966else
14967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14968for as_dir in $PATH
14969do
14970  IFS=$as_save_IFS
14971  test -z "$as_dir" && as_dir=.
14972    for ac_exec_ext in '' $ac_executable_extensions; do
14973  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14974    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
14975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14976    break 2
14977  fi
14978done
14979  done
14980IFS=$as_save_IFS
14981
14982fi
14983fi
14984MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
14985if test -n "$MANIFEST_TOOL"; then
14986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
14987$as_echo "$MANIFEST_TOOL" >&6; }
14988else
14989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990$as_echo "no" >&6; }
14991fi
14992
14993
14994fi
14995if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
14996  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
14997  # Extract the first word of "mt", so it can be a program name with args.
14998set dummy mt; ac_word=$2
14999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15000$as_echo_n "checking for $ac_word... " >&6; }
15001if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
15002  $as_echo_n "(cached) " >&6
15003else
15004  if test -n "$ac_ct_MANIFEST_TOOL"; then
15005  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
15006else
15007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008for as_dir in $PATH
15009do
15010  IFS=$as_save_IFS
15011  test -z "$as_dir" && as_dir=.
15012    for ac_exec_ext in '' $ac_executable_extensions; do
15013  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15014    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
15015    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15016    break 2
15017  fi
15018done
15019  done
15020IFS=$as_save_IFS
15021
15022fi
15023fi
15024ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
15025if test -n "$ac_ct_MANIFEST_TOOL"; then
15026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
15027$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
15028else
15029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15030$as_echo "no" >&6; }
15031fi
15032
15033  if test "x$ac_ct_MANIFEST_TOOL" = x; then
15034    MANIFEST_TOOL=":"
15035  else
15036    case $cross_compiling:$ac_tool_warned in
15037yes:)
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15040ac_tool_warned=yes ;;
15041esac
15042    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
15043  fi
15044else
15045  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
15046fi
15047
15048test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
15049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
15050$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
15051if ${lt_cv_path_mainfest_tool+:} false; then :
15052  $as_echo_n "(cached) " >&6
15053else
15054  lt_cv_path_mainfest_tool=no
15055  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
15056  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
15057  cat conftest.err >&5
15058  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
15059    lt_cv_path_mainfest_tool=yes
15060  fi
15061  rm -f conftest*
15062fi
15063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
15064$as_echo "$lt_cv_path_mainfest_tool" >&6; }
15065if test yes != "$lt_cv_path_mainfest_tool"; then
15066  MANIFEST_TOOL=:
15067fi
15068
15069
15070
15071
15072
15073
15074  case $host_os in
15075    rhapsody* | darwin*)
15076    if test -n "$ac_tool_prefix"; then
15077  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
15078set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
15079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15080$as_echo_n "checking for $ac_word... " >&6; }
15081if ${ac_cv_prog_DSYMUTIL+:} false; then :
15082  $as_echo_n "(cached) " >&6
15083else
15084  if test -n "$DSYMUTIL"; then
15085  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
15086else
15087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15088for as_dir in $PATH
15089do
15090  IFS=$as_save_IFS
15091  test -z "$as_dir" && as_dir=.
15092    for ac_exec_ext in '' $ac_executable_extensions; do
15093  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15094    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
15095    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15096    break 2
15097  fi
15098done
15099  done
15100IFS=$as_save_IFS
15101
15102fi
15103fi
15104DSYMUTIL=$ac_cv_prog_DSYMUTIL
15105if test -n "$DSYMUTIL"; then
15106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
15107$as_echo "$DSYMUTIL" >&6; }
15108else
15109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15110$as_echo "no" >&6; }
15111fi
15112
15113
15114fi
15115if test -z "$ac_cv_prog_DSYMUTIL"; then
15116  ac_ct_DSYMUTIL=$DSYMUTIL
15117  # Extract the first word of "dsymutil", so it can be a program name with args.
15118set dummy dsymutil; ac_word=$2
15119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15120$as_echo_n "checking for $ac_word... " >&6; }
15121if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
15122  $as_echo_n "(cached) " >&6
15123else
15124  if test -n "$ac_ct_DSYMUTIL"; then
15125  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
15126else
15127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15128for as_dir in $PATH
15129do
15130  IFS=$as_save_IFS
15131  test -z "$as_dir" && as_dir=.
15132    for ac_exec_ext in '' $ac_executable_extensions; do
15133  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15134    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
15135    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15136    break 2
15137  fi
15138done
15139  done
15140IFS=$as_save_IFS
15141
15142fi
15143fi
15144ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
15145if test -n "$ac_ct_DSYMUTIL"; then
15146  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
15147$as_echo "$ac_ct_DSYMUTIL" >&6; }
15148else
15149  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15150$as_echo "no" >&6; }
15151fi
15152
15153  if test "x$ac_ct_DSYMUTIL" = x; then
15154    DSYMUTIL=":"
15155  else
15156    case $cross_compiling:$ac_tool_warned in
15157yes:)
15158{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15159$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15160ac_tool_warned=yes ;;
15161esac
15162    DSYMUTIL=$ac_ct_DSYMUTIL
15163  fi
15164else
15165  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
15166fi
15167
15168    if test -n "$ac_tool_prefix"; then
15169  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
15170set dummy ${ac_tool_prefix}nmedit; ac_word=$2
15171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15172$as_echo_n "checking for $ac_word... " >&6; }
15173if ${ac_cv_prog_NMEDIT+:} false; then :
15174  $as_echo_n "(cached) " >&6
15175else
15176  if test -n "$NMEDIT"; then
15177  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
15178else
15179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15180for as_dir in $PATH
15181do
15182  IFS=$as_save_IFS
15183  test -z "$as_dir" && as_dir=.
15184    for ac_exec_ext in '' $ac_executable_extensions; do
15185  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15186    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
15187    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15188    break 2
15189  fi
15190done
15191  done
15192IFS=$as_save_IFS
15193
15194fi
15195fi
15196NMEDIT=$ac_cv_prog_NMEDIT
15197if test -n "$NMEDIT"; then
15198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
15199$as_echo "$NMEDIT" >&6; }
15200else
15201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15202$as_echo "no" >&6; }
15203fi
15204
15205
15206fi
15207if test -z "$ac_cv_prog_NMEDIT"; then
15208  ac_ct_NMEDIT=$NMEDIT
15209  # Extract the first word of "nmedit", so it can be a program name with args.
15210set dummy nmedit; ac_word=$2
15211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15212$as_echo_n "checking for $ac_word... " >&6; }
15213if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
15214  $as_echo_n "(cached) " >&6
15215else
15216  if test -n "$ac_ct_NMEDIT"; then
15217  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
15218else
15219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15220for as_dir in $PATH
15221do
15222  IFS=$as_save_IFS
15223  test -z "$as_dir" && as_dir=.
15224    for ac_exec_ext in '' $ac_executable_extensions; do
15225  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15226    ac_cv_prog_ac_ct_NMEDIT="nmedit"
15227    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15228    break 2
15229  fi
15230done
15231  done
15232IFS=$as_save_IFS
15233
15234fi
15235fi
15236ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
15237if test -n "$ac_ct_NMEDIT"; then
15238  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
15239$as_echo "$ac_ct_NMEDIT" >&6; }
15240else
15241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15242$as_echo "no" >&6; }
15243fi
15244
15245  if test "x$ac_ct_NMEDIT" = x; then
15246    NMEDIT=":"
15247  else
15248    case $cross_compiling:$ac_tool_warned in
15249yes:)
15250{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15251$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15252ac_tool_warned=yes ;;
15253esac
15254    NMEDIT=$ac_ct_NMEDIT
15255  fi
15256else
15257  NMEDIT="$ac_cv_prog_NMEDIT"
15258fi
15259
15260    if test -n "$ac_tool_prefix"; then
15261  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
15262set dummy ${ac_tool_prefix}lipo; ac_word=$2
15263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15264$as_echo_n "checking for $ac_word... " >&6; }
15265if ${ac_cv_prog_LIPO+:} false; then :
15266  $as_echo_n "(cached) " >&6
15267else
15268  if test -n "$LIPO"; then
15269  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
15270else
15271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272for as_dir in $PATH
15273do
15274  IFS=$as_save_IFS
15275  test -z "$as_dir" && as_dir=.
15276    for ac_exec_ext in '' $ac_executable_extensions; do
15277  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15278    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
15279    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15280    break 2
15281  fi
15282done
15283  done
15284IFS=$as_save_IFS
15285
15286fi
15287fi
15288LIPO=$ac_cv_prog_LIPO
15289if test -n "$LIPO"; then
15290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
15291$as_echo "$LIPO" >&6; }
15292else
15293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15294$as_echo "no" >&6; }
15295fi
15296
15297
15298fi
15299if test -z "$ac_cv_prog_LIPO"; then
15300  ac_ct_LIPO=$LIPO
15301  # Extract the first word of "lipo", so it can be a program name with args.
15302set dummy lipo; ac_word=$2
15303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15304$as_echo_n "checking for $ac_word... " >&6; }
15305if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
15306  $as_echo_n "(cached) " >&6
15307else
15308  if test -n "$ac_ct_LIPO"; then
15309  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
15310else
15311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15312for as_dir in $PATH
15313do
15314  IFS=$as_save_IFS
15315  test -z "$as_dir" && as_dir=.
15316    for ac_exec_ext in '' $ac_executable_extensions; do
15317  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15318    ac_cv_prog_ac_ct_LIPO="lipo"
15319    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15320    break 2
15321  fi
15322done
15323  done
15324IFS=$as_save_IFS
15325
15326fi
15327fi
15328ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
15329if test -n "$ac_ct_LIPO"; then
15330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
15331$as_echo "$ac_ct_LIPO" >&6; }
15332else
15333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15334$as_echo "no" >&6; }
15335fi
15336
15337  if test "x$ac_ct_LIPO" = x; then
15338    LIPO=":"
15339  else
15340    case $cross_compiling:$ac_tool_warned in
15341yes:)
15342{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15343$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15344ac_tool_warned=yes ;;
15345esac
15346    LIPO=$ac_ct_LIPO
15347  fi
15348else
15349  LIPO="$ac_cv_prog_LIPO"
15350fi
15351
15352    if test -n "$ac_tool_prefix"; then
15353  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
15354set dummy ${ac_tool_prefix}otool; ac_word=$2
15355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15356$as_echo_n "checking for $ac_word... " >&6; }
15357if ${ac_cv_prog_OTOOL+:} false; then :
15358  $as_echo_n "(cached) " >&6
15359else
15360  if test -n "$OTOOL"; then
15361  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
15362else
15363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15364for as_dir in $PATH
15365do
15366  IFS=$as_save_IFS
15367  test -z "$as_dir" && as_dir=.
15368    for ac_exec_ext in '' $ac_executable_extensions; do
15369  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15370    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
15371    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15372    break 2
15373  fi
15374done
15375  done
15376IFS=$as_save_IFS
15377
15378fi
15379fi
15380OTOOL=$ac_cv_prog_OTOOL
15381if test -n "$OTOOL"; then
15382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
15383$as_echo "$OTOOL" >&6; }
15384else
15385  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386$as_echo "no" >&6; }
15387fi
15388
15389
15390fi
15391if test -z "$ac_cv_prog_OTOOL"; then
15392  ac_ct_OTOOL=$OTOOL
15393  # Extract the first word of "otool", so it can be a program name with args.
15394set dummy otool; ac_word=$2
15395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15396$as_echo_n "checking for $ac_word... " >&6; }
15397if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
15398  $as_echo_n "(cached) " >&6
15399else
15400  if test -n "$ac_ct_OTOOL"; then
15401  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
15402else
15403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404for as_dir in $PATH
15405do
15406  IFS=$as_save_IFS
15407  test -z "$as_dir" && as_dir=.
15408    for ac_exec_ext in '' $ac_executable_extensions; do
15409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15410    ac_cv_prog_ac_ct_OTOOL="otool"
15411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15412    break 2
15413  fi
15414done
15415  done
15416IFS=$as_save_IFS
15417
15418fi
15419fi
15420ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
15421if test -n "$ac_ct_OTOOL"; then
15422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
15423$as_echo "$ac_ct_OTOOL" >&6; }
15424else
15425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15426$as_echo "no" >&6; }
15427fi
15428
15429  if test "x$ac_ct_OTOOL" = x; then
15430    OTOOL=":"
15431  else
15432    case $cross_compiling:$ac_tool_warned in
15433yes:)
15434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15436ac_tool_warned=yes ;;
15437esac
15438    OTOOL=$ac_ct_OTOOL
15439  fi
15440else
15441  OTOOL="$ac_cv_prog_OTOOL"
15442fi
15443
15444    if test -n "$ac_tool_prefix"; then
15445  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
15446set dummy ${ac_tool_prefix}otool64; ac_word=$2
15447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15448$as_echo_n "checking for $ac_word... " >&6; }
15449if ${ac_cv_prog_OTOOL64+:} false; then :
15450  $as_echo_n "(cached) " >&6
15451else
15452  if test -n "$OTOOL64"; then
15453  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
15454else
15455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15456for as_dir in $PATH
15457do
15458  IFS=$as_save_IFS
15459  test -z "$as_dir" && as_dir=.
15460    for ac_exec_ext in '' $ac_executable_extensions; do
15461  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15462    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
15463    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15464    break 2
15465  fi
15466done
15467  done
15468IFS=$as_save_IFS
15469
15470fi
15471fi
15472OTOOL64=$ac_cv_prog_OTOOL64
15473if test -n "$OTOOL64"; then
15474  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
15475$as_echo "$OTOOL64" >&6; }
15476else
15477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478$as_echo "no" >&6; }
15479fi
15480
15481
15482fi
15483if test -z "$ac_cv_prog_OTOOL64"; then
15484  ac_ct_OTOOL64=$OTOOL64
15485  # Extract the first word of "otool64", so it can be a program name with args.
15486set dummy otool64; ac_word=$2
15487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15488$as_echo_n "checking for $ac_word... " >&6; }
15489if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
15490  $as_echo_n "(cached) " >&6
15491else
15492  if test -n "$ac_ct_OTOOL64"; then
15493  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
15494else
15495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15496for as_dir in $PATH
15497do
15498  IFS=$as_save_IFS
15499  test -z "$as_dir" && as_dir=.
15500    for ac_exec_ext in '' $ac_executable_extensions; do
15501  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15502    ac_cv_prog_ac_ct_OTOOL64="otool64"
15503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15504    break 2
15505  fi
15506done
15507  done
15508IFS=$as_save_IFS
15509
15510fi
15511fi
15512ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
15513if test -n "$ac_ct_OTOOL64"; then
15514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
15515$as_echo "$ac_ct_OTOOL64" >&6; }
15516else
15517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15518$as_echo "no" >&6; }
15519fi
15520
15521  if test "x$ac_ct_OTOOL64" = x; then
15522    OTOOL64=":"
15523  else
15524    case $cross_compiling:$ac_tool_warned in
15525yes:)
15526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15528ac_tool_warned=yes ;;
15529esac
15530    OTOOL64=$ac_ct_OTOOL64
15531  fi
15532else
15533  OTOOL64="$ac_cv_prog_OTOOL64"
15534fi
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
15563$as_echo_n "checking for -single_module linker flag... " >&6; }
15564if ${lt_cv_apple_cc_single_mod+:} false; then :
15565  $as_echo_n "(cached) " >&6
15566else
15567  lt_cv_apple_cc_single_mod=no
15568      if test -z "$LT_MULTI_MODULE"; then
15569	# By default we will add the -single_module flag. You can override
15570	# by either setting the environment variable LT_MULTI_MODULE
15571	# non-empty at configure time, or by adding -multi_module to the
15572	# link flags.
15573	rm -rf libconftest.dylib*
15574	echo "int foo(void){return 1;}" > conftest.c
15575	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15576-dynamiclib -Wl,-single_module conftest.c" >&5
15577	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
15578	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
15579        _lt_result=$?
15580	# If there is a non-empty error log, and "single_module"
15581	# appears in it, assume the flag caused a linker warning
15582        if test -s conftest.err && $GREP single_module conftest.err; then
15583	  cat conftest.err >&5
15584	# Otherwise, if the output was created with a 0 exit code from
15585	# the compiler, it worked.
15586	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
15587	  lt_cv_apple_cc_single_mod=yes
15588	else
15589	  cat conftest.err >&5
15590	fi
15591	rm -rf libconftest.dylib*
15592	rm -f conftest.*
15593      fi
15594fi
15595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
15596$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
15597
15598    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
15599$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
15600if ${lt_cv_ld_exported_symbols_list+:} false; then :
15601  $as_echo_n "(cached) " >&6
15602else
15603  lt_cv_ld_exported_symbols_list=no
15604      save_LDFLAGS=$LDFLAGS
15605      echo "_main" > conftest.sym
15606      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
15607      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15608/* end confdefs.h.  */
15609
15610int
15611main ()
15612{
15613
15614  ;
15615  return 0;
15616}
15617_ACEOF
15618if ac_fn_c_try_link "$LINENO"; then :
15619  lt_cv_ld_exported_symbols_list=yes
15620else
15621  lt_cv_ld_exported_symbols_list=no
15622fi
15623rm -f core conftest.err conftest.$ac_objext \
15624    conftest$ac_exeext conftest.$ac_ext
15625	LDFLAGS=$save_LDFLAGS
15626
15627fi
15628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
15629$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
15630
15631    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
15632$as_echo_n "checking for -force_load linker flag... " >&6; }
15633if ${lt_cv_ld_force_load+:} false; then :
15634  $as_echo_n "(cached) " >&6
15635else
15636  lt_cv_ld_force_load=no
15637      cat > conftest.c << _LT_EOF
15638int forced_loaded() { return 2;}
15639_LT_EOF
15640      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
15641      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
15642      echo "$AR cru libconftest.a conftest.o" >&5
15643      $AR cru libconftest.a conftest.o 2>&5
15644      echo "$RANLIB libconftest.a" >&5
15645      $RANLIB libconftest.a 2>&5
15646      cat > conftest.c << _LT_EOF
15647int main() { return 0;}
15648_LT_EOF
15649      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
15650      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
15651      _lt_result=$?
15652      if test -s conftest.err && $GREP force_load conftest.err; then
15653	cat conftest.err >&5
15654      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
15655	lt_cv_ld_force_load=yes
15656      else
15657	cat conftest.err >&5
15658      fi
15659        rm -f conftest.err libconftest.a conftest conftest.c
15660        rm -rf conftest.dSYM
15661
15662fi
15663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
15664$as_echo "$lt_cv_ld_force_load" >&6; }
15665    case $host_os in
15666    rhapsody* | darwin1.[012])
15667      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
15668    darwin1.*)
15669      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15670    darwin*) # darwin 5.x on
15671      # if running on 10.5 or later, the deployment target defaults
15672      # to the OS version, if on x86, and 10.4, the deployment
15673      # target defaults to 10.4. Don't you love it?
15674      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
15675	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
15676	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15677	10.[012][,.]*)
15678	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
15679	10.*)
15680	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
15681      esac
15682    ;;
15683  esac
15684    if test yes = "$lt_cv_apple_cc_single_mod"; then
15685      _lt_dar_single_mod='$single_module'
15686    fi
15687    if test yes = "$lt_cv_ld_exported_symbols_list"; then
15688      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
15689    else
15690      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
15691    fi
15692    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
15693      _lt_dsymutil='~$DSYMUTIL $lib || :'
15694    else
15695      _lt_dsymutil=
15696    fi
15697    ;;
15698  esac
15699
15700# func_munge_path_list VARIABLE PATH
15701# -----------------------------------
15702# VARIABLE is name of variable containing _space_ separated list of
15703# directories to be munged by the contents of PATH, which is string
15704# having a format:
15705# "DIR[:DIR]:"
15706#       string "DIR[ DIR]" will be prepended to VARIABLE
15707# ":DIR[:DIR]"
15708#       string "DIR[ DIR]" will be appended to VARIABLE
15709# "DIRP[:DIRP]::[DIRA:]DIRA"
15710#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15711#       "DIRA[ DIRA]" will be appended to VARIABLE
15712# "DIR[:DIR]"
15713#       VARIABLE will be replaced by "DIR[ DIR]"
15714func_munge_path_list ()
15715{
15716    case x$2 in
15717    x)
15718        ;;
15719    *:)
15720        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15721        ;;
15722    x:*)
15723        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15724        ;;
15725    *::*)
15726        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15727        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15728        ;;
15729    *)
15730        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15731        ;;
15732    esac
15733}
15734
15735for ac_header in dlfcn.h
15736do :
15737  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
15738"
15739if test "x$ac_cv_header_dlfcn_h" = xyes; then :
15740  cat >>confdefs.h <<_ACEOF
15741#define HAVE_DLFCN_H 1
15742_ACEOF
15743
15744fi
15745
15746done
15747
15748
15749
15750func_stripname_cnf ()
15751{
15752  case $2 in
15753  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
15754  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
15755  esac
15756} # func_stripname_cnf
15757
15758
15759
15760
15761
15762# Set options
15763enable_win32_dll=yes
15764
15765case $host in
15766*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
15767  if test -n "$ac_tool_prefix"; then
15768  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
15769set dummy ${ac_tool_prefix}as; ac_word=$2
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15771$as_echo_n "checking for $ac_word... " >&6; }
15772if ${ac_cv_prog_AS+:} false; then :
15773  $as_echo_n "(cached) " >&6
15774else
15775  if test -n "$AS"; then
15776  ac_cv_prog_AS="$AS" # Let the user override the test.
15777else
15778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779for as_dir in $PATH
15780do
15781  IFS=$as_save_IFS
15782  test -z "$as_dir" && as_dir=.
15783    for ac_exec_ext in '' $ac_executable_extensions; do
15784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15785    ac_cv_prog_AS="${ac_tool_prefix}as"
15786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15787    break 2
15788  fi
15789done
15790  done
15791IFS=$as_save_IFS
15792
15793fi
15794fi
15795AS=$ac_cv_prog_AS
15796if test -n "$AS"; then
15797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
15798$as_echo "$AS" >&6; }
15799else
15800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15801$as_echo "no" >&6; }
15802fi
15803
15804
15805fi
15806if test -z "$ac_cv_prog_AS"; then
15807  ac_ct_AS=$AS
15808  # Extract the first word of "as", so it can be a program name with args.
15809set dummy as; ac_word=$2
15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811$as_echo_n "checking for $ac_word... " >&6; }
15812if ${ac_cv_prog_ac_ct_AS+:} false; then :
15813  $as_echo_n "(cached) " >&6
15814else
15815  if test -n "$ac_ct_AS"; then
15816  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
15817else
15818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819for as_dir in $PATH
15820do
15821  IFS=$as_save_IFS
15822  test -z "$as_dir" && as_dir=.
15823    for ac_exec_ext in '' $ac_executable_extensions; do
15824  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15825    ac_cv_prog_ac_ct_AS="as"
15826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15827    break 2
15828  fi
15829done
15830  done
15831IFS=$as_save_IFS
15832
15833fi
15834fi
15835ac_ct_AS=$ac_cv_prog_ac_ct_AS
15836if test -n "$ac_ct_AS"; then
15837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
15838$as_echo "$ac_ct_AS" >&6; }
15839else
15840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841$as_echo "no" >&6; }
15842fi
15843
15844  if test "x$ac_ct_AS" = x; then
15845    AS="false"
15846  else
15847    case $cross_compiling:$ac_tool_warned in
15848yes:)
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15851ac_tool_warned=yes ;;
15852esac
15853    AS=$ac_ct_AS
15854  fi
15855else
15856  AS="$ac_cv_prog_AS"
15857fi
15858
15859  if test -n "$ac_tool_prefix"; then
15860  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
15861set dummy ${ac_tool_prefix}dlltool; ac_word=$2
15862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15863$as_echo_n "checking for $ac_word... " >&6; }
15864if ${ac_cv_prog_DLLTOOL+:} false; then :
15865  $as_echo_n "(cached) " >&6
15866else
15867  if test -n "$DLLTOOL"; then
15868  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
15869else
15870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15871for as_dir in $PATH
15872do
15873  IFS=$as_save_IFS
15874  test -z "$as_dir" && as_dir=.
15875    for ac_exec_ext in '' $ac_executable_extensions; do
15876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15877    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
15878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15879    break 2
15880  fi
15881done
15882  done
15883IFS=$as_save_IFS
15884
15885fi
15886fi
15887DLLTOOL=$ac_cv_prog_DLLTOOL
15888if test -n "$DLLTOOL"; then
15889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
15890$as_echo "$DLLTOOL" >&6; }
15891else
15892  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15893$as_echo "no" >&6; }
15894fi
15895
15896
15897fi
15898if test -z "$ac_cv_prog_DLLTOOL"; then
15899  ac_ct_DLLTOOL=$DLLTOOL
15900  # Extract the first word of "dlltool", so it can be a program name with args.
15901set dummy dlltool; ac_word=$2
15902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15903$as_echo_n "checking for $ac_word... " >&6; }
15904if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
15905  $as_echo_n "(cached) " >&6
15906else
15907  if test -n "$ac_ct_DLLTOOL"; then
15908  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
15909else
15910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911for as_dir in $PATH
15912do
15913  IFS=$as_save_IFS
15914  test -z "$as_dir" && as_dir=.
15915    for ac_exec_ext in '' $ac_executable_extensions; do
15916  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15917    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
15918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15919    break 2
15920  fi
15921done
15922  done
15923IFS=$as_save_IFS
15924
15925fi
15926fi
15927ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
15928if test -n "$ac_ct_DLLTOOL"; then
15929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
15930$as_echo "$ac_ct_DLLTOOL" >&6; }
15931else
15932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15933$as_echo "no" >&6; }
15934fi
15935
15936  if test "x$ac_ct_DLLTOOL" = x; then
15937    DLLTOOL="false"
15938  else
15939    case $cross_compiling:$ac_tool_warned in
15940yes:)
15941{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15942$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15943ac_tool_warned=yes ;;
15944esac
15945    DLLTOOL=$ac_ct_DLLTOOL
15946  fi
15947else
15948  DLLTOOL="$ac_cv_prog_DLLTOOL"
15949fi
15950
15951  if test -n "$ac_tool_prefix"; then
15952  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
15953set dummy ${ac_tool_prefix}objdump; ac_word=$2
15954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15955$as_echo_n "checking for $ac_word... " >&6; }
15956if ${ac_cv_prog_OBJDUMP+:} false; then :
15957  $as_echo_n "(cached) " >&6
15958else
15959  if test -n "$OBJDUMP"; then
15960  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
15961else
15962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15963for as_dir in $PATH
15964do
15965  IFS=$as_save_IFS
15966  test -z "$as_dir" && as_dir=.
15967    for ac_exec_ext in '' $ac_executable_extensions; do
15968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15969    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
15970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15971    break 2
15972  fi
15973done
15974  done
15975IFS=$as_save_IFS
15976
15977fi
15978fi
15979OBJDUMP=$ac_cv_prog_OBJDUMP
15980if test -n "$OBJDUMP"; then
15981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
15982$as_echo "$OBJDUMP" >&6; }
15983else
15984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15985$as_echo "no" >&6; }
15986fi
15987
15988
15989fi
15990if test -z "$ac_cv_prog_OBJDUMP"; then
15991  ac_ct_OBJDUMP=$OBJDUMP
15992  # Extract the first word of "objdump", so it can be a program name with args.
15993set dummy objdump; ac_word=$2
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15995$as_echo_n "checking for $ac_word... " >&6; }
15996if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
15997  $as_echo_n "(cached) " >&6
15998else
15999  if test -n "$ac_ct_OBJDUMP"; then
16000  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16001else
16002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16003for as_dir in $PATH
16004do
16005  IFS=$as_save_IFS
16006  test -z "$as_dir" && as_dir=.
16007    for ac_exec_ext in '' $ac_executable_extensions; do
16008  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16009    ac_cv_prog_ac_ct_OBJDUMP="objdump"
16010    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011    break 2
16012  fi
16013done
16014  done
16015IFS=$as_save_IFS
16016
16017fi
16018fi
16019ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16020if test -n "$ac_ct_OBJDUMP"; then
16021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16022$as_echo "$ac_ct_OBJDUMP" >&6; }
16023else
16024  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025$as_echo "no" >&6; }
16026fi
16027
16028  if test "x$ac_ct_OBJDUMP" = x; then
16029    OBJDUMP="false"
16030  else
16031    case $cross_compiling:$ac_tool_warned in
16032yes:)
16033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16035ac_tool_warned=yes ;;
16036esac
16037    OBJDUMP=$ac_ct_OBJDUMP
16038  fi
16039else
16040  OBJDUMP="$ac_cv_prog_OBJDUMP"
16041fi
16042
16043  ;;
16044esac
16045
16046test -z "$AS" && AS=as
16047
16048
16049
16050
16051
16052test -z "$DLLTOOL" && DLLTOOL=dlltool
16053
16054
16055
16056
16057
16058test -z "$OBJDUMP" && OBJDUMP=objdump
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068            # Check whether --enable-shared was given.
16069if test "${enable_shared+set}" = set; then :
16070  enableval=$enable_shared; p=${PACKAGE-default}
16071    case $enableval in
16072    yes) enable_shared=yes ;;
16073    no) enable_shared=no ;;
16074    *)
16075      enable_shared=no
16076      # Look at the argument we got.  We use all the common list separators.
16077      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16078      for pkg in $enableval; do
16079	IFS=$lt_save_ifs
16080	if test "X$pkg" = "X$p"; then
16081	  enable_shared=yes
16082	fi
16083      done
16084      IFS=$lt_save_ifs
16085      ;;
16086    esac
16087else
16088  enable_shared=yes
16089fi
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099  # Check whether --enable-static was given.
16100if test "${enable_static+set}" = set; then :
16101  enableval=$enable_static; p=${PACKAGE-default}
16102    case $enableval in
16103    yes) enable_static=yes ;;
16104    no) enable_static=no ;;
16105    *)
16106     enable_static=no
16107      # Look at the argument we got.  We use all the common list separators.
16108      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16109      for pkg in $enableval; do
16110	IFS=$lt_save_ifs
16111	if test "X$pkg" = "X$p"; then
16112	  enable_static=yes
16113	fi
16114      done
16115      IFS=$lt_save_ifs
16116      ;;
16117    esac
16118else
16119  enable_static=yes
16120fi
16121
16122
16123
16124
16125
16126
16127
16128
16129
16130
16131# Check whether --with-pic was given.
16132if test "${with_pic+set}" = set; then :
16133  withval=$with_pic; lt_p=${PACKAGE-default}
16134    case $withval in
16135    yes|no) pic_mode=$withval ;;
16136    *)
16137      pic_mode=default
16138      # Look at the argument we got.  We use all the common list separators.
16139      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16140      for lt_pkg in $withval; do
16141	IFS=$lt_save_ifs
16142	if test "X$lt_pkg" = "X$lt_p"; then
16143	  pic_mode=yes
16144	fi
16145      done
16146      IFS=$lt_save_ifs
16147      ;;
16148    esac
16149else
16150  pic_mode=default
16151fi
16152
16153
16154
16155
16156
16157
16158
16159
16160  # Check whether --enable-fast-install was given.
16161if test "${enable_fast_install+set}" = set; then :
16162  enableval=$enable_fast_install; p=${PACKAGE-default}
16163    case $enableval in
16164    yes) enable_fast_install=yes ;;
16165    no) enable_fast_install=no ;;
16166    *)
16167      enable_fast_install=no
16168      # Look at the argument we got.  We use all the common list separators.
16169      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
16170      for pkg in $enableval; do
16171	IFS=$lt_save_ifs
16172	if test "X$pkg" = "X$p"; then
16173	  enable_fast_install=yes
16174	fi
16175      done
16176      IFS=$lt_save_ifs
16177      ;;
16178    esac
16179else
16180  enable_fast_install=yes
16181fi
16182
16183
16184
16185
16186
16187
16188
16189
16190  shared_archive_member_spec=
16191case $host,$enable_shared in
16192power*-*-aix[5-9]*,yes)
16193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
16194$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
16195
16196# Check whether --with-aix-soname was given.
16197if test "${with_aix_soname+set}" = set; then :
16198  withval=$with_aix_soname; case $withval in
16199    aix|svr4|both)
16200      ;;
16201    *)
16202      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
16203      ;;
16204    esac
16205    lt_cv_with_aix_soname=$with_aix_soname
16206else
16207  if ${lt_cv_with_aix_soname+:} false; then :
16208  $as_echo_n "(cached) " >&6
16209else
16210  lt_cv_with_aix_soname=aix
16211fi
16212
16213    with_aix_soname=$lt_cv_with_aix_soname
16214fi
16215
16216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
16217$as_echo "$with_aix_soname" >&6; }
16218  if test aix != "$with_aix_soname"; then
16219    # For the AIX way of multilib, we name the shared archive member
16220    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
16221    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
16222    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
16223    # the AIX toolchain works better with OBJECT_MODE set (default 32).
16224    if test 64 = "${OBJECT_MODE-32}"; then
16225      shared_archive_member_spec=shr_64
16226    else
16227      shared_archive_member_spec=shr
16228    fi
16229  fi
16230  ;;
16231*)
16232  with_aix_soname=aix
16233  ;;
16234esac
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245# This can be used to rebuild libtool when needed
16246LIBTOOL_DEPS=$ltmain
16247
16248# Always use our own libtool.
16249LIBTOOL='$(SHELL) $(top_builddir)/libtool'
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280test -z "$LN_S" && LN_S="ln -s"
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295if test -n "${ZSH_VERSION+set}"; then
16296   setopt NO_GLOB_SUBST
16297fi
16298
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
16300$as_echo_n "checking for objdir... " >&6; }
16301if ${lt_cv_objdir+:} false; then :
16302  $as_echo_n "(cached) " >&6
16303else
16304  rm -f .libs 2>/dev/null
16305mkdir .libs 2>/dev/null
16306if test -d .libs; then
16307  lt_cv_objdir=.libs
16308else
16309  # MS-DOS does not allow filenames that begin with a dot.
16310  lt_cv_objdir=_libs
16311fi
16312rmdir .libs 2>/dev/null
16313fi
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
16315$as_echo "$lt_cv_objdir" >&6; }
16316objdir=$lt_cv_objdir
16317
16318
16319
16320
16321
16322cat >>confdefs.h <<_ACEOF
16323#define LT_OBJDIR "$lt_cv_objdir/"
16324_ACEOF
16325
16326
16327
16328
16329case $host_os in
16330aix3*)
16331  # AIX sometimes has problems with the GCC collect2 program.  For some
16332  # reason, if we set the COLLECT_NAMES environment variable, the problems
16333  # vanish in a puff of smoke.
16334  if test set != "${COLLECT_NAMES+set}"; then
16335    COLLECT_NAMES=
16336    export COLLECT_NAMES
16337  fi
16338  ;;
16339esac
16340
16341# Global variables:
16342ofile=libtool
16343can_build_shared=yes
16344
16345# All known linkers require a '.a' archive for static linking (except MSVC,
16346# which needs '.lib').
16347libext=a
16348
16349with_gnu_ld=$lt_cv_prog_gnu_ld
16350
16351old_CC=$CC
16352old_CFLAGS=$CFLAGS
16353
16354# Set sane defaults for various variables
16355test -z "$CC" && CC=cc
16356test -z "$LTCC" && LTCC=$CC
16357test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
16358test -z "$LD" && LD=ld
16359test -z "$ac_objext" && ac_objext=o
16360
16361func_cc_basename $compiler
16362cc_basename=$func_cc_basename_result
16363
16364
16365# Only perform the check for file, if the check method requires it
16366test -z "$MAGIC_CMD" && MAGIC_CMD=file
16367case $deplibs_check_method in
16368file_magic*)
16369  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
16370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
16371$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
16372if ${lt_cv_path_MAGIC_CMD+:} false; then :
16373  $as_echo_n "(cached) " >&6
16374else
16375  case $MAGIC_CMD in
16376[\\/*] |  ?:[\\/]*)
16377  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16378  ;;
16379*)
16380  lt_save_MAGIC_CMD=$MAGIC_CMD
16381  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16382  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16383  for ac_dir in $ac_dummy; do
16384    IFS=$lt_save_ifs
16385    test -z "$ac_dir" && ac_dir=.
16386    if test -f "$ac_dir/${ac_tool_prefix}file"; then
16387      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
16388      if test -n "$file_magic_test_file"; then
16389	case $deplibs_check_method in
16390	"file_magic "*)
16391	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16392	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16393	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16394	    $EGREP "$file_magic_regex" > /dev/null; then
16395	    :
16396	  else
16397	    cat <<_LT_EOF 1>&2
16398
16399*** Warning: the command libtool uses to detect shared libraries,
16400*** $file_magic_cmd, produces output that libtool cannot recognize.
16401*** The result is that libtool may fail to recognize shared libraries
16402*** as such.  This will affect the creation of libtool libraries that
16403*** depend on shared libraries, but programs linked with such libtool
16404*** libraries will work regardless of this problem.  Nevertheless, you
16405*** may want to report the problem to your system manager and/or to
16406*** bug-libtool@gnu.org
16407
16408_LT_EOF
16409	  fi ;;
16410	esac
16411      fi
16412      break
16413    fi
16414  done
16415  IFS=$lt_save_ifs
16416  MAGIC_CMD=$lt_save_MAGIC_CMD
16417  ;;
16418esac
16419fi
16420
16421MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16422if test -n "$MAGIC_CMD"; then
16423  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16424$as_echo "$MAGIC_CMD" >&6; }
16425else
16426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16427$as_echo "no" >&6; }
16428fi
16429
16430
16431
16432
16433
16434if test -z "$lt_cv_path_MAGIC_CMD"; then
16435  if test -n "$ac_tool_prefix"; then
16436    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
16437$as_echo_n "checking for file... " >&6; }
16438if ${lt_cv_path_MAGIC_CMD+:} false; then :
16439  $as_echo_n "(cached) " >&6
16440else
16441  case $MAGIC_CMD in
16442[\\/*] |  ?:[\\/]*)
16443  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
16444  ;;
16445*)
16446  lt_save_MAGIC_CMD=$MAGIC_CMD
16447  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
16448  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
16449  for ac_dir in $ac_dummy; do
16450    IFS=$lt_save_ifs
16451    test -z "$ac_dir" && ac_dir=.
16452    if test -f "$ac_dir/file"; then
16453      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
16454      if test -n "$file_magic_test_file"; then
16455	case $deplibs_check_method in
16456	"file_magic "*)
16457	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
16458	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16459	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
16460	    $EGREP "$file_magic_regex" > /dev/null; then
16461	    :
16462	  else
16463	    cat <<_LT_EOF 1>&2
16464
16465*** Warning: the command libtool uses to detect shared libraries,
16466*** $file_magic_cmd, produces output that libtool cannot recognize.
16467*** The result is that libtool may fail to recognize shared libraries
16468*** as such.  This will affect the creation of libtool libraries that
16469*** depend on shared libraries, but programs linked with such libtool
16470*** libraries will work regardless of this problem.  Nevertheless, you
16471*** may want to report the problem to your system manager and/or to
16472*** bug-libtool@gnu.org
16473
16474_LT_EOF
16475	  fi ;;
16476	esac
16477      fi
16478      break
16479    fi
16480  done
16481  IFS=$lt_save_ifs
16482  MAGIC_CMD=$lt_save_MAGIC_CMD
16483  ;;
16484esac
16485fi
16486
16487MAGIC_CMD=$lt_cv_path_MAGIC_CMD
16488if test -n "$MAGIC_CMD"; then
16489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
16490$as_echo "$MAGIC_CMD" >&6; }
16491else
16492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16493$as_echo "no" >&6; }
16494fi
16495
16496
16497  else
16498    MAGIC_CMD=:
16499  fi
16500fi
16501
16502  fi
16503  ;;
16504esac
16505
16506# Use C for the default configuration in the libtool script
16507
16508lt_save_CC=$CC
16509ac_ext=c
16510ac_cpp='$CPP $CPPFLAGS'
16511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16513ac_compiler_gnu=$ac_cv_c_compiler_gnu
16514
16515
16516# Source file extension for C test sources.
16517ac_ext=c
16518
16519# Object file extension for compiled C test sources.
16520objext=o
16521objext=$objext
16522
16523# Code to be used in simple compile tests
16524lt_simple_compile_test_code="int some_variable = 0;"
16525
16526# Code to be used in simple link tests
16527lt_simple_link_test_code='int main(){return(0);}'
16528
16529
16530
16531
16532
16533
16534
16535# If no C compiler was specified, use CC.
16536LTCC=${LTCC-"$CC"}
16537
16538# If no C compiler flags were specified, use CFLAGS.
16539LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16540
16541# Allow CC to be a program name with arguments.
16542compiler=$CC
16543
16544# Save the default compiler, since it gets overwritten when the other
16545# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
16546compiler_DEFAULT=$CC
16547
16548# save warnings/boilerplate of simple test code
16549ac_outfile=conftest.$ac_objext
16550echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16551eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16552_lt_compiler_boilerplate=`cat conftest.err`
16553$RM conftest*
16554
16555ac_outfile=conftest.$ac_objext
16556echo "$lt_simple_link_test_code" >conftest.$ac_ext
16557eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16558_lt_linker_boilerplate=`cat conftest.err`
16559$RM -r conftest*
16560
16561
16562## CAVEAT EMPTOR:
16563## There is no encapsulation within the following macros, do not change
16564## the running order or otherwise move them around unless you know exactly
16565## what you are doing...
16566if test -n "$compiler"; then
16567
16568lt_prog_compiler_no_builtin_flag=
16569
16570if test yes = "$GCC"; then
16571  case $cc_basename in
16572  nvcc*)
16573    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
16574  *)
16575    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
16576  esac
16577
16578  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16579$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16580if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16581  $as_echo_n "(cached) " >&6
16582else
16583  lt_cv_prog_compiler_rtti_exceptions=no
16584   ac_outfile=conftest.$ac_objext
16585   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16586   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
16587   # Insert the option either (1) after the last *FLAGS variable, or
16588   # (2) before a word containing "conftest.", or (3) at the end.
16589   # Note that $ac_compile itself does not contain backslashes and begins
16590   # with a dollar sign (not a hyphen), so the echo should work correctly.
16591   # The option is referenced via a variable to avoid confusing sed.
16592   lt_compile=`echo "$ac_compile" | $SED \
16593   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16594   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16595   -e 's:$: $lt_compiler_flag:'`
16596   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16597   (eval "$lt_compile" 2>conftest.err)
16598   ac_status=$?
16599   cat conftest.err >&5
16600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16601   if (exit $ac_status) && test -s "$ac_outfile"; then
16602     # The compiler can only warn and ignore the option if not recognized
16603     # So say no if there are warnings other than the usual output.
16604     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16605     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16606     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16607       lt_cv_prog_compiler_rtti_exceptions=yes
16608     fi
16609   fi
16610   $RM conftest*
16611
16612fi
16613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16614$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16615
16616if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
16617    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
16618else
16619    :
16620fi
16621
16622fi
16623
16624
16625
16626
16627
16628
16629  lt_prog_compiler_wl=
16630lt_prog_compiler_pic=
16631lt_prog_compiler_static=
16632
16633
16634  if test yes = "$GCC"; then
16635    lt_prog_compiler_wl='-Wl,'
16636    lt_prog_compiler_static='-static'
16637
16638    case $host_os in
16639      aix*)
16640      # All AIX code is PIC.
16641      if test ia64 = "$host_cpu"; then
16642	# AIX 5 now supports IA64 processor
16643	lt_prog_compiler_static='-Bstatic'
16644      fi
16645      lt_prog_compiler_pic='-fPIC'
16646      ;;
16647
16648    amigaos*)
16649      case $host_cpu in
16650      powerpc)
16651            # see comment about AmigaOS4 .so support
16652            lt_prog_compiler_pic='-fPIC'
16653        ;;
16654      m68k)
16655            # FIXME: we need at least 68020 code to build shared libraries, but
16656            # adding the '-m68020' flag to GCC prevents building anything better,
16657            # like '-m68040'.
16658            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
16659        ;;
16660      esac
16661      ;;
16662
16663    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16664      # PIC is the default for these OSes.
16665      ;;
16666
16667    mingw* | cygwin* | pw32* | os2* | cegcc*)
16668      # This hack is so that the source file can tell whether it is being
16669      # built for inclusion in a dll (and should export symbols for example).
16670      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16671      # (--disable-auto-import) libraries
16672      lt_prog_compiler_pic='-DDLL_EXPORT'
16673      case $host_os in
16674      os2*)
16675	lt_prog_compiler_static='$wl-static'
16676	;;
16677      esac
16678      ;;
16679
16680    darwin* | rhapsody*)
16681      # PIC is the default on this platform
16682      # Common symbols not allowed in MH_DYLIB files
16683      lt_prog_compiler_pic='-fno-common'
16684      ;;
16685
16686    haiku*)
16687      # PIC is the default for Haiku.
16688      # The "-static" flag exists, but is broken.
16689      lt_prog_compiler_static=
16690      ;;
16691
16692    hpux*)
16693      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16694      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16695      # sets the default TLS model and affects inlining.
16696      case $host_cpu in
16697      hppa*64*)
16698	# +Z the default
16699	;;
16700      *)
16701	lt_prog_compiler_pic='-fPIC'
16702	;;
16703      esac
16704      ;;
16705
16706    interix[3-9]*)
16707      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16708      # Instead, we relocate shared libraries at runtime.
16709      ;;
16710
16711    msdosdjgpp*)
16712      # Just because we use GCC doesn't mean we suddenly get shared libraries
16713      # on systems that don't support them.
16714      lt_prog_compiler_can_build_shared=no
16715      enable_shared=no
16716      ;;
16717
16718    *nto* | *qnx*)
16719      # QNX uses GNU C++, but need to define -shared option too, otherwise
16720      # it will coredump.
16721      lt_prog_compiler_pic='-fPIC -shared'
16722      ;;
16723
16724    sysv4*MP*)
16725      if test -d /usr/nec; then
16726	lt_prog_compiler_pic=-Kconform_pic
16727      fi
16728      ;;
16729
16730    *)
16731      lt_prog_compiler_pic='-fPIC'
16732      ;;
16733    esac
16734
16735    case $cc_basename in
16736    nvcc*) # Cuda Compiler Driver 2.2
16737      lt_prog_compiler_wl='-Xlinker '
16738      if test -n "$lt_prog_compiler_pic"; then
16739        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
16740      fi
16741      ;;
16742    esac
16743  else
16744    # PORTME Check for flag to pass linker flags through the system compiler.
16745    case $host_os in
16746    aix*)
16747      lt_prog_compiler_wl='-Wl,'
16748      if test ia64 = "$host_cpu"; then
16749	# AIX 5 now supports IA64 processor
16750	lt_prog_compiler_static='-Bstatic'
16751      else
16752	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
16753      fi
16754      ;;
16755
16756    darwin* | rhapsody*)
16757      # PIC is the default on this platform
16758      # Common symbols not allowed in MH_DYLIB files
16759      lt_prog_compiler_pic='-fno-common'
16760      case $cc_basename in
16761      nagfor*)
16762        # NAG Fortran compiler
16763        lt_prog_compiler_wl='-Wl,-Wl,,'
16764        lt_prog_compiler_pic='-PIC'
16765        lt_prog_compiler_static='-Bstatic'
16766        ;;
16767      esac
16768      ;;
16769
16770    mingw* | cygwin* | pw32* | os2* | cegcc*)
16771      # This hack is so that the source file can tell whether it is being
16772      # built for inclusion in a dll (and should export symbols for example).
16773      lt_prog_compiler_pic='-DDLL_EXPORT'
16774      case $host_os in
16775      os2*)
16776	lt_prog_compiler_static='$wl-static'
16777	;;
16778      esac
16779      ;;
16780
16781    hpux9* | hpux10* | hpux11*)
16782      lt_prog_compiler_wl='-Wl,'
16783      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16784      # not for PA HP-UX.
16785      case $host_cpu in
16786      hppa*64*|ia64*)
16787	# +Z the default
16788	;;
16789      *)
16790	lt_prog_compiler_pic='+Z'
16791	;;
16792      esac
16793      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16794      lt_prog_compiler_static='$wl-a ${wl}archive'
16795      ;;
16796
16797    irix5* | irix6* | nonstopux*)
16798      lt_prog_compiler_wl='-Wl,'
16799      # PIC (with -KPIC) is the default.
16800      lt_prog_compiler_static='-non_shared'
16801      ;;
16802
16803    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16804      case $cc_basename in
16805      # old Intel for x86_64, which still supported -KPIC.
16806      ecc*)
16807	lt_prog_compiler_wl='-Wl,'
16808	lt_prog_compiler_pic='-KPIC'
16809	lt_prog_compiler_static='-static'
16810        ;;
16811      # icc used to be incompatible with GCC.
16812      # ICC 10 doesn't accept -KPIC any more.
16813      icc* | ifort*)
16814	lt_prog_compiler_wl='-Wl,'
16815	lt_prog_compiler_pic='-fPIC'
16816	lt_prog_compiler_static='-static'
16817        ;;
16818      # Lahey Fortran 8.1.
16819      lf95*)
16820	lt_prog_compiler_wl='-Wl,'
16821	lt_prog_compiler_pic='--shared'
16822	lt_prog_compiler_static='--static'
16823	;;
16824      nagfor*)
16825	# NAG Fortran compiler
16826	lt_prog_compiler_wl='-Wl,-Wl,,'
16827	lt_prog_compiler_pic='-PIC'
16828	lt_prog_compiler_static='-Bstatic'
16829	;;
16830      tcc*)
16831	# Fabrice Bellard et al's Tiny C Compiler
16832	lt_prog_compiler_wl='-Wl,'
16833	lt_prog_compiler_pic='-fPIC'
16834	lt_prog_compiler_static='-static'
16835	;;
16836      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16837        # Portland Group compilers (*not* the Pentium gcc compiler,
16838	# which looks to be a dead project)
16839	lt_prog_compiler_wl='-Wl,'
16840	lt_prog_compiler_pic='-fpic'
16841	lt_prog_compiler_static='-Bstatic'
16842        ;;
16843      ccc*)
16844        lt_prog_compiler_wl='-Wl,'
16845        # All Alpha code is PIC.
16846        lt_prog_compiler_static='-non_shared'
16847        ;;
16848      xl* | bgxl* | bgf* | mpixl*)
16849	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16850	lt_prog_compiler_wl='-Wl,'
16851	lt_prog_compiler_pic='-qpic'
16852	lt_prog_compiler_static='-qstaticlink'
16853	;;
16854      *)
16855	case `$CC -V 2>&1 | sed 5q` in
16856	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16857	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16858	  lt_prog_compiler_pic='-KPIC'
16859	  lt_prog_compiler_static='-Bstatic'
16860	  lt_prog_compiler_wl=''
16861	  ;;
16862	*Sun\ F* | *Sun*Fortran*)
16863	  lt_prog_compiler_pic='-KPIC'
16864	  lt_prog_compiler_static='-Bstatic'
16865	  lt_prog_compiler_wl='-Qoption ld '
16866	  ;;
16867	*Sun\ C*)
16868	  # Sun C 5.9
16869	  lt_prog_compiler_pic='-KPIC'
16870	  lt_prog_compiler_static='-Bstatic'
16871	  lt_prog_compiler_wl='-Wl,'
16872	  ;;
16873        *Intel*\ [CF]*Compiler*)
16874	  lt_prog_compiler_wl='-Wl,'
16875	  lt_prog_compiler_pic='-fPIC'
16876	  lt_prog_compiler_static='-static'
16877	  ;;
16878	*Portland\ Group*)
16879	  lt_prog_compiler_wl='-Wl,'
16880	  lt_prog_compiler_pic='-fpic'
16881	  lt_prog_compiler_static='-Bstatic'
16882	  ;;
16883	esac
16884	;;
16885      esac
16886      ;;
16887
16888    newsos6)
16889      lt_prog_compiler_pic='-KPIC'
16890      lt_prog_compiler_static='-Bstatic'
16891      ;;
16892
16893    *nto* | *qnx*)
16894      # QNX uses GNU C++, but need to define -shared option too, otherwise
16895      # it will coredump.
16896      lt_prog_compiler_pic='-fPIC -shared'
16897      ;;
16898
16899    osf3* | osf4* | osf5*)
16900      lt_prog_compiler_wl='-Wl,'
16901      # All OSF/1 code is PIC.
16902      lt_prog_compiler_static='-non_shared'
16903      ;;
16904
16905    rdos*)
16906      lt_prog_compiler_static='-non_shared'
16907      ;;
16908
16909    solaris*)
16910      lt_prog_compiler_pic='-KPIC'
16911      lt_prog_compiler_static='-Bstatic'
16912      case $cc_basename in
16913      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16914	lt_prog_compiler_wl='-Qoption ld ';;
16915      *)
16916	lt_prog_compiler_wl='-Wl,';;
16917      esac
16918      ;;
16919
16920    sunos4*)
16921      lt_prog_compiler_wl='-Qoption ld '
16922      lt_prog_compiler_pic='-PIC'
16923      lt_prog_compiler_static='-Bstatic'
16924      ;;
16925
16926    sysv4 | sysv4.2uw2* | sysv4.3*)
16927      lt_prog_compiler_wl='-Wl,'
16928      lt_prog_compiler_pic='-KPIC'
16929      lt_prog_compiler_static='-Bstatic'
16930      ;;
16931
16932    sysv4*MP*)
16933      if test -d /usr/nec; then
16934	lt_prog_compiler_pic='-Kconform_pic'
16935	lt_prog_compiler_static='-Bstatic'
16936      fi
16937      ;;
16938
16939    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16940      lt_prog_compiler_wl='-Wl,'
16941      lt_prog_compiler_pic='-KPIC'
16942      lt_prog_compiler_static='-Bstatic'
16943      ;;
16944
16945    unicos*)
16946      lt_prog_compiler_wl='-Wl,'
16947      lt_prog_compiler_can_build_shared=no
16948      ;;
16949
16950    uts4*)
16951      lt_prog_compiler_pic='-pic'
16952      lt_prog_compiler_static='-Bstatic'
16953      ;;
16954
16955    *)
16956      lt_prog_compiler_can_build_shared=no
16957      ;;
16958    esac
16959  fi
16960
16961case $host_os in
16962  # For platforms that do not support PIC, -DPIC is meaningless:
16963  *djgpp*)
16964    lt_prog_compiler_pic=
16965    ;;
16966  *)
16967    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
16968    ;;
16969esac
16970
16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16972$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16973if ${lt_cv_prog_compiler_pic+:} false; then :
16974  $as_echo_n "(cached) " >&6
16975else
16976  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
16977fi
16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
16979$as_echo "$lt_cv_prog_compiler_pic" >&6; }
16980lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
16981
16982#
16983# Check to make sure the PIC flag actually works.
16984#
16985if test -n "$lt_prog_compiler_pic"; then
16986  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
16987$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
16988if ${lt_cv_prog_compiler_pic_works+:} false; then :
16989  $as_echo_n "(cached) " >&6
16990else
16991  lt_cv_prog_compiler_pic_works=no
16992   ac_outfile=conftest.$ac_objext
16993   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16994   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
16995   # Insert the option either (1) after the last *FLAGS variable, or
16996   # (2) before a word containing "conftest.", or (3) at the end.
16997   # Note that $ac_compile itself does not contain backslashes and begins
16998   # with a dollar sign (not a hyphen), so the echo should work correctly.
16999   # The option is referenced via a variable to avoid confusing sed.
17000   lt_compile=`echo "$ac_compile" | $SED \
17001   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17002   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17003   -e 's:$: $lt_compiler_flag:'`
17004   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17005   (eval "$lt_compile" 2>conftest.err)
17006   ac_status=$?
17007   cat conftest.err >&5
17008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009   if (exit $ac_status) && test -s "$ac_outfile"; then
17010     # The compiler can only warn and ignore the option if not recognized
17011     # So say no if there are warnings other than the usual output.
17012     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17013     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17014     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17015       lt_cv_prog_compiler_pic_works=yes
17016     fi
17017   fi
17018   $RM conftest*
17019
17020fi
17021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
17022$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
17023
17024if test yes = "$lt_cv_prog_compiler_pic_works"; then
17025    case $lt_prog_compiler_pic in
17026     "" | " "*) ;;
17027     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
17028     esac
17029else
17030    lt_prog_compiler_pic=
17031     lt_prog_compiler_can_build_shared=no
17032fi
17033
17034fi
17035
17036
17037
17038
17039
17040
17041
17042
17043
17044
17045
17046#
17047# Check to make sure the static flag actually works.
17048#
17049wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
17050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17051$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17052if ${lt_cv_prog_compiler_static_works+:} false; then :
17053  $as_echo_n "(cached) " >&6
17054else
17055  lt_cv_prog_compiler_static_works=no
17056   save_LDFLAGS=$LDFLAGS
17057   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17058   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17059   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17060     # The linker can only warn and ignore the option if not recognized
17061     # So say no if there are warnings
17062     if test -s conftest.err; then
17063       # Append any errors to the config.log.
17064       cat conftest.err 1>&5
17065       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17066       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17067       if diff conftest.exp conftest.er2 >/dev/null; then
17068         lt_cv_prog_compiler_static_works=yes
17069       fi
17070     else
17071       lt_cv_prog_compiler_static_works=yes
17072     fi
17073   fi
17074   $RM -r conftest*
17075   LDFLAGS=$save_LDFLAGS
17076
17077fi
17078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
17079$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
17080
17081if test yes = "$lt_cv_prog_compiler_static_works"; then
17082    :
17083else
17084    lt_prog_compiler_static=
17085fi
17086
17087
17088
17089
17090
17091
17092
17093  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17094$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17095if ${lt_cv_prog_compiler_c_o+:} false; then :
17096  $as_echo_n "(cached) " >&6
17097else
17098  lt_cv_prog_compiler_c_o=no
17099   $RM -r conftest 2>/dev/null
17100   mkdir conftest
17101   cd conftest
17102   mkdir out
17103   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17104
17105   lt_compiler_flag="-o out/conftest2.$ac_objext"
17106   # Insert the option either (1) after the last *FLAGS variable, or
17107   # (2) before a word containing "conftest.", or (3) at the end.
17108   # Note that $ac_compile itself does not contain backslashes and begins
17109   # with a dollar sign (not a hyphen), so the echo should work correctly.
17110   lt_compile=`echo "$ac_compile" | $SED \
17111   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17112   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17113   -e 's:$: $lt_compiler_flag:'`
17114   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17115   (eval "$lt_compile" 2>out/conftest.err)
17116   ac_status=$?
17117   cat out/conftest.err >&5
17118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17120   then
17121     # The compiler can only warn and ignore the option if not recognized
17122     # So say no if there are warnings
17123     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17124     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17125     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17126       lt_cv_prog_compiler_c_o=yes
17127     fi
17128   fi
17129   chmod u+w . 2>&5
17130   $RM conftest*
17131   # SGI C++ compiler will create directory out/ii_files/ for
17132   # template instantiation
17133   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17134   $RM out/* && rmdir out
17135   cd ..
17136   $RM -r conftest
17137   $RM conftest*
17138
17139fi
17140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17141$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17142
17143
17144
17145
17146
17147
17148  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17149$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17150if ${lt_cv_prog_compiler_c_o+:} false; then :
17151  $as_echo_n "(cached) " >&6
17152else
17153  lt_cv_prog_compiler_c_o=no
17154   $RM -r conftest 2>/dev/null
17155   mkdir conftest
17156   cd conftest
17157   mkdir out
17158   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17159
17160   lt_compiler_flag="-o out/conftest2.$ac_objext"
17161   # Insert the option either (1) after the last *FLAGS variable, or
17162   # (2) before a word containing "conftest.", or (3) at the end.
17163   # Note that $ac_compile itself does not contain backslashes and begins
17164   # with a dollar sign (not a hyphen), so the echo should work correctly.
17165   lt_compile=`echo "$ac_compile" | $SED \
17166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168   -e 's:$: $lt_compiler_flag:'`
17169   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17170   (eval "$lt_compile" 2>out/conftest.err)
17171   ac_status=$?
17172   cat out/conftest.err >&5
17173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17175   then
17176     # The compiler can only warn and ignore the option if not recognized
17177     # So say no if there are warnings
17178     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17179     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17180     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17181       lt_cv_prog_compiler_c_o=yes
17182     fi
17183   fi
17184   chmod u+w . 2>&5
17185   $RM conftest*
17186   # SGI C++ compiler will create directory out/ii_files/ for
17187   # template instantiation
17188   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17189   $RM out/* && rmdir out
17190   cd ..
17191   $RM -r conftest
17192   $RM conftest*
17193
17194fi
17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
17196$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
17197
17198
17199
17200
17201hard_links=nottested
17202if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
17203  # do not overwrite the value of need_locks provided by the user
17204  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17205$as_echo_n "checking if we can lock with hard links... " >&6; }
17206  hard_links=yes
17207  $RM conftest*
17208  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17209  touch conftest.a
17210  ln conftest.a conftest.b 2>&5 || hard_links=no
17211  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17213$as_echo "$hard_links" >&6; }
17214  if test no = "$hard_links"; then
17215    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17216$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17217    need_locks=warn
17218  fi
17219else
17220  need_locks=no
17221fi
17222
17223
17224
17225
17226
17227
17228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17229$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17230
17231  runpath_var=
17232  allow_undefined_flag=
17233  always_export_symbols=no
17234  archive_cmds=
17235  archive_expsym_cmds=
17236  compiler_needs_object=no
17237  enable_shared_with_static_runtimes=no
17238  export_dynamic_flag_spec=
17239  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17240  hardcode_automatic=no
17241  hardcode_direct=no
17242  hardcode_direct_absolute=no
17243  hardcode_libdir_flag_spec=
17244  hardcode_libdir_separator=
17245  hardcode_minus_L=no
17246  hardcode_shlibpath_var=unsupported
17247  inherit_rpath=no
17248  link_all_deplibs=unknown
17249  module_cmds=
17250  module_expsym_cmds=
17251  old_archive_from_new_cmds=
17252  old_archive_from_expsyms_cmds=
17253  thread_safe_flag_spec=
17254  whole_archive_flag_spec=
17255  # include_expsyms should be a list of space-separated symbols to be *always*
17256  # included in the symbol list
17257  include_expsyms=
17258  # exclude_expsyms can be an extended regexp of symbols to exclude
17259  # it will be wrapped by ' (' and ')$', so one must not match beginning or
17260  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
17261  # as well as any symbol that contains 'd'.
17262  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17263  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17264  # platforms (ab)use it in PIC code, but their linkers get confused if
17265  # the symbol is explicitly referenced.  Since portable code cannot
17266  # rely on this symbol name, it's probably fine to never include it in
17267  # preloaded symbol tables.
17268  # Exclude shared library initialization/finalization symbols.
17269  extract_expsyms_cmds=
17270
17271  case $host_os in
17272  cygwin* | mingw* | pw32* | cegcc*)
17273    # FIXME: the MSVC++ port hasn't been tested in a loooong time
17274    # When not using gcc, we currently assume that we are using
17275    # Microsoft Visual C++.
17276    if test yes != "$GCC"; then
17277      with_gnu_ld=no
17278    fi
17279    ;;
17280  interix*)
17281    # we just hope/assume this is gcc and not c89 (= MSVC++)
17282    with_gnu_ld=yes
17283    ;;
17284  openbsd* | bitrig*)
17285    with_gnu_ld=no
17286    ;;
17287  esac
17288
17289  ld_shlibs=yes
17290
17291  # On some targets, GNU ld is compatible enough with the native linker
17292  # that we're better off using the native interface for both.
17293  lt_use_gnu_ld_interface=no
17294  if test yes = "$with_gnu_ld"; then
17295    case $host_os in
17296      aix*)
17297	# The AIX port of GNU ld has always aspired to compatibility
17298	# with the native linker.  However, as the warning in the GNU ld
17299	# block says, versions before 2.19.5* couldn't really create working
17300	# shared libraries, regardless of the interface used.
17301	case `$LD -v 2>&1` in
17302	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17303	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17304	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17305	  *)
17306	    lt_use_gnu_ld_interface=yes
17307	    ;;
17308	esac
17309	;;
17310      *)
17311	lt_use_gnu_ld_interface=yes
17312	;;
17313    esac
17314  fi
17315
17316  if test yes = "$lt_use_gnu_ld_interface"; then
17317    # If archive_cmds runs LD, not CC, wlarc should be empty
17318    wlarc='$wl'
17319
17320    # Set some defaults for GNU ld with shared library support. These
17321    # are reset later if shared libraries are not supported. Putting them
17322    # here allows them to be overridden if necessary.
17323    runpath_var=LD_RUN_PATH
17324    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17325    export_dynamic_flag_spec='$wl--export-dynamic'
17326    # ancient GNU ld didn't support --whole-archive et. al.
17327    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17328      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
17329    else
17330      whole_archive_flag_spec=
17331    fi
17332    supports_anon_versioning=no
17333    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
17334      *GNU\ gold*) supports_anon_versioning=yes ;;
17335      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17336      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17337      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17338      *\ 2.11.*) ;; # other 2.11 versions
17339      *) supports_anon_versioning=yes ;;
17340    esac
17341
17342    # See if GNU ld supports shared libraries.
17343    case $host_os in
17344    aix[3-9]*)
17345      # On AIX/PPC, the GNU linker is very broken
17346      if test ia64 != "$host_cpu"; then
17347	ld_shlibs=no
17348	cat <<_LT_EOF 1>&2
17349
17350*** Warning: the GNU linker, at least up to release 2.19, is reported
17351*** to be unable to reliably create shared libraries on AIX.
17352*** Therefore, libtool is disabling shared libraries support.  If you
17353*** really care for shared libraries, you may want to install binutils
17354*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17355*** You will then need to restart the configuration process.
17356
17357_LT_EOF
17358      fi
17359      ;;
17360
17361    amigaos*)
17362      case $host_cpu in
17363      powerpc)
17364            # see comment about AmigaOS4 .so support
17365            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17366            archive_expsym_cmds=''
17367        ;;
17368      m68k)
17369            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17370            hardcode_libdir_flag_spec='-L$libdir'
17371            hardcode_minus_L=yes
17372        ;;
17373      esac
17374      ;;
17375
17376    beos*)
17377      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17378	allow_undefined_flag=unsupported
17379	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17380	# support --undefined.  This deserves some investigation.  FIXME
17381	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17382      else
17383	ld_shlibs=no
17384      fi
17385      ;;
17386
17387    cygwin* | mingw* | pw32* | cegcc*)
17388      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
17389      # as there is no search path for DLLs.
17390      hardcode_libdir_flag_spec='-L$libdir'
17391      export_dynamic_flag_spec='$wl--export-all-symbols'
17392      allow_undefined_flag=unsupported
17393      always_export_symbols=no
17394      enable_shared_with_static_runtimes=yes
17395      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17396      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17397
17398      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17399        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17400	# If the export-symbols file already is a .def file, use it as
17401	# is; otherwise, prepend EXPORTS...
17402	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17403          cp $export_symbols $output_objdir/$soname.def;
17404        else
17405          echo EXPORTS > $output_objdir/$soname.def;
17406          cat $export_symbols >> $output_objdir/$soname.def;
17407        fi~
17408        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17409      else
17410	ld_shlibs=no
17411      fi
17412      ;;
17413
17414    haiku*)
17415      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17416      link_all_deplibs=yes
17417      ;;
17418
17419    os2*)
17420      hardcode_libdir_flag_spec='-L$libdir'
17421      hardcode_minus_L=yes
17422      allow_undefined_flag=unsupported
17423      shrext_cmds=.dll
17424      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17425	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17426	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17427	$ECHO EXPORTS >> $output_objdir/$libname.def~
17428	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
17429	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17430	emximp -o $lib $output_objdir/$libname.def'
17431      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
17432	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
17433	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
17434	$ECHO EXPORTS >> $output_objdir/$libname.def~
17435	prefix_cmds="$SED"~
17436	if test EXPORTS = "`$SED 1q $export_symbols`"; then
17437	  prefix_cmds="$prefix_cmds -e 1d";
17438	fi~
17439	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
17440	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
17441	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
17442	emximp -o $lib $output_objdir/$libname.def'
17443      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
17444      enable_shared_with_static_runtimes=yes
17445      ;;
17446
17447    interix[3-9]*)
17448      hardcode_direct=no
17449      hardcode_shlibpath_var=no
17450      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
17451      export_dynamic_flag_spec='$wl-E'
17452      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17453      # Instead, shared libraries are loaded at an image base (0x10000000 by
17454      # default) and relocated if they conflict, which is a slow very memory
17455      # consuming and fragmenting process.  To avoid this, we pick a random,
17456      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17457      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17458      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17459      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17460      ;;
17461
17462    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17463      tmp_diet=no
17464      if test linux-dietlibc = "$host_os"; then
17465	case $cc_basename in
17466	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
17467	esac
17468      fi
17469      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17470	 && test no = "$tmp_diet"
17471      then
17472	tmp_addflag=' $pic_flag'
17473	tmp_sharedflag='-shared'
17474	case $cc_basename,$host_cpu in
17475        pgcc*)				# Portland Group C compiler
17476	  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'
17477	  tmp_addflag=' $pic_flag'
17478	  ;;
17479	pgf77* | pgf90* | pgf95* | pgfortran*)
17480					# Portland Group f77 and f90 compilers
17481	  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'
17482	  tmp_addflag=' $pic_flag -Mnomain' ;;
17483	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
17484	  tmp_addflag=' -i_dynamic' ;;
17485	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
17486	  tmp_addflag=' -i_dynamic -nofor_main' ;;
17487	ifc* | ifort*)			# Intel Fortran compiler
17488	  tmp_addflag=' -nofor_main' ;;
17489	lf95*)				# Lahey Fortran 8.1
17490	  whole_archive_flag_spec=
17491	  tmp_sharedflag='--shared' ;;
17492        nagfor*)                        # NAGFOR 5.3
17493          tmp_sharedflag='-Wl,-shared' ;;
17494	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17495	  tmp_sharedflag='-qmkshrobj'
17496	  tmp_addflag= ;;
17497	nvcc*)	# Cuda Compiler Driver 2.2
17498	  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'
17499	  compiler_needs_object=yes
17500	  ;;
17501	esac
17502	case `$CC -V 2>&1 | sed 5q` in
17503	*Sun\ C*)			# Sun C 5.9
17504	  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'
17505	  compiler_needs_object=yes
17506	  tmp_sharedflag='-G' ;;
17507	*Sun\ F*)			# Sun Fortran 8.3
17508	  tmp_sharedflag='-G' ;;
17509	esac
17510	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17511
17512        if test yes = "$supports_anon_versioning"; then
17513          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17514            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17515            echo "local: *; };" >> $output_objdir/$libname.ver~
17516            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
17517        fi
17518
17519	case $cc_basename in
17520	tcc*)
17521	  export_dynamic_flag_spec='-rdynamic'
17522	  ;;
17523	xlf* | bgf* | bgxlf* | mpixlf*)
17524	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17525	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
17526	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17527	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17528	  if test yes = "$supports_anon_versioning"; then
17529	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
17530              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17531              echo "local: *; };" >> $output_objdir/$libname.ver~
17532              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17533	  fi
17534	  ;;
17535	esac
17536      else
17537        ld_shlibs=no
17538      fi
17539      ;;
17540
17541    netbsd*)
17542      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17543	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17544	wlarc=
17545      else
17546	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17547	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17548      fi
17549      ;;
17550
17551    solaris*)
17552      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17553	ld_shlibs=no
17554	cat <<_LT_EOF 1>&2
17555
17556*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17557*** create shared libraries on Solaris systems.  Therefore, libtool
17558*** is disabling shared libraries support.  We urge you to upgrade GNU
17559*** binutils to release 2.9.1 or newer.  Another option is to modify
17560*** your PATH or compiler configuration so that the native linker is
17561*** used, and then restart.
17562
17563_LT_EOF
17564      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17565	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17566	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17567      else
17568	ld_shlibs=no
17569      fi
17570      ;;
17571
17572    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17573      case `$LD -v 2>&1` in
17574        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17575	ld_shlibs=no
17576	cat <<_LT_EOF 1>&2
17577
17578*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
17579*** reliably create shared libraries on SCO systems.  Therefore, libtool
17580*** is disabling shared libraries support.  We urge you to upgrade GNU
17581*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17582*** your PATH or compiler configuration so that the native linker is
17583*** used, and then restart.
17584
17585_LT_EOF
17586	;;
17587	*)
17588	  # For security reasons, it is highly recommended that you always
17589	  # use absolute paths for naming shared libraries, and exclude the
17590	  # DT_RUNPATH tag from executables and libraries.  But doing so
17591	  # requires that you compile everything twice, which is a pain.
17592	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17593	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
17594	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17595	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17596	  else
17597	    ld_shlibs=no
17598	  fi
17599	;;
17600      esac
17601      ;;
17602
17603    sunos4*)
17604      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17605      wlarc=
17606      hardcode_direct=yes
17607      hardcode_shlibpath_var=no
17608      ;;
17609
17610    *)
17611      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17612	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17613	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
17614      else
17615	ld_shlibs=no
17616      fi
17617      ;;
17618    esac
17619
17620    if test no = "$ld_shlibs"; then
17621      runpath_var=
17622      hardcode_libdir_flag_spec=
17623      export_dynamic_flag_spec=
17624      whole_archive_flag_spec=
17625    fi
17626  else
17627    # PORTME fill in a description of your system's linker (not GNU ld)
17628    case $host_os in
17629    aix3*)
17630      allow_undefined_flag=unsupported
17631      always_export_symbols=yes
17632      archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17633      # Note: this linker hardcodes the directories in LIBPATH if there
17634      # are no directories specified by -L.
17635      hardcode_minus_L=yes
17636      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
17637	# Neither direct hardcoding nor static linking is supported with a
17638	# broken collect2.
17639	hardcode_direct=unsupported
17640      fi
17641      ;;
17642
17643    aix[4-9]*)
17644      if test ia64 = "$host_cpu"; then
17645	# On IA64, the linker does run time linking by default, so we don't
17646	# have to do anything special.
17647	aix_use_runtimelinking=no
17648	exp_sym_flag='-Bexport'
17649	no_entry_flag=
17650      else
17651	# If we're using GNU nm, then we don't want the "-C" option.
17652	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
17653	# Without the "-l" option, or with the "-B" option, AIX nm treats
17654	# weak defined symbols like other global defined symbols, whereas
17655	# GNU nm marks them as "W".
17656	# While the 'weak' keyword is ignored in the Export File, we need
17657	# it in the Import File for the 'aix-soname' feature, so we have
17658	# to replace the "-B" option with "-P" for AIX nm.
17659	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17660	  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'
17661	else
17662	  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'
17663	fi
17664	aix_use_runtimelinking=no
17665
17666	# Test if we are trying to use run time linking or normal
17667	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17668	# have runtime linking enabled, and use it for executables.
17669	# For shared libraries, we enable/disable runtime linking
17670	# depending on the kind of the shared library created -
17671	# when "with_aix_soname,aix_use_runtimelinking" is:
17672	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
17673	# "aix,yes"  lib.so          shared, rtl:yes, for executables
17674	#            lib.a           static archive
17675	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
17676	#            lib.a(lib.so.V) shared, rtl:no,  for executables
17677	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
17678	#            lib.a(lib.so.V) shared, rtl:no
17679	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
17680	#            lib.a           static archive
17681	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17682	  for ld_flag in $LDFLAGS; do
17683	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
17684	    aix_use_runtimelinking=yes
17685	    break
17686	  fi
17687	  done
17688	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
17689	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
17690	    # so we don't have lib.a shared libs to link our executables.
17691	    # We have to force runtime linking in this case.
17692	    aix_use_runtimelinking=yes
17693	    LDFLAGS="$LDFLAGS -Wl,-brtl"
17694	  fi
17695	  ;;
17696	esac
17697
17698	exp_sym_flag='-bexport'
17699	no_entry_flag='-bnoentry'
17700      fi
17701
17702      # When large executables or shared objects are built, AIX ld can
17703      # have problems creating the table of contents.  If linking a library
17704      # or program results in "error TOC overflow" add -mminimal-toc to
17705      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17706      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17707
17708      archive_cmds=''
17709      hardcode_direct=yes
17710      hardcode_direct_absolute=yes
17711      hardcode_libdir_separator=':'
17712      link_all_deplibs=yes
17713      file_list_spec='$wl-f,'
17714      case $with_aix_soname,$aix_use_runtimelinking in
17715      aix,*) ;; # traditional, no import file
17716      svr4,* | *,yes) # use import file
17717	# The Import File defines what to hardcode.
17718	hardcode_direct=no
17719	hardcode_direct_absolute=no
17720	;;
17721      esac
17722
17723      if test yes = "$GCC"; then
17724	case $host_os in aix4.[012]|aix4.[012].*)
17725	# We only want to do this on AIX 4.2 and lower, the check
17726	# below for broken collect2 doesn't work under 4.3+
17727	  collect2name=`$CC -print-prog-name=collect2`
17728	  if test -f "$collect2name" &&
17729	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17730	  then
17731	  # We have reworked collect2
17732	  :
17733	  else
17734	  # We have old collect2
17735	  hardcode_direct=unsupported
17736	  # It fails to find uninstalled libraries when the uninstalled
17737	  # path is not listed in the libpath.  Setting hardcode_minus_L
17738	  # to unsupported forces relinking
17739	  hardcode_minus_L=yes
17740	  hardcode_libdir_flag_spec='-L$libdir'
17741	  hardcode_libdir_separator=
17742	  fi
17743	  ;;
17744	esac
17745	shared_flag='-shared'
17746	if test yes = "$aix_use_runtimelinking"; then
17747	  shared_flag="$shared_flag "'$wl-G'
17748	fi
17749	# Need to ensure runtime linking is disabled for the traditional
17750	# shared library, or the linker may eventually find shared libraries
17751	# /with/ Import File - we do not want to mix them.
17752	shared_flag_aix='-shared'
17753	shared_flag_svr4='-shared $wl-G'
17754      else
17755	# not using gcc
17756	if test ia64 = "$host_cpu"; then
17757	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17758	# chokes on -Wl,-G. The following line is correct:
17759	  shared_flag='-G'
17760	else
17761	  if test yes = "$aix_use_runtimelinking"; then
17762	    shared_flag='$wl-G'
17763	  else
17764	    shared_flag='$wl-bM:SRE'
17765	  fi
17766	  shared_flag_aix='$wl-bM:SRE'
17767	  shared_flag_svr4='$wl-G'
17768	fi
17769      fi
17770
17771      export_dynamic_flag_spec='$wl-bexpall'
17772      # It seems that -bexpall does not export symbols beginning with
17773      # underscore (_), so it is better to generate a list of symbols to export.
17774      always_export_symbols=yes
17775      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
17776	# Warning - without using the other runtime loading flags (-brtl),
17777	# -berok will link without error, but may produce a broken library.
17778	allow_undefined_flag='-berok'
17779        # Determine the default libpath from the value encoded in an
17780        # empty executable.
17781        if test set = "${lt_cv_aix_libpath+set}"; then
17782  aix_libpath=$lt_cv_aix_libpath
17783else
17784  if ${lt_cv_aix_libpath_+:} false; then :
17785  $as_echo_n "(cached) " >&6
17786else
17787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17788/* end confdefs.h.  */
17789
17790int
17791main ()
17792{
17793
17794  ;
17795  return 0;
17796}
17797_ACEOF
17798if ac_fn_c_try_link "$LINENO"; then :
17799
17800  lt_aix_libpath_sed='
17801      /Import File Strings/,/^$/ {
17802	  /^0/ {
17803	      s/^0  *\([^ ]*\) *$/\1/
17804	      p
17805	  }
17806      }'
17807  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17808  # Check for a 64-bit object if we didn't find anything.
17809  if test -z "$lt_cv_aix_libpath_"; then
17810    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17811  fi
17812fi
17813rm -f core conftest.err conftest.$ac_objext \
17814    conftest$ac_exeext conftest.$ac_ext
17815  if test -z "$lt_cv_aix_libpath_"; then
17816    lt_cv_aix_libpath_=/usr/lib:/lib
17817  fi
17818
17819fi
17820
17821  aix_libpath=$lt_cv_aix_libpath_
17822fi
17823
17824        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17825        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
17826      else
17827	if test ia64 = "$host_cpu"; then
17828	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
17829	  allow_undefined_flag="-z nodefs"
17830	  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"
17831	else
17832	 # Determine the default libpath from the value encoded in an
17833	 # empty executable.
17834	 if test set = "${lt_cv_aix_libpath+set}"; then
17835  aix_libpath=$lt_cv_aix_libpath
17836else
17837  if ${lt_cv_aix_libpath_+:} false; then :
17838  $as_echo_n "(cached) " >&6
17839else
17840  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17841/* end confdefs.h.  */
17842
17843int
17844main ()
17845{
17846
17847  ;
17848  return 0;
17849}
17850_ACEOF
17851if ac_fn_c_try_link "$LINENO"; then :
17852
17853  lt_aix_libpath_sed='
17854      /Import File Strings/,/^$/ {
17855	  /^0/ {
17856	      s/^0  *\([^ ]*\) *$/\1/
17857	      p
17858	  }
17859      }'
17860  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17861  # Check for a 64-bit object if we didn't find anything.
17862  if test -z "$lt_cv_aix_libpath_"; then
17863    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17864  fi
17865fi
17866rm -f core conftest.err conftest.$ac_objext \
17867    conftest$ac_exeext conftest.$ac_ext
17868  if test -z "$lt_cv_aix_libpath_"; then
17869    lt_cv_aix_libpath_=/usr/lib:/lib
17870  fi
17871
17872fi
17873
17874  aix_libpath=$lt_cv_aix_libpath_
17875fi
17876
17877	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
17878	  # Warning - without using the other run time loading flags,
17879	  # -berok will link without error, but may produce a broken library.
17880	  no_undefined_flag=' $wl-bernotok'
17881	  allow_undefined_flag=' $wl-berok'
17882	  if test yes = "$with_gnu_ld"; then
17883	    # We only use this code for GNU lds that support --whole-archive.
17884	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
17885	  else
17886	    # Exported symbols can be pulled into shared objects from archives
17887	    whole_archive_flag_spec='$convenience'
17888	  fi
17889	  archive_cmds_need_lc=yes
17890	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
17891	  # -brtl affects multiple linker settings, -berok does not and is overridden later
17892	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
17893	  if test svr4 != "$with_aix_soname"; then
17894	    # This is similar to how AIX traditionally builds its shared libraries.
17895	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
17896	  fi
17897	  if test aix != "$with_aix_soname"; then
17898	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
17899	  else
17900	    # used by -dlpreopen to get the symbols
17901	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
17902	  fi
17903	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
17904	fi
17905      fi
17906      ;;
17907
17908    amigaos*)
17909      case $host_cpu in
17910      powerpc)
17911            # see comment about AmigaOS4 .so support
17912            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
17913            archive_expsym_cmds=''
17914        ;;
17915      m68k)
17916            archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17917            hardcode_libdir_flag_spec='-L$libdir'
17918            hardcode_minus_L=yes
17919        ;;
17920      esac
17921      ;;
17922
17923    bsdi[45]*)
17924      export_dynamic_flag_spec=-rdynamic
17925      ;;
17926
17927    cygwin* | mingw* | pw32* | cegcc*)
17928      # When not using gcc, we currently assume that we are using
17929      # Microsoft Visual C++.
17930      # hardcode_libdir_flag_spec is actually meaningless, as there is
17931      # no search path for DLLs.
17932      case $cc_basename in
17933      cl*)
17934	# Native MSVC
17935	hardcode_libdir_flag_spec=' '
17936	allow_undefined_flag=unsupported
17937	always_export_symbols=yes
17938	file_list_spec='@'
17939	# Tell ltmain to make .lib files, not .a files.
17940	libext=lib
17941	# Tell ltmain to make .dll files, not .so files.
17942	shrext_cmds=.dll
17943	# FIXME: Setting linknames here is a bad hack.
17944	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
17945	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
17946            cp "$export_symbols" "$output_objdir/$soname.def";
17947            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
17948          else
17949            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
17950          fi~
17951          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17952          linknames='
17953	# The linker will not automatically build a static lib if we build a DLL.
17954	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
17955	enable_shared_with_static_runtimes=yes
17956	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17957	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17958	# Don't use ranlib
17959	old_postinstall_cmds='chmod 644 $oldlib'
17960	postlink_cmds='lt_outputfile="@OUTPUT@"~
17961          lt_tool_outputfile="@TOOL_OUTPUT@"~
17962          case $lt_outputfile in
17963            *.exe|*.EXE) ;;
17964            *)
17965              lt_outputfile=$lt_outputfile.exe
17966              lt_tool_outputfile=$lt_tool_outputfile.exe
17967              ;;
17968          esac~
17969          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
17970            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17971            $RM "$lt_outputfile.manifest";
17972          fi'
17973	;;
17974      *)
17975	# Assume MSVC wrapper
17976	hardcode_libdir_flag_spec=' '
17977	allow_undefined_flag=unsupported
17978	# Tell ltmain to make .lib files, not .a files.
17979	libext=lib
17980	# Tell ltmain to make .dll files, not .so files.
17981	shrext_cmds=.dll
17982	# FIXME: Setting linknames here is a bad hack.
17983	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17984	# The linker will automatically build a .lib file if we build a DLL.
17985	old_archive_from_new_cmds='true'
17986	# FIXME: Should let the user specify the lib program.
17987	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
17988	enable_shared_with_static_runtimes=yes
17989	;;
17990      esac
17991      ;;
17992
17993    darwin* | rhapsody*)
17994
17995
17996  archive_cmds_need_lc=no
17997  hardcode_direct=no
17998  hardcode_automatic=yes
17999  hardcode_shlibpath_var=unsupported
18000  if test yes = "$lt_cv_ld_force_load"; then
18001    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18002
18003  else
18004    whole_archive_flag_spec=''
18005  fi
18006  link_all_deplibs=yes
18007  allow_undefined_flag=$_lt_dar_allow_undefined
18008  case $cc_basename in
18009     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
18010     *) _lt_dar_can_shared=$GCC ;;
18011  esac
18012  if test yes = "$_lt_dar_can_shared"; then
18013    output_verbose_link_cmd=func_echo_all
18014    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
18015    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
18016    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
18017    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
18018
18019  else
18020  ld_shlibs=no
18021  fi
18022
18023      ;;
18024
18025    dgux*)
18026      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18027      hardcode_libdir_flag_spec='-L$libdir'
18028      hardcode_shlibpath_var=no
18029      ;;
18030
18031    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18032    # support.  Future versions do this automatically, but an explicit c++rt0.o
18033    # does not break anything, and helps significantly (at the cost of a little
18034    # extra space).
18035    freebsd2.2*)
18036      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18037      hardcode_libdir_flag_spec='-R$libdir'
18038      hardcode_direct=yes
18039      hardcode_shlibpath_var=no
18040      ;;
18041
18042    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18043    freebsd2.*)
18044      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18045      hardcode_direct=yes
18046      hardcode_minus_L=yes
18047      hardcode_shlibpath_var=no
18048      ;;
18049
18050    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18051    freebsd* | dragonfly*)
18052      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18053      hardcode_libdir_flag_spec='-R$libdir'
18054      hardcode_direct=yes
18055      hardcode_shlibpath_var=no
18056      ;;
18057
18058    hpux9*)
18059      if test yes = "$GCC"; then
18060	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
18061      else
18062	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'
18063      fi
18064      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18065      hardcode_libdir_separator=:
18066      hardcode_direct=yes
18067
18068      # hardcode_minus_L: Not really in the search PATH,
18069      # but as the default location of the library.
18070      hardcode_minus_L=yes
18071      export_dynamic_flag_spec='$wl-E'
18072      ;;
18073
18074    hpux10*)
18075      if test yes,no = "$GCC,$with_gnu_ld"; then
18076	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18077      else
18078	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18079      fi
18080      if test no = "$with_gnu_ld"; then
18081	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18082	hardcode_libdir_separator=:
18083	hardcode_direct=yes
18084	hardcode_direct_absolute=yes
18085	export_dynamic_flag_spec='$wl-E'
18086	# hardcode_minus_L: Not really in the search PATH,
18087	# but as the default location of the library.
18088	hardcode_minus_L=yes
18089      fi
18090      ;;
18091
18092    hpux11*)
18093      if test yes,no = "$GCC,$with_gnu_ld"; then
18094	case $host_cpu in
18095	hppa*64*)
18096	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18097	  ;;
18098	ia64*)
18099	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18100	  ;;
18101	*)
18102	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18103	  ;;
18104	esac
18105      else
18106	case $host_cpu in
18107	hppa*64*)
18108	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18109	  ;;
18110	ia64*)
18111	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18112	  ;;
18113	*)
18114
18115	  # Older versions of the 11.00 compiler do not understand -b yet
18116	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
18117	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
18118$as_echo_n "checking if $CC understands -b... " >&6; }
18119if ${lt_cv_prog_compiler__b+:} false; then :
18120  $as_echo_n "(cached) " >&6
18121else
18122  lt_cv_prog_compiler__b=no
18123   save_LDFLAGS=$LDFLAGS
18124   LDFLAGS="$LDFLAGS -b"
18125   echo "$lt_simple_link_test_code" > conftest.$ac_ext
18126   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18127     # The linker can only warn and ignore the option if not recognized
18128     # So say no if there are warnings
18129     if test -s conftest.err; then
18130       # Append any errors to the config.log.
18131       cat conftest.err 1>&5
18132       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18133       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18134       if diff conftest.exp conftest.er2 >/dev/null; then
18135         lt_cv_prog_compiler__b=yes
18136       fi
18137     else
18138       lt_cv_prog_compiler__b=yes
18139     fi
18140   fi
18141   $RM -r conftest*
18142   LDFLAGS=$save_LDFLAGS
18143
18144fi
18145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
18146$as_echo "$lt_cv_prog_compiler__b" >&6; }
18147
18148if test yes = "$lt_cv_prog_compiler__b"; then
18149    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18150else
18151    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18152fi
18153
18154	  ;;
18155	esac
18156      fi
18157      if test no = "$with_gnu_ld"; then
18158	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
18159	hardcode_libdir_separator=:
18160
18161	case $host_cpu in
18162	hppa*64*|ia64*)
18163	  hardcode_direct=no
18164	  hardcode_shlibpath_var=no
18165	  ;;
18166	*)
18167	  hardcode_direct=yes
18168	  hardcode_direct_absolute=yes
18169	  export_dynamic_flag_spec='$wl-E'
18170
18171	  # hardcode_minus_L: Not really in the search PATH,
18172	  # but as the default location of the library.
18173	  hardcode_minus_L=yes
18174	  ;;
18175	esac
18176      fi
18177      ;;
18178
18179    irix5* | irix6* | nonstopux*)
18180      if test yes = "$GCC"; then
18181	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
18182	# Try to use the -exported_symbol ld option, if it does not
18183	# work, assume that -exports_file does not work either and
18184	# implicitly export all symbols.
18185	# This should be the same for all languages, so no per-tag cache variable.
18186	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
18187$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
18188if ${lt_cv_irix_exported_symbol+:} false; then :
18189  $as_echo_n "(cached) " >&6
18190else
18191  save_LDFLAGS=$LDFLAGS
18192	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
18193	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194/* end confdefs.h.  */
18195int foo (void) { return 0; }
18196_ACEOF
18197if ac_fn_c_try_link "$LINENO"; then :
18198  lt_cv_irix_exported_symbol=yes
18199else
18200  lt_cv_irix_exported_symbol=no
18201fi
18202rm -f core conftest.err conftest.$ac_objext \
18203    conftest$ac_exeext conftest.$ac_ext
18204           LDFLAGS=$save_LDFLAGS
18205fi
18206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
18207$as_echo "$lt_cv_irix_exported_symbol" >&6; }
18208	if test yes = "$lt_cv_irix_exported_symbol"; then
18209          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
18210	fi
18211      else
18212	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
18213	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
18214      fi
18215      archive_cmds_need_lc='no'
18216      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18217      hardcode_libdir_separator=:
18218      inherit_rpath=yes
18219      link_all_deplibs=yes
18220      ;;
18221
18222    linux*)
18223      case $cc_basename in
18224      tcc*)
18225	# Fabrice Bellard et al's Tiny C Compiler
18226	ld_shlibs=yes
18227	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18228	;;
18229      esac
18230      ;;
18231
18232    netbsd*)
18233      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18234	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18235      else
18236	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18237      fi
18238      hardcode_libdir_flag_spec='-R$libdir'
18239      hardcode_direct=yes
18240      hardcode_shlibpath_var=no
18241      ;;
18242
18243    newsos6)
18244      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18245      hardcode_direct=yes
18246      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18247      hardcode_libdir_separator=:
18248      hardcode_shlibpath_var=no
18249      ;;
18250
18251    *nto* | *qnx*)
18252      ;;
18253
18254    openbsd* | bitrig*)
18255      if test -f /usr/libexec/ld.so; then
18256	hardcode_direct=yes
18257	hardcode_shlibpath_var=no
18258	hardcode_direct_absolute=yes
18259	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18260	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18261	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
18262	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18263	  export_dynamic_flag_spec='$wl-E'
18264	else
18265	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18266	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
18267	fi
18268      else
18269	ld_shlibs=no
18270      fi
18271      ;;
18272
18273    os2*)
18274      hardcode_libdir_flag_spec='-L$libdir'
18275      hardcode_minus_L=yes
18276      allow_undefined_flag=unsupported
18277      shrext_cmds=.dll
18278      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18279	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18280	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18281	$ECHO EXPORTS >> $output_objdir/$libname.def~
18282	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
18283	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18284	emximp -o $lib $output_objdir/$libname.def'
18285      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
18286	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
18287	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
18288	$ECHO EXPORTS >> $output_objdir/$libname.def~
18289	prefix_cmds="$SED"~
18290	if test EXPORTS = "`$SED 1q $export_symbols`"; then
18291	  prefix_cmds="$prefix_cmds -e 1d";
18292	fi~
18293	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
18294	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
18295	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
18296	emximp -o $lib $output_objdir/$libname.def'
18297      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
18298      enable_shared_with_static_runtimes=yes
18299      ;;
18300
18301    osf3*)
18302      if test yes = "$GCC"; then
18303	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18304	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
18305      else
18306	allow_undefined_flag=' -expect_unresolved \*'
18307	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'
18308      fi
18309      archive_cmds_need_lc='no'
18310      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18311      hardcode_libdir_separator=:
18312      ;;
18313
18314    osf4* | osf5*)	# as osf3* with the addition of -msym flag
18315      if test yes = "$GCC"; then
18316	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
18317	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
18318	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
18319      else
18320	allow_undefined_flag=' -expect_unresolved \*'
18321	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'
18322	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~
18323          $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'
18324
18325	# Both c and cxx compiler support -rpath directly
18326	hardcode_libdir_flag_spec='-rpath $libdir'
18327      fi
18328      archive_cmds_need_lc='no'
18329      hardcode_libdir_separator=:
18330      ;;
18331
18332    solaris*)
18333      no_undefined_flag=' -z defs'
18334      if test yes = "$GCC"; then
18335	wlarc='$wl'
18336	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
18337	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18338          $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'
18339      else
18340	case `$CC -V 2>&1` in
18341	*"Compilers 5.0"*)
18342	  wlarc=''
18343	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
18344	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18345            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18346	  ;;
18347	*)
18348	  wlarc='$wl'
18349	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18350	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18351            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18352	  ;;
18353	esac
18354      fi
18355      hardcode_libdir_flag_spec='-R$libdir'
18356      hardcode_shlibpath_var=no
18357      case $host_os in
18358      solaris2.[0-5] | solaris2.[0-5].*) ;;
18359      *)
18360	# The compiler driver will combine and reorder linker options,
18361	# but understands '-z linker_flag'.  GCC discards it without '$wl',
18362	# but is careful enough not to reorder.
18363	# Supported since Solaris 2.6 (maybe 2.5.1?)
18364	if test yes = "$GCC"; then
18365	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
18366	else
18367	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
18368	fi
18369	;;
18370      esac
18371      link_all_deplibs=yes
18372      ;;
18373
18374    sunos4*)
18375      if test sequent = "$host_vendor"; then
18376	# Use $CC to link under sequent, because it throws in some extra .o
18377	# files that make .init and .fini sections work.
18378	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18379      else
18380	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18381      fi
18382      hardcode_libdir_flag_spec='-L$libdir'
18383      hardcode_direct=yes
18384      hardcode_minus_L=yes
18385      hardcode_shlibpath_var=no
18386      ;;
18387
18388    sysv4)
18389      case $host_vendor in
18390	sni)
18391	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18392	  hardcode_direct=yes # is this really true???
18393	;;
18394	siemens)
18395	  ## LD is ld it makes a PLAMLIB
18396	  ## CC just makes a GrossModule.
18397	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18398	  reload_cmds='$CC -r -o $output$reload_objs'
18399	  hardcode_direct=no
18400        ;;
18401	motorola)
18402	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18403	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
18404	;;
18405      esac
18406      runpath_var='LD_RUN_PATH'
18407      hardcode_shlibpath_var=no
18408      ;;
18409
18410    sysv4.3*)
18411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18412      hardcode_shlibpath_var=no
18413      export_dynamic_flag_spec='-Bexport'
18414      ;;
18415
18416    sysv4*MP*)
18417      if test -d /usr/nec; then
18418	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18419	hardcode_shlibpath_var=no
18420	runpath_var=LD_RUN_PATH
18421	hardcode_runpath_var=yes
18422	ld_shlibs=yes
18423      fi
18424      ;;
18425
18426    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18427      no_undefined_flag='$wl-z,text'
18428      archive_cmds_need_lc=no
18429      hardcode_shlibpath_var=no
18430      runpath_var='LD_RUN_PATH'
18431
18432      if test yes = "$GCC"; then
18433	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18434	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18435      else
18436	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18437	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18438      fi
18439      ;;
18440
18441    sysv5* | sco3.2v5* | sco5v6*)
18442      # Note: We CANNOT use -z defs as we might desire, because we do not
18443      # link with -lc, and that would cause any symbols used from libc to
18444      # always be unresolved, which means just about no library would
18445      # ever link correctly.  If we're not using GNU ld we use -z text
18446      # though, which does catch some bad symbols but isn't as heavy-handed
18447      # as -z defs.
18448      no_undefined_flag='$wl-z,text'
18449      allow_undefined_flag='$wl-z,nodefs'
18450      archive_cmds_need_lc=no
18451      hardcode_shlibpath_var=no
18452      hardcode_libdir_flag_spec='$wl-R,$libdir'
18453      hardcode_libdir_separator=':'
18454      link_all_deplibs=yes
18455      export_dynamic_flag_spec='$wl-Bexport'
18456      runpath_var='LD_RUN_PATH'
18457
18458      if test yes = "$GCC"; then
18459	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18460	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18461      else
18462	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18463	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18464      fi
18465      ;;
18466
18467    uts4*)
18468      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18469      hardcode_libdir_flag_spec='-L$libdir'
18470      hardcode_shlibpath_var=no
18471      ;;
18472
18473    *)
18474      ld_shlibs=no
18475      ;;
18476    esac
18477
18478    if test sni = "$host_vendor"; then
18479      case $host in
18480      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18481	export_dynamic_flag_spec='$wl-Blargedynsym'
18482	;;
18483      esac
18484    fi
18485  fi
18486
18487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
18488$as_echo "$ld_shlibs" >&6; }
18489test no = "$ld_shlibs" && can_build_shared=no
18490
18491with_gnu_ld=$with_gnu_ld
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502
18503
18504
18505
18506
18507#
18508# Do we need to explicitly link libc?
18509#
18510case "x$archive_cmds_need_lc" in
18511x|xyes)
18512  # Assume -lc should be added
18513  archive_cmds_need_lc=yes
18514
18515  if test yes,yes = "$GCC,$enable_shared"; then
18516    case $archive_cmds in
18517    *'~'*)
18518      # FIXME: we may have to deal with multi-command sequences.
18519      ;;
18520    '$CC '*)
18521      # Test whether the compiler implicitly links with -lc since on some
18522      # systems, -lgcc has to come before -lc. If gcc already passes -lc
18523      # to ld, don't add -lc before -lgcc.
18524      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18525$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18526if ${lt_cv_archive_cmds_need_lc+:} false; then :
18527  $as_echo_n "(cached) " >&6
18528else
18529  $RM conftest*
18530	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18531
18532	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18533  (eval $ac_compile) 2>&5
18534  ac_status=$?
18535  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18536  test $ac_status = 0; } 2>conftest.err; then
18537	  soname=conftest
18538	  lib=conftest
18539	  libobjs=conftest.$ac_objext
18540	  deplibs=
18541	  wl=$lt_prog_compiler_wl
18542	  pic_flag=$lt_prog_compiler_pic
18543	  compiler_flags=-v
18544	  linker_flags=-v
18545	  verstring=
18546	  output_objdir=.
18547	  libname=conftest
18548	  lt_save_allow_undefined_flag=$allow_undefined_flag
18549	  allow_undefined_flag=
18550	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18551  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18552  ac_status=$?
18553  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18554  test $ac_status = 0; }
18555	  then
18556	    lt_cv_archive_cmds_need_lc=no
18557	  else
18558	    lt_cv_archive_cmds_need_lc=yes
18559	  fi
18560	  allow_undefined_flag=$lt_save_allow_undefined_flag
18561	else
18562	  cat conftest.err 1>&5
18563	fi
18564	$RM conftest*
18565
18566fi
18567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
18568$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
18569      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
18570      ;;
18571    esac
18572  fi
18573  ;;
18574esac
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18728$as_echo_n "checking dynamic linker characteristics... " >&6; }
18729
18730if test yes = "$GCC"; then
18731  case $host_os in
18732    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
18733    *) lt_awk_arg='/^libraries:/' ;;
18734  esac
18735  case $host_os in
18736    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
18737    *) lt_sed_strip_eq='s|=/|/|g' ;;
18738  esac
18739  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
18740  case $lt_search_path_spec in
18741  *\;*)
18742    # if the path contains ";" then we assume it to be the separator
18743    # otherwise default to the standard path separator (i.e. ":") - it is
18744    # assumed that no part of a normal pathname contains ";" but that should
18745    # okay in the real world where ";" in dirpaths is itself problematic.
18746    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
18747    ;;
18748  *)
18749    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
18750    ;;
18751  esac
18752  # Ok, now we have the path, separated by spaces, we can step through it
18753  # and add multilib dir if necessary...
18754  lt_tmp_lt_search_path_spec=
18755  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
18756  # ...but if some path component already ends with the multilib dir we assume
18757  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
18758  case "$lt_multi_os_dir; $lt_search_path_spec " in
18759  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
18760    lt_multi_os_dir=
18761    ;;
18762  esac
18763  for lt_sys_path in $lt_search_path_spec; do
18764    if test -d "$lt_sys_path$lt_multi_os_dir"; then
18765      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
18766    elif test -n "$lt_multi_os_dir"; then
18767      test -d "$lt_sys_path" && \
18768	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
18769    fi
18770  done
18771  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
18772BEGIN {RS = " "; FS = "/|\n";} {
18773  lt_foo = "";
18774  lt_count = 0;
18775  for (lt_i = NF; lt_i > 0; lt_i--) {
18776    if ($lt_i != "" && $lt_i != ".") {
18777      if ($lt_i == "..") {
18778        lt_count++;
18779      } else {
18780        if (lt_count == 0) {
18781          lt_foo = "/" $lt_i lt_foo;
18782        } else {
18783          lt_count--;
18784        }
18785      }
18786    }
18787  }
18788  if (lt_foo != "") { lt_freq[lt_foo]++; }
18789  if (lt_freq[lt_foo] == 1) { print lt_foo; }
18790}'`
18791  # AWK program above erroneously prepends '/' to C:/dos/paths
18792  # for these hosts.
18793  case $host_os in
18794    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
18795      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
18796  esac
18797  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
18798else
18799  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18800fi
18801library_names_spec=
18802libname_spec='lib$name'
18803soname_spec=
18804shrext_cmds=.so
18805postinstall_cmds=
18806postuninstall_cmds=
18807finish_cmds=
18808finish_eval=
18809shlibpath_var=
18810shlibpath_overrides_runpath=unknown
18811version_type=none
18812dynamic_linker="$host_os ld.so"
18813sys_lib_dlsearch_path_spec="/lib /usr/lib"
18814need_lib_prefix=unknown
18815hardcode_into_libs=no
18816
18817# when you set need_version to no, make sure it does not cause -set_version
18818# flags to be left without arguments
18819need_version=unknown
18820
18821
18822
18823case $host_os in
18824aix3*)
18825  version_type=linux # correct to gnu/linux during the next big refactor
18826  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
18827  shlibpath_var=LIBPATH
18828
18829  # AIX 3 has no versioning support, so we append a major version to the name.
18830  soname_spec='$libname$release$shared_ext$major'
18831  ;;
18832
18833aix[4-9]*)
18834  version_type=linux # correct to gnu/linux during the next big refactor
18835  need_lib_prefix=no
18836  need_version=no
18837  hardcode_into_libs=yes
18838  if test ia64 = "$host_cpu"; then
18839    # AIX 5 supports IA64
18840    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
18841    shlibpath_var=LD_LIBRARY_PATH
18842  else
18843    # With GCC up to 2.95.x, collect2 would create an import file
18844    # for dependence libraries.  The import file would start with
18845    # the line '#! .'.  This would cause the generated library to
18846    # depend on '.', always an invalid library.  This was fixed in
18847    # development snapshots of GCC prior to 3.0.
18848    case $host_os in
18849      aix4 | aix4.[01] | aix4.[01].*)
18850      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18851	   echo ' yes '
18852	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
18853	:
18854      else
18855	can_build_shared=no
18856      fi
18857      ;;
18858    esac
18859    # Using Import Files as archive members, it is possible to support
18860    # filename-based versioning of shared library archives on AIX. While
18861    # this would work for both with and without runtime linking, it will
18862    # prevent static linking of such archives. So we do filename-based
18863    # shared library versioning with .so extension only, which is used
18864    # when both runtime linking and shared linking is enabled.
18865    # Unfortunately, runtime linking may impact performance, so we do
18866    # not want this to be the default eventually. Also, we use the
18867    # versioned .so libs for executables only if there is the -brtl
18868    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
18869    # To allow for filename-based versioning support, we need to create
18870    # libNAME.so.V as an archive file, containing:
18871    # *) an Import File, referring to the versioned filename of the
18872    #    archive as well as the shared archive member, telling the
18873    #    bitwidth (32 or 64) of that shared object, and providing the
18874    #    list of exported symbols of that shared object, eventually
18875    #    decorated with the 'weak' keyword
18876    # *) the shared object with the F_LOADONLY flag set, to really avoid
18877    #    it being seen by the linker.
18878    # At run time we better use the real file rather than another symlink,
18879    # but for link time we create the symlink libNAME.so -> libNAME.so.V
18880
18881    case $with_aix_soname,$aix_use_runtimelinking in
18882    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
18883    # soname into executable. Probably we can add versioning support to
18884    # collect2, so additional links can be useful in future.
18885    aix,yes) # traditional libtool
18886      dynamic_linker='AIX unversionable lib.so'
18887      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18888      # instead of lib<name>.a to let people know that these are not
18889      # typical AIX shared libraries.
18890      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18891      ;;
18892    aix,no) # traditional AIX only
18893      dynamic_linker='AIX lib.a(lib.so.V)'
18894      # We preserve .a as extension for shared libraries through AIX4.2
18895      # and later when we are not doing run time linking.
18896      library_names_spec='$libname$release.a $libname.a'
18897      soname_spec='$libname$release$shared_ext$major'
18898      ;;
18899    svr4,*) # full svr4 only
18900      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
18901      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18902      # We do not specify a path in Import Files, so LIBPATH fires.
18903      shlibpath_overrides_runpath=yes
18904      ;;
18905    *,yes) # both, prefer svr4
18906      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
18907      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
18908      # unpreferred sharedlib libNAME.a needs extra handling
18909      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
18910      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
18911      # We do not specify a path in Import Files, so LIBPATH fires.
18912      shlibpath_overrides_runpath=yes
18913      ;;
18914    *,no) # both, prefer aix
18915      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
18916      library_names_spec='$libname$release.a $libname.a'
18917      soname_spec='$libname$release$shared_ext$major'
18918      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
18919      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
18920      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
18921      ;;
18922    esac
18923    shlibpath_var=LIBPATH
18924  fi
18925  ;;
18926
18927amigaos*)
18928  case $host_cpu in
18929  powerpc)
18930    # Since July 2007 AmigaOS4 officially supports .so libraries.
18931    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18932    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18933    ;;
18934  m68k)
18935    library_names_spec='$libname.ixlibrary $libname.a'
18936    # Create ${libname}_ixlibrary.a entries in /sys/libs.
18937    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'
18938    ;;
18939  esac
18940  ;;
18941
18942beos*)
18943  library_names_spec='$libname$shared_ext'
18944  dynamic_linker="$host_os ld.so"
18945  shlibpath_var=LIBRARY_PATH
18946  ;;
18947
18948bsdi[45]*)
18949  version_type=linux # correct to gnu/linux during the next big refactor
18950  need_version=no
18951  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18952  soname_spec='$libname$release$shared_ext$major'
18953  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18954  shlibpath_var=LD_LIBRARY_PATH
18955  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18956  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18957  # the default ld.so.conf also contains /usr/contrib/lib and
18958  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18959  # libtool to hard-code these into programs
18960  ;;
18961
18962cygwin* | mingw* | pw32* | cegcc*)
18963  version_type=windows
18964  shrext_cmds=.dll
18965  need_version=no
18966  need_lib_prefix=no
18967
18968  case $GCC,$cc_basename in
18969  yes,*)
18970    # gcc
18971    library_names_spec='$libname.dll.a'
18972    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18973    postinstall_cmds='base_file=`basename \$file`~
18974      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18975      dldir=$destdir/`dirname \$dlpath`~
18976      test -d \$dldir || mkdir -p \$dldir~
18977      $install_prog $dir/$dlname \$dldir/$dlname~
18978      chmod a+x \$dldir/$dlname~
18979      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18980        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18981      fi'
18982    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18983      dlpath=$dir/\$dldll~
18984       $RM \$dlpath'
18985    shlibpath_overrides_runpath=yes
18986
18987    case $host_os in
18988    cygwin*)
18989      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18990      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18991
18992      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
18993      ;;
18994    mingw* | cegcc*)
18995      # MinGW DLLs use traditional 'lib' prefix
18996      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
18997      ;;
18998    pw32*)
18999      # pw32 DLLs use 'pw' prefix rather than 'lib'
19000      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19001      ;;
19002    esac
19003    dynamic_linker='Win32 ld.exe'
19004    ;;
19005
19006  *,cl*)
19007    # Native MSVC
19008    libname_spec='$name'
19009    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
19010    library_names_spec='$libname.dll.lib'
19011
19012    case $build_os in
19013    mingw*)
19014      sys_lib_search_path_spec=
19015      lt_save_ifs=$IFS
19016      IFS=';'
19017      for lt_path in $LIB
19018      do
19019        IFS=$lt_save_ifs
19020        # Let DOS variable expansion print the short 8.3 style file name.
19021        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19022        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19023      done
19024      IFS=$lt_save_ifs
19025      # Convert to MSYS style.
19026      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19027      ;;
19028    cygwin*)
19029      # Convert to unix form, then to dos form, then back to unix form
19030      # but this time dos style (no spaces!) so that the unix form looks
19031      # like /cygdrive/c/PROGRA~1:/cygdr...
19032      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19033      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19034      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19035      ;;
19036    *)
19037      sys_lib_search_path_spec=$LIB
19038      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19039        # It is most probably a Windows format PATH.
19040        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19041      else
19042        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19043      fi
19044      # FIXME: find the short name or the path components, as spaces are
19045      # common. (e.g. "Program Files" -> "PROGRA~1")
19046      ;;
19047    esac
19048
19049    # DLL is installed to $(libdir)/../bin by postinstall_cmds
19050    postinstall_cmds='base_file=`basename \$file`~
19051      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
19052      dldir=$destdir/`dirname \$dlpath`~
19053      test -d \$dldir || mkdir -p \$dldir~
19054      $install_prog $dir/$dlname \$dldir/$dlname'
19055    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19056      dlpath=$dir/\$dldll~
19057       $RM \$dlpath'
19058    shlibpath_overrides_runpath=yes
19059    dynamic_linker='Win32 link.exe'
19060    ;;
19061
19062  *)
19063    # Assume MSVC wrapper
19064    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
19065    dynamic_linker='Win32 ld.exe'
19066    ;;
19067  esac
19068  # FIXME: first we should search . and the directory the executable is in
19069  shlibpath_var=PATH
19070  ;;
19071
19072darwin* | rhapsody*)
19073  dynamic_linker="$host_os dyld"
19074  version_type=darwin
19075  need_lib_prefix=no
19076  need_version=no
19077  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
19078  soname_spec='$libname$release$major$shared_ext'
19079  shlibpath_overrides_runpath=yes
19080  shlibpath_var=DYLD_LIBRARY_PATH
19081  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19082
19083  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
19084  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19085  ;;
19086
19087dgux*)
19088  version_type=linux # correct to gnu/linux during the next big refactor
19089  need_lib_prefix=no
19090  need_version=no
19091  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19092  soname_spec='$libname$release$shared_ext$major'
19093  shlibpath_var=LD_LIBRARY_PATH
19094  ;;
19095
19096freebsd* | dragonfly*)
19097  # DragonFly does not have aout.  When/if they implement a new
19098  # versioning mechanism, adjust this.
19099  if test -x /usr/bin/objformat; then
19100    objformat=`/usr/bin/objformat`
19101  else
19102    case $host_os in
19103    freebsd[23].*) objformat=aout ;;
19104    *) objformat=elf ;;
19105    esac
19106  fi
19107  version_type=freebsd-$objformat
19108  case $version_type in
19109    freebsd-elf*)
19110      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19111      soname_spec='$libname$release$shared_ext$major'
19112      need_version=no
19113      need_lib_prefix=no
19114      ;;
19115    freebsd-*)
19116      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19117      need_version=yes
19118      ;;
19119  esac
19120  shlibpath_var=LD_LIBRARY_PATH
19121  case $host_os in
19122  freebsd2.*)
19123    shlibpath_overrides_runpath=yes
19124    ;;
19125  freebsd3.[01]* | freebsdelf3.[01]*)
19126    shlibpath_overrides_runpath=yes
19127    hardcode_into_libs=yes
19128    ;;
19129  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19130  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19131    shlibpath_overrides_runpath=no
19132    hardcode_into_libs=yes
19133    ;;
19134  *) # from 4.6 on, and DragonFly
19135    shlibpath_overrides_runpath=yes
19136    hardcode_into_libs=yes
19137    ;;
19138  esac
19139  ;;
19140
19141haiku*)
19142  version_type=linux # correct to gnu/linux during the next big refactor
19143  need_lib_prefix=no
19144  need_version=no
19145  dynamic_linker="$host_os runtime_loader"
19146  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19147  soname_spec='$libname$release$shared_ext$major'
19148  shlibpath_var=LIBRARY_PATH
19149  shlibpath_overrides_runpath=no
19150  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19151  hardcode_into_libs=yes
19152  ;;
19153
19154hpux9* | hpux10* | hpux11*)
19155  # Give a soname corresponding to the major version so that dld.sl refuses to
19156  # link against other versions.
19157  version_type=sunos
19158  need_lib_prefix=no
19159  need_version=no
19160  case $host_cpu in
19161  ia64*)
19162    shrext_cmds='.so'
19163    hardcode_into_libs=yes
19164    dynamic_linker="$host_os dld.so"
19165    shlibpath_var=LD_LIBRARY_PATH
19166    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19167    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19168    soname_spec='$libname$release$shared_ext$major'
19169    if test 32 = "$HPUX_IA64_MODE"; then
19170      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19171      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
19172    else
19173      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19174      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
19175    fi
19176    ;;
19177  hppa*64*)
19178    shrext_cmds='.sl'
19179    hardcode_into_libs=yes
19180    dynamic_linker="$host_os dld.sl"
19181    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19182    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19183    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19184    soname_spec='$libname$release$shared_ext$major'
19185    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19186    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19187    ;;
19188  *)
19189    shrext_cmds='.sl'
19190    dynamic_linker="$host_os dld.sl"
19191    shlibpath_var=SHLIB_PATH
19192    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19193    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19194    soname_spec='$libname$release$shared_ext$major'
19195    ;;
19196  esac
19197  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19198  postinstall_cmds='chmod 555 $lib'
19199  # or fails outright, so override atomically:
19200  install_override_mode=555
19201  ;;
19202
19203interix[3-9]*)
19204  version_type=linux # correct to gnu/linux during the next big refactor
19205  need_lib_prefix=no
19206  need_version=no
19207  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19208  soname_spec='$libname$release$shared_ext$major'
19209  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19210  shlibpath_var=LD_LIBRARY_PATH
19211  shlibpath_overrides_runpath=no
19212  hardcode_into_libs=yes
19213  ;;
19214
19215irix5* | irix6* | nonstopux*)
19216  case $host_os in
19217    nonstopux*) version_type=nonstopux ;;
19218    *)
19219	if test yes = "$lt_cv_prog_gnu_ld"; then
19220		version_type=linux # correct to gnu/linux during the next big refactor
19221	else
19222		version_type=irix
19223	fi ;;
19224  esac
19225  need_lib_prefix=no
19226  need_version=no
19227  soname_spec='$libname$release$shared_ext$major'
19228  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
19229  case $host_os in
19230  irix5* | nonstopux*)
19231    libsuff= shlibsuff=
19232    ;;
19233  *)
19234    case $LD in # libtool.m4 will add one of these switches to LD
19235    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19236      libsuff= shlibsuff= libmagic=32-bit;;
19237    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19238      libsuff=32 shlibsuff=N32 libmagic=N32;;
19239    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19240      libsuff=64 shlibsuff=64 libmagic=64-bit;;
19241    *) libsuff= shlibsuff= libmagic=never-match;;
19242    esac
19243    ;;
19244  esac
19245  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19246  shlibpath_overrides_runpath=no
19247  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
19248  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
19249  hardcode_into_libs=yes
19250  ;;
19251
19252# No shared lib support for Linux oldld, aout, or coff.
19253linux*oldld* | linux*aout* | linux*coff*)
19254  dynamic_linker=no
19255  ;;
19256
19257linux*android*)
19258  version_type=none # Android doesn't support versioned libraries.
19259  need_lib_prefix=no
19260  need_version=no
19261  library_names_spec='$libname$release$shared_ext'
19262  soname_spec='$libname$release$shared_ext'
19263  finish_cmds=
19264  shlibpath_var=LD_LIBRARY_PATH
19265  shlibpath_overrides_runpath=yes
19266
19267  # This implies no fast_install, which is unacceptable.
19268  # Some rework will be needed to allow for fast_install
19269  # before this can be enabled.
19270  hardcode_into_libs=yes
19271
19272  dynamic_linker='Android linker'
19273  # Don't embed -rpath directories since the linker doesn't support them.
19274  hardcode_libdir_flag_spec='-L$libdir'
19275  ;;
19276
19277# This must be glibc/ELF.
19278linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
19279  version_type=linux # correct to gnu/linux during the next big refactor
19280  need_lib_prefix=no
19281  need_version=no
19282  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19283  soname_spec='$libname$release$shared_ext$major'
19284  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19285  shlibpath_var=LD_LIBRARY_PATH
19286  shlibpath_overrides_runpath=no
19287
19288  # Some binutils ld are patched to set DT_RUNPATH
19289  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19290  $as_echo_n "(cached) " >&6
19291else
19292  lt_cv_shlibpath_overrides_runpath=no
19293    save_LDFLAGS=$LDFLAGS
19294    save_libdir=$libdir
19295    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
19296	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
19297    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298/* end confdefs.h.  */
19299
19300int
19301main ()
19302{
19303
19304  ;
19305  return 0;
19306}
19307_ACEOF
19308if ac_fn_c_try_link "$LINENO"; then :
19309  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19310  lt_cv_shlibpath_overrides_runpath=yes
19311fi
19312fi
19313rm -f core conftest.err conftest.$ac_objext \
19314    conftest$ac_exeext conftest.$ac_ext
19315    LDFLAGS=$save_LDFLAGS
19316    libdir=$save_libdir
19317
19318fi
19319
19320  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19321
19322  # This implies no fast_install, which is unacceptable.
19323  # Some rework will be needed to allow for fast_install
19324  # before this can be enabled.
19325  hardcode_into_libs=yes
19326
19327  # Add ABI-specific directories to the system library path.
19328  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19329
19330  # Ideally, we could use ldconfig to report *all* directores which are
19331  # searched for libraries, however this is still not possible.  Aside from not
19332  # being certain /sbin/ldconfig is available, command
19333  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
19334  # even though it is searched at run-time.  Try to do the best guess by
19335  # appending ld.so.conf contents (and includes) to the search path.
19336  if test -f /etc/ld.so.conf; then
19337    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' ' '`
19338    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19339  fi
19340
19341  # We used to test for /lib/ld.so.1 and disable shared libraries on
19342  # powerpc, because MkLinux only supported shared libraries with the
19343  # GNU dynamic linker.  Since this was broken with cross compilers,
19344  # most powerpc-linux boxes support dynamic linking these days and
19345  # people can always --disable-shared, the test was removed, and we
19346  # assume the GNU/Linux dynamic linker is in use.
19347  dynamic_linker='GNU/Linux ld.so'
19348  ;;
19349
19350netbsd*)
19351  version_type=sunos
19352  need_lib_prefix=no
19353  need_version=no
19354  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19355    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19356    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19357    dynamic_linker='NetBSD (a.out) ld.so'
19358  else
19359    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19360    soname_spec='$libname$release$shared_ext$major'
19361    dynamic_linker='NetBSD ld.elf_so'
19362  fi
19363  shlibpath_var=LD_LIBRARY_PATH
19364  shlibpath_overrides_runpath=yes
19365  hardcode_into_libs=yes
19366  ;;
19367
19368newsos6)
19369  version_type=linux # correct to gnu/linux during the next big refactor
19370  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19371  shlibpath_var=LD_LIBRARY_PATH
19372  shlibpath_overrides_runpath=yes
19373  ;;
19374
19375*nto* | *qnx*)
19376  version_type=qnx
19377  need_lib_prefix=no
19378  need_version=no
19379  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19380  soname_spec='$libname$release$shared_ext$major'
19381  shlibpath_var=LD_LIBRARY_PATH
19382  shlibpath_overrides_runpath=no
19383  hardcode_into_libs=yes
19384  dynamic_linker='ldqnx.so'
19385  ;;
19386
19387openbsd* | bitrig*)
19388  version_type=sunos
19389  sys_lib_dlsearch_path_spec=/usr/lib
19390  need_lib_prefix=no
19391  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
19392    need_version=no
19393  else
19394    need_version=yes
19395  fi
19396  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19397  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19398  shlibpath_var=LD_LIBRARY_PATH
19399  shlibpath_overrides_runpath=yes
19400  ;;
19401
19402os2*)
19403  libname_spec='$name'
19404  version_type=windows
19405  shrext_cmds=.dll
19406  need_version=no
19407  need_lib_prefix=no
19408  # OS/2 can only load a DLL with a base name of 8 characters or less.
19409  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
19410    v=$($ECHO $release$versuffix | tr -d .-);
19411    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
19412    $ECHO $n$v`$shared_ext'
19413  library_names_spec='${libname}_dll.$libext'
19414  dynamic_linker='OS/2 ld.exe'
19415  shlibpath_var=BEGINLIBPATH
19416  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19417  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19418  postinstall_cmds='base_file=`basename \$file`~
19419    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
19420    dldir=$destdir/`dirname \$dlpath`~
19421    test -d \$dldir || mkdir -p \$dldir~
19422    $install_prog $dir/$dlname \$dldir/$dlname~
19423    chmod a+x \$dldir/$dlname~
19424    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19425      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19426    fi'
19427  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
19428    dlpath=$dir/\$dldll~
19429    $RM \$dlpath'
19430  ;;
19431
19432osf3* | osf4* | osf5*)
19433  version_type=osf
19434  need_lib_prefix=no
19435  need_version=no
19436  soname_spec='$libname$release$shared_ext$major'
19437  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19438  shlibpath_var=LD_LIBRARY_PATH
19439  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19440  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19441  ;;
19442
19443rdos*)
19444  dynamic_linker=no
19445  ;;
19446
19447solaris*)
19448  version_type=linux # correct to gnu/linux during the next big refactor
19449  need_lib_prefix=no
19450  need_version=no
19451  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19452  soname_spec='$libname$release$shared_ext$major'
19453  shlibpath_var=LD_LIBRARY_PATH
19454  shlibpath_overrides_runpath=yes
19455  hardcode_into_libs=yes
19456  # ldd complains unless libraries are executable
19457  postinstall_cmds='chmod +x $lib'
19458  ;;
19459
19460sunos4*)
19461  version_type=sunos
19462  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
19463  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19464  shlibpath_var=LD_LIBRARY_PATH
19465  shlibpath_overrides_runpath=yes
19466  if test yes = "$with_gnu_ld"; then
19467    need_lib_prefix=no
19468  fi
19469  need_version=yes
19470  ;;
19471
19472sysv4 | sysv4.3*)
19473  version_type=linux # correct to gnu/linux during the next big refactor
19474  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19475  soname_spec='$libname$release$shared_ext$major'
19476  shlibpath_var=LD_LIBRARY_PATH
19477  case $host_vendor in
19478    sni)
19479      shlibpath_overrides_runpath=no
19480      need_lib_prefix=no
19481      runpath_var=LD_RUN_PATH
19482      ;;
19483    siemens)
19484      need_lib_prefix=no
19485      ;;
19486    motorola)
19487      need_lib_prefix=no
19488      need_version=no
19489      shlibpath_overrides_runpath=no
19490      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19491      ;;
19492  esac
19493  ;;
19494
19495sysv4*MP*)
19496  if test -d /usr/nec; then
19497    version_type=linux # correct to gnu/linux during the next big refactor
19498    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
19499    soname_spec='$libname$shared_ext.$major'
19500    shlibpath_var=LD_LIBRARY_PATH
19501  fi
19502  ;;
19503
19504sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19505  version_type=sco
19506  need_lib_prefix=no
19507  need_version=no
19508  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
19509  soname_spec='$libname$release$shared_ext$major'
19510  shlibpath_var=LD_LIBRARY_PATH
19511  shlibpath_overrides_runpath=yes
19512  hardcode_into_libs=yes
19513  if test yes = "$with_gnu_ld"; then
19514    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19515  else
19516    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19517    case $host_os in
19518      sco3.2v5*)
19519        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19520	;;
19521    esac
19522  fi
19523  sys_lib_dlsearch_path_spec='/usr/lib'
19524  ;;
19525
19526tpf*)
19527  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19528  version_type=linux # correct to gnu/linux during the next big refactor
19529  need_lib_prefix=no
19530  need_version=no
19531  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19532  shlibpath_var=LD_LIBRARY_PATH
19533  shlibpath_overrides_runpath=no
19534  hardcode_into_libs=yes
19535  ;;
19536
19537uts4*)
19538  version_type=linux # correct to gnu/linux during the next big refactor
19539  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
19540  soname_spec='$libname$release$shared_ext$major'
19541  shlibpath_var=LD_LIBRARY_PATH
19542  ;;
19543
19544*)
19545  dynamic_linker=no
19546  ;;
19547esac
19548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19549$as_echo "$dynamic_linker" >&6; }
19550test no = "$dynamic_linker" && can_build_shared=no
19551
19552variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19553if test yes = "$GCC"; then
19554  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19555fi
19556
19557if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
19558  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
19559fi
19560
19561if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
19562  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
19563fi
19564
19565# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
19566configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
19567
19568# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
19569func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
19570
19571# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
19572configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
19588
19589
19590
19591
19592
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19671$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19672hardcode_action=
19673if test -n "$hardcode_libdir_flag_spec" ||
19674   test -n "$runpath_var" ||
19675   test yes = "$hardcode_automatic"; then
19676
19677  # We can hardcode non-existent directories.
19678  if test no != "$hardcode_direct" &&
19679     # If the only mechanism to avoid hardcoding is shlibpath_var, we
19680     # have to relink, otherwise we might link with an installed library
19681     # when we should be linking with a yet-to-be-installed one
19682     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
19683     test no != "$hardcode_minus_L"; then
19684    # Linking always hardcodes the temporary library directory.
19685    hardcode_action=relink
19686  else
19687    # We can link without hardcoding, and we can hardcode nonexisting dirs.
19688    hardcode_action=immediate
19689  fi
19690else
19691  # We cannot hardcode anything, or else we can only hardcode existing
19692  # directories.
19693  hardcode_action=unsupported
19694fi
19695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
19696$as_echo "$hardcode_action" >&6; }
19697
19698if test relink = "$hardcode_action" ||
19699   test yes = "$inherit_rpath"; then
19700  # Fast installation is not supported
19701  enable_fast_install=no
19702elif test yes = "$shlibpath_overrides_runpath" ||
19703     test no = "$enable_shared"; then
19704  # Fast installation is not necessary
19705  enable_fast_install=needless
19706fi
19707
19708
19709
19710
19711
19712
19713  if test yes != "$enable_dlopen"; then
19714  enable_dlopen=unknown
19715  enable_dlopen_self=unknown
19716  enable_dlopen_self_static=unknown
19717else
19718  lt_cv_dlopen=no
19719  lt_cv_dlopen_libs=
19720
19721  case $host_os in
19722  beos*)
19723    lt_cv_dlopen=load_add_on
19724    lt_cv_dlopen_libs=
19725    lt_cv_dlopen_self=yes
19726    ;;
19727
19728  mingw* | pw32* | cegcc*)
19729    lt_cv_dlopen=LoadLibrary
19730    lt_cv_dlopen_libs=
19731    ;;
19732
19733  cygwin*)
19734    lt_cv_dlopen=dlopen
19735    lt_cv_dlopen_libs=
19736    ;;
19737
19738  darwin*)
19739    # if libdl is installed we need to link against it
19740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19741$as_echo_n "checking for dlopen in -ldl... " >&6; }
19742if ${ac_cv_lib_dl_dlopen+:} false; then :
19743  $as_echo_n "(cached) " >&6
19744else
19745  ac_check_lib_save_LIBS=$LIBS
19746LIBS="-ldl  $LIBS"
19747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748/* end confdefs.h.  */
19749
19750/* Override any GCC internal prototype to avoid an error.
19751   Use char because int might match the return type of a GCC
19752   builtin and then its argument prototype would still apply.  */
19753#ifdef __cplusplus
19754extern "C"
19755#endif
19756char dlopen ();
19757int
19758main ()
19759{
19760return dlopen ();
19761  ;
19762  return 0;
19763}
19764_ACEOF
19765if ac_fn_c_try_link "$LINENO"; then :
19766  ac_cv_lib_dl_dlopen=yes
19767else
19768  ac_cv_lib_dl_dlopen=no
19769fi
19770rm -f core conftest.err conftest.$ac_objext \
19771    conftest$ac_exeext conftest.$ac_ext
19772LIBS=$ac_check_lib_save_LIBS
19773fi
19774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19775$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19776if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19777  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19778else
19779
19780    lt_cv_dlopen=dyld
19781    lt_cv_dlopen_libs=
19782    lt_cv_dlopen_self=yes
19783
19784fi
19785
19786    ;;
19787
19788  tpf*)
19789    # Don't try to run any link tests for TPF.  We know it's impossible
19790    # because TPF is a cross-compiler, and we know how we open DSOs.
19791    lt_cv_dlopen=dlopen
19792    lt_cv_dlopen_libs=
19793    lt_cv_dlopen_self=no
19794    ;;
19795
19796  *)
19797    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19798if test "x$ac_cv_func_shl_load" = xyes; then :
19799  lt_cv_dlopen=shl_load
19800else
19801  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19802$as_echo_n "checking for shl_load in -ldld... " >&6; }
19803if ${ac_cv_lib_dld_shl_load+:} false; then :
19804  $as_echo_n "(cached) " >&6
19805else
19806  ac_check_lib_save_LIBS=$LIBS
19807LIBS="-ldld  $LIBS"
19808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809/* end confdefs.h.  */
19810
19811/* Override any GCC internal prototype to avoid an error.
19812   Use char because int might match the return type of a GCC
19813   builtin and then its argument prototype would still apply.  */
19814#ifdef __cplusplus
19815extern "C"
19816#endif
19817char shl_load ();
19818int
19819main ()
19820{
19821return shl_load ();
19822  ;
19823  return 0;
19824}
19825_ACEOF
19826if ac_fn_c_try_link "$LINENO"; then :
19827  ac_cv_lib_dld_shl_load=yes
19828else
19829  ac_cv_lib_dld_shl_load=no
19830fi
19831rm -f core conftest.err conftest.$ac_objext \
19832    conftest$ac_exeext conftest.$ac_ext
19833LIBS=$ac_check_lib_save_LIBS
19834fi
19835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19836$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19837if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19838  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
19839else
19840  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19841if test "x$ac_cv_func_dlopen" = xyes; then :
19842  lt_cv_dlopen=dlopen
19843else
19844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19845$as_echo_n "checking for dlopen in -ldl... " >&6; }
19846if ${ac_cv_lib_dl_dlopen+:} false; then :
19847  $as_echo_n "(cached) " >&6
19848else
19849  ac_check_lib_save_LIBS=$LIBS
19850LIBS="-ldl  $LIBS"
19851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852/* end confdefs.h.  */
19853
19854/* Override any GCC internal prototype to avoid an error.
19855   Use char because int might match the return type of a GCC
19856   builtin and then its argument prototype would still apply.  */
19857#ifdef __cplusplus
19858extern "C"
19859#endif
19860char dlopen ();
19861int
19862main ()
19863{
19864return dlopen ();
19865  ;
19866  return 0;
19867}
19868_ACEOF
19869if ac_fn_c_try_link "$LINENO"; then :
19870  ac_cv_lib_dl_dlopen=yes
19871else
19872  ac_cv_lib_dl_dlopen=no
19873fi
19874rm -f core conftest.err conftest.$ac_objext \
19875    conftest$ac_exeext conftest.$ac_ext
19876LIBS=$ac_check_lib_save_LIBS
19877fi
19878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19880if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19881  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
19882else
19883  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19884$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19885if ${ac_cv_lib_svld_dlopen+:} false; then :
19886  $as_echo_n "(cached) " >&6
19887else
19888  ac_check_lib_save_LIBS=$LIBS
19889LIBS="-lsvld  $LIBS"
19890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891/* end confdefs.h.  */
19892
19893/* Override any GCC internal prototype to avoid an error.
19894   Use char because int might match the return type of a GCC
19895   builtin and then its argument prototype would still apply.  */
19896#ifdef __cplusplus
19897extern "C"
19898#endif
19899char dlopen ();
19900int
19901main ()
19902{
19903return dlopen ();
19904  ;
19905  return 0;
19906}
19907_ACEOF
19908if ac_fn_c_try_link "$LINENO"; then :
19909  ac_cv_lib_svld_dlopen=yes
19910else
19911  ac_cv_lib_svld_dlopen=no
19912fi
19913rm -f core conftest.err conftest.$ac_objext \
19914    conftest$ac_exeext conftest.$ac_ext
19915LIBS=$ac_check_lib_save_LIBS
19916fi
19917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19918$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19919if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19920  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
19921else
19922  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19923$as_echo_n "checking for dld_link in -ldld... " >&6; }
19924if ${ac_cv_lib_dld_dld_link+:} false; then :
19925  $as_echo_n "(cached) " >&6
19926else
19927  ac_check_lib_save_LIBS=$LIBS
19928LIBS="-ldld  $LIBS"
19929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930/* end confdefs.h.  */
19931
19932/* Override any GCC internal prototype to avoid an error.
19933   Use char because int might match the return type of a GCC
19934   builtin and then its argument prototype would still apply.  */
19935#ifdef __cplusplus
19936extern "C"
19937#endif
19938char dld_link ();
19939int
19940main ()
19941{
19942return dld_link ();
19943  ;
19944  return 0;
19945}
19946_ACEOF
19947if ac_fn_c_try_link "$LINENO"; then :
19948  ac_cv_lib_dld_dld_link=yes
19949else
19950  ac_cv_lib_dld_dld_link=no
19951fi
19952rm -f core conftest.err conftest.$ac_objext \
19953    conftest$ac_exeext conftest.$ac_ext
19954LIBS=$ac_check_lib_save_LIBS
19955fi
19956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19957$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19958if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
19959  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
19960fi
19961
19962
19963fi
19964
19965
19966fi
19967
19968
19969fi
19970
19971
19972fi
19973
19974
19975fi
19976
19977    ;;
19978  esac
19979
19980  if test no = "$lt_cv_dlopen"; then
19981    enable_dlopen=no
19982  else
19983    enable_dlopen=yes
19984  fi
19985
19986  case $lt_cv_dlopen in
19987  dlopen)
19988    save_CPPFLAGS=$CPPFLAGS
19989    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19990
19991    save_LDFLAGS=$LDFLAGS
19992    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19993
19994    save_LIBS=$LIBS
19995    LIBS="$lt_cv_dlopen_libs $LIBS"
19996
19997    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
19998$as_echo_n "checking whether a program can dlopen itself... " >&6; }
19999if ${lt_cv_dlopen_self+:} false; then :
20000  $as_echo_n "(cached) " >&6
20001else
20002  	  if test yes = "$cross_compiling"; then :
20003  lt_cv_dlopen_self=cross
20004else
20005  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20006  lt_status=$lt_dlunknown
20007  cat > conftest.$ac_ext <<_LT_EOF
20008#line $LINENO "configure"
20009#include "confdefs.h"
20010
20011#if HAVE_DLFCN_H
20012#include <dlfcn.h>
20013#endif
20014
20015#include <stdio.h>
20016
20017#ifdef RTLD_GLOBAL
20018#  define LT_DLGLOBAL		RTLD_GLOBAL
20019#else
20020#  ifdef DL_GLOBAL
20021#    define LT_DLGLOBAL		DL_GLOBAL
20022#  else
20023#    define LT_DLGLOBAL		0
20024#  endif
20025#endif
20026
20027/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20028   find out it does not work in some platform. */
20029#ifndef LT_DLLAZY_OR_NOW
20030#  ifdef RTLD_LAZY
20031#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20032#  else
20033#    ifdef DL_LAZY
20034#      define LT_DLLAZY_OR_NOW		DL_LAZY
20035#    else
20036#      ifdef RTLD_NOW
20037#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20038#      else
20039#        ifdef DL_NOW
20040#          define LT_DLLAZY_OR_NOW	DL_NOW
20041#        else
20042#          define LT_DLLAZY_OR_NOW	0
20043#        endif
20044#      endif
20045#    endif
20046#  endif
20047#endif
20048
20049/* When -fvisibility=hidden is used, assume the code has been annotated
20050   correspondingly for the symbols needed.  */
20051#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20052int fnord () __attribute__((visibility("default")));
20053#endif
20054
20055int fnord () { return 42; }
20056int main ()
20057{
20058  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20059  int status = $lt_dlunknown;
20060
20061  if (self)
20062    {
20063      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20064      else
20065        {
20066	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20067          else puts (dlerror ());
20068	}
20069      /* dlclose (self); */
20070    }
20071  else
20072    puts (dlerror ());
20073
20074  return status;
20075}
20076_LT_EOF
20077  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20078  (eval $ac_link) 2>&5
20079  ac_status=$?
20080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20081  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20082    (./conftest; exit; ) >&5 2>/dev/null
20083    lt_status=$?
20084    case x$lt_status in
20085      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20086      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20087      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
20088    esac
20089  else :
20090    # compilation failed
20091    lt_cv_dlopen_self=no
20092  fi
20093fi
20094rm -fr conftest*
20095
20096
20097fi
20098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
20099$as_echo "$lt_cv_dlopen_self" >&6; }
20100
20101    if test yes = "$lt_cv_dlopen_self"; then
20102      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
20103      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
20104$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
20105if ${lt_cv_dlopen_self_static+:} false; then :
20106  $as_echo_n "(cached) " >&6
20107else
20108  	  if test yes = "$cross_compiling"; then :
20109  lt_cv_dlopen_self_static=cross
20110else
20111  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20112  lt_status=$lt_dlunknown
20113  cat > conftest.$ac_ext <<_LT_EOF
20114#line $LINENO "configure"
20115#include "confdefs.h"
20116
20117#if HAVE_DLFCN_H
20118#include <dlfcn.h>
20119#endif
20120
20121#include <stdio.h>
20122
20123#ifdef RTLD_GLOBAL
20124#  define LT_DLGLOBAL		RTLD_GLOBAL
20125#else
20126#  ifdef DL_GLOBAL
20127#    define LT_DLGLOBAL		DL_GLOBAL
20128#  else
20129#    define LT_DLGLOBAL		0
20130#  endif
20131#endif
20132
20133/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20134   find out it does not work in some platform. */
20135#ifndef LT_DLLAZY_OR_NOW
20136#  ifdef RTLD_LAZY
20137#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
20138#  else
20139#    ifdef DL_LAZY
20140#      define LT_DLLAZY_OR_NOW		DL_LAZY
20141#    else
20142#      ifdef RTLD_NOW
20143#        define LT_DLLAZY_OR_NOW	RTLD_NOW
20144#      else
20145#        ifdef DL_NOW
20146#          define LT_DLLAZY_OR_NOW	DL_NOW
20147#        else
20148#          define LT_DLLAZY_OR_NOW	0
20149#        endif
20150#      endif
20151#    endif
20152#  endif
20153#endif
20154
20155/* When -fvisibility=hidden is used, assume the code has been annotated
20156   correspondingly for the symbols needed.  */
20157#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20158int fnord () __attribute__((visibility("default")));
20159#endif
20160
20161int fnord () { return 42; }
20162int main ()
20163{
20164  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20165  int status = $lt_dlunknown;
20166
20167  if (self)
20168    {
20169      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20170      else
20171        {
20172	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20173          else puts (dlerror ());
20174	}
20175      /* dlclose (self); */
20176    }
20177  else
20178    puts (dlerror ());
20179
20180  return status;
20181}
20182_LT_EOF
20183  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20184  (eval $ac_link) 2>&5
20185  ac_status=$?
20186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20187  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
20188    (./conftest; exit; ) >&5 2>/dev/null
20189    lt_status=$?
20190    case x$lt_status in
20191      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20192      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20193      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
20194    esac
20195  else :
20196    # compilation failed
20197    lt_cv_dlopen_self_static=no
20198  fi
20199fi
20200rm -fr conftest*
20201
20202
20203fi
20204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
20205$as_echo "$lt_cv_dlopen_self_static" >&6; }
20206    fi
20207
20208    CPPFLAGS=$save_CPPFLAGS
20209    LDFLAGS=$save_LDFLAGS
20210    LIBS=$save_LIBS
20211    ;;
20212  esac
20213
20214  case $lt_cv_dlopen_self in
20215  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20216  *) enable_dlopen_self=unknown ;;
20217  esac
20218
20219  case $lt_cv_dlopen_self_static in
20220  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20221  *) enable_dlopen_self_static=unknown ;;
20222  esac
20223fi
20224
20225
20226
20227
20228
20229
20230
20231
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241striplib=
20242old_striplib=
20243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
20244$as_echo_n "checking whether stripping libraries is possible... " >&6; }
20245if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
20246  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20247  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20249$as_echo "yes" >&6; }
20250else
20251# FIXME - insert some real tests, host_os isn't really good enough
20252  case $host_os in
20253  darwin*)
20254    if test -n "$STRIP"; then
20255      striplib="$STRIP -x"
20256      old_striplib="$STRIP -S"
20257      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20258$as_echo "yes" >&6; }
20259    else
20260      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261$as_echo "no" >&6; }
20262    fi
20263    ;;
20264  *)
20265    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20266$as_echo "no" >&6; }
20267    ;;
20268  esac
20269fi
20270
20271
20272
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282  # Report what library types will actually be built
20283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
20284$as_echo_n "checking if libtool supports shared libraries... " >&6; }
20285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
20286$as_echo "$can_build_shared" >&6; }
20287
20288  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
20289$as_echo_n "checking whether to build shared libraries... " >&6; }
20290  test no = "$can_build_shared" && enable_shared=no
20291
20292  # On AIX, shared libraries and static libraries use the same namespace, and
20293  # are all built from PIC.
20294  case $host_os in
20295  aix3*)
20296    test yes = "$enable_shared" && enable_static=no
20297    if test -n "$RANLIB"; then
20298      archive_cmds="$archive_cmds~\$RANLIB \$lib"
20299      postinstall_cmds='$RANLIB $lib'
20300    fi
20301    ;;
20302
20303  aix[4-9]*)
20304    if test ia64 != "$host_cpu"; then
20305      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
20306      yes,aix,yes) ;;			# shared object as lib.so file only
20307      yes,svr4,*) ;;			# shared object as lib.so archive member only
20308      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
20309      esac
20310    fi
20311    ;;
20312  esac
20313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
20314$as_echo "$enable_shared" >&6; }
20315
20316  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
20317$as_echo_n "checking whether to build static libraries... " >&6; }
20318  # Make sure either enable_shared or enable_static is yes.
20319  test yes = "$enable_shared" || enable_static=yes
20320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
20321$as_echo "$enable_static" >&6; }
20322
20323
20324
20325
20326fi
20327ac_ext=c
20328ac_cpp='$CPP $CPPFLAGS'
20329ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20330ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20331ac_compiler_gnu=$ac_cv_c_compiler_gnu
20332
20333CC=$lt_save_CC
20334
20335      if test -n "$CXX" && ( test no != "$CXX" &&
20336    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
20337    (test g++ != "$CXX"))); then
20338  ac_ext=cpp
20339ac_cpp='$CXXCPP $CPPFLAGS'
20340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
20344$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
20345if test -z "$CXXCPP"; then
20346  if ${ac_cv_prog_CXXCPP+:} false; then :
20347  $as_echo_n "(cached) " >&6
20348else
20349      # Double quotes because CXXCPP needs to be expanded
20350    for CXXCPP in "$CXX -E" "/lib/cpp"
20351    do
20352      ac_preproc_ok=false
20353for ac_cxx_preproc_warn_flag in '' yes
20354do
20355  # Use a header file that comes with gcc, so configuring glibc
20356  # with a fresh cross-compiler works.
20357  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20358  # <limits.h> exists even on freestanding compilers.
20359  # On the NeXT, cc -E runs the code through the compiler's parser,
20360  # not just through cpp. "Syntax error" is here to catch this case.
20361  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20362/* end confdefs.h.  */
20363#ifdef __STDC__
20364# include <limits.h>
20365#else
20366# include <assert.h>
20367#endif
20368		     Syntax error
20369_ACEOF
20370if ac_fn_cxx_try_cpp "$LINENO"; then :
20371
20372else
20373  # Broken: fails on valid input.
20374continue
20375fi
20376rm -f conftest.err conftest.i conftest.$ac_ext
20377
20378  # OK, works on sane cases.  Now check whether nonexistent headers
20379  # can be detected and how.
20380  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20381/* end confdefs.h.  */
20382#include <ac_nonexistent.h>
20383_ACEOF
20384if ac_fn_cxx_try_cpp "$LINENO"; then :
20385  # Broken: success on invalid input.
20386continue
20387else
20388  # Passes both tests.
20389ac_preproc_ok=:
20390break
20391fi
20392rm -f conftest.err conftest.i conftest.$ac_ext
20393
20394done
20395# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20396rm -f conftest.i conftest.err conftest.$ac_ext
20397if $ac_preproc_ok; then :
20398  break
20399fi
20400
20401    done
20402    ac_cv_prog_CXXCPP=$CXXCPP
20403
20404fi
20405  CXXCPP=$ac_cv_prog_CXXCPP
20406else
20407  ac_cv_prog_CXXCPP=$CXXCPP
20408fi
20409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
20410$as_echo "$CXXCPP" >&6; }
20411ac_preproc_ok=false
20412for ac_cxx_preproc_warn_flag in '' yes
20413do
20414  # Use a header file that comes with gcc, so configuring glibc
20415  # with a fresh cross-compiler works.
20416  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20417  # <limits.h> exists even on freestanding compilers.
20418  # On the NeXT, cc -E runs the code through the compiler's parser,
20419  # not just through cpp. "Syntax error" is here to catch this case.
20420  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20421/* end confdefs.h.  */
20422#ifdef __STDC__
20423# include <limits.h>
20424#else
20425# include <assert.h>
20426#endif
20427		     Syntax error
20428_ACEOF
20429if ac_fn_cxx_try_cpp "$LINENO"; then :
20430
20431else
20432  # Broken: fails on valid input.
20433continue
20434fi
20435rm -f conftest.err conftest.i conftest.$ac_ext
20436
20437  # OK, works on sane cases.  Now check whether nonexistent headers
20438  # can be detected and how.
20439  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440/* end confdefs.h.  */
20441#include <ac_nonexistent.h>
20442_ACEOF
20443if ac_fn_cxx_try_cpp "$LINENO"; then :
20444  # Broken: success on invalid input.
20445continue
20446else
20447  # Passes both tests.
20448ac_preproc_ok=:
20449break
20450fi
20451rm -f conftest.err conftest.i conftest.$ac_ext
20452
20453done
20454# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20455rm -f conftest.i conftest.err conftest.$ac_ext
20456if $ac_preproc_ok; then :
20457
20458else
20459  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20460$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20461as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
20462See \`config.log' for more details" "$LINENO" 5; }
20463fi
20464
20465ac_ext=c
20466ac_cpp='$CPP $CPPFLAGS'
20467ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469ac_compiler_gnu=$ac_cv_c_compiler_gnu
20470
20471else
20472  _lt_caught_CXX_error=yes
20473fi
20474
20475ac_ext=cpp
20476ac_cpp='$CXXCPP $CPPFLAGS'
20477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20480
20481archive_cmds_need_lc_CXX=no
20482allow_undefined_flag_CXX=
20483always_export_symbols_CXX=no
20484archive_expsym_cmds_CXX=
20485compiler_needs_object_CXX=no
20486export_dynamic_flag_spec_CXX=
20487hardcode_direct_CXX=no
20488hardcode_direct_absolute_CXX=no
20489hardcode_libdir_flag_spec_CXX=
20490hardcode_libdir_separator_CXX=
20491hardcode_minus_L_CXX=no
20492hardcode_shlibpath_var_CXX=unsupported
20493hardcode_automatic_CXX=no
20494inherit_rpath_CXX=no
20495module_cmds_CXX=
20496module_expsym_cmds_CXX=
20497link_all_deplibs_CXX=unknown
20498old_archive_cmds_CXX=$old_archive_cmds
20499reload_flag_CXX=$reload_flag
20500reload_cmds_CXX=$reload_cmds
20501no_undefined_flag_CXX=
20502whole_archive_flag_spec_CXX=
20503enable_shared_with_static_runtimes_CXX=no
20504
20505# Source file extension for C++ test sources.
20506ac_ext=cpp
20507
20508# Object file extension for compiled C++ test sources.
20509objext=o
20510objext_CXX=$objext
20511
20512# No sense in running all these tests if we already determined that
20513# the CXX compiler isn't working.  Some variables (like enable_shared)
20514# are currently assumed to apply to all compilers on this platform,
20515# and will be corrupted by setting them based on a non-working compiler.
20516if test yes != "$_lt_caught_CXX_error"; then
20517  # Code to be used in simple compile tests
20518  lt_simple_compile_test_code="int some_variable = 0;"
20519
20520  # Code to be used in simple link tests
20521  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
20522
20523  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20524
20525
20526
20527
20528
20529
20530# If no C compiler was specified, use CC.
20531LTCC=${LTCC-"$CC"}
20532
20533# If no C compiler flags were specified, use CFLAGS.
20534LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
20535
20536# Allow CC to be a program name with arguments.
20537compiler=$CC
20538
20539
20540  # save warnings/boilerplate of simple test code
20541  ac_outfile=conftest.$ac_objext
20542echo "$lt_simple_compile_test_code" >conftest.$ac_ext
20543eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20544_lt_compiler_boilerplate=`cat conftest.err`
20545$RM conftest*
20546
20547  ac_outfile=conftest.$ac_objext
20548echo "$lt_simple_link_test_code" >conftest.$ac_ext
20549eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
20550_lt_linker_boilerplate=`cat conftest.err`
20551$RM -r conftest*
20552
20553
20554  # Allow CC to be a program name with arguments.
20555  lt_save_CC=$CC
20556  lt_save_CFLAGS=$CFLAGS
20557  lt_save_LD=$LD
20558  lt_save_GCC=$GCC
20559  GCC=$GXX
20560  lt_save_with_gnu_ld=$with_gnu_ld
20561  lt_save_path_LD=$lt_cv_path_LD
20562  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
20563    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
20564  else
20565    $as_unset lt_cv_prog_gnu_ld
20566  fi
20567  if test -n "${lt_cv_path_LDCXX+set}"; then
20568    lt_cv_path_LD=$lt_cv_path_LDCXX
20569  else
20570    $as_unset lt_cv_path_LD
20571  fi
20572  test -z "${LDCXX+set}" || LD=$LDCXX
20573  CC=${CXX-"c++"}
20574  CFLAGS=$CXXFLAGS
20575  compiler=$CC
20576  compiler_CXX=$CC
20577  func_cc_basename $compiler
20578cc_basename=$func_cc_basename_result
20579
20580
20581  if test -n "$compiler"; then
20582    # We don't want -fno-exception when compiling C++ code, so set the
20583    # no_builtin_flag separately
20584    if test yes = "$GXX"; then
20585      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
20586    else
20587      lt_prog_compiler_no_builtin_flag_CXX=
20588    fi
20589
20590    if test yes = "$GXX"; then
20591      # Set up default GNU C++ configuration
20592
20593
20594
20595# Check whether --with-gnu-ld was given.
20596if test "${with_gnu_ld+set}" = set; then :
20597  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
20598else
20599  with_gnu_ld=no
20600fi
20601
20602ac_prog=ld
20603if test yes = "$GCC"; then
20604  # Check if gcc -print-prog-name=ld gives a path.
20605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20606$as_echo_n "checking for ld used by $CC... " >&6; }
20607  case $host in
20608  *-*-mingw*)
20609    # gcc leaves a trailing carriage return, which upsets mingw
20610    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20611  *)
20612    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20613  esac
20614  case $ac_prog in
20615    # Accept absolute paths.
20616    [\\/]* | ?:[\\/]*)
20617      re_direlt='/[^/][^/]*/\.\./'
20618      # Canonicalize the pathname of ld
20619      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
20620      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
20621	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
20622      done
20623      test -z "$LD" && LD=$ac_prog
20624      ;;
20625  "")
20626    # If it fails, then pretend we aren't using GCC.
20627    ac_prog=ld
20628    ;;
20629  *)
20630    # If it is relative, then search for the first ld in PATH.
20631    with_gnu_ld=unknown
20632    ;;
20633  esac
20634elif test yes = "$with_gnu_ld"; then
20635  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20636$as_echo_n "checking for GNU ld... " >&6; }
20637else
20638  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20639$as_echo_n "checking for non-GNU ld... " >&6; }
20640fi
20641if ${lt_cv_path_LD+:} false; then :
20642  $as_echo_n "(cached) " >&6
20643else
20644  if test -z "$LD"; then
20645  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
20646  for ac_dir in $PATH; do
20647    IFS=$lt_save_ifs
20648    test -z "$ac_dir" && ac_dir=.
20649    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20650      lt_cv_path_LD=$ac_dir/$ac_prog
20651      # Check to see if the program is GNU ld.  I'd rather use --version,
20652      # but apparently some variants of GNU ld only accept -v.
20653      # Break only if it was the GNU/non-GNU ld that we prefer.
20654      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
20655      *GNU* | *'with BFD'*)
20656	test no != "$with_gnu_ld" && break
20657	;;
20658      *)
20659	test yes != "$with_gnu_ld" && break
20660	;;
20661      esac
20662    fi
20663  done
20664  IFS=$lt_save_ifs
20665else
20666  lt_cv_path_LD=$LD # Let the user override the test with a path.
20667fi
20668fi
20669
20670LD=$lt_cv_path_LD
20671if test -n "$LD"; then
20672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20673$as_echo "$LD" >&6; }
20674else
20675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20676$as_echo "no" >&6; }
20677fi
20678test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20680$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20681if ${lt_cv_prog_gnu_ld+:} false; then :
20682  $as_echo_n "(cached) " >&6
20683else
20684  # I'd rather use --version here, but apparently some GNU lds only accept -v.
20685case `$LD -v 2>&1 </dev/null` in
20686*GNU* | *'with BFD'*)
20687  lt_cv_prog_gnu_ld=yes
20688  ;;
20689*)
20690  lt_cv_prog_gnu_ld=no
20691  ;;
20692esac
20693fi
20694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
20695$as_echo "$lt_cv_prog_gnu_ld" >&6; }
20696with_gnu_ld=$lt_cv_prog_gnu_ld
20697
20698
20699
20700
20701
20702
20703
20704      # Check if GNU C++ uses GNU ld as the underlying linker, since the
20705      # archiving commands below assume that GNU ld is being used.
20706      if test yes = "$with_gnu_ld"; then
20707        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
20708        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
20709
20710        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
20711        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
20712
20713        # If archive_cmds runs LD, not CC, wlarc should be empty
20714        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
20715        #     investigate it a little bit more. (MM)
20716        wlarc='$wl'
20717
20718        # ancient GNU ld didn't support --whole-archive et. al.
20719        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
20720	  $GREP 'no-whole-archive' > /dev/null; then
20721          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
20722        else
20723          whole_archive_flag_spec_CXX=
20724        fi
20725      else
20726        with_gnu_ld=no
20727        wlarc=
20728
20729        # A generic and very simple default shared library creation
20730        # command for GNU C++ for the case where it uses the native
20731        # linker, instead of GNU ld.  If possible, this setting should
20732        # overridden to take advantage of the native linker features on
20733        # the platform it is being used on.
20734        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
20735      fi
20736
20737      # Commands to make compiler produce verbose output that lists
20738      # what "hidden" libraries, object files and flags are used when
20739      # linking a shared library.
20740      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
20741
20742    else
20743      GXX=no
20744      with_gnu_ld=no
20745      wlarc=
20746    fi
20747
20748    # PORTME: fill in a description of your system's C++ link characteristics
20749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20750$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20751    ld_shlibs_CXX=yes
20752    case $host_os in
20753      aix3*)
20754        # FIXME: insert proper C++ library support
20755        ld_shlibs_CXX=no
20756        ;;
20757      aix[4-9]*)
20758        if test ia64 = "$host_cpu"; then
20759          # On IA64, the linker does run time linking by default, so we don't
20760          # have to do anything special.
20761          aix_use_runtimelinking=no
20762          exp_sym_flag='-Bexport'
20763          no_entry_flag=
20764        else
20765          aix_use_runtimelinking=no
20766
20767          # Test if we are trying to use run time linking or normal
20768          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
20769          # have runtime linking enabled, and use it for executables.
20770          # For shared libraries, we enable/disable runtime linking
20771          # depending on the kind of the shared library created -
20772          # when "with_aix_soname,aix_use_runtimelinking" is:
20773          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
20774          # "aix,yes"  lib.so          shared, rtl:yes, for executables
20775          #            lib.a           static archive
20776          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
20777          #            lib.a(lib.so.V) shared, rtl:no,  for executables
20778          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
20779          #            lib.a(lib.so.V) shared, rtl:no
20780          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
20781          #            lib.a           static archive
20782          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
20783	    for ld_flag in $LDFLAGS; do
20784	      case $ld_flag in
20785	      *-brtl*)
20786	        aix_use_runtimelinking=yes
20787	        break
20788	        ;;
20789	      esac
20790	    done
20791	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
20792	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
20793	      # so we don't have lib.a shared libs to link our executables.
20794	      # We have to force runtime linking in this case.
20795	      aix_use_runtimelinking=yes
20796	      LDFLAGS="$LDFLAGS -Wl,-brtl"
20797	    fi
20798	    ;;
20799          esac
20800
20801          exp_sym_flag='-bexport'
20802          no_entry_flag='-bnoentry'
20803        fi
20804
20805        # When large executables or shared objects are built, AIX ld can
20806        # have problems creating the table of contents.  If linking a library
20807        # or program results in "error TOC overflow" add -mminimal-toc to
20808        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
20809        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
20810
20811        archive_cmds_CXX=''
20812        hardcode_direct_CXX=yes
20813        hardcode_direct_absolute_CXX=yes
20814        hardcode_libdir_separator_CXX=':'
20815        link_all_deplibs_CXX=yes
20816        file_list_spec_CXX='$wl-f,'
20817        case $with_aix_soname,$aix_use_runtimelinking in
20818        aix,*) ;;	# no import file
20819        svr4,* | *,yes) # use import file
20820          # The Import File defines what to hardcode.
20821          hardcode_direct_CXX=no
20822          hardcode_direct_absolute_CXX=no
20823          ;;
20824        esac
20825
20826        if test yes = "$GXX"; then
20827          case $host_os in aix4.[012]|aix4.[012].*)
20828          # We only want to do this on AIX 4.2 and lower, the check
20829          # below for broken collect2 doesn't work under 4.3+
20830	  collect2name=`$CC -print-prog-name=collect2`
20831	  if test -f "$collect2name" &&
20832	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
20833	  then
20834	    # We have reworked collect2
20835	    :
20836	  else
20837	    # We have old collect2
20838	    hardcode_direct_CXX=unsupported
20839	    # It fails to find uninstalled libraries when the uninstalled
20840	    # path is not listed in the libpath.  Setting hardcode_minus_L
20841	    # to unsupported forces relinking
20842	    hardcode_minus_L_CXX=yes
20843	    hardcode_libdir_flag_spec_CXX='-L$libdir'
20844	    hardcode_libdir_separator_CXX=
20845	  fi
20846          esac
20847          shared_flag='-shared'
20848	  if test yes = "$aix_use_runtimelinking"; then
20849	    shared_flag=$shared_flag' $wl-G'
20850	  fi
20851	  # Need to ensure runtime linking is disabled for the traditional
20852	  # shared library, or the linker may eventually find shared libraries
20853	  # /with/ Import File - we do not want to mix them.
20854	  shared_flag_aix='-shared'
20855	  shared_flag_svr4='-shared $wl-G'
20856        else
20857          # not using gcc
20858          if test ia64 = "$host_cpu"; then
20859	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
20860	  # chokes on -Wl,-G. The following line is correct:
20861	  shared_flag='-G'
20862          else
20863	    if test yes = "$aix_use_runtimelinking"; then
20864	      shared_flag='$wl-G'
20865	    else
20866	      shared_flag='$wl-bM:SRE'
20867	    fi
20868	    shared_flag_aix='$wl-bM:SRE'
20869	    shared_flag_svr4='$wl-G'
20870          fi
20871        fi
20872
20873        export_dynamic_flag_spec_CXX='$wl-bexpall'
20874        # It seems that -bexpall does not export symbols beginning with
20875        # underscore (_), so it is better to generate a list of symbols to
20876	# export.
20877        always_export_symbols_CXX=yes
20878	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
20879          # Warning - without using the other runtime loading flags (-brtl),
20880          # -berok will link without error, but may produce a broken library.
20881          # The "-G" linker flag allows undefined symbols.
20882          no_undefined_flag_CXX='-bernotok'
20883          # Determine the default libpath from the value encoded in an empty
20884          # executable.
20885          if test set = "${lt_cv_aix_libpath+set}"; then
20886  aix_libpath=$lt_cv_aix_libpath
20887else
20888  if ${lt_cv_aix_libpath__CXX+:} false; then :
20889  $as_echo_n "(cached) " >&6
20890else
20891  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892/* end confdefs.h.  */
20893
20894int
20895main ()
20896{
20897
20898  ;
20899  return 0;
20900}
20901_ACEOF
20902if ac_fn_cxx_try_link "$LINENO"; then :
20903
20904  lt_aix_libpath_sed='
20905      /Import File Strings/,/^$/ {
20906	  /^0/ {
20907	      s/^0  *\([^ ]*\) *$/\1/
20908	      p
20909	  }
20910      }'
20911  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20912  # Check for a 64-bit object if we didn't find anything.
20913  if test -z "$lt_cv_aix_libpath__CXX"; then
20914    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20915  fi
20916fi
20917rm -f core conftest.err conftest.$ac_objext \
20918    conftest$ac_exeext conftest.$ac_ext
20919  if test -z "$lt_cv_aix_libpath__CXX"; then
20920    lt_cv_aix_libpath__CXX=/usr/lib:/lib
20921  fi
20922
20923fi
20924
20925  aix_libpath=$lt_cv_aix_libpath__CXX
20926fi
20927
20928          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
20929
20930          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
20931        else
20932          if test ia64 = "$host_cpu"; then
20933	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
20934	    allow_undefined_flag_CXX="-z nodefs"
20935	    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"
20936          else
20937	    # Determine the default libpath from the value encoded in an
20938	    # empty executable.
20939	    if test set = "${lt_cv_aix_libpath+set}"; then
20940  aix_libpath=$lt_cv_aix_libpath
20941else
20942  if ${lt_cv_aix_libpath__CXX+:} false; then :
20943  $as_echo_n "(cached) " >&6
20944else
20945  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20946/* end confdefs.h.  */
20947
20948int
20949main ()
20950{
20951
20952  ;
20953  return 0;
20954}
20955_ACEOF
20956if ac_fn_cxx_try_link "$LINENO"; then :
20957
20958  lt_aix_libpath_sed='
20959      /Import File Strings/,/^$/ {
20960	  /^0/ {
20961	      s/^0  *\([^ ]*\) *$/\1/
20962	      p
20963	  }
20964      }'
20965  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20966  # Check for a 64-bit object if we didn't find anything.
20967  if test -z "$lt_cv_aix_libpath__CXX"; then
20968    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
20969  fi
20970fi
20971rm -f core conftest.err conftest.$ac_objext \
20972    conftest$ac_exeext conftest.$ac_ext
20973  if test -z "$lt_cv_aix_libpath__CXX"; then
20974    lt_cv_aix_libpath__CXX=/usr/lib:/lib
20975  fi
20976
20977fi
20978
20979  aix_libpath=$lt_cv_aix_libpath__CXX
20980fi
20981
20982	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
20983	    # Warning - without using the other run time loading flags,
20984	    # -berok will link without error, but may produce a broken library.
20985	    no_undefined_flag_CXX=' $wl-bernotok'
20986	    allow_undefined_flag_CXX=' $wl-berok'
20987	    if test yes = "$with_gnu_ld"; then
20988	      # We only use this code for GNU lds that support --whole-archive.
20989	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
20990	    else
20991	      # Exported symbols can be pulled into shared objects from archives
20992	      whole_archive_flag_spec_CXX='$convenience'
20993	    fi
20994	    archive_cmds_need_lc_CXX=yes
20995	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
20996	    # -brtl affects multiple linker settings, -berok does not and is overridden later
20997	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
20998	    if test svr4 != "$with_aix_soname"; then
20999	      # This is similar to how AIX traditionally builds its shared
21000	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
21001	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
21002	    fi
21003	    if test aix != "$with_aix_soname"; then
21004	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
21005	    else
21006	      # used by -dlpreopen to get the symbols
21007	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
21008	    fi
21009	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
21010          fi
21011        fi
21012        ;;
21013
21014      beos*)
21015	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
21016	  allow_undefined_flag_CXX=unsupported
21017	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21018	  # support --undefined.  This deserves some investigation.  FIXME
21019	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21020	else
21021	  ld_shlibs_CXX=no
21022	fi
21023	;;
21024
21025      chorus*)
21026        case $cc_basename in
21027          *)
21028	  # FIXME: insert proper C++ library support
21029	  ld_shlibs_CXX=no
21030	  ;;
21031        esac
21032        ;;
21033
21034      cygwin* | mingw* | pw32* | cegcc*)
21035	case $GXX,$cc_basename in
21036	,cl* | no,cl*)
21037	  # Native MSVC
21038	  # hardcode_libdir_flag_spec is actually meaningless, as there is
21039	  # no search path for DLLs.
21040	  hardcode_libdir_flag_spec_CXX=' '
21041	  allow_undefined_flag_CXX=unsupported
21042	  always_export_symbols_CXX=yes
21043	  file_list_spec_CXX='@'
21044	  # Tell ltmain to make .lib files, not .a files.
21045	  libext=lib
21046	  # Tell ltmain to make .dll files, not .so files.
21047	  shrext_cmds=.dll
21048	  # FIXME: Setting linknames here is a bad hack.
21049	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
21050	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
21051              cp "$export_symbols" "$output_objdir/$soname.def";
21052              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
21053            else
21054              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
21055            fi~
21056            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
21057            linknames='
21058	  # The linker will not automatically build a static lib if we build a DLL.
21059	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
21060	  enable_shared_with_static_runtimes_CXX=yes
21061	  # Don't use ranlib
21062	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
21063	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
21064            lt_tool_outputfile="@TOOL_OUTPUT@"~
21065            case $lt_outputfile in
21066              *.exe|*.EXE) ;;
21067              *)
21068                lt_outputfile=$lt_outputfile.exe
21069                lt_tool_outputfile=$lt_tool_outputfile.exe
21070                ;;
21071            esac~
21072            func_to_tool_file "$lt_outputfile"~
21073            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
21074              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
21075              $RM "$lt_outputfile.manifest";
21076            fi'
21077	  ;;
21078	*)
21079	  # g++
21080	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
21081	  # as there is no search path for DLLs.
21082	  hardcode_libdir_flag_spec_CXX='-L$libdir'
21083	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
21084	  allow_undefined_flag_CXX=unsupported
21085	  always_export_symbols_CXX=no
21086	  enable_shared_with_static_runtimes_CXX=yes
21087
21088	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
21089	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21090	    # If the export-symbols file already is a .def file, use it as
21091	    # is; otherwise, prepend EXPORTS...
21092	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
21093              cp $export_symbols $output_objdir/$soname.def;
21094            else
21095              echo EXPORTS > $output_objdir/$soname.def;
21096              cat $export_symbols >> $output_objdir/$soname.def;
21097            fi~
21098            $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
21099	  else
21100	    ld_shlibs_CXX=no
21101	  fi
21102	  ;;
21103	esac
21104	;;
21105      darwin* | rhapsody*)
21106
21107
21108  archive_cmds_need_lc_CXX=no
21109  hardcode_direct_CXX=no
21110  hardcode_automatic_CXX=yes
21111  hardcode_shlibpath_var_CXX=unsupported
21112  if test yes = "$lt_cv_ld_force_load"; then
21113    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
21114
21115  else
21116    whole_archive_flag_spec_CXX=''
21117  fi
21118  link_all_deplibs_CXX=yes
21119  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
21120  case $cc_basename in
21121     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
21122     *) _lt_dar_can_shared=$GCC ;;
21123  esac
21124  if test yes = "$_lt_dar_can_shared"; then
21125    output_verbose_link_cmd=func_echo_all
21126    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
21127    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
21128    archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
21129    module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
21130       if test yes != "$lt_cv_apple_cc_single_mod"; then
21131      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil"
21132      archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil"
21133    fi
21134
21135  else
21136  ld_shlibs_CXX=no
21137  fi
21138
21139	;;
21140
21141      os2*)
21142	hardcode_libdir_flag_spec_CXX='-L$libdir'
21143	hardcode_minus_L_CXX=yes
21144	allow_undefined_flag_CXX=unsupported
21145	shrext_cmds=.dll
21146	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21147	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21148	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21149	  $ECHO EXPORTS >> $output_objdir/$libname.def~
21150	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
21151	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21152	  emximp -o $lib $output_objdir/$libname.def'
21153	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
21154	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
21155	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
21156	  $ECHO EXPORTS >> $output_objdir/$libname.def~
21157	  prefix_cmds="$SED"~
21158	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
21159	    prefix_cmds="$prefix_cmds -e 1d";
21160	  fi~
21161	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
21162	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
21163	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
21164	  emximp -o $lib $output_objdir/$libname.def'
21165	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
21166	enable_shared_with_static_runtimes_CXX=yes
21167	;;
21168
21169      dgux*)
21170        case $cc_basename in
21171          ec++*)
21172	    # FIXME: insert proper C++ library support
21173	    ld_shlibs_CXX=no
21174	    ;;
21175          ghcx*)
21176	    # Green Hills C++ Compiler
21177	    # FIXME: insert proper C++ library support
21178	    ld_shlibs_CXX=no
21179	    ;;
21180          *)
21181	    # FIXME: insert proper C++ library support
21182	    ld_shlibs_CXX=no
21183	    ;;
21184        esac
21185        ;;
21186
21187      freebsd2.*)
21188        # C++ shared libraries reported to be fairly broken before
21189	# switch to ELF
21190        ld_shlibs_CXX=no
21191        ;;
21192
21193      freebsd-elf*)
21194        archive_cmds_need_lc_CXX=no
21195        ;;
21196
21197      freebsd* | dragonfly*)
21198        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
21199        # conventions
21200        ld_shlibs_CXX=yes
21201        ;;
21202
21203      haiku*)
21204        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21205        link_all_deplibs_CXX=yes
21206        ;;
21207
21208      hpux9*)
21209        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
21210        hardcode_libdir_separator_CXX=:
21211        export_dynamic_flag_spec_CXX='$wl-E'
21212        hardcode_direct_CXX=yes
21213        hardcode_minus_L_CXX=yes # Not in the search PATH,
21214				             # but as the default
21215				             # location of the library.
21216
21217        case $cc_basename in
21218          CC*)
21219            # FIXME: insert proper C++ library support
21220            ld_shlibs_CXX=no
21221            ;;
21222          aCC*)
21223            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'
21224            # Commands to make compiler produce verbose output that lists
21225            # what "hidden" libraries, object files and flags are used when
21226            # linking a shared library.
21227            #
21228            # There doesn't appear to be a way to prevent this compiler from
21229            # explicitly linking system object files so we need to strip them
21230            # from the output so that they don't get included in the library
21231            # dependencies.
21232            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"'
21233            ;;
21234          *)
21235            if test yes = "$GXX"; then
21236              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
21237            else
21238              # FIXME: insert proper C++ library support
21239              ld_shlibs_CXX=no
21240            fi
21241            ;;
21242        esac
21243        ;;
21244
21245      hpux10*|hpux11*)
21246        if test no = "$with_gnu_ld"; then
21247	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
21248	  hardcode_libdir_separator_CXX=:
21249
21250          case $host_cpu in
21251            hppa*64*|ia64*)
21252              ;;
21253            *)
21254	      export_dynamic_flag_spec_CXX='$wl-E'
21255              ;;
21256          esac
21257        fi
21258        case $host_cpu in
21259          hppa*64*|ia64*)
21260            hardcode_direct_CXX=no
21261            hardcode_shlibpath_var_CXX=no
21262            ;;
21263          *)
21264            hardcode_direct_CXX=yes
21265            hardcode_direct_absolute_CXX=yes
21266            hardcode_minus_L_CXX=yes # Not in the search PATH,
21267					         # but as the default
21268					         # location of the library.
21269            ;;
21270        esac
21271
21272        case $cc_basename in
21273          CC*)
21274	    # FIXME: insert proper C++ library support
21275	    ld_shlibs_CXX=no
21276	    ;;
21277          aCC*)
21278	    case $host_cpu in
21279	      hppa*64*)
21280	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21281	        ;;
21282	      ia64*)
21283	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21284	        ;;
21285	      *)
21286	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21287	        ;;
21288	    esac
21289	    # Commands to make compiler produce verbose output that lists
21290	    # what "hidden" libraries, object files and flags are used when
21291	    # linking a shared library.
21292	    #
21293	    # There doesn't appear to be a way to prevent this compiler from
21294	    # explicitly linking system object files so we need to strip them
21295	    # from the output so that they don't get included in the library
21296	    # dependencies.
21297	    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"'
21298	    ;;
21299          *)
21300	    if test yes = "$GXX"; then
21301	      if test no = "$with_gnu_ld"; then
21302	        case $host_cpu in
21303	          hppa*64*)
21304	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21305	            ;;
21306	          ia64*)
21307	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21308	            ;;
21309	          *)
21310	            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'
21311	            ;;
21312	        esac
21313	      fi
21314	    else
21315	      # FIXME: insert proper C++ library support
21316	      ld_shlibs_CXX=no
21317	    fi
21318	    ;;
21319        esac
21320        ;;
21321
21322      interix[3-9]*)
21323	hardcode_direct_CXX=no
21324	hardcode_shlibpath_var_CXX=no
21325	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21326	export_dynamic_flag_spec_CXX='$wl-E'
21327	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
21328	# Instead, shared libraries are loaded at an image base (0x10000000 by
21329	# default) and relocated if they conflict, which is a slow very memory
21330	# consuming and fragmenting process.  To avoid this, we pick a random,
21331	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
21332	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
21333	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21334	archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
21335	;;
21336      irix5* | irix6*)
21337        case $cc_basename in
21338          CC*)
21339	    # SGI C++
21340	    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'
21341
21342	    # Archives containing C++ object files must be created using
21343	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
21344	    # necessary to make sure instantiated templates are included
21345	    # in the archive.
21346	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
21347	    ;;
21348          *)
21349	    if test yes = "$GXX"; then
21350	      if test no = "$with_gnu_ld"; then
21351	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
21352	      else
21353	        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'
21354	      fi
21355	    fi
21356	    link_all_deplibs_CXX=yes
21357	    ;;
21358        esac
21359        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21360        hardcode_libdir_separator_CXX=:
21361        inherit_rpath_CXX=yes
21362        ;;
21363
21364      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
21365        case $cc_basename in
21366          KCC*)
21367	    # Kuck and Associates, Inc. (KAI) C++ Compiler
21368
21369	    # KCC will only create a shared library if the output file
21370	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
21371	    # to its proper name (with version) after linking.
21372	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
21373	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib'
21374	    # Commands to make compiler produce verbose output that lists
21375	    # what "hidden" libraries, object files and flags are used when
21376	    # linking a shared library.
21377	    #
21378	    # There doesn't appear to be a way to prevent this compiler from
21379	    # explicitly linking system object files so we need to strip them
21380	    # from the output so that they don't get included in the library
21381	    # dependencies.
21382	    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"'
21383
21384	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21385	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21386
21387	    # Archives containing C++ object files must be created using
21388	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
21389	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
21390	    ;;
21391	  icpc* | ecpc* )
21392	    # Intel C++
21393	    with_gnu_ld=yes
21394	    # version 8.0 and above of icpc choke on multiply defined symbols
21395	    # if we add $predep_objects and $postdep_objects, however 7.1 and
21396	    # earlier do not add the objects themselves.
21397	    case `$CC -V 2>&1` in
21398	      *"Version 7."*)
21399	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21400		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21401		;;
21402	      *)  # Version 8.0 or newer
21403	        tmp_idyn=
21404	        case $host_cpu in
21405		  ia64*) tmp_idyn=' -i_dynamic';;
21406		esac
21407	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21408		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21409		;;
21410	    esac
21411	    archive_cmds_need_lc_CXX=no
21412	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21413	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21414	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
21415	    ;;
21416          pgCC* | pgcpp*)
21417            # Portland Group C++ compiler
21418	    case `$CC -V` in
21419	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
21420	      prelink_cmds_CXX='tpldir=Template.dir~
21421               rm -rf $tpldir~
21422               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
21423               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
21424	      old_archive_cmds_CXX='tpldir=Template.dir~
21425                rm -rf $tpldir~
21426                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
21427                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
21428                $RANLIB $oldlib'
21429	      archive_cmds_CXX='tpldir=Template.dir~
21430                rm -rf $tpldir~
21431                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21432                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21433	      archive_expsym_cmds_CXX='tpldir=Template.dir~
21434                rm -rf $tpldir~
21435                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
21436                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21437	      ;;
21438	    *) # Version 6 and above use weak symbols
21439	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21440	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
21441	      ;;
21442	    esac
21443
21444	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
21445	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21446	    whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
21447            ;;
21448	  cxx*)
21449	    # Compaq C++
21450	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
21451	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname  -o $lib $wl-retain-symbols-file $wl$export_symbols'
21452
21453	    runpath_var=LD_RUN_PATH
21454	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21455	    hardcode_libdir_separator_CXX=:
21456
21457	    # Commands to make compiler produce verbose output that lists
21458	    # what "hidden" libraries, object files and flags are used when
21459	    # linking a shared library.
21460	    #
21461	    # There doesn't appear to be a way to prevent this compiler from
21462	    # explicitly linking system object files so we need to strip them
21463	    # from the output so that they don't get included in the library
21464	    # dependencies.
21465	    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'
21466	    ;;
21467	  xl* | mpixl* | bgxl*)
21468	    # IBM XL 8.0 on PPC, with GNU ld
21469	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21470	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
21471	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
21472	    if test yes = "$supports_anon_versioning"; then
21473	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
21474                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21475                echo "local: *; };" >> $output_objdir/$libname.ver~
21476                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
21477	    fi
21478	    ;;
21479	  *)
21480	    case `$CC -V 2>&1 | sed 5q` in
21481	    *Sun\ C*)
21482	      # Sun C++ 5.9
21483	      no_undefined_flag_CXX=' -zdefs'
21484	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21485	      archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
21486	      hardcode_libdir_flag_spec_CXX='-R$libdir'
21487	      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'
21488	      compiler_needs_object_CXX=yes
21489
21490	      # Not sure whether something based on
21491	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
21492	      # would be better.
21493	      output_verbose_link_cmd='func_echo_all'
21494
21495	      # Archives containing C++ object files must be created using
21496	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21497	      # necessary to make sure instantiated templates are included
21498	      # in the archive.
21499	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21500	      ;;
21501	    esac
21502	    ;;
21503	esac
21504	;;
21505
21506      lynxos*)
21507        # FIXME: insert proper C++ library support
21508	ld_shlibs_CXX=no
21509	;;
21510
21511      m88k*)
21512        # FIXME: insert proper C++ library support
21513        ld_shlibs_CXX=no
21514	;;
21515
21516      mvs*)
21517        case $cc_basename in
21518          cxx*)
21519	    # FIXME: insert proper C++ library support
21520	    ld_shlibs_CXX=no
21521	    ;;
21522	  *)
21523	    # FIXME: insert proper C++ library support
21524	    ld_shlibs_CXX=no
21525	    ;;
21526	esac
21527	;;
21528
21529      netbsd*)
21530        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
21531	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
21532	  wlarc=
21533	  hardcode_libdir_flag_spec_CXX='-R$libdir'
21534	  hardcode_direct_CXX=yes
21535	  hardcode_shlibpath_var_CXX=no
21536	fi
21537	# Workaround some broken pre-1.5 toolchains
21538	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
21539	;;
21540
21541      *nto* | *qnx*)
21542        ld_shlibs_CXX=yes
21543	;;
21544
21545      openbsd* | bitrig*)
21546	if test -f /usr/libexec/ld.so; then
21547	  hardcode_direct_CXX=yes
21548	  hardcode_shlibpath_var_CXX=no
21549	  hardcode_direct_absolute_CXX=yes
21550	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
21551	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21552	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
21553	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
21554	    export_dynamic_flag_spec_CXX='$wl-E'
21555	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
21556	  fi
21557	  output_verbose_link_cmd=func_echo_all
21558	else
21559	  ld_shlibs_CXX=no
21560	fi
21561	;;
21562
21563      osf3* | osf4* | osf5*)
21564        case $cc_basename in
21565          KCC*)
21566	    # Kuck and Associates, Inc. (KAI) C++ Compiler
21567
21568	    # KCC will only create a shared library if the output file
21569	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
21570	    # to its proper name (with version) after linking.
21571	    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'
21572
21573	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
21574	    hardcode_libdir_separator_CXX=:
21575
21576	    # Archives containing C++ object files must be created using
21577	    # the KAI C++ compiler.
21578	    case $host in
21579	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
21580	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
21581	    esac
21582	    ;;
21583          RCC*)
21584	    # Rational C++ 2.4.1
21585	    # FIXME: insert proper C++ library support
21586	    ld_shlibs_CXX=no
21587	    ;;
21588          cxx*)
21589	    case $host in
21590	      osf3*)
21591	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
21592	        archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
21593	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21594		;;
21595	      *)
21596	        allow_undefined_flag_CXX=' -expect_unresolved \*'
21597	        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'
21598	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
21599                  echo "-hidden">> $lib.exp~
21600                  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~
21601                  $RM $lib.exp'
21602	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
21603		;;
21604	    esac
21605
21606	    hardcode_libdir_separator_CXX=:
21607
21608	    # Commands to make compiler produce verbose output that lists
21609	    # what "hidden" libraries, object files and flags are used when
21610	    # linking a shared library.
21611	    #
21612	    # There doesn't appear to be a way to prevent this compiler from
21613	    # explicitly linking system object files so we need to strip them
21614	    # from the output so that they don't get included in the library
21615	    # dependencies.
21616	    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"'
21617	    ;;
21618	  *)
21619	    if test yes,no = "$GXX,$with_gnu_ld"; then
21620	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
21621	      case $host in
21622	        osf3*)
21623	          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'
21624		  ;;
21625	        *)
21626	          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'
21627		  ;;
21628	      esac
21629
21630	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
21631	      hardcode_libdir_separator_CXX=:
21632
21633	      # Commands to make compiler produce verbose output that lists
21634	      # what "hidden" libraries, object files and flags are used when
21635	      # linking a shared library.
21636	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21637
21638	    else
21639	      # FIXME: insert proper C++ library support
21640	      ld_shlibs_CXX=no
21641	    fi
21642	    ;;
21643        esac
21644        ;;
21645
21646      psos*)
21647        # FIXME: insert proper C++ library support
21648        ld_shlibs_CXX=no
21649        ;;
21650
21651      sunos4*)
21652        case $cc_basename in
21653          CC*)
21654	    # Sun C++ 4.x
21655	    # FIXME: insert proper C++ library support
21656	    ld_shlibs_CXX=no
21657	    ;;
21658          lcc*)
21659	    # Lucid
21660	    # FIXME: insert proper C++ library support
21661	    ld_shlibs_CXX=no
21662	    ;;
21663          *)
21664	    # FIXME: insert proper C++ library support
21665	    ld_shlibs_CXX=no
21666	    ;;
21667        esac
21668        ;;
21669
21670      solaris*)
21671        case $cc_basename in
21672          CC* | sunCC*)
21673	    # Sun C++ 4.2, 5.x and Centerline C++
21674            archive_cmds_need_lc_CXX=yes
21675	    no_undefined_flag_CXX=' -zdefs'
21676	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
21677	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21678              $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'
21679
21680	    hardcode_libdir_flag_spec_CXX='-R$libdir'
21681	    hardcode_shlibpath_var_CXX=no
21682	    case $host_os in
21683	      solaris2.[0-5] | solaris2.[0-5].*) ;;
21684	      *)
21685		# The compiler driver will combine and reorder linker options,
21686		# but understands '-z linker_flag'.
21687	        # Supported since Solaris 2.6 (maybe 2.5.1?)
21688		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
21689	        ;;
21690	    esac
21691	    link_all_deplibs_CXX=yes
21692
21693	    output_verbose_link_cmd='func_echo_all'
21694
21695	    # Archives containing C++ object files must be created using
21696	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
21697	    # necessary to make sure instantiated templates are included
21698	    # in the archive.
21699	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
21700	    ;;
21701          gcx*)
21702	    # Green Hills C++ Compiler
21703	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21704
21705	    # The C++ compiler must be used to create the archive.
21706	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
21707	    ;;
21708          *)
21709	    # GNU C++ compiler with Solaris linker
21710	    if test yes,no = "$GXX,$with_gnu_ld"; then
21711	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
21712	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
21713	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21714	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21715                  $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'
21716
21717	        # Commands to make compiler produce verbose output that lists
21718	        # what "hidden" libraries, object files and flags are used when
21719	        # linking a shared library.
21720	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21721	      else
21722	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
21723	        # platform.
21724	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
21725	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
21726                  $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'
21727
21728	        # Commands to make compiler produce verbose output that lists
21729	        # what "hidden" libraries, object files and flags are used when
21730	        # linking a shared library.
21731	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
21732	      fi
21733
21734	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
21735	      case $host_os in
21736		solaris2.[0-5] | solaris2.[0-5].*) ;;
21737		*)
21738		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
21739		  ;;
21740	      esac
21741	    fi
21742	    ;;
21743        esac
21744        ;;
21745
21746    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
21747      no_undefined_flag_CXX='$wl-z,text'
21748      archive_cmds_need_lc_CXX=no
21749      hardcode_shlibpath_var_CXX=no
21750      runpath_var='LD_RUN_PATH'
21751
21752      case $cc_basename in
21753        CC*)
21754	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21755	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21756	  ;;
21757	*)
21758	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21759	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21760	  ;;
21761      esac
21762      ;;
21763
21764      sysv5* | sco3.2v5* | sco5v6*)
21765	# Note: We CANNOT use -z defs as we might desire, because we do not
21766	# link with -lc, and that would cause any symbols used from libc to
21767	# always be unresolved, which means just about no library would
21768	# ever link correctly.  If we're not using GNU ld we use -z text
21769	# though, which does catch some bad symbols but isn't as heavy-handed
21770	# as -z defs.
21771	no_undefined_flag_CXX='$wl-z,text'
21772	allow_undefined_flag_CXX='$wl-z,nodefs'
21773	archive_cmds_need_lc_CXX=no
21774	hardcode_shlibpath_var_CXX=no
21775	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
21776	hardcode_libdir_separator_CXX=':'
21777	link_all_deplibs_CXX=yes
21778	export_dynamic_flag_spec_CXX='$wl-Bexport'
21779	runpath_var='LD_RUN_PATH'
21780
21781	case $cc_basename in
21782          CC*)
21783	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21784	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21785	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
21786              '"$old_archive_cmds_CXX"
21787	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
21788              '"$reload_cmds_CXX"
21789	    ;;
21790	  *)
21791	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21792	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
21793	    ;;
21794	esac
21795      ;;
21796
21797      tandem*)
21798        case $cc_basename in
21799          NCC*)
21800	    # NonStop-UX NCC 3.20
21801	    # FIXME: insert proper C++ library support
21802	    ld_shlibs_CXX=no
21803	    ;;
21804          *)
21805	    # FIXME: insert proper C++ library support
21806	    ld_shlibs_CXX=no
21807	    ;;
21808        esac
21809        ;;
21810
21811      vxworks*)
21812        # FIXME: insert proper C++ library support
21813        ld_shlibs_CXX=no
21814        ;;
21815
21816      *)
21817        # FIXME: insert proper C++ library support
21818        ld_shlibs_CXX=no
21819        ;;
21820    esac
21821
21822    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
21823$as_echo "$ld_shlibs_CXX" >&6; }
21824    test no = "$ld_shlibs_CXX" && can_build_shared=no
21825
21826    GCC_CXX=$GXX
21827    LD_CXX=$LD
21828
21829    ## CAVEAT EMPTOR:
21830    ## There is no encapsulation within the following macros, do not change
21831    ## the running order or otherwise move them around unless you know exactly
21832    ## what you are doing...
21833    # Dependencies to place before and after the object being linked:
21834predep_objects_CXX=
21835postdep_objects_CXX=
21836predeps_CXX=
21837postdeps_CXX=
21838compiler_lib_search_path_CXX=
21839
21840cat > conftest.$ac_ext <<_LT_EOF
21841class Foo
21842{
21843public:
21844  Foo (void) { a = 0; }
21845private:
21846  int a;
21847};
21848_LT_EOF
21849
21850
21851_lt_libdeps_save_CFLAGS=$CFLAGS
21852case "$CC $CFLAGS " in #(
21853*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
21854*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
21855*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
21856esac
21857
21858if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21859  (eval $ac_compile) 2>&5
21860  ac_status=$?
21861  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21862  test $ac_status = 0; }; then
21863  # Parse the compiler output and extract the necessary
21864  # objects, libraries and library flags.
21865
21866  # Sentinel used to keep track of whether or not we are before
21867  # the conftest object file.
21868  pre_test_object_deps_done=no
21869
21870  for p in `eval "$output_verbose_link_cmd"`; do
21871    case $prev$p in
21872
21873    -L* | -R* | -l*)
21874       # Some compilers place space between "-{L,R}" and the path.
21875       # Remove the space.
21876       if test x-L = "$p" ||
21877          test x-R = "$p"; then
21878	 prev=$p
21879	 continue
21880       fi
21881
21882       # Expand the sysroot to ease extracting the directories later.
21883       if test -z "$prev"; then
21884         case $p in
21885         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
21886         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
21887         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
21888         esac
21889       fi
21890       case $p in
21891       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
21892       esac
21893       if test no = "$pre_test_object_deps_done"; then
21894	 case $prev in
21895	 -L | -R)
21896	   # Internal compiler library paths should come after those
21897	   # provided the user.  The postdeps already come after the
21898	   # user supplied libs so there is no need to process them.
21899	   if test -z "$compiler_lib_search_path_CXX"; then
21900	     compiler_lib_search_path_CXX=$prev$p
21901	   else
21902	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
21903	   fi
21904	   ;;
21905	 # The "-l" case would never come before the object being
21906	 # linked, so don't bother handling this case.
21907	 esac
21908       else
21909	 if test -z "$postdeps_CXX"; then
21910	   postdeps_CXX=$prev$p
21911	 else
21912	   postdeps_CXX="${postdeps_CXX} $prev$p"
21913	 fi
21914       fi
21915       prev=
21916       ;;
21917
21918    *.lto.$objext) ;; # Ignore GCC LTO objects
21919    *.$objext)
21920       # This assumes that the test object file only shows up
21921       # once in the compiler output.
21922       if test "$p" = "conftest.$objext"; then
21923	 pre_test_object_deps_done=yes
21924	 continue
21925       fi
21926
21927       if test no = "$pre_test_object_deps_done"; then
21928	 if test -z "$predep_objects_CXX"; then
21929	   predep_objects_CXX=$p
21930	 else
21931	   predep_objects_CXX="$predep_objects_CXX $p"
21932	 fi
21933       else
21934	 if test -z "$postdep_objects_CXX"; then
21935	   postdep_objects_CXX=$p
21936	 else
21937	   postdep_objects_CXX="$postdep_objects_CXX $p"
21938	 fi
21939       fi
21940       ;;
21941
21942    *) ;; # Ignore the rest.
21943
21944    esac
21945  done
21946
21947  # Clean up.
21948  rm -f a.out a.exe
21949else
21950  echo "libtool.m4: error: problem compiling CXX test program"
21951fi
21952
21953$RM -f confest.$objext
21954CFLAGS=$_lt_libdeps_save_CFLAGS
21955
21956# PORTME: override above test on systems where it is broken
21957case $host_os in
21958interix[3-9]*)
21959  # Interix 3.5 installs completely hosed .la files for C++, so rather than
21960  # hack all around it, let's just trust "g++" to DTRT.
21961  predep_objects_CXX=
21962  postdep_objects_CXX=
21963  postdeps_CXX=
21964  ;;
21965esac
21966
21967
21968case " $postdeps_CXX " in
21969*" -lc "*) archive_cmds_need_lc_CXX=no ;;
21970esac
21971 compiler_lib_search_dirs_CXX=
21972if test -n "${compiler_lib_search_path_CXX}"; then
21973 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
21974fi
21975
21976
21977
21978
21979
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992
21993
21994
21995
21996
21997
21998
21999
22000
22001
22002
22003
22004
22005
22006    lt_prog_compiler_wl_CXX=
22007lt_prog_compiler_pic_CXX=
22008lt_prog_compiler_static_CXX=
22009
22010
22011  # C++ specific cases for pic, static, wl, etc.
22012  if test yes = "$GXX"; then
22013    lt_prog_compiler_wl_CXX='-Wl,'
22014    lt_prog_compiler_static_CXX='-static'
22015
22016    case $host_os in
22017    aix*)
22018      # All AIX code is PIC.
22019      if test ia64 = "$host_cpu"; then
22020	# AIX 5 now supports IA64 processor
22021	lt_prog_compiler_static_CXX='-Bstatic'
22022      fi
22023      lt_prog_compiler_pic_CXX='-fPIC'
22024      ;;
22025
22026    amigaos*)
22027      case $host_cpu in
22028      powerpc)
22029            # see comment about AmigaOS4 .so support
22030            lt_prog_compiler_pic_CXX='-fPIC'
22031        ;;
22032      m68k)
22033            # FIXME: we need at least 68020 code to build shared libraries, but
22034            # adding the '-m68020' flag to GCC prevents building anything better,
22035            # like '-m68040'.
22036            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
22037        ;;
22038      esac
22039      ;;
22040
22041    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
22042      # PIC is the default for these OSes.
22043      ;;
22044    mingw* | cygwin* | os2* | pw32* | cegcc*)
22045      # This hack is so that the source file can tell whether it is being
22046      # built for inclusion in a dll (and should export symbols for example).
22047      # Although the cygwin gcc ignores -fPIC, still need this for old-style
22048      # (--disable-auto-import) libraries
22049      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22050      case $host_os in
22051      os2*)
22052	lt_prog_compiler_static_CXX='$wl-static'
22053	;;
22054      esac
22055      ;;
22056    darwin* | rhapsody*)
22057      # PIC is the default on this platform
22058      # Common symbols not allowed in MH_DYLIB files
22059      lt_prog_compiler_pic_CXX='-fno-common'
22060      ;;
22061    *djgpp*)
22062      # DJGPP does not support shared libraries at all
22063      lt_prog_compiler_pic_CXX=
22064      ;;
22065    haiku*)
22066      # PIC is the default for Haiku.
22067      # The "-static" flag exists, but is broken.
22068      lt_prog_compiler_static_CXX=
22069      ;;
22070    interix[3-9]*)
22071      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
22072      # Instead, we relocate shared libraries at runtime.
22073      ;;
22074    sysv4*MP*)
22075      if test -d /usr/nec; then
22076	lt_prog_compiler_pic_CXX=-Kconform_pic
22077      fi
22078      ;;
22079    hpux*)
22080      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
22081      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
22082      # sets the default TLS model and affects inlining.
22083      case $host_cpu in
22084      hppa*64*)
22085	;;
22086      *)
22087	lt_prog_compiler_pic_CXX='-fPIC'
22088	;;
22089      esac
22090      ;;
22091    *qnx* | *nto*)
22092      # QNX uses GNU C++, but need to define -shared option too, otherwise
22093      # it will coredump.
22094      lt_prog_compiler_pic_CXX='-fPIC -shared'
22095      ;;
22096    *)
22097      lt_prog_compiler_pic_CXX='-fPIC'
22098      ;;
22099    esac
22100  else
22101    case $host_os in
22102      aix[4-9]*)
22103	# All AIX code is PIC.
22104	if test ia64 = "$host_cpu"; then
22105	  # AIX 5 now supports IA64 processor
22106	  lt_prog_compiler_static_CXX='-Bstatic'
22107	else
22108	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
22109	fi
22110	;;
22111      chorus*)
22112	case $cc_basename in
22113	cxch68*)
22114	  # Green Hills C++ Compiler
22115	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
22116	  ;;
22117	esac
22118	;;
22119      mingw* | cygwin* | os2* | pw32* | cegcc*)
22120	# This hack is so that the source file can tell whether it is being
22121	# built for inclusion in a dll (and should export symbols for example).
22122	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
22123	;;
22124      dgux*)
22125	case $cc_basename in
22126	  ec++*)
22127	    lt_prog_compiler_pic_CXX='-KPIC'
22128	    ;;
22129	  ghcx*)
22130	    # Green Hills C++ Compiler
22131	    lt_prog_compiler_pic_CXX='-pic'
22132	    ;;
22133	  *)
22134	    ;;
22135	esac
22136	;;
22137      freebsd* | dragonfly*)
22138	# FreeBSD uses GNU C++
22139	;;
22140      hpux9* | hpux10* | hpux11*)
22141	case $cc_basename in
22142	  CC*)
22143	    lt_prog_compiler_wl_CXX='-Wl,'
22144	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22145	    if test ia64 != "$host_cpu"; then
22146	      lt_prog_compiler_pic_CXX='+Z'
22147	    fi
22148	    ;;
22149	  aCC*)
22150	    lt_prog_compiler_wl_CXX='-Wl,'
22151	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
22152	    case $host_cpu in
22153	    hppa*64*|ia64*)
22154	      # +Z the default
22155	      ;;
22156	    *)
22157	      lt_prog_compiler_pic_CXX='+Z'
22158	      ;;
22159	    esac
22160	    ;;
22161	  *)
22162	    ;;
22163	esac
22164	;;
22165      interix*)
22166	# This is c89, which is MS Visual C++ (no shared libs)
22167	# Anyone wants to do a port?
22168	;;
22169      irix5* | irix6* | nonstopux*)
22170	case $cc_basename in
22171	  CC*)
22172	    lt_prog_compiler_wl_CXX='-Wl,'
22173	    lt_prog_compiler_static_CXX='-non_shared'
22174	    # CC pic flag -KPIC is the default.
22175	    ;;
22176	  *)
22177	    ;;
22178	esac
22179	;;
22180      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
22181	case $cc_basename in
22182	  KCC*)
22183	    # KAI C++ Compiler
22184	    lt_prog_compiler_wl_CXX='--backend -Wl,'
22185	    lt_prog_compiler_pic_CXX='-fPIC'
22186	    ;;
22187	  ecpc* )
22188	    # old Intel C++ for x86_64, which still supported -KPIC.
22189	    lt_prog_compiler_wl_CXX='-Wl,'
22190	    lt_prog_compiler_pic_CXX='-KPIC'
22191	    lt_prog_compiler_static_CXX='-static'
22192	    ;;
22193	  icpc* )
22194	    # Intel C++, used to be incompatible with GCC.
22195	    # ICC 10 doesn't accept -KPIC any more.
22196	    lt_prog_compiler_wl_CXX='-Wl,'
22197	    lt_prog_compiler_pic_CXX='-fPIC'
22198	    lt_prog_compiler_static_CXX='-static'
22199	    ;;
22200	  pgCC* | pgcpp*)
22201	    # Portland Group C++ compiler
22202	    lt_prog_compiler_wl_CXX='-Wl,'
22203	    lt_prog_compiler_pic_CXX='-fpic'
22204	    lt_prog_compiler_static_CXX='-Bstatic'
22205	    ;;
22206	  cxx*)
22207	    # Compaq C++
22208	    # Make sure the PIC flag is empty.  It appears that all Alpha
22209	    # Linux and Compaq Tru64 Unix objects are PIC.
22210	    lt_prog_compiler_pic_CXX=
22211	    lt_prog_compiler_static_CXX='-non_shared'
22212	    ;;
22213	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
22214	    # IBM XL 8.0, 9.0 on PPC and BlueGene
22215	    lt_prog_compiler_wl_CXX='-Wl,'
22216	    lt_prog_compiler_pic_CXX='-qpic'
22217	    lt_prog_compiler_static_CXX='-qstaticlink'
22218	    ;;
22219	  *)
22220	    case `$CC -V 2>&1 | sed 5q` in
22221	    *Sun\ C*)
22222	      # Sun C++ 5.9
22223	      lt_prog_compiler_pic_CXX='-KPIC'
22224	      lt_prog_compiler_static_CXX='-Bstatic'
22225	      lt_prog_compiler_wl_CXX='-Qoption ld '
22226	      ;;
22227	    esac
22228	    ;;
22229	esac
22230	;;
22231      lynxos*)
22232	;;
22233      m88k*)
22234	;;
22235      mvs*)
22236	case $cc_basename in
22237	  cxx*)
22238	    lt_prog_compiler_pic_CXX='-W c,exportall'
22239	    ;;
22240	  *)
22241	    ;;
22242	esac
22243	;;
22244      netbsd*)
22245	;;
22246      *qnx* | *nto*)
22247        # QNX uses GNU C++, but need to define -shared option too, otherwise
22248        # it will coredump.
22249        lt_prog_compiler_pic_CXX='-fPIC -shared'
22250        ;;
22251      osf3* | osf4* | osf5*)
22252	case $cc_basename in
22253	  KCC*)
22254	    lt_prog_compiler_wl_CXX='--backend -Wl,'
22255	    ;;
22256	  RCC*)
22257	    # Rational C++ 2.4.1
22258	    lt_prog_compiler_pic_CXX='-pic'
22259	    ;;
22260	  cxx*)
22261	    # Digital/Compaq C++
22262	    lt_prog_compiler_wl_CXX='-Wl,'
22263	    # Make sure the PIC flag is empty.  It appears that all Alpha
22264	    # Linux and Compaq Tru64 Unix objects are PIC.
22265	    lt_prog_compiler_pic_CXX=
22266	    lt_prog_compiler_static_CXX='-non_shared'
22267	    ;;
22268	  *)
22269	    ;;
22270	esac
22271	;;
22272      psos*)
22273	;;
22274      solaris*)
22275	case $cc_basename in
22276	  CC* | sunCC*)
22277	    # Sun C++ 4.2, 5.x and Centerline C++
22278	    lt_prog_compiler_pic_CXX='-KPIC'
22279	    lt_prog_compiler_static_CXX='-Bstatic'
22280	    lt_prog_compiler_wl_CXX='-Qoption ld '
22281	    ;;
22282	  gcx*)
22283	    # Green Hills C++ Compiler
22284	    lt_prog_compiler_pic_CXX='-PIC'
22285	    ;;
22286	  *)
22287	    ;;
22288	esac
22289	;;
22290      sunos4*)
22291	case $cc_basename in
22292	  CC*)
22293	    # Sun C++ 4.x
22294	    lt_prog_compiler_pic_CXX='-pic'
22295	    lt_prog_compiler_static_CXX='-Bstatic'
22296	    ;;
22297	  lcc*)
22298	    # Lucid
22299	    lt_prog_compiler_pic_CXX='-pic'
22300	    ;;
22301	  *)
22302	    ;;
22303	esac
22304	;;
22305      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
22306	case $cc_basename in
22307	  CC*)
22308	    lt_prog_compiler_wl_CXX='-Wl,'
22309	    lt_prog_compiler_pic_CXX='-KPIC'
22310	    lt_prog_compiler_static_CXX='-Bstatic'
22311	    ;;
22312	esac
22313	;;
22314      tandem*)
22315	case $cc_basename in
22316	  NCC*)
22317	    # NonStop-UX NCC 3.20
22318	    lt_prog_compiler_pic_CXX='-KPIC'
22319	    ;;
22320	  *)
22321	    ;;
22322	esac
22323	;;
22324      vxworks*)
22325	;;
22326      *)
22327	lt_prog_compiler_can_build_shared_CXX=no
22328	;;
22329    esac
22330  fi
22331
22332case $host_os in
22333  # For platforms that do not support PIC, -DPIC is meaningless:
22334  *djgpp*)
22335    lt_prog_compiler_pic_CXX=
22336    ;;
22337  *)
22338    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
22339    ;;
22340esac
22341
22342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
22343$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
22344if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
22345  $as_echo_n "(cached) " >&6
22346else
22347  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
22348fi
22349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
22350$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
22351lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
22352
22353#
22354# Check to make sure the PIC flag actually works.
22355#
22356if test -n "$lt_prog_compiler_pic_CXX"; then
22357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
22358$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
22359if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
22360  $as_echo_n "(cached) " >&6
22361else
22362  lt_cv_prog_compiler_pic_works_CXX=no
22363   ac_outfile=conftest.$ac_objext
22364   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22365   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
22366   # Insert the option either (1) after the last *FLAGS variable, or
22367   # (2) before a word containing "conftest.", or (3) at the end.
22368   # Note that $ac_compile itself does not contain backslashes and begins
22369   # with a dollar sign (not a hyphen), so the echo should work correctly.
22370   # The option is referenced via a variable to avoid confusing sed.
22371   lt_compile=`echo "$ac_compile" | $SED \
22372   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22373   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22374   -e 's:$: $lt_compiler_flag:'`
22375   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22376   (eval "$lt_compile" 2>conftest.err)
22377   ac_status=$?
22378   cat conftest.err >&5
22379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380   if (exit $ac_status) && test -s "$ac_outfile"; then
22381     # The compiler can only warn and ignore the option if not recognized
22382     # So say no if there are warnings other than the usual output.
22383     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
22384     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22385     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
22386       lt_cv_prog_compiler_pic_works_CXX=yes
22387     fi
22388   fi
22389   $RM conftest*
22390
22391fi
22392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
22393$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
22394
22395if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
22396    case $lt_prog_compiler_pic_CXX in
22397     "" | " "*) ;;
22398     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
22399     esac
22400else
22401    lt_prog_compiler_pic_CXX=
22402     lt_prog_compiler_can_build_shared_CXX=no
22403fi
22404
22405fi
22406
22407
22408
22409
22410
22411#
22412# Check to make sure the static flag actually works.
22413#
22414wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
22415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
22416$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
22417if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
22418  $as_echo_n "(cached) " >&6
22419else
22420  lt_cv_prog_compiler_static_works_CXX=no
22421   save_LDFLAGS=$LDFLAGS
22422   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
22423   echo "$lt_simple_link_test_code" > conftest.$ac_ext
22424   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
22425     # The linker can only warn and ignore the option if not recognized
22426     # So say no if there are warnings
22427     if test -s conftest.err; then
22428       # Append any errors to the config.log.
22429       cat conftest.err 1>&5
22430       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
22431       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
22432       if diff conftest.exp conftest.er2 >/dev/null; then
22433         lt_cv_prog_compiler_static_works_CXX=yes
22434       fi
22435     else
22436       lt_cv_prog_compiler_static_works_CXX=yes
22437     fi
22438   fi
22439   $RM -r conftest*
22440   LDFLAGS=$save_LDFLAGS
22441
22442fi
22443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
22444$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
22445
22446if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
22447    :
22448else
22449    lt_prog_compiler_static_CXX=
22450fi
22451
22452
22453
22454
22455    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22456$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22457if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22458  $as_echo_n "(cached) " >&6
22459else
22460  lt_cv_prog_compiler_c_o_CXX=no
22461   $RM -r conftest 2>/dev/null
22462   mkdir conftest
22463   cd conftest
22464   mkdir out
22465   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22466
22467   lt_compiler_flag="-o out/conftest2.$ac_objext"
22468   # Insert the option either (1) after the last *FLAGS variable, or
22469   # (2) before a word containing "conftest.", or (3) at the end.
22470   # Note that $ac_compile itself does not contain backslashes and begins
22471   # with a dollar sign (not a hyphen), so the echo should work correctly.
22472   lt_compile=`echo "$ac_compile" | $SED \
22473   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22474   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22475   -e 's:$: $lt_compiler_flag:'`
22476   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22477   (eval "$lt_compile" 2>out/conftest.err)
22478   ac_status=$?
22479   cat out/conftest.err >&5
22480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22481   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22482   then
22483     # The compiler can only warn and ignore the option if not recognized
22484     # So say no if there are warnings
22485     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22486     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22487     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22488       lt_cv_prog_compiler_c_o_CXX=yes
22489     fi
22490   fi
22491   chmod u+w . 2>&5
22492   $RM conftest*
22493   # SGI C++ compiler will create directory out/ii_files/ for
22494   # template instantiation
22495   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22496   $RM out/* && rmdir out
22497   cd ..
22498   $RM -r conftest
22499   $RM conftest*
22500
22501fi
22502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22503$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22504
22505
22506
22507    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
22508$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
22509if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
22510  $as_echo_n "(cached) " >&6
22511else
22512  lt_cv_prog_compiler_c_o_CXX=no
22513   $RM -r conftest 2>/dev/null
22514   mkdir conftest
22515   cd conftest
22516   mkdir out
22517   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22518
22519   lt_compiler_flag="-o out/conftest2.$ac_objext"
22520   # Insert the option either (1) after the last *FLAGS variable, or
22521   # (2) before a word containing "conftest.", or (3) at the end.
22522   # Note that $ac_compile itself does not contain backslashes and begins
22523   # with a dollar sign (not a hyphen), so the echo should work correctly.
22524   lt_compile=`echo "$ac_compile" | $SED \
22525   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
22526   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
22527   -e 's:$: $lt_compiler_flag:'`
22528   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
22529   (eval "$lt_compile" 2>out/conftest.err)
22530   ac_status=$?
22531   cat out/conftest.err >&5
22532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533   if (exit $ac_status) && test -s out/conftest2.$ac_objext
22534   then
22535     # The compiler can only warn and ignore the option if not recognized
22536     # So say no if there are warnings
22537     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
22538     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
22539     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
22540       lt_cv_prog_compiler_c_o_CXX=yes
22541     fi
22542   fi
22543   chmod u+w . 2>&5
22544   $RM conftest*
22545   # SGI C++ compiler will create directory out/ii_files/ for
22546   # template instantiation
22547   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
22548   $RM out/* && rmdir out
22549   cd ..
22550   $RM -r conftest
22551   $RM conftest*
22552
22553fi
22554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
22555$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
22556
22557
22558
22559
22560hard_links=nottested
22561if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
22562  # do not overwrite the value of need_locks provided by the user
22563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
22564$as_echo_n "checking if we can lock with hard links... " >&6; }
22565  hard_links=yes
22566  $RM conftest*
22567  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22568  touch conftest.a
22569  ln conftest.a conftest.b 2>&5 || hard_links=no
22570  ln conftest.a conftest.b 2>/dev/null && hard_links=no
22571  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
22572$as_echo "$hard_links" >&6; }
22573  if test no = "$hard_links"; then
22574    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
22575$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
22576    need_locks=warn
22577  fi
22578else
22579  need_locks=no
22580fi
22581
22582
22583
22584    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
22585$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
22586
22587  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22588  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
22589  case $host_os in
22590  aix[4-9]*)
22591    # If we're using GNU nm, then we don't want the "-C" option.
22592    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
22593    # Without the "-l" option, or with the "-B" option, AIX nm treats
22594    # weak defined symbols like other global defined symbols, whereas
22595    # GNU nm marks them as "W".
22596    # While the 'weak' keyword is ignored in the Export File, we need
22597    # it in the Import File for the 'aix-soname' feature, so we have
22598    # to replace the "-B" option with "-P" for AIX nm.
22599    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22600      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'
22601    else
22602      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'
22603    fi
22604    ;;
22605  pw32*)
22606    export_symbols_cmds_CXX=$ltdll_cmds
22607    ;;
22608  cygwin* | mingw* | cegcc*)
22609    case $cc_basename in
22610    cl*)
22611      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
22612      ;;
22613    *)
22614      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
22615      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
22616      ;;
22617    esac
22618    ;;
22619  *)
22620    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
22621    ;;
22622  esac
22623
22624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
22625$as_echo "$ld_shlibs_CXX" >&6; }
22626test no = "$ld_shlibs_CXX" && can_build_shared=no
22627
22628with_gnu_ld_CXX=$with_gnu_ld
22629
22630
22631
22632
22633
22634
22635#
22636# Do we need to explicitly link libc?
22637#
22638case "x$archive_cmds_need_lc_CXX" in
22639x|xyes)
22640  # Assume -lc should be added
22641  archive_cmds_need_lc_CXX=yes
22642
22643  if test yes,yes = "$GCC,$enable_shared"; then
22644    case $archive_cmds_CXX in
22645    *'~'*)
22646      # FIXME: we may have to deal with multi-command sequences.
22647      ;;
22648    '$CC '*)
22649      # Test whether the compiler implicitly links with -lc since on some
22650      # systems, -lgcc has to come before -lc. If gcc already passes -lc
22651      # to ld, don't add -lc before -lgcc.
22652      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22653$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22654if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
22655  $as_echo_n "(cached) " >&6
22656else
22657  $RM conftest*
22658	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22659
22660	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22661  (eval $ac_compile) 2>&5
22662  ac_status=$?
22663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22664  test $ac_status = 0; } 2>conftest.err; then
22665	  soname=conftest
22666	  lib=conftest
22667	  libobjs=conftest.$ac_objext
22668	  deplibs=
22669	  wl=$lt_prog_compiler_wl_CXX
22670	  pic_flag=$lt_prog_compiler_pic_CXX
22671	  compiler_flags=-v
22672	  linker_flags=-v
22673	  verstring=
22674	  output_objdir=.
22675	  libname=conftest
22676	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
22677	  allow_undefined_flag_CXX=
22678	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22679  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22680  ac_status=$?
22681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22682  test $ac_status = 0; }
22683	  then
22684	    lt_cv_archive_cmds_need_lc_CXX=no
22685	  else
22686	    lt_cv_archive_cmds_need_lc_CXX=yes
22687	  fi
22688	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
22689	else
22690	  cat conftest.err 1>&5
22691	fi
22692	$RM conftest*
22693
22694fi
22695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
22696$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
22697      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
22698      ;;
22699    esac
22700  fi
22701  ;;
22702esac
22703
22704
22705
22706
22707
22708
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739
22740
22741
22742
22743
22744
22745
22746
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762
22763
22764
22765    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22766$as_echo_n "checking dynamic linker characteristics... " >&6; }
22767
22768library_names_spec=
22769libname_spec='lib$name'
22770soname_spec=
22771shrext_cmds=.so
22772postinstall_cmds=
22773postuninstall_cmds=
22774finish_cmds=
22775finish_eval=
22776shlibpath_var=
22777shlibpath_overrides_runpath=unknown
22778version_type=none
22779dynamic_linker="$host_os ld.so"
22780sys_lib_dlsearch_path_spec="/lib /usr/lib"
22781need_lib_prefix=unknown
22782hardcode_into_libs=no
22783
22784# when you set need_version to no, make sure it does not cause -set_version
22785# flags to be left without arguments
22786need_version=unknown
22787
22788
22789
22790case $host_os in
22791aix3*)
22792  version_type=linux # correct to gnu/linux during the next big refactor
22793  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
22794  shlibpath_var=LIBPATH
22795
22796  # AIX 3 has no versioning support, so we append a major version to the name.
22797  soname_spec='$libname$release$shared_ext$major'
22798  ;;
22799
22800aix[4-9]*)
22801  version_type=linux # correct to gnu/linux during the next big refactor
22802  need_lib_prefix=no
22803  need_version=no
22804  hardcode_into_libs=yes
22805  if test ia64 = "$host_cpu"; then
22806    # AIX 5 supports IA64
22807    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
22808    shlibpath_var=LD_LIBRARY_PATH
22809  else
22810    # With GCC up to 2.95.x, collect2 would create an import file
22811    # for dependence libraries.  The import file would start with
22812    # the line '#! .'.  This would cause the generated library to
22813    # depend on '.', always an invalid library.  This was fixed in
22814    # development snapshots of GCC prior to 3.0.
22815    case $host_os in
22816      aix4 | aix4.[01] | aix4.[01].*)
22817      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22818	   echo ' yes '
22819	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
22820	:
22821      else
22822	can_build_shared=no
22823      fi
22824      ;;
22825    esac
22826    # Using Import Files as archive members, it is possible to support
22827    # filename-based versioning of shared library archives on AIX. While
22828    # this would work for both with and without runtime linking, it will
22829    # prevent static linking of such archives. So we do filename-based
22830    # shared library versioning with .so extension only, which is used
22831    # when both runtime linking and shared linking is enabled.
22832    # Unfortunately, runtime linking may impact performance, so we do
22833    # not want this to be the default eventually. Also, we use the
22834    # versioned .so libs for executables only if there is the -brtl
22835    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
22836    # To allow for filename-based versioning support, we need to create
22837    # libNAME.so.V as an archive file, containing:
22838    # *) an Import File, referring to the versioned filename of the
22839    #    archive as well as the shared archive member, telling the
22840    #    bitwidth (32 or 64) of that shared object, and providing the
22841    #    list of exported symbols of that shared object, eventually
22842    #    decorated with the 'weak' keyword
22843    # *) the shared object with the F_LOADONLY flag set, to really avoid
22844    #    it being seen by the linker.
22845    # At run time we better use the real file rather than another symlink,
22846    # but for link time we create the symlink libNAME.so -> libNAME.so.V
22847
22848    case $with_aix_soname,$aix_use_runtimelinking in
22849    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
22850    # soname into executable. Probably we can add versioning support to
22851    # collect2, so additional links can be useful in future.
22852    aix,yes) # traditional libtool
22853      dynamic_linker='AIX unversionable lib.so'
22854      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22855      # instead of lib<name>.a to let people know that these are not
22856      # typical AIX shared libraries.
22857      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22858      ;;
22859    aix,no) # traditional AIX only
22860      dynamic_linker='AIX lib.a(lib.so.V)'
22861      # We preserve .a as extension for shared libraries through AIX4.2
22862      # and later when we are not doing run time linking.
22863      library_names_spec='$libname$release.a $libname.a'
22864      soname_spec='$libname$release$shared_ext$major'
22865      ;;
22866    svr4,*) # full svr4 only
22867      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
22868      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22869      # We do not specify a path in Import Files, so LIBPATH fires.
22870      shlibpath_overrides_runpath=yes
22871      ;;
22872    *,yes) # both, prefer svr4
22873      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
22874      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
22875      # unpreferred sharedlib libNAME.a needs extra handling
22876      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
22877      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
22878      # We do not specify a path in Import Files, so LIBPATH fires.
22879      shlibpath_overrides_runpath=yes
22880      ;;
22881    *,no) # both, prefer aix
22882      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
22883      library_names_spec='$libname$release.a $libname.a'
22884      soname_spec='$libname$release$shared_ext$major'
22885      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
22886      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
22887      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
22888      ;;
22889    esac
22890    shlibpath_var=LIBPATH
22891  fi
22892  ;;
22893
22894amigaos*)
22895  case $host_cpu in
22896  powerpc)
22897    # Since July 2007 AmigaOS4 officially supports .so libraries.
22898    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
22899    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22900    ;;
22901  m68k)
22902    library_names_spec='$libname.ixlibrary $libname.a'
22903    # Create ${libname}_ixlibrary.a entries in /sys/libs.
22904    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'
22905    ;;
22906  esac
22907  ;;
22908
22909beos*)
22910  library_names_spec='$libname$shared_ext'
22911  dynamic_linker="$host_os ld.so"
22912  shlibpath_var=LIBRARY_PATH
22913  ;;
22914
22915bsdi[45]*)
22916  version_type=linux # correct to gnu/linux during the next big refactor
22917  need_version=no
22918  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
22919  soname_spec='$libname$release$shared_ext$major'
22920  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22921  shlibpath_var=LD_LIBRARY_PATH
22922  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22923  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22924  # the default ld.so.conf also contains /usr/contrib/lib and
22925  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22926  # libtool to hard-code these into programs
22927  ;;
22928
22929cygwin* | mingw* | pw32* | cegcc*)
22930  version_type=windows
22931  shrext_cmds=.dll
22932  need_version=no
22933  need_lib_prefix=no
22934
22935  case $GCC,$cc_basename in
22936  yes,*)
22937    # gcc
22938    library_names_spec='$libname.dll.a'
22939    # DLL is installed to $(libdir)/../bin by postinstall_cmds
22940    postinstall_cmds='base_file=`basename \$file`~
22941      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
22942      dldir=$destdir/`dirname \$dlpath`~
22943      test -d \$dldir || mkdir -p \$dldir~
22944      $install_prog $dir/$dlname \$dldir/$dlname~
22945      chmod a+x \$dldir/$dlname~
22946      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
22947        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
22948      fi'
22949    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22950      dlpath=$dir/\$dldll~
22951       $RM \$dlpath'
22952    shlibpath_overrides_runpath=yes
22953
22954    case $host_os in
22955    cygwin*)
22956      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22957      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22958
22959      ;;
22960    mingw* | cegcc*)
22961      # MinGW DLLs use traditional 'lib' prefix
22962      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22963      ;;
22964    pw32*)
22965      # pw32 DLLs use 'pw' prefix rather than 'lib'
22966      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22967      ;;
22968    esac
22969    dynamic_linker='Win32 ld.exe'
22970    ;;
22971
22972  *,cl*)
22973    # Native MSVC
22974    libname_spec='$name'
22975    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
22976    library_names_spec='$libname.dll.lib'
22977
22978    case $build_os in
22979    mingw*)
22980      sys_lib_search_path_spec=
22981      lt_save_ifs=$IFS
22982      IFS=';'
22983      for lt_path in $LIB
22984      do
22985        IFS=$lt_save_ifs
22986        # Let DOS variable expansion print the short 8.3 style file name.
22987        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
22988        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
22989      done
22990      IFS=$lt_save_ifs
22991      # Convert to MSYS style.
22992      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
22993      ;;
22994    cygwin*)
22995      # Convert to unix form, then to dos form, then back to unix form
22996      # but this time dos style (no spaces!) so that the unix form looks
22997      # like /cygdrive/c/PROGRA~1:/cygdr...
22998      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
22999      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
23000      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23001      ;;
23002    *)
23003      sys_lib_search_path_spec=$LIB
23004      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23005        # It is most probably a Windows format PATH.
23006        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23007      else
23008        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23009      fi
23010      # FIXME: find the short name or the path components, as spaces are
23011      # common. (e.g. "Program Files" -> "PROGRA~1")
23012      ;;
23013    esac
23014
23015    # DLL is installed to $(libdir)/../bin by postinstall_cmds
23016    postinstall_cmds='base_file=`basename \$file`~
23017      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
23018      dldir=$destdir/`dirname \$dlpath`~
23019      test -d \$dldir || mkdir -p \$dldir~
23020      $install_prog $dir/$dlname \$dldir/$dlname'
23021    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23022      dlpath=$dir/\$dldll~
23023       $RM \$dlpath'
23024    shlibpath_overrides_runpath=yes
23025    dynamic_linker='Win32 link.exe'
23026    ;;
23027
23028  *)
23029    # Assume MSVC wrapper
23030    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
23031    dynamic_linker='Win32 ld.exe'
23032    ;;
23033  esac
23034  # FIXME: first we should search . and the directory the executable is in
23035  shlibpath_var=PATH
23036  ;;
23037
23038darwin* | rhapsody*)
23039  dynamic_linker="$host_os dyld"
23040  version_type=darwin
23041  need_lib_prefix=no
23042  need_version=no
23043  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
23044  soname_spec='$libname$release$major$shared_ext'
23045  shlibpath_overrides_runpath=yes
23046  shlibpath_var=DYLD_LIBRARY_PATH
23047  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23048
23049  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23050  ;;
23051
23052dgux*)
23053  version_type=linux # correct to gnu/linux during the next big refactor
23054  need_lib_prefix=no
23055  need_version=no
23056  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23057  soname_spec='$libname$release$shared_ext$major'
23058  shlibpath_var=LD_LIBRARY_PATH
23059  ;;
23060
23061freebsd* | dragonfly*)
23062  # DragonFly does not have aout.  When/if they implement a new
23063  # versioning mechanism, adjust this.
23064  if test -x /usr/bin/objformat; then
23065    objformat=`/usr/bin/objformat`
23066  else
23067    case $host_os in
23068    freebsd[23].*) objformat=aout ;;
23069    *) objformat=elf ;;
23070    esac
23071  fi
23072  version_type=freebsd-$objformat
23073  case $version_type in
23074    freebsd-elf*)
23075      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23076      soname_spec='$libname$release$shared_ext$major'
23077      need_version=no
23078      need_lib_prefix=no
23079      ;;
23080    freebsd-*)
23081      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23082      need_version=yes
23083      ;;
23084  esac
23085  shlibpath_var=LD_LIBRARY_PATH
23086  case $host_os in
23087  freebsd2.*)
23088    shlibpath_overrides_runpath=yes
23089    ;;
23090  freebsd3.[01]* | freebsdelf3.[01]*)
23091    shlibpath_overrides_runpath=yes
23092    hardcode_into_libs=yes
23093    ;;
23094  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23095  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23096    shlibpath_overrides_runpath=no
23097    hardcode_into_libs=yes
23098    ;;
23099  *) # from 4.6 on, and DragonFly
23100    shlibpath_overrides_runpath=yes
23101    hardcode_into_libs=yes
23102    ;;
23103  esac
23104  ;;
23105
23106haiku*)
23107  version_type=linux # correct to gnu/linux during the next big refactor
23108  need_lib_prefix=no
23109  need_version=no
23110  dynamic_linker="$host_os runtime_loader"
23111  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23112  soname_spec='$libname$release$shared_ext$major'
23113  shlibpath_var=LIBRARY_PATH
23114  shlibpath_overrides_runpath=no
23115  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
23116  hardcode_into_libs=yes
23117  ;;
23118
23119hpux9* | hpux10* | hpux11*)
23120  # Give a soname corresponding to the major version so that dld.sl refuses to
23121  # link against other versions.
23122  version_type=sunos
23123  need_lib_prefix=no
23124  need_version=no
23125  case $host_cpu in
23126  ia64*)
23127    shrext_cmds='.so'
23128    hardcode_into_libs=yes
23129    dynamic_linker="$host_os dld.so"
23130    shlibpath_var=LD_LIBRARY_PATH
23131    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23132    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23133    soname_spec='$libname$release$shared_ext$major'
23134    if test 32 = "$HPUX_IA64_MODE"; then
23135      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23136      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
23137    else
23138      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23139      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
23140    fi
23141    ;;
23142  hppa*64*)
23143    shrext_cmds='.sl'
23144    hardcode_into_libs=yes
23145    dynamic_linker="$host_os dld.sl"
23146    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23147    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23148    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23149    soname_spec='$libname$release$shared_ext$major'
23150    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23151    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23152    ;;
23153  *)
23154    shrext_cmds='.sl'
23155    dynamic_linker="$host_os dld.sl"
23156    shlibpath_var=SHLIB_PATH
23157    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23158    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23159    soname_spec='$libname$release$shared_ext$major'
23160    ;;
23161  esac
23162  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
23163  postinstall_cmds='chmod 555 $lib'
23164  # or fails outright, so override atomically:
23165  install_override_mode=555
23166  ;;
23167
23168interix[3-9]*)
23169  version_type=linux # correct to gnu/linux during the next big refactor
23170  need_lib_prefix=no
23171  need_version=no
23172  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23173  soname_spec='$libname$release$shared_ext$major'
23174  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23175  shlibpath_var=LD_LIBRARY_PATH
23176  shlibpath_overrides_runpath=no
23177  hardcode_into_libs=yes
23178  ;;
23179
23180irix5* | irix6* | nonstopux*)
23181  case $host_os in
23182    nonstopux*) version_type=nonstopux ;;
23183    *)
23184	if test yes = "$lt_cv_prog_gnu_ld"; then
23185		version_type=linux # correct to gnu/linux during the next big refactor
23186	else
23187		version_type=irix
23188	fi ;;
23189  esac
23190  need_lib_prefix=no
23191  need_version=no
23192  soname_spec='$libname$release$shared_ext$major'
23193  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
23194  case $host_os in
23195  irix5* | nonstopux*)
23196    libsuff= shlibsuff=
23197    ;;
23198  *)
23199    case $LD in # libtool.m4 will add one of these switches to LD
23200    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23201      libsuff= shlibsuff= libmagic=32-bit;;
23202    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23203      libsuff=32 shlibsuff=N32 libmagic=N32;;
23204    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23205      libsuff=64 shlibsuff=64 libmagic=64-bit;;
23206    *) libsuff= shlibsuff= libmagic=never-match;;
23207    esac
23208    ;;
23209  esac
23210  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23211  shlibpath_overrides_runpath=no
23212  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
23213  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
23214  hardcode_into_libs=yes
23215  ;;
23216
23217# No shared lib support for Linux oldld, aout, or coff.
23218linux*oldld* | linux*aout* | linux*coff*)
23219  dynamic_linker=no
23220  ;;
23221
23222linux*android*)
23223  version_type=none # Android doesn't support versioned libraries.
23224  need_lib_prefix=no
23225  need_version=no
23226  library_names_spec='$libname$release$shared_ext'
23227  soname_spec='$libname$release$shared_ext'
23228  finish_cmds=
23229  shlibpath_var=LD_LIBRARY_PATH
23230  shlibpath_overrides_runpath=yes
23231
23232  # This implies no fast_install, which is unacceptable.
23233  # Some rework will be needed to allow for fast_install
23234  # before this can be enabled.
23235  hardcode_into_libs=yes
23236
23237  dynamic_linker='Android linker'
23238  # Don't embed -rpath directories since the linker doesn't support them.
23239  hardcode_libdir_flag_spec_CXX='-L$libdir'
23240  ;;
23241
23242# This must be glibc/ELF.
23243linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
23244  version_type=linux # correct to gnu/linux during the next big refactor
23245  need_lib_prefix=no
23246  need_version=no
23247  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23248  soname_spec='$libname$release$shared_ext$major'
23249  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23250  shlibpath_var=LD_LIBRARY_PATH
23251  shlibpath_overrides_runpath=no
23252
23253  # Some binutils ld are patched to set DT_RUNPATH
23254  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
23255  $as_echo_n "(cached) " >&6
23256else
23257  lt_cv_shlibpath_overrides_runpath=no
23258    save_LDFLAGS=$LDFLAGS
23259    save_libdir=$libdir
23260    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
23261	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
23262    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263/* end confdefs.h.  */
23264
23265int
23266main ()
23267{
23268
23269  ;
23270  return 0;
23271}
23272_ACEOF
23273if ac_fn_cxx_try_link "$LINENO"; then :
23274  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23275  lt_cv_shlibpath_overrides_runpath=yes
23276fi
23277fi
23278rm -f core conftest.err conftest.$ac_objext \
23279    conftest$ac_exeext conftest.$ac_ext
23280    LDFLAGS=$save_LDFLAGS
23281    libdir=$save_libdir
23282
23283fi
23284
23285  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
23286
23287  # This implies no fast_install, which is unacceptable.
23288  # Some rework will be needed to allow for fast_install
23289  # before this can be enabled.
23290  hardcode_into_libs=yes
23291
23292  # Add ABI-specific directories to the system library path.
23293  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
23294
23295  # Ideally, we could use ldconfig to report *all* directores which are
23296  # searched for libraries, however this is still not possible.  Aside from not
23297  # being certain /sbin/ldconfig is available, command
23298  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
23299  # even though it is searched at run-time.  Try to do the best guess by
23300  # appending ld.so.conf contents (and includes) to the search path.
23301  if test -f /etc/ld.so.conf; then
23302    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' ' '`
23303    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
23304  fi
23305
23306  # We used to test for /lib/ld.so.1 and disable shared libraries on
23307  # powerpc, because MkLinux only supported shared libraries with the
23308  # GNU dynamic linker.  Since this was broken with cross compilers,
23309  # most powerpc-linux boxes support dynamic linking these days and
23310  # people can always --disable-shared, the test was removed, and we
23311  # assume the GNU/Linux dynamic linker is in use.
23312  dynamic_linker='GNU/Linux ld.so'
23313  ;;
23314
23315netbsd*)
23316  version_type=sunos
23317  need_lib_prefix=no
23318  need_version=no
23319  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23320    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23321    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23322    dynamic_linker='NetBSD (a.out) ld.so'
23323  else
23324    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23325    soname_spec='$libname$release$shared_ext$major'
23326    dynamic_linker='NetBSD ld.elf_so'
23327  fi
23328  shlibpath_var=LD_LIBRARY_PATH
23329  shlibpath_overrides_runpath=yes
23330  hardcode_into_libs=yes
23331  ;;
23332
23333newsos6)
23334  version_type=linux # correct to gnu/linux during the next big refactor
23335  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23336  shlibpath_var=LD_LIBRARY_PATH
23337  shlibpath_overrides_runpath=yes
23338  ;;
23339
23340*nto* | *qnx*)
23341  version_type=qnx
23342  need_lib_prefix=no
23343  need_version=no
23344  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23345  soname_spec='$libname$release$shared_ext$major'
23346  shlibpath_var=LD_LIBRARY_PATH
23347  shlibpath_overrides_runpath=no
23348  hardcode_into_libs=yes
23349  dynamic_linker='ldqnx.so'
23350  ;;
23351
23352openbsd* | bitrig*)
23353  version_type=sunos
23354  sys_lib_dlsearch_path_spec=/usr/lib
23355  need_lib_prefix=no
23356  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
23357    need_version=no
23358  else
23359    need_version=yes
23360  fi
23361  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23362  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23363  shlibpath_var=LD_LIBRARY_PATH
23364  shlibpath_overrides_runpath=yes
23365  ;;
23366
23367os2*)
23368  libname_spec='$name'
23369  version_type=windows
23370  shrext_cmds=.dll
23371  need_version=no
23372  need_lib_prefix=no
23373  # OS/2 can only load a DLL with a base name of 8 characters or less.
23374  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
23375    v=$($ECHO $release$versuffix | tr -d .-);
23376    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
23377    $ECHO $n$v`$shared_ext'
23378  library_names_spec='${libname}_dll.$libext'
23379  dynamic_linker='OS/2 ld.exe'
23380  shlibpath_var=BEGINLIBPATH
23381  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
23382  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23383  postinstall_cmds='base_file=`basename \$file`~
23384    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
23385    dldir=$destdir/`dirname \$dlpath`~
23386    test -d \$dldir || mkdir -p \$dldir~
23387    $install_prog $dir/$dlname \$dldir/$dlname~
23388    chmod a+x \$dldir/$dlname~
23389    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23390      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23391    fi'
23392  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
23393    dlpath=$dir/\$dldll~
23394    $RM \$dlpath'
23395  ;;
23396
23397osf3* | osf4* | osf5*)
23398  version_type=osf
23399  need_lib_prefix=no
23400  need_version=no
23401  soname_spec='$libname$release$shared_ext$major'
23402  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23403  shlibpath_var=LD_LIBRARY_PATH
23404  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23405  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23406  ;;
23407
23408rdos*)
23409  dynamic_linker=no
23410  ;;
23411
23412solaris*)
23413  version_type=linux # correct to gnu/linux during the next big refactor
23414  need_lib_prefix=no
23415  need_version=no
23416  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23417  soname_spec='$libname$release$shared_ext$major'
23418  shlibpath_var=LD_LIBRARY_PATH
23419  shlibpath_overrides_runpath=yes
23420  hardcode_into_libs=yes
23421  # ldd complains unless libraries are executable
23422  postinstall_cmds='chmod +x $lib'
23423  ;;
23424
23425sunos4*)
23426  version_type=sunos
23427  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
23428  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23429  shlibpath_var=LD_LIBRARY_PATH
23430  shlibpath_overrides_runpath=yes
23431  if test yes = "$with_gnu_ld"; then
23432    need_lib_prefix=no
23433  fi
23434  need_version=yes
23435  ;;
23436
23437sysv4 | sysv4.3*)
23438  version_type=linux # correct to gnu/linux during the next big refactor
23439  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23440  soname_spec='$libname$release$shared_ext$major'
23441  shlibpath_var=LD_LIBRARY_PATH
23442  case $host_vendor in
23443    sni)
23444      shlibpath_overrides_runpath=no
23445      need_lib_prefix=no
23446      runpath_var=LD_RUN_PATH
23447      ;;
23448    siemens)
23449      need_lib_prefix=no
23450      ;;
23451    motorola)
23452      need_lib_prefix=no
23453      need_version=no
23454      shlibpath_overrides_runpath=no
23455      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23456      ;;
23457  esac
23458  ;;
23459
23460sysv4*MP*)
23461  if test -d /usr/nec; then
23462    version_type=linux # correct to gnu/linux during the next big refactor
23463    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
23464    soname_spec='$libname$shared_ext.$major'
23465    shlibpath_var=LD_LIBRARY_PATH
23466  fi
23467  ;;
23468
23469sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23470  version_type=sco
23471  need_lib_prefix=no
23472  need_version=no
23473  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
23474  soname_spec='$libname$release$shared_ext$major'
23475  shlibpath_var=LD_LIBRARY_PATH
23476  shlibpath_overrides_runpath=yes
23477  hardcode_into_libs=yes
23478  if test yes = "$with_gnu_ld"; then
23479    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23480  else
23481    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23482    case $host_os in
23483      sco3.2v5*)
23484        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23485	;;
23486    esac
23487  fi
23488  sys_lib_dlsearch_path_spec='/usr/lib'
23489  ;;
23490
23491tpf*)
23492  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
23493  version_type=linux # correct to gnu/linux during the next big refactor
23494  need_lib_prefix=no
23495  need_version=no
23496  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23497  shlibpath_var=LD_LIBRARY_PATH
23498  shlibpath_overrides_runpath=no
23499  hardcode_into_libs=yes
23500  ;;
23501
23502uts4*)
23503  version_type=linux # correct to gnu/linux during the next big refactor
23504  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
23505  soname_spec='$libname$release$shared_ext$major'
23506  shlibpath_var=LD_LIBRARY_PATH
23507  ;;
23508
23509*)
23510  dynamic_linker=no
23511  ;;
23512esac
23513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23514$as_echo "$dynamic_linker" >&6; }
23515test no = "$dynamic_linker" && can_build_shared=no
23516
23517variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23518if test yes = "$GCC"; then
23519  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23520fi
23521
23522if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
23523  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
23524fi
23525
23526if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
23527  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
23528fi
23529
23530# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
23531configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
23532
23533# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
23534func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
23535
23536# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
23537configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
23538
23539
23540
23541
23542
23543
23544
23545
23546
23547
23548
23549
23550
23551
23552
23553
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565
23566
23567
23568
23569
23570
23571
23572
23573
23574
23575
23576
23577
23578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23579$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23580hardcode_action_CXX=
23581if test -n "$hardcode_libdir_flag_spec_CXX" ||
23582   test -n "$runpath_var_CXX" ||
23583   test yes = "$hardcode_automatic_CXX"; then
23584
23585  # We can hardcode non-existent directories.
23586  if test no != "$hardcode_direct_CXX" &&
23587     # If the only mechanism to avoid hardcoding is shlibpath_var, we
23588     # have to relink, otherwise we might link with an installed library
23589     # when we should be linking with a yet-to-be-installed one
23590     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
23591     test no != "$hardcode_minus_L_CXX"; then
23592    # Linking always hardcodes the temporary library directory.
23593    hardcode_action_CXX=relink
23594  else
23595    # We can link without hardcoding, and we can hardcode nonexisting dirs.
23596    hardcode_action_CXX=immediate
23597  fi
23598else
23599  # We cannot hardcode anything, or else we can only hardcode existing
23600  # directories.
23601  hardcode_action_CXX=unsupported
23602fi
23603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
23604$as_echo "$hardcode_action_CXX" >&6; }
23605
23606if test relink = "$hardcode_action_CXX" ||
23607   test yes = "$inherit_rpath_CXX"; then
23608  # Fast installation is not supported
23609  enable_fast_install=no
23610elif test yes = "$shlibpath_overrides_runpath" ||
23611     test no = "$enable_shared"; then
23612  # Fast installation is not necessary
23613  enable_fast_install=needless
23614fi
23615
23616
23617
23618
23619
23620
23621
23622  fi # test -n "$compiler"
23623
23624  CC=$lt_save_CC
23625  CFLAGS=$lt_save_CFLAGS
23626  LDCXX=$LD
23627  LD=$lt_save_LD
23628  GCC=$lt_save_GCC
23629  with_gnu_ld=$lt_save_with_gnu_ld
23630  lt_cv_path_LDCXX=$lt_cv_path_LD
23631  lt_cv_path_LD=$lt_save_path_LD
23632  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
23633  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
23634fi # test yes != "$_lt_caught_CXX_error"
23635
23636ac_ext=c
23637ac_cpp='$CPP $CPPFLAGS'
23638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23640ac_compiler_gnu=$ac_cv_c_compiler_gnu
23641
23642
23643
23644
23645
23646
23647
23648
23649
23650
23651
23652
23653
23654
23655
23656        ac_config_commands="$ac_config_commands libtool"
23657
23658
23659
23660
23661# Only expand once:
23662
23663
23664
23665
23666
23667# Check to see if building shared libraries
23668libtool_build_shared_libs='no'
23669if test "$enable_shared" = 'yes'; then
23670    libtool_build_shared_libs='yes'
23671fi
23672
23673# Check to see if building static libraries
23674libtool_build_static_libs='no'
23675if test "$enable_static" = 'yes'; then
23676    libtool_build_static_libs='yes'
23677fi
23678
23679 if test "${libtool_build_shared_libs}" = 'yes'; then
23680  WITH_SHARED_LIBS_TRUE=
23681  WITH_SHARED_LIBS_FALSE='#'
23682else
23683  WITH_SHARED_LIBS_TRUE='#'
23684  WITH_SHARED_LIBS_FALSE=
23685fi
23686
23687#
23688# Enable support for building loadable modules
23689#
23690build_modules='no'
23691
23692# Check whether --with-modules was given.
23693if test "${with_modules+set}" = set; then :
23694  withval=$with_modules; with_modules=$withval
23695else
23696  with_modules='no'
23697fi
23698
23699
23700# Only allow building loadable modules if we are building shared libraries
23701if test "$with_modules" != 'no' ; then
23702    if test "$libtool_build_shared_libs" = 'no'; then
23703        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
23704$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
23705    build_modules='no'
23706  else
23707    build_modules='yes'
23708  fi
23709fi
23710if test "$build_modules" != 'no' ; then
23711
23712$as_echo "#define BUILD_MODULES 1" >>confdefs.h
23713
23714    MAGICK_FEATURES="$MAGICK_FEATURES Modules"
23715fi
23716 if test "$build_modules" != 'no'; then
23717  WITH_MODULES_TRUE=
23718  WITH_MODULES_FALSE='#'
23719else
23720  WITH_MODULES_TRUE='#'
23721  WITH_MODULES_FALSE=
23722fi
23723
23724
23725# Enable build using delegate libraries built in subdirectories rather than installed
23726# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
23727# Check whether --enable-delegate-build was given.
23728if test "${enable_delegate_build+set}" = set; then :
23729  enableval=$enable_delegate_build; enable_delegate_build=$enableval
23730else
23731  enable_delegate_build='no'
23732fi
23733
23734
23735# Check whether --enable-deprecated was given.
23736if test "${enable_deprecated+set}" = set; then :
23737  enableval=$enable_deprecated; enable_deprecated=$enableval
23738else
23739  enable_deprecated='no'
23740fi
23741
23742
23743if test "$enable_deprecated" = 'yes'; then
23744
23745$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
23746
23747else
23748  DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
23749fi
23750
23751# Build a version of ImageMagick which operates uninstalled.
23752# Used to build distributions located via MAGICK_HOME / executable path
23753# Check whether --enable-installed was given.
23754if test "${enable_installed+set}" = set; then :
23755  enableval=$enable_installed; enable_installed=$enableval
23756else
23757  enable_installed='yes'
23758fi
23759
23760
23761if test "$enable_installed" = 'yes'; then
23762
23763$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
23764
23765else
23766    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
23767fi
23768
23769# Permit enciphering and deciphering image pixels.
23770# Check whether --enable-cipher was given.
23771if test "${enable_cipher+set}" = set; then :
23772  enableval=$enable_cipher; enable_cipher=$enableval
23773else
23774  enable_cipher='yes'
23775fi
23776
23777
23778if test "$enable_cipher" = 'yes'; then
23779
23780$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
23781
23782    MAGICK_FEATURES="Cipher $MAGICK_FEATURES"
23783fi
23784
23785# Build a zero-configuration version of ImageMagick.
23786# Check whether --enable-zero-configuration was given.
23787if test "${enable_zero_configuration+set}" = set; then :
23788  enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
23789else
23790  enable_zero_configuration='no'
23791fi
23792
23793
23794if test "$enable_zero_configuration" = 'yes'; then
23795
23796$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
23797
23798    MAGICK_FEATURES="Zero-configuration $MAGICK_FEATURES"
23799fi
23800
23801# Build a high dynamic range version of ImageMagick.
23802# Check whether --enable-hdri was given.
23803if test "${enable_hdri+set}" = set; then :
23804  enableval=$enable_hdri; enable_hdri=$enableval
23805else
23806  enable_hdri='yes'
23807fi
23808
23809
23810MAGICK_HDRI=""
23811if test "$enable_hdri" = 'yes'; then
23812    MAGICK_HDRI="HDRI"
23813    magick_hdri_enable='1';
23814    MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
23815else
23816    magick_hdri_enable='0'
23817fi
23818
23819cat >>confdefs.h <<_ACEOF
23820#define HDRI_ENABLE_OBSOLETE_IN_H $magick_hdri_enable
23821_ACEOF
23822
23823MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
23824CFLAGS="$CFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
23825CPPFLAGS="$CPPFLAGS -DMAGICKCORE_HDRI_ENABLE=$magick_hdri_enable"
23826
23827# Enable pipes (|) in filenames.
23828# Check whether --enable-pipes was given.
23829if test "${enable_pipes+set}" = set; then :
23830  enableval=$enable_pipes; enable_pipes=$enableval
23831else
23832  enable_pipes='no'
23833fi
23834
23835
23836if test "$enable_pipes" = 'yes'; then
23837
23838$as_echo "#define PIPES_SUPPORT 1" >>confdefs.h
23839
23840    MAGICK_FEATURES="Pipes $MAGICK_FEATURES"
23841fi
23842
23843# Build a version of ImageMagick with assert statements.
23844# Check whether --enable-assert was given.
23845if test "${enable_assert+set}" = set; then :
23846  enableval=$enable_assert; enable_assert=$enableval
23847else
23848  enable_assert='yes'
23849fi
23850
23851
23852if test "$enable_assert" = 'no'; then
23853
23854$as_echo "#define NDEBUG 1" >>confdefs.h
23855
23856fi
23857
23858# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
23859
23860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
23861$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
23862    # Check whether --enable-maintainer-mode was given.
23863if test "${enable_maintainer_mode+set}" = set; then :
23864  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
23865else
23866  USE_MAINTAINER_MODE=no
23867fi
23868
23869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
23870$as_echo "$USE_MAINTAINER_MODE" >&6; }
23871   if test $USE_MAINTAINER_MODE = yes; then
23872  MAINTAINER_MODE_TRUE=
23873  MAINTAINER_MODE_FALSE='#'
23874else
23875  MAINTAINER_MODE_TRUE='#'
23876  MAINTAINER_MODE_FALSE=
23877fi
23878
23879  MAINT=$MAINTAINER_MODE_TRUE
23880
23881
23882
23883# Enable hugepages support
23884# Check whether --enable-hugepages was given.
23885if test "${enable_hugepages+set}" = set; then :
23886  enableval=$enable_hugepages; enable_hugepages=$enableval
23887else
23888  enable_hugepages='no'
23889fi
23890
23891
23892# Enable ccmalloc memory debugging support
23893# Check whether --enable-ccmalloc was given.
23894if test "${enable_ccmalloc+set}" = set; then :
23895  enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
23896else
23897  enable_ccmalloc='no'
23898fi
23899
23900
23901# Enable Electric Fence memory debugging support
23902# Check whether --enable-efence was given.
23903if test "${enable_efence+set}" = set; then :
23904  enableval=$enable_efence; enable_efence=$enableval
23905else
23906  enable_efence='no'
23907fi
23908
23909
23910# Enable prof-based profiling support
23911# Check whether --enable-prof was given.
23912if test "${enable_prof+set}" = set; then :
23913  enableval=$enable_prof; enable_prof=$enableval
23914else
23915  enable_prof='no'
23916fi
23917
23918
23919# Enable gprof-based profiling support
23920# Check whether --enable-gprof was given.
23921if test "${enable_gprof+set}" = set; then :
23922  enableval=$enable_gprof; enable_gprof=$enableval
23923else
23924  enable_gprof='no'
23925fi
23926
23927
23928# Enable gcov-based profiling support
23929# Check whether --enable-gcov was given.
23930if test "${enable_gcov+set}" = set; then :
23931  enableval=$enable_gcov; enable_gcov=$enableval
23932else
23933  enable_gcov='no'
23934fi
23935
23936
23937enable_profiling='no'
23938if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
23939    enable_profiling='yes'
23940    if test "$libtool_build_shared_libs" = 'yes'; then
23941        echo "Warning: Can not profile code using shared libraries"
23942    fi
23943fi
23944
23945# Magick API method prefix
23946
23947# Check whether --with-method-prefix was given.
23948if test "${with_method_prefix+set}" = set; then :
23949  withval=$with_method_prefix; with_method_prefix=$withval
23950else
23951  with_method_prefix='no'
23952fi
23953
23954
23955if test "$with_method_prefix" != 'no'; then
23956
23957cat >>confdefs.h <<_ACEOF
23958#define NAMESPACE_PREFIX $with_method_prefix
23959_ACEOF
23960
23961    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
23962fi
23963
23964# Enable legacy support (default no)
23965# Check whether --enable-legacy-support was given.
23966if test "${enable_legacy_support+set}" = set; then :
23967  enableval=$enable_legacy_support; with_legacy_support=$enableval
23968else
23969  with_legacy_support='no'
23970fi
23971
23972 if test "$with_legacy_support" != 'no'; then
23973  LEGACY_SUPPORT_TRUE=
23974  LEGACY_SUPPORT_FALSE='#'
23975else
23976  LEGACY_SUPPORT_TRUE='#'
23977  LEGACY_SUPPORT_FALSE=
23978fi
23979
23980
23981# Number of bits in a Quantum
23982
23983# Check whether --with-quantum-depth was given.
23984if test "${with_quantum_depth+set}" = set; then :
23985  withval=$with_quantum_depth; with_quantum_depth=$withval
23986else
23987  with_quantum_depth=16
23988fi
23989
23990
23991if test "$with_quantum_depth" != '8'; then
23992    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
23993fi
23994
23995case "${with_quantum_depth}" in
23996    8 ) ;;
23997    16 ) ;;
23998    32 ) ;;
23999    64 ) ;;
24000    * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
24001esac
24002QUANTUM_DEPTH="$with_quantum_depth"
24003
24004cat >>confdefs.h <<_ACEOF
24005#define QUANTUM_DEPTH_OBSOLETE_IN_H $QUANTUM_DEPTH
24006_ACEOF
24007
24008MAGICK_PCFLAGS="$MAGICK_PCFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
24009CFLAGS="$CFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
24010CPPFLAGS="$CPPFLAGS -DMAGICKCORE_QUANTUM_DEPTH=$QUANTUM_DEPTH"
24011
24012# define a lib suffix for abi purpose
24013MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}"
24014if test "$enable_hdri" = 'yes'; then
24015  MAGICK_ABI_SUFFIX="Q${QUANTUM_DEPTH}${MAGICK_HDRI}"
24016fi
24017
24018
24019# Set pixel cache threshold
24020
24021# Check whether --with-cache was given.
24022if test "${with_cache+set}" = set; then :
24023  withval=$with_cache; with_cache=$withval
24024else
24025  with_cache=''
24026fi
24027
24028
24029if test "$with_cache" != ''; then
24030
24031cat >>confdefs.h <<_ACEOF
24032#define PixelCacheThreshold $with_cache
24033_ACEOF
24034
24035    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
24036fi
24037
24038# Disable/Enable support for full delegate paths
24039
24040# Check whether --with-frozenpaths was given.
24041if test "${with_frozenpaths+set}" = set; then :
24042  withval=$with_frozenpaths; with_frozenpaths=$withval
24043else
24044  with_frozenpaths='no'
24045fi
24046
24047
24048# Enable build/install of Magick++
24049
24050# Check whether --with-magick-plus-plus was given.
24051if test "${with_magick_plus_plus+set}" = set; then :
24052  withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
24053else
24054  with_magick_plus_plus='yes'
24055fi
24056
24057
24058# Encode the this name into the shared library.
24059
24060# Check whether --with-package-release-name was given.
24061if test "${with_package_release_name+set}" = set; then :
24062  withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
24063fi
24064
24065
24066
24067# Disable build/install of PerlMagick.
24068
24069# Check whether --with-perl was given.
24070if test "${with_perl+set}" = set; then :
24071  withval=$with_perl; with_perl=$withval
24072else
24073  with_perl='no'
24074fi
24075
24076
24077# Options to pass when configuring PerlMagick
24078
24079# Check whether --with-perl-options was given.
24080if test "${with_perl_options+set}" = set; then :
24081  withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
24082fi
24083
24084
24085
24086# Enable jemalloc, object-caching memory allocation library.
24087
24088# Check whether --with-jemalloc was given.
24089if test "${with_jemalloc+set}" = set; then :
24090  withval=$with_jemalloc; with_jemalloc=$withval
24091else
24092  with_jemalloc='no'
24093fi
24094
24095if test "$with_jemalloc" != 'yes' ; then
24096    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jemalloc=$with_jemalloc "
24097fi
24098
24099# Enable umem, object-caching memory allocation library.
24100
24101# Check whether --with-umem was given.
24102if test "${with_umem+set}" = set; then :
24103  withval=$with_umem; with_umem=$withval
24104else
24105  with_umem='no'
24106fi
24107
24108if test "$with_umem" != 'yes' ; then
24109    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
24110fi
24111
24112#
24113# Specify path to shared libstdc++ if not in normal location
24114#
24115
24116# Check whether --with-libstdc was given.
24117if test "${with_libstdc+set}" = set; then :
24118  withval=$with_libstdc; with_libstdc=$withval
24119else
24120  with_libstdc=''
24121fi
24122
24123
24124if test "$with_libstdc" != ''; then
24125    if test -d "$with_libstdc"; then
24126        LIBSTDCLDFLAGS="-L$with_libstdc"
24127    fi
24128fi
24129
24130
24131# Does gcc required -traditional?
24132if test $ac_cv_c_compiler_gnu = yes; then
24133    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
24134$as_echo_n "checking whether $CC needs -traditional... " >&6; }
24135if ${ac_cv_prog_gcc_traditional+:} false; then :
24136  $as_echo_n "(cached) " >&6
24137else
24138    ac_pattern="Autoconf.*'x'"
24139  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24140/* end confdefs.h.  */
24141#include <sgtty.h>
24142Autoconf TIOCGETP
24143_ACEOF
24144if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24145  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
24146  ac_cv_prog_gcc_traditional=yes
24147else
24148  ac_cv_prog_gcc_traditional=no
24149fi
24150rm -f conftest*
24151
24152
24153  if test $ac_cv_prog_gcc_traditional = no; then
24154    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155/* end confdefs.h.  */
24156#include <termio.h>
24157Autoconf TCGETA
24158_ACEOF
24159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24160  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
24161  ac_cv_prog_gcc_traditional=yes
24162fi
24163rm -f conftest*
24164
24165  fi
24166fi
24167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
24168$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
24169  if test $ac_cv_prog_gcc_traditional = yes; then
24170    CC="$CC -traditional"
24171  fi
24172fi
24173
24174
24175########
24176#
24177# Set defines required to build DLLs and modules using MinGW
24178#
24179########
24180# These options are set for multi-thread DLL module build
24181#  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
24182#  module:              _DLL
24183#  executable/Magick++: _DLL _MAGICKMOD_
24184MODULE_EXTRA_CPPFLAGS=''
24185LIBRARY_EXTRA_CPPFLAGS=''
24186if test "${native_win32_build}" = 'yes'; then
24187    if test "${libtool_build_shared_libs}" = 'yes'; then
24188        CPPFLAGS="$CPPFLAGS -D_DLL"
24189        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
24190        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
24191        LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
24192        if test "$build_modules" = 'yes'; then
24193            LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
24194        else
24195            MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
24196        fi
24197    else
24198        CPPFLAGS="$CPPFLAGS -D_LIB"
24199        MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
24200        MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
24201    fi
24202    if test "$with_threads" = 'yes'; then
24203         CPPFLAGS="$CPPFLAGS -D_MT"
24204         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
24205         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
24206    fi
24207fi
24208
24209
24210
24211# Check standard headers
24212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
24213$as_echo_n "checking for ANSI C header files... " >&6; }
24214if ${ac_cv_header_stdc+:} false; then :
24215  $as_echo_n "(cached) " >&6
24216else
24217  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24218/* end confdefs.h.  */
24219#include <stdlib.h>
24220#include <stdarg.h>
24221#include <string.h>
24222#include <float.h>
24223
24224int
24225main ()
24226{
24227
24228  ;
24229  return 0;
24230}
24231_ACEOF
24232if ac_fn_c_try_compile "$LINENO"; then :
24233  ac_cv_header_stdc=yes
24234else
24235  ac_cv_header_stdc=no
24236fi
24237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24238
24239if test $ac_cv_header_stdc = yes; then
24240  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24241  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242/* end confdefs.h.  */
24243#include <string.h>
24244
24245_ACEOF
24246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24247  $EGREP "memchr" >/dev/null 2>&1; then :
24248
24249else
24250  ac_cv_header_stdc=no
24251fi
24252rm -f conftest*
24253
24254fi
24255
24256if test $ac_cv_header_stdc = yes; then
24257  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24259/* end confdefs.h.  */
24260#include <stdlib.h>
24261
24262_ACEOF
24263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24264  $EGREP "free" >/dev/null 2>&1; then :
24265
24266else
24267  ac_cv_header_stdc=no
24268fi
24269rm -f conftest*
24270
24271fi
24272
24273if test $ac_cv_header_stdc = yes; then
24274  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24275  if test "$cross_compiling" = yes; then :
24276  :
24277else
24278  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24279/* end confdefs.h.  */
24280#include <ctype.h>
24281#include <stdlib.h>
24282#if ((' ' & 0x0FF) == 0x020)
24283# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24284# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24285#else
24286# define ISLOWER(c) \
24287		   (('a' <= (c) && (c) <= 'i') \
24288		     || ('j' <= (c) && (c) <= 'r') \
24289		     || ('s' <= (c) && (c) <= 'z'))
24290# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24291#endif
24292
24293#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24294int
24295main ()
24296{
24297  int i;
24298  for (i = 0; i < 256; i++)
24299    if (XOR (islower (i), ISLOWER (i))
24300	|| toupper (i) != TOUPPER (i))
24301      return 2;
24302  return 0;
24303}
24304_ACEOF
24305if ac_fn_c_try_run "$LINENO"; then :
24306
24307else
24308  ac_cv_header_stdc=no
24309fi
24310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24311  conftest.$ac_objext conftest.beam conftest.$ac_ext
24312fi
24313
24314fi
24315fi
24316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
24317$as_echo "$ac_cv_header_stdc" >&6; }
24318if test $ac_cv_header_stdc = yes; then
24319
24320$as_echo "#define STDC_HEADERS 1" >>confdefs.h
24321
24322fi
24323
24324if ! test x"$ac_cv_header_stdc" = x"yes"; then
24325    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
24326    header files.  Compilation cannot proceed.  Please install the ANSI C
24327    headers and rerun this script." >&5
24328$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
24329    header files.  Compilation cannot proceed.  Please install the ANSI C
24330    headers and rerun this script." >&2;};
24331fi
24332
24333  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
24334$as_echo_n "checking whether to enable assertions... " >&6; }
24335  # Check whether --enable-assert was given.
24336if test "${enable_assert+set}" = set; then :
24337  enableval=$enable_assert; ac_enable_assert=$enableval
24338     if       test "x$enableval" = xno; then :
24339
24340$as_echo "#define NDEBUG 1" >>confdefs.h
24341
24342elif test "x$enableval" != xyes; then :
24343  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
24344$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
24345	ac_enable_assert=yes
24346fi
24347else
24348  ac_enable_assert=yes
24349fi
24350
24351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
24352$as_echo "$ac_enable_assert" >&6; }
24353
24354ac_header_dirent=no
24355for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
24356  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
24357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
24358$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
24359if eval \${$as_ac_Header+:} false; then :
24360  $as_echo_n "(cached) " >&6
24361else
24362  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24363/* end confdefs.h.  */
24364#include <sys/types.h>
24365#include <$ac_hdr>
24366
24367int
24368main ()
24369{
24370if ((DIR *) 0)
24371return 0;
24372  ;
24373  return 0;
24374}
24375_ACEOF
24376if ac_fn_c_try_compile "$LINENO"; then :
24377  eval "$as_ac_Header=yes"
24378else
24379  eval "$as_ac_Header=no"
24380fi
24381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24382fi
24383eval ac_res=\$$as_ac_Header
24384	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24385$as_echo "$ac_res" >&6; }
24386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24387  cat >>confdefs.h <<_ACEOF
24388#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
24389_ACEOF
24390
24391ac_header_dirent=$ac_hdr; break
24392fi
24393
24394done
24395# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
24396if test $ac_header_dirent = dirent.h; then
24397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
24398$as_echo_n "checking for library containing opendir... " >&6; }
24399if ${ac_cv_search_opendir+:} false; then :
24400  $as_echo_n "(cached) " >&6
24401else
24402  ac_func_search_save_LIBS=$LIBS
24403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24404/* end confdefs.h.  */
24405
24406/* Override any GCC internal prototype to avoid an error.
24407   Use char because int might match the return type of a GCC
24408   builtin and then its argument prototype would still apply.  */
24409#ifdef __cplusplus
24410extern "C"
24411#endif
24412char opendir ();
24413int
24414main ()
24415{
24416return opendir ();
24417  ;
24418  return 0;
24419}
24420_ACEOF
24421for ac_lib in '' dir; do
24422  if test -z "$ac_lib"; then
24423    ac_res="none required"
24424  else
24425    ac_res=-l$ac_lib
24426    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24427  fi
24428  if ac_fn_c_try_link "$LINENO"; then :
24429  ac_cv_search_opendir=$ac_res
24430fi
24431rm -f core conftest.err conftest.$ac_objext \
24432    conftest$ac_exeext
24433  if ${ac_cv_search_opendir+:} false; then :
24434  break
24435fi
24436done
24437if ${ac_cv_search_opendir+:} false; then :
24438
24439else
24440  ac_cv_search_opendir=no
24441fi
24442rm conftest.$ac_ext
24443LIBS=$ac_func_search_save_LIBS
24444fi
24445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
24446$as_echo "$ac_cv_search_opendir" >&6; }
24447ac_res=$ac_cv_search_opendir
24448if test "$ac_res" != no; then :
24449  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24450
24451fi
24452
24453else
24454  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
24455$as_echo_n "checking for library containing opendir... " >&6; }
24456if ${ac_cv_search_opendir+:} false; then :
24457  $as_echo_n "(cached) " >&6
24458else
24459  ac_func_search_save_LIBS=$LIBS
24460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24461/* end confdefs.h.  */
24462
24463/* Override any GCC internal prototype to avoid an error.
24464   Use char because int might match the return type of a GCC
24465   builtin and then its argument prototype would still apply.  */
24466#ifdef __cplusplus
24467extern "C"
24468#endif
24469char opendir ();
24470int
24471main ()
24472{
24473return opendir ();
24474  ;
24475  return 0;
24476}
24477_ACEOF
24478for ac_lib in '' x; do
24479  if test -z "$ac_lib"; then
24480    ac_res="none required"
24481  else
24482    ac_res=-l$ac_lib
24483    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
24484  fi
24485  if ac_fn_c_try_link "$LINENO"; then :
24486  ac_cv_search_opendir=$ac_res
24487fi
24488rm -f core conftest.err conftest.$ac_objext \
24489    conftest$ac_exeext
24490  if ${ac_cv_search_opendir+:} false; then :
24491  break
24492fi
24493done
24494if ${ac_cv_search_opendir+:} false; then :
24495
24496else
24497  ac_cv_search_opendir=no
24498fi
24499rm conftest.$ac_ext
24500LIBS=$ac_func_search_save_LIBS
24501fi
24502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
24503$as_echo "$ac_cv_search_opendir" >&6; }
24504ac_res=$ac_cv_search_opendir
24505if test "$ac_res" != no; then :
24506  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24507
24508fi
24509
24510fi
24511
24512
24513# Check additional headers
24514for 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
24515do :
24516  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24517ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24518if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24519  cat >>confdefs.h <<_ACEOF
24520#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24521_ACEOF
24522
24523fi
24524
24525done
24526
24527
24528########
24529#
24530# Checks for typedefs, structures, and compiler characteristics.
24531#
24532########
24533
24534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
24535$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
24536if ${ac_cv_header_stdbool_h+:} false; then :
24537  $as_echo_n "(cached) " >&6
24538else
24539  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24540/* end confdefs.h.  */
24541
24542             #include <stdbool.h>
24543             #ifndef bool
24544              "error: bool is not defined"
24545             #endif
24546             #ifndef false
24547              "error: false is not defined"
24548             #endif
24549             #if false
24550              "error: false is not 0"
24551             #endif
24552             #ifndef true
24553              "error: true is not defined"
24554             #endif
24555             #if true != 1
24556              "error: true is not 1"
24557             #endif
24558             #ifndef __bool_true_false_are_defined
24559              "error: __bool_true_false_are_defined is not defined"
24560             #endif
24561
24562             struct s { _Bool s: 1; _Bool t; } s;
24563
24564             char a[true == 1 ? 1 : -1];
24565             char b[false == 0 ? 1 : -1];
24566             char c[__bool_true_false_are_defined == 1 ? 1 : -1];
24567             char d[(bool) 0.5 == true ? 1 : -1];
24568             /* See body of main program for 'e'.  */
24569             char f[(_Bool) 0.0 == false ? 1 : -1];
24570             char g[true];
24571             char h[sizeof (_Bool)];
24572             char i[sizeof s.t];
24573             enum { j = false, k = true, l = false * true, m = true * 256 };
24574             /* The following fails for
24575                HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
24576             _Bool n[m];
24577             char o[sizeof n == m * sizeof n[0] ? 1 : -1];
24578             char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
24579             /* Catch a bug in an HP-UX C compiler.  See
24580                http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
24581                http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
24582              */
24583             _Bool q = true;
24584             _Bool *pq = &q;
24585
24586int
24587main ()
24588{
24589
24590             bool e = &s;
24591             *pq |= q;
24592             *pq |= ! q;
24593             /* Refer to every declared value, to avoid compiler optimizations.  */
24594             return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
24595                     + !m + !n + !o + !p + !q + !pq);
24596
24597  ;
24598  return 0;
24599}
24600_ACEOF
24601if ac_fn_c_try_compile "$LINENO"; then :
24602  ac_cv_header_stdbool_h=yes
24603else
24604  ac_cv_header_stdbool_h=no
24605fi
24606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24607fi
24608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
24609$as_echo "$ac_cv_header_stdbool_h" >&6; }
24610   ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
24611if test "x$ac_cv_type__Bool" = xyes; then :
24612
24613cat >>confdefs.h <<_ACEOF
24614#define HAVE__BOOL 1
24615_ACEOF
24616
24617
24618fi
24619
24620
24621if test $ac_cv_header_stdbool_h = yes; then
24622
24623$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
24624
24625fi
24626
24627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
24628$as_echo_n "checking for working volatile... " >&6; }
24629if ${ac_cv_c_volatile+:} false; then :
24630  $as_echo_n "(cached) " >&6
24631else
24632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24633/* end confdefs.h.  */
24634
24635int
24636main ()
24637{
24638
24639volatile int x;
24640int * volatile y = (int *) 0;
24641return !x && !y;
24642  ;
24643  return 0;
24644}
24645_ACEOF
24646if ac_fn_c_try_compile "$LINENO"; then :
24647  ac_cv_c_volatile=yes
24648else
24649  ac_cv_c_volatile=no
24650fi
24651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24652fi
24653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
24654$as_echo "$ac_cv_c_volatile" >&6; }
24655if test $ac_cv_c_volatile = no; then
24656
24657$as_echo "#define volatile /**/" >>confdefs.h
24658
24659fi
24660
24661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
24662$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
24663if ${ac_cv_c_stringize+:} false; then :
24664  $as_echo_n "(cached) " >&6
24665else
24666  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24667/* end confdefs.h.  */
24668#define x(y) #y
24669
24670char *s = x(teststring);
24671_ACEOF
24672if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24673  $EGREP "#teststring" >/dev/null 2>&1; then :
24674  ac_cv_c_stringize=no
24675else
24676  ac_cv_c_stringize=yes
24677fi
24678rm -f conftest*
24679
24680fi
24681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
24682$as_echo "$ac_cv_c_stringize" >&6; }
24683if test $ac_cv_c_stringize = yes; then
24684
24685$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
24686
24687fi
24688
24689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
24690$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
24691if ${ac_cv_header_stat_broken+:} false; then :
24692  $as_echo_n "(cached) " >&6
24693else
24694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695/* end confdefs.h.  */
24696#include <sys/types.h>
24697#include <sys/stat.h>
24698
24699#if defined S_ISBLK && defined S_IFDIR
24700extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
24701#endif
24702
24703#if defined S_ISBLK && defined S_IFCHR
24704extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
24705#endif
24706
24707#if defined S_ISLNK && defined S_IFREG
24708extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
24709#endif
24710
24711#if defined S_ISSOCK && defined S_IFREG
24712extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
24713#endif
24714
24715_ACEOF
24716if ac_fn_c_try_compile "$LINENO"; then :
24717  ac_cv_header_stat_broken=no
24718else
24719  ac_cv_header_stat_broken=yes
24720fi
24721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24722fi
24723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
24724$as_echo "$ac_cv_header_stat_broken" >&6; }
24725if test $ac_cv_header_stat_broken = yes; then
24726
24727$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
24728
24729fi
24730
24731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
24732$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
24733if ${ac_cv_header_time+:} false; then :
24734  $as_echo_n "(cached) " >&6
24735else
24736  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24737/* end confdefs.h.  */
24738#include <sys/types.h>
24739#include <sys/time.h>
24740#include <time.h>
24741
24742int
24743main ()
24744{
24745if ((struct tm *) 0)
24746return 0;
24747  ;
24748  return 0;
24749}
24750_ACEOF
24751if ac_fn_c_try_compile "$LINENO"; then :
24752  ac_cv_header_time=yes
24753else
24754  ac_cv_header_time=no
24755fi
24756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24757fi
24758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
24759$as_echo "$ac_cv_header_time" >&6; }
24760if test $ac_cv_header_time = yes; then
24761
24762$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
24763
24764fi
24765
24766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
24767$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
24768if ${ac_cv_struct_tm+:} false; then :
24769  $as_echo_n "(cached) " >&6
24770else
24771  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772/* end confdefs.h.  */
24773#include <sys/types.h>
24774#include <time.h>
24775
24776int
24777main ()
24778{
24779struct tm tm;
24780				     int *p = &tm.tm_sec;
24781				     return !p;
24782  ;
24783  return 0;
24784}
24785_ACEOF
24786if ac_fn_c_try_compile "$LINENO"; then :
24787  ac_cv_struct_tm=time.h
24788else
24789  ac_cv_struct_tm=sys/time.h
24790fi
24791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792fi
24793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
24794$as_echo "$ac_cv_struct_tm" >&6; }
24795if test $ac_cv_struct_tm = sys/time.h; then
24796
24797$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
24798
24799fi
24800
24801ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
24802#include <$ac_cv_struct_tm>
24803
24804"
24805if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
24806
24807cat >>confdefs.h <<_ACEOF
24808#define HAVE_STRUCT_TM_TM_ZONE 1
24809_ACEOF
24810
24811
24812fi
24813
24814if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
24815
24816$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
24817
24818else
24819  ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
24820"
24821if test "x$ac_cv_have_decl_tzname" = xyes; then :
24822  ac_have_decl=1
24823else
24824  ac_have_decl=0
24825fi
24826
24827cat >>confdefs.h <<_ACEOF
24828#define HAVE_DECL_TZNAME $ac_have_decl
24829_ACEOF
24830
24831  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
24832$as_echo_n "checking for tzname... " >&6; }
24833if ${ac_cv_var_tzname+:} false; then :
24834  $as_echo_n "(cached) " >&6
24835else
24836  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24837/* end confdefs.h.  */
24838#include <time.h>
24839#if !HAVE_DECL_TZNAME
24840extern char *tzname[];
24841#endif
24842
24843int
24844main ()
24845{
24846return tzname[0][0];
24847  ;
24848  return 0;
24849}
24850_ACEOF
24851if ac_fn_c_try_link "$LINENO"; then :
24852  ac_cv_var_tzname=yes
24853else
24854  ac_cv_var_tzname=no
24855fi
24856rm -f core conftest.err conftest.$ac_objext \
24857    conftest$ac_exeext conftest.$ac_ext
24858fi
24859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
24860$as_echo "$ac_cv_var_tzname" >&6; }
24861  if test $ac_cv_var_tzname = yes; then
24862
24863$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
24864
24865  fi
24866fi
24867
24868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
24869$as_echo_n "checking whether #! works in shell scripts... " >&6; }
24870if ${ac_cv_sys_interpreter+:} false; then :
24871  $as_echo_n "(cached) " >&6
24872else
24873  echo '#! /bin/cat
24874exit 69
24875' >conftest
24876chmod u+x conftest
24877(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
24878if test $? -ne 69; then
24879   ac_cv_sys_interpreter=yes
24880else
24881   ac_cv_sys_interpreter=no
24882fi
24883rm -f conftest
24884fi
24885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
24886$as_echo "$ac_cv_sys_interpreter" >&6; }
24887interpval=$ac_cv_sys_interpreter
24888
24889
24890#
24891# Checks for language qualifiers and semantics.
24892#
24893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
24894$as_echo_n "checking whether char is unsigned... " >&6; }
24895if ${ac_cv_c_char_unsigned+:} false; then :
24896  $as_echo_n "(cached) " >&6
24897else
24898  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24899/* end confdefs.h.  */
24900$ac_includes_default
24901int
24902main ()
24903{
24904static int test_array [1 - 2 * !(((char) -1) < 0)];
24905test_array [0] = 0;
24906return test_array [0];
24907
24908  ;
24909  return 0;
24910}
24911_ACEOF
24912if ac_fn_c_try_compile "$LINENO"; then :
24913  ac_cv_c_char_unsigned=no
24914else
24915  ac_cv_c_char_unsigned=yes
24916fi
24917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24918fi
24919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
24920$as_echo "$ac_cv_c_char_unsigned" >&6; }
24921if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24922  $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
24923
24924fi
24925
24926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
24927$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
24928if ${ac_cv_c_const+:} false; then :
24929  $as_echo_n "(cached) " >&6
24930else
24931  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24932/* end confdefs.h.  */
24933
24934int
24935main ()
24936{
24937
24938#ifndef __cplusplus
24939  /* Ultrix mips cc rejects this sort of thing.  */
24940  typedef int charset[2];
24941  const charset cs = { 0, 0 };
24942  /* SunOS 4.1.1 cc rejects this.  */
24943  char const *const *pcpcc;
24944  char **ppc;
24945  /* NEC SVR4.0.2 mips cc rejects this.  */
24946  struct point {int x, y;};
24947  static struct point const zero = {0,0};
24948  /* AIX XL C 1.02.0.0 rejects this.
24949     It does not let you subtract one const X* pointer from another in
24950     an arm of an if-expression whose if-part is not a constant
24951     expression */
24952  const char *g = "string";
24953  pcpcc = &g + (g ? g-g : 0);
24954  /* HPUX 7.0 cc rejects these. */
24955  ++pcpcc;
24956  ppc = (char**) pcpcc;
24957  pcpcc = (char const *const *) ppc;
24958  { /* SCO 3.2v4 cc rejects this sort of thing.  */
24959    char tx;
24960    char *t = &tx;
24961    char const *s = 0 ? (char *) 0 : (char const *) 0;
24962
24963    *t++ = 0;
24964    if (s) return 0;
24965  }
24966  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
24967    int x[] = {25, 17};
24968    const int *foo = &x[0];
24969    ++foo;
24970  }
24971  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24972    typedef const int *iptr;
24973    iptr p = 0;
24974    ++p;
24975  }
24976  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
24977       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24978    struct s { int j; const int *ap[3]; } bx;
24979    struct s *b = &bx; b->j = 5;
24980  }
24981  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24982    const int foo = 10;
24983    if (!foo) return 0;
24984  }
24985  return !cs[0] && !zero.x;
24986#endif
24987
24988  ;
24989  return 0;
24990}
24991_ACEOF
24992if ac_fn_c_try_compile "$LINENO"; then :
24993  ac_cv_c_const=yes
24994else
24995  ac_cv_c_const=no
24996fi
24997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24998fi
24999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25000$as_echo "$ac_cv_c_const" >&6; }
25001if test $ac_cv_c_const = no; then
25002
25003$as_echo "#define const /**/" >>confdefs.h
25004
25005fi
25006
25007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
25008$as_echo_n "checking for inline... " >&6; }
25009if ${ac_cv_c_inline+:} false; then :
25010  $as_echo_n "(cached) " >&6
25011else
25012  ac_cv_c_inline=no
25013for ac_kw in inline __inline__ __inline; do
25014  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25015/* end confdefs.h.  */
25016#ifndef __cplusplus
25017typedef int foo_t;
25018static $ac_kw foo_t static_foo () {return 0; }
25019$ac_kw foo_t foo () {return 0; }
25020#endif
25021
25022_ACEOF
25023if ac_fn_c_try_compile "$LINENO"; then :
25024  ac_cv_c_inline=$ac_kw
25025fi
25026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25027  test "$ac_cv_c_inline" != no && break
25028done
25029
25030fi
25031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
25032$as_echo "$ac_cv_c_inline" >&6; }
25033
25034case $ac_cv_c_inline in
25035  inline | yes) ;;
25036  *)
25037    case $ac_cv_c_inline in
25038      no) ac_val=;;
25039      *) ac_val=$ac_cv_c_inline;;
25040    esac
25041    cat >>confdefs.h <<_ACEOF
25042#ifndef __cplusplus
25043#define inline $ac_val
25044#endif
25045_ACEOF
25046    ;;
25047esac
25048
25049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
25050$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
25051if ${ac_cv_c_restrict+:} false; then :
25052  $as_echo_n "(cached) " >&6
25053else
25054  ac_cv_c_restrict=no
25055   # The order here caters to the fact that C++ does not require restrict.
25056   for ac_kw in __restrict __restrict__ _Restrict restrict; do
25057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25058/* end confdefs.h.  */
25059typedef int * int_ptr;
25060	int foo (int_ptr $ac_kw ip) {
25061	return ip[0];
25062       }
25063int
25064main ()
25065{
25066int s[1];
25067	int * $ac_kw t = s;
25068	t[0] = 0;
25069	return foo(t)
25070  ;
25071  return 0;
25072}
25073_ACEOF
25074if ac_fn_c_try_compile "$LINENO"; then :
25075  ac_cv_c_restrict=$ac_kw
25076fi
25077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25078     test "$ac_cv_c_restrict" != no && break
25079   done
25080
25081fi
25082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
25083$as_echo "$ac_cv_c_restrict" >&6; }
25084
25085 case $ac_cv_c_restrict in
25086   restrict) ;;
25087   no) $as_echo "#define restrict /**/" >>confdefs.h
25088 ;;
25089   *)  cat >>confdefs.h <<_ACEOF
25090#define restrict $ac_cv_c_restrict
25091_ACEOF
25092 ;;
25093 esac
25094
25095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
25096$as_echo_n "checking for working volatile... " >&6; }
25097if ${ac_cv_c_volatile+:} false; then :
25098  $as_echo_n "(cached) " >&6
25099else
25100  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25101/* end confdefs.h.  */
25102
25103int
25104main ()
25105{
25106
25107volatile int x;
25108int * volatile y = (int *) 0;
25109return !x && !y;
25110  ;
25111  return 0;
25112}
25113_ACEOF
25114if ac_fn_c_try_compile "$LINENO"; then :
25115  ac_cv_c_volatile=yes
25116else
25117  ac_cv_c_volatile=no
25118fi
25119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25120fi
25121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
25122$as_echo "$ac_cv_c_volatile" >&6; }
25123if test $ac_cv_c_volatile = no; then
25124
25125$as_echo "#define volatile /**/" >>confdefs.h
25126
25127fi
25128
25129
25130# If words are stored with the most significant byte first (like
25131# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25133$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25134if ${ac_cv_c_bigendian+:} false; then :
25135  $as_echo_n "(cached) " >&6
25136else
25137  ac_cv_c_bigendian=unknown
25138    # See if we're dealing with a universal compiler.
25139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25140/* end confdefs.h.  */
25141#ifndef __APPLE_CC__
25142	       not a universal capable compiler
25143	     #endif
25144	     typedef int dummy;
25145
25146_ACEOF
25147if ac_fn_c_try_compile "$LINENO"; then :
25148
25149	# Check for potential -arch flags.  It is not universal unless
25150	# there are at least two -arch flags with different values.
25151	ac_arch=
25152	ac_prev=
25153	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25154	 if test -n "$ac_prev"; then
25155	   case $ac_word in
25156	     i?86 | x86_64 | ppc | ppc64)
25157	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25158		 ac_arch=$ac_word
25159	       else
25160		 ac_cv_c_bigendian=universal
25161		 break
25162	       fi
25163	       ;;
25164	   esac
25165	   ac_prev=
25166	 elif test "x$ac_word" = "x-arch"; then
25167	   ac_prev=arch
25168	 fi
25169       done
25170fi
25171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172    if test $ac_cv_c_bigendian = unknown; then
25173      # See if sys/param.h defines the BYTE_ORDER macro.
25174      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25175/* end confdefs.h.  */
25176#include <sys/types.h>
25177	     #include <sys/param.h>
25178
25179int
25180main ()
25181{
25182#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
25183		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
25184		     && LITTLE_ENDIAN)
25185	      bogus endian macros
25186	     #endif
25187
25188  ;
25189  return 0;
25190}
25191_ACEOF
25192if ac_fn_c_try_compile "$LINENO"; then :
25193  # It does; now see whether it defined to BIG_ENDIAN or not.
25194	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195/* end confdefs.h.  */
25196#include <sys/types.h>
25197		#include <sys/param.h>
25198
25199int
25200main ()
25201{
25202#if BYTE_ORDER != BIG_ENDIAN
25203		 not big endian
25204		#endif
25205
25206  ;
25207  return 0;
25208}
25209_ACEOF
25210if ac_fn_c_try_compile "$LINENO"; then :
25211  ac_cv_c_bigendian=yes
25212else
25213  ac_cv_c_bigendian=no
25214fi
25215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25216fi
25217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25218    fi
25219    if test $ac_cv_c_bigendian = unknown; then
25220      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
25221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25222/* end confdefs.h.  */
25223#include <limits.h>
25224
25225int
25226main ()
25227{
25228#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
25229	      bogus endian macros
25230	     #endif
25231
25232  ;
25233  return 0;
25234}
25235_ACEOF
25236if ac_fn_c_try_compile "$LINENO"; then :
25237  # It does; now see whether it defined to _BIG_ENDIAN or not.
25238	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25239/* end confdefs.h.  */
25240#include <limits.h>
25241
25242int
25243main ()
25244{
25245#ifndef _BIG_ENDIAN
25246		 not big endian
25247		#endif
25248
25249  ;
25250  return 0;
25251}
25252_ACEOF
25253if ac_fn_c_try_compile "$LINENO"; then :
25254  ac_cv_c_bigendian=yes
25255else
25256  ac_cv_c_bigendian=no
25257fi
25258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25259fi
25260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25261    fi
25262    if test $ac_cv_c_bigendian = unknown; then
25263      # Compile a test program.
25264      if test "$cross_compiling" = yes; then :
25265  # Try to guess by grepping values from an object file.
25266	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25267/* end confdefs.h.  */
25268short int ascii_mm[] =
25269		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
25270		short int ascii_ii[] =
25271		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
25272		int use_ascii (int i) {
25273		  return ascii_mm[i] + ascii_ii[i];
25274		}
25275		short int ebcdic_ii[] =
25276		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
25277		short int ebcdic_mm[] =
25278		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
25279		int use_ebcdic (int i) {
25280		  return ebcdic_mm[i] + ebcdic_ii[i];
25281		}
25282		extern int foo;
25283
25284int
25285main ()
25286{
25287return use_ascii (foo) == use_ebcdic (foo);
25288  ;
25289  return 0;
25290}
25291_ACEOF
25292if ac_fn_c_try_compile "$LINENO"; then :
25293  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25294	      ac_cv_c_bigendian=yes
25295	    fi
25296	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25297	      if test "$ac_cv_c_bigendian" = unknown; then
25298		ac_cv_c_bigendian=no
25299	      else
25300		# finding both strings is unlikely to happen, but who knows?
25301		ac_cv_c_bigendian=unknown
25302	      fi
25303	    fi
25304fi
25305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25306else
25307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308/* end confdefs.h.  */
25309$ac_includes_default
25310int
25311main ()
25312{
25313
25314	     /* Are we little or big endian?  From Harbison&Steele.  */
25315	     union
25316	     {
25317	       long int l;
25318	       char c[sizeof (long int)];
25319	     } u;
25320	     u.l = 1;
25321	     return u.c[sizeof (long int) - 1] == 1;
25322
25323  ;
25324  return 0;
25325}
25326_ACEOF
25327if ac_fn_c_try_run "$LINENO"; then :
25328  ac_cv_c_bigendian=no
25329else
25330  ac_cv_c_bigendian=yes
25331fi
25332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25333  conftest.$ac_objext conftest.beam conftest.$ac_ext
25334fi
25335
25336    fi
25337fi
25338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25339$as_echo "$ac_cv_c_bigendian" >&6; }
25340 case $ac_cv_c_bigendian in #(
25341   yes)
25342     $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
25343;; #(
25344   no)
25345      ;; #(
25346   universal)
25347
25348$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25349
25350     ;; #(
25351   *)
25352     as_fn_error $? "unknown endianness
25353 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
25354 esac
25355
25356
25357# Define to a suitable type, if standard headers do not define it.
25358ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
25359case $ac_cv_c_int8_t in #(
25360  no|yes) ;; #(
25361  *)
25362
25363cat >>confdefs.h <<_ACEOF
25364#define int8_t $ac_cv_c_int8_t
25365_ACEOF
25366;;
25367esac
25368
25369ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
25370case $ac_cv_c_int16_t in #(
25371  no|yes) ;; #(
25372  *)
25373
25374cat >>confdefs.h <<_ACEOF
25375#define int16_t $ac_cv_c_int16_t
25376_ACEOF
25377;;
25378esac
25379
25380ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
25381case $ac_cv_c_int32_t in #(
25382  no|yes) ;; #(
25383  *)
25384
25385cat >>confdefs.h <<_ACEOF
25386#define int32_t $ac_cv_c_int32_t
25387_ACEOF
25388;;
25389esac
25390
25391ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
25392case $ac_cv_c_int64_t in #(
25393  no|yes) ;; #(
25394  *)
25395
25396cat >>confdefs.h <<_ACEOF
25397#define int64_t $ac_cv_c_int64_t
25398_ACEOF
25399;;
25400esac
25401
25402
25403  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
25404$as_echo_n "checking for unsigned long long int... " >&6; }
25405if ${ac_cv_type_unsigned_long_long_int+:} false; then :
25406  $as_echo_n "(cached) " >&6
25407else
25408  ac_cv_type_unsigned_long_long_int=yes
25409     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25410       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25411/* end confdefs.h.  */
25412
25413  /* For now, do not test the preprocessor; as of 2007 there are too many
25414         implementations with broken preprocessors.  Perhaps this can
25415         be revisited in 2012.  In the meantime, code should not expect
25416         #if to work with literals wider than 32 bits.  */
25417      /* Test literals.  */
25418      long long int ll = 9223372036854775807ll;
25419      long long int nll = -9223372036854775807LL;
25420      unsigned long long int ull = 18446744073709551615ULL;
25421      /* Test constant expressions.   */
25422      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
25423                     ? 1 : -1)];
25424      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
25425                     ? 1 : -1)];
25426      int i = 63;
25427int
25428main ()
25429{
25430/* Test availability of runtime routines for shift and division.  */
25431      long long int llmax = 9223372036854775807ll;
25432      unsigned long long int ullmax = 18446744073709551615ull;
25433      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
25434              | (llmax / ll) | (llmax % ll)
25435              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
25436              | (ullmax / ull) | (ullmax % ull));
25437  ;
25438  return 0;
25439}
25440
25441_ACEOF
25442if ac_fn_c_try_link "$LINENO"; then :
25443
25444else
25445  ac_cv_type_unsigned_long_long_int=no
25446fi
25447rm -f core conftest.err conftest.$ac_objext \
25448    conftest$ac_exeext conftest.$ac_ext
25449     fi
25450fi
25451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
25452$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
25453  if test $ac_cv_type_unsigned_long_long_int = yes; then
25454
25455$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
25456
25457  fi
25458
25459
25460
25461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
25462$as_echo_n "checking for long long int... " >&6; }
25463if ${ac_cv_type_long_long_int+:} false; then :
25464  $as_echo_n "(cached) " >&6
25465else
25466  ac_cv_type_long_long_int=yes
25467      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25468        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
25469        if test $ac_cv_type_long_long_int = yes; then
25470                                        if test "$cross_compiling" = yes; then :
25471  :
25472else
25473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25474/* end confdefs.h.  */
25475#include <limits.h>
25476                 #ifndef LLONG_MAX
25477                 # define HALF \
25478                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
25479                 # define LLONG_MAX (HALF - 1 + HALF)
25480                 #endif
25481int
25482main ()
25483{
25484long long int n = 1;
25485                 int i;
25486                 for (i = 0; ; i++)
25487                   {
25488                     long long int m = n << i;
25489                     if (m >> i != n)
25490                       return 1;
25491                     if (LLONG_MAX / 2 < m)
25492                       break;
25493                   }
25494                 return 0;
25495  ;
25496  return 0;
25497}
25498_ACEOF
25499if ac_fn_c_try_run "$LINENO"; then :
25500
25501else
25502  ac_cv_type_long_long_int=no
25503fi
25504rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25505  conftest.$ac_objext conftest.beam conftest.$ac_ext
25506fi
25507
25508        fi
25509      fi
25510fi
25511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
25512$as_echo "$ac_cv_type_long_long_int" >&6; }
25513  if test $ac_cv_type_long_long_int = yes; then
25514
25515$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
25516
25517  fi
25518
25519
25520
25521  ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
25522if test "x$ac_cv_type_intmax_t" = xyes; then :
25523
25524$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
25525
25526else
25527  test $ac_cv_type_long_long_int = yes \
25528       && ac_type='long long int' \
25529       || ac_type='long int'
25530
25531cat >>confdefs.h <<_ACEOF
25532#define intmax_t $ac_type
25533_ACEOF
25534
25535fi
25536
25537
25538
25539  ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
25540if test "x$ac_cv_type_intptr_t" = xyes; then :
25541
25542$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
25543
25544else
25545  for ac_type in 'int' 'long int' 'long long int'; do
25546       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547/* end confdefs.h.  */
25548$ac_includes_default
25549int
25550main ()
25551{
25552static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25553test_array [0] = 0;
25554return test_array [0];
25555
25556  ;
25557  return 0;
25558}
25559_ACEOF
25560if ac_fn_c_try_compile "$LINENO"; then :
25561
25562cat >>confdefs.h <<_ACEOF
25563#define intptr_t $ac_type
25564_ACEOF
25565
25566	  ac_type=
25567fi
25568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25569       test -z "$ac_type" && break
25570     done
25571fi
25572
25573
25574
25575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
25576$as_echo_n "checking for long double... " >&6; }
25577if ${ac_cv_type_long_double+:} false; then :
25578  $as_echo_n "(cached) " >&6
25579else
25580  if test "$GCC" = yes; then
25581       ac_cv_type_long_double=yes
25582     else
25583       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25584/* end confdefs.h.  */
25585/* The Stardent Vistra knows sizeof (long double), but does
25586		 not support it.  */
25587	      long double foo = 0.0L;
25588int
25589main ()
25590{
25591static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
25592	      sizeof (double) <= sizeof (long double))];
25593test_array [0] = 0;
25594return test_array [0];
25595
25596  ;
25597  return 0;
25598}
25599_ACEOF
25600if ac_fn_c_try_compile "$LINENO"; then :
25601  ac_cv_type_long_double=yes
25602else
25603  ac_cv_type_long_double=no
25604fi
25605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25606     fi
25607fi
25608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
25609$as_echo "$ac_cv_type_long_double" >&6; }
25610  if test $ac_cv_type_long_double = yes; then
25611
25612$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
25613
25614  fi
25615
25616
25617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
25618$as_echo_n "checking for long double with more range or precision than double... " >&6; }
25619if ${ac_cv_type_long_double_wider+:} false; then :
25620  $as_echo_n "(cached) " >&6
25621else
25622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623/* end confdefs.h.  */
25624#include <float.h>
25625	    long double const a[] =
25626	      {
25627		 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
25628		 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
25629	      };
25630	    long double
25631	    f (long double x)
25632	    {
25633	       return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
25634			+ (x ? f (x) : 'c'));
25635	    }
25636
25637int
25638main ()
25639{
25640static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
25641		   + (DBL_MANT_DIG < LDBL_MANT_DIG)
25642		   - (LDBL_MAX_EXP < DBL_MAX_EXP)
25643		   - (LDBL_MANT_DIG < DBL_MANT_DIG)))
25644	    && (int) LDBL_EPSILON == 0
25645	  )];
25646test_array [0] = 0;
25647return test_array [0];
25648
25649  ;
25650  return 0;
25651}
25652_ACEOF
25653if ac_fn_c_try_compile "$LINENO"; then :
25654  ac_cv_type_long_double_wider=yes
25655else
25656  ac_cv_type_long_double_wider=no
25657fi
25658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25659fi
25660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
25661$as_echo "$ac_cv_type_long_double_wider" >&6; }
25662  if test $ac_cv_type_long_double_wider = yes; then
25663
25664$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
25665
25666  fi
25667
25668
25669
25670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
25671$as_echo_n "checking for long long int... " >&6; }
25672if ${ac_cv_type_long_long_int+:} false; then :
25673  $as_echo_n "(cached) " >&6
25674else
25675  ac_cv_type_long_long_int=yes
25676      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25677        ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
25678        if test $ac_cv_type_long_long_int = yes; then
25679                                        if test "$cross_compiling" = yes; then :
25680  :
25681else
25682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25683/* end confdefs.h.  */
25684#include <limits.h>
25685                 #ifndef LLONG_MAX
25686                 # define HALF \
25687                          (1LL << (sizeof (long long int) * CHAR_BIT - 2))
25688                 # define LLONG_MAX (HALF - 1 + HALF)
25689                 #endif
25690int
25691main ()
25692{
25693long long int n = 1;
25694                 int i;
25695                 for (i = 0; ; i++)
25696                   {
25697                     long long int m = n << i;
25698                     if (m >> i != n)
25699                       return 1;
25700                     if (LLONG_MAX / 2 < m)
25701                       break;
25702                   }
25703                 return 0;
25704  ;
25705  return 0;
25706}
25707_ACEOF
25708if ac_fn_c_try_run "$LINENO"; then :
25709
25710else
25711  ac_cv_type_long_long_int=no
25712fi
25713rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25714  conftest.$ac_objext conftest.beam conftest.$ac_ext
25715fi
25716
25717        fi
25718      fi
25719fi
25720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
25721$as_echo "$ac_cv_type_long_long_int" >&6; }
25722  if test $ac_cv_type_long_long_int = yes; then
25723
25724$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
25725
25726  fi
25727
25728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
25729$as_echo_n "checking for mbstate_t... " >&6; }
25730if ${ac_cv_type_mbstate_t+:} false; then :
25731  $as_echo_n "(cached) " >&6
25732else
25733  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25734/* end confdefs.h.  */
25735$ac_includes_default
25736#	    include <wchar.h>
25737int
25738main ()
25739{
25740mbstate_t x; return sizeof x;
25741  ;
25742  return 0;
25743}
25744_ACEOF
25745if ac_fn_c_try_compile "$LINENO"; then :
25746  ac_cv_type_mbstate_t=yes
25747else
25748  ac_cv_type_mbstate_t=no
25749fi
25750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751fi
25752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
25753$as_echo "$ac_cv_type_mbstate_t" >&6; }
25754   if test $ac_cv_type_mbstate_t = yes; then
25755
25756$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
25757
25758   else
25759
25760$as_echo "#define mbstate_t int" >>confdefs.h
25761
25762   fi
25763ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
25764if test "x$ac_cv_type_mode_t" = xyes; then :
25765
25766else
25767
25768cat >>confdefs.h <<_ACEOF
25769#define mode_t int
25770_ACEOF
25771
25772fi
25773
25774ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
25775if test "x$ac_cv_type_off_t" = xyes; then :
25776
25777else
25778
25779cat >>confdefs.h <<_ACEOF
25780#define off_t long int
25781_ACEOF
25782
25783fi
25784
25785ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
25786if test "x$ac_cv_type_pid_t" = xyes; then :
25787
25788else
25789
25790cat >>confdefs.h <<_ACEOF
25791#define pid_t int
25792_ACEOF
25793
25794fi
25795
25796ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25797if test "x$ac_cv_type_size_t" = xyes; then :
25798
25799else
25800
25801cat >>confdefs.h <<_ACEOF
25802#define size_t unsigned int
25803_ACEOF
25804
25805fi
25806
25807ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
25808if test "x$ac_cv_type_ssize_t" = xyes; then :
25809
25810else
25811
25812cat >>confdefs.h <<_ACEOF
25813#define ssize_t int
25814_ACEOF
25815
25816fi
25817
25818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
25819$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
25820if ${ac_cv_type_uid_t+:} false; then :
25821  $as_echo_n "(cached) " >&6
25822else
25823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824/* end confdefs.h.  */
25825#include <sys/types.h>
25826
25827_ACEOF
25828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25829  $EGREP "uid_t" >/dev/null 2>&1; then :
25830  ac_cv_type_uid_t=yes
25831else
25832  ac_cv_type_uid_t=no
25833fi
25834rm -f conftest*
25835
25836fi
25837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
25838$as_echo "$ac_cv_type_uid_t" >&6; }
25839if test $ac_cv_type_uid_t = no; then
25840
25841$as_echo "#define uid_t int" >>confdefs.h
25842
25843
25844$as_echo "#define gid_t int" >>confdefs.h
25845
25846fi
25847
25848ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
25849case $ac_cv_c_uint8_t in #(
25850  no|yes) ;; #(
25851  *)
25852
25853$as_echo "#define _UINT8_T 1" >>confdefs.h
25854
25855
25856cat >>confdefs.h <<_ACEOF
25857#define uint8_t $ac_cv_c_uint8_t
25858_ACEOF
25859;;
25860  esac
25861
25862ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
25863case $ac_cv_c_uint16_t in #(
25864  no|yes) ;; #(
25865  *)
25866
25867
25868cat >>confdefs.h <<_ACEOF
25869#define uint16_t $ac_cv_c_uint16_t
25870_ACEOF
25871;;
25872  esac
25873
25874ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
25875case $ac_cv_c_uint32_t in #(
25876  no|yes) ;; #(
25877  *)
25878
25879$as_echo "#define _UINT32_T 1" >>confdefs.h
25880
25881
25882cat >>confdefs.h <<_ACEOF
25883#define uint32_t $ac_cv_c_uint32_t
25884_ACEOF
25885;;
25886  esac
25887
25888ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
25889case $ac_cv_c_uint64_t in #(
25890  no|yes) ;; #(
25891  *)
25892
25893$as_echo "#define _UINT64_T 1" >>confdefs.h
25894
25895
25896cat >>confdefs.h <<_ACEOF
25897#define uint64_t $ac_cv_c_uint64_t
25898_ACEOF
25899;;
25900  esac
25901
25902
25903
25904  ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
25905if test "x$ac_cv_type_uintmax_t" = xyes; then :
25906
25907$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
25908
25909else
25910  test $ac_cv_type_unsigned_long_long_int = yes \
25911       && ac_type='unsigned long long int' \
25912       || ac_type='unsigned long int'
25913
25914cat >>confdefs.h <<_ACEOF
25915#define uintmax_t $ac_type
25916_ACEOF
25917
25918fi
25919
25920
25921
25922  ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
25923if test "x$ac_cv_type_uintptr_t" = xyes; then :
25924
25925$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
25926
25927else
25928  for ac_type in 'unsigned int' 'unsigned long int' \
25929	'unsigned long long int'; do
25930       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25931/* end confdefs.h.  */
25932$ac_includes_default
25933int
25934main ()
25935{
25936static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
25937test_array [0] = 0;
25938return test_array [0];
25939
25940  ;
25941  return 0;
25942}
25943_ACEOF
25944if ac_fn_c_try_compile "$LINENO"; then :
25945
25946cat >>confdefs.h <<_ACEOF
25947#define uintptr_t $ac_type
25948_ACEOF
25949
25950	  ac_type=
25951fi
25952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25953       test -z "$ac_type" && break
25954     done
25955fi
25956
25957
25958
25959  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
25960$as_echo_n "checking for unsigned long long int... " >&6; }
25961if ${ac_cv_type_unsigned_long_long_int+:} false; then :
25962  $as_echo_n "(cached) " >&6
25963else
25964  ac_cv_type_unsigned_long_long_int=yes
25965     if test "x${ac_cv_prog_cc_c99-no}" = xno; then
25966       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25967/* end confdefs.h.  */
25968
25969  /* For now, do not test the preprocessor; as of 2007 there are too many
25970         implementations with broken preprocessors.  Perhaps this can
25971         be revisited in 2012.  In the meantime, code should not expect
25972         #if to work with literals wider than 32 bits.  */
25973      /* Test literals.  */
25974      long long int ll = 9223372036854775807ll;
25975      long long int nll = -9223372036854775807LL;
25976      unsigned long long int ull = 18446744073709551615ULL;
25977      /* Test constant expressions.   */
25978      typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
25979                     ? 1 : -1)];
25980      typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
25981                     ? 1 : -1)];
25982      int i = 63;
25983int
25984main ()
25985{
25986/* Test availability of runtime routines for shift and division.  */
25987      long long int llmax = 9223372036854775807ll;
25988      unsigned long long int ullmax = 18446744073709551615ull;
25989      return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
25990              | (llmax / ll) | (llmax % ll)
25991              | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
25992              | (ullmax / ull) | (ullmax % ull));
25993  ;
25994  return 0;
25995}
25996
25997_ACEOF
25998if ac_fn_c_try_link "$LINENO"; then :
25999
26000else
26001  ac_cv_type_unsigned_long_long_int=no
26002fi
26003rm -f core conftest.err conftest.$ac_objext \
26004    conftest$ac_exeext conftest.$ac_ext
26005     fi
26006fi
26007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
26008$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
26009  if test $ac_cv_type_unsigned_long_long_int = yes; then
26010
26011$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
26012
26013  fi
26014
26015
26016ac_fn_c_check_type "$LINENO" "locale_t" "ac_cv_type_locale_t" "#include <xlocale.h>
26017"
26018if test "x$ac_cv_type_locale_t" = xyes; then :
26019
26020cat >>confdefs.h <<_ACEOF
26021#define HAVE_LOCALE_T 1
26022_ACEOF
26023
26024
26025fi
26026
26027
26028# Float_t and double_t are intended to be the the most efficient type.
26029ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
26030"
26031if test "x$ac_cv_type_float_t" = xyes; then :
26032
26033cat >>confdefs.h <<_ACEOF
26034#define HAVE_FLOAT_T 1
26035_ACEOF
26036
26037
26038fi
26039
26040ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
26041"
26042if test "x$ac_cv_type_double_t" = xyes; then :
26043
26044cat >>confdefs.h <<_ACEOF
26045#define HAVE_DOUBLE_T 1
26046_ACEOF
26047
26048
26049fi
26050
26051# The cast to long int works around a bug in the HP C Compiler
26052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26054# This bug is HP SR number 8606223364.
26055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
26056$as_echo_n "checking size of float_t... " >&6; }
26057if ${ac_cv_sizeof_float_t+:} false; then :
26058  $as_echo_n "(cached) " >&6
26059else
26060  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t"        "#include <math.h>
26061"; then :
26062
26063else
26064  if test "$ac_cv_type_float_t" = yes; then
26065     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26067as_fn_error 77 "cannot compute sizeof (float_t)
26068See \`config.log' for more details" "$LINENO" 5; }
26069   else
26070     ac_cv_sizeof_float_t=0
26071   fi
26072fi
26073
26074fi
26075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
26076$as_echo "$ac_cv_sizeof_float_t" >&6; }
26077
26078
26079
26080cat >>confdefs.h <<_ACEOF
26081#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
26082_ACEOF
26083
26084
26085# The cast to long int works around a bug in the HP C Compiler
26086# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26087# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26088# This bug is HP SR number 8606223364.
26089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
26090$as_echo_n "checking size of double_t... " >&6; }
26091if ${ac_cv_sizeof_double_t+:} false; then :
26092  $as_echo_n "(cached) " >&6
26093else
26094  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t"        "#include <math.h>
26095"; then :
26096
26097else
26098  if test "$ac_cv_type_double_t" = yes; then
26099     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26101as_fn_error 77 "cannot compute sizeof (double_t)
26102See \`config.log' for more details" "$LINENO" 5; }
26103   else
26104     ac_cv_sizeof_double_t=0
26105   fi
26106fi
26107
26108fi
26109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
26110$as_echo "$ac_cv_sizeof_double_t" >&6; }
26111
26112
26113
26114cat >>confdefs.h <<_ACEOF
26115#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
26116_ACEOF
26117
26118
26119
26120# Get size of float, double and long double for comparaison.
26121# The cast to long int works around a bug in the HP C Compiler
26122# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26123# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26124# This bug is HP SR number 8606223364.
26125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
26126$as_echo_n "checking size of float... " >&6; }
26127if ${ac_cv_sizeof_float+:} false; then :
26128  $as_echo_n "(cached) " >&6
26129else
26130  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float"        "$ac_includes_default"; then :
26131
26132else
26133  if test "$ac_cv_type_float" = yes; then
26134     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26136as_fn_error 77 "cannot compute sizeof (float)
26137See \`config.log' for more details" "$LINENO" 5; }
26138   else
26139     ac_cv_sizeof_float=0
26140   fi
26141fi
26142
26143fi
26144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
26145$as_echo "$ac_cv_sizeof_float" >&6; }
26146
26147
26148
26149cat >>confdefs.h <<_ACEOF
26150#define SIZEOF_FLOAT $ac_cv_sizeof_float
26151_ACEOF
26152
26153
26154# The cast to long int works around a bug in the HP C Compiler
26155# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26156# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26157# This bug is HP SR number 8606223364.
26158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
26159$as_echo_n "checking size of double... " >&6; }
26160if ${ac_cv_sizeof_double+:} false; then :
26161  $as_echo_n "(cached) " >&6
26162else
26163  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
26164
26165else
26166  if test "$ac_cv_type_double" = yes; then
26167     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26168$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26169as_fn_error 77 "cannot compute sizeof (double)
26170See \`config.log' for more details" "$LINENO" 5; }
26171   else
26172     ac_cv_sizeof_double=0
26173   fi
26174fi
26175
26176fi
26177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
26178$as_echo "$ac_cv_sizeof_double" >&6; }
26179
26180
26181
26182cat >>confdefs.h <<_ACEOF
26183#define SIZEOF_DOUBLE $ac_cv_sizeof_double
26184_ACEOF
26185
26186
26187# The cast to long int works around a bug in the HP C Compiler
26188# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26189# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26190# This bug is HP SR number 8606223364.
26191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
26192$as_echo_n "checking size of long double... " >&6; }
26193if ${ac_cv_sizeof_long_double+:} false; then :
26194  $as_echo_n "(cached) " >&6
26195else
26196  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
26197
26198else
26199  if test "$ac_cv_type_long_double" = yes; then
26200     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26202as_fn_error 77 "cannot compute sizeof (long double)
26203See \`config.log' for more details" "$LINENO" 5; }
26204   else
26205     ac_cv_sizeof_long_double=0
26206   fi
26207fi
26208
26209fi
26210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
26211$as_echo "$ac_cv_sizeof_long_double" >&6; }
26212
26213
26214
26215cat >>confdefs.h <<_ACEOF
26216#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
26217_ACEOF
26218
26219
26220
26221# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
26222# The cast to long int works around a bug in the HP C Compiler
26223# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26224# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26225# This bug is HP SR number 8606223364.
26226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
26227$as_echo_n "checking size of signed short... " >&6; }
26228if ${ac_cv_sizeof_signed_short+:} false; then :
26229  $as_echo_n "(cached) " >&6
26230else
26231  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
26232
26233else
26234  if test "$ac_cv_type_signed_short" = yes; then
26235     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26236$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26237as_fn_error 77 "cannot compute sizeof (signed short)
26238See \`config.log' for more details" "$LINENO" 5; }
26239   else
26240     ac_cv_sizeof_signed_short=0
26241   fi
26242fi
26243
26244fi
26245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
26246$as_echo "$ac_cv_sizeof_signed_short" >&6; }
26247
26248
26249
26250cat >>confdefs.h <<_ACEOF
26251#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
26252_ACEOF
26253
26254
26255
26256# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
26257# The cast to long int works around a bug in the HP C Compiler
26258# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26259# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26260# This bug is HP SR number 8606223364.
26261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
26262$as_echo_n "checking size of unsigned short... " >&6; }
26263if ${ac_cv_sizeof_unsigned_short+:} false; then :
26264  $as_echo_n "(cached) " >&6
26265else
26266  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
26267
26268else
26269  if test "$ac_cv_type_unsigned_short" = yes; then
26270     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26272as_fn_error 77 "cannot compute sizeof (unsigned short)
26273See \`config.log' for more details" "$LINENO" 5; }
26274   else
26275     ac_cv_sizeof_unsigned_short=0
26276   fi
26277fi
26278
26279fi
26280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
26281$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
26282
26283
26284
26285cat >>confdefs.h <<_ACEOF
26286#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
26287_ACEOF
26288
26289
26290
26291# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
26292# The cast to long int works around a bug in the HP C Compiler
26293# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26294# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26295# This bug is HP SR number 8606223364.
26296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
26297$as_echo_n "checking size of signed int... " >&6; }
26298if ${ac_cv_sizeof_signed_int+:} false; then :
26299  $as_echo_n "(cached) " >&6
26300else
26301  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
26302
26303else
26304  if test "$ac_cv_type_signed_int" = yes; then
26305     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26307as_fn_error 77 "cannot compute sizeof (signed int)
26308See \`config.log' for more details" "$LINENO" 5; }
26309   else
26310     ac_cv_sizeof_signed_int=0
26311   fi
26312fi
26313
26314fi
26315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
26316$as_echo "$ac_cv_sizeof_signed_int" >&6; }
26317
26318
26319
26320cat >>confdefs.h <<_ACEOF
26321#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
26322_ACEOF
26323
26324
26325
26326# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
26327# The cast to long int works around a bug in the HP C Compiler
26328# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26329# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26330# This bug is HP SR number 8606223364.
26331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
26332$as_echo_n "checking size of unsigned int... " >&6; }
26333if ${ac_cv_sizeof_unsigned_int+:} false; then :
26334  $as_echo_n "(cached) " >&6
26335else
26336  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
26337
26338else
26339  if test "$ac_cv_type_unsigned_int" = yes; then
26340     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26342as_fn_error 77 "cannot compute sizeof (unsigned int)
26343See \`config.log' for more details" "$LINENO" 5; }
26344   else
26345     ac_cv_sizeof_unsigned_int=0
26346   fi
26347fi
26348
26349fi
26350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
26351$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
26352
26353
26354
26355cat >>confdefs.h <<_ACEOF
26356#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
26357_ACEOF
26358
26359
26360
26361# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
26362# The cast to long int works around a bug in the HP C Compiler
26363# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26364# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26365# This bug is HP SR number 8606223364.
26366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
26367$as_echo_n "checking size of signed long... " >&6; }
26368if ${ac_cv_sizeof_signed_long+:} false; then :
26369  $as_echo_n "(cached) " >&6
26370else
26371  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
26372
26373else
26374  if test "$ac_cv_type_signed_long" = yes; then
26375     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26377as_fn_error 77 "cannot compute sizeof (signed long)
26378See \`config.log' for more details" "$LINENO" 5; }
26379   else
26380     ac_cv_sizeof_signed_long=0
26381   fi
26382fi
26383
26384fi
26385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
26386$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26387
26388
26389
26390cat >>confdefs.h <<_ACEOF
26391#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26392_ACEOF
26393
26394
26395
26396# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26397# The cast to long int works around a bug in the HP C Compiler
26398# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26399# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26400# This bug is HP SR number 8606223364.
26401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
26402$as_echo_n "checking size of unsigned long... " >&6; }
26403if ${ac_cv_sizeof_unsigned_long+:} false; then :
26404  $as_echo_n "(cached) " >&6
26405else
26406  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
26407
26408else
26409  if test "$ac_cv_type_unsigned_long" = yes; then
26410     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26412as_fn_error 77 "cannot compute sizeof (unsigned long)
26413See \`config.log' for more details" "$LINENO" 5; }
26414   else
26415     ac_cv_sizeof_unsigned_long=0
26416   fi
26417fi
26418
26419fi
26420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
26421$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26422
26423
26424
26425cat >>confdefs.h <<_ACEOF
26426#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26427_ACEOF
26428
26429
26430
26431# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
26432# 'signed long long' is not supported then the value defined is zero.
26433# The cast to long int works around a bug in the HP C Compiler
26434# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26435# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26436# This bug is HP SR number 8606223364.
26437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
26438$as_echo_n "checking size of signed long long... " >&6; }
26439if ${ac_cv_sizeof_signed_long_long+:} false; then :
26440  $as_echo_n "(cached) " >&6
26441else
26442  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
26443
26444else
26445  if test "$ac_cv_type_signed_long_long" = yes; then
26446     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26448as_fn_error 77 "cannot compute sizeof (signed long long)
26449See \`config.log' for more details" "$LINENO" 5; }
26450   else
26451     ac_cv_sizeof_signed_long_long=0
26452   fi
26453fi
26454
26455fi
26456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
26457$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
26458
26459
26460
26461cat >>confdefs.h <<_ACEOF
26462#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
26463_ACEOF
26464
26465
26466
26467# Obtain size of a 'unsigned long long' and define as
26468# SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
26469# supported then the value defined is zero.
26470# The cast to long int works around a bug in the HP C Compiler
26471# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26472# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26473# This bug is HP SR number 8606223364.
26474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
26475$as_echo_n "checking size of unsigned long long... " >&6; }
26476if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
26477  $as_echo_n "(cached) " >&6
26478else
26479  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
26480
26481else
26482  if test "$ac_cv_type_unsigned_long_long" = yes; then
26483     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26485as_fn_error 77 "cannot compute sizeof (unsigned long long)
26486See \`config.log' for more details" "$LINENO" 5; }
26487   else
26488     ac_cv_sizeof_unsigned_long_long=0
26489   fi
26490fi
26491
26492fi
26493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
26494$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
26495
26496
26497
26498cat >>confdefs.h <<_ACEOF
26499#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
26500_ACEOF
26501
26502
26503
26504# Obtain size of off_t and define as SIZEOF_OFF_T
26505# The cast to long int works around a bug in the HP C Compiler
26506# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26507# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26508# This bug is HP SR number 8606223364.
26509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26510$as_echo_n "checking size of off_t... " >&6; }
26511if ${ac_cv_sizeof_off_t+:} false; then :
26512  $as_echo_n "(cached) " >&6
26513else
26514  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
26515
26516else
26517  if test "$ac_cv_type_off_t" = yes; then
26518     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26519$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26520as_fn_error 77 "cannot compute sizeof (off_t)
26521See \`config.log' for more details" "$LINENO" 5; }
26522   else
26523     ac_cv_sizeof_off_t=0
26524   fi
26525fi
26526
26527fi
26528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26529$as_echo "$ac_cv_sizeof_off_t" >&6; }
26530
26531
26532
26533cat >>confdefs.h <<_ACEOF
26534#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26535_ACEOF
26536
26537
26538
26539# Obtain size of size_t and define as SIZEOF_SIZE_T
26540# The cast to long int works around a bug in the HP C Compiler
26541# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26542# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26543# This bug is HP SR number 8606223364.
26544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26545$as_echo_n "checking size of size_t... " >&6; }
26546if ${ac_cv_sizeof_size_t+:} false; then :
26547  $as_echo_n "(cached) " >&6
26548else
26549  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
26550
26551else
26552  if test "$ac_cv_type_size_t" = yes; then
26553     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26555as_fn_error 77 "cannot compute sizeof (size_t)
26556See \`config.log' for more details" "$LINENO" 5; }
26557   else
26558     ac_cv_sizeof_size_t=0
26559   fi
26560fi
26561
26562fi
26563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26564$as_echo "$ac_cv_sizeof_size_t" >&6; }
26565
26566
26567
26568cat >>confdefs.h <<_ACEOF
26569#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26570_ACEOF
26571
26572
26573
26574# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
26575# The cast to long int works around a bug in the HP C Compiler
26576# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26577# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26578# This bug is HP SR number 8606223364.
26579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
26580$as_echo_n "checking size of ssize_t... " >&6; }
26581if ${ac_cv_sizeof_ssize_t+:} false; then :
26582  $as_echo_n "(cached) " >&6
26583else
26584  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
26585
26586else
26587  if test "$ac_cv_type_ssize_t" = yes; then
26588     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26589$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26590as_fn_error 77 "cannot compute sizeof (ssize_t)
26591See \`config.log' for more details" "$LINENO" 5; }
26592   else
26593     ac_cv_sizeof_ssize_t=0
26594   fi
26595fi
26596
26597fi
26598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
26599$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
26600
26601
26602
26603cat >>confdefs.h <<_ACEOF
26604#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
26605_ACEOF
26606
26607
26608
26609# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
26610# The cast to long int works around a bug in the HP C Compiler
26611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26613# This bug is HP SR number 8606223364.
26614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
26615$as_echo_n "checking size of unsigned int*... " >&6; }
26616if ${ac_cv_sizeof_unsigned_intp+:} false; then :
26617  $as_echo_n "(cached) " >&6
26618else
26619  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
26620
26621else
26622  if test "$ac_cv_type_unsigned_intp" = yes; then
26623     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26625as_fn_error 77 "cannot compute sizeof (unsigned int*)
26626See \`config.log' for more details" "$LINENO" 5; }
26627   else
26628     ac_cv_sizeof_unsigned_intp=0
26629   fi
26630fi
26631
26632fi
26633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
26634$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
26635
26636
26637
26638cat >>confdefs.h <<_ACEOF
26639#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
26640_ACEOF
26641
26642
26643
26644#
26645# Compute sized types for current CPU and compiler options.
26646#
26647
26648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
26649$as_echo_n "checking for signed 8-bit type... " >&6; }
26650INT8_T='signed char'
26651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
26652$as_echo "$INT8_T" >&6; }
26653
26654
26655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
26656$as_echo_n "checking for unsigned 8-bit type... " >&6; }
26657UINT8_T='unsigned char'
26658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
26659$as_echo "$UINT8_T" >&6; }
26660
26661
26662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
26663$as_echo_n "checking for signed 16-bit type... " >&6; }
26664INT16_T='signed short'
26665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
26666$as_echo "$INT16_T" >&6; }
26667
26668
26669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
26670$as_echo_n "checking for unsigned 16-bit type... " >&6; }
26671UINT16_T='unsigned short'
26672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
26673$as_echo "$UINT16_T" >&6; }
26674
26675
26676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
26677$as_echo_n "checking for signed 32-bit type... " >&6; }
26678INT32_T='none'
26679INT32_F='none'
26680if test $ac_cv_sizeof_signed_int -eq 4; then
26681  INT32_T='signed int'
26682  INT32_F='""'
26683elif test $ac_cv_sizeof_signed_long -eq 4; then
26684  INT32_T='signed long'
26685  INT32_F='"l"'
26686fi
26687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
26688$as_echo "$INT32_T" >&6; }
26689
26690
26691
26692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
26693$as_echo_n "checking for unsigned 32-bit type... " >&6; }
26694UINT32_T='none'
26695UINT32_F='none'
26696if test $ac_cv_sizeof_unsigned_int -eq 4; then
26697  UINT32_T='unsigned int'
26698  UINT32_F='""'
26699elif test $ac_cv_sizeof_unsigned_long -eq 4; then
26700  UINT32_T='unsigned long'
26701  UINT32_F='"l"'
26702fi
26703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
26704$as_echo "$UINT32_T" >&6; }
26705
26706
26707
26708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
26709$as_echo_n "checking for signed 64-bit type... " >&6; }
26710INT64_T='none'
26711INT64_F='none'
26712if test $ac_cv_sizeof_signed_long -eq 8; then
26713  INT64_T='signed long'
26714  INT64_F='"l"'
26715elif test $ac_cv_sizeof_signed_long_long -eq 8; then
26716  INT64_T='signed long long'
26717  INT64_F='"ll"'
26718fi
26719case "${host_os}" in
26720  mingw* )
26721    INT64_F='"I64"'
26722    ;;
26723esac
26724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
26725$as_echo "$INT64_T" >&6; }
26726
26727
26728
26729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
26730$as_echo_n "checking for unsigned 64-bit type... " >&6; }
26731UINT64_T='none'
26732UINT64_F='none'
26733if test $ac_cv_sizeof_unsigned_long -eq 8; then
26734  UINT64_T='unsigned long'
26735  UINT64_F='"l"'
26736elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
26737  UINT64_T='unsigned long long'
26738  UINT64_F='"ll"'
26739fi
26740case "${host_os}" in
26741  mingw* )
26742    UINT64_F='"I64"'
26743    ;;
26744esac
26745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
26746$as_echo "$UINT64_T" >&6; }
26747
26748
26749
26750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
26751$as_echo_n "checking for unsigned maximum type... " >&6; }
26752UINTMAX_T='none'
26753UINTMAX_F='none'
26754if test "$UINT64_T" != 'none'; then
26755  UINTMAX_T=$UINT64_T
26756  UINTMAX_F=$UINT64_F
26757elif test "$UINT32_T" != 'none'; then
26758  UINTMAX_T=$UINT32_T
26759  UINTMAX_F=$UINT32_F
26760fi
26761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
26762$as_echo "$UINTMAX_T" >&6; }
26763
26764
26765
26766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
26767$as_echo_n "checking for pointer difference type... " >&6; }
26768UINTPTR_T='none'
26769UINTPTR_F='none'
26770if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
26771  UINTPTR_T='unsigned long'
26772  UINTPTR_F='"l"'
26773elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
26774  UINTPTR_T='unsigned long long'
26775  UINTPTR_F='"ll"'
26776fi
26777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
26778$as_echo "$UINTPTR_T" >&6; }
26779
26780
26781
26782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
26783$as_echo_n "checking whether our compiler supports __func__... " >&6; }
26784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26785/* end confdefs.h.  */
26786
26787int
26788main ()
26789{
26790{ const char *func = __func__; return(func != 0 ? 0 : 1); }
26791  ;
26792  return 0;
26793}
26794_ACEOF
26795if ac_fn_c_try_compile "$LINENO"; then :
26796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26797$as_echo "yes" >&6; }
26798else
26799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26800$as_echo "no" >&6; }
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
26802$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804/* end confdefs.h.  */
26805
26806int
26807main ()
26808{
26809{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
26810  ;
26811  return 0;
26812}
26813_ACEOF
26814if ac_fn_c_try_compile "$LINENO"; then :
26815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26816$as_echo "yes" >&6; }
26817
26818$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
26819
26820else
26821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26822$as_echo "no" >&6; }
26823
26824$as_echo "#define __func__ __FILE__" >>confdefs.h
26825
26826fi
26827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26828fi
26829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26830
26831########
26832#
26833# Check for functions
26834#
26835########
26836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
26837$as_echo_n "checking whether closedir returns void... " >&6; }
26838if ${ac_cv_func_closedir_void+:} false; then :
26839  $as_echo_n "(cached) " >&6
26840else
26841  if test "$cross_compiling" = yes; then :
26842  ac_cv_func_closedir_void=yes
26843else
26844  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26845/* end confdefs.h.  */
26846$ac_includes_default
26847#include <$ac_header_dirent>
26848#ifndef __cplusplus
26849int closedir ();
26850#endif
26851
26852int
26853main ()
26854{
26855return closedir (opendir (".")) != 0;
26856  ;
26857  return 0;
26858}
26859_ACEOF
26860if ac_fn_c_try_run "$LINENO"; then :
26861  ac_cv_func_closedir_void=no
26862else
26863  ac_cv_func_closedir_void=yes
26864fi
26865rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26866  conftest.$ac_objext conftest.beam conftest.$ac_ext
26867fi
26868
26869fi
26870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
26871$as_echo "$ac_cv_func_closedir_void" >&6; }
26872if test $ac_cv_func_closedir_void = yes; then
26873
26874$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
26875
26876fi
26877
26878
26879
26880
26881  for ac_header in $ac_header_list
26882do :
26883  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26884ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
26885"
26886if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26887  cat >>confdefs.h <<_ACEOF
26888#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26889_ACEOF
26890
26891fi
26892
26893done
26894
26895
26896
26897
26898
26899
26900
26901
26902for ac_func in getpagesize
26903do :
26904  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
26905if test "x$ac_cv_func_getpagesize" = xyes; then :
26906  cat >>confdefs.h <<_ACEOF
26907#define HAVE_GETPAGESIZE 1
26908_ACEOF
26909
26910fi
26911done
26912
26913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
26914$as_echo_n "checking for working mmap... " >&6; }
26915if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
26916  $as_echo_n "(cached) " >&6
26917else
26918  if test "$cross_compiling" = yes; then :
26919  ac_cv_func_mmap_fixed_mapped=no
26920else
26921  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922/* end confdefs.h.  */
26923$ac_includes_default
26924/* malloc might have been renamed as rpl_malloc. */
26925#undef malloc
26926
26927/* Thanks to Mike Haertel and Jim Avera for this test.
26928   Here is a matrix of mmap possibilities:
26929	mmap private not fixed
26930	mmap private fixed at somewhere currently unmapped
26931	mmap private fixed at somewhere already mapped
26932	mmap shared not fixed
26933	mmap shared fixed at somewhere currently unmapped
26934	mmap shared fixed at somewhere already mapped
26935   For private mappings, we should verify that changes cannot be read()
26936   back from the file, nor mmap's back from the file at a different
26937   address.  (There have been systems where private was not correctly
26938   implemented like the infamous i386 svr4.0, and systems where the
26939   VM page cache was not coherent with the file system buffer cache
26940   like early versions of FreeBSD and possibly contemporary NetBSD.)
26941   For shared mappings, we should conversely verify that changes get
26942   propagated back to all the places they're supposed to be.
26943
26944   Grep wants private fixed already mapped.
26945   The main things grep needs to know about mmap are:
26946   * does it exist and is it safe to write into the mmap'd area
26947   * how to use it (BSD variants)  */
26948
26949#include <fcntl.h>
26950#include <sys/mman.h>
26951
26952#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
26953char *malloc ();
26954#endif
26955
26956/* This mess was copied from the GNU getpagesize.h.  */
26957#ifndef HAVE_GETPAGESIZE
26958# ifdef _SC_PAGESIZE
26959#  define getpagesize() sysconf(_SC_PAGESIZE)
26960# else /* no _SC_PAGESIZE */
26961#  ifdef HAVE_SYS_PARAM_H
26962#   include <sys/param.h>
26963#   ifdef EXEC_PAGESIZE
26964#    define getpagesize() EXEC_PAGESIZE
26965#   else /* no EXEC_PAGESIZE */
26966#    ifdef NBPG
26967#     define getpagesize() NBPG * CLSIZE
26968#     ifndef CLSIZE
26969#      define CLSIZE 1
26970#     endif /* no CLSIZE */
26971#    else /* no NBPG */
26972#     ifdef NBPC
26973#      define getpagesize() NBPC
26974#     else /* no NBPC */
26975#      ifdef PAGESIZE
26976#       define getpagesize() PAGESIZE
26977#      endif /* PAGESIZE */
26978#     endif /* no NBPC */
26979#    endif /* no NBPG */
26980#   endif /* no EXEC_PAGESIZE */
26981#  else /* no HAVE_SYS_PARAM_H */
26982#   define getpagesize() 8192	/* punt totally */
26983#  endif /* no HAVE_SYS_PARAM_H */
26984# endif /* no _SC_PAGESIZE */
26985
26986#endif /* no HAVE_GETPAGESIZE */
26987
26988int
26989main ()
26990{
26991  char *data, *data2, *data3;
26992  const char *cdata2;
26993  int i, pagesize;
26994  int fd, fd2;
26995
26996  pagesize = getpagesize ();
26997
26998  /* First, make a file with some known garbage in it. */
26999  data = (char *) malloc (pagesize);
27000  if (!data)
27001    return 1;
27002  for (i = 0; i < pagesize; ++i)
27003    *(data + i) = rand ();
27004  umask (0);
27005  fd = creat ("conftest.mmap", 0600);
27006  if (fd < 0)
27007    return 2;
27008  if (write (fd, data, pagesize) != pagesize)
27009    return 3;
27010  close (fd);
27011
27012  /* Next, check that the tail of a page is zero-filled.  File must have
27013     non-zero length, otherwise we risk SIGBUS for entire page.  */
27014  fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
27015  if (fd2 < 0)
27016    return 4;
27017  cdata2 = "";
27018  if (write (fd2, cdata2, 1) != 1)
27019    return 5;
27020  data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
27021  if (data2 == MAP_FAILED)
27022    return 6;
27023  for (i = 0; i < pagesize; ++i)
27024    if (*(data2 + i))
27025      return 7;
27026  close (fd2);
27027  if (munmap (data2, pagesize))
27028    return 8;
27029
27030  /* Next, try to mmap the file at a fixed address which already has
27031     something else allocated at it.  If we can, also make sure that
27032     we see the same garbage.  */
27033  fd = open ("conftest.mmap", O_RDWR);
27034  if (fd < 0)
27035    return 9;
27036  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
27037		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
27038    return 10;
27039  for (i = 0; i < pagesize; ++i)
27040    if (*(data + i) != *(data2 + i))
27041      return 11;
27042
27043  /* Finally, make sure that changes to the mapped area do not
27044     percolate back to the file as seen by read().  (This is a bug on
27045     some variants of i386 svr4.0.)  */
27046  for (i = 0; i < pagesize; ++i)
27047    *(data2 + i) = *(data2 + i) + 1;
27048  data3 = (char *) malloc (pagesize);
27049  if (!data3)
27050    return 12;
27051  if (read (fd, data3, pagesize) != pagesize)
27052    return 13;
27053  for (i = 0; i < pagesize; ++i)
27054    if (*(data + i) != *(data3 + i))
27055      return 14;
27056  close (fd);
27057  return 0;
27058}
27059_ACEOF
27060if ac_fn_c_try_run "$LINENO"; then :
27061  ac_cv_func_mmap_fixed_mapped=yes
27062else
27063  ac_cv_func_mmap_fixed_mapped=no
27064fi
27065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27066  conftest.$ac_objext conftest.beam conftest.$ac_ext
27067fi
27068
27069fi
27070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
27071$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
27072if test $ac_cv_func_mmap_fixed_mapped = yes; then
27073
27074$as_echo "#define HAVE_MMAP 1" >>confdefs.h
27075
27076fi
27077rm -f conftest.mmap conftest.txt
27078
27079for ac_header in vfork.h
27080do :
27081  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
27082if test "x$ac_cv_header_vfork_h" = xyes; then :
27083  cat >>confdefs.h <<_ACEOF
27084#define HAVE_VFORK_H 1
27085_ACEOF
27086
27087fi
27088
27089done
27090
27091for ac_func in fork vfork
27092do :
27093  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27094ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27095if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27096  cat >>confdefs.h <<_ACEOF
27097#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27098_ACEOF
27099
27100fi
27101done
27102
27103if test "x$ac_cv_func_fork" = xyes; then
27104  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
27105$as_echo_n "checking for working fork... " >&6; }
27106if ${ac_cv_func_fork_works+:} false; then :
27107  $as_echo_n "(cached) " >&6
27108else
27109  if test "$cross_compiling" = yes; then :
27110  ac_cv_func_fork_works=cross
27111else
27112  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27113/* end confdefs.h.  */
27114$ac_includes_default
27115int
27116main ()
27117{
27118
27119	  /* By Ruediger Kuhlmann. */
27120	  return fork () < 0;
27121
27122  ;
27123  return 0;
27124}
27125_ACEOF
27126if ac_fn_c_try_run "$LINENO"; then :
27127  ac_cv_func_fork_works=yes
27128else
27129  ac_cv_func_fork_works=no
27130fi
27131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27132  conftest.$ac_objext conftest.beam conftest.$ac_ext
27133fi
27134
27135fi
27136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
27137$as_echo "$ac_cv_func_fork_works" >&6; }
27138
27139else
27140  ac_cv_func_fork_works=$ac_cv_func_fork
27141fi
27142if test "x$ac_cv_func_fork_works" = xcross; then
27143  case $host in
27144    *-*-amigaos* | *-*-msdosdjgpp*)
27145      # Override, as these systems have only a dummy fork() stub
27146      ac_cv_func_fork_works=no
27147      ;;
27148    *)
27149      ac_cv_func_fork_works=yes
27150      ;;
27151  esac
27152  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
27153$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
27154fi
27155ac_cv_func_vfork_works=$ac_cv_func_vfork
27156if test "x$ac_cv_func_vfork" = xyes; then
27157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
27158$as_echo_n "checking for working vfork... " >&6; }
27159if ${ac_cv_func_vfork_works+:} false; then :
27160  $as_echo_n "(cached) " >&6
27161else
27162  if test "$cross_compiling" = yes; then :
27163  ac_cv_func_vfork_works=cross
27164else
27165  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27166/* end confdefs.h.  */
27167/* Thanks to Paul Eggert for this test.  */
27168$ac_includes_default
27169#include <sys/wait.h>
27170#ifdef HAVE_VFORK_H
27171# include <vfork.h>
27172#endif
27173/* On some sparc systems, changes by the child to local and incoming
27174   argument registers are propagated back to the parent.  The compiler
27175   is told about this with #include <vfork.h>, but some compilers
27176   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
27177   static variable whose address is put into a register that is
27178   clobbered by the vfork.  */
27179static void
27180#ifdef __cplusplus
27181sparc_address_test (int arg)
27182# else
27183sparc_address_test (arg) int arg;
27184#endif
27185{
27186  static pid_t child;
27187  if (!child) {
27188    child = vfork ();
27189    if (child < 0) {
27190      perror ("vfork");
27191      _exit(2);
27192    }
27193    if (!child) {
27194      arg = getpid();
27195      write(-1, "", 0);
27196      _exit (arg);
27197    }
27198  }
27199}
27200
27201int
27202main ()
27203{
27204  pid_t parent = getpid ();
27205  pid_t child;
27206
27207  sparc_address_test (0);
27208
27209  child = vfork ();
27210
27211  if (child == 0) {
27212    /* Here is another test for sparc vfork register problems.  This
27213       test uses lots of local variables, at least as many local
27214       variables as main has allocated so far including compiler
27215       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
27216       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
27217       reuse the register of parent for one of the local variables,
27218       since it will think that parent can't possibly be used any more
27219       in this routine.  Assigning to the local variable will thus
27220       munge parent in the parent process.  */
27221    pid_t
27222      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
27223      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
27224    /* Convince the compiler that p..p7 are live; otherwise, it might
27225       use the same hardware register for all 8 local variables.  */
27226    if (p != p1 || p != p2 || p != p3 || p != p4
27227	|| p != p5 || p != p6 || p != p7)
27228      _exit(1);
27229
27230    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
27231       from child file descriptors.  If the child closes a descriptor
27232       before it execs or exits, this munges the parent's descriptor
27233       as well.  Test for this by closing stdout in the child.  */
27234    _exit(close(fileno(stdout)) != 0);
27235  } else {
27236    int status;
27237    struct stat st;
27238
27239    while (wait(&status) != child)
27240      ;
27241    return (
27242	 /* Was there some problem with vforking?  */
27243	 child < 0
27244
27245	 /* Did the child fail?  (This shouldn't happen.)  */
27246	 || status
27247
27248	 /* Did the vfork/compiler bug occur?  */
27249	 || parent != getpid()
27250
27251	 /* Did the file descriptor bug occur?  */
27252	 || fstat(fileno(stdout), &st) != 0
27253	 );
27254  }
27255}
27256_ACEOF
27257if ac_fn_c_try_run "$LINENO"; then :
27258  ac_cv_func_vfork_works=yes
27259else
27260  ac_cv_func_vfork_works=no
27261fi
27262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27263  conftest.$ac_objext conftest.beam conftest.$ac_ext
27264fi
27265
27266fi
27267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
27268$as_echo "$ac_cv_func_vfork_works" >&6; }
27269
27270fi;
27271if test "x$ac_cv_func_fork_works" = xcross; then
27272  ac_cv_func_vfork_works=$ac_cv_func_vfork
27273  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
27274$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
27275fi
27276
27277if test "x$ac_cv_func_vfork_works" = xyes; then
27278
27279$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
27280
27281else
27282
27283$as_echo "#define vfork fork" >>confdefs.h
27284
27285fi
27286if test "x$ac_cv_func_fork_works" = xyes; then
27287
27288$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
27289
27290fi
27291
27292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
27293$as_echo_n "checking for working memcmp... " >&6; }
27294if ${ac_cv_func_memcmp_working+:} false; then :
27295  $as_echo_n "(cached) " >&6
27296else
27297  if test "$cross_compiling" = yes; then :
27298  ac_cv_func_memcmp_working=no
27299else
27300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301/* end confdefs.h.  */
27302$ac_includes_default
27303int
27304main ()
27305{
27306
27307  /* Some versions of memcmp are not 8-bit clean.  */
27308  char c0 = '\100', c1 = '\200', c2 = '\201';
27309  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
27310    return 1;
27311
27312  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
27313     or more and with at least one buffer not starting on a 4-byte boundary.
27314     William Lewis provided this test program.   */
27315  {
27316    char foo[21];
27317    char bar[21];
27318    int i;
27319    for (i = 0; i < 4; i++)
27320      {
27321	char *a = foo + i;
27322	char *b = bar + i;
27323	strcpy (a, "--------01111111");
27324	strcpy (b, "--------10000000");
27325	if (memcmp (a, b, 16) >= 0)
27326	  return 1;
27327      }
27328    return 0;
27329  }
27330
27331  ;
27332  return 0;
27333}
27334_ACEOF
27335if ac_fn_c_try_run "$LINENO"; then :
27336  ac_cv_func_memcmp_working=yes
27337else
27338  ac_cv_func_memcmp_working=no
27339fi
27340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27341  conftest.$ac_objext conftest.beam conftest.$ac_ext
27342fi
27343
27344fi
27345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
27346$as_echo "$ac_cv_func_memcmp_working" >&6; }
27347test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
27348  *" memcmp.$ac_objext "* ) ;;
27349  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
27350 ;;
27351esac
27352
27353
27354for ac_header in sys/select.h sys/socket.h
27355do :
27356  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27357ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27359  cat >>confdefs.h <<_ACEOF
27360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27361_ACEOF
27362
27363fi
27364
27365done
27366
27367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
27368$as_echo_n "checking types of arguments for select... " >&6; }
27369if ${ac_cv_func_select_args+:} false; then :
27370  $as_echo_n "(cached) " >&6
27371else
27372  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
27373 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
27374  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
27375   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27376/* end confdefs.h.  */
27377$ac_includes_default
27378#ifdef HAVE_SYS_SELECT_H
27379# include <sys/select.h>
27380#endif
27381#ifdef HAVE_SYS_SOCKET_H
27382# include <sys/socket.h>
27383#endif
27384
27385int
27386main ()
27387{
27388extern int select ($ac_arg1,
27389					    $ac_arg234, $ac_arg234, $ac_arg234,
27390					    $ac_arg5);
27391  ;
27392  return 0;
27393}
27394_ACEOF
27395if ac_fn_c_try_compile "$LINENO"; then :
27396  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
27397fi
27398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27399  done
27400 done
27401done
27402# Provide a safe default value.
27403: "${ac_cv_func_select_args=int,int *,struct timeval *}"
27404
27405fi
27406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
27407$as_echo "$ac_cv_func_select_args" >&6; }
27408ac_save_IFS=$IFS; IFS=','
27409set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
27410IFS=$ac_save_IFS
27411shift
27412
27413cat >>confdefs.h <<_ACEOF
27414#define SELECT_TYPE_ARG1 $1
27415_ACEOF
27416
27417
27418cat >>confdefs.h <<_ACEOF
27419#define SELECT_TYPE_ARG234 ($2)
27420_ACEOF
27421
27422
27423cat >>confdefs.h <<_ACEOF
27424#define SELECT_TYPE_ARG5 ($3)
27425_ACEOF
27426
27427rm -f conftest*
27428
27429if ${ac_cv_func_setvbuf_reversed+:} false; then :
27430  $as_echo_n "(cached) " >&6
27431else
27432  ac_cv_func_setvbuf_reversed=no
27433fi
27434
27435
27436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27437$as_echo_n "checking return type of signal handlers... " >&6; }
27438if ${ac_cv_type_signal+:} false; then :
27439  $as_echo_n "(cached) " >&6
27440else
27441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27442/* end confdefs.h.  */
27443#include <sys/types.h>
27444#include <signal.h>
27445
27446int
27447main ()
27448{
27449return *(signal (0, 0)) (0) == 1;
27450  ;
27451  return 0;
27452}
27453_ACEOF
27454if ac_fn_c_try_compile "$LINENO"; then :
27455  ac_cv_type_signal=int
27456else
27457  ac_cv_type_signal=void
27458fi
27459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27460fi
27461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27462$as_echo "$ac_cv_type_signal" >&6; }
27463
27464cat >>confdefs.h <<_ACEOF
27465#define RETSIGTYPE $ac_cv_type_signal
27466_ACEOF
27467
27468
27469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
27470$as_echo_n "checking for working strtod... " >&6; }
27471if ${ac_cv_func_strtod+:} false; then :
27472  $as_echo_n "(cached) " >&6
27473else
27474  if test "$cross_compiling" = yes; then :
27475  ac_cv_func_strtod=no
27476else
27477  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478/* end confdefs.h.  */
27479
27480$ac_includes_default
27481#ifndef strtod
27482double strtod ();
27483#endif
27484int
27485main()
27486{
27487  {
27488    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
27489    char *string = " +69";
27490    char *term;
27491    double value;
27492    value = strtod (string, &term);
27493    if (value != 69 || term != (string + 4))
27494      return 1;
27495  }
27496
27497  {
27498    /* Under Solaris 2.4, strtod returns the wrong value for the
27499       terminating character under some conditions.  */
27500    char *string = "NaN";
27501    char *term;
27502    strtod (string, &term);
27503    if (term != string && *(term - 1) == 0)
27504      return 1;
27505  }
27506  return 0;
27507}
27508
27509_ACEOF
27510if ac_fn_c_try_run "$LINENO"; then :
27511  ac_cv_func_strtod=yes
27512else
27513  ac_cv_func_strtod=no
27514fi
27515rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27516  conftest.$ac_objext conftest.beam conftest.$ac_ext
27517fi
27518
27519fi
27520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
27521$as_echo "$ac_cv_func_strtod" >&6; }
27522if test $ac_cv_func_strtod = no; then
27523  case " $LIBOBJS " in
27524  *" strtod.$ac_objext "* ) ;;
27525  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
27526 ;;
27527esac
27528
27529ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
27530if test "x$ac_cv_func_pow" = xyes; then :
27531
27532fi
27533
27534if test $ac_cv_func_pow = no; then
27535  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
27536$as_echo_n "checking for pow in -lm... " >&6; }
27537if ${ac_cv_lib_m_pow+:} false; then :
27538  $as_echo_n "(cached) " >&6
27539else
27540  ac_check_lib_save_LIBS=$LIBS
27541LIBS="-lm  $LIBS"
27542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27543/* end confdefs.h.  */
27544
27545/* Override any GCC internal prototype to avoid an error.
27546   Use char because int might match the return type of a GCC
27547   builtin and then its argument prototype would still apply.  */
27548#ifdef __cplusplus
27549extern "C"
27550#endif
27551char pow ();
27552int
27553main ()
27554{
27555return pow ();
27556  ;
27557  return 0;
27558}
27559_ACEOF
27560if ac_fn_c_try_link "$LINENO"; then :
27561  ac_cv_lib_m_pow=yes
27562else
27563  ac_cv_lib_m_pow=no
27564fi
27565rm -f core conftest.err conftest.$ac_objext \
27566    conftest$ac_exeext conftest.$ac_ext
27567LIBS=$ac_check_lib_save_LIBS
27568fi
27569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
27570$as_echo "$ac_cv_lib_m_pow" >&6; }
27571if test "x$ac_cv_lib_m_pow" = xyes; then :
27572  POW_LIB=-lm
27573else
27574  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
27575$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
27576fi
27577
27578fi
27579
27580fi
27581
27582ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
27583if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
27584  ac_have_decl=1
27585else
27586  ac_have_decl=0
27587fi
27588
27589cat >>confdefs.h <<_ACEOF
27590#define HAVE_DECL_STRERROR_R $ac_have_decl
27591_ACEOF
27592
27593for ac_func in strerror_r
27594do :
27595  ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
27596if test "x$ac_cv_func_strerror_r" = xyes; then :
27597  cat >>confdefs.h <<_ACEOF
27598#define HAVE_STRERROR_R 1
27599_ACEOF
27600
27601fi
27602done
27603
27604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
27605$as_echo_n "checking whether strerror_r returns char *... " >&6; }
27606if ${ac_cv_func_strerror_r_char_p+:} false; then :
27607  $as_echo_n "(cached) " >&6
27608else
27609
27610    ac_cv_func_strerror_r_char_p=no
27611    if test $ac_cv_have_decl_strerror_r = yes; then
27612      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27613/* end confdefs.h.  */
27614$ac_includes_default
27615int
27616main ()
27617{
27618
27619	  char buf[100];
27620	  char x = *strerror_r (0, buf, sizeof buf);
27621	  char *p = strerror_r (0, buf, sizeof buf);
27622	  return !p || x;
27623
27624  ;
27625  return 0;
27626}
27627_ACEOF
27628if ac_fn_c_try_compile "$LINENO"; then :
27629  ac_cv_func_strerror_r_char_p=yes
27630fi
27631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27632    else
27633      # strerror_r is not declared.  Choose between
27634      # systems that have relatively inaccessible declarations for the
27635      # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
27636      # former has a strerror_r that returns char*, while the latter
27637      # has a strerror_r that returns `int'.
27638      # This test should segfault on the DEC system.
27639      if test "$cross_compiling" = yes; then :
27640  :
27641else
27642  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27643/* end confdefs.h.  */
27644$ac_includes_default
27645	extern char *strerror_r ();
27646int
27647main ()
27648{
27649char buf[100];
27650	  char x = *strerror_r (0, buf, sizeof buf);
27651	  return ! isalpha (x);
27652  ;
27653  return 0;
27654}
27655_ACEOF
27656if ac_fn_c_try_run "$LINENO"; then :
27657  ac_cv_func_strerror_r_char_p=yes
27658fi
27659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27660  conftest.$ac_objext conftest.beam conftest.$ac_ext
27661fi
27662
27663    fi
27664
27665fi
27666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
27667$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
27668if test $ac_cv_func_strerror_r_char_p = yes; then
27669
27670$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
27671
27672fi
27673
27674for ac_func in vprintf
27675do :
27676  ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27677if test "x$ac_cv_func_vprintf" = xyes; then :
27678  cat >>confdefs.h <<_ACEOF
27679#define HAVE_VPRINTF 1
27680_ACEOF
27681
27682ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27683if test "x$ac_cv_func__doprnt" = xyes; then :
27684
27685$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27686
27687fi
27688
27689fi
27690done
27691
27692
27693
27694#
27695# Find math library
27696#
27697MATH_LIBS=''
27698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
27699$as_echo_n "checking for sqrt in -lm... " >&6; }
27700if ${ac_cv_lib_m_sqrt+:} false; then :
27701  $as_echo_n "(cached) " >&6
27702else
27703  ac_check_lib_save_LIBS=$LIBS
27704LIBS="-lm  $LIBS"
27705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27706/* end confdefs.h.  */
27707
27708/* Override any GCC internal prototype to avoid an error.
27709   Use char because int might match the return type of a GCC
27710   builtin and then its argument prototype would still apply.  */
27711#ifdef __cplusplus
27712extern "C"
27713#endif
27714char sqrt ();
27715int
27716main ()
27717{
27718return sqrt ();
27719  ;
27720  return 0;
27721}
27722_ACEOF
27723if ac_fn_c_try_link "$LINENO"; then :
27724  ac_cv_lib_m_sqrt=yes
27725else
27726  ac_cv_lib_m_sqrt=no
27727fi
27728rm -f core conftest.err conftest.$ac_objext \
27729    conftest$ac_exeext conftest.$ac_ext
27730LIBS=$ac_check_lib_save_LIBS
27731fi
27732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
27733$as_echo "$ac_cv_lib_m_sqrt" >&6; }
27734if test "x$ac_cv_lib_m_sqrt" = xyes; then :
27735  MATH_LIBS="-lm"
27736fi
27737
27738LIBS="$MATH_LIBS $LIBS"
27739
27740
27741#
27742# Find socket library
27743#
27744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
27745$as_echo_n "checking for library containing gethostbyname... " >&6; }
27746if ${ac_cv_search_gethostbyname+:} false; then :
27747  $as_echo_n "(cached) " >&6
27748else
27749  ac_func_search_save_LIBS=$LIBS
27750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27751/* end confdefs.h.  */
27752
27753/* Override any GCC internal prototype to avoid an error.
27754   Use char because int might match the return type of a GCC
27755   builtin and then its argument prototype would still apply.  */
27756#ifdef __cplusplus
27757extern "C"
27758#endif
27759char gethostbyname ();
27760int
27761main ()
27762{
27763return gethostbyname ();
27764  ;
27765  return 0;
27766}
27767_ACEOF
27768for ac_lib in '' resolv nsl; do
27769  if test -z "$ac_lib"; then
27770    ac_res="none required"
27771  else
27772    ac_res=-l$ac_lib
27773    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27774  fi
27775  if ac_fn_c_try_link "$LINENO"; then :
27776  ac_cv_search_gethostbyname=$ac_res
27777fi
27778rm -f core conftest.err conftest.$ac_objext \
27779    conftest$ac_exeext
27780  if ${ac_cv_search_gethostbyname+:} false; then :
27781  break
27782fi
27783done
27784if ${ac_cv_search_gethostbyname+:} false; then :
27785
27786else
27787  ac_cv_search_gethostbyname=no
27788fi
27789rm conftest.$ac_ext
27790LIBS=$ac_func_search_save_LIBS
27791fi
27792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
27793$as_echo "$ac_cv_search_gethostbyname" >&6; }
27794ac_res=$ac_cv_search_gethostbyname
27795if test "$ac_res" != no; then :
27796  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27797
27798fi
27799
27800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
27801$as_echo_n "checking for library containing socket... " >&6; }
27802if ${ac_cv_search_socket+:} false; then :
27803  $as_echo_n "(cached) " >&6
27804else
27805  ac_func_search_save_LIBS=$LIBS
27806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27807/* end confdefs.h.  */
27808
27809/* Override any GCC internal prototype to avoid an error.
27810   Use char because int might match the return type of a GCC
27811   builtin and then its argument prototype would still apply.  */
27812#ifdef __cplusplus
27813extern "C"
27814#endif
27815char socket ();
27816int
27817main ()
27818{
27819return socket ();
27820  ;
27821  return 0;
27822}
27823_ACEOF
27824for ac_lib in '' socket; do
27825  if test -z "$ac_lib"; then
27826    ac_res="none required"
27827  else
27828    ac_res=-l$ac_lib
27829    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27830  fi
27831  if ac_fn_c_try_link "$LINENO"; then :
27832  ac_cv_search_socket=$ac_res
27833fi
27834rm -f core conftest.err conftest.$ac_objext \
27835    conftest$ac_exeext
27836  if ${ac_cv_search_socket+:} false; then :
27837  break
27838fi
27839done
27840if ${ac_cv_search_socket+:} false; then :
27841
27842else
27843  ac_cv_search_socket=no
27844fi
27845rm conftest.$ac_ext
27846LIBS=$ac_func_search_save_LIBS
27847fi
27848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
27849$as_echo "$ac_cv_search_socket" >&6; }
27850ac_res=$ac_cv_search_socket
27851if test "$ac_res" != no; then :
27852  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27853
27854
27855$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
27856
27857  MAGICK_FEATURES="DPC $MAGICK_FEATURES"
27858
27859fi
27860
27861
27862for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio erf _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir sendfile setlocale socket sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
27863do :
27864  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27865ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27866if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27867  cat >>confdefs.h <<_ACEOF
27868#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27869_ACEOF
27870
27871fi
27872done
27873
27874
27875#
27876# Check for clock_gettime().
27877#
27878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
27879$as_echo_n "checking for library containing clock_gettime... " >&6; }
27880if ${ac_cv_search_clock_gettime+:} false; then :
27881  $as_echo_n "(cached) " >&6
27882else
27883  ac_func_search_save_LIBS=$LIBS
27884cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27885/* end confdefs.h.  */
27886
27887/* Override any GCC internal prototype to avoid an error.
27888   Use char because int might match the return type of a GCC
27889   builtin and then its argument prototype would still apply.  */
27890#ifdef __cplusplus
27891extern "C"
27892#endif
27893char clock_gettime ();
27894int
27895main ()
27896{
27897return clock_gettime ();
27898  ;
27899  return 0;
27900}
27901_ACEOF
27902for ac_lib in '' rt; do
27903  if test -z "$ac_lib"; then
27904    ac_res="none required"
27905  else
27906    ac_res=-l$ac_lib
27907    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
27908  fi
27909  if ac_fn_c_try_link "$LINENO"; then :
27910  ac_cv_search_clock_gettime=$ac_res
27911fi
27912rm -f core conftest.err conftest.$ac_objext \
27913    conftest$ac_exeext
27914  if ${ac_cv_search_clock_gettime+:} false; then :
27915  break
27916fi
27917done
27918if ${ac_cv_search_clock_gettime+:} false; then :
27919
27920else
27921  ac_cv_search_clock_gettime=no
27922fi
27923rm conftest.$ac_ext
27924LIBS=$ac_func_search_save_LIBS
27925fi
27926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
27927$as_echo "$ac_cv_search_clock_gettime" >&6; }
27928ac_res=$ac_cv_search_clock_gettime
27929if test "$ac_res" != no; then :
27930  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27931
27932
27933$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
27934
27935  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
27936$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
27937  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27938/* end confdefs.h.  */
27939
27940    #include <time.h>
27941int
27942main ()
27943{
27944clockid_t clockType = CLOCK_REALTIME;
27945  ;
27946  return 0;
27947}
27948_ACEOF
27949if ac_fn_c_try_compile "$LINENO"; then :
27950
27951        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27952$as_echo "yes" >&6; }
27953
27954$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
27955
27956
27957else
27958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27959$as_echo "no" >&6; }
27960
27961fi
27962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963
27964else
27965
27966    for ac_func in gettimeofday ftime
27967do :
27968  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27969ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27970if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27971  cat >>confdefs.h <<_ACEOF
27972#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27973_ACEOF
27974 break
27975fi
27976done
27977
27978
27979
27980fi
27981
27982
27983########
27984#
27985# Check for function prototypes
27986#
27987########
27988
27989ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
27990#include <unistd.h>
27991"
27992if test "x$ac_cv_have_decl_pread" = xyes; then :
27993  ac_have_decl=1
27994else
27995  ac_have_decl=0
27996fi
27997
27998cat >>confdefs.h <<_ACEOF
27999#define HAVE_DECL_PREAD $ac_have_decl
28000_ACEOF
28001ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
28002#include <unistd.h>
28003"
28004if test "x$ac_cv_have_decl_pwrite" = xyes; then :
28005  ac_have_decl=1
28006else
28007  ac_have_decl=0
28008fi
28009
28010cat >>confdefs.h <<_ACEOF
28011#define HAVE_DECL_PWRITE $ac_have_decl
28012_ACEOF
28013
28014
28015ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
28016#include <strings.h>
28017"
28018if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
28019  ac_have_decl=1
28020else
28021  ac_have_decl=0
28022fi
28023
28024cat >>confdefs.h <<_ACEOF
28025#define HAVE_DECL_STRLCPY $ac_have_decl
28026_ACEOF
28027
28028
28029ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
28030#include <stdio.h>
28031#include <stdarg.h>
28032"
28033if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
28034  ac_have_decl=1
28035else
28036  ac_have_decl=0
28037fi
28038
28039cat >>confdefs.h <<_ACEOF
28040#define HAVE_DECL_VSNPRINTF $ac_have_decl
28041_ACEOF
28042
28043
28044########
28045#
28046# C++ Support Tests (For Magick++)
28047#
28048########
28049have_magick_plus_plus='no'
28050if test "$with_magick_plus_plus" = 'yes'; then
28051    OLIBS="$LIBS"
28052    LIBS=''
28053    ac_ext=cpp
28054ac_cpp='$CXXCPP $CPPFLAGS'
28055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28058
28059
28060    # Full set of headers used...
28061    # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
28062    # functional iomanip iosfwd iostream iterator list string strstream utility
28063    ac_ext=cpp
28064ac_cpp='$CXXCPP $CPPFLAGS'
28065ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28066ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28067ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28068
28069    ac_ext=cpp
28070ac_cpp='$CXXCPP $CPPFLAGS'
28071ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28072ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28073ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28074if test -z "$CXX"; then
28075  if test -n "$CCC"; then
28076    CXX=$CCC
28077  else
28078    if test -n "$ac_tool_prefix"; then
28079  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28080  do
28081    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28082set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28084$as_echo_n "checking for $ac_word... " >&6; }
28085if ${ac_cv_prog_CXX+:} false; then :
28086  $as_echo_n "(cached) " >&6
28087else
28088  if test -n "$CXX"; then
28089  ac_cv_prog_CXX="$CXX" # Let the user override the test.
28090else
28091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28092for as_dir in $PATH
28093do
28094  IFS=$as_save_IFS
28095  test -z "$as_dir" && as_dir=.
28096    for ac_exec_ext in '' $ac_executable_extensions; do
28097  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28098    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28099    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28100    break 2
28101  fi
28102done
28103  done
28104IFS=$as_save_IFS
28105
28106fi
28107fi
28108CXX=$ac_cv_prog_CXX
28109if test -n "$CXX"; then
28110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
28111$as_echo "$CXX" >&6; }
28112else
28113  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28114$as_echo "no" >&6; }
28115fi
28116
28117
28118    test -n "$CXX" && break
28119  done
28120fi
28121if test -z "$CXX"; then
28122  ac_ct_CXX=$CXX
28123  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
28124do
28125  # Extract the first word of "$ac_prog", so it can be a program name with args.
28126set dummy $ac_prog; ac_word=$2
28127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28128$as_echo_n "checking for $ac_word... " >&6; }
28129if ${ac_cv_prog_ac_ct_CXX+:} false; then :
28130  $as_echo_n "(cached) " >&6
28131else
28132  if test -n "$ac_ct_CXX"; then
28133  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28134else
28135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28136for as_dir in $PATH
28137do
28138  IFS=$as_save_IFS
28139  test -z "$as_dir" && as_dir=.
28140    for ac_exec_ext in '' $ac_executable_extensions; do
28141  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28142    ac_cv_prog_ac_ct_CXX="$ac_prog"
28143    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28144    break 2
28145  fi
28146done
28147  done
28148IFS=$as_save_IFS
28149
28150fi
28151fi
28152ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28153if test -n "$ac_ct_CXX"; then
28154  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
28155$as_echo "$ac_ct_CXX" >&6; }
28156else
28157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28158$as_echo "no" >&6; }
28159fi
28160
28161
28162  test -n "$ac_ct_CXX" && break
28163done
28164
28165  if test "x$ac_ct_CXX" = x; then
28166    CXX="g++"
28167  else
28168    case $cross_compiling:$ac_tool_warned in
28169yes:)
28170{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28172ac_tool_warned=yes ;;
28173esac
28174    CXX=$ac_ct_CXX
28175  fi
28176fi
28177
28178  fi
28179fi
28180# Provide some information about the compiler.
28181$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
28182set X $ac_compile
28183ac_compiler=$2
28184for ac_option in --version -v -V -qversion; do
28185  { { ac_try="$ac_compiler $ac_option >&5"
28186case "(($ac_try" in
28187  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28188  *) ac_try_echo=$ac_try;;
28189esac
28190eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28191$as_echo "$ac_try_echo"; } >&5
28192  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
28193  ac_status=$?
28194  if test -s conftest.err; then
28195    sed '10a\
28196... rest of stderr output deleted ...
28197         10q' conftest.err >conftest.er1
28198    cat conftest.er1 >&5
28199  fi
28200  rm -f conftest.er1 conftest.err
28201  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28202  test $ac_status = 0; }
28203done
28204
28205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
28206$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
28207if ${ac_cv_cxx_compiler_gnu+:} false; then :
28208  $as_echo_n "(cached) " >&6
28209else
28210  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28211/* end confdefs.h.  */
28212
28213int
28214main ()
28215{
28216#ifndef __GNUC__
28217       choke me
28218#endif
28219
28220  ;
28221  return 0;
28222}
28223_ACEOF
28224if ac_fn_cxx_try_compile "$LINENO"; then :
28225  ac_compiler_gnu=yes
28226else
28227  ac_compiler_gnu=no
28228fi
28229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28230ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28231
28232fi
28233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
28234$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
28235if test $ac_compiler_gnu = yes; then
28236  GXX=yes
28237else
28238  GXX=
28239fi
28240ac_test_CXXFLAGS=${CXXFLAGS+set}
28241ac_save_CXXFLAGS=$CXXFLAGS
28242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
28243$as_echo_n "checking whether $CXX accepts -g... " >&6; }
28244if ${ac_cv_prog_cxx_g+:} false; then :
28245  $as_echo_n "(cached) " >&6
28246else
28247  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
28248   ac_cxx_werror_flag=yes
28249   ac_cv_prog_cxx_g=no
28250   CXXFLAGS="-g"
28251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28252/* end confdefs.h.  */
28253
28254int
28255main ()
28256{
28257
28258  ;
28259  return 0;
28260}
28261_ACEOF
28262if ac_fn_cxx_try_compile "$LINENO"; then :
28263  ac_cv_prog_cxx_g=yes
28264else
28265  CXXFLAGS=""
28266      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28267/* end confdefs.h.  */
28268
28269int
28270main ()
28271{
28272
28273  ;
28274  return 0;
28275}
28276_ACEOF
28277if ac_fn_cxx_try_compile "$LINENO"; then :
28278
28279else
28280  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28281	 CXXFLAGS="-g"
28282	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28283/* end confdefs.h.  */
28284
28285int
28286main ()
28287{
28288
28289  ;
28290  return 0;
28291}
28292_ACEOF
28293if ac_fn_cxx_try_compile "$LINENO"; then :
28294  ac_cv_prog_cxx_g=yes
28295fi
28296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28297fi
28298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28299fi
28300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28301   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
28302fi
28303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
28304$as_echo "$ac_cv_prog_cxx_g" >&6; }
28305if test "$ac_test_CXXFLAGS" = set; then
28306  CXXFLAGS=$ac_save_CXXFLAGS
28307elif test $ac_cv_prog_cxx_g = yes; then
28308  if test "$GXX" = yes; then
28309    CXXFLAGS="-g -O2"
28310  else
28311    CXXFLAGS="-g"
28312  fi
28313else
28314  if test "$GXX" = yes; then
28315    CXXFLAGS="-O2"
28316  else
28317    CXXFLAGS=
28318  fi
28319fi
28320ac_ext=cpp
28321ac_cpp='$CXXCPP $CPPFLAGS'
28322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28325
28326depcc="$CXX"  am_compiler_list=
28327
28328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
28329$as_echo_n "checking dependency style of $depcc... " >&6; }
28330if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
28331  $as_echo_n "(cached) " >&6
28332else
28333  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
28334  # We make a subdir and do the tests there.  Otherwise we can end up
28335  # making bogus files that we don't know about and never remove.  For
28336  # instance it was reported that on HP-UX the gcc test will end up
28337  # making a dummy file named 'D' -- because '-MD' means "put the output
28338  # in D".
28339  rm -rf conftest.dir
28340  mkdir conftest.dir
28341  # Copy depcomp to subdir because otherwise we won't find it if we're
28342  # using a relative directory.
28343  cp "$am_depcomp" conftest.dir
28344  cd conftest.dir
28345  # We will build objects and dependencies in a subdirectory because
28346  # it helps to detect inapplicable dependency modes.  For instance
28347  # both Tru64's cc and ICC support -MD to output dependencies as a
28348  # side effect of compilation, but ICC will put the dependencies in
28349  # the current directory while Tru64 will put them in the object
28350  # directory.
28351  mkdir sub
28352
28353  am_cv_CXX_dependencies_compiler_type=none
28354  if test "$am_compiler_list" = ""; then
28355     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
28356  fi
28357  am__universal=false
28358  case " $depcc " in #(
28359     *\ -arch\ *\ -arch\ *) am__universal=true ;;
28360     esac
28361
28362  for depmode in $am_compiler_list; do
28363    # Setup a source with many dependencies, because some compilers
28364    # like to wrap large dependency lists on column 80 (with \), and
28365    # we should not choose a depcomp mode which is confused by this.
28366    #
28367    # We need to recreate these files for each test, as the compiler may
28368    # overwrite some of them when testing with obscure command lines.
28369    # This happens at least with the AIX C compiler.
28370    : > sub/conftest.c
28371    for i in 1 2 3 4 5 6; do
28372      echo '#include "conftst'$i'.h"' >> sub/conftest.c
28373      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
28374      # Solaris 10 /bin/sh.
28375      echo '/* dummy */' > sub/conftst$i.h
28376    done
28377    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
28378
28379    # We check with '-c' and '-o' for the sake of the "dashmstdout"
28380    # mode.  It turns out that the SunPro C++ compiler does not properly
28381    # handle '-M -o', and we need to detect this.  Also, some Intel
28382    # versions had trouble with output in subdirs.
28383    am__obj=sub/conftest.${OBJEXT-o}
28384    am__minus_obj="-o $am__obj"
28385    case $depmode in
28386    gcc)
28387      # This depmode causes a compiler race in universal mode.
28388      test "$am__universal" = false || continue
28389      ;;
28390    nosideeffect)
28391      # After this tag, mechanisms are not by side-effect, so they'll
28392      # only be used when explicitly requested.
28393      if test "x$enable_dependency_tracking" = xyes; then
28394	continue
28395      else
28396	break
28397      fi
28398      ;;
28399    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
28400      # This compiler won't grok '-c -o', but also, the minuso test has
28401      # not run yet.  These depmodes are late enough in the game, and
28402      # so weak that their functioning should not be impacted.
28403      am__obj=conftest.${OBJEXT-o}
28404      am__minus_obj=
28405      ;;
28406    none) break ;;
28407    esac
28408    if depmode=$depmode \
28409       source=sub/conftest.c object=$am__obj \
28410       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
28411       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
28412         >/dev/null 2>conftest.err &&
28413       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
28414       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
28415       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
28416       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
28417      # icc doesn't choke on unknown options, it will just issue warnings
28418      # or remarks (even with -Werror).  So we grep stderr for any message
28419      # that says an option was ignored or not supported.
28420      # When given -MP, icc 7.0 and 7.1 complain thusly:
28421      #   icc: Command line warning: ignoring option '-M'; no argument required
28422      # The diagnosis changed in icc 8.0:
28423      #   icc: Command line remark: option '-MP' not supported
28424      if (grep 'ignoring option' conftest.err ||
28425          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
28426        am_cv_CXX_dependencies_compiler_type=$depmode
28427        break
28428      fi
28429    fi
28430  done
28431
28432  cd ..
28433  rm -rf conftest.dir
28434else
28435  am_cv_CXX_dependencies_compiler_type=none
28436fi
28437
28438fi
28439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
28440$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
28441CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
28442
28443 if
28444  test "x$enable_dependency_tracking" != xno \
28445  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
28446  am__fastdepCXX_TRUE=
28447  am__fastdepCXX_FALSE='#'
28448else
28449  am__fastdepCXX_TRUE='#'
28450  am__fastdepCXX_FALSE=
28451fi
28452
28453
28454     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
28455$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
28456if ${ax_cv_cxx_bool+:} false; then :
28457  $as_echo_n "(cached) " >&6
28458else
28459       ac_ext=cpp
28460ac_cpp='$CXXCPP $CPPFLAGS'
28461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28464
28465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28466/* end confdefs.h.  */
28467       int f(int  x){return 1;}
28468                        int f(char x){return 1;}
28469                        int f(bool x){return 1;}
28470int
28471main ()
28472{
28473bool b = true; return f(b);
28474  ;
28475  return 0;
28476}
28477_ACEOF
28478if ac_fn_cxx_try_compile "$LINENO"; then :
28479  ax_cv_cxx_bool=yes
28480else
28481  ax_cv_cxx_bool=no
28482fi
28483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28484     ac_ext=cpp
28485ac_cpp='$CXXCPP $CPPFLAGS'
28486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28489
28490
28491fi
28492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
28493$as_echo "$ax_cv_cxx_bool" >&6; }
28494  if test "X$ax_cv_cxx_bool" = Xyes; then :
28495
28496$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
28497
28498fi
28499
28500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
28501$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
28502if ${ax_cv_cxx_namespaces+:} false; then :
28503  $as_echo_n "(cached) " >&6
28504else
28505  ac_ext=cpp
28506ac_cpp='$CXXCPP $CPPFLAGS'
28507ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28508ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28509ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28510
28511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28512/* end confdefs.h.  */
28513namespace Outer { namespace Inner { int i = 0; }}
28514                                   using namespace Outer::Inner; int foo(void) { return i;}
28515_ACEOF
28516if ac_fn_cxx_try_compile "$LINENO"; then :
28517  ax_cv_cxx_namespaces=yes
28518else
28519  ax_cv_cxx_namespaces=no
28520fi
28521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28522 ac_ext=cpp
28523ac_cpp='$CXXCPP $CPPFLAGS'
28524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28527
28528
28529fi
28530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
28531$as_echo "$ax_cv_cxx_namespaces" >&6; }
28532if test "$ax_cv_cxx_namespaces" = yes; then
28533
28534$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
28535
28536fi
28537
28538
28539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
28540$as_echo_n "checking if g++ supports namespace std... " >&6; }
28541if ${ax_cv_cxx_have_std_namespace+:} false; then :
28542  $as_echo_n "(cached) " >&6
28543else
28544
28545  ac_ext=cpp
28546ac_cpp='$CXXCPP $CPPFLAGS'
28547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28550
28551  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28552/* end confdefs.h.  */
28553#include <iostream>
28554                  std::istream& is = std::cin;
28555int
28556main ()
28557{
28558
28559  ;
28560  return 0;
28561}
28562_ACEOF
28563if ac_fn_cxx_try_compile "$LINENO"; then :
28564  ax_cv_cxx_have_std_namespace=yes
28565else
28566  ax_cv_cxx_have_std_namespace=no
28567fi
28568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28569  ac_ext=cpp
28570ac_cpp='$CXXCPP $CPPFLAGS'
28571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28574
28575
28576fi
28577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
28578$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
28579  if test "$ax_cv_cxx_have_std_namespace" = yes; then
28580
28581$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
28582
28583  fi
28584
28585    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
28586$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
28587if ${ac_cv_cxx_have_std_libs+:} false; then :
28588  $as_echo_n "(cached) " >&6
28589else
28590
28591
28592 ac_ext=cpp
28593ac_cpp='$CXXCPP $CPPFLAGS'
28594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28597
28598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28599/* end confdefs.h.  */
28600#include <iostream>
28601#include <map>
28602#include <iomanip>
28603#include <cmath>
28604#ifdef HAVE_NAMESPACES
28605using namespace std;
28606#endif
28607int
28608main ()
28609{
28610return 0;
28611  ;
28612  return 0;
28613}
28614_ACEOF
28615if ac_fn_cxx_try_compile "$LINENO"; then :
28616  ac_cv_cxx_have_std_libs=yes
28617else
28618  ac_cv_cxx_have_std_libs=no
28619fi
28620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28621 ac_ext=cpp
28622ac_cpp='$CXXCPP $CPPFLAGS'
28623ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28624ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28625ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28626
28627
28628fi
28629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
28630$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
28631if test "$ac_cv_cxx_have_std_libs" = yes; then
28632
28633$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
28634
28635fi
28636
28637
28638  OPENMP_CXXFLAGS=
28639  # Check whether --enable-openmp was given.
28640if test "${enable_openmp+set}" = set; then :
28641  enableval=$enable_openmp;
28642fi
28643
28644  if test "$enable_openmp" != no; then
28645    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
28646$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
28647if ${ac_cv_prog_cxx_openmp+:} false; then :
28648  $as_echo_n "(cached) " >&6
28649else
28650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28651/* end confdefs.h.  */
28652
28653#ifndef _OPENMP
28654 choke me
28655#endif
28656#include <omp.h>
28657int main () { return omp_get_num_threads (); }
28658
28659_ACEOF
28660if ac_fn_cxx_try_link "$LINENO"; then :
28661  ac_cv_prog_cxx_openmp='none needed'
28662else
28663  ac_cv_prog_cxx_openmp='unsupported'
28664	  	  	  	  	  	  	                                	  	  	  	  	  	  for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
28665                           -Popenmp --openmp; do
28666	    ac_save_CXXFLAGS=$CXXFLAGS
28667	    CXXFLAGS="$CXXFLAGS $ac_option"
28668	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669/* end confdefs.h.  */
28670
28671#ifndef _OPENMP
28672 choke me
28673#endif
28674#include <omp.h>
28675int main () { return omp_get_num_threads (); }
28676
28677_ACEOF
28678if ac_fn_cxx_try_link "$LINENO"; then :
28679  ac_cv_prog_cxx_openmp=$ac_option
28680fi
28681rm -f core conftest.err conftest.$ac_objext \
28682    conftest$ac_exeext conftest.$ac_ext
28683	    CXXFLAGS=$ac_save_CXXFLAGS
28684	    if test "$ac_cv_prog_cxx_openmp" != unsupported; then
28685	      break
28686	    fi
28687	  done
28688fi
28689rm -f core conftest.err conftest.$ac_objext \
28690    conftest$ac_exeext conftest.$ac_ext
28691fi
28692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
28693$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
28694    case $ac_cv_prog_cxx_openmp in #(
28695      "none needed" | unsupported)
28696	;; #(
28697      *)
28698	OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
28699    esac
28700  fi
28701
28702
28703    ac_ext=c
28704ac_cpp='$CPP $CPPFLAGS'
28705ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28706ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28707ac_compiler_gnu=$ac_cv_c_compiler_gnu
28708
28709
28710    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
28711$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
28712    if \
28713        test $ax_cv_cxx_bool = 'yes' && \
28714        test $ax_cv_cxx_namespaces = 'yes' && \
28715        test $ac_cv_cxx_have_std_libs = 'yes' && \
28716        test $ax_cv_cxx_have_std_namespace = 'yes'; then
28717        have_magick_plus_plus='yes'
28718    else
28719        have_magick_plus_plus='no (failed tests)'
28720    fi
28721    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
28722$as_echo "$have_magick_plus_plus" >&6; }
28723    LIBS="$OLIBS"
28724fi
28725 if test "$have_magick_plus_plus" = 'yes'; then
28726  WITH_MAGICK_PLUS_PLUS_TRUE=
28727  WITH_MAGICK_PLUS_PLUS_FALSE='#'
28728else
28729  WITH_MAGICK_PLUS_PLUS_TRUE='#'
28730  WITH_MAGICK_PLUS_PLUS_FALSE=
28731fi
28732
28733
28734# Only check for delegate libraries in subdirectories if requested.
28735if test "$enable_delegate_build" != 'no'; then
28736    # Check for delegate sub-directories and add -I & -L options as required.
28737    # This presumes that delegates are installed as detailed in the ImageMagick
28738    # README. If delegates are installed in a standard location where the
28739    # compiler will automatically find them then these options should not be
28740    # required.
28741
28742    #
28743    # Most delegates have includes in the same directory as the library, but not all...
28744    #
28745    # Includes
28746    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
28747        if test -d "$builddir/$dir"; then
28748            CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
28749        else
28750            if test -d "$srcdirfull/$dir"; then
28751                CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
28752            fi
28753        fi
28754    done
28755
28756    # Libraries
28757    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
28758    if test -d "$builddir/$dir/.libs"; then
28759        LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
28760    else
28761        if test -d "$srcdirfull/$dir/.libs"; then
28762            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
28763        fi
28764    fi
28765    if test -d "$builddir/$dir"; then
28766        LDFLAGS="$LDFLAGS -L$builddir/$dir"
28767    else
28768        if test -d "$srcdirfull/$dir"; then
28769            LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
28770        fi
28771    fi
28772  done
28773fi
28774
28775# Assume that delegate headers reside under same directory as ImageMagick
28776# installation prefix.
28777MAGICK_CPPFLAGS="-I$INCLUDE_DIR/${PACKAGE_NAME}-$MAGICK_MAJOR_VERSION $MAGICK_CPPFLAGS"
28778
28779#
28780# Find the X11 RGB database
28781#
28782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
28783$as_echo_n "checking for X11 configure files... " >&6; }
28784if ${im_cv_x_configure+:} false; then :
28785  $as_echo_n "(cached) " >&6
28786else
28787  # Look for the header file in a standard set of common directories.
28788# Check X11 before X11Rn because it is often a symlink to the current release.
28789    for ac_dir in          \
28790    /lib/usr/lib/X11       \
28791    /usr/X11/lib           \
28792    /usr/X11R4/lib         \
28793    /usr/X11R5/lib         \
28794    /usr/X11R6/lib         \
28795    /usr/X11R7/lib         \
28796    /usr/X386/lib          \
28797    /usr/XFree86/lib/X11   \
28798    /usr/athena/lib        \
28799    /usr/lib               \
28800    /usr/lib/X11           \
28801    /usr/lib/X11R4         \
28802    /usr/lib/X11R5         \
28803    /usr/lib/X11R6         \
28804    /usr/lib/X11R7         \
28805    /usr/local/X11/lib     \
28806    /usr/local/X11R4/lib   \
28807    /usr/local/X11R5/lib   \
28808    /usr/local/X11R6/lib   \
28809    /usr/local/lib         \
28810    /usr/local/lib/X11     \
28811    /usr/local/lib/X11R4   \
28812    /usr/local/lib/X11R5   \
28813    /usr/local/lib/X11R6   \
28814    /usr/local/lib/X11R7   \
28815    /usr/local/x11r5/lib   \
28816    /usr/lpp/Xamples/lib   \
28817    /usr/openwin/lib       \
28818    /usr/openwin/share/lib \
28819    /usr/unsupported/lib   \
28820    /usr/x386/lib          \
28821    ; do
28822    if test -f "$ac_dir/X11/rgb.txt"; then
28823      im_cv_x_configure="$ac_dir/X11/"
28824      break
28825    elif test -f "$ac_dir/rgb.txt"; then
28826      im_cv_x_configure="$ac_dir/"
28827      break
28828    fi
28829
28830  done
28831fi
28832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
28833$as_echo "$im_cv_x_configure" >&6; }
28834X11_CONFIGURE_PATH="$im_cv_x_configure"
28835case "${build_os}" in
28836  mingw* )
28837    X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
28838  ;;
28839esac
28840
28841cat >>confdefs.h <<_ACEOF
28842#define X11_CONFIGURE_PATH "$X11ConfigurePath"
28843_ACEOF
28844
28845
28846#
28847# Find OpenMP library
28848#
28849GOMP_LIBS=''
28850if test "$enable_openmp" != 'no'; then
28851  if test "${GCC}" = "yes"; then
28852    # Open64 (passes for GCC but uses different OpenMP implementation)
28853    if test "x$GOMP_LIBS" = x ; then
28854      if $CC --version 2>&1 | grep Open64 > /dev/null ; then
28855        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
28856$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
28857if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
28858  $as_echo_n "(cached) " >&6
28859else
28860  ac_check_lib_save_LIBS=$LIBS
28861LIBS="-lopenmp  $LIBS"
28862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28863/* end confdefs.h.  */
28864
28865/* Override any GCC internal prototype to avoid an error.
28866   Use char because int might match the return type of a GCC
28867   builtin and then its argument prototype would still apply.  */
28868#ifdef __cplusplus
28869extern "C"
28870#endif
28871char omp_get_num_procs ();
28872int
28873main ()
28874{
28875return omp_get_num_procs ();
28876  ;
28877  return 0;
28878}
28879_ACEOF
28880if ac_fn_c_try_link "$LINENO"; then :
28881  ac_cv_lib_openmp_omp_get_num_procs=yes
28882else
28883  ac_cv_lib_openmp_omp_get_num_procs=no
28884fi
28885rm -f core conftest.err conftest.$ac_objext \
28886    conftest$ac_exeext conftest.$ac_ext
28887LIBS=$ac_check_lib_save_LIBS
28888fi
28889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
28890$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
28891if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
28892  GOMP_LIBS="-lopenmp"
28893fi
28894
28895      fi
28896    fi
28897    # GCC
28898    if test "x$GOMP_LIBS" = x ; then
28899      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
28900$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
28901if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
28902  $as_echo_n "(cached) " >&6
28903else
28904  ac_check_lib_save_LIBS=$LIBS
28905LIBS="-lgomp  $LIBS"
28906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28907/* end confdefs.h.  */
28908
28909/* Override any GCC internal prototype to avoid an error.
28910   Use char because int might match the return type of a GCC
28911   builtin and then its argument prototype would still apply.  */
28912#ifdef __cplusplus
28913extern "C"
28914#endif
28915char GOMP_parallel_start ();
28916int
28917main ()
28918{
28919return GOMP_parallel_start ();
28920  ;
28921  return 0;
28922}
28923_ACEOF
28924if ac_fn_c_try_link "$LINENO"; then :
28925  ac_cv_lib_gomp_GOMP_parallel_start=yes
28926else
28927  ac_cv_lib_gomp_GOMP_parallel_start=no
28928fi
28929rm -f core conftest.err conftest.$ac_objext \
28930    conftest$ac_exeext conftest.$ac_ext
28931LIBS=$ac_check_lib_save_LIBS
28932fi
28933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
28934$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
28935if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
28936  GOMP_LIBS="-lgomp"
28937fi
28938
28939    fi
28940  else
28941    # Sun CC
28942    if test "x$GOMP_LIBS" = x ; then
28943      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
28944$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
28945if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
28946  $as_echo_n "(cached) " >&6
28947else
28948  ac_check_lib_save_LIBS=$LIBS
28949LIBS="-lmtsk  $LIBS"
28950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951/* end confdefs.h.  */
28952
28953/* Override any GCC internal prototype to avoid an error.
28954   Use char because int might match the return type of a GCC
28955   builtin and then its argument prototype would still apply.  */
28956#ifdef __cplusplus
28957extern "C"
28958#endif
28959char sunw_mp_register_warn ();
28960int
28961main ()
28962{
28963return sunw_mp_register_warn ();
28964  ;
28965  return 0;
28966}
28967_ACEOF
28968if ac_fn_c_try_link "$LINENO"; then :
28969  ac_cv_lib_mtsk_sunw_mp_register_warn=yes
28970else
28971  ac_cv_lib_mtsk_sunw_mp_register_warn=no
28972fi
28973rm -f core conftest.err conftest.$ac_objext \
28974    conftest$ac_exeext conftest.$ac_ext
28975LIBS=$ac_check_lib_save_LIBS
28976fi
28977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
28978$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
28979if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
28980  GOMP_LIBS="-lmtsk"
28981fi
28982
28983    fi
28984    # AIX xlc
28985    if test "x$GOMP_LIBS" = x ; then
28986    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
28987$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
28988if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
28989  $as_echo_n "(cached) " >&6
28990else
28991  ac_check_lib_save_LIBS=$LIBS
28992LIBS="-lxlsmp  $LIBS"
28993cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28994/* end confdefs.h.  */
28995
28996/* Override any GCC internal prototype to avoid an error.
28997   Use char because int might match the return type of a GCC
28998   builtin and then its argument prototype would still apply.  */
28999#ifdef __cplusplus
29000extern "C"
29001#endif
29002char _xlsmpFlush ();
29003int
29004main ()
29005{
29006return _xlsmpFlush ();
29007  ;
29008  return 0;
29009}
29010_ACEOF
29011if ac_fn_c_try_link "$LINENO"; then :
29012  ac_cv_lib_xlsmp__xlsmpFlush=yes
29013else
29014  ac_cv_lib_xlsmp__xlsmpFlush=no
29015fi
29016rm -f core conftest.err conftest.$ac_objext \
29017    conftest$ac_exeext conftest.$ac_ext
29018LIBS=$ac_check_lib_save_LIBS
29019fi
29020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
29021$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
29022if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
29023  GOMP_LIBS="-lxlsmp"
29024fi
29025
29026    fi
29027    # SGI IRIX 6.5 MIPSpro C/C++
29028    if test "x$GOMP_LIBS" = x ; then
29029    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
29030$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
29031if ${ac_cv_lib_mp_mp_destroy+:} false; then :
29032  $as_echo_n "(cached) " >&6
29033else
29034  ac_check_lib_save_LIBS=$LIBS
29035LIBS="-lmp  $LIBS"
29036cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29037/* end confdefs.h.  */
29038
29039/* Override any GCC internal prototype to avoid an error.
29040   Use char because int might match the return type of a GCC
29041   builtin and then its argument prototype would still apply.  */
29042#ifdef __cplusplus
29043extern "C"
29044#endif
29045char mp_destroy ();
29046int
29047main ()
29048{
29049return mp_destroy ();
29050  ;
29051  return 0;
29052}
29053_ACEOF
29054if ac_fn_c_try_link "$LINENO"; then :
29055  ac_cv_lib_mp_mp_destroy=yes
29056else
29057  ac_cv_lib_mp_mp_destroy=no
29058fi
29059rm -f core conftest.err conftest.$ac_objext \
29060    conftest$ac_exeext conftest.$ac_ext
29061LIBS=$ac_check_lib_save_LIBS
29062fi
29063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
29064$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
29065if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
29066  GOMP_LIBS="-lmp"
29067fi
29068
29069    fi
29070  fi
29071  LIBS="$GOMP_LIBS $LIBS"
29072fi
29073
29074
29075#
29076# Check for jemalloc.
29077#
29078have_jemalloc='no'
29079JEMALLOC_LIBS=''
29080if test "$with_jemalloc" != 'no'; then
29081  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JEMALLOC support " >&5
29082$as_echo_n "checking for JEMALLOC support ... " >&6; }
29083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29084$as_echo "" >&6; }
29085  failed=0
29086  passed=0
29087  ac_fn_c_check_header_mongrel "$LINENO" "jemalloc/jemalloc.h" "ac_cv_header_jemalloc_jemalloc_h" "$ac_includes_default"
29088if test "x$ac_cv_header_jemalloc_jemalloc_h" = xyes; then :
29089  passed=`expr $passed + 1`
29090else
29091  failed=`expr $failed + 1`
29092fi
29093
29094
29095  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc_stats_print in -ljemalloc" >&5
29096$as_echo_n "checking for malloc_stats_print in -ljemalloc... " >&6; }
29097if ${ac_cv_lib_jemalloc_malloc_stats_print+:} false; then :
29098  $as_echo_n "(cached) " >&6
29099else
29100  ac_check_lib_save_LIBS=$LIBS
29101LIBS="-ljemalloc  $LIBS"
29102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29103/* end confdefs.h.  */
29104
29105/* Override any GCC internal prototype to avoid an error.
29106   Use char because int might match the return type of a GCC
29107   builtin and then its argument prototype would still apply.  */
29108#ifdef __cplusplus
29109extern "C"
29110#endif
29111char malloc_stats_print ();
29112int
29113main ()
29114{
29115return malloc_stats_print ();
29116  ;
29117  return 0;
29118}
29119_ACEOF
29120if ac_fn_c_try_link "$LINENO"; then :
29121  ac_cv_lib_jemalloc_malloc_stats_print=yes
29122else
29123  ac_cv_lib_jemalloc_malloc_stats_print=no
29124fi
29125rm -f core conftest.err conftest.$ac_objext \
29126    conftest$ac_exeext conftest.$ac_ext
29127LIBS=$ac_check_lib_save_LIBS
29128fi
29129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jemalloc_malloc_stats_print" >&5
29130$as_echo "$ac_cv_lib_jemalloc_malloc_stats_print" >&6; }
29131if test "x$ac_cv_lib_jemalloc_malloc_stats_print" = xyes; then :
29132  passed=`expr $passed + 1`
29133else
29134  failed=`expr $failed + 1`
29135fi
29136
29137  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jemalloc memory allocation library is complete" >&5
29138$as_echo_n "checking if jemalloc memory allocation library is complete... " >&6; }
29139  if test $passed -gt 0; then
29140    if test $failed -gt 0; then
29141      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29142$as_echo "no -- some components failed test" >&6; }
29143      have_jemalloc='no (failed tests)'
29144    else
29145      JEMALLOC_LIBS='-ljemalloc'
29146      LIBS="$JEMALLOC_LIBS $LIBS"
29147
29148$as_echo "#define HasJEMALLOC 1" >>confdefs.h
29149
29150      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29151$as_echo "yes" >&6; }
29152      have_jemalloc='yes'
29153    fi
29154  else
29155    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29156$as_echo "no" >&6; }
29157  fi
29158fi
29159 if test "$have_jemalloc" = 'yes'; then
29160  HasJEMALLOC_TRUE=
29161  HasJEMALLOC_FALSE='#'
29162else
29163  HasJEMALLOC_TRUE='#'
29164  HasJEMALLOC_FALSE=
29165fi
29166
29167
29168
29169#
29170# Check for umem.
29171#
29172have_umem='no'
29173UMEM_LIBS=''
29174if test "$with_umem" != 'no'; then
29175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
29176$as_echo_n "checking for UMEM support ... " >&6; }
29177  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29178$as_echo "" >&6; }
29179  failed=0
29180  passed=0
29181  ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
29182if test "x$ac_cv_header_umem_h" = xyes; then :
29183  passed=`expr $passed + 1`
29184else
29185  failed=`expr $failed + 1`
29186fi
29187
29188
29189  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
29190$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
29191if ${ac_cv_lib_umem_umem_alloc+:} false; then :
29192  $as_echo_n "(cached) " >&6
29193else
29194  ac_check_lib_save_LIBS=$LIBS
29195LIBS="-lumem  $LIBS"
29196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197/* end confdefs.h.  */
29198
29199/* Override any GCC internal prototype to avoid an error.
29200   Use char because int might match the return type of a GCC
29201   builtin and then its argument prototype would still apply.  */
29202#ifdef __cplusplus
29203extern "C"
29204#endif
29205char umem_alloc ();
29206int
29207main ()
29208{
29209return umem_alloc ();
29210  ;
29211  return 0;
29212}
29213_ACEOF
29214if ac_fn_c_try_link "$LINENO"; then :
29215  ac_cv_lib_umem_umem_alloc=yes
29216else
29217  ac_cv_lib_umem_umem_alloc=no
29218fi
29219rm -f core conftest.err conftest.$ac_objext \
29220    conftest$ac_exeext conftest.$ac_ext
29221LIBS=$ac_check_lib_save_LIBS
29222fi
29223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
29224$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
29225if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
29226  passed=`expr $passed + 1`
29227else
29228  failed=`expr $failed + 1`
29229fi
29230
29231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
29232$as_echo_n "checking for umem_free in -lumem... " >&6; }
29233if ${ac_cv_lib_umem_umem_free+:} false; then :
29234  $as_echo_n "(cached) " >&6
29235else
29236  ac_check_lib_save_LIBS=$LIBS
29237LIBS="-lumem  $LIBS"
29238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29239/* end confdefs.h.  */
29240
29241/* Override any GCC internal prototype to avoid an error.
29242   Use char because int might match the return type of a GCC
29243   builtin and then its argument prototype would still apply.  */
29244#ifdef __cplusplus
29245extern "C"
29246#endif
29247char umem_free ();
29248int
29249main ()
29250{
29251return umem_free ();
29252  ;
29253  return 0;
29254}
29255_ACEOF
29256if ac_fn_c_try_link "$LINENO"; then :
29257  ac_cv_lib_umem_umem_free=yes
29258else
29259  ac_cv_lib_umem_umem_free=no
29260fi
29261rm -f core conftest.err conftest.$ac_objext \
29262    conftest$ac_exeext conftest.$ac_ext
29263LIBS=$ac_check_lib_save_LIBS
29264fi
29265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
29266$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
29267if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
29268  passed=`expr $passed + 1`
29269else
29270  failed=`expr $failed + 1`
29271fi
29272
29273  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
29274$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
29275  if test $passed -gt 0; then
29276    if test $failed -gt 0; then
29277      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29278$as_echo "no -- some components failed test" >&6; }
29279      have_umem='no (failed tests)'
29280    else
29281      UMEM_LIBS='-lumem'
29282      LIBS="$UMEM_LIBS $LIBS"
29283
29284$as_echo "#define HasUMEM 1" >>confdefs.h
29285
29286      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29287$as_echo "yes" >&6; }
29288      have_umem='yes'
29289    fi
29290  else
29291    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29292$as_echo "no" >&6; }
29293  fi
29294fi
29295 if test "$have_umem" = 'yes'; then
29296  HasUMEM_TRUE=
29297  HasUMEM_FALSE='#'
29298else
29299  HasUMEM_TRUE='#'
29300  HasUMEM_FALSE=
29301fi
29302
29303
29304
29305#
29306# Add support for ccmalloc memory debugging library if requested
29307#
29308have_ccmalloc='no'
29309CCMALLOC_LIBS=''
29310if test "$enable_ccmalloc" = 'yes'; then
29311    # Extract the first word of "ccmalloc", so it can be a program name with args.
29312set dummy ccmalloc; ac_word=$2
29313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29314$as_echo_n "checking for $ac_word... " >&6; }
29315if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
29316  $as_echo_n "(cached) " >&6
29317else
29318  case $CCMALLOCDelegate in
29319  [\\/]* | ?:[\\/]*)
29320  ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
29321  ;;
29322  *)
29323  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29324for as_dir in $PATH
29325do
29326  IFS=$as_save_IFS
29327  test -z "$as_dir" && as_dir=.
29328    for ac_exec_ext in '' $ac_executable_extensions; do
29329  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29330    ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
29331    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29332    break 2
29333  fi
29334done
29335  done
29336IFS=$as_save_IFS
29337
29338  ;;
29339esac
29340fi
29341CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
29342if test -n "$CCMALLOCDelegate"; then
29343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
29344$as_echo "$CCMALLOCDelegate" >&6; }
29345else
29346  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29347$as_echo "no" >&6; }
29348fi
29349
29350
29351    if test -n "$CCMALLOCDelegate"; then
29352        eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
29353        OLIBS="$LIBS"
29354        # Assume that gcc is used with ccmalloc.
29355        LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
29356       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
29357$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
29358if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
29359  $as_echo_n "(cached) " >&6
29360else
29361  ac_check_lib_save_LIBS=$LIBS
29362LIBS="-lccmalloc -ldl $LIBS"
29363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29364/* end confdefs.h.  */
29365
29366/* Override any GCC internal prototype to avoid an error.
29367   Use char because int might match the return type of a GCC
29368   builtin and then its argument prototype would still apply.  */
29369#ifdef __cplusplus
29370extern "C"
29371#endif
29372char ccmalloc_malloc ();
29373int
29374main ()
29375{
29376return ccmalloc_malloc ();
29377  ;
29378  return 0;
29379}
29380_ACEOF
29381if ac_fn_c_try_link "$LINENO"; then :
29382  ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
29383else
29384  ac_cv_lib_ccmalloc_ccmalloc_malloc=no
29385fi
29386rm -f core conftest.err conftest.$ac_objext \
29387    conftest$ac_exeext conftest.$ac_ext
29388LIBS=$ac_check_lib_save_LIBS
29389fi
29390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
29391$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
29392if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
29393  CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
29394fi
29395
29396        if test -n "$CCMALLOC_LIBS"; then
29397            LIBS="$OLIBS"
29398            LIBS="$LIBS $CCMALLOC_LIBS"
29399            have_ccmalloc='yes'
29400        else
29401            LIBS="$OLIBS"
29402        fi
29403    fi
29404fi
29405
29406#
29407# Add support for 'huge pages' if requested
29408#
29409if test "x$enable_hugepages" != "xno"; then :
29410
29411
29412$as_echo "#define HAVE_HUGEPAGES 1" >>confdefs.h
29413
29414
29415fi
29416
29417#
29418# Add support for efence memory debugging library if requested
29419#
29420if test "$enable_efence" = 'yes'; then
29421    EFENCE_LIBS='-lefence'
29422    LIBS="$EFENCE_LIBS $LIBS"
29423fi
29424
29425
29426#
29427# Check for BZLIB
29428#
29429
29430
29431# Check whether --with-bzlib was given.
29432if test "${with_bzlib+set}" = set; then :
29433  withval=$with_bzlib; with_bzlib=$withval
29434else
29435  with_bzlib='yes'
29436fi
29437
29438
29439if test "$with_bzlib" != 'yes'; then
29440    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
29441fi
29442
29443have_bzlib='no'
29444if test "$with_bzlib" != 'no'; then
29445    BZLIB_LIBS=''
29446    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29447$as_echo "-------------------------------------------------------------" >&6; }
29448    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
29449$as_echo_n "checking for BZLIB... " >&6; }
29450    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29451$as_echo "" >&6; }
29452    failed=0
29453    passed=0
29454    found_libbz=0
29455    ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
29456if test "x$ac_cv_header_bzlib_h" = xyes; then :
29457  passed=`expr $passed + 1`
29458else
29459  failed=`expr $failed + 1`
29460fi
29461
29462
29463    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
29464$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
29465if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
29466  $as_echo_n "(cached) " >&6
29467else
29468  ac_check_lib_save_LIBS=$LIBS
29469LIBS="-lbz2  $LIBS"
29470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29471/* end confdefs.h.  */
29472
29473/* Override any GCC internal prototype to avoid an error.
29474   Use char because int might match the return type of a GCC
29475   builtin and then its argument prototype would still apply.  */
29476#ifdef __cplusplus
29477extern "C"
29478#endif
29479char BZ2_bzDecompress ();
29480int
29481main ()
29482{
29483return BZ2_bzDecompress ();
29484  ;
29485  return 0;
29486}
29487_ACEOF
29488if ac_fn_c_try_link "$LINENO"; then :
29489  ac_cv_lib_bz2_BZ2_bzDecompress=yes
29490else
29491  ac_cv_lib_bz2_BZ2_bzDecompress=no
29492fi
29493rm -f core conftest.err conftest.$ac_objext \
29494    conftest$ac_exeext conftest.$ac_ext
29495LIBS=$ac_check_lib_save_LIBS
29496fi
29497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
29498$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
29499if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
29500  found_libbz=`expr $found_libbz + 1`
29501fi
29502
29503    if test "$native_win32_build" = 'yes'; then
29504      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
29505$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
29506if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
29507  $as_echo_n "(cached) " >&6
29508else
29509  ac_check_lib_save_LIBS=$LIBS
29510LIBS="-lbz2  $LIBS"
29511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29512/* end confdefs.h.  */
29513
29514/* Override any GCC internal prototype to avoid an error.
29515   Use char because int might match the return type of a GCC
29516   builtin and then its argument prototype would still apply.  */
29517#ifdef __cplusplus
29518extern "C"
29519#endif
29520char _imp__BZ2_decompress ();
29521int
29522main ()
29523{
29524return _imp__BZ2_decompress ();
29525  ;
29526  return 0;
29527}
29528_ACEOF
29529if ac_fn_c_try_link "$LINENO"; then :
29530  ac_cv_lib_bz2__imp__BZ2_decompress=yes
29531else
29532  ac_cv_lib_bz2__imp__BZ2_decompress=no
29533fi
29534rm -f core conftest.err conftest.$ac_objext \
29535    conftest$ac_exeext conftest.$ac_ext
29536LIBS=$ac_check_lib_save_LIBS
29537fi
29538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
29539$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
29540if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
29541  found_libbz=`expr $found_libbz + 1`
29542fi
29543
29544    fi
29545    if test $found_libbz -gt 0; then
29546      passed=`expr $passed + 1`
29547    else
29548      failed=`expr $failed + 1`
29549    fi
29550    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
29551$as_echo_n "checking if BZLIB package is complete... " >&6; }
29552    if test $passed -gt 0; then
29553      if test $failed -gt 0; then
29554        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29555$as_echo "no -- some components failed test" >&6; }
29556        have_bzlib='no (failed tests)'
29557      else
29558        BZLIB_LIBS='-lbz2'
29559        LIBS="$BZLIB_LIBS $LIBS"
29560
29561$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
29562
29563        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29564$as_echo "yes" >&6; }
29565        have_bzlib='yes'
29566      fi
29567    else
29568      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29569$as_echo "no" >&6; }
29570    fi
29571fi
29572 if test "$have_bzlib" = 'yes'; then
29573  BZLIB_DELEGATE_TRUE=
29574  BZLIB_DELEGATE_FALSE='#'
29575else
29576  BZLIB_DELEGATE_TRUE='#'
29577  BZLIB_DELEGATE_FALSE=
29578fi
29579
29580
29581
29582#
29583# Find the X11 include and library directories.
29584#
29585IPC_LIBS=''
29586X11_LIBS=''
29587XEXT_LIBS=''
29588XT_LIBS=''
29589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
29590$as_echo_n "checking for X... " >&6; }
29591
29592
29593# Check whether --with-x was given.
29594if test "${with_x+set}" = set; then :
29595  withval=$with_x;
29596fi
29597
29598# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
29599if test "x$with_x" = xno; then
29600  # The user explicitly disabled X.
29601  have_x=disabled
29602else
29603  case $x_includes,$x_libraries in #(
29604    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
29605    *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
29606  $as_echo_n "(cached) " >&6
29607else
29608  # One or both of the vars are not set, and there is no cached value.
29609ac_x_includes=no ac_x_libraries=no
29610rm -f -r conftest.dir
29611if mkdir conftest.dir; then
29612  cd conftest.dir
29613  cat >Imakefile <<'_ACEOF'
29614incroot:
29615	@echo incroot='${INCROOT}'
29616usrlibdir:
29617	@echo usrlibdir='${USRLIBDIR}'
29618libdir:
29619	@echo libdir='${LIBDIR}'
29620_ACEOF
29621  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
29622    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
29623    for ac_var in incroot usrlibdir libdir; do
29624      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29625    done
29626    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29627    for ac_extension in a so sl dylib la dll; do
29628      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29629	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
29630	ac_im_usrlibdir=$ac_im_libdir; break
29631      fi
29632    done
29633    # Screen out bogus values from the imake configuration.  They are
29634    # bogus both because they are the default anyway, and because
29635    # using them would break gcc on systems where it needs fixed includes.
29636    case $ac_im_incroot in
29637	/usr/include) ac_x_includes= ;;
29638	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29639    esac
29640    case $ac_im_usrlibdir in
29641	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
29642	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29643    esac
29644  fi
29645  cd ..
29646  rm -f -r conftest.dir
29647fi
29648
29649# Standard set of common directories for X headers.
29650# Check X11 before X11Rn because it is often a symlink to the current release.
29651ac_x_header_dirs='
29652/usr/X11/include
29653/usr/X11R7/include
29654/usr/X11R6/include
29655/usr/X11R5/include
29656/usr/X11R4/include
29657
29658/usr/include/X11
29659/usr/include/X11R7
29660/usr/include/X11R6
29661/usr/include/X11R5
29662/usr/include/X11R4
29663
29664/usr/local/X11/include
29665/usr/local/X11R7/include
29666/usr/local/X11R6/include
29667/usr/local/X11R5/include
29668/usr/local/X11R4/include
29669
29670/usr/local/include/X11
29671/usr/local/include/X11R7
29672/usr/local/include/X11R6
29673/usr/local/include/X11R5
29674/usr/local/include/X11R4
29675
29676/usr/X386/include
29677/usr/x386/include
29678/usr/XFree86/include/X11
29679
29680/usr/include
29681/usr/local/include
29682/usr/unsupported/include
29683/usr/athena/include
29684/usr/local/x11r5/include
29685/usr/lpp/Xamples/include
29686
29687/usr/openwin/include
29688/usr/openwin/share/include'
29689
29690if test "$ac_x_includes" = no; then
29691  # Guess where to find include files, by looking for Xlib.h.
29692  # First, try using that file with no special directory specified.
29693  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29694/* end confdefs.h.  */
29695#include <X11/Xlib.h>
29696_ACEOF
29697if ac_fn_c_try_cpp "$LINENO"; then :
29698  # We can compile using X headers with no special include directory.
29699ac_x_includes=
29700else
29701  for ac_dir in $ac_x_header_dirs; do
29702  if test -r "$ac_dir/X11/Xlib.h"; then
29703    ac_x_includes=$ac_dir
29704    break
29705  fi
29706done
29707fi
29708rm -f conftest.err conftest.i conftest.$ac_ext
29709fi # $ac_x_includes = no
29710
29711if test "$ac_x_libraries" = no; then
29712  # Check for the libraries.
29713  # See if we find them without any special options.
29714  # Don't add to $LIBS permanently.
29715  ac_save_LIBS=$LIBS
29716  LIBS="-lX11 $LIBS"
29717  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29718/* end confdefs.h.  */
29719#include <X11/Xlib.h>
29720int
29721main ()
29722{
29723XrmInitialize ()
29724  ;
29725  return 0;
29726}
29727_ACEOF
29728if ac_fn_c_try_link "$LINENO"; then :
29729  LIBS=$ac_save_LIBS
29730# We can link X programs with no special library path.
29731ac_x_libraries=
29732else
29733  LIBS=$ac_save_LIBS
29734for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
29735do
29736  # Don't even attempt the hair of trying to link an X program!
29737  for ac_extension in a so sl dylib la dll; do
29738    if test -r "$ac_dir/libX11.$ac_extension"; then
29739      ac_x_libraries=$ac_dir
29740      break 2
29741    fi
29742  done
29743done
29744fi
29745rm -f core conftest.err conftest.$ac_objext \
29746    conftest$ac_exeext conftest.$ac_ext
29747fi # $ac_x_libraries = no
29748
29749case $ac_x_includes,$ac_x_libraries in #(
29750  no,* | *,no | *\'*)
29751    # Didn't find X, or a directory has "'" in its name.
29752    ac_cv_have_x="have_x=no";; #(
29753  *)
29754    # Record where we found X for the cache.
29755    ac_cv_have_x="have_x=yes\
29756	ac_x_includes='$ac_x_includes'\
29757	ac_x_libraries='$ac_x_libraries'"
29758esac
29759fi
29760;; #(
29761    *) have_x=yes;;
29762  esac
29763  eval "$ac_cv_have_x"
29764fi # $with_x != no
29765
29766if test "$have_x" != yes; then
29767  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
29768$as_echo "$have_x" >&6; }
29769  no_x=yes
29770else
29771  # If each of the values was on the command line, it overrides each guess.
29772  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
29773  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
29774  # Update the cache value to reflect the command line values.
29775  ac_cv_have_x="have_x=yes\
29776	ac_x_includes='$x_includes'\
29777	ac_x_libraries='$x_libraries'"
29778  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
29779$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
29780fi
29781
29782if test "$no_x" = yes; then
29783  # Not all programs may use this symbol, but it does not hurt to define it.
29784
29785$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
29786
29787  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
29788else
29789  if test -n "$x_includes"; then
29790    X_CFLAGS="$X_CFLAGS -I$x_includes"
29791  fi
29792
29793  # It would also be nice to do this for all -L options, not just this one.
29794  if test -n "$x_libraries"; then
29795    X_LIBS="$X_LIBS -L$x_libraries"
29796    # For Solaris; some versions of Sun CC require a space after -R and
29797    # others require no space.  Words are not sufficient . . . .
29798    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
29799$as_echo_n "checking whether -R must be followed by a space... " >&6; }
29800    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
29801    ac_xsave_c_werror_flag=$ac_c_werror_flag
29802    ac_c_werror_flag=yes
29803    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29804/* end confdefs.h.  */
29805
29806int
29807main ()
29808{
29809
29810  ;
29811  return 0;
29812}
29813_ACEOF
29814if ac_fn_c_try_link "$LINENO"; then :
29815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29816$as_echo "no" >&6; }
29817       X_LIBS="$X_LIBS -R$x_libraries"
29818else
29819  LIBS="$ac_xsave_LIBS -R $x_libraries"
29820       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29821/* end confdefs.h.  */
29822
29823int
29824main ()
29825{
29826
29827  ;
29828  return 0;
29829}
29830_ACEOF
29831if ac_fn_c_try_link "$LINENO"; then :
29832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29833$as_echo "yes" >&6; }
29834	  X_LIBS="$X_LIBS -R $x_libraries"
29835else
29836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
29837$as_echo "neither works" >&6; }
29838fi
29839rm -f core conftest.err conftest.$ac_objext \
29840    conftest$ac_exeext conftest.$ac_ext
29841fi
29842rm -f core conftest.err conftest.$ac_objext \
29843    conftest$ac_exeext conftest.$ac_ext
29844    ac_c_werror_flag=$ac_xsave_c_werror_flag
29845    LIBS=$ac_xsave_LIBS
29846  fi
29847
29848  # Check for system-dependent libraries X programs must link with.
29849  # Do this before checking for the system-independent R6 libraries
29850  # (-lICE), since we may need -lsocket or whatever for X linking.
29851
29852  if test "$ISC" = yes; then
29853    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
29854  else
29855    # Martyn Johnson says this is needed for Ultrix, if the X
29856    # libraries were built with DECnet support.  And Karl Berry says
29857    # the Alpha needs dnet_stub (dnet does not exist).
29858    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
29859    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29860/* end confdefs.h.  */
29861
29862/* Override any GCC internal prototype to avoid an error.
29863   Use char because int might match the return type of a GCC
29864   builtin and then its argument prototype would still apply.  */
29865#ifdef __cplusplus
29866extern "C"
29867#endif
29868char XOpenDisplay ();
29869int
29870main ()
29871{
29872return XOpenDisplay ();
29873  ;
29874  return 0;
29875}
29876_ACEOF
29877if ac_fn_c_try_link "$LINENO"; then :
29878
29879else
29880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
29881$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
29882if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
29883  $as_echo_n "(cached) " >&6
29884else
29885  ac_check_lib_save_LIBS=$LIBS
29886LIBS="-ldnet  $LIBS"
29887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29888/* end confdefs.h.  */
29889
29890/* Override any GCC internal prototype to avoid an error.
29891   Use char because int might match the return type of a GCC
29892   builtin and then its argument prototype would still apply.  */
29893#ifdef __cplusplus
29894extern "C"
29895#endif
29896char dnet_ntoa ();
29897int
29898main ()
29899{
29900return dnet_ntoa ();
29901  ;
29902  return 0;
29903}
29904_ACEOF
29905if ac_fn_c_try_link "$LINENO"; then :
29906  ac_cv_lib_dnet_dnet_ntoa=yes
29907else
29908  ac_cv_lib_dnet_dnet_ntoa=no
29909fi
29910rm -f core conftest.err conftest.$ac_objext \
29911    conftest$ac_exeext conftest.$ac_ext
29912LIBS=$ac_check_lib_save_LIBS
29913fi
29914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
29915$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
29916if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
29917  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
29918fi
29919
29920    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
29921      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
29922$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
29923if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
29924  $as_echo_n "(cached) " >&6
29925else
29926  ac_check_lib_save_LIBS=$LIBS
29927LIBS="-ldnet_stub  $LIBS"
29928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29929/* end confdefs.h.  */
29930
29931/* Override any GCC internal prototype to avoid an error.
29932   Use char because int might match the return type of a GCC
29933   builtin and then its argument prototype would still apply.  */
29934#ifdef __cplusplus
29935extern "C"
29936#endif
29937char dnet_ntoa ();
29938int
29939main ()
29940{
29941return dnet_ntoa ();
29942  ;
29943  return 0;
29944}
29945_ACEOF
29946if ac_fn_c_try_link "$LINENO"; then :
29947  ac_cv_lib_dnet_stub_dnet_ntoa=yes
29948else
29949  ac_cv_lib_dnet_stub_dnet_ntoa=no
29950fi
29951rm -f core conftest.err conftest.$ac_objext \
29952    conftest$ac_exeext conftest.$ac_ext
29953LIBS=$ac_check_lib_save_LIBS
29954fi
29955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
29956$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
29957if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
29958  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
29959fi
29960
29961    fi
29962fi
29963rm -f core conftest.err conftest.$ac_objext \
29964    conftest$ac_exeext conftest.$ac_ext
29965    LIBS="$ac_xsave_LIBS"
29966
29967    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
29968    # to get the SysV transport functions.
29969    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
29970    # needs -lnsl.
29971    # The nsl library prevents programs from opening the X display
29972    # on Irix 5.2, according to T.E. Dickey.
29973    # The functions gethostbyname, getservbyname, and inet_addr are
29974    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
29975    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
29976if test "x$ac_cv_func_gethostbyname" = xyes; then :
29977
29978fi
29979
29980    if test $ac_cv_func_gethostbyname = no; then
29981      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
29982$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
29983if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
29984  $as_echo_n "(cached) " >&6
29985else
29986  ac_check_lib_save_LIBS=$LIBS
29987LIBS="-lnsl  $LIBS"
29988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29989/* end confdefs.h.  */
29990
29991/* Override any GCC internal prototype to avoid an error.
29992   Use char because int might match the return type of a GCC
29993   builtin and then its argument prototype would still apply.  */
29994#ifdef __cplusplus
29995extern "C"
29996#endif
29997char gethostbyname ();
29998int
29999main ()
30000{
30001return gethostbyname ();
30002  ;
30003  return 0;
30004}
30005_ACEOF
30006if ac_fn_c_try_link "$LINENO"; then :
30007  ac_cv_lib_nsl_gethostbyname=yes
30008else
30009  ac_cv_lib_nsl_gethostbyname=no
30010fi
30011rm -f core conftest.err conftest.$ac_objext \
30012    conftest$ac_exeext conftest.$ac_ext
30013LIBS=$ac_check_lib_save_LIBS
30014fi
30015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
30016$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
30017if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
30018  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
30019fi
30020
30021      if test $ac_cv_lib_nsl_gethostbyname = no; then
30022	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
30023$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
30024if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
30025  $as_echo_n "(cached) " >&6
30026else
30027  ac_check_lib_save_LIBS=$LIBS
30028LIBS="-lbsd  $LIBS"
30029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30030/* end confdefs.h.  */
30031
30032/* Override any GCC internal prototype to avoid an error.
30033   Use char because int might match the return type of a GCC
30034   builtin and then its argument prototype would still apply.  */
30035#ifdef __cplusplus
30036extern "C"
30037#endif
30038char gethostbyname ();
30039int
30040main ()
30041{
30042return gethostbyname ();
30043  ;
30044  return 0;
30045}
30046_ACEOF
30047if ac_fn_c_try_link "$LINENO"; then :
30048  ac_cv_lib_bsd_gethostbyname=yes
30049else
30050  ac_cv_lib_bsd_gethostbyname=no
30051fi
30052rm -f core conftest.err conftest.$ac_objext \
30053    conftest$ac_exeext conftest.$ac_ext
30054LIBS=$ac_check_lib_save_LIBS
30055fi
30056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
30057$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
30058if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
30059  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
30060fi
30061
30062      fi
30063    fi
30064
30065    # lieder@skyler.mavd.honeywell.com says without -lsocket,
30066    # socket/setsockopt and other routines are undefined under SCO ODT
30067    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
30068    # on later versions), says Simon Leinen: it contains gethostby*
30069    # variants that don't use the name server (or something).  -lsocket
30070    # must be given before -lnsl if both are needed.  We assume that
30071    # if connect needs -lnsl, so does gethostbyname.
30072    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
30073if test "x$ac_cv_func_connect" = xyes; then :
30074
30075fi
30076
30077    if test $ac_cv_func_connect = no; then
30078      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
30079$as_echo_n "checking for connect in -lsocket... " >&6; }
30080if ${ac_cv_lib_socket_connect+:} false; then :
30081  $as_echo_n "(cached) " >&6
30082else
30083  ac_check_lib_save_LIBS=$LIBS
30084LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
30085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30086/* end confdefs.h.  */
30087
30088/* Override any GCC internal prototype to avoid an error.
30089   Use char because int might match the return type of a GCC
30090   builtin and then its argument prototype would still apply.  */
30091#ifdef __cplusplus
30092extern "C"
30093#endif
30094char connect ();
30095int
30096main ()
30097{
30098return connect ();
30099  ;
30100  return 0;
30101}
30102_ACEOF
30103if ac_fn_c_try_link "$LINENO"; then :
30104  ac_cv_lib_socket_connect=yes
30105else
30106  ac_cv_lib_socket_connect=no
30107fi
30108rm -f core conftest.err conftest.$ac_objext \
30109    conftest$ac_exeext conftest.$ac_ext
30110LIBS=$ac_check_lib_save_LIBS
30111fi
30112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
30113$as_echo "$ac_cv_lib_socket_connect" >&6; }
30114if test "x$ac_cv_lib_socket_connect" = xyes; then :
30115  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
30116fi
30117
30118    fi
30119
30120    # Guillermo Gomez says -lposix is necessary on A/UX.
30121    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
30122if test "x$ac_cv_func_remove" = xyes; then :
30123
30124fi
30125
30126    if test $ac_cv_func_remove = no; then
30127      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
30128$as_echo_n "checking for remove in -lposix... " >&6; }
30129if ${ac_cv_lib_posix_remove+:} false; then :
30130  $as_echo_n "(cached) " >&6
30131else
30132  ac_check_lib_save_LIBS=$LIBS
30133LIBS="-lposix  $LIBS"
30134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30135/* end confdefs.h.  */
30136
30137/* Override any GCC internal prototype to avoid an error.
30138   Use char because int might match the return type of a GCC
30139   builtin and then its argument prototype would still apply.  */
30140#ifdef __cplusplus
30141extern "C"
30142#endif
30143char remove ();
30144int
30145main ()
30146{
30147return remove ();
30148  ;
30149  return 0;
30150}
30151_ACEOF
30152if ac_fn_c_try_link "$LINENO"; then :
30153  ac_cv_lib_posix_remove=yes
30154else
30155  ac_cv_lib_posix_remove=no
30156fi
30157rm -f core conftest.err conftest.$ac_objext \
30158    conftest$ac_exeext conftest.$ac_ext
30159LIBS=$ac_check_lib_save_LIBS
30160fi
30161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
30162$as_echo "$ac_cv_lib_posix_remove" >&6; }
30163if test "x$ac_cv_lib_posix_remove" = xyes; then :
30164  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
30165fi
30166
30167    fi
30168
30169    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
30170    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
30171if test "x$ac_cv_func_shmat" = xyes; then :
30172
30173fi
30174
30175    if test $ac_cv_func_shmat = no; then
30176      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
30177$as_echo_n "checking for shmat in -lipc... " >&6; }
30178if ${ac_cv_lib_ipc_shmat+:} false; then :
30179  $as_echo_n "(cached) " >&6
30180else
30181  ac_check_lib_save_LIBS=$LIBS
30182LIBS="-lipc  $LIBS"
30183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30184/* end confdefs.h.  */
30185
30186/* Override any GCC internal prototype to avoid an error.
30187   Use char because int might match the return type of a GCC
30188   builtin and then its argument prototype would still apply.  */
30189#ifdef __cplusplus
30190extern "C"
30191#endif
30192char shmat ();
30193int
30194main ()
30195{
30196return shmat ();
30197  ;
30198  return 0;
30199}
30200_ACEOF
30201if ac_fn_c_try_link "$LINENO"; then :
30202  ac_cv_lib_ipc_shmat=yes
30203else
30204  ac_cv_lib_ipc_shmat=no
30205fi
30206rm -f core conftest.err conftest.$ac_objext \
30207    conftest$ac_exeext conftest.$ac_ext
30208LIBS=$ac_check_lib_save_LIBS
30209fi
30210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
30211$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
30212if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
30213  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
30214fi
30215
30216    fi
30217  fi
30218
30219  # Check for libraries that X11R6 Xt/Xaw programs need.
30220  ac_save_LDFLAGS=$LDFLAGS
30221  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
30222  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
30223  # check for ICE first), but we must link in the order -lSM -lICE or
30224  # we get undefined symbols.  So assume we have SM if we have ICE.
30225  # These have to be linked with before -lX11, unlike the other
30226  # libraries we check for below, so use a different variable.
30227  # John Interrante, Karl Berry
30228  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
30229$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
30230if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
30231  $as_echo_n "(cached) " >&6
30232else
30233  ac_check_lib_save_LIBS=$LIBS
30234LIBS="-lICE $X_EXTRA_LIBS $LIBS"
30235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30236/* end confdefs.h.  */
30237
30238/* Override any GCC internal prototype to avoid an error.
30239   Use char because int might match the return type of a GCC
30240   builtin and then its argument prototype would still apply.  */
30241#ifdef __cplusplus
30242extern "C"
30243#endif
30244char IceConnectionNumber ();
30245int
30246main ()
30247{
30248return IceConnectionNumber ();
30249  ;
30250  return 0;
30251}
30252_ACEOF
30253if ac_fn_c_try_link "$LINENO"; then :
30254  ac_cv_lib_ICE_IceConnectionNumber=yes
30255else
30256  ac_cv_lib_ICE_IceConnectionNumber=no
30257fi
30258rm -f core conftest.err conftest.$ac_objext \
30259    conftest$ac_exeext conftest.$ac_ext
30260LIBS=$ac_check_lib_save_LIBS
30261fi
30262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
30263$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
30264if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
30265  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
30266fi
30267
30268  LDFLAGS=$ac_save_LDFLAGS
30269
30270fi
30271
30272if test "$no_x" != 'yes'; then
30273    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30274$as_echo "-------------------------------------------------------------" >&6; }
30275    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
30276$as_echo_n "checking for X11... " >&6; }
30277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30278$as_echo "" >&6; }
30279    LDFLAGS="$LDFLAGS $X_LIBS"
30280    X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
30281    LIBS="$X11_LIBS $LIBS"
30282    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
30283
30284
30285$as_echo "#define X11_DELEGATE 1" >>confdefs.h
30286
30287    #
30288    # Check for X11 shared memory extension
30289    #
30290    # shmctl is required to support the shared memory extension
30291    ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
30292if test "x$ac_cv_func_shmctl" = xyes; then :
30293  have_shmctl='yes'
30294fi
30295
30296    if test "$have_shmctl" != 'yes'; then
30297        PERSIST_LIBS=$LIBS
30298        LIBS="$LIBS -lcygipc"
30299        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30300/* end confdefs.h.  */
30301
30302/* Override any GCC internal prototype to avoid an error.
30303   Use char because int might match the return type of a GCC
30304   builtin and then its argument prototype would still apply.  */
30305#ifdef __cplusplus
30306extern "C"
30307#endif
30308char shmctl ();
30309int
30310main ()
30311{
30312return shmctl ();
30313  ;
30314  return 0;
30315}
30316_ACEOF
30317if ac_fn_c_try_link "$LINENO"; then :
30318  have_shmctl='yes'; IPC_LIBS='-lcygipc'
30319fi
30320rm -f core conftest.err conftest.$ac_objext \
30321    conftest$ac_exeext conftest.$ac_ext
30322        LIBS=$PERSIST_LIBS
30323    fi
30324
30325    if test "$have_shmctl" = 'yes'; then
30326        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
30327$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
30328if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
30329  $as_echo_n "(cached) " >&6
30330else
30331  ac_check_lib_save_LIBS=$LIBS
30332LIBS="-lXext  $LIBS"
30333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30334/* end confdefs.h.  */
30335
30336/* Override any GCC internal prototype to avoid an error.
30337   Use char because int might match the return type of a GCC
30338   builtin and then its argument prototype would still apply.  */
30339#ifdef __cplusplus
30340extern "C"
30341#endif
30342char XShmAttach ();
30343int
30344main ()
30345{
30346return XShmAttach ();
30347  ;
30348  return 0;
30349}
30350_ACEOF
30351if ac_fn_c_try_link "$LINENO"; then :
30352  ac_cv_lib_Xext_XShmAttach=yes
30353else
30354  ac_cv_lib_Xext_XShmAttach=no
30355fi
30356rm -f core conftest.err conftest.$ac_objext \
30357    conftest$ac_exeext conftest.$ac_ext
30358LIBS=$ac_check_lib_save_LIBS
30359fi
30360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
30361$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
30362if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
30363  XEXT_LIBS='-lXext' ;
30364$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
30365
30366fi
30367
30368    fi
30369
30370    #
30371    # Check for X11 shape extension
30372    #
30373    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
30374$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
30375if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
30376  $as_echo_n "(cached) " >&6
30377else
30378  ac_check_lib_save_LIBS=$LIBS
30379LIBS="-lXext  $LIBS"
30380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30381/* end confdefs.h.  */
30382
30383/* Override any GCC internal prototype to avoid an error.
30384   Use char because int might match the return type of a GCC
30385   builtin and then its argument prototype would still apply.  */
30386#ifdef __cplusplus
30387extern "C"
30388#endif
30389char XShapeCombineMask ();
30390int
30391main ()
30392{
30393return XShapeCombineMask ();
30394  ;
30395  return 0;
30396}
30397_ACEOF
30398if ac_fn_c_try_link "$LINENO"; then :
30399  ac_cv_lib_Xext_XShapeCombineMask=yes
30400else
30401  ac_cv_lib_Xext_XShapeCombineMask=no
30402fi
30403rm -f core conftest.err conftest.$ac_objext \
30404    conftest$ac_exeext conftest.$ac_ext
30405LIBS=$ac_check_lib_save_LIBS
30406fi
30407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
30408$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
30409if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
30410  XEXT_LIBS='-lXext' ;
30411$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
30412
30413fi
30414
30415    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
30416$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
30417if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
30418  $as_echo_n "(cached) " >&6
30419else
30420  ac_check_lib_save_LIBS=$LIBS
30421LIBS="-lXt  $LIBS"
30422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30423/* end confdefs.h.  */
30424
30425/* Override any GCC internal prototype to avoid an error.
30426   Use char because int might match the return type of a GCC
30427   builtin and then its argument prototype would still apply.  */
30428#ifdef __cplusplus
30429extern "C"
30430#endif
30431char XtSetEventDispatcher ();
30432int
30433main ()
30434{
30435return XtSetEventDispatcher ();
30436  ;
30437  return 0;
30438}
30439_ACEOF
30440if ac_fn_c_try_link "$LINENO"; then :
30441  ac_cv_lib_Xt_XtSetEventDispatcher=yes
30442else
30443  ac_cv_lib_Xt_XtSetEventDispatcher=no
30444fi
30445rm -f core conftest.err conftest.$ac_objext \
30446    conftest$ac_exeext conftest.$ac_ext
30447LIBS=$ac_check_lib_save_LIBS
30448fi
30449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
30450$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
30451if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
30452  XT_LIBS='-lXt'
30453fi
30454
30455    LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
30456fi
30457if test "$no_x" != 'yes'; then
30458  have_x='yes'
30459else
30460  have_x='no'
30461fi
30462 if test "$have_x" = 'yes'; then
30463  X11_DELEGATE_TRUE=
30464  X11_DELEGATE_FALSE='#'
30465else
30466  X11_DELEGATE_TRUE='#'
30467  X11_DELEGATE_FALSE=
30468fi
30469
30470
30471
30472
30473
30474#
30475# Check for ZLIB
30476#
30477
30478# Check whether --with-zlib was given.
30479if test "${with_zlib+set}" = set; then :
30480  withval=$with_zlib; with_zlib=$withval
30481else
30482  with_zlib='yes'
30483fi
30484
30485
30486if test "$with_zlib" != 'yes'; then
30487    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
30488fi
30489
30490have_zlib='no'
30491ZLIB_CFLAGS=""
30492ZLIB_LIBS=""
30493ZLIB_PKG=""
30494if test "x$with_zlib" = "xyes"; then
30495  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30496$as_echo "-------------------------------------------------------------" >&6; }
30497
30498pkg_failed=no
30499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
30500$as_echo_n "checking for ZLIB... " >&6; }
30501
30502if test -n "$ZLIB_CFLAGS"; then
30503    pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
30504 elif test -n "$PKG_CONFIG"; then
30505    if test -n "$PKG_CONFIG" && \
30506    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
30507  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
30508  ac_status=$?
30509  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30510  test $ac_status = 0; }; then
30511  pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
30512		      test "x$?" != "x0" && pkg_failed=yes
30513else
30514  pkg_failed=yes
30515fi
30516 else
30517    pkg_failed=untried
30518fi
30519if test -n "$ZLIB_LIBS"; then
30520    pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
30521 elif test -n "$PKG_CONFIG"; then
30522    if test -n "$PKG_CONFIG" && \
30523    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
30524  ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
30525  ac_status=$?
30526  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30527  test $ac_status = 0; }; then
30528  pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
30529		      test "x$?" != "x0" && pkg_failed=yes
30530else
30531  pkg_failed=yes
30532fi
30533 else
30534    pkg_failed=untried
30535fi
30536
30537
30538
30539if test $pkg_failed = yes; then
30540   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30541$as_echo "no" >&6; }
30542
30543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30544        _pkg_short_errors_supported=yes
30545else
30546        _pkg_short_errors_supported=no
30547fi
30548        if test $_pkg_short_errors_supported = yes; then
30549	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
30550        else
30551	        ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
30552        fi
30553	# Put the nasty error message in config.log where it belongs
30554	echo "$ZLIB_PKG_ERRORS" >&5
30555
30556	have_zlib=no
30557elif test $pkg_failed = untried; then
30558     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30559$as_echo "no" >&6; }
30560	have_zlib=no
30561else
30562	ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
30563	ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
30564        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30565$as_echo "yes" >&6; }
30566	have_zlib=yes
30567fi
30568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30569$as_echo "" >&6; }
30570fi
30571
30572if test "$have_zlib" = 'yes'; then
30573
30574$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
30575
30576  CFLAGS="$ZLIB_CFLAGS $CFLAGS"
30577fi
30578
30579 if test "$have_zlib" = 'yes'; then
30580  ZLIB_DELEGATE_TRUE=
30581  ZLIB_DELEGATE_FALSE='#'
30582else
30583  ZLIB_DELEGATE_TRUE='#'
30584  ZLIB_DELEGATE_FALSE=
30585fi
30586
30587
30588
30589
30590
30591# whether modules are built or not.
30592with_ltdl='yes'
30593have_ltdl='no'
30594LTDL_LIBS=''
30595if test "$build_modules" != 'no' ; then
30596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30597$as_echo "-------------------------------------------------------------" >&6; }
30598  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
30599$as_echo_n "checking for libltdl... " >&6; }
30600  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30601$as_echo "" >&6; }
30602  failed=0
30603  passed=0
30604  ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
30605if test "x$ac_cv_header_ltdl_h" = xyes; then :
30606  passed=`expr $passed + 1`
30607else
30608  failed=`expr $failed + 1`
30609fi
30610
30611
30612  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
30613$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
30614if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
30615  $as_echo_n "(cached) " >&6
30616else
30617  ac_check_lib_save_LIBS=$LIBS
30618LIBS="-lltdl  $LIBS"
30619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30620/* end confdefs.h.  */
30621
30622/* Override any GCC internal prototype to avoid an error.
30623   Use char because int might match the return type of a GCC
30624   builtin and then its argument prototype would still apply.  */
30625#ifdef __cplusplus
30626extern "C"
30627#endif
30628char lt_dlinit ();
30629int
30630main ()
30631{
30632return lt_dlinit ();
30633  ;
30634  return 0;
30635}
30636_ACEOF
30637if ac_fn_c_try_link "$LINENO"; then :
30638  ac_cv_lib_ltdl_lt_dlinit=yes
30639else
30640  ac_cv_lib_ltdl_lt_dlinit=no
30641fi
30642rm -f core conftest.err conftest.$ac_objext \
30643    conftest$ac_exeext conftest.$ac_ext
30644LIBS=$ac_check_lib_save_LIBS
30645fi
30646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
30647$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
30648if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
30649  passed=`expr $passed + 1`
30650else
30651  failed=`expr $failed + 1`
30652fi
30653
30654  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
30655$as_echo_n "checking if libltdl package is complete... " >&6; }
30656  if test $passed -gt 0 ; then
30657    if test $failed -gt 0 ; then
30658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30659$as_echo "no -- some components failed test" >&6; }
30660      have_ltdl='no (failed tests)'
30661    else
30662      LTDL_LIBS='-lltdl'
30663      LIBS="$LTDL_LIBS $LIBS"
30664
30665$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
30666
30667      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30668$as_echo "yes" >&6; }
30669      have_ltdl='yes'
30670    fi
30671  else
30672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30673$as_echo "no" >&6; }
30674  fi
30675  if test "$have_ltdl" != 'yes' ; then
30676    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30677$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30678as_fn_error 1 "libltdl is required for modules build
30679See \`config.log' for more details" "$LINENO" 5; }
30680  fi
30681fi
30682 if test "$have_ltdl" != 'no'; then
30683  WITH_LTDL_TRUE=
30684  WITH_LTDL_FALSE='#'
30685else
30686  WITH_LTDL_TRUE='#'
30687  WITH_LTDL_FALSE=
30688fi
30689
30690
30691#
30692# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
30693#
30694LIB_DL=''
30695if test "$enable_profiling" = 'yes'; then
30696    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
30697$as_echo_n "checking for dlopen in -ldl... " >&6; }
30698if ${ac_cv_lib_dl_dlopen+:} false; then :
30699  $as_echo_n "(cached) " >&6
30700else
30701  ac_check_lib_save_LIBS=$LIBS
30702LIBS="-ldl  $LIBS"
30703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30704/* end confdefs.h.  */
30705
30706/* Override any GCC internal prototype to avoid an error.
30707   Use char because int might match the return type of a GCC
30708   builtin and then its argument prototype would still apply.  */
30709#ifdef __cplusplus
30710extern "C"
30711#endif
30712char dlopen ();
30713int
30714main ()
30715{
30716return dlopen ();
30717  ;
30718  return 0;
30719}
30720_ACEOF
30721if ac_fn_c_try_link "$LINENO"; then :
30722  ac_cv_lib_dl_dlopen=yes
30723else
30724  ac_cv_lib_dl_dlopen=no
30725fi
30726rm -f core conftest.err conftest.$ac_objext \
30727    conftest$ac_exeext conftest.$ac_ext
30728LIBS=$ac_check_lib_save_LIBS
30729fi
30730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
30731$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
30732if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
30733  LIB_DL='-ldl'
30734fi
30735
30736    LIBS="$LIB_DL $LIBS"
30737fi
30738
30739
30740
30741#
30742# Set Apple font directory.
30743#
30744
30745# Check whether --with-apple-font-dir was given.
30746if test "${with_apple_font_dir+set}" = set; then :
30747  withval=$with_apple_font_dir; with_apple_font_dir=$withval
30748else
30749  with_apple_font_dir='default'
30750fi
30751
30752
30753if test "$with_apple_font_dir" != 'default'; then
30754    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-apple-font-dir=$with_apple_font_dir "
30755fi
30756
30757
30758#
30759# Check for Autotrace delegate library.
30760#
30761
30762# Check whether --with-autotrace was given.
30763if test "${with_autotrace+set}" = set; then :
30764  withval=$with_autotrace; with_autotrace=$withval
30765else
30766  with_autotrace='no'
30767fi
30768
30769
30770if test "$with_autotrace" != 'yes'; then
30771    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
30772fi
30773
30774have_autotrace='no'
30775AUTOTRACE_CFLAGS=""
30776AUTOTRACE_LIBS=""
30777AUTOTRACE_PKG=""
30778if test "x$with_autotrace" = "xyes"; then
30779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30780$as_echo "-------------------------------------------------------------" >&6; }
30781
30782pkg_failed=no
30783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
30784$as_echo_n "checking for AUTOTRACE... " >&6; }
30785
30786if test -n "$AUTOTRACE_CFLAGS"; then
30787    pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
30788 elif test -n "$PKG_CONFIG"; then
30789    if test -n "$PKG_CONFIG" && \
30790    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
30791  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
30792  ac_status=$?
30793  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30794  test $ac_status = 0; }; then
30795  pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
30796		      test "x$?" != "x0" && pkg_failed=yes
30797else
30798  pkg_failed=yes
30799fi
30800 else
30801    pkg_failed=untried
30802fi
30803if test -n "$AUTOTRACE_LIBS"; then
30804    pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
30805 elif test -n "$PKG_CONFIG"; then
30806    if test -n "$PKG_CONFIG" && \
30807    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
30808  ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
30809  ac_status=$?
30810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30811  test $ac_status = 0; }; then
30812  pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
30813		      test "x$?" != "x0" && pkg_failed=yes
30814else
30815  pkg_failed=yes
30816fi
30817 else
30818    pkg_failed=untried
30819fi
30820
30821
30822
30823if test $pkg_failed = yes; then
30824   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30825$as_echo "no" >&6; }
30826
30827if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30828        _pkg_short_errors_supported=yes
30829else
30830        _pkg_short_errors_supported=no
30831fi
30832        if test $_pkg_short_errors_supported = yes; then
30833	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
30834        else
30835	        AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "autotrace >= 0.31.1" 2>&1`
30836        fi
30837	# Put the nasty error message in config.log where it belongs
30838	echo "$AUTOTRACE_PKG_ERRORS" >&5
30839
30840	have_autotrace=no
30841elif test $pkg_failed = untried; then
30842     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30843$as_echo "no" >&6; }
30844	have_autotrace=no
30845else
30846	AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
30847	AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
30848        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30849$as_echo "yes" >&6; }
30850	have_autotrace=yes
30851fi
30852  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30853$as_echo "" >&6; }
30854fi
30855
30856if test "$have_autotrace" = 'yes'; then
30857
30858$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
30859
30860  CFLAGS="$AUTOTRACE_CFLAGS $CFLAGS"
30861fi
30862
30863 if test "$have_autotrace" = 'yes'; then
30864  AUTOTRACE_DELEGATE_TRUE=
30865  AUTOTRACE_DELEGATE_FALSE='#'
30866else
30867  AUTOTRACE_DELEGATE_TRUE='#'
30868  AUTOTRACE_DELEGATE_FALSE=
30869fi
30870
30871
30872
30873
30874
30875#
30876# Check for Display Postscript delegate library.
30877#
30878
30879# Check whether --with-dps was given.
30880if test "${with_dps+set}" = set; then :
30881  withval=$with_dps; with_dps=$withval
30882else
30883  with_dps='yes'
30884fi
30885
30886
30887if test "$with_dps" != 'yes'; then
30888    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
30889fi
30890
30891have_dps='no'
30892DPS_LIBS=''
30893if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
30894    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30895$as_echo "-------------------------------------------------------------" >&6; }
30896    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
30897$as_echo_n "checking for DPS... " >&6; }
30898    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30899$as_echo "" >&6; }
30900    failed=0
30901    passed=0
30902    PERSIST_CPPFLAGS="$CPPFLAGS"
30903    CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
30904    ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
30905if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
30906  passed=`expr $passed + 1`
30907else
30908  failed=`expr $failed + 1`
30909fi
30910
30911
30912    # DPS issues:
30913    # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
30914    # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
30915    # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
30916    # ImageMagick itself doesn't use -lXt.
30917    have_libdps='no'
30918    LIBDPS_XT=''
30919    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
30920$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
30921if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
30922  $as_echo_n "(cached) " >&6
30923else
30924  ac_check_lib_save_LIBS=$LIBS
30925LIBS="-ldps  $LIBS"
30926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30927/* end confdefs.h.  */
30928
30929/* Override any GCC internal prototype to avoid an error.
30930   Use char because int might match the return type of a GCC
30931   builtin and then its argument prototype would still apply.  */
30932#ifdef __cplusplus
30933extern "C"
30934#endif
30935char DPSInitialize ();
30936int
30937main ()
30938{
30939return DPSInitialize ();
30940  ;
30941  return 0;
30942}
30943_ACEOF
30944if ac_fn_c_try_link "$LINENO"; then :
30945  ac_cv_lib_dps_DPSInitialize=yes
30946else
30947  ac_cv_lib_dps_DPSInitialize=no
30948fi
30949rm -f core conftest.err conftest.$ac_objext \
30950    conftest$ac_exeext conftest.$ac_ext
30951LIBS=$ac_check_lib_save_LIBS
30952fi
30953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
30954$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
30955if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
30956  have_libdps='yes'
30957else
30958  have_libdps='no'
30959fi
30960
30961    if test "$have_libdps" != 'yes'; then
30962        # Unset cache variable so we can try again.
30963        unset ac_cv_lib_dps_DPSInitialize
30964        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
30965$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
30966if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
30967  $as_echo_n "(cached) " >&6
30968else
30969  ac_check_lib_save_LIBS=$LIBS
30970LIBS="-ldps -lXt $LIBS"
30971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30972/* end confdefs.h.  */
30973
30974/* Override any GCC internal prototype to avoid an error.
30975   Use char because int might match the return type of a GCC
30976   builtin and then its argument prototype would still apply.  */
30977#ifdef __cplusplus
30978extern "C"
30979#endif
30980char DPSInitialize ();
30981int
30982main ()
30983{
30984return DPSInitialize ();
30985  ;
30986  return 0;
30987}
30988_ACEOF
30989if ac_fn_c_try_link "$LINENO"; then :
30990  ac_cv_lib_dps_DPSInitialize=yes
30991else
30992  ac_cv_lib_dps_DPSInitialize=no
30993fi
30994rm -f core conftest.err conftest.$ac_objext \
30995    conftest$ac_exeext conftest.$ac_ext
30996LIBS=$ac_check_lib_save_LIBS
30997fi
30998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
30999$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
31000if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
31001  have_libdps='yes'
31002else
31003  have_libdps='no'
31004fi
31005
31006        if test "$have_libdps" = 'yes'; then
31007            LIBDPS_XT='-lXt'
31008        fi
31009    fi
31010    if test "$have_libdps" = 'yes'; then
31011        passed=`expr $passed + 1`
31012    else
31013        failed=`expr $failed + 1`
31014    fi
31015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
31016$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
31017if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
31018  $as_echo_n "(cached) " >&6
31019else
31020  ac_check_lib_save_LIBS=$LIBS
31021LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
31022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31023/* end confdefs.h.  */
31024
31025/* Override any GCC internal prototype to avoid an error.
31026   Use char because int might match the return type of a GCC
31027   builtin and then its argument prototype would still apply.  */
31028#ifdef __cplusplus
31029extern "C"
31030#endif
31031char XDPSPixelsPerPoint ();
31032int
31033main ()
31034{
31035return XDPSPixelsPerPoint ();
31036  ;
31037  return 0;
31038}
31039_ACEOF
31040if ac_fn_c_try_link "$LINENO"; then :
31041  ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
31042else
31043  ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
31044fi
31045rm -f core conftest.err conftest.$ac_objext \
31046    conftest$ac_exeext conftest.$ac_ext
31047LIBS=$ac_check_lib_save_LIBS
31048fi
31049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
31050$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
31051if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
31052  passed=`expr $passed + 1`
31053else
31054  failed=`expr $failed + 1`
31055fi
31056
31057    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
31058$as_echo_n "checking if DPS package is complete... " >&6; }
31059    if test $passed -gt 0; then
31060        if test $failed -gt 0; then
31061            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31062$as_echo "no -- some components failed test" >&6; }
31063            have_dps='no (failed tests)'
31064            CPPFLAGS="$PERSIST_CPPFLAGS"
31065        else
31066            DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
31067            LIBS="$DPS_LIBS $LIBS"
31068
31069$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
31070
31071            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31072$as_echo "yes" >&6; }
31073            have_dps='yes'
31074        fi
31075    else
31076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31077$as_echo "no" >&6; }
31078        CPPFLAGS=$PERSIST_CPPFLAGS
31079    fi
31080fi
31081 if test "$have_dps" = 'yes'; then
31082  DPS_DELEGATE_TRUE=
31083  DPS_DELEGATE_FALSE='#'
31084else
31085  DPS_DELEGATE_TRUE='#'
31086  DPS_DELEGATE_FALSE=
31087fi
31088
31089
31090
31091
31092#
31093# Set DejaVu font directory.
31094#
31095
31096# Check whether --with-dejavu-font-dir was given.
31097if test "${with_dejavu_font_dir+set}" = set; then :
31098  withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
31099else
31100  with_dejavu_font_dir='default'
31101fi
31102
31103
31104if test "$with_dejavu_font_dir" != 'default'; then
31105    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
31106fi
31107
31108
31109#
31110# Check for FFTW delegate library.
31111#
31112
31113# Check whether --with-fftw was given.
31114if test "${with_fftw+set}" = set; then :
31115  withval=$with_fftw; with_fftw=$withval
31116else
31117  with_fftw='yes'
31118fi
31119
31120
31121if test "$with_fftw" != 'yes'; then
31122    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
31123fi
31124
31125have_fftw='no'
31126FFTW_CFLAGS=""
31127FFTW_LIBS=""
31128FFTW_PKG=""
31129if test "x$with_fftw" = "xyes"; then
31130  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31131$as_echo "-------------------------------------------------------------" >&6; }
31132
31133pkg_failed=no
31134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw3" >&5
31135$as_echo_n "checking for fftw3... " >&6; }
31136
31137if test -n "$fftw3_CFLAGS"; then
31138    pkg_cv_fftw3_CFLAGS="$fftw3_CFLAGS"
31139 elif test -n "$PKG_CONFIG"; then
31140    if test -n "$PKG_CONFIG" && \
31141    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
31142  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
31143  ac_status=$?
31144  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31145  test $ac_status = 0; }; then
31146  pkg_cv_fftw3_CFLAGS=`$PKG_CONFIG --cflags "fftw3 >= 3.0.0" 2>/dev/null`
31147		      test "x$?" != "x0" && pkg_failed=yes
31148else
31149  pkg_failed=yes
31150fi
31151 else
31152    pkg_failed=untried
31153fi
31154if test -n "$fftw3_LIBS"; then
31155    pkg_cv_fftw3_LIBS="$fftw3_LIBS"
31156 elif test -n "$PKG_CONFIG"; then
31157    if test -n "$PKG_CONFIG" && \
31158    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fftw3 >= 3.0.0\""; } >&5
31159  ($PKG_CONFIG --exists --print-errors "fftw3 >= 3.0.0") 2>&5
31160  ac_status=$?
31161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31162  test $ac_status = 0; }; then
31163  pkg_cv_fftw3_LIBS=`$PKG_CONFIG --libs "fftw3 >= 3.0.0" 2>/dev/null`
31164		      test "x$?" != "x0" && pkg_failed=yes
31165else
31166  pkg_failed=yes
31167fi
31168 else
31169    pkg_failed=untried
31170fi
31171
31172
31173
31174if test $pkg_failed = yes; then
31175   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31176$as_echo "no" >&6; }
31177
31178if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31179        _pkg_short_errors_supported=yes
31180else
31181        _pkg_short_errors_supported=no
31182fi
31183        if test $_pkg_short_errors_supported = yes; then
31184	        fftw3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
31185        else
31186	        fftw3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fftw3 >= 3.0.0" 2>&1`
31187        fi
31188	# Put the nasty error message in config.log where it belongs
31189	echo "$fftw3_PKG_ERRORS" >&5
31190
31191	have_fftw=no
31192elif test $pkg_failed = untried; then
31193     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31194$as_echo "no" >&6; }
31195	have_fftw=no
31196else
31197	fftw3_CFLAGS=$pkg_cv_fftw3_CFLAGS
31198	fftw3_LIBS=$pkg_cv_fftw3_LIBS
31199        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31200$as_echo "yes" >&6; }
31201	have_fftw=yes
31202fi
31203  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31204$as_echo "" >&6; }
31205fi
31206
31207if test "$have_fftw" = 'yes'; then
31208
31209$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
31210
31211  FFTW_CFLAGS="$fftw3_CFLAGS"
31212  FFTW_LIBS="$fftw3_LIBS"
31213  CFLAGS="$fftw3_CFLAGS $CFLAGS"
31214fi
31215
31216 if test "$have_fftw" = 'yes'; then
31217  FFTW_DELEGATE_TRUE=
31218  FFTW_DELEGATE_FALSE='#'
31219else
31220  FFTW_DELEGATE_TRUE='#'
31221  FFTW_DELEGATE_FALSE=
31222fi
31223
31224
31225
31226
31227
31228#
31229# Check for FLIF delegate library.
31230#
31231
31232# Check whether --with-flif was given.
31233if test "${with_flif+set}" = set; then :
31234  withval=$with_flif; with_flif=$withval
31235else
31236  with_flif='yes'
31237fi
31238
31239
31240if test "$with_flif" != 'yes'; then
31241    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-flif=$with_flif "
31242fi
31243
31244have_flif='no'
31245FLIF_LIBS=''
31246if test "$with_flif" != 'no'; then
31247    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31248$as_echo "-------------------------------------------------------------" >&6; }
31249    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FLIF" >&5
31250$as_echo_n "checking for FLIF... " >&6; }
31251    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31252$as_echo "" >&6; }
31253    failed=0
31254    passed=0
31255    ac_fn_c_check_header_mongrel "$LINENO" "flif.h" "ac_cv_header_flif_h" "$ac_includes_default"
31256if test "x$ac_cv_header_flif_h" = xyes; then :
31257  passed=`expr $passed + 1`
31258else
31259  failed=`expr $failed + 1`
31260fi
31261
31262
31263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flif_create_decoder in -lflif" >&5
31264$as_echo_n "checking for flif_create_decoder in -lflif... " >&6; }
31265if ${ac_cv_lib_flif_flif_create_decoder+:} false; then :
31266  $as_echo_n "(cached) " >&6
31267else
31268  ac_check_lib_save_LIBS=$LIBS
31269LIBS="-lflif  $LIBS"
31270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31271/* end confdefs.h.  */
31272
31273/* Override any GCC internal prototype to avoid an error.
31274   Use char because int might match the return type of a GCC
31275   builtin and then its argument prototype would still apply.  */
31276#ifdef __cplusplus
31277extern "C"
31278#endif
31279char flif_create_decoder ();
31280int
31281main ()
31282{
31283return flif_create_decoder ();
31284  ;
31285  return 0;
31286}
31287_ACEOF
31288if ac_fn_c_try_link "$LINENO"; then :
31289  ac_cv_lib_flif_flif_create_decoder=yes
31290else
31291  ac_cv_lib_flif_flif_create_decoder=no
31292fi
31293rm -f core conftest.err conftest.$ac_objext \
31294    conftest$ac_exeext conftest.$ac_ext
31295LIBS=$ac_check_lib_save_LIBS
31296fi
31297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_flif_flif_create_decoder" >&5
31298$as_echo "$ac_cv_lib_flif_flif_create_decoder" >&6; }
31299if test "x$ac_cv_lib_flif_flif_create_decoder" = xyes; then :
31300  passed=`expr $passed + 1`
31301else
31302  failed=`expr $failed + 1`
31303fi
31304
31305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FLIF package is complete" >&5
31306$as_echo_n "checking if FLIF package is complete... " >&6; }
31307    if test $passed -gt 0; then
31308        if test $failed -gt 0; then
31309            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31310$as_echo "no -- some components failed test" >&6; }
31311            have_flif='no (failed tests)'
31312        else
31313            FLIF_LIBS='-lflif'
31314            LIBS="$FLIF_LIBS $LIBS"
31315
31316$as_echo "#define FLIF_DELEGATE 1" >>confdefs.h
31317
31318            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31319$as_echo "yes" >&6; }
31320            have_flif='yes'
31321        fi
31322    else
31323        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31324$as_echo "no" >&6; }
31325    fi
31326fi
31327 if test "$have_flif" = 'yes'; then
31328  FLIF_DELEGATE_TRUE=
31329  FLIF_DELEGATE_FALSE='#'
31330else
31331  FLIF_DELEGATE_TRUE='#'
31332  FLIF_DELEGATE_FALSE=
31333fi
31334
31335
31336
31337
31338#
31339# Check for FlashPIX delegate library.
31340#
31341
31342# Check whether --with-fpx was given.
31343if test "${with_fpx+set}" = set; then :
31344  withval=$with_fpx; with_fpx=$withval
31345else
31346  with_fpx='yes'
31347fi
31348
31349
31350if test "$with_fpx" != 'yes'; then
31351    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
31352fi
31353
31354have_fpx='no'
31355FPX_LIBS=''
31356if test "$with_fpx" != 'no'; then
31357    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31358$as_echo "-------------------------------------------------------------" >&6; }
31359    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
31360$as_echo_n "checking for FlashPIX... " >&6; }
31361    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31362$as_echo "" >&6; }
31363    failed=0
31364    passed=0
31365    ac_ext=cpp
31366ac_cpp='$CXXCPP $CPPFLAGS'
31367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31370
31371
31372ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
31373if test "x$ac_cv_header_fpxlib_h" = xyes; then :
31374  passed=`expr $passed + 1`
31375else
31376  failed=`expr $failed + 1`
31377fi
31378
31379
31380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
31381$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
31382if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
31383  $as_echo_n "(cached) " >&6
31384else
31385  ac_check_lib_save_LIBS=$LIBS
31386LIBS="-lfpx  $LIBS"
31387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31388/* end confdefs.h.  */
31389
31390/* Override any GCC internal prototype to avoid an error.
31391   Use char because int might match the return type of a GCC
31392   builtin and then its argument prototype would still apply.  */
31393#ifdef __cplusplus
31394extern "C"
31395#endif
31396char FPX_OpenImageByFilename ();
31397int
31398main ()
31399{
31400return FPX_OpenImageByFilename ();
31401  ;
31402  return 0;
31403}
31404_ACEOF
31405if ac_fn_cxx_try_link "$LINENO"; then :
31406  ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
31407else
31408  ac_cv_lib_fpx_FPX_OpenImageByFilename=no
31409fi
31410rm -f core conftest.err conftest.$ac_objext \
31411    conftest$ac_exeext conftest.$ac_ext
31412LIBS=$ac_check_lib_save_LIBS
31413fi
31414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
31415$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
31416if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
31417  passed=`expr $passed + 1`
31418else
31419  failed=`expr $failed + 1`
31420fi
31421
31422    ac_ext=c
31423ac_cpp='$CPP $CPPFLAGS'
31424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31426ac_compiler_gnu=$ac_cv_c_compiler_gnu
31427
31428    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
31429$as_echo_n "checking if FlashPIX package is complete... " >&6; }
31430    if test $passed -gt 0; then
31431        if test $failed -gt 0; then
31432            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31433$as_echo "no -- some components failed test" >&6; }
31434            have_fpx='no (failed tests)'
31435        else
31436            FPX_LIBS='-lfpx'
31437
31438$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
31439
31440            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31441$as_echo "yes" >&6; }
31442            have_fpx='yes'
31443            PERLMAINCC="$CXX"
31444        fi
31445    else
31446        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31447$as_echo "no" >&6; }
31448    fi
31449fi
31450 if test "$have_fpx" = 'yes'; then
31451  FPX_DELEGATE_TRUE=
31452  FPX_DELEGATE_FALSE='#'
31453else
31454  FPX_DELEGATE_TRUE='#'
31455  FPX_DELEGATE_FALSE=
31456fi
31457
31458
31459
31460
31461#
31462# Check for DJVU delegate library.
31463#
31464
31465# Check whether --with-djvu was given.
31466if test "${with_djvu+set}" = set; then :
31467  withval=$with_djvu; with_djvu=$withval
31468else
31469  with_djvu='yes'
31470fi
31471
31472
31473if test "$with_djvu" != 'yes'; then
31474    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
31475fi
31476
31477have_djvu='no'
31478DJVU_CFLAGS=""
31479DJVU_LIBS=""
31480DJVU_PKG=""
31481if test "x$with_djvu" = "xyes"; then
31482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31483$as_echo "-------------------------------------------------------------" >&6; }
31484
31485pkg_failed=no
31486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvuapi" >&5
31487$as_echo_n "checking for ddjvuapi... " >&6; }
31488
31489if test -n "$ddjvuapi_CFLAGS"; then
31490    pkg_cv_ddjvuapi_CFLAGS="$ddjvuapi_CFLAGS"
31491 elif test -n "$PKG_CONFIG"; then
31492    if test -n "$PKG_CONFIG" && \
31493    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
31494  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
31495  ac_status=$?
31496  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31497  test $ac_status = 0; }; then
31498  pkg_cv_ddjvuapi_CFLAGS=`$PKG_CONFIG --cflags "ddjvuapi >= 3.5.0" 2>/dev/null`
31499		      test "x$?" != "x0" && pkg_failed=yes
31500else
31501  pkg_failed=yes
31502fi
31503 else
31504    pkg_failed=untried
31505fi
31506if test -n "$ddjvuapi_LIBS"; then
31507    pkg_cv_ddjvuapi_LIBS="$ddjvuapi_LIBS"
31508 elif test -n "$PKG_CONFIG"; then
31509    if test -n "$PKG_CONFIG" && \
31510    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ddjvuapi >= 3.5.0\""; } >&5
31511  ($PKG_CONFIG --exists --print-errors "ddjvuapi >= 3.5.0") 2>&5
31512  ac_status=$?
31513  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31514  test $ac_status = 0; }; then
31515  pkg_cv_ddjvuapi_LIBS=`$PKG_CONFIG --libs "ddjvuapi >= 3.5.0" 2>/dev/null`
31516		      test "x$?" != "x0" && pkg_failed=yes
31517else
31518  pkg_failed=yes
31519fi
31520 else
31521    pkg_failed=untried
31522fi
31523
31524
31525
31526if test $pkg_failed = yes; then
31527   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31528$as_echo "no" >&6; }
31529
31530if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31531        _pkg_short_errors_supported=yes
31532else
31533        _pkg_short_errors_supported=no
31534fi
31535        if test $_pkg_short_errors_supported = yes; then
31536	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
31537        else
31538	        ddjvuapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ddjvuapi >= 3.5.0" 2>&1`
31539        fi
31540	# Put the nasty error message in config.log where it belongs
31541	echo "$ddjvuapi_PKG_ERRORS" >&5
31542
31543	have_djvu=no
31544elif test $pkg_failed = untried; then
31545     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31546$as_echo "no" >&6; }
31547	have_djvu=no
31548else
31549	ddjvuapi_CFLAGS=$pkg_cv_ddjvuapi_CFLAGS
31550	ddjvuapi_LIBS=$pkg_cv_ddjvuapi_LIBS
31551        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31552$as_echo "yes" >&6; }
31553	have_djvu=yes
31554fi
31555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31556$as_echo "" >&6; }
31557fi
31558
31559if test "$have_djvu" = 'yes'; then
31560
31561$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
31562
31563  DJVU_CFLAGS="$ddjvuapi_CFLAGS"
31564  DJVU_LIBS="$ddjvuapi_LIBS"
31565  CFLAGS="$ddjvuapi_CFLAGS $CFLAGS"
31566fi
31567
31568 if test "$have_djvu" = 'yes'; then
31569  DJVU_DELEGATE_TRUE=
31570  DJVU_DELEGATE_FALSE='#'
31571else
31572  DJVU_DELEGATE_TRUE='#'
31573  DJVU_DELEGATE_FALSE=
31574fi
31575
31576
31577
31578
31579
31580#
31581# Check for fontconfig delegate library.
31582#
31583
31584# Check whether --with-fontconfig was given.
31585if test "${with_fontconfig+set}" = set; then :
31586  withval=$with_fontconfig; with_fontconfig=$withval
31587else
31588  with_fontconfig='yes'
31589fi
31590
31591
31592if test "$with_fontconfig" != 'yes'; then
31593    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
31594fi
31595
31596have_fontconfig='no'
31597FONTCONFIG_CFLAGS=""
31598FONTCONFIG_LIBS=""
31599FONTCONFIG_PKG=""
31600if test "x$with_fontconfig" = "xyes"; then
31601  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31602$as_echo "-------------------------------------------------------------" >&6; }
31603
31604pkg_failed=no
31605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
31606$as_echo_n "checking for FONTCONFIG... " >&6; }
31607
31608if test -n "$FONTCONFIG_CFLAGS"; then
31609    pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
31610 elif test -n "$PKG_CONFIG"; then
31611    if test -n "$PKG_CONFIG" && \
31612    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
31613  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
31614  ac_status=$?
31615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31616  test $ac_status = 0; }; then
31617  pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
31618		      test "x$?" != "x0" && pkg_failed=yes
31619else
31620  pkg_failed=yes
31621fi
31622 else
31623    pkg_failed=untried
31624fi
31625if test -n "$FONTCONFIG_LIBS"; then
31626    pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
31627 elif test -n "$PKG_CONFIG"; then
31628    if test -n "$PKG_CONFIG" && \
31629    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
31630  ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
31631  ac_status=$?
31632  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31633  test $ac_status = 0; }; then
31634  pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
31635		      test "x$?" != "x0" && pkg_failed=yes
31636else
31637  pkg_failed=yes
31638fi
31639 else
31640    pkg_failed=untried
31641fi
31642
31643
31644
31645if test $pkg_failed = yes; then
31646   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31647$as_echo "no" >&6; }
31648
31649if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31650        _pkg_short_errors_supported=yes
31651else
31652        _pkg_short_errors_supported=no
31653fi
31654        if test $_pkg_short_errors_supported = yes; then
31655	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
31656        else
31657	        FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fontconfig >= 2.1.0" 2>&1`
31658        fi
31659	# Put the nasty error message in config.log where it belongs
31660	echo "$FONTCONFIG_PKG_ERRORS" >&5
31661
31662	have_fontconfig=no
31663elif test $pkg_failed = untried; then
31664     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31665$as_echo "no" >&6; }
31666	have_fontconfig=no
31667else
31668	FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
31669	FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
31670        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31671$as_echo "yes" >&6; }
31672	have_fontconfig=yes
31673fi
31674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31675$as_echo "" >&6; }
31676fi
31677
31678if test "$have_fontconfig" = 'yes'; then
31679
31680$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
31681
31682  CFLAGS="$FONTCONFIG_CFLAGS $CFLAGS"
31683fi
31684
31685 if test "$have_fontconfig" = 'yes'; then
31686  FONTCONFIG_DELEGATE_TRUE=
31687  FONTCONFIG_DELEGATE_FALSE='#'
31688else
31689  FONTCONFIG_DELEGATE_TRUE='#'
31690  FONTCONFIG_DELEGATE_FALSE=
31691fi
31692
31693
31694
31695
31696
31697#
31698# Check for the Freetype delegate library.
31699#
31700
31701# Check whether --with-freetype was given.
31702if test "${with_freetype+set}" = set; then :
31703  withval=$with_freetype; with_freetype=$withval
31704else
31705  with_freetype='yes'
31706fi
31707
31708
31709if test "$with_freetype" != 'yes'; then
31710    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
31711fi
31712
31713have_freetype='no'
31714FREETYPE_CFLAGS=""
31715FREETYPE_LIBS=""
31716FREETYPE_PKG=""
31717if test "x$with_freetype" = "xyes"; then
31718  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31719$as_echo "-------------------------------------------------------------" >&6; }
31720
31721pkg_failed=no
31722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
31723$as_echo_n "checking for FREETYPE... " >&6; }
31724
31725if test -n "$FREETYPE_CFLAGS"; then
31726    pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
31727 elif test -n "$PKG_CONFIG"; then
31728    if test -n "$PKG_CONFIG" && \
31729    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
31730  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
31731  ac_status=$?
31732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31733  test $ac_status = 0; }; then
31734  pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
31735		      test "x$?" != "x0" && pkg_failed=yes
31736else
31737  pkg_failed=yes
31738fi
31739 else
31740    pkg_failed=untried
31741fi
31742if test -n "$FREETYPE_LIBS"; then
31743    pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
31744 elif test -n "$PKG_CONFIG"; then
31745    if test -n "$PKG_CONFIG" && \
31746    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
31747  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
31748  ac_status=$?
31749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31750  test $ac_status = 0; }; then
31751  pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
31752		      test "x$?" != "x0" && pkg_failed=yes
31753else
31754  pkg_failed=yes
31755fi
31756 else
31757    pkg_failed=untried
31758fi
31759
31760
31761
31762if test $pkg_failed = yes; then
31763   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31764$as_echo "no" >&6; }
31765
31766if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31767        _pkg_short_errors_supported=yes
31768else
31769        _pkg_short_errors_supported=no
31770fi
31771        if test $_pkg_short_errors_supported = yes; then
31772	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
31773        else
31774	        FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
31775        fi
31776	# Put the nasty error message in config.log where it belongs
31777	echo "$FREETYPE_PKG_ERRORS" >&5
31778
31779	have_freetype=no
31780elif test $pkg_failed = untried; then
31781     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31782$as_echo "no" >&6; }
31783	have_freetype=no
31784else
31785	FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
31786	FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
31787        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31788$as_echo "yes" >&6; }
31789	have_freetype=yes
31790fi
31791  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31792$as_echo "" >&6; }
31793fi
31794
31795if test "$have_freetype" = 'yes'; then
31796
31797$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
31798
31799  CFLAGS="$FREETYPE_CFLAGS $CFLAGS"
31800fi
31801
31802 if test "$have_freetype" = 'yes'; then
31803  FREETYPE_DELEGATE_TRUE=
31804  FREETYPE_DELEGATE_FALSE='#'
31805else
31806  FREETYPE_DELEGATE_TRUE='#'
31807  FREETYPE_DELEGATE_FALSE=
31808fi
31809
31810
31811
31812
31813
31814#
31815# Check for the raqm delegate library.
31816#
31817
31818# Check whether --with-raqm was given.
31819if test "${with_raqm+set}" = set; then :
31820  withval=$with_raqm; with_raqm=$withval
31821else
31822  with_raqm='yes'
31823fi
31824
31825
31826if test "$with_raqm" != 'yes'; then
31827    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-raqm=$with_raqm "
31828fi
31829
31830have_raqm='no'
31831RAQM_CFLAGS=""
31832RAQM_LIBS=""
31833RAQM_PKG=""
31834if test "x$with_raqm" = "xyes"; then
31835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31836$as_echo "-------------------------------------------------------------" >&6; }
31837
31838pkg_failed=no
31839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAQM" >&5
31840$as_echo_n "checking for RAQM... " >&6; }
31841
31842if test -n "$RAQM_CFLAGS"; then
31843    pkg_cv_RAQM_CFLAGS="$RAQM_CFLAGS"
31844 elif test -n "$PKG_CONFIG"; then
31845    if test -n "$PKG_CONFIG" && \
31846    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
31847  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
31848  ac_status=$?
31849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31850  test $ac_status = 0; }; then
31851  pkg_cv_RAQM_CFLAGS=`$PKG_CONFIG --cflags "raqm" 2>/dev/null`
31852		      test "x$?" != "x0" && pkg_failed=yes
31853else
31854  pkg_failed=yes
31855fi
31856 else
31857    pkg_failed=untried
31858fi
31859if test -n "$RAQM_LIBS"; then
31860    pkg_cv_RAQM_LIBS="$RAQM_LIBS"
31861 elif test -n "$PKG_CONFIG"; then
31862    if test -n "$PKG_CONFIG" && \
31863    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"raqm\""; } >&5
31864  ($PKG_CONFIG --exists --print-errors "raqm") 2>&5
31865  ac_status=$?
31866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31867  test $ac_status = 0; }; then
31868  pkg_cv_RAQM_LIBS=`$PKG_CONFIG --libs "raqm" 2>/dev/null`
31869		      test "x$?" != "x0" && pkg_failed=yes
31870else
31871  pkg_failed=yes
31872fi
31873 else
31874    pkg_failed=untried
31875fi
31876
31877
31878
31879if test $pkg_failed = yes; then
31880   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881$as_echo "no" >&6; }
31882
31883if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31884        _pkg_short_errors_supported=yes
31885else
31886        _pkg_short_errors_supported=no
31887fi
31888        if test $_pkg_short_errors_supported = yes; then
31889	        RAQM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "raqm" 2>&1`
31890        else
31891	        RAQM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "raqm" 2>&1`
31892        fi
31893	# Put the nasty error message in config.log where it belongs
31894	echo "$RAQM_PKG_ERRORS" >&5
31895
31896	have_raqm=no
31897elif test $pkg_failed = untried; then
31898     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31899$as_echo "no" >&6; }
31900	have_raqm=no
31901else
31902	RAQM_CFLAGS=$pkg_cv_RAQM_CFLAGS
31903	RAQM_LIBS=$pkg_cv_RAQM_LIBS
31904        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31905$as_echo "yes" >&6; }
31906	have_raqm=yes
31907fi
31908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31909$as_echo "" >&6; }
31910fi
31911
31912if test "$have_raqm" = 'yes'; then
31913
31914$as_echo "#define RAQM_DELEGATE 1" >>confdefs.h
31915
31916  CFLAGS="$RAQM_CFLAGS $CFLAGS"
31917fi
31918
31919 if test "$have_raqm" = 'yes'; then
31920  RAQM_DELEGATE_TRUE=
31921  RAQM_DELEGATE_FALSE='#'
31922else
31923  RAQM_DELEGATE_TRUE='#'
31924  RAQM_DELEGATE_FALSE=
31925fi
31926
31927
31928
31929
31930
31931#
31932# Check for Ghostscript library or framework.
31933#
31934# Test for iapi.h & test for gsapi_new_instance in -lgs
31935# or -framework Ghostscript
31936
31937
31938# Check whether --with-gslib was given.
31939if test "${with_gslib+set}" = set; then :
31940  withval=$with_gslib; with_gslib=$withval
31941else
31942  with_gslib='no'
31943fi
31944
31945
31946gslib_framework='no'
31947if test "$with_gslib" != 'yes'; then
31948    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
31949fi
31950
31951have_gslib='no'
31952GS_LIBS=''
31953if test "$with_gslib" != 'no'; then
31954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31955$as_echo "-------------------------------------------------------------" >&6; }
31956    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
31957$as_echo_n "checking for Ghostscript... " >&6; }
31958    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31959$as_echo "" >&6; }
31960    framework=0
31961    failed=0
31962    passed=0
31963    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
31964if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
31965  passed=`expr $passed + 1`
31966else
31967  failed=`expr $failed + 1`
31968fi
31969
31970
31971    ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
31972if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
31973  passed=`expr $passed + 1`
31974else
31975  failed=`expr $failed + 1`
31976fi
31977
31978
31979    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
31980$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
31981if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
31982  $as_echo_n "(cached) " >&6
31983else
31984  ac_check_framework_save_LIBS=$LIBS
31985LIBS="-framework Ghostscript  $LIBS"
31986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31987/* end confdefs.h.  */
31988
31989/* Override any GCC internal prototype to avoid an error.
31990   Use char because int might match the return type of a GCC
31991   builtin and then its argument prototype would still apply.  */
31992#ifdef __cplusplus
31993extern "C"
31994#endif
31995char gsapi_new_instance ();
31996int
31997main ()
31998{
31999return gsapi_new_instance ();
32000  ;
32001  return 0;
32002}
32003_ACEOF
32004if ac_fn_c_try_link "$LINENO"; then :
32005  ac_cv_framework_Ghostscript_gsapi_new_instance=yes
32006else
32007  ac_cv_framework_Ghostscript_gsapi_new_instance=no
32008fi
32009rm -f core conftest.err conftest.$ac_objext \
32010    conftest$ac_exeext conftest.$ac_ext
32011LIBS=$ac_check_framework_save_LIBS
32012fi
32013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
32014$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
32015if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
32016  framework=`expr $framework + 1`
32017else
32018  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
32019$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
32020if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
32021  $as_echo_n "(cached) " >&6
32022else
32023  ac_check_lib_save_LIBS=$LIBS
32024LIBS="-lgs  $LIBS"
32025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32026/* end confdefs.h.  */
32027
32028/* Override any GCC internal prototype to avoid an error.
32029   Use char because int might match the return type of a GCC
32030   builtin and then its argument prototype would still apply.  */
32031#ifdef __cplusplus
32032extern "C"
32033#endif
32034char gsapi_new_instance ();
32035int
32036main ()
32037{
32038return gsapi_new_instance ();
32039  ;
32040  return 0;
32041}
32042_ACEOF
32043if ac_fn_c_try_link "$LINENO"; then :
32044  ac_cv_lib_gs_gsapi_new_instance=yes
32045else
32046  ac_cv_lib_gs_gsapi_new_instance=no
32047fi
32048rm -f core conftest.err conftest.$ac_objext \
32049    conftest$ac_exeext conftest.$ac_ext
32050LIBS=$ac_check_lib_save_LIBS
32051fi
32052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
32053$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
32054if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
32055  passed=`expr $passed + 1`
32056else
32057  failed=`expr $failed + 1`
32058fi
32059
32060fi
32061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
32062$as_echo_n "checking if Ghostscript package is complete... " >&6; }
32063    if test $passed -gt 0; then
32064        if test $failed -gt 0; then
32065            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32066$as_echo "no -- some components failed test" >&6; }
32067            have_gslib='no (failed tests)'
32068        else
32069            if test $framework -gt 0; then
32070                GS_LIBS='-framework Ghostscript'
32071                gslib_framework='yes'
32072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
32073$as_echo "yes, using framework." >&6; }
32074            else
32075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
32076$as_echo "yes, using library." >&6; }
32077                GS_LIBS='-lgs'
32078            fi
32079            LIBS="$GS_LIBS $LIBS"
32080
32081$as_echo "#define GS_DELEGATE 1" >>confdefs.h
32082
32083            have_gslib='yes'
32084        fi
32085    else
32086        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32087$as_echo "no" >&6; }
32088    fi
32089fi
32090 if test "$have_gslib" = 'yes'; then
32091  GS_DELEGATE_TRUE=
32092  GS_DELEGATE_FALSE='#'
32093else
32094  GS_DELEGATE_TRUE='#'
32095  GS_DELEGATE_FALSE=
32096fi
32097
32098
32099
32100# Set default font search path
32101
32102# Check whether --with-fontpath was given.
32103if test "${with_fontpath+set}" = set; then :
32104  withval=$with_fontpath; with_fontpath=$withval
32105else
32106  with_fontpath=''
32107fi
32108
32109
32110if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
32111    with_fontpath=''
32112else
32113
32114cat >>confdefs.h <<_ACEOF
32115#define MAGICK_FONT_PATH "$with_fontpath"
32116_ACEOF
32117
32118fi
32119if test "$with_fontpath=" != ''; then
32120    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
32121fi
32122
32123# Set Ghostscript font directory
32124
32125# Check whether --with-gs-font-dir was given.
32126if test "${with_gs_font_dir+set}" = set; then :
32127  withval=$with_gs_font_dir; with_gs_font_dir=$withval
32128else
32129  with_gs_font_dir='default'
32130fi
32131
32132
32133if test "$with_gs_font_dir" != 'default'; then
32134    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
32135fi
32136
32137
32138#
32139# Check for GVC delegate library.
32140#
32141
32142# Check whether --with-gvc was given.
32143if test "${with_gvc+set}" = set; then :
32144  withval=$with_gvc; with_gvc=$withval
32145else
32146  with_gvc='yes'
32147fi
32148
32149
32150if test "$with_gvc" != 'yes'; then
32151    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
32152fi
32153
32154GVC_PKG=""
32155if test "x$with_gvc" = "xyes"; then
32156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32157$as_echo "-------------------------------------------------------------" >&6; }
32158
32159pkg_failed=no
32160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
32161$as_echo_n "checking for GVC... " >&6; }
32162
32163if test -n "$GVC_CFLAGS"; then
32164    pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
32165 elif test -n "$PKG_CONFIG"; then
32166    if test -n "$PKG_CONFIG" && \
32167    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
32168  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
32169  ac_status=$?
32170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32171  test $ac_status = 0; }; then
32172  pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
32173		      test "x$?" != "x0" && pkg_failed=yes
32174else
32175  pkg_failed=yes
32176fi
32177 else
32178    pkg_failed=untried
32179fi
32180if test -n "$GVC_LIBS"; then
32181    pkg_cv_GVC_LIBS="$GVC_LIBS"
32182 elif test -n "$PKG_CONFIG"; then
32183    if test -n "$PKG_CONFIG" && \
32184    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
32185  ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
32186  ac_status=$?
32187  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32188  test $ac_status = 0; }; then
32189  pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
32190		      test "x$?" != "x0" && pkg_failed=yes
32191else
32192  pkg_failed=yes
32193fi
32194 else
32195    pkg_failed=untried
32196fi
32197
32198
32199
32200if test $pkg_failed = yes; then
32201   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32202$as_echo "no" >&6; }
32203
32204if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32205        _pkg_short_errors_supported=yes
32206else
32207        _pkg_short_errors_supported=no
32208fi
32209        if test $_pkg_short_errors_supported = yes; then
32210	        GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
32211        else
32212	        GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgvc >= 2.9.0" 2>&1`
32213        fi
32214	# Put the nasty error message in config.log where it belongs
32215	echo "$GVC_PKG_ERRORS" >&5
32216
32217	have_gvc=no
32218elif test $pkg_failed = untried; then
32219     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32220$as_echo "no" >&6; }
32221	have_gvc=no
32222else
32223	GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
32224	GVC_LIBS=$pkg_cv_GVC_LIBS
32225        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32226$as_echo "yes" >&6; }
32227	have_gvc=yes
32228fi
32229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32230$as_echo "" >&6; }
32231fi
32232
32233if test "$have_gvc" = 'yes'; then
32234
32235$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
32236
32237  CFLAGS="$GVC_CFLAGS $CFLAGS"
32238fi
32239
32240 if test "$have_gvc" = 'yes'; then
32241  GVC_DELEGATE_TRUE=
32242  GVC_DELEGATE_FALSE='#'
32243else
32244  GVC_DELEGATE_TRUE='#'
32245  GVC_DELEGATE_FALSE=
32246fi
32247
32248
32249
32250
32251
32252#
32253# Check for JBIG delegate library.
32254#
32255
32256
32257# Check whether --with-jbig was given.
32258if test "${with_jbig+set}" = set; then :
32259  withval=$with_jbig; with_jbig=$withval
32260else
32261  with_jbig='yes'
32262fi
32263
32264
32265have_jbig='no'
32266JBIG_LIBS=''
32267if test "$with_jbig" != 'no'; then
32268    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32269$as_echo "-------------------------------------------------------------" >&6; }
32270    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
32271$as_echo_n "checking for JBIG... " >&6; }
32272    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32273$as_echo "" >&6; }
32274    failed=0
32275    passed=0
32276    ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
32277if test "x$ac_cv_header_jbig_h" = xyes; then :
32278  passed=`expr $passed + 1`
32279else
32280  failed=`expr $failed + 1`
32281fi
32282
32283
32284    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
32285$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
32286if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
32287  $as_echo_n "(cached) " >&6
32288else
32289  ac_check_lib_save_LIBS=$LIBS
32290LIBS="-ljbig  $LIBS"
32291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32292/* end confdefs.h.  */
32293
32294/* Override any GCC internal prototype to avoid an error.
32295   Use char because int might match the return type of a GCC
32296   builtin and then its argument prototype would still apply.  */
32297#ifdef __cplusplus
32298extern "C"
32299#endif
32300char jbg_dec_init ();
32301int
32302main ()
32303{
32304return jbg_dec_init ();
32305  ;
32306  return 0;
32307}
32308_ACEOF
32309if ac_fn_c_try_link "$LINENO"; then :
32310  ac_cv_lib_jbig_jbg_dec_init=yes
32311else
32312  ac_cv_lib_jbig_jbg_dec_init=no
32313fi
32314rm -f core conftest.err conftest.$ac_objext \
32315    conftest$ac_exeext conftest.$ac_ext
32316LIBS=$ac_check_lib_save_LIBS
32317fi
32318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
32319$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
32320if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
32321  passed=`expr $passed + 1`
32322else
32323  failed=`expr $failed + 1`
32324fi
32325
32326    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
32327$as_echo_n "checking if JBIG package is complete... " >&6; }
32328    if test $passed -gt 0; then
32329        if test $failed -gt 0; then
32330            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32331$as_echo "no -- some components failed test" >&6; }
32332            have_jbig='no (failed tests)'
32333        else
32334            JBIG_LIBS='-ljbig'
32335            LIBS="$JBIG_LIBS $LIBS"
32336
32337$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
32338
32339            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32340$as_echo "yes" >&6; }
32341            have_jbig='yes'
32342        fi
32343    else
32344        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32345$as_echo "no" >&6; }
32346    fi
32347fi
32348 if test "$have_jbig" = 'yes'; then
32349  JBIG_DELEGATE_TRUE=
32350  JBIG_DELEGATE_FALSE='#'
32351else
32352  JBIG_DELEGATE_TRUE='#'
32353  JBIG_DELEGATE_FALSE=
32354fi
32355
32356
32357
32358
32359#
32360# Check for JPEG delegate library.
32361#
32362
32363# Check whether --with-jpeg was given.
32364if test "${with_jpeg+set}" = set; then :
32365  withval=$with_jpeg; with_jpeg=$withval
32366else
32367  with_jpeg='yes'
32368fi
32369
32370
32371if test "$with_jpeg" != 'yes'; then
32372    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
32373fi
32374
32375have_jpeg='no'
32376JPEG_LIBS=''
32377if test "$with_jpeg" != 'no'; then
32378    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32379$as_echo "-------------------------------------------------------------" >&6; }
32380    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
32381$as_echo_n "checking for JPEG... " >&6; }
32382    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32383$as_echo "" >&6; }
32384    failed=0
32385    passed=0
32386    ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
32387if test "x$ac_cv_header_jconfig_h" = xyes; then :
32388  passed=`expr $passed + 1`
32389else
32390  failed=`expr $failed + 1`
32391fi
32392
32393
32394    ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
32395if test "x$ac_cv_header_jerror_h" = xyes; then :
32396  passed=`expr $passed + 1`
32397else
32398  failed=`expr $failed + 1`
32399fi
32400
32401
32402    ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
32403if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
32404  passed=`expr $passed + 1`
32405else
32406  failed=`expr $failed + 1`
32407fi
32408
32409
32410    ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
32411if test "x$ac_cv_header_jpeglib_h" = xyes; then :
32412  passed=`expr $passed + 1`
32413else
32414  failed=`expr $failed + 1`
32415fi
32416
32417
32418    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
32419$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
32420if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
32421  $as_echo_n "(cached) " >&6
32422else
32423  ac_check_lib_save_LIBS=$LIBS
32424LIBS="-ljpeg  $LIBS"
32425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32426/* end confdefs.h.  */
32427
32428/* Override any GCC internal prototype to avoid an error.
32429   Use char because int might match the return type of a GCC
32430   builtin and then its argument prototype would still apply.  */
32431#ifdef __cplusplus
32432extern "C"
32433#endif
32434char jpeg_read_header ();
32435int
32436main ()
32437{
32438return jpeg_read_header ();
32439  ;
32440  return 0;
32441}
32442_ACEOF
32443if ac_fn_c_try_link "$LINENO"; then :
32444  ac_cv_lib_jpeg_jpeg_read_header=yes
32445else
32446  ac_cv_lib_jpeg_jpeg_read_header=no
32447fi
32448rm -f core conftest.err conftest.$ac_objext \
32449    conftest$ac_exeext conftest.$ac_ext
32450LIBS=$ac_check_lib_save_LIBS
32451fi
32452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
32453$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
32454if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
32455  passed=`expr $passed + 1`
32456else
32457  failed=`expr $failed + 1`
32458fi
32459
32460
32461# Test for compatible JPEG library
32462if test "$ac_cv_jpeg_version_ok" != 'yes'; then
32463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
32464$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
32465if ${ac_cv_jpeg_version_ok+:} false; then :
32466  $as_echo_n "(cached) " >&6
32467else
32468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32469/* end confdefs.h.  */
32470#include <stdio.h>
32471#include <stdlib.h>
32472#include <jpeglib.h>
32473
32474int
32475main ()
32476{
32477
32478#if JPEG_LIB_VERSION < 62
32479#error IJG JPEG library must be version 6b or newer!
32480#endif
32481return 0;
32482
32483  ;
32484  return 0;
32485}
32486_ACEOF
32487if ac_fn_c_try_compile "$LINENO"; then :
32488  ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
32489else
32490  ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
32491fi
32492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32493fi
32494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
32495$as_echo "$ac_cv_jpeg_version_ok" >&6; }
32496fi
32497    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
32498$as_echo_n "checking if JPEG package is complete... " >&6; }
32499    if test $passed -gt 0; then
32500        if test $failed -gt 0; then
32501            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32502$as_echo "no -- some components failed test" >&6; }
32503            have_jpeg='no (failed tests)'
32504        else
32505            JPEG_LIBS='-ljpeg'
32506            LIBS="$JPEG_LIBS $LIBS"
32507
32508$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
32509
32510            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32511$as_echo "yes" >&6; }
32512            have_jpeg='yes'
32513        fi
32514    else
32515        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32516$as_echo "no" >&6; }
32517    fi
32518fi
32519 if test "$have_jpeg" = 'yes'; then
32520  JPEG_DELEGATE_TRUE=
32521  JPEG_DELEGATE_FALSE='#'
32522else
32523  JPEG_DELEGATE_TRUE='#'
32524  JPEG_DELEGATE_FALSE=
32525fi
32526
32527
32528
32529
32530#
32531# Check for LCMS delegate library.
32532#
32533
32534# Check whether --with-lcms was given.
32535if test "${with_lcms+set}" = set; then :
32536  withval=$with_lcms; with_lcms=$withval
32537else
32538  with_lcms='yes'
32539fi
32540
32541if test "$with_lcms" != 'yes' ; then
32542    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
32543fi
32544
32545have_lcms='no'
32546LCMS_CFLAGS=""
32547LCMS_LIBS=""
32548LCMS_PKG=""
32549if test "x$with_lcms" = "xyes"; then
32550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32551$as_echo "-------------------------------------------------------------" >&6; }
32552
32553pkg_failed=no
32554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
32555$as_echo_n "checking for LCMS2... " >&6; }
32556
32557if test -n "$LCMS2_CFLAGS"; then
32558    pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
32559 elif test -n "$PKG_CONFIG"; then
32560    if test -n "$PKG_CONFIG" && \
32561    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
32562  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
32563  ac_status=$?
32564  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32565  test $ac_status = 0; }; then
32566  pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2 >= 2.0.0" 2>/dev/null`
32567		      test "x$?" != "x0" && pkg_failed=yes
32568else
32569  pkg_failed=yes
32570fi
32571 else
32572    pkg_failed=untried
32573fi
32574if test -n "$LCMS2_LIBS"; then
32575    pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
32576 elif test -n "$PKG_CONFIG"; then
32577    if test -n "$PKG_CONFIG" && \
32578    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2 >= 2.0.0\""; } >&5
32579  ($PKG_CONFIG --exists --print-errors "lcms2 >= 2.0.0") 2>&5
32580  ac_status=$?
32581  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32582  test $ac_status = 0; }; then
32583  pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2 >= 2.0.0" 2>/dev/null`
32584		      test "x$?" != "x0" && pkg_failed=yes
32585else
32586  pkg_failed=yes
32587fi
32588 else
32589    pkg_failed=untried
32590fi
32591
32592
32593
32594if test $pkg_failed = yes; then
32595   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32596$as_echo "no" >&6; }
32597
32598if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32599        _pkg_short_errors_supported=yes
32600else
32601        _pkg_short_errors_supported=no
32602fi
32603        if test $_pkg_short_errors_supported = yes; then
32604	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
32605        else
32606	        LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lcms2 >= 2.0.0" 2>&1`
32607        fi
32608	# Put the nasty error message in config.log where it belongs
32609	echo "$LCMS2_PKG_ERRORS" >&5
32610
32611	have_lcms=no
32612elif test $pkg_failed = untried; then
32613     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32614$as_echo "no" >&6; }
32615	have_lcms=no
32616else
32617	LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
32618	LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
32619        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32620$as_echo "yes" >&6; }
32621	have_lcms=yes
32622fi
32623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32624$as_echo "" >&6; }
32625fi
32626
32627if test "$have_lcms" = 'yes'; then
32628
32629$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
32630
32631  LCMS_CFLAGS="$LCMS2_CFLAGS"
32632  LCMS_LIBS="$LCMS2_LIBS"
32633  CFLAGS="$LCMS2_CFLAGS $CFLAGS"
32634  ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
32635if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
32636  have_lcms_header='yes'
32637fi
32638
32639
32640  if test "$have_lcms_header" = 'yes'; then
32641
32642$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
32643
32644  else
32645
32646$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
32647
32648  fi
32649fi
32650
32651 if test "$have_lcms" = 'yes'; then
32652  LCMS_DELEGATE_TRUE=
32653  LCMS_DELEGATE_FALSE='#'
32654else
32655  LCMS_DELEGATE_TRUE='#'
32656  LCMS_DELEGATE_FALSE=
32657fi
32658
32659
32660
32661
32662
32663#
32664# Check for the OpenJP2 delegate library.
32665#
32666
32667# Check whether --with-openjp2 was given.
32668if test "${with_openjp2+set}" = set; then :
32669  withval=$with_openjp2; with_openjp2=$withval
32670else
32671  with_openjp2='yes'
32672fi
32673
32674
32675if test "$with_openjp2" != 'yes'; then
32676    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openjp2=$with_openjp2 "
32677fi
32678
32679have_openjp2='no'
32680LIBOPENJP2_CFLAGS=""
32681LIBOPENJP2_LIBS=""
32682LIBOPENJP2_PKG=""
32683if test "x$with_openjp2" = "xyes"; then
32684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32685$as_echo "-------------------------------------------------------------" >&6; }
32686
32687pkg_failed=no
32688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBOPENJP2" >&5
32689$as_echo_n "checking for LIBOPENJP2... " >&6; }
32690
32691if test -n "$LIBOPENJP2_CFLAGS"; then
32692    pkg_cv_LIBOPENJP2_CFLAGS="$LIBOPENJP2_CFLAGS"
32693 elif test -n "$PKG_CONFIG"; then
32694    if test -n "$PKG_CONFIG" && \
32695    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
32696  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
32697  ac_status=$?
32698  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32699  test $ac_status = 0; }; then
32700  pkg_cv_LIBOPENJP2_CFLAGS=`$PKG_CONFIG --cflags "libopenjp2 >= 2.1.0" 2>/dev/null`
32701		      test "x$?" != "x0" && pkg_failed=yes
32702else
32703  pkg_failed=yes
32704fi
32705 else
32706    pkg_failed=untried
32707fi
32708if test -n "$LIBOPENJP2_LIBS"; then
32709    pkg_cv_LIBOPENJP2_LIBS="$LIBOPENJP2_LIBS"
32710 elif test -n "$PKG_CONFIG"; then
32711    if test -n "$PKG_CONFIG" && \
32712    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libopenjp2 >= 2.1.0\""; } >&5
32713  ($PKG_CONFIG --exists --print-errors "libopenjp2 >= 2.1.0") 2>&5
32714  ac_status=$?
32715  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32716  test $ac_status = 0; }; then
32717  pkg_cv_LIBOPENJP2_LIBS=`$PKG_CONFIG --libs "libopenjp2 >= 2.1.0" 2>/dev/null`
32718		      test "x$?" != "x0" && pkg_failed=yes
32719else
32720  pkg_failed=yes
32721fi
32722 else
32723    pkg_failed=untried
32724fi
32725
32726
32727
32728if test $pkg_failed = yes; then
32729   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32730$as_echo "no" >&6; }
32731
32732if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32733        _pkg_short_errors_supported=yes
32734else
32735        _pkg_short_errors_supported=no
32736fi
32737        if test $_pkg_short_errors_supported = yes; then
32738	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
32739        else
32740	        LIBOPENJP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libopenjp2 >= 2.1.0" 2>&1`
32741        fi
32742	# Put the nasty error message in config.log where it belongs
32743	echo "$LIBOPENJP2_PKG_ERRORS" >&5
32744
32745	have_openjp2=no
32746elif test $pkg_failed = untried; then
32747     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32748$as_echo "no" >&6; }
32749	have_openjp2=no
32750else
32751	LIBOPENJP2_CFLAGS=$pkg_cv_LIBOPENJP2_CFLAGS
32752	LIBOPENJP2_LIBS=$pkg_cv_LIBOPENJP2_LIBS
32753        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32754$as_echo "yes" >&6; }
32755	have_openjp2=yes
32756fi
32757  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32758$as_echo "" >&6; }
32759fi
32760
32761if test "$have_openjp2" = 'yes'; then
32762
32763$as_echo "#define LIBOPENJP2_DELEGATE 1" >>confdefs.h
32764
32765  CFLAGS="$LIBOPENJP2_CFLAGS $CFLAGS"
32766fi
32767
32768 if test "$have_openjp2" = 'yes'; then
32769  LIBOPENJP2_DELEGATE_TRUE=
32770  LIBOPENJP2_DELEGATE_FALSE='#'
32771else
32772  LIBOPENJP2_DELEGATE_TRUE='#'
32773  LIBOPENJP2_DELEGATE_FALSE=
32774fi
32775
32776
32777
32778
32779
32780
32781#
32782# Check for the LQR (Liquid Rescale) delegate library.
32783#
32784
32785# Check whether --with-lqr was given.
32786if test "${with_lqr+set}" = set; then :
32787  withval=$with_lqr; with_lqr=$withval
32788else
32789  with_lqr='yes'
32790fi
32791
32792
32793if test "$with_lqr" != 'yes'; then
32794    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
32795fi
32796
32797have_lqr='no'
32798LQR_CFLAGS=""
32799LQR_LIBS=""
32800LQR_PKG=""
32801if test "x$with_lqr" = "xyes"; then
32802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32803$as_echo "-------------------------------------------------------------" >&6; }
32804
32805pkg_failed=no
32806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
32807$as_echo_n "checking for LQR... " >&6; }
32808
32809if test -n "$LQR_CFLAGS"; then
32810    pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
32811 elif test -n "$PKG_CONFIG"; then
32812    if test -n "$PKG_CONFIG" && \
32813    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
32814  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
32815  ac_status=$?
32816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32817  test $ac_status = 0; }; then
32818  pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
32819		      test "x$?" != "x0" && pkg_failed=yes
32820else
32821  pkg_failed=yes
32822fi
32823 else
32824    pkg_failed=untried
32825fi
32826if test -n "$LQR_LIBS"; then
32827    pkg_cv_LQR_LIBS="$LQR_LIBS"
32828 elif test -n "$PKG_CONFIG"; then
32829    if test -n "$PKG_CONFIG" && \
32830    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
32831  ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
32832  ac_status=$?
32833  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32834  test $ac_status = 0; }; then
32835  pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
32836		      test "x$?" != "x0" && pkg_failed=yes
32837else
32838  pkg_failed=yes
32839fi
32840 else
32841    pkg_failed=untried
32842fi
32843
32844
32845
32846if test $pkg_failed = yes; then
32847   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32848$as_echo "no" >&6; }
32849
32850if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32851        _pkg_short_errors_supported=yes
32852else
32853        _pkg_short_errors_supported=no
32854fi
32855        if test $_pkg_short_errors_supported = yes; then
32856	        LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
32857        else
32858	        LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lqr-1 >= 0.1.0" 2>&1`
32859        fi
32860	# Put the nasty error message in config.log where it belongs
32861	echo "$LQR_PKG_ERRORS" >&5
32862
32863	have_lqr=no
32864elif test $pkg_failed = untried; then
32865     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32866$as_echo "no" >&6; }
32867	have_lqr=no
32868else
32869	LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
32870	LQR_LIBS=$pkg_cv_LQR_LIBS
32871        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32872$as_echo "yes" >&6; }
32873	have_lqr=yes
32874fi
32875  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32876$as_echo "" >&6; }
32877fi
32878
32879if test "$have_lqr" = 'yes'; then
32880
32881$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
32882
32883  CFLAGS="$LQR_CFLAGS $CFLAGS"
32884fi
32885
32886 if test "$have_lqr" = 'yes'; then
32887  LQR_DELEGATE_TRUE=
32888  LQR_DELEGATE_FALSE='#'
32889else
32890  LQR_DELEGATE_TRUE='#'
32891  LQR_DELEGATE_FALSE=
32892fi
32893
32894
32895
32896
32897
32898# Disable LZMA (lzma library)
32899
32900# Check whether --with-lzma was given.
32901if test "${with_lzma+set}" = set; then :
32902  withval=$with_lzma; with_lzma=$withval
32903else
32904  with_lzma='yes'
32905fi
32906
32907if test "$with_lzma" != 'yes' ; then
32908    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
32909fi
32910
32911LZMA_PKG=""
32912if test "x$with_lzma" = "xyes"; then
32913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32914$as_echo "-------------------------------------------------------------" >&6; }
32915
32916pkg_failed=no
32917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
32918$as_echo_n "checking for LZMA... " >&6; }
32919
32920if test -n "$LZMA_CFLAGS"; then
32921    pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
32922 elif test -n "$PKG_CONFIG"; then
32923    if test -n "$PKG_CONFIG" && \
32924    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
32925  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
32926  ac_status=$?
32927  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32928  test $ac_status = 0; }; then
32929  pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
32930		      test "x$?" != "x0" && pkg_failed=yes
32931else
32932  pkg_failed=yes
32933fi
32934 else
32935    pkg_failed=untried
32936fi
32937if test -n "$LZMA_LIBS"; then
32938    pkg_cv_LZMA_LIBS="$LZMA_LIBS"
32939 elif test -n "$PKG_CONFIG"; then
32940    if test -n "$PKG_CONFIG" && \
32941    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
32942  ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
32943  ac_status=$?
32944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32945  test $ac_status = 0; }; then
32946  pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
32947		      test "x$?" != "x0" && pkg_failed=yes
32948else
32949  pkg_failed=yes
32950fi
32951 else
32952    pkg_failed=untried
32953fi
32954
32955
32956
32957if test $pkg_failed = yes; then
32958   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32959$as_echo "no" >&6; }
32960
32961if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32962        _pkg_short_errors_supported=yes
32963else
32964        _pkg_short_errors_supported=no
32965fi
32966        if test $_pkg_short_errors_supported = yes; then
32967	        LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
32968        else
32969	        LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma >= 2.9.0" 2>&1`
32970        fi
32971	# Put the nasty error message in config.log where it belongs
32972	echo "$LZMA_PKG_ERRORS" >&5
32973
32974	have_lzma=no
32975elif test $pkg_failed = untried; then
32976     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32977$as_echo "no" >&6; }
32978	have_lzma=no
32979else
32980	LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
32981	LZMA_LIBS=$pkg_cv_LZMA_LIBS
32982        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32983$as_echo "yes" >&6; }
32984	have_lzma=yes
32985fi
32986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32987$as_echo "" >&6; }
32988fi
32989
32990if test "$have_lzma" = 'yes'; then
32991
32992$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
32993
32994  CFLAGS="$LZMA_CFLAGS $CFLAGS"
32995fi
32996
32997 if test "$have_lzma" = 'yes'; then
32998  LZMA_DELEGATE_TRUE=
32999  LZMA_DELEGATE_FALSE='#'
33000else
33001  LZMA_DELEGATE_TRUE='#'
33002  LZMA_DELEGATE_FALSE=
33003fi
33004
33005
33006
33007
33008
33009#
33010# Check for the OpenEXR delegate library.
33011#
33012
33013# Check whether --with-openexr was given.
33014if test "${with_openexr+set}" = set; then :
33015  withval=$with_openexr; with_openexr=$withval
33016else
33017  with_openexr='yes'
33018fi
33019
33020
33021if test "$with_openexr" != 'yes'; then
33022    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
33023fi
33024
33025have_openexr='no'
33026OPENEXR_CFLAGS=""
33027OPENEXR_LIBS=""
33028OPENEXR_PKG=""
33029if test "x$with_openexr" = "xyes"; then
33030  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33031$as_echo "-------------------------------------------------------------" >&6; }
33032
33033pkg_failed=no
33034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
33035$as_echo_n "checking for OPENEXR... " >&6; }
33036
33037if test -n "$OPENEXR_CFLAGS"; then
33038    pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
33039 elif test -n "$PKG_CONFIG"; then
33040    if test -n "$PKG_CONFIG" && \
33041    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
33042  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
33043  ac_status=$?
33044  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33045  test $ac_status = 0; }; then
33046  pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
33047		      test "x$?" != "x0" && pkg_failed=yes
33048else
33049  pkg_failed=yes
33050fi
33051 else
33052    pkg_failed=untried
33053fi
33054if test -n "$OPENEXR_LIBS"; then
33055    pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
33056 elif test -n "$PKG_CONFIG"; then
33057    if test -n "$PKG_CONFIG" && \
33058    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
33059  ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
33060  ac_status=$?
33061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33062  test $ac_status = 0; }; then
33063  pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
33064		      test "x$?" != "x0" && pkg_failed=yes
33065else
33066  pkg_failed=yes
33067fi
33068 else
33069    pkg_failed=untried
33070fi
33071
33072
33073
33074if test $pkg_failed = yes; then
33075   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33076$as_echo "no" >&6; }
33077
33078if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33079        _pkg_short_errors_supported=yes
33080else
33081        _pkg_short_errors_supported=no
33082fi
33083        if test $_pkg_short_errors_supported = yes; then
33084	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
33085        else
33086	        OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "OpenEXR >= 1.0.6" 2>&1`
33087        fi
33088	# Put the nasty error message in config.log where it belongs
33089	echo "$OPENEXR_PKG_ERRORS" >&5
33090
33091	have_openexr=no
33092elif test $pkg_failed = untried; then
33093     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33094$as_echo "no" >&6; }
33095	have_openexr=no
33096else
33097	OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
33098	OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
33099        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33100$as_echo "yes" >&6; }
33101	have_openexr=yes
33102fi
33103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33104$as_echo "" >&6; }
33105fi
33106
33107if test "$have_openexr" = 'yes'; then
33108
33109$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
33110
33111  CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
33112fi
33113
33114 if test "$have_openexr" = 'yes'; then
33115  OPENEXR_DELEGATE_TRUE=
33116  OPENEXR_DELEGATE_FALSE='#'
33117else
33118  OPENEXR_DELEGATE_TRUE='#'
33119  OPENEXR_DELEGATE_FALSE=
33120fi
33121
33122
33123
33124
33125
33126#
33127# Check for PANGO delegate library.
33128#
33129
33130# Check whether --with-pango was given.
33131if test "${with_pango+set}" = set; then :
33132  withval=$with_pango; with_pango=$withval
33133else
33134  with_pango='yes'
33135fi
33136
33137
33138if test "$with_pango" != 'yes'; then
33139    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
33140fi
33141
33142have_pango='no'
33143have_pangocairo='no'
33144PANGO_CFLAGS=""
33145PANGO_LIBS=""
33146PANGO_PKG=""
33147if test "x$with_pango" = "xyes"; then
33148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33149$as_echo "-------------------------------------------------------------" >&6; }
33150
33151pkg_failed=no
33152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
33153$as_echo_n "checking for PANGO... " >&6; }
33154
33155if test -n "$PANGO_CFLAGS"; then
33156    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
33157 elif test -n "$PKG_CONFIG"; then
33158    if test -n "$PKG_CONFIG" && \
33159    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
33160  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
33161  ac_status=$?
33162  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33163  test $ac_status = 0; }; then
33164  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
33165		      test "x$?" != "x0" && pkg_failed=yes
33166else
33167  pkg_failed=yes
33168fi
33169 else
33170    pkg_failed=untried
33171fi
33172if test -n "$PANGO_LIBS"; then
33173    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
33174 elif test -n "$PKG_CONFIG"; then
33175    if test -n "$PKG_CONFIG" && \
33176    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
33177  ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
33178  ac_status=$?
33179  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33180  test $ac_status = 0; }; then
33181  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
33182		      test "x$?" != "x0" && pkg_failed=yes
33183else
33184  pkg_failed=yes
33185fi
33186 else
33187    pkg_failed=untried
33188fi
33189
33190
33191
33192if test $pkg_failed = yes; then
33193   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33194$as_echo "no" >&6; }
33195
33196if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33197        _pkg_short_errors_supported=yes
33198else
33199        _pkg_short_errors_supported=no
33200fi
33201        if test $_pkg_short_errors_supported = yes; then
33202	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
33203        else
33204	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pangocairo >= 1.28.1" 2>&1`
33205        fi
33206	# Put the nasty error message in config.log where it belongs
33207	echo "$PANGO_PKG_ERRORS" >&5
33208
33209	have_pangocairo=no
33210elif test $pkg_failed = untried; then
33211     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33212$as_echo "no" >&6; }
33213	have_pangocairo=no
33214else
33215	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
33216	PANGO_LIBS=$pkg_cv_PANGO_LIBS
33217        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33218$as_echo "yes" >&6; }
33219	have_pangocairo=yes
33220fi
33221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33222$as_echo "" >&6; }
33223
33224pkg_failed=no
33225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
33226$as_echo_n "checking for PANGO... " >&6; }
33227
33228if test -n "$PANGO_CFLAGS"; then
33229    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
33230 elif test -n "$PKG_CONFIG"; then
33231    if test -n "$PKG_CONFIG" && \
33232    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
33233  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
33234  ac_status=$?
33235  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33236  test $ac_status = 0; }; then
33237  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
33238		      test "x$?" != "x0" && pkg_failed=yes
33239else
33240  pkg_failed=yes
33241fi
33242 else
33243    pkg_failed=untried
33244fi
33245if test -n "$PANGO_LIBS"; then
33246    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
33247 elif test -n "$PKG_CONFIG"; then
33248    if test -n "$PKG_CONFIG" && \
33249    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
33250  ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
33251  ac_status=$?
33252  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33253  test $ac_status = 0; }; then
33254  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
33255		      test "x$?" != "x0" && pkg_failed=yes
33256else
33257  pkg_failed=yes
33258fi
33259 else
33260    pkg_failed=untried
33261fi
33262
33263
33264
33265if test $pkg_failed = yes; then
33266   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33267$as_echo "no" >&6; }
33268
33269if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33270        _pkg_short_errors_supported=yes
33271else
33272        _pkg_short_errors_supported=no
33273fi
33274        if test $_pkg_short_errors_supported = yes; then
33275	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
33276        else
33277	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.28.1" 2>&1`
33278        fi
33279	# Put the nasty error message in config.log where it belongs
33280	echo "$PANGO_PKG_ERRORS" >&5
33281
33282	have_pango=no
33283elif test $pkg_failed = untried; then
33284     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33285$as_echo "no" >&6; }
33286	have_pango=no
33287else
33288	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
33289	PANGO_LIBS=$pkg_cv_PANGO_LIBS
33290        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33291$as_echo "yes" >&6; }
33292	have_pango=yes
33293fi
33294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33295$as_echo "" >&6; }
33296fi
33297
33298if test "$have_pango" = 'yes'; then
33299
33300$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
33301
33302  CFLAGS="$PANGO_CFLAGS $CFLAGS"
33303fi
33304
33305if test "$have_pangocairo" = 'yes'; then
33306
33307$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
33308
33309  CFLAGS="$PANGOCAIRO_CFLAGS $CFLAGS"
33310fi
33311
33312 if test "$have_pango" = 'yes'; then
33313  PANGO_DELEGATE_TRUE=
33314  PANGO_DELEGATE_FALSE='#'
33315else
33316  PANGO_DELEGATE_TRUE='#'
33317  PANGO_DELEGATE_FALSE=
33318fi
33319
33320 if test "$have_pangocairo" = 'yes'; then
33321  PANGOCAIRO_DELEGATE_TRUE=
33322  PANGOCAIRO_DELEGATE_FALSE='#'
33323else
33324  PANGOCAIRO_DELEGATE_TRUE='#'
33325  PANGOCAIRO_DELEGATE_FALSE=
33326fi
33327
33328
33329
33330
33331
33332#
33333# Check for PNG delegate library.
33334#
33335
33336# Check whether --with-png was given.
33337if test "${with_png+set}" = set; then :
33338  withval=$with_png; with_png=$withval
33339else
33340  with_png='yes'
33341fi
33342
33343
33344if test "$with_png" != 'yes'; then
33345    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
33346fi
33347
33348have_png='no'
33349PNG_CFLAGS=""
33350PNG_LIBS=""
33351PNG_PKG=""
33352if test "x$with_png" = "xyes"; then
33353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33354$as_echo "-------------------------------------------------------------" >&6; }
33355
33356pkg_failed=no
33357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
33358$as_echo_n "checking for PNG... " >&6; }
33359
33360if test -n "$PNG_CFLAGS"; then
33361    pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
33362 elif test -n "$PKG_CONFIG"; then
33363    if test -n "$PKG_CONFIG" && \
33364    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
33365  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
33366  ac_status=$?
33367  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33368  test $ac_status = 0; }; then
33369  pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.0.0" 2>/dev/null`
33370		      test "x$?" != "x0" && pkg_failed=yes
33371else
33372  pkg_failed=yes
33373fi
33374 else
33375    pkg_failed=untried
33376fi
33377if test -n "$PNG_LIBS"; then
33378    pkg_cv_PNG_LIBS="$PNG_LIBS"
33379 elif test -n "$PKG_CONFIG"; then
33380    if test -n "$PKG_CONFIG" && \
33381    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.0.0\""; } >&5
33382  ($PKG_CONFIG --exists --print-errors "libpng >= 1.0.0") 2>&5
33383  ac_status=$?
33384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33385  test $ac_status = 0; }; then
33386  pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng >= 1.0.0" 2>/dev/null`
33387		      test "x$?" != "x0" && pkg_failed=yes
33388else
33389  pkg_failed=yes
33390fi
33391 else
33392    pkg_failed=untried
33393fi
33394
33395
33396
33397if test $pkg_failed = yes; then
33398   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33399$as_echo "no" >&6; }
33400
33401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33402        _pkg_short_errors_supported=yes
33403else
33404        _pkg_short_errors_supported=no
33405fi
33406        if test $_pkg_short_errors_supported = yes; then
33407	        PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
33408        else
33409	        PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.0.0" 2>&1`
33410        fi
33411	# Put the nasty error message in config.log where it belongs
33412	echo "$PNG_PKG_ERRORS" >&5
33413
33414	have_png=no
33415elif test $pkg_failed = untried; then
33416     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33417$as_echo "no" >&6; }
33418	have_png=no
33419else
33420	PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
33421	PNG_LIBS=$pkg_cv_PNG_LIBS
33422        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33423$as_echo "yes" >&6; }
33424	have_png=yes
33425fi
33426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33427$as_echo "" >&6; }
33428fi
33429
33430if test "$have_png" = 'yes'; then
33431
33432$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
33433
33434  CFLAGS="$PNG_CFLAGS $CFLAGS"
33435fi
33436
33437 if test "$have_png" = 'yes'; then
33438  PNG_DELEGATE_TRUE=
33439  PNG_DELEGATE_FALSE='#'
33440else
33441  PNG_DELEGATE_TRUE='#'
33442  PNG_DELEGATE_FALSE=
33443fi
33444
33445
33446
33447
33448
33449#
33450# Check for RSVG delegate library.
33451#
33452
33453# Check whether --with-rsvg was given.
33454if test "${with_rsvg+set}" = set; then :
33455  withval=$with_rsvg; with_rsvg=$withval
33456else
33457  with_rsvg='no'
33458fi
33459
33460
33461if test "$with_rsvg" != 'yes'; then
33462    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
33463fi
33464
33465have_rsvg='no'
33466have_cairo='no'
33467RSVG_CFLAGS=""
33468RSVG_LIBS=""
33469RSVG_PKG=""
33470if test "x$with_rsvg" = "xyes"; then
33471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33472$as_echo "-------------------------------------------------------------" >&6; }
33473
33474pkg_failed=no
33475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
33476$as_echo_n "checking for RSVG... " >&6; }
33477
33478if test -n "$RSVG_CFLAGS"; then
33479    pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
33480 elif test -n "$PKG_CONFIG"; then
33481    if test -n "$PKG_CONFIG" && \
33482    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
33483  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
33484  ac_status=$?
33485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33486  test $ac_status = 0; }; then
33487  pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
33488		      test "x$?" != "x0" && pkg_failed=yes
33489else
33490  pkg_failed=yes
33491fi
33492 else
33493    pkg_failed=untried
33494fi
33495if test -n "$RSVG_LIBS"; then
33496    pkg_cv_RSVG_LIBS="$RSVG_LIBS"
33497 elif test -n "$PKG_CONFIG"; then
33498    if test -n "$PKG_CONFIG" && \
33499    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
33500  ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
33501  ac_status=$?
33502  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33503  test $ac_status = 0; }; then
33504  pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
33505		      test "x$?" != "x0" && pkg_failed=yes
33506else
33507  pkg_failed=yes
33508fi
33509 else
33510    pkg_failed=untried
33511fi
33512
33513
33514
33515if test $pkg_failed = yes; then
33516   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33517$as_echo "no" >&6; }
33518
33519if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33520        _pkg_short_errors_supported=yes
33521else
33522        _pkg_short_errors_supported=no
33523fi
33524        if test $_pkg_short_errors_supported = yes; then
33525	        RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
33526        else
33527	        RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "librsvg-2.0 >= 2.9.0" 2>&1`
33528        fi
33529	# Put the nasty error message in config.log where it belongs
33530	echo "$RSVG_PKG_ERRORS" >&5
33531
33532	have_rsvg=no
33533elif test $pkg_failed = untried; then
33534     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33535$as_echo "no" >&6; }
33536	have_rsvg=no
33537else
33538	RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
33539	RSVG_LIBS=$pkg_cv_RSVG_LIBS
33540        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33541$as_echo "yes" >&6; }
33542	have_rsvg=yes
33543fi
33544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33545$as_echo "" >&6; }
33546
33547pkg_failed=no
33548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
33549$as_echo_n "checking for CAIRO_SVG... " >&6; }
33550
33551if test -n "$CAIRO_SVG_CFLAGS"; then
33552    pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
33553 elif test -n "$PKG_CONFIG"; then
33554    if test -n "$PKG_CONFIG" && \
33555    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
33556  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
33557  ac_status=$?
33558  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33559  test $ac_status = 0; }; then
33560  pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
33561		      test "x$?" != "x0" && pkg_failed=yes
33562else
33563  pkg_failed=yes
33564fi
33565 else
33566    pkg_failed=untried
33567fi
33568if test -n "$CAIRO_SVG_LIBS"; then
33569    pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
33570 elif test -n "$PKG_CONFIG"; then
33571    if test -n "$PKG_CONFIG" && \
33572    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
33573  ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
33574  ac_status=$?
33575  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33576  test $ac_status = 0; }; then
33577  pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
33578		      test "x$?" != "x0" && pkg_failed=yes
33579else
33580  pkg_failed=yes
33581fi
33582 else
33583    pkg_failed=untried
33584fi
33585
33586
33587
33588if test $pkg_failed = yes; then
33589   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33590$as_echo "no" >&6; }
33591
33592if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33593        _pkg_short_errors_supported=yes
33594else
33595        _pkg_short_errors_supported=no
33596fi
33597        if test $_pkg_short_errors_supported = yes; then
33598	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo-svg" 2>&1`
33599        else
33600	        CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo-svg" 2>&1`
33601        fi
33602	# Put the nasty error message in config.log where it belongs
33603	echo "$CAIRO_SVG_PKG_ERRORS" >&5
33604
33605	have_cairo=no
33606elif test $pkg_failed = untried; then
33607     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33608$as_echo "no" >&6; }
33609	have_cairo=no
33610else
33611	CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
33612	CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
33613        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33614$as_echo "yes" >&6; }
33615	have_cairo=yes
33616fi
33617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33618$as_echo "" >&6; }
33619fi
33620
33621if test "$have_rsvg" = 'yes'; then
33622
33623$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
33624
33625  CFLAGS="$RSVG_CFLAGS $CFLAGS"
33626fi
33627
33628if test "$have_cairo" = 'yes'; then
33629
33630$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
33631
33632  CFLAGS="$CAIRO_SVG_CFLAGS $CFLAGS"
33633fi
33634
33635 if test "$have_rsvg" = 'yes'; then
33636  RSVG_DELEGATE_TRUE=
33637  RSVG_DELEGATE_FALSE='#'
33638else
33639  RSVG_DELEGATE_TRUE='#'
33640  RSVG_DELEGATE_FALSE=
33641fi
33642
33643 if test "$have_cairo" = 'yes'; then
33644  CAIRO_DELEGATE_TRUE=
33645  CAIRO_DELEGATE_FALSE='#'
33646else
33647  CAIRO_DELEGATE_TRUE='#'
33648  CAIRO_DELEGATE_FALSE=
33649fi
33650
33651
33652
33653
33654
33655#
33656# Check for TIFF delegate library.
33657#
33658
33659# Check whether --with-tiff was given.
33660if test "${with_tiff+set}" = set; then :
33661  withval=$with_tiff; with_tiff=$withval
33662else
33663  with_tiff='yes'
33664fi
33665
33666
33667if test "$with_tiff" != 'yes'; then
33668    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
33669fi
33670
33671have_tiff='no'
33672TIFF_LIBS=''
33673if test "$with_tiff" != 'no'; then
33674    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33675$as_echo "-------------------------------------------------------------" >&6; }
33676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
33677$as_echo_n "checking for TIFF... " >&6; }
33678    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33679$as_echo "" >&6; }
33680    failed=0
33681    passed=0
33682    ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
33683if test "x$ac_cv_header_tiff_h" = xyes; then :
33684  passed=`expr $passed + 1`
33685else
33686  failed=`expr $failed + 1`
33687fi
33688
33689
33690    ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
33691if test "x$ac_cv_header_tiffio_h" = xyes; then :
33692  passed=`expr $passed + 1`
33693else
33694  failed=`expr $failed + 1`
33695fi
33696
33697
33698    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
33699$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
33700if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
33701  $as_echo_n "(cached) " >&6
33702else
33703  ac_check_lib_save_LIBS=$LIBS
33704LIBS="-ltiff  $LIBS"
33705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33706/* end confdefs.h.  */
33707
33708/* Override any GCC internal prototype to avoid an error.
33709   Use char because int might match the return type of a GCC
33710   builtin and then its argument prototype would still apply.  */
33711#ifdef __cplusplus
33712extern "C"
33713#endif
33714char TIFFOpen ();
33715int
33716main ()
33717{
33718return TIFFOpen ();
33719  ;
33720  return 0;
33721}
33722_ACEOF
33723if ac_fn_c_try_link "$LINENO"; then :
33724  ac_cv_lib_tiff_TIFFOpen=yes
33725else
33726  ac_cv_lib_tiff_TIFFOpen=no
33727fi
33728rm -f core conftest.err conftest.$ac_objext \
33729    conftest$ac_exeext conftest.$ac_ext
33730LIBS=$ac_check_lib_save_LIBS
33731fi
33732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
33733$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
33734if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
33735  passed=`expr $passed + 1`
33736else
33737  failed=`expr $failed + 1`
33738fi
33739
33740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
33741$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
33742if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
33743  $as_echo_n "(cached) " >&6
33744else
33745  ac_check_lib_save_LIBS=$LIBS
33746LIBS="-ltiff  $LIBS"
33747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33748/* end confdefs.h.  */
33749
33750/* Override any GCC internal prototype to avoid an error.
33751   Use char because int might match the return type of a GCC
33752   builtin and then its argument prototype would still apply.  */
33753#ifdef __cplusplus
33754extern "C"
33755#endif
33756char TIFFClientOpen ();
33757int
33758main ()
33759{
33760return TIFFClientOpen ();
33761  ;
33762  return 0;
33763}
33764_ACEOF
33765if ac_fn_c_try_link "$LINENO"; then :
33766  ac_cv_lib_tiff_TIFFClientOpen=yes
33767else
33768  ac_cv_lib_tiff_TIFFClientOpen=no
33769fi
33770rm -f core conftest.err conftest.$ac_objext \
33771    conftest$ac_exeext conftest.$ac_ext
33772LIBS=$ac_check_lib_save_LIBS
33773fi
33774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
33775$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
33776if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
33777  passed=`expr $passed + 1`
33778else
33779  failed=`expr $failed + 1`
33780fi
33781
33782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
33783$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
33784if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
33785  $as_echo_n "(cached) " >&6
33786else
33787  ac_check_lib_save_LIBS=$LIBS
33788LIBS="-ltiff  $LIBS"
33789cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33790/* end confdefs.h.  */
33791
33792/* Override any GCC internal prototype to avoid an error.
33793   Use char because int might match the return type of a GCC
33794   builtin and then its argument prototype would still apply.  */
33795#ifdef __cplusplus
33796extern "C"
33797#endif
33798char TIFFIsByteSwapped ();
33799int
33800main ()
33801{
33802return TIFFIsByteSwapped ();
33803  ;
33804  return 0;
33805}
33806_ACEOF
33807if ac_fn_c_try_link "$LINENO"; then :
33808  ac_cv_lib_tiff_TIFFIsByteSwapped=yes
33809else
33810  ac_cv_lib_tiff_TIFFIsByteSwapped=no
33811fi
33812rm -f core conftest.err conftest.$ac_objext \
33813    conftest$ac_exeext conftest.$ac_ext
33814LIBS=$ac_check_lib_save_LIBS
33815fi
33816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
33817$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
33818if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
33819  passed=`expr $passed + 1`
33820else
33821  failed=`expr $failed + 1`
33822fi
33823
33824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
33825$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
33826if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
33827  $as_echo_n "(cached) " >&6
33828else
33829  ac_check_lib_save_LIBS=$LIBS
33830LIBS="-ltiff  $LIBS"
33831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33832/* end confdefs.h.  */
33833
33834/* Override any GCC internal prototype to avoid an error.
33835   Use char because int might match the return type of a GCC
33836   builtin and then its argument prototype would still apply.  */
33837#ifdef __cplusplus
33838extern "C"
33839#endif
33840char TIFFReadRGBATile ();
33841int
33842main ()
33843{
33844return TIFFReadRGBATile ();
33845  ;
33846  return 0;
33847}
33848_ACEOF
33849if ac_fn_c_try_link "$LINENO"; then :
33850  ac_cv_lib_tiff_TIFFReadRGBATile=yes
33851else
33852  ac_cv_lib_tiff_TIFFReadRGBATile=no
33853fi
33854rm -f core conftest.err conftest.$ac_objext \
33855    conftest$ac_exeext conftest.$ac_ext
33856LIBS=$ac_check_lib_save_LIBS
33857fi
33858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
33859$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
33860if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
33861  passed=`expr $passed + 1`
33862else
33863  failed=`expr $failed + 1`
33864fi
33865
33866    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
33867$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
33868if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
33869  $as_echo_n "(cached) " >&6
33870else
33871  ac_check_lib_save_LIBS=$LIBS
33872LIBS="-ltiff  $LIBS"
33873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33874/* end confdefs.h.  */
33875
33876/* Override any GCC internal prototype to avoid an error.
33877   Use char because int might match the return type of a GCC
33878   builtin and then its argument prototype would still apply.  */
33879#ifdef __cplusplus
33880extern "C"
33881#endif
33882char TIFFReadRGBAStrip ();
33883int
33884main ()
33885{
33886return TIFFReadRGBAStrip ();
33887  ;
33888  return 0;
33889}
33890_ACEOF
33891if ac_fn_c_try_link "$LINENO"; then :
33892  ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
33893else
33894  ac_cv_lib_tiff_TIFFReadRGBAStrip=no
33895fi
33896rm -f core conftest.err conftest.$ac_objext \
33897    conftest$ac_exeext conftest.$ac_ext
33898LIBS=$ac_check_lib_save_LIBS
33899fi
33900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
33901$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
33902if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
33903  passed=`expr $passed + 1`
33904else
33905  failed=`expr $failed + 1`
33906fi
33907
33908    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
33909$as_echo_n "checking if TIFF package is complete... " >&6; }
33910    if test $passed -gt 0; then
33911        if test $failed -gt 0; then
33912            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
33913$as_echo "no -- some components failed test" >&6; }
33914            have_tiff='no (failed tests)'
33915        else
33916            TIFF_LIBS='-ltiff'
33917            LIBS="$TIFF_LIBS $LIBS"
33918
33919$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
33920
33921            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33922$as_echo "yes" >&6; }
33923            have_tiff='yes'
33924            for ac_header in tiffconf.h
33925do :
33926  ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
33927if test "x$ac_cv_header_tiffconf_h" = xyes; then :
33928  cat >>confdefs.h <<_ACEOF
33929#define HAVE_TIFFCONF_H 1
33930_ACEOF
33931
33932fi
33933
33934done
33935
33936            for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
33937              TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
33938              TIFFSetTagExtender TIFFSetWarningHandlerExt \
33939              TIFFSwabArrayOfTriples
33940do :
33941  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33942ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
33943if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
33944  cat >>confdefs.h <<_ACEOF
33945#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33946_ACEOF
33947
33948fi
33949done
33950
33951        fi
33952    else
33953        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33954$as_echo "no" >&6; }
33955    fi
33956fi
33957 if test "$have_tiff" = 'yes'; then
33958  TIFF_DELEGATE_TRUE=
33959  TIFF_DELEGATE_FALSE='#'
33960else
33961  TIFF_DELEGATE_TRUE='#'
33962  TIFF_DELEGATE_FALSE=
33963fi
33964
33965
33966
33967
33968#
33969# Check for WEBP delegate library.
33970#
33971
33972# Check whether --with-webp was given.
33973if test "${with_webp+set}" = set; then :
33974  withval=$with_webp; with_webp=$withval
33975else
33976  with_webp='yes'
33977fi
33978
33979
33980if test "$with_webp" != 'yes'; then
33981    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
33982fi
33983
33984have_webp='no'
33985WEBP_LIBS=''
33986if test "$with_webp" != 'no'; then
33987    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33988$as_echo "-------------------------------------------------------------" >&6; }
33989    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
33990$as_echo_n "checking for WEBP... " >&6; }
33991    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33992$as_echo "" >&6; }
33993    failed=0
33994    passed=0
33995    ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
33996if test "x$ac_cv_header_webp_decode_h" = xyes; then :
33997  passed=`expr $passed + 1`
33998else
33999  failed=`expr $failed + 1`
34000fi
34001
34002
34003    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPPictureInitInternal in -lwebp" >&5
34004$as_echo_n "checking for WebPPictureInitInternal in -lwebp... " >&6; }
34005if ${ac_cv_lib_webp_WebPPictureInitInternal+:} false; then :
34006  $as_echo_n "(cached) " >&6
34007else
34008  ac_check_lib_save_LIBS=$LIBS
34009LIBS="-lwebp  $LIBS"
34010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34011/* end confdefs.h.  */
34012
34013/* Override any GCC internal prototype to avoid an error.
34014   Use char because int might match the return type of a GCC
34015   builtin and then its argument prototype would still apply.  */
34016#ifdef __cplusplus
34017extern "C"
34018#endif
34019char WebPPictureInitInternal ();
34020int
34021main ()
34022{
34023return WebPPictureInitInternal ();
34024  ;
34025  return 0;
34026}
34027_ACEOF
34028if ac_fn_c_try_link "$LINENO"; then :
34029  ac_cv_lib_webp_WebPPictureInitInternal=yes
34030else
34031  ac_cv_lib_webp_WebPPictureInitInternal=no
34032fi
34033rm -f core conftest.err conftest.$ac_objext \
34034    conftest$ac_exeext conftest.$ac_ext
34035LIBS=$ac_check_lib_save_LIBS
34036fi
34037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPPictureInitInternal" >&5
34038$as_echo "$ac_cv_lib_webp_WebPPictureInitInternal" >&6; }
34039if test "x$ac_cv_lib_webp_WebPPictureInitInternal" = xyes; then :
34040  passed=`expr $passed + 1`
34041else
34042  failed=`expr $failed + 1`
34043fi
34044
34045    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
34046$as_echo_n "checking if WEBP package is complete... " >&6; }
34047    if test $passed -gt 0; then
34048        if test $failed -gt 0; then
34049            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34050$as_echo "no -- some components failed test" >&6; }
34051            have_webp='no (failed tests)'
34052        else
34053            WEBP_LIBS='-lwebp'
34054            LIBS="$WEBP_LIBS $LIBS"
34055
34056$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
34057
34058            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34059$as_echo "yes" >&6; }
34060            have_webp='yes'
34061        fi
34062    else
34063        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34064$as_echo "no" >&6; }
34065    fi
34066fi
34067 if test "$have_webp" = 'yes'; then
34068  WEBP_DELEGATE_TRUE=
34069  WEBP_DELEGATE_FALSE='#'
34070else
34071  WEBP_DELEGATE_TRUE='#'
34072  WEBP_DELEGATE_FALSE=
34073fi
34074
34075
34076
34077
34078#
34079# Set Windows font directory.
34080#
34081
34082# Check whether --with-windows-font-dir was given.
34083if test "${with_windows_font_dir+set}" = set; then :
34084  withval=$with_windows_font_dir; with_windows_font_dir=$withval
34085else
34086  with_windows_font_dir='default'
34087fi
34088
34089
34090if test "$with_windows_font_dir" != 'default'; then
34091    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
34092fi
34093
34094
34095#
34096# Check for WMF delegate library.
34097#
34098
34099# Check whether --with-wmf was given.
34100if test "${with_wmf+set}" = set; then :
34101  withval=$with_wmf; with_wmf=$withval
34102else
34103  with_wmf='yes'
34104fi
34105
34106
34107if test "$with_wmf" != 'yes'; then
34108    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
34109fi
34110
34111have_wmf='no'
34112WMF_LIBS=''
34113WMF_CFLAGS=''
34114OLIBS="$LIBS"
34115if test "$with_wmf" != 'no'; then
34116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF support " >&5
34117$as_echo_n "checking for WMF support ... " >&6; }
34118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34119$as_echo "" >&6; }
34120
34121  have_libwmflite='no'
34122  have_libwmf_ipa_h='no'
34123
34124  ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
34125"
34126if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
34127  have_libwmf_ipa_h='yes'
34128fi
34129
34130
34131  if test "$have_libwmf_ipa_h" = 'yes'; then
34132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
34133$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
34134if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
34135  $as_echo_n "(cached) " >&6
34136else
34137  ac_check_lib_save_LIBS=$LIBS
34138LIBS="-lwmflite  $LIBS"
34139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34140/* end confdefs.h.  */
34141
34142/* Override any GCC internal prototype to avoid an error.
34143   Use char because int might match the return type of a GCC
34144   builtin and then its argument prototype would still apply.  */
34145#ifdef __cplusplus
34146extern "C"
34147#endif
34148char wmf_lite_create ();
34149int
34150main ()
34151{
34152return wmf_lite_create ();
34153  ;
34154  return 0;
34155}
34156_ACEOF
34157if ac_fn_c_try_link "$LINENO"; then :
34158  ac_cv_lib_wmflite_wmf_lite_create=yes
34159else
34160  ac_cv_lib_wmflite_wmf_lite_create=no
34161fi
34162rm -f core conftest.err conftest.$ac_objext \
34163    conftest$ac_exeext conftest.$ac_ext
34164LIBS=$ac_check_lib_save_LIBS
34165fi
34166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
34167$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
34168if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
34169  have_libwmflite='yes'
34170fi
34171
34172    if test "$have_libwmflite" = 'yes'; then
34173
34174$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
34175
34176      WMF_LIBS='-lwmflite'
34177      LIBS="$WMF_LIBS $LIBS"
34178      have_wmf='yes'
34179    else
34180      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
34181$as_echo "no -- some components failed test" >&6; }
34182      have_wmf='no (failed tests)'
34183      have_wmflite='no (failed tests)'
34184      LIBS="$OLIBS"
34185      WMF_LIBS=''
34186    fi
34187  fi
34188fi
34189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete " >&5
34190$as_echo_n "checking if WMF package is complete ... " >&6; }
34191if test "$have_wmf" = 'yes'; then
34192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34193$as_echo "yes" >&6; }
34194else
34195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34196$as_echo "no" >&6; }
34197fi
34198 if test "$have_wmf" = 'yes'; then
34199  WMF_DELEGATE_TRUE=
34200  WMF_DELEGATE_FALSE='#'
34201else
34202  WMF_DELEGATE_TRUE='#'
34203  WMF_DELEGATE_FALSE=
34204fi
34205
34206
34207
34208
34209
34210#
34211# Check for XML delegate library.
34212#
34213
34214# Check whether --with-xml was given.
34215if test "${with_xml+set}" = set; then :
34216  withval=$with_xml; with_xml=$withval
34217else
34218  with_xml='yes'
34219fi
34220
34221
34222if test "$with_xml" != 'yes' ; then
34223    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
34224fi
34225
34226have_xml='no'
34227XML_CFLAGS=""
34228XML_LIBS=""
34229XML_PKG=""
34230if test "x$with_xml" = "xyes"; then
34231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34232$as_echo "-------------------------------------------------------------" >&6; }
34233
34234pkg_failed=no
34235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
34236$as_echo_n "checking for XML... " >&6; }
34237
34238if test -n "$XML_CFLAGS"; then
34239    pkg_cv_XML_CFLAGS="$XML_CFLAGS"
34240 elif test -n "$PKG_CONFIG"; then
34241    if test -n "$PKG_CONFIG" && \
34242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
34243  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
34244  ac_status=$?
34245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34246  test $ac_status = 0; }; then
34247  pkg_cv_XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0.0" 2>/dev/null`
34248		      test "x$?" != "x0" && pkg_failed=yes
34249else
34250  pkg_failed=yes
34251fi
34252 else
34253    pkg_failed=untried
34254fi
34255if test -n "$XML_LIBS"; then
34256    pkg_cv_XML_LIBS="$XML_LIBS"
34257 elif test -n "$PKG_CONFIG"; then
34258    if test -n "$PKG_CONFIG" && \
34259    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.0.0\""; } >&5
34260  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.0.0") 2>&5
34261  ac_status=$?
34262  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34263  test $ac_status = 0; }; then
34264  pkg_cv_XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0.0" 2>/dev/null`
34265		      test "x$?" != "x0" && pkg_failed=yes
34266else
34267  pkg_failed=yes
34268fi
34269 else
34270    pkg_failed=untried
34271fi
34272
34273
34274
34275if test $pkg_failed = yes; then
34276   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34277$as_echo "no" >&6; }
34278
34279if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34280        _pkg_short_errors_supported=yes
34281else
34282        _pkg_short_errors_supported=no
34283fi
34284        if test $_pkg_short_errors_supported = yes; then
34285	        XML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
34286        else
34287	        XML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.0.0" 2>&1`
34288        fi
34289	# Put the nasty error message in config.log where it belongs
34290	echo "$XML_PKG_ERRORS" >&5
34291
34292	have_xml=no
34293elif test $pkg_failed = untried; then
34294     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34295$as_echo "no" >&6; }
34296	have_xml=no
34297else
34298	XML_CFLAGS=$pkg_cv_XML_CFLAGS
34299	XML_LIBS=$pkg_cv_XML_LIBS
34300        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34301$as_echo "yes" >&6; }
34302	have_xml=yes
34303fi
34304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34305$as_echo "" >&6; }
34306fi
34307
34308if test "$have_xml" = 'yes'; then
34309
34310$as_echo "#define XML_DELEGATE 1" >>confdefs.h
34311
34312  CFLAGS="$XML_CFLAGS $CFLAGS"
34313fi
34314
34315 if test "$have_xml" = 'yes'; then
34316  XML_DELEGATE_TRUE=
34317  XML_DELEGATE_FALSE='#'
34318else
34319  XML_DELEGATE_TRUE='#'
34320  XML_DELEGATE_FALSE=
34321fi
34322
34323
34324
34325
34326
34327# Substitute compiler name to build/link PerlMagick
34328#
34329
34330
34331#
34332# Configure install Paths
34333#
34334
34335# Path to ImageMagick header files
34336INCLUDE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34337INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}"
34338DEFINE_INCLUDE_PATH="${INCLUDE_DIR}/${INCLUDE_RELATIVE_PATH}/"
34339case "${build_os}" in
34340  mingw* )
34341    DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
34342    ;;
34343esac
34344
34345cat >>confdefs.h <<_ACEOF
34346#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
34347_ACEOF
34348
34349
34350
34351# Path to ImageMagick header files (arch part)
34352INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
34353DEFINE_INCLUDEARCH_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
34354case "${build_os}" in
34355  mingw* )
34356    DEFINE_INCLUDEARCH_PATH=`$WinPathScript "$DEFINE_INCLUDEARCH_PATH" 1`
34357    ;;
34358esac
34359
34360cat >>confdefs.h <<_ACEOF
34361#define INCLUDEARCH_PATH "$DEFINE_INCLUDE_PATH"
34362_ACEOF
34363
34364
34365
34366# Subdirectory under lib to place ImageMagick lib files
34367LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
34368
34369cat >>confdefs.h <<_ACEOF
34370#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
34371_ACEOF
34372
34373
34374# Path to ImageMagick bin directory
34375EXECUTABLE_PATH="${BIN_DIR}"
34376DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
34377case "${build_os}" in
34378  mingw* )
34379    DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
34380    ;;
34381esac
34382
34383cat >>confdefs.h <<_ACEOF
34384#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
34385_ACEOF
34386
34387
34388
34389# Path to ImageMagick lib
34390LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
34391DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
34392case "${build_os}" in
34393  mingw* )
34394    DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
34395    ;;
34396esac
34397
34398cat >>confdefs.h <<_ACEOF
34399#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
34400_ACEOF
34401
34402
34403
34404#
34405# path to local binaries
34406if test "x$LIB_BIN_BASEDIRNAME" = "x"; then
34407   LIB_BIN_BASEDIRNAME="bin"
34408fi
34409
34410cat >>confdefs.h <<_ACEOF
34411#define LIB_BIN_BASEDIRNAME "$LIB_BIN_BASEDIRNAME"
34412_ACEOF
34413
34414
34415
34416if test "x$LIB_BIN_DIR" = "x"; then
34417   LIB_BIN_DIR=${LIB_BIN_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34418fi
34419
34420
34421LIB_BIN_DIR_RELATIVE_PATH=$LIB_BIN_DIR
34422
34423LIB_BIN_DIR_PATH="${LIBRARY_PATH}/${LIB_BIN_DIR_RELATIVE_PATH}"
34424
34425
34426#
34427# path to modules lib
34428if test "x$MODULES_BASEDIRNAME" = "x"; then
34429   MODULES_BASEDIRNAME="modules"
34430fi
34431
34432cat >>confdefs.h <<_ACEOF
34433#define MODULES_BASEDIRNAME "$MODULES_BASEDIRNAME"
34434_ACEOF
34435
34436
34437
34438if test "x$MODULES_DIRNAME" = "x"; then
34439  MODULES_DIRNAME=${MODULES_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34440else
34441
34442cat >>confdefs.h <<_ACEOF
34443#define MODULES_DIRNAME "$MODULES_DIRNAME"
34444_ACEOF
34445
34446fi
34447
34448
34449MODULES_RELATIVE_PATH="${MODULES_DIRNAME}"
34450
34451MODULES_PATH="${LIBRARY_PATH}/${MODULES_RELATIVE_PATH}"
34452
34453
34454#
34455# path to coders lib
34456if test "x$CODER_DIRNAME" = "x"; then
34457   CODER_DIRNAME="coders"
34458fi
34459
34460cat >>confdefs.h <<_ACEOF
34461#define CODER_DIRNAME "$CODER_DIRNAME"
34462_ACEOF
34463
34464
34465
34466CODER_RELATIVE_PATH="${CODER_DIRNAME}"
34467CODER_PATH="${MODULES_PATH}/${CODER_DIRNAME}"
34468
34469
34470#
34471# Subdirectory under lib to place ImageMagick filter module files
34472#
34473# path to coders lib
34474if test "x$FILTER_DIRNAME" = "x"; then
34475   FILTER_DIRNAME="filters"
34476fi
34477
34478cat >>confdefs.h <<_ACEOF
34479#define FILTER_DIRNAME "$FILTER_DIRNAME"
34480_ACEOF
34481
34482
34483
34484FILTER_RELATIVE_PATH="${FILTER_DIRNAME}"
34485FILTER_PATH="${MODULES_PATH}/${FILTER_DIRNAME}"
34486
34487
34488#
34489# Path to ImageMagick documentation files
34490DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34491DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
34492DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
34493case "${build_os}" in
34494  mingw* )
34495    DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
34496    ;;
34497esac
34498
34499cat >>confdefs.h <<_ACEOF
34500#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
34501_ACEOF
34502
34503
34504
34505#
34506# Enable/Disable documentation
34507# Check whether --enable-docs was given.
34508if test "${enable_docs+set}" = set; then :
34509  enableval=$enable_docs; wantdocs=$enableval
34510else
34511  wantdocs=yes
34512fi
34513
34514 if test "$wantdocs" = "yes"; then
34515  INSTALL_DOC_TRUE=
34516  INSTALL_DOC_FALSE='#'
34517else
34518  INSTALL_DOC_TRUE='#'
34519  INSTALL_DOC_FALSE=
34520fi
34521
34522
34523# Subdirectory to place architecture-dependent configuration files
34524CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34525
34526cat >>confdefs.h <<_ACEOF
34527#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
34528_ACEOF
34529
34530CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
34531DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
34532case "${build_os}" in
34533  mingw* )
34534    DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
34535    ;;
34536esac
34537
34538cat >>confdefs.h <<_ACEOF
34539#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
34540_ACEOF
34541
34542
34543
34544# Subdirectory to place architecture-independent configuration files
34545SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${MAGICK_MAJOR_VERSION}"
34546
34547cat >>confdefs.h <<_ACEOF
34548#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
34549_ACEOF
34550
34551SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
34552DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
34553case "${build_os}" in
34554  mingw* )
34555    DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
34556    ;;
34557esac
34558
34559cat >>confdefs.h <<_ACEOF
34560#define SHARE_PATH "$DEFINE_SHARE_PATH"
34561_ACEOF
34562
34563
34564
34565#
34566# Subdirectory to place architecture-dependent configuration files.
34567if test "x$SHAREARCH_BASEDIRNAME" = "x"; then
34568   SHAREARCH_BASEDIRNAME="config"
34569fi
34570
34571cat >>confdefs.h <<_ACEOF
34572#define SHAREARCH_BASEDIRNAME "$SHAREARCH_BASEDIRNAME"
34573_ACEOF
34574
34575
34576
34577if test "x$SHAREARCH_DIRNAME" = "x"; then
34578  SHAREARCH_DIRNAME=${SHAREARCH_BASEDIRNAME}-${MAGICK_ABI_SUFFIX}
34579else
34580
34581cat >>confdefs.h <<_ACEOF
34582#define SHAREARCH_DIRNAME "$SHAREARCH_DIRNAME"
34583_ACEOF
34584
34585fi
34586
34587
34588SHAREARCH_RELATIVE_PATH="${SHAREARCH_DIRNAME}"
34589
34590SHAREARCH_PATH="${LIBRARY_PATH}/${SHAREARCH_RELATIVE_PATH}"
34591
34592
34593#
34594# program_transform_name is formed for use in a Makefile, so create a
34595# modified version for use in a shell script.
34596configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
34597
34598# Default delegate definitions
34599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34600$as_echo "-------------------------------------------------------------" >&6; }
34601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
34602$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
34603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34604$as_echo "" >&6; }
34605BPGDecodeDelegateDefault='bpgdec'
34606BPGEncodeDelegateDefault='bpgenc'
34607BlenderDecodeDelegateDefault='blender'
34608BrowseDelegateDefault='xdg-open'
34609DNGDecodeDelegateDefault='ufraw-batch'
34610DOCDecodeDelegateDefault='soffice'
34611GVCDecodeDelegateDefault='dot'
34612DVIDecodeDelegateDefault='dvips'
34613EditorDelegateDefault='xterm'
34614ConvertDelegateDefault=`echo magick | sed ${configure_transform_name}`
34615DisplayDelegateDefault=`echo magick | sed ${configure_transform_name}`
34616MogrifyDelegateDefault=`echo magick | sed ${configure_transform_name}`
34617HPGLDecodeDelegateDefault='hp2xx'
34618HTMLDecodeDelegateDefault='html2ps'
34619ILBMDecodeDelegateDefault='ilbmtoppm'
34620ILBMEncodeDelegateDefault='ppmtoilbm'
34621JXRDecodeDelegateDefault='JxrDecApp'
34622JXREncodeDelegateDefault='JxrEncApp'
34623LPDelegateDefault='lp'
34624LPRDelegateDefault='lpr'
34625LaunchDelegateDefault='gimp'
34626MPEGDecodeDelegateDefault='avconv'
34627MPEGEncodeDelegateDefault='avconv'
34628MrSIDDecodeDelegateDefault='mrsidgeodecode'
34629MVDelegateDefault='mv'
34630PCLDelegateDefault='pcl6'
34631if test "$native_win32_build" = 'yes'; then
34632    PSDelegateDefault='gswin32c'
34633elif test "$gslib_framework" = 'yes'; then
34634    PSDelegateDefault='gsc'
34635else
34636    PSDelegateDefault='gs'
34637fi
34638RMDelegateDefault='rm'
34639RSVGDecodeDelegateDefault='rsvg-convert'
34640SVGDecodeDelegateDefault='inkscape'
34641UniconvertorDelegateDefault='uniconvertor'
34642WebPDecodeDelegateDefault='dwebp'
34643WebPEncodeDelegateDefault='cwebp'
34644WWWDecodeDelegateDefault='curl'
34645XPSDelegateDefault='gxps'
34646
34647# Search for delegates
34648# Extract the first word of ""$BPGDecodeDelegateDefault"", so it can be a program name with args.
34649set dummy "$BPGDecodeDelegateDefault"; ac_word=$2
34650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34651$as_echo_n "checking for $ac_word... " >&6; }
34652if ${ac_cv_path_BPGDecodeDelegate+:} false; then :
34653  $as_echo_n "(cached) " >&6
34654else
34655  case $BPGDecodeDelegate in
34656  [\\/]* | ?:[\\/]*)
34657  ac_cv_path_BPGDecodeDelegate="$BPGDecodeDelegate" # Let the user override the test with a path.
34658  ;;
34659  *)
34660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34661for as_dir in $PATH
34662do
34663  IFS=$as_save_IFS
34664  test -z "$as_dir" && as_dir=.
34665    for ac_exec_ext in '' $ac_executable_extensions; do
34666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34667    ac_cv_path_BPGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34669    break 2
34670  fi
34671done
34672  done
34673IFS=$as_save_IFS
34674
34675  test -z "$ac_cv_path_BPGDecodeDelegate" && ac_cv_path_BPGDecodeDelegate=""$BPGDecodeDelegateDefault""
34676  ;;
34677esac
34678fi
34679BPGDecodeDelegate=$ac_cv_path_BPGDecodeDelegate
34680if test -n "$BPGDecodeDelegate"; then
34681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGDecodeDelegate" >&5
34682$as_echo "$BPGDecodeDelegate" >&6; }
34683else
34684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34685$as_echo "no" >&6; }
34686fi
34687
34688
34689# Extract the first word of ""$BPGEncodeDelegateDefault"", so it can be a program name with args.
34690set dummy "$BPGEncodeDelegateDefault"; ac_word=$2
34691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34692$as_echo_n "checking for $ac_word... " >&6; }
34693if ${ac_cv_path_BPGEncodeDelegate+:} false; then :
34694  $as_echo_n "(cached) " >&6
34695else
34696  case $BPGEncodeDelegate in
34697  [\\/]* | ?:[\\/]*)
34698  ac_cv_path_BPGEncodeDelegate="$BPGEncodeDelegate" # Let the user override the test with a path.
34699  ;;
34700  *)
34701  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34702for as_dir in $PATH
34703do
34704  IFS=$as_save_IFS
34705  test -z "$as_dir" && as_dir=.
34706    for ac_exec_ext in '' $ac_executable_extensions; do
34707  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34708    ac_cv_path_BPGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34710    break 2
34711  fi
34712done
34713  done
34714IFS=$as_save_IFS
34715
34716  test -z "$ac_cv_path_BPGEncodeDelegate" && ac_cv_path_BPGEncodeDelegate=""$BPGEncodeDelegateDefault""
34717  ;;
34718esac
34719fi
34720BPGEncodeDelegate=$ac_cv_path_BPGEncodeDelegate
34721if test -n "$BPGEncodeDelegate"; then
34722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BPGEncodeDelegate" >&5
34723$as_echo "$BPGEncodeDelegate" >&6; }
34724else
34725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34726$as_echo "no" >&6; }
34727fi
34728
34729
34730# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
34731set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
34732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34733$as_echo_n "checking for $ac_word... " >&6; }
34734if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
34735  $as_echo_n "(cached) " >&6
34736else
34737  case $BlenderDecodeDelegate in
34738  [\\/]* | ?:[\\/]*)
34739  ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
34740  ;;
34741  *)
34742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34743for as_dir in $PATH
34744do
34745  IFS=$as_save_IFS
34746  test -z "$as_dir" && as_dir=.
34747    for ac_exec_ext in '' $ac_executable_extensions; do
34748  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34749    ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34750    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34751    break 2
34752  fi
34753done
34754  done
34755IFS=$as_save_IFS
34756
34757  test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
34758  ;;
34759esac
34760fi
34761BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
34762if test -n "$BlenderDecodeDelegate"; then
34763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
34764$as_echo "$BlenderDecodeDelegate" >&6; }
34765else
34766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34767$as_echo "no" >&6; }
34768fi
34769
34770
34771for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
34772do
34773  # Extract the first word of "$ac_prog", so it can be a program name with args.
34774set dummy $ac_prog; ac_word=$2
34775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34776$as_echo_n "checking for $ac_word... " >&6; }
34777if ${ac_cv_path_BrowseDelegate+:} false; then :
34778  $as_echo_n "(cached) " >&6
34779else
34780  case $BrowseDelegate in
34781  [\\/]* | ?:[\\/]*)
34782  ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
34783  ;;
34784  *)
34785  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34786for as_dir in $PATH
34787do
34788  IFS=$as_save_IFS
34789  test -z "$as_dir" && as_dir=.
34790    for ac_exec_ext in '' $ac_executable_extensions; do
34791  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34792    ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
34793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34794    break 2
34795  fi
34796done
34797  done
34798IFS=$as_save_IFS
34799
34800  ;;
34801esac
34802fi
34803BrowseDelegate=$ac_cv_path_BrowseDelegate
34804if test -n "$BrowseDelegate"; then
34805  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
34806$as_echo "$BrowseDelegate" >&6; }
34807else
34808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809$as_echo "no" >&6; }
34810fi
34811
34812
34813  test -n "$BrowseDelegate" && break
34814done
34815test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
34816
34817# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
34818set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
34819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34820$as_echo_n "checking for $ac_word... " >&6; }
34821if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
34822  $as_echo_n "(cached) " >&6
34823else
34824  case $DNGDecodeDelegate in
34825  [\\/]* | ?:[\\/]*)
34826  ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
34827  ;;
34828  *)
34829  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34830for as_dir in $PATH
34831do
34832  IFS=$as_save_IFS
34833  test -z "$as_dir" && as_dir=.
34834    for ac_exec_ext in '' $ac_executable_extensions; do
34835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34836    ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34838    break 2
34839  fi
34840done
34841  done
34842IFS=$as_save_IFS
34843
34844  test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
34845  ;;
34846esac
34847fi
34848DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
34849if test -n "$DNGDecodeDelegate"; then
34850  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
34851$as_echo "$DNGDecodeDelegate" >&6; }
34852else
34853  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34854$as_echo "no" >&6; }
34855fi
34856
34857
34858# Extract the first word of ""$DOCDecodeDelegateDefault"", so it can be a program name with args.
34859set dummy "$DOCDecodeDelegateDefault"; ac_word=$2
34860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34861$as_echo_n "checking for $ac_word... " >&6; }
34862if ${ac_cv_path_DOCDecodeDelegate+:} false; then :
34863  $as_echo_n "(cached) " >&6
34864else
34865  case $DOCDecodeDelegate in
34866  [\\/]* | ?:[\\/]*)
34867  ac_cv_path_DOCDecodeDelegate="$DOCDecodeDelegate" # Let the user override the test with a path.
34868  ;;
34869  *)
34870  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34871for as_dir in $PATH
34872do
34873  IFS=$as_save_IFS
34874  test -z "$as_dir" && as_dir=.
34875    for ac_exec_ext in '' $ac_executable_extensions; do
34876  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34877    ac_cv_path_DOCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34878    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34879    break 2
34880  fi
34881done
34882  done
34883IFS=$as_save_IFS
34884
34885  test -z "$ac_cv_path_DOCDecodeDelegate" && ac_cv_path_DOCDecodeDelegate=""$DOCDecodeDelegateDefault""
34886  ;;
34887esac
34888fi
34889DOCDecodeDelegate=$ac_cv_path_DOCDecodeDelegate
34890if test -n "$DOCDecodeDelegate"; then
34891  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOCDecodeDelegate" >&5
34892$as_echo "$DOCDecodeDelegate" >&6; }
34893else
34894  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34895$as_echo "no" >&6; }
34896fi
34897
34898
34899# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
34900set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
34901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34902$as_echo_n "checking for $ac_word... " >&6; }
34903if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
34904  $as_echo_n "(cached) " >&6
34905else
34906  case $DVIDecodeDelegate in
34907  [\\/]* | ?:[\\/]*)
34908  ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
34909  ;;
34910  *)
34911  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34912for as_dir in $PATH
34913do
34914  IFS=$as_save_IFS
34915  test -z "$as_dir" && as_dir=.
34916    for ac_exec_ext in '' $ac_executable_extensions; do
34917  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34918    ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34919    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34920    break 2
34921  fi
34922done
34923  done
34924IFS=$as_save_IFS
34925
34926  test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
34927  ;;
34928esac
34929fi
34930DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
34931if test -n "$DVIDecodeDelegate"; then
34932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
34933$as_echo "$DVIDecodeDelegate" >&6; }
34934else
34935  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34936$as_echo "no" >&6; }
34937fi
34938
34939
34940# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
34941set dummy "$ConvertDelegateDefault"; ac_word=$2
34942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34943$as_echo_n "checking for $ac_word... " >&6; }
34944if ${ac_cv_path_ConvertDelegate+:} false; then :
34945  $as_echo_n "(cached) " >&6
34946else
34947  case $ConvertDelegate in
34948  [\\/]* | ?:[\\/]*)
34949  ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
34950  ;;
34951  *)
34952  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34953for as_dir in $PATH
34954do
34955  IFS=$as_save_IFS
34956  test -z "$as_dir" && as_dir=.
34957    for ac_exec_ext in '' $ac_executable_extensions; do
34958  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34959    ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
34960    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34961    break 2
34962  fi
34963done
34964  done
34965IFS=$as_save_IFS
34966
34967  test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
34968  ;;
34969esac
34970fi
34971ConvertDelegate=$ac_cv_path_ConvertDelegate
34972if test -n "$ConvertDelegate"; then
34973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
34974$as_echo "$ConvertDelegate" >&6; }
34975else
34976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34977$as_echo "no" >&6; }
34978fi
34979
34980
34981# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
34982set dummy "$DisplayDelegateDefault"; ac_word=$2
34983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34984$as_echo_n "checking for $ac_word... " >&6; }
34985if ${ac_cv_path_DisplayDelegate+:} false; then :
34986  $as_echo_n "(cached) " >&6
34987else
34988  case $DisplayDelegate in
34989  [\\/]* | ?:[\\/]*)
34990  ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
34991  ;;
34992  *)
34993  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34994for as_dir in $PATH
34995do
34996  IFS=$as_save_IFS
34997  test -z "$as_dir" && as_dir=.
34998    for ac_exec_ext in '' $ac_executable_extensions; do
34999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35000    ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
35001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35002    break 2
35003  fi
35004done
35005  done
35006IFS=$as_save_IFS
35007
35008  test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
35009  ;;
35010esac
35011fi
35012DisplayDelegate=$ac_cv_path_DisplayDelegate
35013if test -n "$DisplayDelegate"; then
35014  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
35015$as_echo "$DisplayDelegate" >&6; }
35016else
35017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35018$as_echo "no" >&6; }
35019fi
35020
35021
35022# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
35023set dummy "$EditorDelegateDefault"; ac_word=$2
35024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35025$as_echo_n "checking for $ac_word... " >&6; }
35026if ${ac_cv_path_EditorDelegate+:} false; then :
35027  $as_echo_n "(cached) " >&6
35028else
35029  case $EditorDelegate in
35030  [\\/]* | ?:[\\/]*)
35031  ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
35032  ;;
35033  *)
35034  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35035for as_dir in $PATH
35036do
35037  IFS=$as_save_IFS
35038  test -z "$as_dir" && as_dir=.
35039    for ac_exec_ext in '' $ac_executable_extensions; do
35040  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35041    ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
35042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35043    break 2
35044  fi
35045done
35046  done
35047IFS=$as_save_IFS
35048
35049  test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
35050  ;;
35051esac
35052fi
35053EditorDelegate=$ac_cv_path_EditorDelegate
35054if test -n "$EditorDelegate"; then
35055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
35056$as_echo "$EditorDelegate" >&6; }
35057else
35058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35059$as_echo "no" >&6; }
35060fi
35061
35062
35063# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
35064set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
35065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35066$as_echo_n "checking for $ac_word... " >&6; }
35067if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
35068  $as_echo_n "(cached) " >&6
35069else
35070  case $GVCDecodeDelegate in
35071  [\\/]* | ?:[\\/]*)
35072  ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
35073  ;;
35074  *)
35075  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35076for as_dir in $PATH
35077do
35078  IFS=$as_save_IFS
35079  test -z "$as_dir" && as_dir=.
35080    for ac_exec_ext in '' $ac_executable_extensions; do
35081  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35082    ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35083    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35084    break 2
35085  fi
35086done
35087  done
35088IFS=$as_save_IFS
35089
35090  test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
35091  ;;
35092esac
35093fi
35094GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
35095if test -n "$GVCDecodeDelegate"; then
35096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
35097$as_echo "$GVCDecodeDelegate" >&6; }
35098else
35099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35100$as_echo "no" >&6; }
35101fi
35102
35103
35104# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
35105set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
35106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35107$as_echo_n "checking for $ac_word... " >&6; }
35108if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
35109  $as_echo_n "(cached) " >&6
35110else
35111  case $HPGLDecodeDelegate in
35112  [\\/]* | ?:[\\/]*)
35113  ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
35114  ;;
35115  *)
35116  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35117for as_dir in $PATH
35118do
35119  IFS=$as_save_IFS
35120  test -z "$as_dir" && as_dir=.
35121    for ac_exec_ext in '' $ac_executable_extensions; do
35122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35123    ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35125    break 2
35126  fi
35127done
35128  done
35129IFS=$as_save_IFS
35130
35131  test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
35132  ;;
35133esac
35134fi
35135HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
35136if test -n "$HPGLDecodeDelegate"; then
35137  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
35138$as_echo "$HPGLDecodeDelegate" >&6; }
35139else
35140  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35141$as_echo "no" >&6; }
35142fi
35143
35144
35145# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
35146set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
35147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35148$as_echo_n "checking for $ac_word... " >&6; }
35149if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
35150  $as_echo_n "(cached) " >&6
35151else
35152  case $HTMLDecodeDelegate in
35153  [\\/]* | ?:[\\/]*)
35154  ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
35155  ;;
35156  *)
35157  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35158for as_dir in $PATH
35159do
35160  IFS=$as_save_IFS
35161  test -z "$as_dir" && as_dir=.
35162    for ac_exec_ext in '' $ac_executable_extensions; do
35163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35164    ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35165    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35166    break 2
35167  fi
35168done
35169  done
35170IFS=$as_save_IFS
35171
35172  test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
35173  ;;
35174esac
35175fi
35176HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
35177if test -n "$HTMLDecodeDelegate"; then
35178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
35179$as_echo "$HTMLDecodeDelegate" >&6; }
35180else
35181  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35182$as_echo "no" >&6; }
35183fi
35184
35185
35186# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
35187set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
35188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35189$as_echo_n "checking for $ac_word... " >&6; }
35190if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
35191  $as_echo_n "(cached) " >&6
35192else
35193  case $ILBMDecodeDelegate in
35194  [\\/]* | ?:[\\/]*)
35195  ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
35196  ;;
35197  *)
35198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35199for as_dir in $PATH
35200do
35201  IFS=$as_save_IFS
35202  test -z "$as_dir" && as_dir=.
35203    for ac_exec_ext in '' $ac_executable_extensions; do
35204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35205    ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35207    break 2
35208  fi
35209done
35210  done
35211IFS=$as_save_IFS
35212
35213  test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
35214  ;;
35215esac
35216fi
35217ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
35218if test -n "$ILBMDecodeDelegate"; then
35219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
35220$as_echo "$ILBMDecodeDelegate" >&6; }
35221else
35222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223$as_echo "no" >&6; }
35224fi
35225
35226
35227# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
35228set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
35229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35230$as_echo_n "checking for $ac_word... " >&6; }
35231if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
35232  $as_echo_n "(cached) " >&6
35233else
35234  case $ILBMEncodeDelegate in
35235  [\\/]* | ?:[\\/]*)
35236  ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
35237  ;;
35238  *)
35239  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35240for as_dir in $PATH
35241do
35242  IFS=$as_save_IFS
35243  test -z "$as_dir" && as_dir=.
35244    for ac_exec_ext in '' $ac_executable_extensions; do
35245  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35246    ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35247    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35248    break 2
35249  fi
35250done
35251  done
35252IFS=$as_save_IFS
35253
35254  test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
35255  ;;
35256esac
35257fi
35258ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
35259if test -n "$ILBMEncodeDelegate"; then
35260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
35261$as_echo "$ILBMEncodeDelegate" >&6; }
35262else
35263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35264$as_echo "no" >&6; }
35265fi
35266
35267
35268# Extract the first word of ""$JXRDecodeDelegateDefault"", so it can be a program name with args.
35269set dummy "$JXRDecodeDelegateDefault"; ac_word=$2
35270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35271$as_echo_n "checking for $ac_word... " >&6; }
35272if ${ac_cv_path_JXRDecodeDelegate+:} false; then :
35273  $as_echo_n "(cached) " >&6
35274else
35275  case $JXRDecodeDelegate in
35276  [\\/]* | ?:[\\/]*)
35277  ac_cv_path_JXRDecodeDelegate="$JXRDecodeDelegate" # Let the user override the test with a path.
35278  ;;
35279  *)
35280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35281for as_dir in $PATH
35282do
35283  IFS=$as_save_IFS
35284  test -z "$as_dir" && as_dir=.
35285    for ac_exec_ext in '' $ac_executable_extensions; do
35286  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35287    ac_cv_path_JXRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35288    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35289    break 2
35290  fi
35291done
35292  done
35293IFS=$as_save_IFS
35294
35295  test -z "$ac_cv_path_JXRDecodeDelegate" && ac_cv_path_JXRDecodeDelegate=""$JXRDecodeDelegateDefault""
35296  ;;
35297esac
35298fi
35299JXRDecodeDelegate=$ac_cv_path_JXRDecodeDelegate
35300if test -n "$JXRDecodeDelegate"; then
35301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXRDecodeDelegate" >&5
35302$as_echo "$JXRDecodeDelegate" >&6; }
35303else
35304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35305$as_echo "no" >&6; }
35306fi
35307
35308
35309# Extract the first word of ""$JXREncodeDelegateDefault"", so it can be a program name with args.
35310set dummy "$JXREncodeDelegateDefault"; ac_word=$2
35311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35312$as_echo_n "checking for $ac_word... " >&6; }
35313if ${ac_cv_path_JXREncodeDelegate+:} false; then :
35314  $as_echo_n "(cached) " >&6
35315else
35316  case $JXREncodeDelegate in
35317  [\\/]* | ?:[\\/]*)
35318  ac_cv_path_JXREncodeDelegate="$JXREncodeDelegate" # Let the user override the test with a path.
35319  ;;
35320  *)
35321  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35322for as_dir in $PATH
35323do
35324  IFS=$as_save_IFS
35325  test -z "$as_dir" && as_dir=.
35326    for ac_exec_ext in '' $ac_executable_extensions; do
35327  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35328    ac_cv_path_JXREncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35329    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35330    break 2
35331  fi
35332done
35333  done
35334IFS=$as_save_IFS
35335
35336  test -z "$ac_cv_path_JXREncodeDelegate" && ac_cv_path_JXREncodeDelegate=""$JXREncodeDelegateDefault""
35337  ;;
35338esac
35339fi
35340JXREncodeDelegate=$ac_cv_path_JXREncodeDelegate
35341if test -n "$JXREncodeDelegate"; then
35342  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JXREncodeDelegate" >&5
35343$as_echo "$JXREncodeDelegate" >&6; }
35344else
35345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35346$as_echo "no" >&6; }
35347fi
35348
35349
35350# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
35351set dummy "$LPDelegateDefault"; ac_word=$2
35352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35353$as_echo_n "checking for $ac_word... " >&6; }
35354if ${ac_cv_path_LPDelegate+:} false; then :
35355  $as_echo_n "(cached) " >&6
35356else
35357  case $LPDelegate in
35358  [\\/]* | ?:[\\/]*)
35359  ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
35360  ;;
35361  *)
35362  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35363for as_dir in $PATH
35364do
35365  IFS=$as_save_IFS
35366  test -z "$as_dir" && as_dir=.
35367    for ac_exec_ext in '' $ac_executable_extensions; do
35368  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35369    ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
35370    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35371    break 2
35372  fi
35373done
35374  done
35375IFS=$as_save_IFS
35376
35377  test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
35378  ;;
35379esac
35380fi
35381LPDelegate=$ac_cv_path_LPDelegate
35382if test -n "$LPDelegate"; then
35383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
35384$as_echo "$LPDelegate" >&6; }
35385else
35386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35387$as_echo "no" >&6; }
35388fi
35389
35390
35391# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
35392set dummy "$LPRDelegateDefault"; ac_word=$2
35393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35394$as_echo_n "checking for $ac_word... " >&6; }
35395if ${ac_cv_path_LPRDelegate+:} false; then :
35396  $as_echo_n "(cached) " >&6
35397else
35398  case $LPRDelegate in
35399  [\\/]* | ?:[\\/]*)
35400  ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
35401  ;;
35402  *)
35403  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35404for as_dir in $PATH
35405do
35406  IFS=$as_save_IFS
35407  test -z "$as_dir" && as_dir=.
35408    for ac_exec_ext in '' $ac_executable_extensions; do
35409  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35410    ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
35411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35412    break 2
35413  fi
35414done
35415  done
35416IFS=$as_save_IFS
35417
35418  test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
35419  ;;
35420esac
35421fi
35422LPRDelegate=$ac_cv_path_LPRDelegate
35423if test -n "$LPRDelegate"; then
35424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
35425$as_echo "$LPRDelegate" >&6; }
35426else
35427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35428$as_echo "no" >&6; }
35429fi
35430
35431
35432# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
35433set dummy "$LaunchDelegateDefault"; ac_word=$2
35434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35435$as_echo_n "checking for $ac_word... " >&6; }
35436if ${ac_cv_path_LaunchDelegate+:} false; then :
35437  $as_echo_n "(cached) " >&6
35438else
35439  case $LaunchDelegate in
35440  [\\/]* | ?:[\\/]*)
35441  ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
35442  ;;
35443  *)
35444  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35445for as_dir in $PATH
35446do
35447  IFS=$as_save_IFS
35448  test -z "$as_dir" && as_dir=.
35449    for ac_exec_ext in '' $ac_executable_extensions; do
35450  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35451    ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
35452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35453    break 2
35454  fi
35455done
35456  done
35457IFS=$as_save_IFS
35458
35459  test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
35460  ;;
35461esac
35462fi
35463LaunchDelegate=$ac_cv_path_LaunchDelegate
35464if test -n "$LaunchDelegate"; then
35465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
35466$as_echo "$LaunchDelegate" >&6; }
35467else
35468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35469$as_echo "no" >&6; }
35470fi
35471
35472
35473# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
35474set dummy "$MogrifyDelegateDefault"; ac_word=$2
35475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35476$as_echo_n "checking for $ac_word... " >&6; }
35477if ${ac_cv_path_MogrifyDelegate+:} false; then :
35478  $as_echo_n "(cached) " >&6
35479else
35480  case $MogrifyDelegate in
35481  [\\/]* | ?:[\\/]*)
35482  ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
35483  ;;
35484  *)
35485  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35486for as_dir in $PATH
35487do
35488  IFS=$as_save_IFS
35489  test -z "$as_dir" && as_dir=.
35490    for ac_exec_ext in '' $ac_executable_extensions; do
35491  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35492    ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
35493    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35494    break 2
35495  fi
35496done
35497  done
35498IFS=$as_save_IFS
35499
35500  test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
35501  ;;
35502esac
35503fi
35504MogrifyDelegate=$ac_cv_path_MogrifyDelegate
35505if test -n "$MogrifyDelegate"; then
35506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
35507$as_echo "$MogrifyDelegate" >&6; }
35508else
35509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35510$as_echo "no" >&6; }
35511fi
35512
35513
35514# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
35515set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
35516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35517$as_echo_n "checking for $ac_word... " >&6; }
35518if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
35519  $as_echo_n "(cached) " >&6
35520else
35521  case $MPEGDecodeDelegate in
35522  [\\/]* | ?:[\\/]*)
35523  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
35524  ;;
35525  *)
35526  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35527for as_dir in $PATH
35528do
35529  IFS=$as_save_IFS
35530  test -z "$as_dir" && as_dir=.
35531    for ac_exec_ext in '' $ac_executable_extensions; do
35532  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35533    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35534    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35535    break 2
35536  fi
35537done
35538  done
35539IFS=$as_save_IFS
35540
35541  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
35542  ;;
35543esac
35544fi
35545MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
35546if test -n "$MPEGDecodeDelegate"; then
35547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
35548$as_echo "$MPEGDecodeDelegate" >&6; }
35549else
35550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35551$as_echo "no" >&6; }
35552fi
35553
35554
35555if test "$MPEGDecodeDelegate" = "$MPEGDecodeDelegateDefault" ; then
35556  MPEGDecodeDelegateDefault='ffmpeg'
35557  # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
35558set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
35559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35560$as_echo_n "checking for $ac_word... " >&6; }
35561if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
35562  $as_echo_n "(cached) " >&6
35563else
35564  case $MPEGDecodeDelegate in
35565  [\\/]* | ?:[\\/]*)
35566  ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
35567  ;;
35568  *)
35569  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35570for as_dir in $PATH
35571do
35572  IFS=$as_save_IFS
35573  test -z "$as_dir" && as_dir=.
35574    for ac_exec_ext in '' $ac_executable_extensions; do
35575  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35576    ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35578    break 2
35579  fi
35580done
35581  done
35582IFS=$as_save_IFS
35583
35584  test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
35585  ;;
35586esac
35587fi
35588MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
35589if test -n "$MPEGDecodeDelegate"; then
35590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
35591$as_echo "$MPEGDecodeDelegate" >&6; }
35592else
35593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35594$as_echo "no" >&6; }
35595fi
35596
35597
35598fi;
35599# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
35600set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
35601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35602$as_echo_n "checking for $ac_word... " >&6; }
35603if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
35604  $as_echo_n "(cached) " >&6
35605else
35606  case $MPEGEncodeDelegate in
35607  [\\/]* | ?:[\\/]*)
35608  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
35609  ;;
35610  *)
35611  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35612for as_dir in $PATH
35613do
35614  IFS=$as_save_IFS
35615  test -z "$as_dir" && as_dir=.
35616    for ac_exec_ext in '' $ac_executable_extensions; do
35617  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35618    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35620    break 2
35621  fi
35622done
35623  done
35624IFS=$as_save_IFS
35625
35626  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
35627  ;;
35628esac
35629fi
35630MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
35631if test -n "$MPEGEncodeDelegate"; then
35632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
35633$as_echo "$MPEGEncodeDelegate" >&6; }
35634else
35635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35636$as_echo "no" >&6; }
35637fi
35638
35639
35640if test "$MPEGEncodeDelegate" = "$MPEGEncodeDelegateDefault" ; then
35641  MPEGEncodeDelegateDefault='ffmpeg'
35642  # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
35643set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
35644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35645$as_echo_n "checking for $ac_word... " >&6; }
35646if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
35647  $as_echo_n "(cached) " >&6
35648else
35649  case $MPEGEncodeDelegate in
35650  [\\/]* | ?:[\\/]*)
35651  ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
35652  ;;
35653  *)
35654  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35655for as_dir in $PATH
35656do
35657  IFS=$as_save_IFS
35658  test -z "$as_dir" && as_dir=.
35659    for ac_exec_ext in '' $ac_executable_extensions; do
35660  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35661    ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35662    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35663    break 2
35664  fi
35665done
35666  done
35667IFS=$as_save_IFS
35668
35669  test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
35670  ;;
35671esac
35672fi
35673MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
35674if test -n "$MPEGEncodeDelegate"; then
35675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
35676$as_echo "$MPEGEncodeDelegate" >&6; }
35677else
35678  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35679$as_echo "no" >&6; }
35680fi
35681
35682
35683fi;
35684# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
35685set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
35686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35687$as_echo_n "checking for $ac_word... " >&6; }
35688if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
35689  $as_echo_n "(cached) " >&6
35690else
35691  case $MrSIDDecodeDelegate in
35692  [\\/]* | ?:[\\/]*)
35693  ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
35694  ;;
35695  *)
35696  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35697for as_dir in $PATH
35698do
35699  IFS=$as_save_IFS
35700  test -z "$as_dir" && as_dir=.
35701    for ac_exec_ext in '' $ac_executable_extensions; do
35702  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35703    ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35704    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35705    break 2
35706  fi
35707done
35708  done
35709IFS=$as_save_IFS
35710
35711  test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
35712  ;;
35713esac
35714fi
35715MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
35716if test -n "$MrSIDDecodeDelegate"; then
35717  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
35718$as_echo "$MrSIDDecodeDelegate" >&6; }
35719else
35720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35721$as_echo "no" >&6; }
35722fi
35723
35724
35725# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
35726set dummy "$MVDelegateDefault"; ac_word=$2
35727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35728$as_echo_n "checking for $ac_word... " >&6; }
35729if ${ac_cv_path_MVDelegate+:} false; then :
35730  $as_echo_n "(cached) " >&6
35731else
35732  case $MVDelegate in
35733  [\\/]* | ?:[\\/]*)
35734  ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
35735  ;;
35736  *)
35737  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35738for as_dir in $PATH
35739do
35740  IFS=$as_save_IFS
35741  test -z "$as_dir" && as_dir=.
35742    for ac_exec_ext in '' $ac_executable_extensions; do
35743  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35744    ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
35745    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35746    break 2
35747  fi
35748done
35749  done
35750IFS=$as_save_IFS
35751
35752  test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
35753  ;;
35754esac
35755fi
35756MVDelegate=$ac_cv_path_MVDelegate
35757if test -n "$MVDelegate"; then
35758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
35759$as_echo "$MVDelegate" >&6; }
35760else
35761  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35762$as_echo "no" >&6; }
35763fi
35764
35765
35766# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
35767set dummy "$PCLDelegateDefault"; ac_word=$2
35768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35769$as_echo_n "checking for $ac_word... " >&6; }
35770if ${ac_cv_path_PCLDelegate+:} false; then :
35771  $as_echo_n "(cached) " >&6
35772else
35773  case $PCLDelegate in
35774  [\\/]* | ?:[\\/]*)
35775  ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
35776  ;;
35777  *)
35778  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35779for as_dir in $PATH
35780do
35781  IFS=$as_save_IFS
35782  test -z "$as_dir" && as_dir=.
35783    for ac_exec_ext in '' $ac_executable_extensions; do
35784  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35785    ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
35786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35787    break 2
35788  fi
35789done
35790  done
35791IFS=$as_save_IFS
35792
35793  test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
35794  ;;
35795esac
35796fi
35797PCLDelegate=$ac_cv_path_PCLDelegate
35798if test -n "$PCLDelegate"; then
35799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
35800$as_echo "$PCLDelegate" >&6; }
35801else
35802  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35803$as_echo "no" >&6; }
35804fi
35805
35806
35807for ac_prog in gsx gsc "$PSDelegateDefault"
35808do
35809  # Extract the first word of "$ac_prog", so it can be a program name with args.
35810set dummy $ac_prog; ac_word=$2
35811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35812$as_echo_n "checking for $ac_word... " >&6; }
35813if ${ac_cv_path_PSDelegate+:} false; then :
35814  $as_echo_n "(cached) " >&6
35815else
35816  case $PSDelegate in
35817  [\\/]* | ?:[\\/]*)
35818  ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
35819  ;;
35820  *)
35821  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35822for as_dir in $PATH
35823do
35824  IFS=$as_save_IFS
35825  test -z "$as_dir" && as_dir=.
35826    for ac_exec_ext in '' $ac_executable_extensions; do
35827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35828    ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
35829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35830    break 2
35831  fi
35832done
35833  done
35834IFS=$as_save_IFS
35835
35836  ;;
35837esac
35838fi
35839PSDelegate=$ac_cv_path_PSDelegate
35840if test -n "$PSDelegate"; then
35841  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
35842$as_echo "$PSDelegate" >&6; }
35843else
35844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35845$as_echo "no" >&6; }
35846fi
35847
35848
35849  test -n "$PSDelegate" && break
35850done
35851test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
35852
35853# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
35854set dummy "$RMDelegateDefault"; ac_word=$2
35855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35856$as_echo_n "checking for $ac_word... " >&6; }
35857if ${ac_cv_path_RMDelegate+:} false; then :
35858  $as_echo_n "(cached) " >&6
35859else
35860  case $RMDelegate in
35861  [\\/]* | ?:[\\/]*)
35862  ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
35863  ;;
35864  *)
35865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35866for as_dir in $PATH
35867do
35868  IFS=$as_save_IFS
35869  test -z "$as_dir" && as_dir=.
35870    for ac_exec_ext in '' $ac_executable_extensions; do
35871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35872    ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
35873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35874    break 2
35875  fi
35876done
35877  done
35878IFS=$as_save_IFS
35879
35880  test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
35881  ;;
35882esac
35883fi
35884RMDelegate=$ac_cv_path_RMDelegate
35885if test -n "$RMDelegate"; then
35886  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
35887$as_echo "$RMDelegate" >&6; }
35888else
35889  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35890$as_echo "no" >&6; }
35891fi
35892
35893
35894# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
35895set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
35896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35897$as_echo_n "checking for $ac_word... " >&6; }
35898if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
35899  $as_echo_n "(cached) " >&6
35900else
35901  case $RSVGDecodeDelegate in
35902  [\\/]* | ?:[\\/]*)
35903  ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
35904  ;;
35905  *)
35906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35907for as_dir in $PATH
35908do
35909  IFS=$as_save_IFS
35910  test -z "$as_dir" && as_dir=.
35911    for ac_exec_ext in '' $ac_executable_extensions; do
35912  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35913    ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35915    break 2
35916  fi
35917done
35918  done
35919IFS=$as_save_IFS
35920
35921  test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
35922  ;;
35923esac
35924fi
35925RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
35926if test -n "$RSVGDecodeDelegate"; then
35927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
35928$as_echo "$RSVGDecodeDelegate" >&6; }
35929else
35930  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35931$as_echo "no" >&6; }
35932fi
35933
35934
35935# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
35936set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
35937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35938$as_echo_n "checking for $ac_word... " >&6; }
35939if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
35940  $as_echo_n "(cached) " >&6
35941else
35942  case $SVGDecodeDelegate in
35943  [\\/]* | ?:[\\/]*)
35944  ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
35945  ;;
35946  *)
35947  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35948for as_dir in $PATH
35949do
35950  IFS=$as_save_IFS
35951  test -z "$as_dir" && as_dir=.
35952    for ac_exec_ext in '' $ac_executable_extensions; do
35953  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35954    ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
35955    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35956    break 2
35957  fi
35958done
35959  done
35960IFS=$as_save_IFS
35961
35962  test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
35963  ;;
35964esac
35965fi
35966SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
35967if test -n "$SVGDecodeDelegate"; then
35968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
35969$as_echo "$SVGDecodeDelegate" >&6; }
35970else
35971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35972$as_echo "no" >&6; }
35973fi
35974
35975
35976# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
35977set dummy "$UniconvertorDelegateDefault"; ac_word=$2
35978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
35979$as_echo_n "checking for $ac_word... " >&6; }
35980if ${ac_cv_path_UniconvertorDelegate+:} false; then :
35981  $as_echo_n "(cached) " >&6
35982else
35983  case $UniconvertorDelegate in
35984  [\\/]* | ?:[\\/]*)
35985  ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
35986  ;;
35987  *)
35988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35989for as_dir in $PATH
35990do
35991  IFS=$as_save_IFS
35992  test -z "$as_dir" && as_dir=.
35993    for ac_exec_ext in '' $ac_executable_extensions; do
35994  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35995    ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
35996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
35997    break 2
35998  fi
35999done
36000  done
36001IFS=$as_save_IFS
36002
36003  test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
36004  ;;
36005esac
36006fi
36007UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
36008if test -n "$UniconvertorDelegate"; then
36009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
36010$as_echo "$UniconvertorDelegate" >&6; }
36011else
36012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36013$as_echo "no" >&6; }
36014fi
36015
36016
36017# Extract the first word of ""$WebPDecodeDelegateDefault"", so it can be a program name with args.
36018set dummy "$WebPDecodeDelegateDefault"; ac_word=$2
36019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36020$as_echo_n "checking for $ac_word... " >&6; }
36021if ${ac_cv_path_WebPDecodeDelegate+:} false; then :
36022  $as_echo_n "(cached) " >&6
36023else
36024  case $WebPDecodeDelegate in
36025  [\\/]* | ?:[\\/]*)
36026  ac_cv_path_WebPDecodeDelegate="$WebPDecodeDelegate" # Let the user override the test with a path.
36027  ;;
36028  *)
36029  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36030for as_dir in $PATH
36031do
36032  IFS=$as_save_IFS
36033  test -z "$as_dir" && as_dir=.
36034    for ac_exec_ext in '' $ac_executable_extensions; do
36035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36036    ac_cv_path_WebPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
36037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36038    break 2
36039  fi
36040done
36041  done
36042IFS=$as_save_IFS
36043
36044  test -z "$ac_cv_path_WebPDecodeDelegate" && ac_cv_path_WebPDecodeDelegate=""$WebPDecodeDelegateDefault""
36045  ;;
36046esac
36047fi
36048WebPDecodeDelegate=$ac_cv_path_WebPDecodeDelegate
36049if test -n "$WebPDecodeDelegate"; then
36050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPDecodeDelegate" >&5
36051$as_echo "$WebPDecodeDelegate" >&6; }
36052else
36053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36054$as_echo "no" >&6; }
36055fi
36056
36057
36058# Extract the first word of ""$WebPEncodeDelegateDefault"", so it can be a program name with args.
36059set dummy "$WebPEncodeDelegateDefault"; ac_word=$2
36060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36061$as_echo_n "checking for $ac_word... " >&6; }
36062if ${ac_cv_path_WebPEncodeDelegate+:} false; then :
36063  $as_echo_n "(cached) " >&6
36064else
36065  case $WebPEncodeDelegate in
36066  [\\/]* | ?:[\\/]*)
36067  ac_cv_path_WebPEncodeDelegate="$WebPEncodeDelegate" # Let the user override the test with a path.
36068  ;;
36069  *)
36070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36071for as_dir in $PATH
36072do
36073  IFS=$as_save_IFS
36074  test -z "$as_dir" && as_dir=.
36075    for ac_exec_ext in '' $ac_executable_extensions; do
36076  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36077    ac_cv_path_WebPEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
36078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36079    break 2
36080  fi
36081done
36082  done
36083IFS=$as_save_IFS
36084
36085  test -z "$ac_cv_path_WebPEncodeDelegate" && ac_cv_path_WebPEncodeDelegate=""$WebPEncodeDelegateDefault""
36086  ;;
36087esac
36088fi
36089WebPEncodeDelegate=$ac_cv_path_WebPEncodeDelegate
36090if test -n "$WebPEncodeDelegate"; then
36091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WebPEncodeDelegate" >&5
36092$as_echo "$WebPEncodeDelegate" >&6; }
36093else
36094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36095$as_echo "no" >&6; }
36096fi
36097
36098
36099# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
36100set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
36101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36102$as_echo_n "checking for $ac_word... " >&6; }
36103if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
36104  $as_echo_n "(cached) " >&6
36105else
36106  case $WWWDecodeDelegate in
36107  [\\/]* | ?:[\\/]*)
36108  ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
36109  ;;
36110  *)
36111  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36112for as_dir in $PATH
36113do
36114  IFS=$as_save_IFS
36115  test -z "$as_dir" && as_dir=.
36116    for ac_exec_ext in '' $ac_executable_extensions; do
36117  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36118    ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
36119    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36120    break 2
36121  fi
36122done
36123  done
36124IFS=$as_save_IFS
36125
36126  test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDelegateDefault""
36127  ;;
36128esac
36129fi
36130WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
36131if test -n "$WWWDecodeDelegate"; then
36132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
36133$as_echo "$WWWDecodeDelegate" >&6; }
36134else
36135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36136$as_echo "no" >&6; }
36137fi
36138
36139
36140# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
36141set dummy "$XPSDelegateDefault"; ac_word=$2
36142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36143$as_echo_n "checking for $ac_word... " >&6; }
36144if ${ac_cv_path_XPSDelegate+:} false; then :
36145  $as_echo_n "(cached) " >&6
36146else
36147  case $XPSDelegate in
36148  [\\/]* | ?:[\\/]*)
36149  ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
36150  ;;
36151  *)
36152  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36153for as_dir in $PATH
36154do
36155  IFS=$as_save_IFS
36156  test -z "$as_dir" && as_dir=.
36157    for ac_exec_ext in '' $ac_executable_extensions; do
36158  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36159    ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
36160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36161    break 2
36162  fi
36163done
36164  done
36165IFS=$as_save_IFS
36166
36167  test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
36168  ;;
36169esac
36170fi
36171XPSDelegate=$ac_cv_path_XPSDelegate
36172if test -n "$XPSDelegate"; then
36173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
36174$as_echo "$XPSDelegate" >&6; }
36175else
36176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36177$as_echo "no" >&6; }
36178fi
36179
36180
36181
36182# Prefer lpr to lp; lp needs options tacked on.
36183if test "$LPRDelegate" != no; then
36184    PrintDelegate="$LPRDelegate"
36185else
36186    PrintDelegate="$LPDelegate -c -s"
36187fi
36188
36189
36190# Installed ImageMagick utiltity paths
36191ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
36192DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
36193MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
36194
36195# Set delegate booleans
36196have_avconv='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_avconv='yes'; fi
36197have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
36198have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
36199have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
36200have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
36201have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
36202have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
36203have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
36204
36205#
36206# Test for font directories
36207#
36208type_include_files=''
36209
36210# Apple fonts.
36211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Apple fonts directory" >&5
36212$as_echo_n "checking for Apple fonts directory... " >&6; }
36213apple_font_dir=''
36214if test "${with_apple_font_dir}" != 'default'; then
36215  apple_font_dir="${with_apple_font_dir}/"
36216else
36217  for font_dir in '/Library/Fonts/'; do
36218    if test -f "${font_dir}Arial.ttf"; then
36219      apple_font_dir="${font_dir}"
36220      break 1
36221    fi
36222  done
36223fi
36224if test "${apple_font_dir}x" != 'x'; then
36225  type_include_files="${type_include_files} "'<include file="type-apple.xml" />'
36226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $apple_font_dir" >&5
36227$as_echo "$apple_font_dir" >&6; }
36228else
36229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36230$as_echo "not found!" >&6; };
36231fi
36232
36233
36234# Dejavu fonts.
36235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
36236$as_echo_n "checking for Dejavu fonts directory... " >&6; }
36237dejavu_font_dir=''
36238if test "${with_dejavu_font_dir}" != 'default'; then
36239  dejavu_font_dir="${with_dejavu_font_dir}/"
36240else
36241  for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
36242    if test -f "${font_dir}DejaVuSerif.ttf"; then
36243      dejavu_font_dir="${font_dir}"
36244      break 1
36245    fi
36246  done
36247fi
36248if test "${dejavu_font_dir}x" != 'x'; then
36249  type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
36250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
36251$as_echo "$dejavu_font_dir" >&6; }
36252else
36253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36254$as_echo "not found!" >&6; };
36255fi
36256
36257
36258# Ghostscript
36259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
36260$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
36261ghostscript_font_dir=''
36262if test "${with_gs_font_dir}" != 'default'; then
36263  ghostscript_font_dir="${with_gs_font_dir}/"
36264else
36265  if test "${native_win32_build}" = 'yes'; then
36266    # Native Windows Build
36267    for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
36268      if test -f "${font_dir}a010013l.pfb"; then
36269        ghostscript_font_dir="$font_dir"
36270        break 1
36271      fi
36272    done
36273    if test "${PSDelegate}" != 'gswin32c'; then
36274      ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
36275    fi
36276  else
36277    # Linux / Mac OS X / Unix Build
36278    for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
36279      if test -f "${font_dir}a010013l.pfb"; then
36280        ghostscript_font_dir="${font_dir}"
36281        break 1
36282      fi
36283    done
36284    if test "${ghostscript_font_dir}x" = 'x'; then
36285      if test "$PSDelegate" != 'gs'; then
36286        ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
36287      fi
36288    fi
36289  fi
36290fi
36291if test "${ghostscript_font_dir}x" != 'x'; then
36292  type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
36293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
36294$as_echo "$ghostscript_font_dir" >&6; }
36295else
36296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36297$as_echo "not found!" >&6; };
36298fi
36299
36300case "${build_os}" in
36301  mingw* )
36302    PSDelegate=`$WinPathScript "$PSDelegate" 1`
36303    ;;
36304esac
36305
36306# Windows fonts.
36307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows fonts directory" >&5
36308$as_echo_n "checking for Windows fonts directory... " >&6; }
36309windows_font_dir=''
36310if test "${with_windows_font_dir}" != 'default'; then
36311  windows_font_dir="${with_windows_font_dir}/"
36312else
36313  for font_dir in '/usr/X11R6/lib/X11/fonts/truetype/' '/usr/X11R7/lib/X11/fonts/truetype/' '/usr/share/fonts/msttcore/'; do
36314    if test -f "${font_dir}arial.ttf"; then
36315      windows_font_dir="${font_dir}"
36316      break 1
36317    fi
36318  done
36319fi
36320if test "${windows_font_dir}x" != 'x'; then
36321  type_include_files="${type_include_files} "'<include file="type-windows.xml" />'
36322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $windows_font_dir" >&5
36323$as_echo "$windows_font_dir" >&6; }
36324else
36325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
36326$as_echo "not found!" >&6; };
36327fi
36328
36329
36330
36331
36332#
36333# Handle case where user doesn't want frozen paths
36334#
36335if test "$with_frozenpaths" != 'yes'; then
36336  # Re-set delegate definitions to default (no paths)
36337  BPGDecodeDelegate="$BPGDecodeDelegateDefault"
36338  BPGEncodeDelegate="$BPGEncodeDelegateDefault"
36339  BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
36340  BrowseDelegate="$BrowseDelegateDefault"
36341  ConvertDelegate="$ConvertDelegateDefault"
36342  DisplayDelegate="$DisplayDelegateDefault"
36343  DNGDecodeDelegate="$DNGDecodeDelegateDefault"
36344  DOCDecodeDelegate="$DOCDecodeDelegateDefault"
36345  DVIDecodeDelegate="$DVIDecodeDelegateDefault"
36346  EditorDelegate="$EditorDelegateDefault"
36347  GVCDecodeDelegate="$GVCDecodeDelegateDefault"
36348  HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
36349  HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
36350  ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
36351  ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
36352  JXRDecodeDelegate="$JXRDecodeDelegateDefault"
36353  JXREncodeDelegate="$JXREncodeDelegateDefault"
36354  LPDelegate="$LPDelegateDefault"
36355  LaunchDelegate="$LaunchDelegateDefault"
36356  MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
36357  MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
36358  MogrifyDelegate="$MogrifyDelegateDefault"
36359  MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
36360  PCLDelegate="$PCLDelegateDefault"
36361  PSDelegate="$PSDelegateDefault"
36362  RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
36363  SVGDecodeDelegate="$SVGDecodeDelegateDefault"
36364  ShowImageDelegate="$ShowImageDelegateDefault"
36365  UniconvertorDelegate="$UniconvertorDelegateDefault"
36366  WebPDecodeDelegate="$WebPDecodeDelegateDefault"
36367  WebPEncodeDelegate="$WebPEncodeDelegateDefault"
36368  WWWDecodeDelegate="$WWWDecodeDelegateDefault"
36369  XPSDelegate="$XPSDelegateDefault"
36370fi
36371
36372# Delegate substitutions
36373
36374
36375
36376
36377
36378
36379
36380
36381
36382
36383
36384
36385
36386
36387
36388
36389
36390
36391
36392
36393
36394
36395
36396
36397
36398
36399
36400
36401
36402#
36403# RPM support.
36404#
36405RPM=''
36406for ac_prog in gnutar gtar tar
36407do
36408  # Extract the first word of "$ac_prog", so it can be a program name with args.
36409set dummy $ac_prog; ac_word=$2
36410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36411$as_echo_n "checking for $ac_word... " >&6; }
36412if ${ac_cv_prog_TAR+:} false; then :
36413  $as_echo_n "(cached) " >&6
36414else
36415  if test -n "$TAR"; then
36416  ac_cv_prog_TAR="$TAR" # Let the user override the test.
36417else
36418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36419for as_dir in $PATH
36420do
36421  IFS=$as_save_IFS
36422  test -z "$as_dir" && as_dir=.
36423    for ac_exec_ext in '' $ac_executable_extensions; do
36424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36425    ac_cv_prog_TAR="$ac_prog"
36426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36427    break 2
36428  fi
36429done
36430  done
36431IFS=$as_save_IFS
36432
36433fi
36434fi
36435TAR=$ac_cv_prog_TAR
36436if test -n "$TAR"; then
36437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
36438$as_echo "$TAR" >&6; }
36439else
36440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36441$as_echo "no" >&6; }
36442fi
36443
36444
36445  test -n "$TAR" && break
36446done
36447
36448for ac_prog in perl
36449do
36450  # Extract the first word of "$ac_prog", so it can be a program name with args.
36451set dummy $ac_prog; ac_word=$2
36452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36453$as_echo_n "checking for $ac_word... " >&6; }
36454if ${ac_cv_prog_PERL+:} false; then :
36455  $as_echo_n "(cached) " >&6
36456else
36457  if test -n "$PERL"; then
36458  ac_cv_prog_PERL="$PERL" # Let the user override the test.
36459else
36460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36461for as_dir in $PATH
36462do
36463  IFS=$as_save_IFS
36464  test -z "$as_dir" && as_dir=.
36465    for ac_exec_ext in '' $ac_executable_extensions; do
36466  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36467    ac_cv_prog_PERL="$ac_prog"
36468    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36469    break 2
36470  fi
36471done
36472  done
36473IFS=$as_save_IFS
36474
36475fi
36476fi
36477PERL=$ac_cv_prog_PERL
36478if test -n "$PERL"; then
36479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36480$as_echo "$PERL" >&6; }
36481else
36482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36483$as_echo "no" >&6; }
36484fi
36485
36486
36487  test -n "$PERL" && break
36488done
36489
36490for ac_prog in rpmbuild rpm
36491do
36492  # Extract the first word of "$ac_prog", so it can be a program name with args.
36493set dummy $ac_prog; ac_word=$2
36494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36495$as_echo_n "checking for $ac_word... " >&6; }
36496if ${ac_cv_prog_RPM+:} false; then :
36497  $as_echo_n "(cached) " >&6
36498else
36499  if test -n "$RPM"; then
36500  ac_cv_prog_RPM="$RPM" # Let the user override the test.
36501else
36502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36503for as_dir in $PATH
36504do
36505  IFS=$as_save_IFS
36506  test -z "$as_dir" && as_dir=.
36507    for ac_exec_ext in '' $ac_executable_extensions; do
36508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36509    ac_cv_prog_RPM="$ac_prog"
36510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36511    break 2
36512  fi
36513done
36514  done
36515IFS=$as_save_IFS
36516
36517fi
36518fi
36519RPM=$ac_cv_prog_RPM
36520if test -n "$RPM"; then
36521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
36522$as_echo "$RPM" >&6; }
36523else
36524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36525$as_echo "no" >&6; }
36526fi
36527
36528
36529  test -n "$RPM" && break
36530done
36531
36532
36533ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
36534
36535
36536AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
36537
36538
36539AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
36540
36541
36542AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
36543
36544
36545 if test "x$RPM" != "x" ; then
36546  RPM_DELEGATE_TRUE=
36547  RPM_DELEGATE_FALSE='#'
36548else
36549  RPM_DELEGATE_TRUE='#'
36550  RPM_DELEGATE_FALSE=
36551fi
36552
36553
36554#
36555# 7ZIP support (http://p7zip.sourceforge.net/)
36556#
36557P7ZIP=''
36558for ac_prog in 7za
36559do
36560  # Extract the first word of "$ac_prog", so it can be a program name with args.
36561set dummy $ac_prog; ac_word=$2
36562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36563$as_echo_n "checking for $ac_word... " >&6; }
36564if ${ac_cv_prog_P7ZIP+:} false; then :
36565  $as_echo_n "(cached) " >&6
36566else
36567  if test -n "$P7ZIP"; then
36568  ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
36569else
36570as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36571for as_dir in $PATH
36572do
36573  IFS=$as_save_IFS
36574  test -z "$as_dir" && as_dir=.
36575    for ac_exec_ext in '' $ac_executable_extensions; do
36576  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36577    ac_cv_prog_P7ZIP="$ac_prog"
36578    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36579    break 2
36580  fi
36581done
36582  done
36583IFS=$as_save_IFS
36584
36585fi
36586fi
36587P7ZIP=$ac_cv_prog_P7ZIP
36588if test -n "$P7ZIP"; then
36589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
36590$as_echo "$P7ZIP" >&6; }
36591else
36592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36593$as_echo "no" >&6; }
36594fi
36595
36596
36597  test -n "$P7ZIP" && break
36598done
36599
36600
36601 if test "x$P7ZIP" != "x" ; then
36602  P7ZIP_DELEGATE_TRUE=
36603  P7ZIP_DELEGATE_FALSE='#'
36604else
36605  P7ZIP_DELEGATE_TRUE='#'
36606  P7ZIP_DELEGATE_FALSE=
36607fi
36608
36609
36610#
36611# ZIP support (http://www.info-zip.org/Zip.html)
36612#
36613ZIP=''
36614for ac_prog in zip
36615do
36616  # Extract the first word of "$ac_prog", so it can be a program name with args.
36617set dummy $ac_prog; ac_word=$2
36618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36619$as_echo_n "checking for $ac_word... " >&6; }
36620if ${ac_cv_prog_ZIP+:} false; then :
36621  $as_echo_n "(cached) " >&6
36622else
36623  if test -n "$ZIP"; then
36624  ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
36625else
36626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36627for as_dir in $PATH
36628do
36629  IFS=$as_save_IFS
36630  test -z "$as_dir" && as_dir=.
36631    for ac_exec_ext in '' $ac_executable_extensions; do
36632  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36633    ac_cv_prog_ZIP="$ac_prog"
36634    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36635    break 2
36636  fi
36637done
36638  done
36639IFS=$as_save_IFS
36640
36641fi
36642fi
36643ZIP=$ac_cv_prog_ZIP
36644if test -n "$ZIP"; then
36645  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
36646$as_echo "$ZIP" >&6; }
36647else
36648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36649$as_echo "no" >&6; }
36650fi
36651
36652
36653  test -n "$ZIP" && break
36654done
36655
36656
36657 if test "x$ZIP" != "x" ; then
36658  ZIP_DELEGATE_TRUE=
36659  ZIP_DELEGATE_FALSE='#'
36660else
36661  ZIP_DELEGATE_TRUE='#'
36662  ZIP_DELEGATE_FALSE=
36663fi
36664
36665
36666#
36667# GhostPCL related configuration.
36668#
36669PCLColorDevice=ppmraw
36670PCLCMYKDevice=pamcmyk32
36671PCLMonoDevice=pbmraw
36672if test -z "$PCLVersion"; then
36673    PCLVersion='unknown'
36674fi
36675if test $have_pcl = 'yes'; then
36676    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36677$as_echo "-------------------------------------------------------------" >&6; }
36678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
36679$as_echo_n "checking for PCL... " >&6; }
36680    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36681$as_echo "" >&6; }
36682    # PCLColorDevice
36683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
36684$as_echo_n "checking for pcl color device... " >&6; }
36685    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36686        :
36687    else
36688        PCLColorDevice=ppmraw
36689    fi
36690    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
36691$as_echo "$PCLColorDevice" >&6; }
36692
36693    # PCLCMYKDevice
36694    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
36695$as_echo_n "checking for pcl CMYK device... " >&6; }
36696    if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36697        :
36698    else
36699        PCLCMYKDevice=$PCLColorDevice
36700    fi
36701    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
36702$as_echo "$PCLCMYKDevice" >&6; }
36703
36704    # PCLMonoDevice
36705    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
36706$as_echo_n "checking for pcl mono device... " >&6; }
36707    if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36708        :
36709    else
36710        PCLMonoDevice=$PCLColorDevice
36711    fi
36712    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
36713$as_echo "$PCLMonoDevice" >&6; }
36714fi
36715
36716
36717
36718
36719
36720
36721#
36722# GhostXPS related configuration.
36723#
36724XPSColorDevice=ppmraw
36725XPSCMYKDevice=bmpsep8
36726XPSMonoDevice=pbmraw
36727if test -z "$XPSVersion"; then
36728    XPSVersion='unknown'
36729fi
36730if test $have_xps = 'yes'; then
36731    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36732$as_echo "-------------------------------------------------------------" >&6; }
36733    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
36734$as_echo_n "checking for XPS... " >&6; }
36735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36736$as_echo "" >&6; }
36737    # XPSColorDevice
36738    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
36739$as_echo_n "checking for xps color device... " >&6; }
36740    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36741        :
36742    else
36743        XPSColorDevice=ppmraw
36744    fi
36745    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
36746$as_echo "$XPSColorDevice" >&6; }
36747
36748    # XPSCMYKDevice
36749    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
36750$as_echo_n "checking for xps CMYK device... " >&6; }
36751    if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36752        :
36753    else
36754        XPSCMYKDevice=$XPSColorDevice
36755    fi
36756    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
36757$as_echo "$XPSCMYKDevice" >&6; }
36758
36759    # XPSMonoDevice
36760    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
36761$as_echo_n "checking for xps mono device... " >&6; }
36762    if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36763        :
36764    else
36765        XPSMonoDevice=$XPSColorDevice
36766    fi
36767    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
36768$as_echo "$XPSMonoDevice" >&6; }
36769fi
36770
36771
36772
36773
36774
36775
36776#
36777# Ghostscript related configuration.
36778#
36779GSAlphaDevice=pngalpha
36780GSColorDevice=pnmraw
36781GSCMYKDevice=pamcmyk32
36782GSMonoDevice=pbmraw
36783GSPDFDevice=pdfwrite
36784GSPSDevice=ps2write
36785GSEPSDevice=eps2write
36786GSVersion='unknown'
36787if test $have_gs = 'yes'; then
36788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36789$as_echo "-------------------------------------------------------------" >&6; }
36790    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
36791$as_echo_n "checking for Ghostscript... " >&6; }
36792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36793$as_echo "" >&6; }
36794    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
36795$as_echo_n "checking for Ghostscript version... " >&6; }
36796    if GSVersion=`$PSDelegate --version`; then
36797        :
36798    else
36799        GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
36800    fi
36801    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
36802$as_echo "$GSVersion" >&6; }
36803
36804    # GSColorDevice
36805    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
36806$as_echo_n "checking for gs color device... " >&6; }
36807    if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36808        :
36809    else
36810        GSColorDevice=ppmraw
36811    fi
36812    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
36813$as_echo "$GSColorDevice" >&6; }
36814
36815    # GSAlphaDevice
36816    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
36817$as_echo_n "checking for gs alpha device... " >&6; }
36818    if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36819        :
36820    else
36821        GSAlphaDevice=$GSColorDevice
36822    fi
36823    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
36824$as_echo "$GSAlphaDevice" >&6; }
36825
36826    # GSCMYKDevice
36827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
36828$as_echo_n "checking for gs CMYK device... " >&6; }
36829    if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36830        :
36831    else
36832        GSCMYKDevice=pam
36833    fi
36834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
36835$as_echo "$GSCMYKDevice" >&6; }
36836
36837    # GSMonoDevice
36838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
36839$as_echo_n "checking for gs mono device... " >&6; }
36840    if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36841        :
36842    else
36843        GSMonoDevice=$GSColorDevice
36844    fi
36845    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
36846$as_echo "$GSMonoDevice" >&6; }
36847
36848    # GSPDFDevice
36849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
36850$as_echo_n "checking for gs PDF writing device... " >&6; }
36851    if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36852        :
36853    else
36854        GSPDFDevice=nodevice
36855    fi
36856    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
36857$as_echo "$GSPDFDevice" >&6; }
36858
36859    # GSPSDevice
36860    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
36861$as_echo_n "checking for gs PS writing device... " >&6; }
36862    if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36863        :
36864    else
36865        GSPSDevice=pswrite
36866    fi
36867    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
36868$as_echo "$GSPSDevice" >&6; }
36869
36870    # GSEPSDevice
36871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
36872$as_echo_n "checking for gs EPS writing device... " >&6; }
36873    if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 1>&5 2>&5; then
36874        :
36875    else
36876        GSEPSDevice=epswrite
36877    fi
36878    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
36879$as_echo "$GSEPSDevice" >&6; }
36880fi
36881
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891#
36892# PerlMagick-related configuration
36893#
36894
36895# Look for PERL if PerlMagick requested
36896# If name/path of desired PERL interpreter is specified, look for that one first
36897have_perl='no'
36898if test "$with_perl" != 'no'; then
36899    { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
36900$as_echo "-------------------------------------------------------------" >&6; }
36901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
36902$as_echo_n "checking for Perl... " >&6; }
36903    { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
36904$as_echo "" >&6; }
36905    if test "$with_perl" != 'yes'; then
36906        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
36907$as_echo_n "checking for perl... " >&6; }
36908if ${ac_cv_path_PERL+:} false; then :
36909  $as_echo_n "(cached) " >&6
36910else
36911  ac_cv_path_PERL="$with_perl"
36912fi
36913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
36914$as_echo "$ac_cv_path_PERL" >&6; };
36915        PERL=$ac_cv_path_PERL
36916                have_perl="$ac_cv_path_PERL"
36917    else
36918        for ac_prog in perl perl5
36919do
36920  # Extract the first word of "$ac_prog", so it can be a program name with args.
36921set dummy $ac_prog; ac_word=$2
36922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
36923$as_echo_n "checking for $ac_word... " >&6; }
36924if ${ac_cv_path_PERL+:} false; then :
36925  $as_echo_n "(cached) " >&6
36926else
36927  case $PERL in
36928  [\\/]* | ?:[\\/]*)
36929  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
36930  ;;
36931  *)
36932  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36933for as_dir in $PATH
36934do
36935  IFS=$as_save_IFS
36936  test -z "$as_dir" && as_dir=.
36937    for ac_exec_ext in '' $ac_executable_extensions; do
36938  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36939    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
36940    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
36941    break 2
36942  fi
36943done
36944  done
36945IFS=$as_save_IFS
36946
36947  ;;
36948esac
36949fi
36950PERL=$ac_cv_path_PERL
36951if test -n "$PERL"; then
36952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
36953$as_echo "$PERL" >&6; }
36954else
36955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36956$as_echo "no" >&6; }
36957fi
36958
36959
36960  test -n "$PERL" && break
36961done
36962        if test "$ac_cv_path_PERL"; then
36963            have_perl="$ac_cv_path_PERL"
36964        fi
36965    fi
36966fi
36967
36968if test "$with_perl" != 'yes' ; then
36969    DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
36970fi
36971
36972PERL_SUPPORTS_DESTDIR='no'
36973
36974with_perl_static='no'
36975with_perl_dynamic='no'
36976if test "$have_perl" != 'no'; then
36977    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
36978        with_perl_static='yes'
36979    fi
36980    if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
36981        with_perl_dynamic='yes'
36982    fi
36983    # Is PERL's MakeMaker new enough to support DESTDIR?
36984
36985
36986
36987
36988    if test -n "$PERL"; then :
36989
36990        ax_perl_version="5.8.1"
36991
36992        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
36993$as_echo_n "checking for perl version... " >&6; }
36994
36995        perl_version=`$PERL --version 2>&1 \
36996          | $SED -n -e '/This is perl/b inspect
36997b
36998: inspect
36999s/.* (\{0,1\}v\([0-9]*\.[0-9]*\.[0-9]*\))\{0,1\} .*/\1/;p'`
37000
37001        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
37002$as_echo "$perl_version" >&6; }
37003
37004	PERL_VERSION=$perl_version
37005
37006
37007
37008
37009
37010  # Used to indicate true or false condition
37011  ax_compare_version=false
37012
37013  # Convert the two version strings to be compared into a format that
37014  # allows a simple string comparison.  The end result is that a version
37015  # string of the form 1.12.5-r617 will be converted to the form
37016  # 0001001200050617.  In other words, each number is zero padded to four
37017  # digits, and non digits are removed.
37018
37019  ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
37020                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
37021                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
37022                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
37023                     -e 's/[^0-9]//g'`
37024
37025
37026  ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
37027                     -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
37028                     -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
37029                     -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
37030                     -e 's/[^0-9]//g'`
37031
37032
37033    ax_compare_version=`echo "x$ax_compare_version_A
37034x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
37035
37036
37037
37038    if test "$ax_compare_version" = "true" ; then
37039
37040	    :
37041            PERL_SUPPORTS_DESTDIR='yes'
37042
37043    else
37044	    :
37045            PERL_SUPPORTS_DESTDIR='no'
37046
37047  fi
37048
37049
37050else
37051
37052        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
37053$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
37054        PERL_SUPPORTS_DESTDIR='no'
37055
37056fi
37057
37058fi
37059 if test "$have_perl" != 'no'; then
37060  WITH_PERL_TRUE=
37061  WITH_PERL_FALSE='#'
37062else
37063  WITH_PERL_TRUE='#'
37064  WITH_PERL_FALSE=
37065fi
37066
37067 if test $with_perl_static = 'yes'; then
37068  WITH_PERL_STATIC_TRUE=
37069  WITH_PERL_STATIC_FALSE='#'
37070else
37071  WITH_PERL_STATIC_TRUE='#'
37072  WITH_PERL_STATIC_FALSE=
37073fi
37074
37075 if test $with_perl_dynamic = 'yes'; then
37076  WITH_PERL_DYNAMIC_TRUE=
37077  WITH_PERL_DYNAMIC_FALSE='#'
37078else
37079  WITH_PERL_DYNAMIC_TRUE='#'
37080  WITH_PERL_DYNAMIC_FALSE=
37081fi
37082
37083
37084
37085# Determine path to pick up MagickCore library from for use with building PerlMagick
37086MAGICKCORE_PATH="${LIB_DIR}"
37087if test $with_perl_static = 'yes'; then
37088    # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
37089    libtool_objdir=$objdir
37090
37091    # Linker search path to library, followed by -lMagickCore
37092    MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
37093fi
37094
37095
37096# Create a simple string containing format names for all delegate libraries.
37097MAGICK_DELEGATES=''
37098if test "$have_autotrace"  = 'yes' ; then
37099   MAGICK_DELEGATES="$MAGICK_DELEGATES autotrace"
37100fi
37101if test "$have_bzlib"  = 'yes' ; then
37102   MAGICK_DELEGATES="$MAGICK_DELEGATES bzlib"
37103fi
37104if test "$have_dps"    = 'yes' ; then
37105   MAGICK_DELEGATES="$MAGICK_DELEGATES dps"
37106fi
37107if test "$have_djvu"    = 'yes' ; then
37108   MAGICK_DELEGATES="$MAGICK_DELEGATES djvu"
37109fi
37110if test "$have_avconv"   = 'yes' ; then
37111   MAGICK_DELEGATES="$MAGICK_DELEGATES mpeg"
37112fi
37113if test "$have_fftw"    = 'yes' ; then
37114   MAGICK_DELEGATES="$MAGICK_DELEGATES fftw"
37115fi
37116if test "$have_flif"    = 'yes' ; then
37117   MAGICK_DELEGATES="$MAGICK_DELEGATES flif"
37118fi
37119if test "$have_fpx"    = 'yes' ; then
37120   MAGICK_DELEGATES="$MAGICK_DELEGATES fpx"
37121fi
37122if test "$have_fontconfig"    = 'yes' ; then
37123   MAGICK_DELEGATES="$MAGICK_DELEGATES fontconfig"
37124fi
37125if test "$have_freetype"    = 'yes' ; then
37126   MAGICK_DELEGATES="$MAGICK_DELEGATES freetype"
37127fi
37128if test "$have_gslib"    = 'yes' ; then
37129   MAGICK_DELEGATES="$MAGICK_DELEGATES gslib"
37130fi
37131if test "$have_jbig"    = 'yes' ; then
37132   MAGICK_DELEGATES="$MAGICK_DELEGATES jbig"
37133fi
37134if test "$have_png$have_jpeg" = 'yesyes' ; then
37135   MAGICK_DELEGATES="$MAGICK_DELEGATES jng"
37136fi
37137if test "$have_jpeg"   = 'yes' ; then
37138   MAGICK_DELEGATES="$MAGICK_DELEGATES jpeg"
37139fi
37140if test "$have_lcms" = 'yes' || test "$have_lcms2" = 'yes' ; then
37141   MAGICK_DELEGATES="$MAGICK_DELEGATES lcms"
37142fi
37143if test "$have_lqr"    = 'yes' ; then
37144   MAGICK_DELEGATES="$MAGICK_DELEGATES lqr"
37145fi
37146if test "$have_lzma"    = 'yes' ; then
37147   MAGICK_DELEGATES="$MAGICK_DELEGATES lzma"
37148fi
37149if test "$have_openexr"    = 'yes' ; then
37150   MAGICK_DELEGATES="$MAGICK_DELEGATES openexr"
37151fi
37152if test "$have_openjp2"    = 'yes' ; then
37153   MAGICK_DELEGATES="$MAGICK_DELEGATES openjp2"
37154fi
37155if test "$have_pango"    = 'yes' ; then
37156   MAGICK_DELEGATES="$MAGICK_DELEGATES pango"
37157fi
37158if test "$have_png"    = 'yes' ; then
37159   MAGICK_DELEGATES="$MAGICK_DELEGATES png"
37160fi
37161have_ps='no'
37162if test "$have_dps"    = 'yes' || \
37163   test "$have_gs" = 'yes' || \
37164   test "${native_win32_build}" = 'yes' ; then
37165   have_ps='yes'
37166fi
37167if test "$have_ps"     = 'yes' ; then
37168   MAGICK_DELEGATES="$MAGICK_DELEGATES ps"
37169fi
37170if test "$have_raqm"    = 'yes' ; then
37171   MAGICK_DELEGATES="$MAGICK_DELEGATES raqm"
37172fi
37173if test "$have_ra_ppm" = 'yes' ; then
37174   MAGICK_DELEGATES="$MAGICK_DELEGATES rad"
37175fi
37176if test "$have_rsvg"   = 'yes' ; then
37177   MAGICK_DELEGATES="$MAGICK_DELEGATES rsvg"
37178fi
37179if test "$have_tiff"   = 'yes' ; then
37180   MAGICK_DELEGATES="$MAGICK_DELEGATES tiff"
37181fi
37182if test "$have_ttf"    = 'yes' ; then
37183   MAGICK_DELEGATES="$MAGICK_DELEGATES ttf"
37184fi
37185if test "$have_webp"    = 'yes' ; then
37186   MAGICK_DELEGATES="$MAGICK_DELEGATES webp"
37187fi
37188if test "$have_wmf"    = 'yes' ; then
37189   MAGICK_DELEGATES="$MAGICK_DELEGATES wmf"
37190fi
37191if test "$have_x"      = 'yes' ; then
37192   MAGICK_DELEGATES="$MAGICK_DELEGATES x"
37193fi
37194if test "$have_xml"      = 'yes' ; then
37195   MAGICK_DELEGATES="$MAGICK_DELEGATES xml"
37196fi
37197if test "$have_zlib"   = 'yes' ; then
37198   MAGICK_DELEGATES="$MAGICK_DELEGATES zlib"
37199fi
37200
37201# Remove extraneous spaces from output variables (asthetic)
37202MAGICK_DELEGATES=`echo $MAGICK_DELEGATES | sed -e 's/  */ /g'`
37203MAGICK_FEATURES=`echo $MAGICK_FEATURES | sed -e 's/  */ /g'`
37204
37205
37206
37207#
37208# Handle special compiler flags
37209#
37210
37211# Add '-p' if prof source profiling support enabled
37212if test "$enable_prof" = 'yes'; then
37213    CFLAGS="-p $CFLAGS"
37214    CXXFLAGS="-p $CXXFLAGS"
37215    LDFLAGS="-p $LDFLAGS"
37216fi
37217
37218# Add '-pg' if gprof source profiling support enabled
37219if test "$enable_gprof" = 'yes'; then
37220    CFLAGS="-pg $CFLAGS"
37221    CXXFLAGS="-pg $CXXFLAGS"
37222    LDFLAGS="-pg $LDFLAGS"
37223fi
37224
37225# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
37226# This is a gcc-specific feature
37227if test "$enable_gcov" = 'yes'; then
37228    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
37229$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
37230if ${ac_cv_lib_gcov__gcov_init+:} false; then :
37231  $as_echo_n "(cached) " >&6
37232else
37233  ac_check_lib_save_LIBS=$LIBS
37234LIBS="-lgcov  $LIBS"
37235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37236/* end confdefs.h.  */
37237
37238/* Override any GCC internal prototype to avoid an error.
37239   Use char because int might match the return type of a GCC
37240   builtin and then its argument prototype would still apply.  */
37241#ifdef __cplusplus
37242extern "C"
37243#endif
37244char _gcov_init ();
37245int
37246main ()
37247{
37248return _gcov_init ();
37249  ;
37250  return 0;
37251}
37252_ACEOF
37253if ac_fn_c_try_link "$LINENO"; then :
37254  ac_cv_lib_gcov__gcov_init=yes
37255else
37256  ac_cv_lib_gcov__gcov_init=no
37257fi
37258rm -f core conftest.err conftest.$ac_objext \
37259    conftest$ac_exeext conftest.$ac_ext
37260LIBS=$ac_check_lib_save_LIBS
37261fi
37262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
37263$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
37264if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
37265  cat >>confdefs.h <<_ACEOF
37266#define HAVE_LIBGCOV 1
37267_ACEOF
37268
37269  LIBS="-lgcov $LIBS"
37270
37271fi
37272
37273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
37274$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
37275if ${ac_cv_lib_gcov___gcov_init+:} false; then :
37276  $as_echo_n "(cached) " >&6
37277else
37278  ac_check_lib_save_LIBS=$LIBS
37279LIBS="-lgcov  $LIBS"
37280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37281/* end confdefs.h.  */
37282
37283/* Override any GCC internal prototype to avoid an error.
37284   Use char because int might match the return type of a GCC
37285   builtin and then its argument prototype would still apply.  */
37286#ifdef __cplusplus
37287extern "C"
37288#endif
37289char __gcov_init ();
37290int
37291main ()
37292{
37293return __gcov_init ();
37294  ;
37295  return 0;
37296}
37297_ACEOF
37298if ac_fn_c_try_link "$LINENO"; then :
37299  ac_cv_lib_gcov___gcov_init=yes
37300else
37301  ac_cv_lib_gcov___gcov_init=no
37302fi
37303rm -f core conftest.err conftest.$ac_objext \
37304    conftest$ac_exeext conftest.$ac_ext
37305LIBS=$ac_check_lib_save_LIBS
37306fi
37307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
37308$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
37309if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
37310  cat >>confdefs.h <<_ACEOF
37311#define HAVE_LIBGCOV 1
37312_ACEOF
37313
37314  LIBS="-lgcov $LIBS"
37315
37316fi
37317
37318    case "$target_os" in
37319        darwin*)
37320            OSX_GCOV_LDFLAG="-Wl,-single_module"
37321        ;;
37322        *)
37323            OSX_GCOV_LDFLAG=""
37324        ;;
37325    esac
37326
37327    CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
37328    CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
37329    LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
37330fi
37331
37332#
37333# Build library dependency list for libMagickCore
37334#
37335
37336if test "$build_modules" != 'no'; then
37337    MAGICK_DEP_LIBS="$USER_LIBS $LCMS_LIBS $FREETYPE_LIBS $RAQM_LIBS $LQR_LIBS $FFTW_LIBS $FLIF_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
37338else
37339    MAGICK_DEP_LIBS="$USER_LIBS $JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $RAQM_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FLIF_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $LIBOPENJP2_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $JEMALLOC_LIBS $THREAD_LIBS"
37340fi
37341
37342
37343# Pass only user-provided LIBS as "global" libraries
37344LIBS=$USER_LIBS
37345
37346#AC_SUBST(CPPFLAGS)
37347
37348#AC_SUBST(LDFLAGS)
37349#AC_SUBST(X_PRE_LIBS)
37350#AC_SUBST(X_LIBS)
37351#AC_SUBST(X_EXTRA_LIBS)
37352
37353MAGICK_CFLAGS=$CFLAGS
37354MAGICK_CXXFLAGS="$CXXFLAGS"
37355MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
37356MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
37357MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
37358MAGICK_LIBS="$MAGICK_DEP_LIBS"
37359
37360
37361
37362
37363
37364
37365
37366
37367# Set configured scripts to executable.
37368ac_config_commands="$ac_config_commands default"
37369
37370ac_config_commands="$ac_config_commands magick.sh.in"
37371
37372ac_config_commands="$ac_config_commands MagickCore-config.in"
37373
37374ac_config_commands="$ac_config_commands MagickWand-config.in"
37375
37376ac_config_commands="$ac_config_commands Magick++-config.in"
37377
37378ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
37379
37380
37381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
37382$as_echo "-------------------------------------------------------------" >&6; }
37383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
37384$as_echo "Update ImageMagick configuration" >&6; }
37385
37386rm -f magick-version
37387
37388result_dejavu_font_dir='none'
37389if test "${dejavu_font_dir}x" != 'x'; then
37390    result_dejavu_font_dir=$dejavu_font_dir
37391fi
37392
37393result_ghostscript_font_dir='none'
37394if test "${ghostscript_font_dir}x" != 'x'; then
37395    result_ghostscript_font_dir=$ghostscript_font_dir
37396fi
37397
37398result_windows_font_dir='none'
37399if test "${windows_font_dir}x" != 'x'; then
37400    result_windows_font_dir=${windows_font_dir}
37401fi
37402
37403# ==============================================================================
37404# Generate build environment
37405# ==============================================================================
37406ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-apple.xml config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/check.sh PerlMagick/default/Magick.pm PerlMagick/Makefile.PL PerlMagick/default/Makefile.PL PerlMagick/quantum/Makefile.PL PerlMagick/quantum/quantum.pm PerlMagick/quantum/quantum.xs PerlMagick/quantum/typemap utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/magick.1 utilities/magick-script.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
37407
37408cat >confcache <<\_ACEOF
37409# This file is a shell script that caches the results of configure
37410# tests run on this system so they can be shared between configure
37411# scripts and configure runs, see configure's option --config-cache.
37412# It is not useful on other systems.  If it contains results you don't
37413# want to keep, you may remove or edit it.
37414#
37415# config.status only pays attention to the cache file if you give it
37416# the --recheck option to rerun configure.
37417#
37418# `ac_cv_env_foo' variables (set or unset) will be overridden when
37419# loading this file, other *unset* `ac_cv_foo' will be assigned the
37420# following values.
37421
37422_ACEOF
37423
37424# The following way of writing the cache mishandles newlines in values,
37425# but we know of no workaround that is simple, portable, and efficient.
37426# So, we kill variables containing newlines.
37427# Ultrix sh set writes to stderr and can't be redirected directly,
37428# and sets the high bit in the cache file unless we assign to the vars.
37429(
37430  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
37431    eval ac_val=\$$ac_var
37432    case $ac_val in #(
37433    *${as_nl}*)
37434      case $ac_var in #(
37435      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
37436$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
37437      esac
37438      case $ac_var in #(
37439      _ | IFS | as_nl) ;; #(
37440      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
37441      *) { eval $ac_var=; unset $ac_var;} ;;
37442      esac ;;
37443    esac
37444  done
37445
37446  (set) 2>&1 |
37447    case $as_nl`(ac_space=' '; set) 2>&1` in #(
37448    *${as_nl}ac_space=\ *)
37449      # `set' does not quote correctly, so add quotes: double-quote
37450      # substitution turns \\\\ into \\, and sed turns \\ into \.
37451      sed -n \
37452	"s/'/'\\\\''/g;
37453	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
37454      ;; #(
37455    *)
37456      # `set' quotes correctly as required by POSIX, so do not add quotes.
37457      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
37458      ;;
37459    esac |
37460    sort
37461) |
37462  sed '
37463     /^ac_cv_env_/b end
37464     t clear
37465     :clear
37466     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37467     t end
37468     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37469     :end' >>confcache
37470if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
37471  if test -w "$cache_file"; then
37472    if test "x$cache_file" != "x/dev/null"; then
37473      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
37474$as_echo "$as_me: updating cache $cache_file" >&6;}
37475      if test ! -f "$cache_file" || test -h "$cache_file"; then
37476	cat confcache >"$cache_file"
37477      else
37478        case $cache_file in #(
37479        */* | ?:*)
37480	  mv -f confcache "$cache_file"$$ &&
37481	  mv -f "$cache_file"$$ "$cache_file" ;; #(
37482        *)
37483	  mv -f confcache "$cache_file" ;;
37484	esac
37485      fi
37486    fi
37487  else
37488    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
37489$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
37490  fi
37491fi
37492rm -f confcache
37493
37494test "x$prefix" = xNONE && prefix=$ac_default_prefix
37495# Let make expand exec_prefix.
37496test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37497
37498DEFS=-DHAVE_CONFIG_H
37499
37500ac_libobjs=
37501ac_ltlibobjs=
37502U=
37503for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37504  # 1. Remove the extension, and $U if already installed.
37505  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
37506  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
37507  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
37508  #    will be set to the directory where LIBOBJS objects are built.
37509  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
37510  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
37511done
37512LIBOBJS=$ac_libobjs
37513
37514LTLIBOBJS=$ac_ltlibobjs
37515
37516
37517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37518$as_echo_n "checking that generated files are newer than configure... " >&6; }
37519   if test -n "$am_sleep_pid"; then
37520     # Hide warnings about reused PIDs.
37521     wait $am_sleep_pid 2>/dev/null
37522   fi
37523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37524$as_echo "done" >&6; }
37525 if test -n "$EXEEXT"; then
37526  am__EXEEXT_TRUE=
37527  am__EXEEXT_FALSE='#'
37528else
37529  am__EXEEXT_TRUE='#'
37530  am__EXEEXT_FALSE=
37531fi
37532
37533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
37534$as_echo_n "checking that generated files are newer than configure... " >&6; }
37535   if test -n "$am_sleep_pid"; then
37536     # Hide warnings about reused PIDs.
37537     wait $am_sleep_pid 2>/dev/null
37538   fi
37539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
37540$as_echo "done" >&6; }
37541if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
37542  as_fn_error $? "conditional \"AMDEP\" was never defined.
37543Usually this means the macro was only invoked conditionally." "$LINENO" 5
37544fi
37545if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37546  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37547Usually this means the macro was only invoked conditionally." "$LINENO" 5
37548fi
37549if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
37550  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
37551Usually this means the macro was only invoked conditionally." "$LINENO" 5
37552fi
37553if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37554  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37555Usually this means the macro was only invoked conditionally." "$LINENO" 5
37556fi
37557if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
37558  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
37559Usually this means the macro was only invoked conditionally." "$LINENO" 5
37560fi
37561if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
37562  as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
37563Usually this means the macro was only invoked conditionally." "$LINENO" 5
37564fi
37565if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
37566  as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
37567Usually this means the macro was only invoked conditionally." "$LINENO" 5
37568fi
37569if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
37570  as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
37571Usually this means the macro was only invoked conditionally." "$LINENO" 5
37572fi
37573if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
37574  as_fn_error $? "conditional \"USING_CL\" was never defined.
37575Usually this means the macro was only invoked conditionally." "$LINENO" 5
37576fi
37577if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
37578  as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
37579Usually this means the macro was only invoked conditionally." "$LINENO" 5
37580fi
37581if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
37582  as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
37583Usually this means the macro was only invoked conditionally." "$LINENO" 5
37584fi
37585if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
37586  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
37587Usually this means the macro was only invoked conditionally." "$LINENO" 5
37588fi
37589if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
37590  as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
37591Usually this means the macro was only invoked conditionally." "$LINENO" 5
37592fi
37593
37594if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
37595  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
37596Usually this means the macro was only invoked conditionally." "$LINENO" 5
37597fi
37598if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
37599  as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
37600Usually this means the macro was only invoked conditionally." "$LINENO" 5
37601fi
37602if test -z "${HasJEMALLOC_TRUE}" && test -z "${HasJEMALLOC_FALSE}"; then
37603  as_fn_error $? "conditional \"HasJEMALLOC\" was never defined.
37604Usually this means the macro was only invoked conditionally." "$LINENO" 5
37605fi
37606if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
37607  as_fn_error $? "conditional \"HasUMEM\" was never defined.
37608Usually this means the macro was only invoked conditionally." "$LINENO" 5
37609fi
37610if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
37611  as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
37612Usually this means the macro was only invoked conditionally." "$LINENO" 5
37613fi
37614if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
37615  as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
37616Usually this means the macro was only invoked conditionally." "$LINENO" 5
37617fi
37618if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
37619  as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
37620Usually this means the macro was only invoked conditionally." "$LINENO" 5
37621fi
37622if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
37623  as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
37624Usually this means the macro was only invoked conditionally." "$LINENO" 5
37625fi
37626if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
37627  as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
37628Usually this means the macro was only invoked conditionally." "$LINENO" 5
37629fi
37630if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
37631  as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
37632Usually this means the macro was only invoked conditionally." "$LINENO" 5
37633fi
37634if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
37635  as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
37636Usually this means the macro was only invoked conditionally." "$LINENO" 5
37637fi
37638if test -z "${FLIF_DELEGATE_TRUE}" && test -z "${FLIF_DELEGATE_FALSE}"; then
37639  as_fn_error $? "conditional \"FLIF_DELEGATE\" was never defined.
37640Usually this means the macro was only invoked conditionally." "$LINENO" 5
37641fi
37642if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
37643  as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
37644Usually this means the macro was only invoked conditionally." "$LINENO" 5
37645fi
37646if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
37647  as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
37648Usually this means the macro was only invoked conditionally." "$LINENO" 5
37649fi
37650if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
37651  as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
37652Usually this means the macro was only invoked conditionally." "$LINENO" 5
37653fi
37654if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
37655  as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
37656Usually this means the macro was only invoked conditionally." "$LINENO" 5
37657fi
37658if test -z "${RAQM_DELEGATE_TRUE}" && test -z "${RAQM_DELEGATE_FALSE}"; then
37659  as_fn_error $? "conditional \"RAQM_DELEGATE\" was never defined.
37660Usually this means the macro was only invoked conditionally." "$LINENO" 5
37661fi
37662if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
37663  as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
37664Usually this means the macro was only invoked conditionally." "$LINENO" 5
37665fi
37666if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
37667  as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
37668Usually this means the macro was only invoked conditionally." "$LINENO" 5
37669fi
37670if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
37671  as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
37672Usually this means the macro was only invoked conditionally." "$LINENO" 5
37673fi
37674if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
37675  as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
37676Usually this means the macro was only invoked conditionally." "$LINENO" 5
37677fi
37678if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
37679  as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
37680Usually this means the macro was only invoked conditionally." "$LINENO" 5
37681fi
37682if test -z "${LIBOPENJP2_DELEGATE_TRUE}" && test -z "${LIBOPENJP2_DELEGATE_FALSE}"; then
37683  as_fn_error $? "conditional \"LIBOPENJP2_DELEGATE\" was never defined.
37684Usually this means the macro was only invoked conditionally." "$LINENO" 5
37685fi
37686if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
37687  as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
37688Usually this means the macro was only invoked conditionally." "$LINENO" 5
37689fi
37690if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
37691  as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
37692Usually this means the macro was only invoked conditionally." "$LINENO" 5
37693fi
37694if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
37695  as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
37696Usually this means the macro was only invoked conditionally." "$LINENO" 5
37697fi
37698if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
37699  as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
37700Usually this means the macro was only invoked conditionally." "$LINENO" 5
37701fi
37702if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
37703  as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
37704Usually this means the macro was only invoked conditionally." "$LINENO" 5
37705fi
37706if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
37707  as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
37708Usually this means the macro was only invoked conditionally." "$LINENO" 5
37709fi
37710if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
37711  as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
37712Usually this means the macro was only invoked conditionally." "$LINENO" 5
37713fi
37714if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
37715  as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
37716Usually this means the macro was only invoked conditionally." "$LINENO" 5
37717fi
37718if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
37719  as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
37720Usually this means the macro was only invoked conditionally." "$LINENO" 5
37721fi
37722if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
37723  as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
37724Usually this means the macro was only invoked conditionally." "$LINENO" 5
37725fi
37726if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
37727  as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
37728Usually this means the macro was only invoked conditionally." "$LINENO" 5
37729fi
37730if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
37731  as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
37732Usually this means the macro was only invoked conditionally." "$LINENO" 5
37733fi
37734if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
37735  as_fn_error $? "conditional \"INSTALL_DOC\" was never defined.
37736Usually this means the macro was only invoked conditionally." "$LINENO" 5
37737fi
37738if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
37739  as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
37740Usually this means the macro was only invoked conditionally." "$LINENO" 5
37741fi
37742if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
37743  as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
37744Usually this means the macro was only invoked conditionally." "$LINENO" 5
37745fi
37746if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
37747  as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
37748Usually this means the macro was only invoked conditionally." "$LINENO" 5
37749fi
37750if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
37751  as_fn_error $? "conditional \"WITH_PERL\" was never defined.
37752Usually this means the macro was only invoked conditionally." "$LINENO" 5
37753fi
37754if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
37755  as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
37756Usually this means the macro was only invoked conditionally." "$LINENO" 5
37757fi
37758if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
37759  as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
37760Usually this means the macro was only invoked conditionally." "$LINENO" 5
37761fi
37762
37763: "${CONFIG_STATUS=./config.status}"
37764ac_write_fail=0
37765ac_clean_files_save=$ac_clean_files
37766ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37767{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37768$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37769as_write_fail=0
37770cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37771#! $SHELL
37772# Generated by $as_me.
37773# Run this file to recreate the current configuration.
37774# Compiler output produced by configure, useful for debugging
37775# configure, is in config.log if it exists.
37776
37777debug=false
37778ac_cs_recheck=false
37779ac_cs_silent=false
37780
37781SHELL=\${CONFIG_SHELL-$SHELL}
37782export SHELL
37783_ASEOF
37784cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37785## -------------------- ##
37786## M4sh Initialization. ##
37787## -------------------- ##
37788
37789# Be more Bourne compatible
37790DUALCASE=1; export DUALCASE # for MKS sh
37791if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37792  emulate sh
37793  NULLCMD=:
37794  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37795  # is contrary to our usage.  Disable this feature.
37796  alias -g '${1+"$@"}'='"$@"'
37797  setopt NO_GLOB_SUBST
37798else
37799  case `(set -o) 2>/dev/null` in #(
37800  *posix*) :
37801    set -o posix ;; #(
37802  *) :
37803     ;;
37804esac
37805fi
37806
37807
37808as_nl='
37809'
37810export as_nl
37811# Printing a long string crashes Solaris 7 /usr/bin/printf.
37812as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37813as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37814as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37815# Prefer a ksh shell builtin over an external printf program on Solaris,
37816# but without wasting forks for bash or zsh.
37817if test -z "$BASH_VERSION$ZSH_VERSION" \
37818    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37819  as_echo='print -r --'
37820  as_echo_n='print -rn --'
37821elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37822  as_echo='printf %s\n'
37823  as_echo_n='printf %s'
37824else
37825  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37826    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37827    as_echo_n='/usr/ucb/echo -n'
37828  else
37829    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37830    as_echo_n_body='eval
37831      arg=$1;
37832      case $arg in #(
37833      *"$as_nl"*)
37834	expr "X$arg" : "X\\(.*\\)$as_nl";
37835	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37836      esac;
37837      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37838    '
37839    export as_echo_n_body
37840    as_echo_n='sh -c $as_echo_n_body as_echo'
37841  fi
37842  export as_echo_body
37843  as_echo='sh -c $as_echo_body as_echo'
37844fi
37845
37846# The user is always right.
37847if test "${PATH_SEPARATOR+set}" != set; then
37848  PATH_SEPARATOR=:
37849  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37850    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37851      PATH_SEPARATOR=';'
37852  }
37853fi
37854
37855
37856# IFS
37857# We need space, tab and new line, in precisely that order.  Quoting is
37858# there to prevent editors from complaining about space-tab.
37859# (If _AS_PATH_WALK were called with IFS unset, it would disable word
37860# splitting by setting IFS to empty value.)
37861IFS=" ""	$as_nl"
37862
37863# Find who we are.  Look in the path if we contain no directory separator.
37864as_myself=
37865case $0 in #((
37866  *[\\/]* ) as_myself=$0 ;;
37867  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37868for as_dir in $PATH
37869do
37870  IFS=$as_save_IFS
37871  test -z "$as_dir" && as_dir=.
37872    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37873  done
37874IFS=$as_save_IFS
37875
37876     ;;
37877esac
37878# We did not find ourselves, most probably we were run as `sh COMMAND'
37879# in which case we are not to be found in the path.
37880if test "x$as_myself" = x; then
37881  as_myself=$0
37882fi
37883if test ! -f "$as_myself"; then
37884  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37885  exit 1
37886fi
37887
37888# Unset variables that we do not need and which cause bugs (e.g. in
37889# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
37890# suppresses any "Segmentation fault" message there.  '((' could
37891# trigger a bug in pdksh 5.2.14.
37892for as_var in BASH_ENV ENV MAIL MAILPATH
37893do eval test x\${$as_var+set} = xset \
37894  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37895done
37896PS1='$ '
37897PS2='> '
37898PS4='+ '
37899
37900# NLS nuisances.
37901LC_ALL=C
37902export LC_ALL
37903LANGUAGE=C
37904export LANGUAGE
37905
37906# CDPATH.
37907(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37908
37909
37910# as_fn_error STATUS ERROR [LINENO LOG_FD]
37911# ----------------------------------------
37912# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37913# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37914# script with STATUS, using 1 if that was 0.
37915as_fn_error ()
37916{
37917  as_status=$1; test $as_status -eq 0 && as_status=1
37918  if test "$4"; then
37919    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37920    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37921  fi
37922  $as_echo "$as_me: error: $2" >&2
37923  as_fn_exit $as_status
37924} # as_fn_error
37925
37926
37927# as_fn_set_status STATUS
37928# -----------------------
37929# Set $? to STATUS, without forking.
37930as_fn_set_status ()
37931{
37932  return $1
37933} # as_fn_set_status
37934
37935# as_fn_exit STATUS
37936# -----------------
37937# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37938as_fn_exit ()
37939{
37940  set +e
37941  as_fn_set_status $1
37942  exit $1
37943} # as_fn_exit
37944
37945# as_fn_unset VAR
37946# ---------------
37947# Portably unset VAR.
37948as_fn_unset ()
37949{
37950  { eval $1=; unset $1;}
37951}
37952as_unset=as_fn_unset
37953# as_fn_append VAR VALUE
37954# ----------------------
37955# Append the text in VALUE to the end of the definition contained in VAR. Take
37956# advantage of any shell optimizations that allow amortized linear growth over
37957# repeated appends, instead of the typical quadratic growth present in naive
37958# implementations.
37959if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37960  eval 'as_fn_append ()
37961  {
37962    eval $1+=\$2
37963  }'
37964else
37965  as_fn_append ()
37966  {
37967    eval $1=\$$1\$2
37968  }
37969fi # as_fn_append
37970
37971# as_fn_arith ARG...
37972# ------------------
37973# Perform arithmetic evaluation on the ARGs, and store the result in the
37974# global $as_val. Take advantage of shells that can avoid forks. The arguments
37975# must be portable across $(()) and expr.
37976if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37977  eval 'as_fn_arith ()
37978  {
37979    as_val=$(( $* ))
37980  }'
37981else
37982  as_fn_arith ()
37983  {
37984    as_val=`expr "$@" || test $? -eq 1`
37985  }
37986fi # as_fn_arith
37987
37988
37989if expr a : '\(a\)' >/dev/null 2>&1 &&
37990   test "X`expr 00001 : '.*\(...\)'`" = X001; then
37991  as_expr=expr
37992else
37993  as_expr=false
37994fi
37995
37996if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37997  as_basename=basename
37998else
37999  as_basename=false
38000fi
38001
38002if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38003  as_dirname=dirname
38004else
38005  as_dirname=false
38006fi
38007
38008as_me=`$as_basename -- "$0" ||
38009$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38010	 X"$0" : 'X\(//\)$' \| \
38011	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38012$as_echo X/"$0" |
38013    sed '/^.*\/\([^/][^/]*\)\/*$/{
38014	    s//\1/
38015	    q
38016	  }
38017	  /^X\/\(\/\/\)$/{
38018	    s//\1/
38019	    q
38020	  }
38021	  /^X\/\(\/\).*/{
38022	    s//\1/
38023	    q
38024	  }
38025	  s/.*/./; q'`
38026
38027# Avoid depending upon Character Ranges.
38028as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38029as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38030as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38031as_cr_digits='0123456789'
38032as_cr_alnum=$as_cr_Letters$as_cr_digits
38033
38034ECHO_C= ECHO_N= ECHO_T=
38035case `echo -n x` in #(((((
38036-n*)
38037  case `echo 'xy\c'` in
38038  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
38039  xy)  ECHO_C='\c';;
38040  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
38041       ECHO_T='	';;
38042  esac;;
38043*)
38044  ECHO_N='-n';;
38045esac
38046
38047rm -f conf$$ conf$$.exe conf$$.file
38048if test -d conf$$.dir; then
38049  rm -f conf$$.dir/conf$$.file
38050else
38051  rm -f conf$$.dir
38052  mkdir conf$$.dir 2>/dev/null
38053fi
38054if (echo >conf$$.file) 2>/dev/null; then
38055  if ln -s conf$$.file conf$$ 2>/dev/null; then
38056    as_ln_s='ln -s'
38057    # ... but there are two gotchas:
38058    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38059    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38060    # In both cases, we have to default to `cp -pR'.
38061    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38062      as_ln_s='cp -pR'
38063  elif ln conf$$.file conf$$ 2>/dev/null; then
38064    as_ln_s=ln
38065  else
38066    as_ln_s='cp -pR'
38067  fi
38068else
38069  as_ln_s='cp -pR'
38070fi
38071rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
38072rmdir conf$$.dir 2>/dev/null
38073
38074
38075# as_fn_mkdir_p
38076# -------------
38077# Create "$as_dir" as a directory, including parents if necessary.
38078as_fn_mkdir_p ()
38079{
38080
38081  case $as_dir in #(
38082  -*) as_dir=./$as_dir;;
38083  esac
38084  test -d "$as_dir" || eval $as_mkdir_p || {
38085    as_dirs=
38086    while :; do
38087      case $as_dir in #(
38088      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
38089      *) as_qdir=$as_dir;;
38090      esac
38091      as_dirs="'$as_qdir' $as_dirs"
38092      as_dir=`$as_dirname -- "$as_dir" ||
38093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38094	 X"$as_dir" : 'X\(//\)[^/]' \| \
38095	 X"$as_dir" : 'X\(//\)$' \| \
38096	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
38097$as_echo X"$as_dir" |
38098    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38099	    s//\1/
38100	    q
38101	  }
38102	  /^X\(\/\/\)[^/].*/{
38103	    s//\1/
38104	    q
38105	  }
38106	  /^X\(\/\/\)$/{
38107	    s//\1/
38108	    q
38109	  }
38110	  /^X\(\/\).*/{
38111	    s//\1/
38112	    q
38113	  }
38114	  s/.*/./; q'`
38115      test -d "$as_dir" && break
38116    done
38117    test -z "$as_dirs" || eval "mkdir $as_dirs"
38118  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
38119
38120
38121} # as_fn_mkdir_p
38122if mkdir -p . 2>/dev/null; then
38123  as_mkdir_p='mkdir -p "$as_dir"'
38124else
38125  test -d ./-p && rmdir ./-p
38126  as_mkdir_p=false
38127fi
38128
38129
38130# as_fn_executable_p FILE
38131# -----------------------
38132# Test if FILE is an executable regular file.
38133as_fn_executable_p ()
38134{
38135  test -f "$1" && test -x "$1"
38136} # as_fn_executable_p
38137as_test_x='test -x'
38138as_executable_p=as_fn_executable_p
38139
38140# Sed expression to map a string onto a valid CPP name.
38141as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
38142
38143# Sed expression to map a string onto a valid variable name.
38144as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
38145
38146
38147exec 6>&1
38148## ----------------------------------- ##
38149## Main body of $CONFIG_STATUS script. ##
38150## ----------------------------------- ##
38151_ASEOF
38152test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
38153
38154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38155# Save the log message, to keep $0 and so on meaningful, and to
38156# report actual input values of CONFIG_FILES etc. instead of their
38157# values after options handling.
38158ac_log="
38159This file was extended by ImageMagick $as_me 7.0.2-5, which was
38160generated by GNU Autoconf 2.69.  Invocation command line was
38161
38162  CONFIG_FILES    = $CONFIG_FILES
38163  CONFIG_HEADERS  = $CONFIG_HEADERS
38164  CONFIG_LINKS    = $CONFIG_LINKS
38165  CONFIG_COMMANDS = $CONFIG_COMMANDS
38166  $ $0 $@
38167
38168on `(hostname || uname -n) 2>/dev/null | sed 1q`
38169"
38170
38171_ACEOF
38172
38173case $ac_config_files in *"
38174"*) set x $ac_config_files; shift; ac_config_files=$*;;
38175esac
38176
38177case $ac_config_headers in *"
38178"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
38179esac
38180
38181
38182cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38183# Files that config.status was made for.
38184config_files="$ac_config_files"
38185config_headers="$ac_config_headers"
38186config_commands="$ac_config_commands"
38187
38188_ACEOF
38189
38190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38191ac_cs_usage="\
38192\`$as_me' instantiates files and other configuration actions
38193from templates according to the current configuration.  Unless the files
38194and actions are specified as TAGs, all are instantiated by default.
38195
38196Usage: $0 [OPTION]... [TAG]...
38197
38198  -h, --help       print this help, then exit
38199  -V, --version    print version number and configuration settings, then exit
38200      --config     print configuration, then exit
38201  -q, --quiet, --silent
38202                   do not print progress messages
38203  -d, --debug      don't remove temporary files
38204      --recheck    update $as_me by reconfiguring in the same conditions
38205      --file=FILE[:TEMPLATE]
38206                   instantiate the configuration file FILE
38207      --header=FILE[:TEMPLATE]
38208                   instantiate the configuration header FILE
38209
38210Configuration files:
38211$config_files
38212
38213Configuration headers:
38214$config_headers
38215
38216Configuration commands:
38217$config_commands
38218
38219Report bugs to <https://github.com/ImageMagick/ImageMagick/issues>.
38220ImageMagick home page: <http://www.imagemagick.org>."
38221
38222_ACEOF
38223cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38224ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
38225ac_cs_version="\\
38226ImageMagick config.status 7.0.2-5
38227configured by $0, generated by GNU Autoconf 2.69,
38228  with options \\"\$ac_cs_config\\"
38229
38230Copyright (C) 2012 Free Software Foundation, Inc.
38231This config.status script is free software; the Free Software Foundation
38232gives unlimited permission to copy, distribute and modify it."
38233
38234ac_pwd='$ac_pwd'
38235srcdir='$srcdir'
38236INSTALL='$INSTALL'
38237MKDIR_P='$MKDIR_P'
38238AWK='$AWK'
38239test -n "\$AWK" || AWK=awk
38240_ACEOF
38241
38242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38243# The default lists apply if the user does not specify any file.
38244ac_need_defaults=:
38245while test $# != 0
38246do
38247  case $1 in
38248  --*=?*)
38249    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38250    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
38251    ac_shift=:
38252    ;;
38253  --*=)
38254    ac_option=`expr "X$1" : 'X\([^=]*\)='`
38255    ac_optarg=
38256    ac_shift=:
38257    ;;
38258  *)
38259    ac_option=$1
38260    ac_optarg=$2
38261    ac_shift=shift
38262    ;;
38263  esac
38264
38265  case $ac_option in
38266  # Handling of the options.
38267  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
38268    ac_cs_recheck=: ;;
38269  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
38270    $as_echo "$ac_cs_version"; exit ;;
38271  --config | --confi | --conf | --con | --co | --c )
38272    $as_echo "$ac_cs_config"; exit ;;
38273  --debug | --debu | --deb | --de | --d | -d )
38274    debug=: ;;
38275  --file | --fil | --fi | --f )
38276    $ac_shift
38277    case $ac_optarg in
38278    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38279    '') as_fn_error $? "missing file argument" ;;
38280    esac
38281    as_fn_append CONFIG_FILES " '$ac_optarg'"
38282    ac_need_defaults=false;;
38283  --header | --heade | --head | --hea )
38284    $ac_shift
38285    case $ac_optarg in
38286    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
38287    esac
38288    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
38289    ac_need_defaults=false;;
38290  --he | --h)
38291    # Conflict between --help and --header
38292    as_fn_error $? "ambiguous option: \`$1'
38293Try \`$0 --help' for more information.";;
38294  --help | --hel | -h )
38295    $as_echo "$ac_cs_usage"; exit ;;
38296  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
38297  | -silent | --silent | --silen | --sile | --sil | --si | --s)
38298    ac_cs_silent=: ;;
38299
38300  # This is an error.
38301  -*) as_fn_error $? "unrecognized option: \`$1'
38302Try \`$0 --help' for more information." ;;
38303
38304  *) as_fn_append ac_config_targets " $1"
38305     ac_need_defaults=false ;;
38306
38307  esac
38308  shift
38309done
38310
38311ac_configure_extra_args=
38312
38313if $ac_cs_silent; then
38314  exec 6>/dev/null
38315  ac_configure_extra_args="$ac_configure_extra_args --silent"
38316fi
38317
38318_ACEOF
38319cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38320if \$ac_cs_recheck; then
38321  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
38322  shift
38323  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
38324  CONFIG_SHELL='$SHELL'
38325  export CONFIG_SHELL
38326  exec "\$@"
38327fi
38328
38329_ACEOF
38330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38331exec 5>>config.log
38332{
38333  echo
38334  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
38335## Running $as_me. ##
38336_ASBOX
38337  $as_echo "$ac_log"
38338} >&5
38339
38340_ACEOF
38341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38342#
38343# INIT-COMMANDS
38344#
38345PACKAGE="$PACKAGE"
38346AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
38347
38348
38349# The HP-UX ksh and POSIX shell print the target directory to stdout
38350# if CDPATH is set.
38351(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
38352
38353sed_quote_subst='$sed_quote_subst'
38354double_quote_subst='$double_quote_subst'
38355delay_variable_subst='$delay_variable_subst'
38356SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
38357Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
38358GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
38359EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
38360FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
38361SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
38362ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
38363LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
38364macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
38365macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
38366AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
38367DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
38368OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
38369enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
38370enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
38371pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
38372enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
38373shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
38374PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
38375host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
38376host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
38377host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
38378build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
38379build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
38380build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
38381NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
38382LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
38383max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
38384ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
38385exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
38386lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
38387lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
38388lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
38389lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
38390lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
38391reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
38392reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
38393deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
38394file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
38395file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
38396want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
38397sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
38398AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
38399AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
38400archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
38401STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
38402RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
38403old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38404old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38405old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
38406lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
38407CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
38408CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
38409compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
38410GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
38411lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
38412lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
38413lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
38414lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
38415lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
38416lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
38417nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
38418lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
38419lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
38420objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
38421MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
38422lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
38423lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
38424lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
38425lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
38426lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
38427need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
38428MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
38429DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
38430NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
38431LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
38432OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
38433OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
38434libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
38435shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
38436extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38437archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
38438enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
38439export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
38440whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
38441compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
38442old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
38443old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
38444archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
38445archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38446module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
38447module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
38448with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
38449allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
38450no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
38451hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
38452hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
38453hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
38454hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
38455hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
38456hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
38457hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
38458inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
38459link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
38460always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
38461export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
38462exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
38463include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
38464prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
38465postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
38466file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
38467variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
38468need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
38469need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
38470version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
38471runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
38472shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
38473shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
38474libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
38475library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
38476soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
38477install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
38478postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
38479postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
38480finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
38481finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
38482hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
38483sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
38484configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
38485configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
38486hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
38487enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
38488enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
38489enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
38490old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
38491striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
38492compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
38493predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
38494postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
38495predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
38496postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
38497compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
38498LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
38499reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
38500reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38501old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38502compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
38503GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
38504lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
38505lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
38506lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
38507lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
38508lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
38509archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
38510enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
38511export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38512whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38513compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
38514old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38515old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38516archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38517archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38518module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38519module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38520with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
38521allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38522no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
38523hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
38524hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
38525hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
38526hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
38527hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
38528hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
38529hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
38530inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
38531link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
38532always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
38533export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38534exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38535include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
38536prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38537postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
38538file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
38539hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
38540compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
38541predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38542postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
38543predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
38544postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
38545compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
38546
38547LTCC='$LTCC'
38548LTCFLAGS='$LTCFLAGS'
38549compiler='$compiler_DEFAULT'
38550
38551# A function that is used when there is no print builtin or printf.
38552func_fallback_echo ()
38553{
38554  eval 'cat <<_LTECHO_EOF
38555\$1
38556_LTECHO_EOF'
38557}
38558
38559# Quote evaled strings.
38560for var in SED \
38561GREP \
38562EGREP \
38563FGREP \
38564SHELL \
38565ECHO \
38566LD \
38567AS \
38568DLLTOOL \
38569OBJDUMP \
38570PATH_SEPARATOR \
38571NM \
38572LN_S \
38573lt_SP2NL \
38574lt_NL2SP \
38575reload_flag \
38576deplibs_check_method \
38577file_magic_cmd \
38578file_magic_glob \
38579want_nocaseglob \
38580sharedlib_from_linklib_cmd \
38581AR \
38582AR_FLAGS \
38583archiver_list_spec \
38584STRIP \
38585RANLIB \
38586CC \
38587CFLAGS \
38588compiler \
38589lt_cv_sys_global_symbol_pipe \
38590lt_cv_sys_global_symbol_to_cdecl \
38591lt_cv_sys_global_symbol_to_import \
38592lt_cv_sys_global_symbol_to_c_name_address \
38593lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
38594lt_cv_nm_interface \
38595nm_file_list_spec \
38596lt_cv_truncate_bin \
38597lt_prog_compiler_no_builtin_flag \
38598lt_prog_compiler_pic \
38599lt_prog_compiler_wl \
38600lt_prog_compiler_static \
38601lt_cv_prog_compiler_c_o \
38602need_locks \
38603MANIFEST_TOOL \
38604DSYMUTIL \
38605NMEDIT \
38606LIPO \
38607OTOOL \
38608OTOOL64 \
38609shrext_cmds \
38610export_dynamic_flag_spec \
38611whole_archive_flag_spec \
38612compiler_needs_object \
38613with_gnu_ld \
38614allow_undefined_flag \
38615no_undefined_flag \
38616hardcode_libdir_flag_spec \
38617hardcode_libdir_separator \
38618exclude_expsyms \
38619include_expsyms \
38620file_list_spec \
38621variables_saved_for_relink \
38622libname_spec \
38623library_names_spec \
38624soname_spec \
38625install_override_mode \
38626finish_eval \
38627old_striplib \
38628striplib \
38629compiler_lib_search_dirs \
38630predep_objects \
38631postdep_objects \
38632predeps \
38633postdeps \
38634compiler_lib_search_path \
38635LD_CXX \
38636reload_flag_CXX \
38637compiler_CXX \
38638lt_prog_compiler_no_builtin_flag_CXX \
38639lt_prog_compiler_pic_CXX \
38640lt_prog_compiler_wl_CXX \
38641lt_prog_compiler_static_CXX \
38642lt_cv_prog_compiler_c_o_CXX \
38643export_dynamic_flag_spec_CXX \
38644whole_archive_flag_spec_CXX \
38645compiler_needs_object_CXX \
38646with_gnu_ld_CXX \
38647allow_undefined_flag_CXX \
38648no_undefined_flag_CXX \
38649hardcode_libdir_flag_spec_CXX \
38650hardcode_libdir_separator_CXX \
38651exclude_expsyms_CXX \
38652include_expsyms_CXX \
38653file_list_spec_CXX \
38654compiler_lib_search_dirs_CXX \
38655predep_objects_CXX \
38656postdep_objects_CXX \
38657predeps_CXX \
38658postdeps_CXX \
38659compiler_lib_search_path_CXX; do
38660    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38661    *[\\\\\\\`\\"\\\$]*)
38662      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38663      ;;
38664    *)
38665      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38666      ;;
38667    esac
38668done
38669
38670# Double-quote double-evaled strings.
38671for var in reload_cmds \
38672old_postinstall_cmds \
38673old_postuninstall_cmds \
38674old_archive_cmds \
38675extract_expsyms_cmds \
38676old_archive_from_new_cmds \
38677old_archive_from_expsyms_cmds \
38678archive_cmds \
38679archive_expsym_cmds \
38680module_cmds \
38681module_expsym_cmds \
38682export_symbols_cmds \
38683prelink_cmds \
38684postlink_cmds \
38685postinstall_cmds \
38686postuninstall_cmds \
38687finish_cmds \
38688sys_lib_search_path_spec \
38689configure_time_dlsearch_path \
38690configure_time_lt_sys_library_path \
38691reload_cmds_CXX \
38692old_archive_cmds_CXX \
38693old_archive_from_new_cmds_CXX \
38694old_archive_from_expsyms_cmds_CXX \
38695archive_cmds_CXX \
38696archive_expsym_cmds_CXX \
38697module_cmds_CXX \
38698module_expsym_cmds_CXX \
38699export_symbols_cmds_CXX \
38700prelink_cmds_CXX \
38701postlink_cmds_CXX; do
38702    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
38703    *[\\\\\\\`\\"\\\$]*)
38704      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
38705      ;;
38706    *)
38707      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
38708      ;;
38709    esac
38710done
38711
38712ac_aux_dir='$ac_aux_dir'
38713
38714# See if we are running on zsh, and set the options that allow our
38715# commands through without removal of \ escapes INIT.
38716if test -n "\${ZSH_VERSION+set}"; then
38717   setopt NO_GLOB_SUBST
38718fi
38719
38720
38721    PACKAGE='$PACKAGE'
38722    VERSION='$VERSION'
38723    RM='$RM'
38724    ofile='$ofile'
38725
38726
38727
38728
38729
38730
38731_ACEOF
38732
38733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38734
38735# Handling of arguments.
38736for ac_config_target in $ac_config_targets
38737do
38738  case $ac_config_target in
38739    "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
38740    "MagickCore/magick-baseconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-baseconfig.h" ;;
38741    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
38742    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
38743    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
38744    "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
38745    "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
38746    "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
38747    "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
38748    "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
38749    "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
38750    "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
38751    "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
38752    "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
38753    "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
38754    "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
38755    "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
38756    "config/type-apple.xml") CONFIG_FILES="$CONFIG_FILES config/type-apple.xml" ;;
38757    "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
38758    "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
38759    "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
38760    "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
38761    "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
38762    "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
38763    "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
38764    "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
38765    "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
38766    "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
38767    "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
38768    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
38769    "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
38770    "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
38771    "PerlMagick/default/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Magick.pm" ;;
38772    "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
38773    "PerlMagick/default/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/default/Makefile.PL" ;;
38774    "PerlMagick/quantum/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/Makefile.PL" ;;
38775    "PerlMagick/quantum/quantum.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.pm" ;;
38776    "PerlMagick/quantum/quantum.xs") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/quantum.xs" ;;
38777    "PerlMagick/quantum/typemap") CONFIG_FILES="$CONFIG_FILES PerlMagick/quantum/typemap" ;;
38778    "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
38779    "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
38780    "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
38781    "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
38782    "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
38783    "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
38784    "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
38785    "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
38786    "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
38787    "utilities/magick.1") CONFIG_FILES="$CONFIG_FILES utilities/magick.1" ;;
38788    "utilities/magick-script.1") CONFIG_FILES="$CONFIG_FILES utilities/magick-script.1" ;;
38789    "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
38790    "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
38791    "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
38792    "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
38793    "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
38794
38795  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
38796  esac
38797done
38798
38799
38800# If the user did not use the arguments to specify the items to instantiate,
38801# then the envvar interface is used.  Set only those that are not.
38802# We use the long form for the default assignment because of an extremely
38803# bizarre bug on SunOS 4.1.3.
38804if $ac_need_defaults; then
38805  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
38806  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
38807  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
38808fi
38809
38810# Have a temporary directory for convenience.  Make it in the build tree
38811# simply because there is no reason against having it here, and in addition,
38812# creating and moving files from /tmp can sometimes cause problems.
38813# Hook for its removal unless debugging.
38814# Note that there is a small window in which the directory will not be cleaned:
38815# after its creation but before its name has been assigned to `$tmp'.
38816$debug ||
38817{
38818  tmp= ac_tmp=
38819  trap 'exit_status=$?
38820  : "${ac_tmp:=$tmp}"
38821  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
38822' 0
38823  trap 'as_fn_exit 1' 1 2 13 15
38824}
38825# Create a (secure) tmp directory for tmp files.
38826
38827{
38828  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
38829  test -d "$tmp"
38830}  ||
38831{
38832  tmp=./conf$$-$RANDOM
38833  (umask 077 && mkdir "$tmp")
38834} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
38835ac_tmp=$tmp
38836
38837# Set up the scripts for CONFIG_FILES section.
38838# No need to generate them if there are no CONFIG_FILES.
38839# This happens for instance with `./config.status config.h'.
38840if test -n "$CONFIG_FILES"; then
38841
38842
38843ac_cr=`echo X | tr X '\015'`
38844# On cygwin, bash can eat \r inside `` if the user requested igncr.
38845# But we know of no other shell where ac_cr would be empty at this
38846# point, so we can use a bashism as a fallback.
38847if test "x$ac_cr" = x; then
38848  eval ac_cr=\$\'\\r\'
38849fi
38850ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38851if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38852  ac_cs_awk_cr='\\r'
38853else
38854  ac_cs_awk_cr=$ac_cr
38855fi
38856
38857echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38858_ACEOF
38859
38860
38861{
38862  echo "cat >conf$$subs.awk <<_ACEOF" &&
38863  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38864  echo "_ACEOF"
38865} >conf$$subs.sh ||
38866  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38867ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38868ac_delim='%!_!# '
38869for ac_last_try in false false false false false :; do
38870  . ./conf$$subs.sh ||
38871    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38872
38873  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38874  if test $ac_delim_n = $ac_delim_num; then
38875    break
38876  elif $ac_last_try; then
38877    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38878  else
38879    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38880  fi
38881done
38882rm -f conf$$subs.sh
38883
38884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38885cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38886_ACEOF
38887sed -n '
38888h
38889s/^/S["/; s/!.*/"]=/
38890p
38891g
38892s/^[^!]*!//
38893:repl
38894t repl
38895s/'"$ac_delim"'$//
38896t delim
38897:nl
38898h
38899s/\(.\{148\}\)..*/\1/
38900t more1
38901s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38902p
38903n
38904b repl
38905:more1
38906s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38907p
38908g
38909s/.\{148\}//
38910t nl
38911:delim
38912h
38913s/\(.\{148\}\)..*/\1/
38914t more2
38915s/["\\]/\\&/g; s/^/"/; s/$/"/
38916p
38917b
38918:more2
38919s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38920p
38921g
38922s/.\{148\}//
38923t delim
38924' <conf$$subs.awk | sed '
38925/^[^""]/{
38926  N
38927  s/\n//
38928}
38929' >>$CONFIG_STATUS || ac_write_fail=1
38930rm -f conf$$subs.awk
38931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38932_ACAWK
38933cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38934  for (key in S) S_is_set[key] = 1
38935  FS = ""
38936
38937}
38938{
38939  line = $ 0
38940  nfields = split(line, field, "@")
38941  substed = 0
38942  len = length(field[1])
38943  for (i = 2; i < nfields; i++) {
38944    key = field[i]
38945    keylen = length(key)
38946    if (S_is_set[key]) {
38947      value = S[key]
38948      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38949      len += length(value) + length(field[++i])
38950      substed = 1
38951    } else
38952      len += 1 + keylen
38953  }
38954
38955  print line
38956}
38957
38958_ACAWK
38959_ACEOF
38960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38961if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38962  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38963else
38964  cat
38965fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38966  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38967_ACEOF
38968
38969# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38970# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38971# trailing colons and then remove the whole line if VPATH becomes empty
38972# (actually we leave an empty line to preserve line numbers).
38973if test "x$srcdir" = x.; then
38974  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
38975h
38976s///
38977s/^/:/
38978s/[	 ]*$/:/
38979s/:\$(srcdir):/:/g
38980s/:\${srcdir}:/:/g
38981s/:@srcdir@:/:/g
38982s/^:*//
38983s/:*$//
38984x
38985s/\(=[	 ]*\).*/\1/
38986G
38987s/\n//
38988s/^[^=]*=[	 ]*$//
38989}'
38990fi
38991
38992cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38993fi # test -n "$CONFIG_FILES"
38994
38995# Set up the scripts for CONFIG_HEADERS section.
38996# No need to generate them if there are no CONFIG_HEADERS.
38997# This happens for instance with `./config.status Makefile'.
38998if test -n "$CONFIG_HEADERS"; then
38999cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
39000BEGIN {
39001_ACEOF
39002
39003# Transform confdefs.h into an awk script `defines.awk', embedded as
39004# here-document in config.status, that substitutes the proper values into
39005# config.h.in to produce config.h.
39006
39007# Create a delimiter string that does not exist in confdefs.h, to ease
39008# handling of long lines.
39009ac_delim='%!_!# '
39010for ac_last_try in false false :; do
39011  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
39012  if test -z "$ac_tt"; then
39013    break
39014  elif $ac_last_try; then
39015    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
39016  else
39017    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39018  fi
39019done
39020
39021# For the awk script, D is an array of macro values keyed by name,
39022# likewise P contains macro parameters if any.  Preserve backslash
39023# newline sequences.
39024
39025ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39026sed -n '
39027s/.\{148\}/&'"$ac_delim"'/g
39028t rset
39029:rset
39030s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
39031t def
39032d
39033:def
39034s/\\$//
39035t bsnl
39036s/["\\]/\\&/g
39037s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
39038D["\1"]=" \3"/p
39039s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
39040d
39041:bsnl
39042s/["\\]/\\&/g
39043s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
39044D["\1"]=" \3\\\\\\n"\\/p
39045t cont
39046s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
39047t cont
39048d
39049:cont
39050n
39051s/.\{148\}/&'"$ac_delim"'/g
39052t clear
39053:clear
39054s/\\$//
39055t bsnlc
39056s/["\\]/\\&/g; s/^/"/; s/$/"/p
39057d
39058:bsnlc
39059s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
39060b cont
39061' <confdefs.h | sed '
39062s/'"$ac_delim"'/"\\\
39063"/g' >>$CONFIG_STATUS || ac_write_fail=1
39064
39065cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39066  for (key in D) D_is_set[key] = 1
39067  FS = ""
39068}
39069/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
39070  line = \$ 0
39071  split(line, arg, " ")
39072  if (arg[1] == "#") {
39073    defundef = arg[2]
39074    mac1 = arg[3]
39075  } else {
39076    defundef = substr(arg[1], 2)
39077    mac1 = arg[2]
39078  }
39079  split(mac1, mac2, "(") #)
39080  macro = mac2[1]
39081  prefix = substr(line, 1, index(line, defundef) - 1)
39082  if (D_is_set[macro]) {
39083    # Preserve the white space surrounding the "#".
39084    print prefix "define", macro P[macro] D[macro]
39085    next
39086  } else {
39087    # Replace #undef with comments.  This is necessary, for example,
39088    # in the case of _POSIX_SOURCE, which is predefined and required
39089    # on some systems where configure will not decide to define it.
39090    if (defundef == "undef") {
39091      print "/*", prefix defundef, macro, "*/"
39092      next
39093    }
39094  }
39095}
39096{ print }
39097_ACAWK
39098_ACEOF
39099cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39100  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
39101fi # test -n "$CONFIG_HEADERS"
39102
39103
39104eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
39105shift
39106for ac_tag
39107do
39108  case $ac_tag in
39109  :[FHLC]) ac_mode=$ac_tag; continue;;
39110  esac
39111  case $ac_mode$ac_tag in
39112  :[FHL]*:*);;
39113  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
39114  :[FH]-) ac_tag=-:-;;
39115  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39116  esac
39117  ac_save_IFS=$IFS
39118  IFS=:
39119  set x $ac_tag
39120  IFS=$ac_save_IFS
39121  shift
39122  ac_file=$1
39123  shift
39124
39125  case $ac_mode in
39126  :L) ac_source=$1;;
39127  :[FH])
39128    ac_file_inputs=
39129    for ac_f
39130    do
39131      case $ac_f in
39132      -) ac_f="$ac_tmp/stdin";;
39133      *) # Look for the file first in the build tree, then in the source tree
39134	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
39135	 # because $ac_f cannot contain `:'.
39136	 test -f "$ac_f" ||
39137	   case $ac_f in
39138	   [\\/$]*) false;;
39139	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39140	   esac ||
39141	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
39142      esac
39143      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
39144      as_fn_append ac_file_inputs " '$ac_f'"
39145    done
39146
39147    # Let's still pretend it is `configure' which instantiates (i.e., don't
39148    # use $as_me), people would be surprised to read:
39149    #    /* config.h.  Generated by config.status.  */
39150    configure_input='Generated from '`
39151	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39152	`' by configure.'
39153    if test x"$ac_file" != x-; then
39154      configure_input="$ac_file.  $configure_input"
39155      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39156$as_echo "$as_me: creating $ac_file" >&6;}
39157    fi
39158    # Neutralize special characters interpreted by sed in replacement strings.
39159    case $configure_input in #(
39160    *\&* | *\|* | *\\* )
39161       ac_sed_conf_input=`$as_echo "$configure_input" |
39162       sed 's/[\\\\&|]/\\\\&/g'`;; #(
39163    *) ac_sed_conf_input=$configure_input;;
39164    esac
39165
39166    case $ac_tag in
39167    *:-:* | *:-) cat >"$ac_tmp/stdin" \
39168      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
39169    esac
39170    ;;
39171  esac
39172
39173  ac_dir=`$as_dirname -- "$ac_file" ||
39174$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39175	 X"$ac_file" : 'X\(//\)[^/]' \| \
39176	 X"$ac_file" : 'X\(//\)$' \| \
39177	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39178$as_echo X"$ac_file" |
39179    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39180	    s//\1/
39181	    q
39182	  }
39183	  /^X\(\/\/\)[^/].*/{
39184	    s//\1/
39185	    q
39186	  }
39187	  /^X\(\/\/\)$/{
39188	    s//\1/
39189	    q
39190	  }
39191	  /^X\(\/\).*/{
39192	    s//\1/
39193	    q
39194	  }
39195	  s/.*/./; q'`
39196  as_dir="$ac_dir"; as_fn_mkdir_p
39197  ac_builddir=.
39198
39199case "$ac_dir" in
39200.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39201*)
39202  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39203  # A ".." for each directory in $ac_dir_suffix.
39204  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39205  case $ac_top_builddir_sub in
39206  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39207  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39208  esac ;;
39209esac
39210ac_abs_top_builddir=$ac_pwd
39211ac_abs_builddir=$ac_pwd$ac_dir_suffix
39212# for backward compatibility:
39213ac_top_builddir=$ac_top_build_prefix
39214
39215case $srcdir in
39216  .)  # We are building in place.
39217    ac_srcdir=.
39218    ac_top_srcdir=$ac_top_builddir_sub
39219    ac_abs_top_srcdir=$ac_pwd ;;
39220  [\\/]* | ?:[\\/]* )  # Absolute name.
39221    ac_srcdir=$srcdir$ac_dir_suffix;
39222    ac_top_srcdir=$srcdir
39223    ac_abs_top_srcdir=$srcdir ;;
39224  *) # Relative name.
39225    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39226    ac_top_srcdir=$ac_top_build_prefix$srcdir
39227    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39228esac
39229ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39230
39231
39232  case $ac_mode in
39233  :F)
39234  #
39235  # CONFIG_FILE
39236  #
39237
39238  case $INSTALL in
39239  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39240  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39241  esac
39242  ac_MKDIR_P=$MKDIR_P
39243  case $MKDIR_P in
39244  [\\/$]* | ?:[\\/]* ) ;;
39245  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
39246  esac
39247_ACEOF
39248
39249cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39250# If the template does not know about datarootdir, expand it.
39251# FIXME: This hack should be removed a few years after 2.60.
39252ac_datarootdir_hack=; ac_datarootdir_seen=
39253ac_sed_dataroot='
39254/datarootdir/ {
39255  p
39256  q
39257}
39258/@datadir@/p
39259/@docdir@/p
39260/@infodir@/p
39261/@localedir@/p
39262/@mandir@/p'
39263case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
39264*datarootdir*) ac_datarootdir_seen=yes;;
39265*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39266  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39267$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39268_ACEOF
39269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39270  ac_datarootdir_hack='
39271  s&@datadir@&$datadir&g
39272  s&@docdir@&$docdir&g
39273  s&@infodir@&$infodir&g
39274  s&@localedir@&$localedir&g
39275  s&@mandir@&$mandir&g
39276  s&\\\${datarootdir}&$datarootdir&g' ;;
39277esac
39278_ACEOF
39279
39280# Neutralize VPATH when `$srcdir' = `.'.
39281# Shell code in configure.ac might set extrasub.
39282# FIXME: do we really want to maintain this feature?
39283cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
39284ac_sed_extra="$ac_vpsub
39285$extrasub
39286_ACEOF
39287cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
39288:t
39289/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39290s|@configure_input@|$ac_sed_conf_input|;t t
39291s&@top_builddir@&$ac_top_builddir_sub&;t t
39292s&@top_build_prefix@&$ac_top_build_prefix&;t t
39293s&@srcdir@&$ac_srcdir&;t t
39294s&@abs_srcdir@&$ac_abs_srcdir&;t t
39295s&@top_srcdir@&$ac_top_srcdir&;t t
39296s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39297s&@builddir@&$ac_builddir&;t t
39298s&@abs_builddir@&$ac_abs_builddir&;t t
39299s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39300s&@INSTALL@&$ac_INSTALL&;t t
39301s&@MKDIR_P@&$ac_MKDIR_P&;t t
39302$ac_datarootdir_hack
39303"
39304eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
39305  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39306
39307test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39308  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
39309  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
39310      "$ac_tmp/out"`; test -z "$ac_out"; } &&
39311  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39312which seems to be undefined.  Please make sure it is defined" >&5
39313$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39314which seems to be undefined.  Please make sure it is defined" >&2;}
39315
39316  rm -f "$ac_tmp/stdin"
39317  case $ac_file in
39318  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
39319  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39320  esac \
39321  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39322 ;;
39323  :H)
39324  #
39325  # CONFIG_HEADER
39326  #
39327  if test x"$ac_file" != x-; then
39328    {
39329      $as_echo "/* $configure_input  */" \
39330      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
39331    } >"$ac_tmp/config.h" \
39332      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
39333    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
39334      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
39335$as_echo "$as_me: $ac_file is unchanged" >&6;}
39336    else
39337      rm -f "$ac_file"
39338      mv "$ac_tmp/config.h" "$ac_file" \
39339	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
39340    fi
39341  else
39342    $as_echo "/* $configure_input  */" \
39343      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
39344      || as_fn_error $? "could not create -" "$LINENO" 5
39345  fi
39346# Compute "$ac_file"'s index in $config_headers.
39347_am_arg="$ac_file"
39348_am_stamp_count=1
39349for _am_header in $config_headers :; do
39350  case $_am_header in
39351    $_am_arg | $_am_arg:* )
39352      break ;;
39353    * )
39354      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39355  esac
39356done
39357echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
39358$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39359	 X"$_am_arg" : 'X\(//\)[^/]' \| \
39360	 X"$_am_arg" : 'X\(//\)$' \| \
39361	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
39362$as_echo X"$_am_arg" |
39363    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39364	    s//\1/
39365	    q
39366	  }
39367	  /^X\(\/\/\)[^/].*/{
39368	    s//\1/
39369	    q
39370	  }
39371	  /^X\(\/\/\)$/{
39372	    s//\1/
39373	    q
39374	  }
39375	  /^X\(\/\).*/{
39376	    s//\1/
39377	    q
39378	  }
39379	  s/.*/./; q'`/stamp-h$_am_stamp_count
39380 ;;
39381
39382  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39383$as_echo "$as_me: executing $ac_file commands" >&6;}
39384 ;;
39385  esac
39386
39387
39388  case $ac_file$ac_mode in
39389    "MagickCore/magick-baseconfig.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-baseconfig.h`
39390ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
39391ac_prefix_conf_PKG=`echo MagickCore`
39392ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
39393ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
39394ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
39395if test ".$ac_prefix_conf_INP" = "."; then
39396   for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
39397     case "$ac_file" in
39398        *.h) ac_prefix_conf_INP=$ac_file ;;
39399        *)
39400     esac
39401     test ".$ac_prefix_conf_INP" != "." && break
39402   done
39403fi
39404if test ".$ac_prefix_conf_INP" = "."; then
39405   case "$ac_prefix_conf_OUT" in
39406      */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
39407      ;;
39408      *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
39409      ;;
39410      *) ac_prefix_conf_INP=config.h
39411      ;;
39412   esac
39413fi
39414if test -z "$ac_prefix_conf_PKG" ; then
39415   as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
39416else
39417  if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
39418     ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
39419  fi fi
39420  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
39421$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
39422  if test -f $ac_prefix_conf_INP ; then
39423    $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
39424    $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
39425    $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
39426    $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
39427    $as_echo "#endif/" >> conftest.prefix
39428    $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
39429    $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
39430    $as_echo "#endif/" >> conftest.prefix
39431    # now executing _script on _DEF input to create _OUT output file
39432    echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
39433    echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
39434    echo ' ' >>$tmp/pconfig.h
39435    echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
39436
39437    sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
39438    echo ' ' >>$tmp/pconfig.h
39439    echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
39440    echo "#endif" >>$tmp/pconfig.h
39441    if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
39442      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
39443$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
39444    else
39445      ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
39446$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39447	 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
39448	 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
39449	 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
39450$as_echo X"$ac_prefix_conf_OUT" |
39451    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39452	    s//\1/
39453	    q
39454	  }
39455	  /^X\(\/\/\)[^/].*/{
39456	    s//\1/
39457	    q
39458	  }
39459	  /^X\(\/\/\)$/{
39460	    s//\1/
39461	    q
39462	  }
39463	  /^X\(\/\).*/{
39464	    s//\1/
39465	    q
39466	  }
39467	  s/.*/./; q'`
39468      as_dir="$ac_dir"; as_fn_mkdir_p
39469      rm -f "$ac_prefix_conf_OUT"
39470      mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
39471    fi
39472  else
39473    as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
39474  fi
39475  rm -f conftest.*
39476fi
39477 ;;
39478    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39479  # Older Autoconf quotes --file arguments for eval, but not when files
39480  # are listed without --file.  Let's play safe and only enable the eval
39481  # if we detect the quoting.
39482  case $CONFIG_FILES in
39483  *\'*) eval set x "$CONFIG_FILES" ;;
39484  *)   set x $CONFIG_FILES ;;
39485  esac
39486  shift
39487  for mf
39488  do
39489    # Strip MF so we end up with the name of the file.
39490    mf=`echo "$mf" | sed -e 's/:.*$//'`
39491    # Check whether this is an Automake generated Makefile or not.
39492    # We used to match only the files named 'Makefile.in', but
39493    # some people rename them; so instead we look at the file content.
39494    # Grep'ing the first line is not enough: some people post-process
39495    # each Makefile.in and add a new line on top of each file to say so.
39496    # Grep'ing the whole file is not good either: AIX grep has a line
39497    # limit of 2048, but all sed's we know have understand at least 4000.
39498    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39499      dirpart=`$as_dirname -- "$mf" ||
39500$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39501	 X"$mf" : 'X\(//\)[^/]' \| \
39502	 X"$mf" : 'X\(//\)$' \| \
39503	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39504$as_echo X"$mf" |
39505    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39506	    s//\1/
39507	    q
39508	  }
39509	  /^X\(\/\/\)[^/].*/{
39510	    s//\1/
39511	    q
39512	  }
39513	  /^X\(\/\/\)$/{
39514	    s//\1/
39515	    q
39516	  }
39517	  /^X\(\/\).*/{
39518	    s//\1/
39519	    q
39520	  }
39521	  s/.*/./; q'`
39522    else
39523      continue
39524    fi
39525    # Extract the definition of DEPDIR, am__include, and am__quote
39526    # from the Makefile without running 'make'.
39527    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39528    test -z "$DEPDIR" && continue
39529    am__include=`sed -n 's/^am__include = //p' < "$mf"`
39530    test -z "$am__include" && continue
39531    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39532    # Find all dependency output files, they are included files with
39533    # $(DEPDIR) in their names.  We invoke sed twice because it is the
39534    # simplest approach to changing $(DEPDIR) to its actual value in the
39535    # expansion.
39536    for file in `sed -n "
39537      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39538	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39539      # Make sure the directory exists.
39540      test -f "$dirpart/$file" && continue
39541      fdir=`$as_dirname -- "$file" ||
39542$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39543	 X"$file" : 'X\(//\)[^/]' \| \
39544	 X"$file" : 'X\(//\)$' \| \
39545	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39546$as_echo X"$file" |
39547    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39548	    s//\1/
39549	    q
39550	  }
39551	  /^X\(\/\/\)[^/].*/{
39552	    s//\1/
39553	    q
39554	  }
39555	  /^X\(\/\/\)$/{
39556	    s//\1/
39557	    q
39558	  }
39559	  /^X\(\/\).*/{
39560	    s//\1/
39561	    q
39562	  }
39563	  s/.*/./; q'`
39564      as_dir=$dirpart/$fdir; as_fn_mkdir_p
39565      # echo "creating $dirpart/$file"
39566      echo '# dummy' > "$dirpart/$file"
39567    done
39568  done
39569}
39570 ;;
39571    "libtool":C)
39572
39573    # See if we are running on zsh, and set the options that allow our
39574    # commands through without removal of \ escapes.
39575    if test -n "${ZSH_VERSION+set}"; then
39576      setopt NO_GLOB_SUBST
39577    fi
39578
39579    cfgfile=${ofile}T
39580    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
39581    $RM "$cfgfile"
39582
39583    cat <<_LT_EOF >> "$cfgfile"
39584#! $SHELL
39585# Generated automatically by $as_me ($PACKAGE) $VERSION
39586# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39587# NOTE: Changes made to this file will be lost: look at ltmain.sh.
39588
39589# Provide generalized library-building support services.
39590# Written by Gordon Matzigkeit, 1996
39591
39592# Copyright (C) 2014 Free Software Foundation, Inc.
39593# This is free software; see the source for copying conditions.  There is NO
39594# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
39595
39596# GNU Libtool is free software; you can redistribute it and/or modify
39597# it under the terms of the GNU General Public License as published by
39598# the Free Software Foundation; either version 2 of of the License, or
39599# (at your option) any later version.
39600#
39601# As a special exception to the GNU General Public License, if you
39602# distribute this file as part of a program or library that is built
39603# using GNU Libtool, you may include this file under the  same
39604# distribution terms that you use for the rest of that program.
39605#
39606# GNU Libtool is distributed in the hope that it will be useful, but
39607# WITHOUT ANY WARRANTY; without even the implied warranty of
39608# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
39609# GNU General Public License for more details.
39610#
39611# You should have received a copy of the GNU General Public License
39612# along with this program.  If not, see <http://www.gnu.org/licenses/>.
39613
39614
39615# The names of the tagged configurations supported by this script.
39616available_tags='CXX '
39617
39618# Configured defaults for sys_lib_dlsearch_path munging.
39619: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
39620
39621# ### BEGIN LIBTOOL CONFIG
39622
39623# A sed program that does not truncate output.
39624SED=$lt_SED
39625
39626# Sed that helps us avoid accidentally triggering echo(1) options like -n.
39627Xsed="\$SED -e 1s/^X//"
39628
39629# A grep program that handles long lines.
39630GREP=$lt_GREP
39631
39632# An ERE matcher.
39633EGREP=$lt_EGREP
39634
39635# A literal string matcher.
39636FGREP=$lt_FGREP
39637
39638# Shell to use when invoking shell scripts.
39639SHELL=$lt_SHELL
39640
39641# An echo program that protects backslashes.
39642ECHO=$lt_ECHO
39643
39644# Which release of libtool.m4 was used?
39645macro_version=$macro_version
39646macro_revision=$macro_revision
39647
39648# Assembler program.
39649AS=$lt_AS
39650
39651# DLL creation program.
39652DLLTOOL=$lt_DLLTOOL
39653
39654# Object dumper program.
39655OBJDUMP=$lt_OBJDUMP
39656
39657# Whether or not to build shared libraries.
39658build_libtool_libs=$enable_shared
39659
39660# Whether or not to build static libraries.
39661build_old_libs=$enable_static
39662
39663# What type of objects to build.
39664pic_mode=$pic_mode
39665
39666# Whether or not to optimize for fast installation.
39667fast_install=$enable_fast_install
39668
39669# Shared archive member basename,for filename based shared library versioning on AIX.
39670shared_archive_member_spec=$shared_archive_member_spec
39671
39672# The PATH separator for the build system.
39673PATH_SEPARATOR=$lt_PATH_SEPARATOR
39674
39675# The host system.
39676host_alias=$host_alias
39677host=$host
39678host_os=$host_os
39679
39680# The build system.
39681build_alias=$build_alias
39682build=$build
39683build_os=$build_os
39684
39685# A BSD- or MS-compatible name lister.
39686NM=$lt_NM
39687
39688# Whether we need soft or hard links.
39689LN_S=$lt_LN_S
39690
39691# What is the maximum length of a command?
39692max_cmd_len=$max_cmd_len
39693
39694# Object file suffix (normally "o").
39695objext=$ac_objext
39696
39697# Executable file suffix (normally "").
39698exeext=$exeext
39699
39700# whether the shell understands "unset".
39701lt_unset=$lt_unset
39702
39703# turn spaces into newlines.
39704SP2NL=$lt_lt_SP2NL
39705
39706# turn newlines into spaces.
39707NL2SP=$lt_lt_NL2SP
39708
39709# convert \$build file names to \$host format.
39710to_host_file_cmd=$lt_cv_to_host_file_cmd
39711
39712# convert \$build files to toolchain format.
39713to_tool_file_cmd=$lt_cv_to_tool_file_cmd
39714
39715# Method to check whether dependent libraries are shared objects.
39716deplibs_check_method=$lt_deplibs_check_method
39717
39718# Command to use when deplibs_check_method = "file_magic".
39719file_magic_cmd=$lt_file_magic_cmd
39720
39721# How to find potential files when deplibs_check_method = "file_magic".
39722file_magic_glob=$lt_file_magic_glob
39723
39724# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
39725want_nocaseglob=$lt_want_nocaseglob
39726
39727# Command to associate shared and link libraries.
39728sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
39729
39730# The archiver.
39731AR=$lt_AR
39732
39733# Flags to create an archive.
39734AR_FLAGS=$lt_AR_FLAGS
39735
39736# How to feed a file listing to the archiver.
39737archiver_list_spec=$lt_archiver_list_spec
39738
39739# A symbol stripping program.
39740STRIP=$lt_STRIP
39741
39742# Commands used to install an old-style archive.
39743RANLIB=$lt_RANLIB
39744old_postinstall_cmds=$lt_old_postinstall_cmds
39745old_postuninstall_cmds=$lt_old_postuninstall_cmds
39746
39747# Whether to use a lock for old archive extraction.
39748lock_old_archive_extraction=$lock_old_archive_extraction
39749
39750# A C compiler.
39751LTCC=$lt_CC
39752
39753# LTCC compiler flags.
39754LTCFLAGS=$lt_CFLAGS
39755
39756# Take the output of nm and produce a listing of raw symbols and C names.
39757global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39758
39759# Transform the output of nm in a proper C declaration.
39760global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39761
39762# Transform the output of nm into a list of symbols to manually relocate.
39763global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
39764
39765# Transform the output of nm in a C name address pair.
39766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39767
39768# Transform the output of nm in a C name address pair when lib prefix is needed.
39769global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
39770
39771# The name lister interface.
39772nm_interface=$lt_lt_cv_nm_interface
39773
39774# Specify filename containing input files for \$NM.
39775nm_file_list_spec=$lt_nm_file_list_spec
39776
39777# The root where to search for dependent libraries,and where our libraries should be installed.
39778lt_sysroot=$lt_sysroot
39779
39780# Command to truncate a binary pipe.
39781lt_truncate_bin=$lt_lt_cv_truncate_bin
39782
39783# The name of the directory that contains temporary libtool files.
39784objdir=$objdir
39785
39786# Used to examine libraries when file_magic_cmd begins with "file".
39787MAGIC_CMD=$MAGIC_CMD
39788
39789# Must we lock files when doing compilation?
39790need_locks=$lt_need_locks
39791
39792# Manifest tool.
39793MANIFEST_TOOL=$lt_MANIFEST_TOOL
39794
39795# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
39796DSYMUTIL=$lt_DSYMUTIL
39797
39798# Tool to change global to local symbols on Mac OS X.
39799NMEDIT=$lt_NMEDIT
39800
39801# Tool to manipulate fat objects and archives on Mac OS X.
39802LIPO=$lt_LIPO
39803
39804# ldd/readelf like tool for Mach-O binaries on Mac OS X.
39805OTOOL=$lt_OTOOL
39806
39807# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
39808OTOOL64=$lt_OTOOL64
39809
39810# Old archive suffix (normally "a").
39811libext=$libext
39812
39813# Shared library suffix (normally ".so").
39814shrext_cmds=$lt_shrext_cmds
39815
39816# The commands to extract the exported symbol list from a shared archive.
39817extract_expsyms_cmds=$lt_extract_expsyms_cmds
39818
39819# Variables whose values should be saved in libtool wrapper scripts and
39820# restored at link time.
39821variables_saved_for_relink=$lt_variables_saved_for_relink
39822
39823# Do we need the "lib" prefix for modules?
39824need_lib_prefix=$need_lib_prefix
39825
39826# Do we need a version for libraries?
39827need_version=$need_version
39828
39829# Library versioning type.
39830version_type=$version_type
39831
39832# Shared library runtime path variable.
39833runpath_var=$runpath_var
39834
39835# Shared library path variable.
39836shlibpath_var=$shlibpath_var
39837
39838# Is shlibpath searched before the hard-coded library search path?
39839shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39840
39841# Format of library name prefix.
39842libname_spec=$lt_libname_spec
39843
39844# List of archive names.  First name is the real one, the rest are links.
39845# The last name is the one that the linker finds with -lNAME
39846library_names_spec=$lt_library_names_spec
39847
39848# The coded name of the library, if different from the real name.
39849soname_spec=$lt_soname_spec
39850
39851# Permission mode override for installation of shared libraries.
39852install_override_mode=$lt_install_override_mode
39853
39854# Command to use after installation of a shared archive.
39855postinstall_cmds=$lt_postinstall_cmds
39856
39857# Command to use after uninstallation of a shared archive.
39858postuninstall_cmds=$lt_postuninstall_cmds
39859
39860# Commands used to finish a libtool library installation in a directory.
39861finish_cmds=$lt_finish_cmds
39862
39863# As "finish_cmds", except a single script fragment to be evaled but
39864# not shown.
39865finish_eval=$lt_finish_eval
39866
39867# Whether we should hardcode library paths into libraries.
39868hardcode_into_libs=$hardcode_into_libs
39869
39870# Compile-time system search path for libraries.
39871sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39872
39873# Detected run-time system search path for libraries.
39874sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
39875
39876# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
39877configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
39878
39879# Whether dlopen is supported.
39880dlopen_support=$enable_dlopen
39881
39882# Whether dlopen of programs is supported.
39883dlopen_self=$enable_dlopen_self
39884
39885# Whether dlopen of statically linked programs is supported.
39886dlopen_self_static=$enable_dlopen_self_static
39887
39888# Commands to strip libraries.
39889old_striplib=$lt_old_striplib
39890striplib=$lt_striplib
39891
39892
39893# The linker used to build libraries.
39894LD=$lt_LD
39895
39896# How to create reloadable object files.
39897reload_flag=$lt_reload_flag
39898reload_cmds=$lt_reload_cmds
39899
39900# Commands used to build an old-style archive.
39901old_archive_cmds=$lt_old_archive_cmds
39902
39903# A language specific compiler.
39904CC=$lt_compiler
39905
39906# Is the compiler the GNU compiler?
39907with_gcc=$GCC
39908
39909# Compiler flag to turn off builtin functions.
39910no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
39911
39912# Additional compiler flags for building library objects.
39913pic_flag=$lt_lt_prog_compiler_pic
39914
39915# How to pass a linker flag through the compiler.
39916wl=$lt_lt_prog_compiler_wl
39917
39918# Compiler flag to prevent dynamic linking.
39919link_static_flag=$lt_lt_prog_compiler_static
39920
39921# Does compiler simultaneously support -c and -o options?
39922compiler_c_o=$lt_lt_cv_prog_compiler_c_o
39923
39924# Whether or not to add -lc for building shared libraries.
39925build_libtool_need_lc=$archive_cmds_need_lc
39926
39927# Whether or not to disallow shared libs when runtime libs are static.
39928allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
39929
39930# Compiler flag to allow reflexive dlopens.
39931export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
39932
39933# Compiler flag to generate shared objects directly from archives.
39934whole_archive_flag_spec=$lt_whole_archive_flag_spec
39935
39936# Whether the compiler copes with passing no objects directly.
39937compiler_needs_object=$lt_compiler_needs_object
39938
39939# Create an old-style archive from a shared archive.
39940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
39941
39942# Create a temporary old-style archive to link instead of a shared archive.
39943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
39944
39945# Commands used to build a shared archive.
39946archive_cmds=$lt_archive_cmds
39947archive_expsym_cmds=$lt_archive_expsym_cmds
39948
39949# Commands used to build a loadable module if different from building
39950# a shared archive.
39951module_cmds=$lt_module_cmds
39952module_expsym_cmds=$lt_module_expsym_cmds
39953
39954# Whether we are building with GNU ld or not.
39955with_gnu_ld=$lt_with_gnu_ld
39956
39957# Flag that allows shared libraries with undefined symbols to be built.
39958allow_undefined_flag=$lt_allow_undefined_flag
39959
39960# Flag that enforces no undefined symbols.
39961no_undefined_flag=$lt_no_undefined_flag
39962
39963# Flag to hardcode \$libdir into a binary during linking.
39964# This must work even if \$libdir does not exist
39965hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
39966
39967# Whether we need a single "-rpath" flag with a separated argument.
39968hardcode_libdir_separator=$lt_hardcode_libdir_separator
39969
39970# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39971# DIR into the resulting binary.
39972hardcode_direct=$hardcode_direct
39973
39974# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
39975# DIR into the resulting binary and the resulting library dependency is
39976# "absolute",i.e impossible to change by setting \$shlibpath_var if the
39977# library is relocated.
39978hardcode_direct_absolute=$hardcode_direct_absolute
39979
39980# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
39981# into the resulting binary.
39982hardcode_minus_L=$hardcode_minus_L
39983
39984# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
39985# into the resulting binary.
39986hardcode_shlibpath_var=$hardcode_shlibpath_var
39987
39988# Set to "yes" if building a shared library automatically hardcodes DIR
39989# into the library and all subsequent libraries and executables linked
39990# against it.
39991hardcode_automatic=$hardcode_automatic
39992
39993# Set to yes if linker adds runtime paths of dependent libraries
39994# to runtime path list.
39995inherit_rpath=$inherit_rpath
39996
39997# Whether libtool must link a program against all its dependency libraries.
39998link_all_deplibs=$link_all_deplibs
39999
40000# Set to "yes" if exported symbols are required.
40001always_export_symbols=$always_export_symbols
40002
40003# The commands to list exported symbols.
40004export_symbols_cmds=$lt_export_symbols_cmds
40005
40006# Symbols that should not be listed in the preloaded symbols.
40007exclude_expsyms=$lt_exclude_expsyms
40008
40009# Symbols that must always be exported.
40010include_expsyms=$lt_include_expsyms
40011
40012# Commands necessary for linking programs (against libraries) with templates.
40013prelink_cmds=$lt_prelink_cmds
40014
40015# Commands necessary for finishing linking programs.
40016postlink_cmds=$lt_postlink_cmds
40017
40018# Specify filename containing input files.
40019file_list_spec=$lt_file_list_spec
40020
40021# How to hardcode a shared library path into an executable.
40022hardcode_action=$hardcode_action
40023
40024# The directories searched by this compiler when creating a shared library.
40025compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
40026
40027# Dependencies to place before and after the objects being linked to
40028# create a shared library.
40029predep_objects=$lt_predep_objects
40030postdep_objects=$lt_postdep_objects
40031predeps=$lt_predeps
40032postdeps=$lt_postdeps
40033
40034# The library search path used internally by the compiler when linking
40035# a shared library.
40036compiler_lib_search_path=$lt_compiler_lib_search_path
40037
40038# ### END LIBTOOL CONFIG
40039
40040_LT_EOF
40041
40042    cat <<'_LT_EOF' >> "$cfgfile"
40043
40044# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
40045
40046# func_munge_path_list VARIABLE PATH
40047# -----------------------------------
40048# VARIABLE is name of variable containing _space_ separated list of
40049# directories to be munged by the contents of PATH, which is string
40050# having a format:
40051# "DIR[:DIR]:"
40052#       string "DIR[ DIR]" will be prepended to VARIABLE
40053# ":DIR[:DIR]"
40054#       string "DIR[ DIR]" will be appended to VARIABLE
40055# "DIRP[:DIRP]::[DIRA:]DIRA"
40056#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
40057#       "DIRA[ DIRA]" will be appended to VARIABLE
40058# "DIR[:DIR]"
40059#       VARIABLE will be replaced by "DIR[ DIR]"
40060func_munge_path_list ()
40061{
40062    case x$2 in
40063    x)
40064        ;;
40065    *:)
40066        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
40067        ;;
40068    x:*)
40069        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
40070        ;;
40071    *::*)
40072        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
40073        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
40074        ;;
40075    *)
40076        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
40077        ;;
40078    esac
40079}
40080
40081
40082# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
40083func_cc_basename ()
40084{
40085    for cc_temp in $*""; do
40086      case $cc_temp in
40087        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40088        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40089        \-*) ;;
40090        *) break;;
40091      esac
40092    done
40093    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
40094}
40095
40096
40097# ### END FUNCTIONS SHARED WITH CONFIGURE
40098
40099_LT_EOF
40100
40101  case $host_os in
40102  aix3*)
40103    cat <<\_LT_EOF >> "$cfgfile"
40104# AIX sometimes has problems with the GCC collect2 program.  For some
40105# reason, if we set the COLLECT_NAMES environment variable, the problems
40106# vanish in a puff of smoke.
40107if test set != "${COLLECT_NAMES+set}"; then
40108  COLLECT_NAMES=
40109  export COLLECT_NAMES
40110fi
40111_LT_EOF
40112    ;;
40113  esac
40114
40115
40116ltmain=$ac_aux_dir/ltmain.sh
40117
40118
40119  # We use sed instead of cat because bash on DJGPP gets confused if
40120  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
40121  # text mode, it properly converts lines to CR/LF.  This bash problem
40122  # is reportedly fixed, but why not run on old versions too?
40123  sed '$q' "$ltmain" >> "$cfgfile" \
40124     || (rm -f "$cfgfile"; exit 1)
40125
40126   mv -f "$cfgfile" "$ofile" ||
40127    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
40128  chmod +x "$ofile"
40129
40130
40131    cat <<_LT_EOF >> "$ofile"
40132
40133# ### BEGIN LIBTOOL TAG CONFIG: CXX
40134
40135# The linker used to build libraries.
40136LD=$lt_LD_CXX
40137
40138# How to create reloadable object files.
40139reload_flag=$lt_reload_flag_CXX
40140reload_cmds=$lt_reload_cmds_CXX
40141
40142# Commands used to build an old-style archive.
40143old_archive_cmds=$lt_old_archive_cmds_CXX
40144
40145# A language specific compiler.
40146CC=$lt_compiler_CXX
40147
40148# Is the compiler the GNU compiler?
40149with_gcc=$GCC_CXX
40150
40151# Compiler flag to turn off builtin functions.
40152no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
40153
40154# Additional compiler flags for building library objects.
40155pic_flag=$lt_lt_prog_compiler_pic_CXX
40156
40157# How to pass a linker flag through the compiler.
40158wl=$lt_lt_prog_compiler_wl_CXX
40159
40160# Compiler flag to prevent dynamic linking.
40161link_static_flag=$lt_lt_prog_compiler_static_CXX
40162
40163# Does compiler simultaneously support -c and -o options?
40164compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
40165
40166# Whether or not to add -lc for building shared libraries.
40167build_libtool_need_lc=$archive_cmds_need_lc_CXX
40168
40169# Whether or not to disallow shared libs when runtime libs are static.
40170allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
40171
40172# Compiler flag to allow reflexive dlopens.
40173export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
40174
40175# Compiler flag to generate shared objects directly from archives.
40176whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
40177
40178# Whether the compiler copes with passing no objects directly.
40179compiler_needs_object=$lt_compiler_needs_object_CXX
40180
40181# Create an old-style archive from a shared archive.
40182old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
40183
40184# Create a temporary old-style archive to link instead of a shared archive.
40185old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
40186
40187# Commands used to build a shared archive.
40188archive_cmds=$lt_archive_cmds_CXX
40189archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
40190
40191# Commands used to build a loadable module if different from building
40192# a shared archive.
40193module_cmds=$lt_module_cmds_CXX
40194module_expsym_cmds=$lt_module_expsym_cmds_CXX
40195
40196# Whether we are building with GNU ld or not.
40197with_gnu_ld=$lt_with_gnu_ld_CXX
40198
40199# Flag that allows shared libraries with undefined symbols to be built.
40200allow_undefined_flag=$lt_allow_undefined_flag_CXX
40201
40202# Flag that enforces no undefined symbols.
40203no_undefined_flag=$lt_no_undefined_flag_CXX
40204
40205# Flag to hardcode \$libdir into a binary during linking.
40206# This must work even if \$libdir does not exist
40207hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
40208
40209# Whether we need a single "-rpath" flag with a separated argument.
40210hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
40211
40212# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40213# DIR into the resulting binary.
40214hardcode_direct=$hardcode_direct_CXX
40215
40216# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
40217# DIR into the resulting binary and the resulting library dependency is
40218# "absolute",i.e impossible to change by setting \$shlibpath_var if the
40219# library is relocated.
40220hardcode_direct_absolute=$hardcode_direct_absolute_CXX
40221
40222# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
40223# into the resulting binary.
40224hardcode_minus_L=$hardcode_minus_L_CXX
40225
40226# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
40227# into the resulting binary.
40228hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
40229
40230# Set to "yes" if building a shared library automatically hardcodes DIR
40231# into the library and all subsequent libraries and executables linked
40232# against it.
40233hardcode_automatic=$hardcode_automatic_CXX
40234
40235# Set to yes if linker adds runtime paths of dependent libraries
40236# to runtime path list.
40237inherit_rpath=$inherit_rpath_CXX
40238
40239# Whether libtool must link a program against all its dependency libraries.
40240link_all_deplibs=$link_all_deplibs_CXX
40241
40242# Set to "yes" if exported symbols are required.
40243always_export_symbols=$always_export_symbols_CXX
40244
40245# The commands to list exported symbols.
40246export_symbols_cmds=$lt_export_symbols_cmds_CXX
40247
40248# Symbols that should not be listed in the preloaded symbols.
40249exclude_expsyms=$lt_exclude_expsyms_CXX
40250
40251# Symbols that must always be exported.
40252include_expsyms=$lt_include_expsyms_CXX
40253
40254# Commands necessary for linking programs (against libraries) with templates.
40255prelink_cmds=$lt_prelink_cmds_CXX
40256
40257# Commands necessary for finishing linking programs.
40258postlink_cmds=$lt_postlink_cmds_CXX
40259
40260# Specify filename containing input files.
40261file_list_spec=$lt_file_list_spec_CXX
40262
40263# How to hardcode a shared library path into an executable.
40264hardcode_action=$hardcode_action_CXX
40265
40266# The directories searched by this compiler when creating a shared library.
40267compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
40268
40269# Dependencies to place before and after the objects being linked to
40270# create a shared library.
40271predep_objects=$lt_predep_objects_CXX
40272postdep_objects=$lt_postdep_objects_CXX
40273predeps=$lt_predeps_CXX
40274postdeps=$lt_postdeps_CXX
40275
40276# The library search path used internally by the compiler when linking
40277# a shared library.
40278compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
40279
40280# ### END LIBTOOL TAG CONFIG: CXX
40281_LT_EOF
40282
40283 ;;
40284    "magick.sh.in":C) chmod +x magick.sh ;;
40285    "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
40286    "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
40287    "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
40288    "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
40289
40290  esac
40291done # for ac_tag
40292
40293
40294as_fn_exit 0
40295_ACEOF
40296ac_clean_files=$ac_clean_files_save
40297
40298test $ac_write_fail = 0 ||
40299  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
40300
40301
40302# configure is writing to config.log, and then calls config.status.
40303# config.status does its own redirection, appending to config.log.
40304# Unfortunately, on DOS this fails, as config.log is still kept open
40305# by configure, so config.status won't be able to write to it; its
40306# output is simply discarded.  So we exec the FD to /dev/null,
40307# effectively closing config.log, so it can be properly (re)opened and
40308# appended to by config.status.  When coming back to configure, we
40309# need to make the FD available again.
40310if test "$no_create" != yes; then
40311  ac_cs_success=:
40312  ac_config_status_args=
40313  test "$silent" = yes &&
40314    ac_config_status_args="$ac_config_status_args --quiet"
40315  exec 5>/dev/null
40316  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40317  exec 5>>config.log
40318  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40319  # would make configure fail if this is the last instruction.
40320  $ac_cs_success || as_fn_exit 1
40321fi
40322if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
40323  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
40324$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
40325fi
40326
40327
40328# ==============================================================================
40329# ImageMagick Configuration
40330# ==============================================================================
40331{ $as_echo "$as_me:${as_lineno-$LINENO}:
40332==============================================================================
40333ImageMagick is configured as follows. Please verify that this configuration
40334matches your expectations.
40335
40336  Host system type: $host
40337  Build system type: $build
40338
40339                 Option                        Value
40340  ------------------------------------------------------------------------------
40341  Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
40342  Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
40343  Module support    --with-modules=$build_modules		$build_modules
40344  GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
40345  Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
40346  High Dynamic Range Imagery
40347                    --enable-hdri=$enable_hdri		$enable_hdri
40348
40349  Install documentation:			$wantdocs
40350
40351  Delegate Library Configuration:
40352  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
40353  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
40354  DJVU              --with-djvu=$with_djvu		$have_djvu
40355  DPS               --with-dps=$with_dps		$have_dps
40356  FFTW              --with-fftw=$with_fftw		$have_fftw
40357  FLIF              --with-flif=$with_flif		$have_flif
40358  FlashPIX          --with-fpx=$with_fpx		$have_fpx
40359  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
40360  FreeType          --with-freetype=$with_freetype		$have_freetype
40361  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
40362  Graphviz          --with-gvc=$with_gvc		$have_gvc
40363  JBIG              --with-jbig=$with_jbig		$have_jbig
40364  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
40365  LCMS              --with-lcms=$with_lcms		$have_lcms
40366  LQR               --with-lqr=$with_lqr		$have_lqr
40367  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
40368  LZMA              --with-lzma=$with_lzma		$have_lzma
40369  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
40370  OpenEXR           --with-openexr=$with_openexr		$have_openexr
40371  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
40372  PANGO             --with-pango=$with_pango		$have_pango
40373  PERL              --with-perl=$with_perl		$have_perl
40374  PNG               --with-png=$with_png		$have_png
40375  RAQM              --with-raqm=$with_raqm		$have_raqm
40376  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
40377  TIFF              --with-tiff=$with_tiff		$have_tiff
40378  WEBP              --with-webp=$with_webp		$have_webp
40379  WMF               --with-wmf=$with_wmf		$have_wmf
40380  X11               --with-x=$with_x			$have_x
40381  XML               --with-xml=$with_xml		$have_xml
40382  ZLIB              --with-zlib=$with_zlib		$have_zlib
40383
40384  Delegate Program Configuration:
40385  GhostPCL          None				$PCLDelegate ($PCLVersion)
40386  GhostXPS          None				$XPSDelegate ($XPSVersion)
40387  Ghostscript       None				$PSDelegate ($GSVersion)
40388
40389  Font Configuration:
40390  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
40391  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
40392  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
40393  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
40394
40395  X11 Configuration:
40396        X_CFLAGS        = $X_CFLAGS
40397        X_PRE_LIBS      = $X_PRE_LIBS
40398        X_LIBS          = $X_LIBS
40399        X_EXTRA_LIBS    = $X_EXTRA_LIBS
40400
40401  Options used to compile and link:
40402    PREFIX          = $PREFIX_DIR
40403    EXEC-PREFIX     = $EXEC_PREFIX_DIR
40404    VERSION         = $PACKAGE_VERSION
40405    CC              = $CC
40406    CFLAGS          = $CFLAGS
40407    CPPFLAGS        = $CPPFLAGS
40408    PCFLAGS         = $PCFLAGS
40409    DEFS            = $DEFS
40410    LDFLAGS         = $LDFLAGS
40411    LIBS            = $LIBS
40412    CXX             = $CXX
40413    CXXFLAGS        = $CXXFLAGS
40414    FEATURES        = $MAGICK_FEATURES
40415    DELEGATES       = $MAGICK_DELEGATES
40416==============================================================================
40417" >&5
40418$as_echo "$as_me:
40419==============================================================================
40420ImageMagick is configured as follows. Please verify that this configuration
40421matches your expectations.
40422
40423  Host system type: $host
40424  Build system type: $build
40425
40426                 Option                        Value
40427  ------------------------------------------------------------------------------
40428  Shared libraries  --enable-shared=$enable_shared		$libtool_build_shared_libs
40429  Static libraries  --enable-static=$enable_static		$libtool_build_static_libs
40430  Module support    --with-modules=$build_modules		$build_modules
40431  GNU ld            --with-gnu-ld=$with_gnu_ld		$lt_cv_prog_gnu_ld
40432  Quantum depth     --with-quantum-depth=$with_quantum_depth	$with_quantum_depth
40433  High Dynamic Range Imagery
40434                    --enable-hdri=$enable_hdri		$enable_hdri
40435
40436  Install documentation:			$wantdocs
40437
40438  Delegate Library Configuration:
40439  BZLIB             --with-bzlib=$with_bzlib		$have_bzlib
40440  Autotrace         --with-autotrace=$with_autotrace		$have_autotrace
40441  DJVU              --with-djvu=$with_djvu		$have_djvu
40442  DPS               --with-dps=$with_dps		$have_dps
40443  FFTW              --with-fftw=$with_fftw		$have_fftw
40444  FLIF              --with-flif=$with_flif		$have_flif
40445  FlashPIX          --with-fpx=$with_fpx		$have_fpx
40446  FontConfig        --with-fontconfig=$with_fontconfig	$have_fontconfig
40447  FreeType          --with-freetype=$with_freetype		$have_freetype
40448  Ghostscript lib   --with-gslib=$with_gslib		$have_gslib
40449  Graphviz          --with-gvc=$with_gvc		$have_gvc
40450  JBIG              --with-jbig=$with_jbig		$have_jbig
40451  JPEG v1           --with-jpeg=$with_jpeg		$have_jpeg
40452  LCMS              --with-lcms=$with_lcms		$have_lcms
40453  LQR               --with-lqr=$with_lqr		$have_lqr
40454  LTDL              --with-ltdl=$with_ltdl		$have_ltdl
40455  LZMA              --with-lzma=$with_lzma		$have_lzma
40456  Magick++          --with-magick-plus-plus=$with_magick_plus_plus	$have_magick_plus_plus
40457  OpenEXR           --with-openexr=$with_openexr		$have_openexr
40458  OpenJP2           --with-openjp2=$with_openjp2		$have_openjp2
40459  PANGO             --with-pango=$with_pango		$have_pango
40460  PERL              --with-perl=$with_perl		$have_perl
40461  PNG               --with-png=$with_png		$have_png
40462  RAQM              --with-raqm=$with_raqm		$have_raqm
40463  RSVG              --with-rsvg=$with_rsvg		$have_rsvg
40464  TIFF              --with-tiff=$with_tiff		$have_tiff
40465  WEBP              --with-webp=$with_webp		$have_webp
40466  WMF               --with-wmf=$with_wmf		$have_wmf
40467  X11               --with-x=$with_x			$have_x
40468  XML               --with-xml=$with_xml		$have_xml
40469  ZLIB              --with-zlib=$with_zlib		$have_zlib
40470
40471  Delegate Program Configuration:
40472  GhostPCL          None				$PCLDelegate ($PCLVersion)
40473  GhostXPS          None				$XPSDelegate ($XPSVersion)
40474  Ghostscript       None				$PSDelegate ($GSVersion)
40475
40476  Font Configuration:
40477  Apple fonts       --with-apple-font-dir=$with_apple_font_dir	$result_apple_font_dir
40478  Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir	$result_dejavu_font_dir
40479  Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir	$result_ghostscript_font_dir
40480  Windows fonts     --with-windows-font-dir=$with_windows_font_dir	$result_windows_font_dir
40481
40482  X11 Configuration:
40483        X_CFLAGS        = $X_CFLAGS
40484        X_PRE_LIBS      = $X_PRE_LIBS
40485        X_LIBS          = $X_LIBS
40486        X_EXTRA_LIBS    = $X_EXTRA_LIBS
40487
40488  Options used to compile and link:
40489    PREFIX          = $PREFIX_DIR
40490    EXEC-PREFIX     = $EXEC_PREFIX_DIR
40491    VERSION         = $PACKAGE_VERSION
40492    CC              = $CC
40493    CFLAGS          = $CFLAGS
40494    CPPFLAGS        = $CPPFLAGS
40495    PCFLAGS         = $PCFLAGS
40496    DEFS            = $DEFS
40497    LDFLAGS         = $LDFLAGS
40498    LIBS            = $LIBS
40499    CXX             = $CXX
40500    CXXFLAGS        = $CXXFLAGS
40501    FEATURES        = $MAGICK_FEATURES
40502    DELEGATES       = $MAGICK_DELEGATES
40503==============================================================================
40504" >&6;}
40505