]> granicus.if.org Git - imagemagick/blob - configure
(no commit message)
[imagemagick] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0-0.
4 #
5 # Report bugs to <http://www.imagemagick.org>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183     PATH=/empty FPATH=/empty; export PATH FPATH
184     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.imagemagick.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549 lt_ltdl_dir='ltdl'
550
551 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
552
553
554 test -n "$DJDIR" || exec 7<&0 </dev/null
555 exec 6>&1
556
557 # Name of the host.
558 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
562 #
563 # Initializations.
564 #
565 ac_default_prefix=/usr/local
566 ac_clean_files=
567 ac_config_libobj_dir=.
568 LIBOBJS=
569 cross_compiling=no
570 subdirs=
571 MFLAGS=
572 MAKEFLAGS=
573
574 # Identity of this package.
575 PACKAGE_NAME='ImageMagick'
576 PACKAGE_TARNAME='ImageMagick'
577 PACKAGE_VERSION='7.0.0-0'
578 PACKAGE_STRING='ImageMagick 7.0.0-0'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
580 PACKAGE_URL=''
581
582 ac_unique_file="MagickCore/MagickCore.h"
583 ac_config_libobj_dir=ltdl
584 # Factoring default headers for most tests.
585 ac_includes_default="\
586 #include <stdio.h>
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
589 #endif
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
592 #endif
593 #ifdef STDC_HEADERS
594 # include <stdlib.h>
595 # include <stddef.h>
596 #else
597 # ifdef HAVE_STDLIB_H
598 #  include <stdlib.h>
599 # endif
600 #endif
601 #ifdef HAVE_STRING_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #  include <memory.h>
604 # endif
605 # include <string.h>
606 #endif
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
609 #endif
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
612 #endif
613 #ifdef HAVE_STDINT_H
614 # include <stdint.h>
615 #endif
616 #ifdef HAVE_UNISTD_H
617 # include <unistd.h>
618 #endif"
619
620 ac_header_list=
621 ac_subst_vars='ltdl_LTLIBOBJS
622 ltdl_LIBOBJS
623 am__EXEEXT_FALSE
624 am__EXEEXT_TRUE
625 LTLIBOBJS
626 MAGICK_FEATURES
627 MAGICK_LIBS
628 MAGICK_LDFLAGS
629 MAGICK_PCFLAGS
630 MAGICK_CPPFLAGS
631 MAGICK_CXXFLAGS
632 MAGICK_CFLAGS
633 MAGICK_DEP_LIBS
634 MAGICK_LTDLDEPS
635 MAGICK_LIBLTDL
636 OSX_GCOV_LDFLAG
637 DELEGATES
638 MAGICKCORE_PATH
639 PERL_SUPPORTS_DESTDIR
640 WITH_PERL_DYNAMIC_FALSE
641 WITH_PERL_DYNAMIC_TRUE
642 WITH_PERL_STATIC_FALSE
643 WITH_PERL_STATIC_TRUE
644 WITH_PERL_FALSE
645 WITH_PERL_TRUE
646 PERL_VERSION
647 GSVersion
648 GSPSDevice
649 GSPDFDevice
650 GSMonoDevice
651 GSEPSDevice
652 GSColorDevice
653 GSCMYKDevice
654 GSAlphaDevice
655 XPSVersion
656 XPSCMYKDevice
657 XPSColorDevice
658 XPSMonoDevice
659 PCLVersion
660 PCLCMYKDevice
661 PCLColorDevice
662 PCLMonoDevice
663 ZIP_DELEGATE_FALSE
664 ZIP_DELEGATE_TRUE
665 ZIP
666 P7ZIP_DELEGATE_FALSE
667 P7ZIP_DELEGATE_TRUE
668 P7ZIP
669 RPM_DELEGATE_FALSE
670 RPM_DELEGATE_TRUE
671 RPM
672 PERL
673 TAR
674 ShowImageDelegate
675 type_include_files
676 ghostscript_font_dir
677 windows_font_dir
678 dejavu_font_dir
679 PrintDelegate
680 ZipDelegate
681 XPSDelegate
682 WWWDecodeDelegate
683 WMFDecodeDelegate
684 UniconvertorDelegate
685 TXTDelegate
686 SCANDecodeDelegate
687 RSVGDecodeDelegate
688 RMDelegate
689 RLEEncodeDelegate
690 PSDelegate
691 POVDelegate
692 PGPDecodeDelegate
693 PCLDelegate
694 MVDelegate
695 MrSIDDecodeDelegate
696 MPEGEncodeDelegate
697 MPEGDecodeDelegate
698 MANDelegate
699 LaunchDelegate
700 LZWEncodeDelegate
701 LZWDecodeDelegate
702 LPRDelegate
703 LPDelegate
704 ILBMEncodeDelegate
705 ILBMDecodeDelegate
706 HTMLDecodeDelegate
707 HPGLDecodeDelegate
708 GnuplotDecodeDelegate
709 MogrifyDelegate
710 DisplayDelegate
711 ConvertDelegate
712 FIGDecodeDelegate
713 EditorDelegate
714 EchoDelegate
715 DVIDecodeDelegate
716 GVCDecodeDelegate
717 DNGDecodeDelegate
718 CatDelegate
719 CGMDecodeDelegate
720 BrowseDelegate
721 BZIPDelegate
722 BlenderDecodeDelegate
723 AutotraceDecodeDelegate
724 SHARE_PATH
725 CONFIGURE_PATH
726 DOCUMENTATION_PATH
727 FILTER_PATH
728 CODER_PATH
729 LIBRARY_PATH
730 EXECUTABLE_PATH
731 PERLMAINCC
732 XML_LIBS
733 XML_DELEGATE_FALSE
734 XML_DELEGATE_TRUE
735 xml2_config
736 WMF_LIBS
737 WMF_DELEGATE_FALSE
738 WMF_DELEGATE_TRUE
739 WEBP_LIBS
740 WEBP_DELEGATE_FALSE
741 WEBP_DELEGATE_TRUE
742 TIFF_LIBS
743 TIFF_DELEGATE_FALSE
744 TIFF_DELEGATE_TRUE
745 CAIRO_DELEGATE_FALSE
746 CAIRO_DELEGATE_TRUE
747 RSVG_DELEGATE_FALSE
748 RSVG_DELEGATE_TRUE
749 CAIRO_SVG_LIBS
750 CAIRO_SVG_CFLAGS
751 RSVG_LIBS
752 RSVG_CFLAGS
753 PNG_LIBS
754 PNG_DELEGATE_FALSE
755 PNG_DELEGATE_TRUE
756 PANGOFT2_DELEGATE_FALSE
757 PANGOFT2_DELEGATE_TRUE
758 PANGO_DELEGATE_FALSE
759 PANGO_DELEGATE_TRUE
760 PANGO_LIBS
761 PANGO_CFLAGS
762 OPENEXR_DELEGATE_FALSE
763 OPENEXR_DELEGATE_TRUE
764 OPENEXR_LIBS
765 OPENEXR_CFLAGS
766 LZMA_LIBS
767 LZMA_DELEGATE_FALSE
768 LZMA_DELEGATE_TRUE
769 LQR_DELEGATE_FALSE
770 LQR_DELEGATE_TRUE
771 LQR_LIBS
772 LQR_CFLAGS
773 LCMS_LIBS
774 LCMS_DELEGATE_FALSE
775 LCMS_DELEGATE_TRUE
776 JP2_LIBS
777 JP2_DELEGATE_FALSE
778 JP2_DELEGATE_TRUE
779 JPEG_LIBS
780 JPEG_DELEGATE_FALSE
781 JPEG_DELEGATE_TRUE
782 JBIG_LIBS
783 JBIG_DELEGATE_FALSE
784 JBIG_DELEGATE_TRUE
785 GVC_DELEGATE_FALSE
786 GVC_DELEGATE_TRUE
787 GVC_LIBS
788 GVC_CFLAGS
789 GS_LIBS
790 GS_DELEGATE_FALSE
791 GS_DELEGATE_TRUE
792 FREETYPE_LIBS
793 FREETYPE_DELEGATE_FALSE
794 FREETYPE_DELEGATE_TRUE
795 freetype_config
796 FONTCONFIG_DELEGATE_FALSE
797 FONTCONFIG_DELEGATE_TRUE
798 FONTCONFIG_LIBS
799 FONTCONFIG_CFLAGS
800 FPX_LIBS
801 FPX_DELEGATE_FALSE
802 FPX_DELEGATE_TRUE
803 FFTW_LIBS
804 FFTW_DELEGATE_FALSE
805 FFTW_DELEGATE_TRUE
806 DJVU_LIBS
807 DJVU_DELEGATE_FALSE
808 DJVU_DELEGATE_TRUE
809 DPS_LIBS
810 DPS_DELEGATE_FALSE
811 DPS_DELEGATE_TRUE
812 AUTOTRACE_DELEGATE_FALSE
813 AUTOTRACE_DELEGATE_TRUE
814 AUTOTRACE_LIBS
815 AUTOTRACE_CFLAGS
816 LIB_DL
817 ZLIB_LIBS
818 ZLIB_DELEGATE_FALSE
819 ZLIB_DELEGATE_TRUE
820 XEXT_LIBS
821 X11_LIBS
822 X11_DELEGATE_FALSE
823 X11_DELEGATE_TRUE
824 X_EXTRA_LIBS
825 X_LIBS
826 X_PRE_LIBS
827 X_CFLAGS
828 XMKMF
829 BZLIB_LIBS
830 BZLIB_DELEGATE_FALSE
831 BZLIB_DELEGATE_TRUE
832 CCMALLOCDelegate
833 UMEM_LIBS
834 HasUMEM_FALSE
835 HasUMEM_TRUE
836 THREAD_LIBS
837 GOMP_LIBS
838 WITH_MAGICK_PLUS_PLUS_FALSE
839 WITH_MAGICK_PLUS_PLUS_TRUE
840 OPENMP_CXXFLAGS
841 MATH_LIBS
842 POW_LIB
843 LIBOBJS
844 UINTPTR_F
845 UINTPTR_T
846 UINTMAX_F
847 UINTMAX_T
848 UINT64_F
849 UINT64_T
850 INT64_F
851 INT64_T
852 UINT32_F
853 UINT32_T
854 INT32_F
855 INT32_T
856 UINT16_T
857 INT16_T
858 UINT8_T
859 INT8_T
860 LIBRARY_EXTRA_CPPFLAGS
861 MODULE_EXTRA_CPPFLAGS
862 LIBSTDCLDFLAGS
863 PERL_MAKE_OPTIONS
864 QUANTUM_DEPTH
865 MAINT
866 MAINTAINER_MODE_FALSE
867 MAINTAINER_MODE_TRUE
868 MAGICK_HDRI
869 DLLDFLAGS
870 WITH_LTDL_FALSE
871 WITH_LTDL_TRUE
872 WITH_MODULES_FALSE
873 WITH_MODULES_TRUE
874 WITH_SHARED_LIBS_FALSE
875 WITH_SHARED_LIBS_TRUE
876 LTDLOPEN
877 LT_CONFIG_H
878 CONVENIENCE_LTDL_FALSE
879 CONVENIENCE_LTDL_TRUE
880 INSTALL_LTDL_FALSE
881 INSTALL_LTDL_TRUE
882 ARGZ_H
883 sys_symbol_underscore
884 LIBADD_DL
885 LT_DLPREOPEN
886 LIBADD_DLD_LINK
887 LIBADD_SHL_LOAD
888 LIBADD_DLOPEN
889 LT_DLLOADERS
890 INCLTDL
891 LTDLINCL
892 LTDLDEPS
893 LIBLTDL
894 LIBTOOL_DEPS
895 CXXCPP
896 OTOOL64
897 OTOOL
898 LIPO
899 NMEDIT
900 DSYMUTIL
901 MANIFEST_TOOL
902 RANLIB
903 ac_ct_AR
904 AR
905 NM
906 ac_ct_DUMPBIN
907 DUMPBIN
908 LIBTOOL
909 OBJDUMP
910 DLLTOOL
911 AS
912 LFS_CPPFLAGS
913 CL_LIBS
914 CL_CFLAGS
915 OPENMP_CFLAGS
916 PTHREAD_CFLAGS
917 PTHREAD_LIBS
918 PTHREAD_CC
919 ax_pthread_config
920 WinPathScript
921 USING_CL_FALSE
922 USING_CL_TRUE
923 CYGWIN_BUILD_FALSE
924 CYGWIN_BUILD_TRUE
925 WIN32_NATIVE_BUILD_FALSE
926 WIN32_NATIVE_BUILD_TRUE
927 WINGDI32_DELEGATE_FALSE
928 WINGDI32_DELEGATE_TRUE
929 GDI32_LIBS
930 PKG_CONFIG
931 LN_S
932 LD
933 FGREP
934 SED
935 am__fastdepCXX_FALSE
936 am__fastdepCXX_TRUE
937 CXXDEPMODE
938 ac_ct_CXX
939 CXXFLAGS
940 CXX
941 EGREP
942 GREP
943 CPP
944 am__fastdepCC_FALSE
945 am__fastdepCC_TRUE
946 CCDEPMODE
947 AMDEPBACKSLASH
948 AMDEP_FALSE
949 AMDEP_TRUE
950 am__quote
951 am__include
952 DEPDIR
953 OBJEXT
954 EXEEXT
955 ac_ct_CC
956 CPPFLAGS
957 LDFLAGS
958 CFLAGS
959 CC
960 DIRSEP
961 MAGICK_FILTER_MODULE_PATH
962 MAGICK_CONFIGURE_BUILD_PATH
963 MAGICK_CONFIGURE_SRC_PATH
964 MAGICK_CODER_MODULE_PATH
965 MAN_DIR
966 INFO_DIR
967 PERSISTINCLUDE_DIR
968 INCLUDE_DIR
969 LIB_DIR
970 LOCALSTATE_DIR
971 SHAREDSTATE_DIR
972 SYSCONF_DIR
973 DOC_DIR
974 DATA_DIR
975 LIBEXEC_DIR
976 SBIN_DIR
977 BIN_DIR
978 EXEC_PREFIX_DIR
979 PREFIX_DIR
980 CONFIG_STATUS_DEPENDENCIES
981 MAGICK_LIB_VERSION_NUMBER
982 MAGICK_LIB_VERSION_TEXT
983 MAGICK_LIB_VERSION
984 AM_BACKSLASH
985 AM_DEFAULT_VERBOSITY
986 am__untar
987 am__tar
988 AMTAR
989 am__leading_dot
990 SET_MAKE
991 AWK
992 mkdir_p
993 MKDIR_P
994 INSTALL_STRIP_PROGRAM
995 STRIP
996 install_sh
997 MAKEINFO
998 AUTOHEADER
999 AUTOMAKE
1000 AUTOCONF
1001 ACLOCAL
1002 VERSION
1003 PACKAGE
1004 CYGPATH_W
1005 am__isrc
1006 INSTALL_DATA
1007 INSTALL_SCRIPT
1008 INSTALL_PROGRAM
1009 PACKAGE_VERSION_ADDENDUM
1010 PACKAGE_RELEASE_DATE
1011 PACKAGE_LIB_VERSION_NUMBER
1012 PACKAGE_LIB_VERSION
1013 PACKAGE_CHANGE_DATE
1014 PACKAGE_RELEASE
1015 PACKAGE_PERL_VERSION
1016 MAGICK_SVN_REVISION
1017 MAGICK_LIBRARY_VERSION_INFO
1018 MAGICK_LIBRARY_CURRENT_MIN
1019 MAGICK_LIBRARY_AGE
1020 MAGICK_LIBRARY_REVISION
1021 MAGICK_LIBRARY_CURRENT
1022 MAGICK_TARGET_OS
1023 MAGICK_TARGET_VENDOR
1024 MAGICK_TARGET_CPU
1025 target_os
1026 target_vendor
1027 target_cpu
1028 target
1029 host_os
1030 host_vendor
1031 host_cpu
1032 host
1033 build_os
1034 build_vendor
1035 build_cpu
1036 build
1037 CONFIGURE_ARGS
1038 DISTCHECK_CONFIG_FLAGS
1039 target_alias
1040 host_alias
1041 build_alias
1042 LIBS
1043 ECHO_T
1044 ECHO_N
1045 ECHO_C
1046 DEFS
1047 mandir
1048 localedir
1049 libdir
1050 psdir
1051 pdfdir
1052 dvidir
1053 htmldir
1054 infodir
1055 docdir
1056 oldincludedir
1057 includedir
1058 localstatedir
1059 sharedstatedir
1060 sysconfdir
1061 datadir
1062 datarootdir
1063 libexecdir
1064 sbindir
1065 bindir
1066 program_transform_name
1067 prefix
1068 exec_prefix
1069 PACKAGE_URL
1070 PACKAGE_BUGREPORT
1071 PACKAGE_STRING
1072 PACKAGE_VERSION
1073 PACKAGE_TARNAME
1074 PACKAGE_NAME
1075 PATH_SEPARATOR
1076 SHELL'
1077 ac_subst_files=''
1078 ac_user_opts='
1079 enable_option_checking
1080 enable_silent_rules
1081 enable_dependency_tracking
1082 with_gnu_ld
1083 with_dmalloc
1084 enable_bounds_checking
1085 enable_osx_universal_binary
1086 with_threads
1087 enable_openmp
1088 enable_opencl
1089 enable_largefile
1090 with_includedir_arch
1091 with_configdir_arch
1092 enable_shared
1093 enable_static
1094 with_pic
1095 enable_fast_install
1096 with_sysroot
1097 enable_libtool_lock
1098 with_included_ltdl
1099 with_ltdl_include
1100 with_ltdl_lib
1101 enable_ltdl_install
1102 with_modules
1103 enable_delegate_build
1104 enable_deprecated
1105 enable_installed
1106 enable_cipher
1107 enable_zero_configuration
1108 enable_hdri
1109 enable_assert
1110 enable_maintainer_mode
1111 enable_ccmalloc
1112 enable_efence
1113 enable_prof
1114 enable_gprof
1115 enable_gcov
1116 with_method_prefix
1117 with_quantum_depth
1118 with_cache
1119 with_frozenpaths
1120 with_magick_plus_plus
1121 with_perl
1122 with_perl_options
1123 with_umem
1124 with_libstdc
1125 with_bzlib
1126 with_x
1127 with_zlib
1128 with_autotrace
1129 with_dps
1130 with_djvu
1131 with_dejavu_font_dir
1132 with_fftw
1133 with_fpx
1134 with_fontconfig
1135 with_freetype
1136 with_gslib
1137 with_fontpath
1138 with_gs_font_dir
1139 with_gvc
1140 with_jbig
1141 with_jpeg
1142 with_jp2
1143 with_lcms
1144 with_lcms2
1145 with_lqr
1146 with_lzma
1147 with_openexr
1148 with_pango
1149 with_png
1150 with_rsvg
1151 with_tiff
1152 with_webp
1153 with_windows_font_dir
1154 with_wmf
1155 with_xml
1156 '
1157       ac_precious_vars='build_alias
1158 host_alias
1159 target_alias
1160 CC
1161 CFLAGS
1162 LDFLAGS
1163 LIBS
1164 CPPFLAGS
1165 CPP
1166 CXX
1167 CXXFLAGS
1168 CCC
1169 PKG_CONFIG
1170 CXXCPP
1171 XMKMF
1172 AUTOTRACE_CFLAGS
1173 AUTOTRACE_LIBS
1174 FONTCONFIG_CFLAGS
1175 FONTCONFIG_LIBS
1176 GVC_CFLAGS
1177 GVC_LIBS
1178 LQR_CFLAGS
1179 LQR_LIBS
1180 OPENEXR_CFLAGS
1181 OPENEXR_LIBS
1182 PANGO_CFLAGS
1183 PANGO_LIBS
1184 RSVG_CFLAGS
1185 RSVG_LIBS
1186 CAIRO_SVG_CFLAGS
1187 CAIRO_SVG_LIBS'
1188
1189
1190 # Initialize some variables set by options.
1191 ac_init_help=
1192 ac_init_version=false
1193 ac_unrecognized_opts=
1194 ac_unrecognized_sep=
1195 # The variables have the same names as the options, with
1196 # dashes changed to underlines.
1197 cache_file=/dev/null
1198 exec_prefix=NONE
1199 no_create=
1200 no_recursion=
1201 prefix=NONE
1202 program_prefix=NONE
1203 program_suffix=NONE
1204 program_transform_name=s,x,x,
1205 silent=
1206 site=
1207 srcdir=
1208 verbose=
1209 x_includes=NONE
1210 x_libraries=NONE
1211
1212 # Installation directory options.
1213 # These are left unexpanded so users can "make install exec_prefix=/foo"
1214 # and all the variables that are supposed to be based on exec_prefix
1215 # by default will actually change.
1216 # Use braces instead of parens because sh, perl, etc. also accept them.
1217 # (The list follows the same order as the GNU Coding Standards.)
1218 bindir='${exec_prefix}/bin'
1219 sbindir='${exec_prefix}/sbin'
1220 libexecdir='${exec_prefix}/libexec'
1221 datarootdir='${prefix}/share'
1222 datadir='${datarootdir}'
1223 sysconfdir='${prefix}/etc'
1224 sharedstatedir='${prefix}/com'
1225 localstatedir='${prefix}/var'
1226 includedir='${prefix}/include'
1227 oldincludedir='/usr/include'
1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1229 infodir='${datarootdir}/info'
1230 htmldir='${docdir}'
1231 dvidir='${docdir}'
1232 pdfdir='${docdir}'
1233 psdir='${docdir}'
1234 libdir='${exec_prefix}/lib'
1235 localedir='${datarootdir}/locale'
1236 mandir='${datarootdir}/man'
1237
1238 ac_prev=
1239 ac_dashdash=
1240 for ac_option
1241 do
1242   # If the previous option needs an argument, assign it.
1243   if test -n "$ac_prev"; then
1244     eval $ac_prev=\$ac_option
1245     ac_prev=
1246     continue
1247   fi
1248
1249   case $ac_option in
1250   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1251   *=)   ac_optarg= ;;
1252   *)    ac_optarg=yes ;;
1253   esac
1254
1255   # Accept the important Cygnus configure options, so we can diagnose typos.
1256
1257   case $ac_dashdash$ac_option in
1258   --)
1259     ac_dashdash=yes ;;
1260
1261   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1262     ac_prev=bindir ;;
1263   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1264     bindir=$ac_optarg ;;
1265
1266   -build | --build | --buil | --bui | --bu)
1267     ac_prev=build_alias ;;
1268   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1269     build_alias=$ac_optarg ;;
1270
1271   -cache-file | --cache-file | --cache-fil | --cache-fi \
1272   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1273     ac_prev=cache_file ;;
1274   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1275   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1276     cache_file=$ac_optarg ;;
1277
1278   --config-cache | -C)
1279     cache_file=config.cache ;;
1280
1281   -datadir | --datadir | --datadi | --datad)
1282     ac_prev=datadir ;;
1283   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1284     datadir=$ac_optarg ;;
1285
1286   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1287   | --dataroo | --dataro | --datar)
1288     ac_prev=datarootdir ;;
1289   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1290   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1291     datarootdir=$ac_optarg ;;
1292
1293   -disable-* | --disable-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       as_fn_error $? "invalid feature name: $ac_useropt"
1298     ac_useropt_orig=$ac_useropt
1299     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1300     case $ac_user_opts in
1301       *"
1302 "enable_$ac_useropt"
1303 "*) ;;
1304       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1305          ac_unrecognized_sep=', ';;
1306     esac
1307     eval enable_$ac_useropt=no ;;
1308
1309   -docdir | --docdir | --docdi | --doc | --do)
1310     ac_prev=docdir ;;
1311   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1312     docdir=$ac_optarg ;;
1313
1314   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1315     ac_prev=dvidir ;;
1316   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1317     dvidir=$ac_optarg ;;
1318
1319   -enable-* | --enable-*)
1320     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1321     # Reject names that are not valid shell variable names.
1322     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1323       as_fn_error $? "invalid feature name: $ac_useropt"
1324     ac_useropt_orig=$ac_useropt
1325     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1326     case $ac_user_opts in
1327       *"
1328 "enable_$ac_useropt"
1329 "*) ;;
1330       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1331          ac_unrecognized_sep=', ';;
1332     esac
1333     eval enable_$ac_useropt=\$ac_optarg ;;
1334
1335   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1336   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1337   | --exec | --exe | --ex)
1338     ac_prev=exec_prefix ;;
1339   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1340   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1341   | --exec=* | --exe=* | --ex=*)
1342     exec_prefix=$ac_optarg ;;
1343
1344   -gas | --gas | --ga | --g)
1345     # Obsolete; use --with-gas.
1346     with_gas=yes ;;
1347
1348   -help | --help | --hel | --he | -h)
1349     ac_init_help=long ;;
1350   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1351     ac_init_help=recursive ;;
1352   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1353     ac_init_help=short ;;
1354
1355   -host | --host | --hos | --ho)
1356     ac_prev=host_alias ;;
1357   -host=* | --host=* | --hos=* | --ho=*)
1358     host_alias=$ac_optarg ;;
1359
1360   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1361     ac_prev=htmldir ;;
1362   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1363   | --ht=*)
1364     htmldir=$ac_optarg ;;
1365
1366   -includedir | --includedir | --includedi | --included | --include \
1367   | --includ | --inclu | --incl | --inc)
1368     ac_prev=includedir ;;
1369   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1370   | --includ=* | --inclu=* | --incl=* | --inc=*)
1371     includedir=$ac_optarg ;;
1372
1373   -infodir | --infodir | --infodi | --infod | --info | --inf)
1374     ac_prev=infodir ;;
1375   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1376     infodir=$ac_optarg ;;
1377
1378   -libdir | --libdir | --libdi | --libd)
1379     ac_prev=libdir ;;
1380   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1381     libdir=$ac_optarg ;;
1382
1383   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1384   | --libexe | --libex | --libe)
1385     ac_prev=libexecdir ;;
1386   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1387   | --libexe=* | --libex=* | --libe=*)
1388     libexecdir=$ac_optarg ;;
1389
1390   -localedir | --localedir | --localedi | --localed | --locale)
1391     ac_prev=localedir ;;
1392   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1393     localedir=$ac_optarg ;;
1394
1395   -localstatedir | --localstatedir | --localstatedi | --localstated \
1396   | --localstate | --localstat | --localsta | --localst | --locals)
1397     ac_prev=localstatedir ;;
1398   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1399   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1400     localstatedir=$ac_optarg ;;
1401
1402   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1403     ac_prev=mandir ;;
1404   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1405     mandir=$ac_optarg ;;
1406
1407   -nfp | --nfp | --nf)
1408     # Obsolete; use --without-fp.
1409     with_fp=no ;;
1410
1411   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1412   | --no-cr | --no-c | -n)
1413     no_create=yes ;;
1414
1415   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1416   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1417     no_recursion=yes ;;
1418
1419   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1420   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1421   | --oldin | --oldi | --old | --ol | --o)
1422     ac_prev=oldincludedir ;;
1423   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1424   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1425   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1426     oldincludedir=$ac_optarg ;;
1427
1428   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1429     ac_prev=prefix ;;
1430   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1431     prefix=$ac_optarg ;;
1432
1433   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1434   | --program-pre | --program-pr | --program-p)
1435     ac_prev=program_prefix ;;
1436   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1437   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1438     program_prefix=$ac_optarg ;;
1439
1440   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1441   | --program-suf | --program-su | --program-s)
1442     ac_prev=program_suffix ;;
1443   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1444   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1445     program_suffix=$ac_optarg ;;
1446
1447   -program-transform-name | --program-transform-name \
1448   | --program-transform-nam | --program-transform-na \
1449   | --program-transform-n | --program-transform- \
1450   | --program-transform | --program-transfor \
1451   | --program-transfo | --program-transf \
1452   | --program-trans | --program-tran \
1453   | --progr-tra | --program-tr | --program-t)
1454     ac_prev=program_transform_name ;;
1455   -program-transform-name=* | --program-transform-name=* \
1456   | --program-transform-nam=* | --program-transform-na=* \
1457   | --program-transform-n=* | --program-transform-=* \
1458   | --program-transform=* | --program-transfor=* \
1459   | --program-transfo=* | --program-transf=* \
1460   | --program-trans=* | --program-tran=* \
1461   | --progr-tra=* | --program-tr=* | --program-t=*)
1462     program_transform_name=$ac_optarg ;;
1463
1464   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1465     ac_prev=pdfdir ;;
1466   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1467     pdfdir=$ac_optarg ;;
1468
1469   -psdir | --psdir | --psdi | --psd | --ps)
1470     ac_prev=psdir ;;
1471   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1472     psdir=$ac_optarg ;;
1473
1474   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1475   | -silent | --silent | --silen | --sile | --sil)
1476     silent=yes ;;
1477
1478   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1479     ac_prev=sbindir ;;
1480   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1481   | --sbi=* | --sb=*)
1482     sbindir=$ac_optarg ;;
1483
1484   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1485   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1486   | --sharedst | --shareds | --shared | --share | --shar \
1487   | --sha | --sh)
1488     ac_prev=sharedstatedir ;;
1489   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1490   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1491   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1492   | --sha=* | --sh=*)
1493     sharedstatedir=$ac_optarg ;;
1494
1495   -site | --site | --sit)
1496     ac_prev=site ;;
1497   -site=* | --site=* | --sit=*)
1498     site=$ac_optarg ;;
1499
1500   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1501     ac_prev=srcdir ;;
1502   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1503     srcdir=$ac_optarg ;;
1504
1505   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1506   | --syscon | --sysco | --sysc | --sys | --sy)
1507     ac_prev=sysconfdir ;;
1508   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1509   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1510     sysconfdir=$ac_optarg ;;
1511
1512   -target | --target | --targe | --targ | --tar | --ta | --t)
1513     ac_prev=target_alias ;;
1514   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1515     target_alias=$ac_optarg ;;
1516
1517   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1518     verbose=yes ;;
1519
1520   -version | --version | --versio | --versi | --vers | -V)
1521     ac_init_version=: ;;
1522
1523   -with-* | --with-*)
1524     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1525     # Reject names that are not valid shell variable names.
1526     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1527       as_fn_error $? "invalid package name: $ac_useropt"
1528     ac_useropt_orig=$ac_useropt
1529     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1530     case $ac_user_opts in
1531       *"
1532 "with_$ac_useropt"
1533 "*) ;;
1534       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1535          ac_unrecognized_sep=', ';;
1536     esac
1537     eval with_$ac_useropt=\$ac_optarg ;;
1538
1539   -without-* | --without-*)
1540     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1541     # Reject names that are not valid shell variable names.
1542     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1543       as_fn_error $? "invalid package name: $ac_useropt"
1544     ac_useropt_orig=$ac_useropt
1545     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1546     case $ac_user_opts in
1547       *"
1548 "with_$ac_useropt"
1549 "*) ;;
1550       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1551          ac_unrecognized_sep=', ';;
1552     esac
1553     eval with_$ac_useropt=no ;;
1554
1555   --x)
1556     # Obsolete; use --with-x.
1557     with_x=yes ;;
1558
1559   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1560   | --x-incl | --x-inc | --x-in | --x-i)
1561     ac_prev=x_includes ;;
1562   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1563   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1564     x_includes=$ac_optarg ;;
1565
1566   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1567   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1568     ac_prev=x_libraries ;;
1569   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1570   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1571     x_libraries=$ac_optarg ;;
1572
1573   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1574 Try \`$0 --help' for more information"
1575     ;;
1576
1577   *=*)
1578     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1579     # Reject names that are not valid shell variable names.
1580     case $ac_envvar in #(
1581       '' | [0-9]* | *[!_$as_cr_alnum]* )
1582       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1583     esac
1584     eval $ac_envvar=\$ac_optarg
1585     export $ac_envvar ;;
1586
1587   *)
1588     # FIXME: should be removed in autoconf 3.0.
1589     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1590     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1591       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1592     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1593     ;;
1594
1595   esac
1596 done
1597
1598 if test -n "$ac_prev"; then
1599   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1600   as_fn_error $? "missing argument to $ac_option"
1601 fi
1602
1603 if test -n "$ac_unrecognized_opts"; then
1604   case $enable_option_checking in
1605     no) ;;
1606     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1607     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1608   esac
1609 fi
1610
1611 # Check all directory arguments for consistency.
1612 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1613                 datadir sysconfdir sharedstatedir localstatedir includedir \
1614                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1615                 libdir localedir mandir
1616 do
1617   eval ac_val=\$$ac_var
1618   # Remove trailing slashes.
1619   case $ac_val in
1620     */ )
1621       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1622       eval $ac_var=\$ac_val;;
1623   esac
1624   # Be sure to have absolute directory names.
1625   case $ac_val in
1626     [\\/$]* | ?:[\\/]* )  continue;;
1627     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1628   esac
1629   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1630 done
1631
1632 # There might be people who depend on the old broken behavior: `$host'
1633 # used to hold the argument of --host etc.
1634 # FIXME: To remove some day.
1635 build=$build_alias
1636 host=$host_alias
1637 target=$target_alias
1638
1639 # FIXME: To remove some day.
1640 if test "x$host_alias" != x; then
1641   if test "x$build_alias" = x; then
1642     cross_compiling=maybe
1643     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1644     If a cross compiler is detected then cross compile mode will be used" >&2
1645   elif test "x$build_alias" != "x$host_alias"; then
1646     cross_compiling=yes
1647   fi
1648 fi
1649
1650 ac_tool_prefix=
1651 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1652
1653 test "$silent" = yes && exec 6>/dev/null
1654
1655
1656 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1657 ac_ls_di=`ls -di .` &&
1658 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1659   as_fn_error $? "working directory cannot be determined"
1660 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1661   as_fn_error $? "pwd does not report name of working directory"
1662
1663
1664 # Find the source files, if location was not specified.
1665 if test -z "$srcdir"; then
1666   ac_srcdir_defaulted=yes
1667   # Try the directory containing this script, then the parent directory.
1668   ac_confdir=`$as_dirname -- "$as_myself" ||
1669 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1670          X"$as_myself" : 'X\(//\)[^/]' \| \
1671          X"$as_myself" : 'X\(//\)$' \| \
1672          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1673 $as_echo X"$as_myself" |
1674     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1675             s//\1/
1676             q
1677           }
1678           /^X\(\/\/\)[^/].*/{
1679             s//\1/
1680             q
1681           }
1682           /^X\(\/\/\)$/{
1683             s//\1/
1684             q
1685           }
1686           /^X\(\/\).*/{
1687             s//\1/
1688             q
1689           }
1690           s/.*/./; q'`
1691   srcdir=$ac_confdir
1692   if test ! -r "$srcdir/$ac_unique_file"; then
1693     srcdir=..
1694   fi
1695 else
1696   ac_srcdir_defaulted=no
1697 fi
1698 if test ! -r "$srcdir/$ac_unique_file"; then
1699   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1700   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1701 fi
1702 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1703 ac_abs_confdir=`(
1704         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1705         pwd)`
1706 # When building in place, set srcdir=.
1707 if test "$ac_abs_confdir" = "$ac_pwd"; then
1708   srcdir=.
1709 fi
1710 # Remove unnecessary trailing slashes from srcdir.
1711 # Double slashes in file names in object file debugging info
1712 # mess up M-x gdb in Emacs.
1713 case $srcdir in
1714 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1715 esac
1716 for ac_var in $ac_precious_vars; do
1717   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1718   eval ac_env_${ac_var}_value=\$${ac_var}
1719   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1720   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1721 done
1722
1723 #
1724 # Report the --help message.
1725 #
1726 if test "$ac_init_help" = "long"; then
1727   # Omit some internal or obsolete options to make the list less imposing.
1728   # This message is too long to be a string in the A/UX 3.1 sh.
1729   cat <<_ACEOF
1730 \`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
1731
1732 Usage: $0 [OPTION]... [VAR=VALUE]...
1733
1734 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1735 VAR=VALUE.  See below for descriptions of some of the useful variables.
1736
1737 Defaults for the options are specified in brackets.
1738
1739 Configuration:
1740   -h, --help              display this help and exit
1741       --help=short        display options specific to this package
1742       --help=recursive    display the short help of all the included packages
1743   -V, --version           display version information and exit
1744   -q, --quiet, --silent   do not print \`checking ...' messages
1745       --cache-file=FILE   cache test results in FILE [disabled]
1746   -C, --config-cache      alias for \`--cache-file=config.cache'
1747   -n, --no-create         do not create output files
1748       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1749
1750 Installation directories:
1751   --prefix=PREFIX         install architecture-independent files in PREFIX
1752                           [$ac_default_prefix]
1753   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1754                           [PREFIX]
1755
1756 By default, \`make install' will install all the files in
1757 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1758 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1759 for instance \`--prefix=\$HOME'.
1760
1761 For better control, use the options below.
1762
1763 Fine tuning of the installation directories:
1764   --bindir=DIR            user executables [EPREFIX/bin]
1765   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1766   --libexecdir=DIR        program executables [EPREFIX/libexec]
1767   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1768   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1769   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1770   --libdir=DIR            object code libraries [EPREFIX/lib]
1771   --includedir=DIR        C header files [PREFIX/include]
1772   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1773   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1774   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1775   --infodir=DIR           info documentation [DATAROOTDIR/info]
1776   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1777   --mandir=DIR            man documentation [DATAROOTDIR/man]
1778   --docdir=DIR            documentation root [DATAROOTDIR/doc/ImageMagick]
1779   --htmldir=DIR           html documentation [DOCDIR]
1780   --dvidir=DIR            dvi documentation [DOCDIR]
1781   --pdfdir=DIR            pdf documentation [DOCDIR]
1782   --psdir=DIR             ps documentation [DOCDIR]
1783 _ACEOF
1784
1785   cat <<\_ACEOF
1786
1787 Program names:
1788   --program-prefix=PREFIX            prepend PREFIX to installed program names
1789   --program-suffix=SUFFIX            append SUFFIX to installed program names
1790   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1791
1792 X features:
1793   --x-includes=DIR    X include files are in DIR
1794   --x-libraries=DIR   X library files are in DIR
1795
1796 System types:
1797   --build=BUILD     configure for building on BUILD [guessed]
1798   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1799   --target=TARGET   configure for building compilers for TARGET [HOST]
1800 _ACEOF
1801 fi
1802
1803 if test -n "$ac_init_help"; then
1804   case $ac_init_help in
1805      short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
1806    esac
1807   cat <<\_ACEOF
1808
1809 Optional Features:
1810   --disable-option-checking  ignore unrecognized --enable/--with options
1811   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1812   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1813   --enable-silent-rules          less verbose build output (undo: `make V=1')
1814   --disable-silent-rules         verbose build output (undo: `make V=0')
1815   --disable-dependency-tracking  speeds up one-time build
1816   --enable-dependency-tracking   do not reject slow dependency extractors
1817   --bounds-checking       enable run-time bounds-checking
1818   --enable-osx-universal-binary
1819                           build universal binary on OS X [[default=no]]
1820   --disable-openmp        do not use OpenMP
1821   --disable-opencl        do not use OpenCL
1822   --disable-largefile     omit support for large files
1823   --enable-shared[=PKGS]  build shared libraries [default=yes]
1824   --enable-static[=PKGS]  build static libraries [default=yes]
1825   --enable-fast-install[=PKGS]
1826                           optimize for fast installation [default=yes]
1827   --disable-libtool-lock  avoid locking (might break parallel builds)
1828   --enable-ltdl-install   install libltdl
1829   --enable-delegate-build look for delegate libraries in build directory
1830   --disable-deprecated    exclude deprecated methods in MagickCore and
1831                           MagickWand API's
1832   --disable-installed     Formally install ImageMagick under PREFIX
1833   --disable-cipher        disable enciphering and deciphering image pixels
1834   --enable-zero-configuration
1835                           enable self-contained, embeddable,
1836                           zero-configuration ImageMagick
1837   --enable-hdri           accurately represent the wide range of intensity
1838                           levels found in real scenes
1839   --disable-assert        disable assert() statements in build
1840   --enable-maintainer-mode  enable make rules and dependencies not useful
1841                           (and sometimes confusing) to the casual installer
1842   --enable-ccmalloc       enable 'ccmalloc' memory debug support
1843   --enable-efence         enable 'efence' memory debug support
1844   --enable-prof           enable 'prof' profiling support
1845   --enable-gprof          enable 'gprof' profiling support
1846   --enable-gcov           enable 'gcov' profiling support
1847   --disable-assert        turn off assertions
1848
1849 Optional Packages:
1850   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1851   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1852   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1853   --with-dmalloc          use dmalloc, as in
1854                           http://www.dmalloc.com/dmalloc.tar.gz
1855   --without-threads       disable threads support
1856   --includedir-arch=DIR   ARCH specific include directory
1857   --configdir-arch=DIR    ARCH specific config directory
1858   --with-pic              try to use only PIC/non-PIC objects [default=use
1859                           both]
1860   --with-sysroot=DIR Search for dependent libraries within DIR
1861                         (or the compiler's sysroot if not specified).
1862   --with-included-ltdl    use the GNU ltdl sources included here
1863   --with-ltdl-include=DIR use the ltdl headers installed in DIR
1864   --with-ltdl-lib=DIR     use the libltdl.la installed in DIR
1865   --with-modules          enable building dynamically loadable modules
1866   --with-method-prefix=PREFIX
1867                           prefix MagickCore API methods
1868   --with-quantum-depth=DEPTH
1869                           number of bits in a pixel quantum (default 16)
1870   --with-cache=THRESHOLD  set pixel cache threshhold in MB (default available
1871                           memory)
1872   --with-frozenpaths      freeze delegate paths
1873   --without-magick-plus-plus
1874                           disable build/install of Magick++
1875   --with-perl             enable build/install of PerlMagick
1876   --with-perl-options=OPTIONS
1877                           options to pass on command-line when generating
1878                           PerlMagick's build file
1879   --with-umem             enable umem memory allocation library support
1880   --with-libstdc=DIR      use libstdc++ in DIR (for GNU C++)
1881   --without-bzlib         disable BZLIB support
1882   --with-x                use the X Window System
1883   --without-zlib          disable ZLIB support
1884   --with-autotrace        enable autotrace support
1885   --without-dps           disable Display Postscript support
1886   --without-djvu          disable DjVu support
1887   --with-dejavu-font-dir=DIR
1888                           DejaVu font directory
1889   --without-fftw          disable FFTW support
1890   --without-fpx           disable FlashPIX support
1891   --without-fontconfig    disable fontconfig support
1892   --without-freetype      disable Freetype support
1893   --without-gslib         enable Ghostscript library support
1894   --with-fontpath=DIR     prepend to default font search path
1895   --with-gs-font-dir=DIR  Ghostscript font directory
1896   --without-gvc           disable GVC support
1897   --without-jbig          disable JBIG support
1898   --without-jpeg          disable JPEG support
1899   --without-jp2           disable JPEG-2000 support
1900   --without-lcms          disable lcms (v1.1X) support
1901   --without-lcms2         disable lcms (v2.X) support
1902   --without-lqr           disable Liquid Rescale support
1903   --without-lzma          disable LZMA support
1904   --without-openexr       disable OpenEXR support
1905   --without-pango         disable PANGO support
1906   --without-png           disable PNG support
1907   --without-rsvg          disable RSVG support
1908   --without-tiff          disable TIFF support
1909   --without-webp          disable WEBP support
1910   --with-windows-font-dir=DIR
1911                           directory containing MS-Windows fonts
1912   --without-wmf           disable WMF support
1913   --without-xml           disable XML support
1914
1915 Some influential environment variables:
1916   CC          C compiler command
1917   CFLAGS      C compiler flags
1918   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1919               nonstandard directory <lib dir>
1920   LIBS        libraries to pass to the linker, e.g. -l<library>
1921   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1922               you have headers in a nonstandard directory <include dir>
1923   CPP         C preprocessor
1924   CXX         C++ compiler command
1925   CXXFLAGS    C++ compiler flags
1926   PKG_CONFIG  path to pkg-config utility
1927   CXXCPP      C++ preprocessor
1928   XMKMF       Path to xmkmf, Makefile generator for X Window System
1929   AUTOTRACE_CFLAGS
1930               C compiler flags for AUTOTRACE, overriding pkg-config
1931   AUTOTRACE_LIBS
1932               linker flags for AUTOTRACE, overriding pkg-config
1933   FONTCONFIG_CFLAGS
1934               C compiler flags for FONTCONFIG, overriding pkg-config
1935   FONTCONFIG_LIBS
1936               linker flags for FONTCONFIG, overriding pkg-config
1937   GVC_CFLAGS  C compiler flags for GVC, overriding pkg-config
1938   GVC_LIBS    linker flags for GVC, overriding pkg-config
1939   LQR_CFLAGS  C compiler flags for LQR, overriding pkg-config
1940   LQR_LIBS    linker flags for LQR, overriding pkg-config
1941   OPENEXR_CFLAGS
1942               C compiler flags for OPENEXR, overriding pkg-config
1943   OPENEXR_LIBS
1944               linker flags for OPENEXR, overriding pkg-config
1945   PANGO_CFLAGS
1946               C compiler flags for PANGO, overriding pkg-config
1947   PANGO_LIBS  linker flags for PANGO, overriding pkg-config
1948   RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1949   RSVG_LIBS   linker flags for RSVG, overriding pkg-config
1950   CAIRO_SVG_CFLAGS
1951               C compiler flags for CAIRO_SVG, overriding pkg-config
1952   CAIRO_SVG_LIBS
1953               linker flags for CAIRO_SVG, overriding pkg-config
1954
1955 Use these variables to override the choices made by `configure' or to help
1956 it to find libraries and programs with nonstandard names/locations.
1957
1958 Report bugs to <http://www.imagemagick.org>.
1959 _ACEOF
1960 ac_status=$?
1961 fi
1962
1963 if test "$ac_init_help" = "recursive"; then
1964   # If there are subdirs, report their specific --help.
1965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966     test -d "$ac_dir" ||
1967       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1968       continue
1969     ac_builddir=.
1970
1971 case "$ac_dir" in
1972 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1973 *)
1974   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1975   # A ".." for each directory in $ac_dir_suffix.
1976   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1977   case $ac_top_builddir_sub in
1978   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1979   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1980   esac ;;
1981 esac
1982 ac_abs_top_builddir=$ac_pwd
1983 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1984 # for backward compatibility:
1985 ac_top_builddir=$ac_top_build_prefix
1986
1987 case $srcdir in
1988   .)  # We are building in place.
1989     ac_srcdir=.
1990     ac_top_srcdir=$ac_top_builddir_sub
1991     ac_abs_top_srcdir=$ac_pwd ;;
1992   [\\/]* | ?:[\\/]* )  # Absolute name.
1993     ac_srcdir=$srcdir$ac_dir_suffix;
1994     ac_top_srcdir=$srcdir
1995     ac_abs_top_srcdir=$srcdir ;;
1996   *) # Relative name.
1997     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1998     ac_top_srcdir=$ac_top_build_prefix$srcdir
1999     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2000 esac
2001 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2002
2003     cd "$ac_dir" || { ac_status=$?; continue; }
2004     # Check for guested configure.
2005     if test -f "$ac_srcdir/configure.gnu"; then
2006       echo &&
2007       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2008     elif test -f "$ac_srcdir/configure"; then
2009       echo &&
2010       $SHELL "$ac_srcdir/configure" --help=recursive
2011     else
2012       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2013     fi || ac_status=$?
2014     cd "$ac_pwd" || { ac_status=$?; break; }
2015   done
2016 fi
2017
2018 test -n "$ac_init_help" && exit $ac_status
2019 if $ac_init_version; then
2020   cat <<\_ACEOF
2021 ImageMagick configure 7.0.0-0
2022 generated by GNU Autoconf 2.68
2023
2024 Copyright (C) 2010 Free Software Foundation, Inc.
2025 This configure script is free software; the Free Software Foundation
2026 gives unlimited permission to copy, distribute and modify it.
2027 _ACEOF
2028   exit
2029 fi
2030
2031 ## ------------------------ ##
2032 ## Autoconf initialization. ##
2033 ## ------------------------ ##
2034
2035 # ac_fn_c_try_compile LINENO
2036 # --------------------------
2037 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2038 ac_fn_c_try_compile ()
2039 {
2040   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041   rm -f conftest.$ac_objext
2042   if { { ac_try="$ac_compile"
2043 case "(($ac_try" in
2044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2045   *) ac_try_echo=$ac_try;;
2046 esac
2047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2048 $as_echo "$ac_try_echo"; } >&5
2049   (eval "$ac_compile") 2>conftest.err
2050   ac_status=$?
2051   if test -s conftest.err; then
2052     grep -v '^ *+' conftest.err >conftest.er1
2053     cat conftest.er1 >&5
2054     mv -f conftest.er1 conftest.err
2055   fi
2056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057   test $ac_status = 0; } && {
2058          test -z "$ac_c_werror_flag" ||
2059          test ! -s conftest.err
2060        } && test -s conftest.$ac_objext; then :
2061   ac_retval=0
2062 else
2063   $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066         ac_retval=1
2067 fi
2068   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2069   as_fn_set_status $ac_retval
2070
2071 } # ac_fn_c_try_compile
2072
2073 # ac_fn_c_try_cpp LINENO
2074 # ----------------------
2075 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076 ac_fn_c_try_cpp ()
2077 {
2078   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2079   if { { ac_try="$ac_cpp conftest.$ac_ext"
2080 case "(($ac_try" in
2081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2082   *) ac_try_echo=$ac_try;;
2083 esac
2084 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2087   ac_status=$?
2088   if test -s conftest.err; then
2089     grep -v '^ *+' conftest.err >conftest.er1
2090     cat conftest.er1 >&5
2091     mv -f conftest.er1 conftest.err
2092   fi
2093   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2094   test $ac_status = 0; } > conftest.i && {
2095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2096          test ! -s conftest.err
2097        }; then :
2098   ac_retval=0
2099 else
2100   $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2102
2103     ac_retval=1
2104 fi
2105   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106   as_fn_set_status $ac_retval
2107
2108 } # ac_fn_c_try_cpp
2109
2110 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2111 # -------------------------------------------------------
2112 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2113 # the include files in INCLUDES and setting the cache variable VAR
2114 # accordingly.
2115 ac_fn_c_check_header_mongrel ()
2116 {
2117   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118   if eval \${$3+:} false; then :
2119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \${$3+:} false; then :
2122   $as_echo_n "(cached) " >&6
2123 fi
2124 eval ac_res=\$$3
2125                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 else
2128   # Is the header compilable?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2130 $as_echo_n "checking $2 usability... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h.  */
2133 $4
2134 #include <$2>
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137   ac_header_compiler=yes
2138 else
2139   ac_header_compiler=no
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2143 $as_echo "$ac_header_compiler" >&6; }
2144
2145 # Is the header present?
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2147 $as_echo_n "checking $2 presence... " >&6; }
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h.  */
2150 #include <$2>
2151 _ACEOF
2152 if ac_fn_c_try_cpp "$LINENO"; then :
2153   ac_header_preproc=yes
2154 else
2155   ac_header_preproc=no
2156 fi
2157 rm -f conftest.err conftest.i conftest.$ac_ext
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2159 $as_echo "$ac_header_preproc" >&6; }
2160
2161 # So?  What about this header?
2162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2163   yes:no: )
2164     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2165 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2166     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2167 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2168     ;;
2169   no:yes:* )
2170     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2171 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2172     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2173 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2174     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2175 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2176     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2177 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2178     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2179 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2180 ( $as_echo "## ----------------------------------------- ##
2181 ## Report this to http://www.imagemagick.org ##
2182 ## ----------------------------------------- ##"
2183      ) | sed "s/^/$as_me: WARNING:     /" >&2
2184     ;;
2185 esac
2186   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2187 $as_echo_n "checking for $2... " >&6; }
2188 if eval \${$3+:} false; then :
2189   $as_echo_n "(cached) " >&6
2190 else
2191   eval "$3=\$ac_header_compiler"
2192 fi
2193 eval ac_res=\$$3
2194                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196 fi
2197   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2198
2199 } # ac_fn_c_check_header_mongrel
2200
2201 # ac_fn_c_try_run LINENO
2202 # ----------------------
2203 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2204 # that executables *can* be run.
2205 ac_fn_c_try_run ()
2206 {
2207   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2208   if { { ac_try="$ac_link"
2209 case "(($ac_try" in
2210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2211   *) ac_try_echo=$ac_try;;
2212 esac
2213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2214 $as_echo "$ac_try_echo"; } >&5
2215   (eval "$ac_link") 2>&5
2216   ac_status=$?
2217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2218   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2219   { { case "(($ac_try" in
2220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221   *) ac_try_echo=$ac_try;;
2222 esac
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225   (eval "$ac_try") 2>&5
2226   ac_status=$?
2227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228   test $ac_status = 0; }; }; then :
2229   ac_retval=0
2230 else
2231   $as_echo "$as_me: program exited with status $ac_status" >&5
2232        $as_echo "$as_me: failed program was:" >&5
2233 sed 's/^/| /' conftest.$ac_ext >&5
2234
2235        ac_retval=$ac_status
2236 fi
2237   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2238   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2239   as_fn_set_status $ac_retval
2240
2241 } # ac_fn_c_try_run
2242
2243 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2244 # -------------------------------------------------------
2245 # Tests whether HEADER exists and can be compiled using the include files in
2246 # INCLUDES, setting the cache variable VAR accordingly.
2247 ac_fn_c_check_header_compile ()
2248 {
2249   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if eval \${$3+:} false; then :
2253   $as_echo_n "(cached) " >&6
2254 else
2255   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2256 /* end confdefs.h.  */
2257 $4
2258 #include <$2>
2259 _ACEOF
2260 if ac_fn_c_try_compile "$LINENO"; then :
2261   eval "$3=yes"
2262 else
2263   eval "$3=no"
2264 fi
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 fi
2267 eval ac_res=\$$3
2268                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2269 $as_echo "$ac_res" >&6; }
2270   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271
2272 } # ac_fn_c_check_header_compile
2273
2274 # ac_fn_cxx_try_compile LINENO
2275 # ----------------------------
2276 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2277 ac_fn_cxx_try_compile ()
2278 {
2279   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280   rm -f conftest.$ac_objext
2281   if { { ac_try="$ac_compile"
2282 case "(($ac_try" in
2283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2284   *) ac_try_echo=$ac_try;;
2285 esac
2286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2287 $as_echo "$ac_try_echo"; } >&5
2288   (eval "$ac_compile") 2>conftest.err
2289   ac_status=$?
2290   if test -s conftest.err; then
2291     grep -v '^ *+' conftest.err >conftest.er1
2292     cat conftest.er1 >&5
2293     mv -f conftest.er1 conftest.err
2294   fi
2295   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2296   test $ac_status = 0; } && {
2297          test -z "$ac_cxx_werror_flag" ||
2298          test ! -s conftest.err
2299        } && test -s conftest.$ac_objext; then :
2300   ac_retval=0
2301 else
2302   $as_echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2304
2305         ac_retval=1
2306 fi
2307   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2308   as_fn_set_status $ac_retval
2309
2310 } # ac_fn_cxx_try_compile
2311
2312 # ac_fn_c_try_link LINENO
2313 # -----------------------
2314 # Try to link conftest.$ac_ext, and return whether this succeeded.
2315 ac_fn_c_try_link ()
2316 {
2317   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318   rm -f conftest.$ac_objext conftest$ac_exeext
2319   if { { ac_try="$ac_link"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2325 $as_echo "$ac_try_echo"; } >&5
2326   (eval "$ac_link") 2>conftest.err
2327   ac_status=$?
2328   if test -s conftest.err; then
2329     grep -v '^ *+' conftest.err >conftest.er1
2330     cat conftest.er1 >&5
2331     mv -f conftest.er1 conftest.err
2332   fi
2333   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334   test $ac_status = 0; } && {
2335          test -z "$ac_c_werror_flag" ||
2336          test ! -s conftest.err
2337        } && test -s conftest$ac_exeext && {
2338          test "$cross_compiling" = yes ||
2339          $as_test_x conftest$ac_exeext
2340        }; then :
2341   ac_retval=0
2342 else
2343   $as_echo "$as_me: failed program was:" >&5
2344 sed 's/^/| /' conftest.$ac_ext >&5
2345
2346         ac_retval=1
2347 fi
2348   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2349   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2350   # interfere with the next link command; also delete a directory that is
2351   # left behind by Apple's compiler.  We do this before executing the actions.
2352   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2353   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354   as_fn_set_status $ac_retval
2355
2356 } # ac_fn_c_try_link
2357
2358 # ac_fn_c_check_func LINENO FUNC VAR
2359 # ----------------------------------
2360 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2361 ac_fn_c_check_func ()
2362 {
2363   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2365 $as_echo_n "checking for $2... " >&6; }
2366 if eval \${$3+:} false; then :
2367   $as_echo_n "(cached) " >&6
2368 else
2369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2370 /* end confdefs.h.  */
2371 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2372    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2373 #define $2 innocuous_$2
2374
2375 /* System header to define __stub macros and hopefully few prototypes,
2376     which can conflict with char $2 (); below.
2377     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378     <limits.h> exists even on freestanding compilers.  */
2379
2380 #ifdef __STDC__
2381 # include <limits.h>
2382 #else
2383 # include <assert.h>
2384 #endif
2385
2386 #undef $2
2387
2388 /* Override any GCC internal prototype to avoid an error.
2389    Use char because int might match the return type of a GCC
2390    builtin and then its argument prototype would still apply.  */
2391 #ifdef __cplusplus
2392 extern "C"
2393 #endif
2394 char $2 ();
2395 /* The GNU C library defines this for functions which it implements
2396     to always fail with ENOSYS.  Some functions are actually named
2397     something starting with __ and the normal name is an alias.  */
2398 #if defined __stub_$2 || defined __stub___$2
2399 choke me
2400 #endif
2401
2402 int
2403 main ()
2404 {
2405 return $2 ();
2406   ;
2407   return 0;
2408 }
2409 _ACEOF
2410 if ac_fn_c_try_link "$LINENO"; then :
2411   eval "$3=yes"
2412 else
2413   eval "$3=no"
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext \
2416     conftest$ac_exeext conftest.$ac_ext
2417 fi
2418 eval ac_res=\$$3
2419                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2422
2423 } # ac_fn_c_check_func
2424
2425 # ac_fn_cxx_try_cpp LINENO
2426 # ------------------------
2427 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_cxx_try_cpp ()
2429 {
2430   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431   if { { ac_try="$ac_cpp conftest.$ac_ext"
2432 case "(($ac_try" in
2433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2434   *) ac_try_echo=$ac_try;;
2435 esac
2436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2437 $as_echo "$ac_try_echo"; } >&5
2438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2439   ac_status=$?
2440   if test -s conftest.err; then
2441     grep -v '^ *+' conftest.err >conftest.er1
2442     cat conftest.er1 >&5
2443     mv -f conftest.er1 conftest.err
2444   fi
2445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2446   test $ac_status = 0; } > conftest.i && {
2447          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2448          test ! -s conftest.err
2449        }; then :
2450   ac_retval=0
2451 else
2452   $as_echo "$as_me: failed program was:" >&5
2453 sed 's/^/| /' conftest.$ac_ext >&5
2454
2455     ac_retval=1
2456 fi
2457   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2458   as_fn_set_status $ac_retval
2459
2460 } # ac_fn_cxx_try_cpp
2461
2462 # ac_fn_cxx_try_link LINENO
2463 # -------------------------
2464 # Try to link conftest.$ac_ext, and return whether this succeeded.
2465 ac_fn_cxx_try_link ()
2466 {
2467   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468   rm -f conftest.$ac_objext conftest$ac_exeext
2469   if { { ac_try="$ac_link"
2470 case "(($ac_try" in
2471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472   *) ac_try_echo=$ac_try;;
2473 esac
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476   (eval "$ac_link") 2>conftest.err
2477   ac_status=$?
2478   if test -s conftest.err; then
2479     grep -v '^ *+' conftest.err >conftest.er1
2480     cat conftest.er1 >&5
2481     mv -f conftest.er1 conftest.err
2482   fi
2483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484   test $ac_status = 0; } && {
2485          test -z "$ac_cxx_werror_flag" ||
2486          test ! -s conftest.err
2487        } && test -s conftest$ac_exeext && {
2488          test "$cross_compiling" = yes ||
2489          $as_test_x conftest$ac_exeext
2490        }; then :
2491   ac_retval=0
2492 else
2493   $as_echo "$as_me: failed program was:" >&5
2494 sed 's/^/| /' conftest.$ac_ext >&5
2495
2496         ac_retval=1
2497 fi
2498   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2499   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2500   # interfere with the next link command; also delete a directory that is
2501   # left behind by Apple's compiler.  We do this before executing the actions.
2502   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2503   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2504   as_fn_set_status $ac_retval
2505
2506 } # ac_fn_cxx_try_link
2507
2508 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2509 # ---------------------------------------------
2510 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2511 # accordingly.
2512 ac_fn_c_check_decl ()
2513 {
2514   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2515   as_decl_name=`echo $2|sed 's/ *(.*//'`
2516   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2518 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2519 if eval \${$3+:} false; then :
2520   $as_echo_n "(cached) " >&6
2521 else
2522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2523 /* end confdefs.h.  */
2524 $4
2525 int
2526 main ()
2527 {
2528 #ifndef $as_decl_name
2529 #ifdef __cplusplus
2530   (void) $as_decl_use;
2531 #else
2532   (void) $as_decl_name;
2533 #endif
2534 #endif
2535
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 if ac_fn_c_try_compile "$LINENO"; then :
2541   eval "$3=yes"
2542 else
2543   eval "$3=no"
2544 fi
2545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2546 fi
2547 eval ac_res=\$$3
2548                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2550   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2551
2552 } # ac_fn_c_check_decl
2553
2554 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2555 # -------------------------------------------
2556 # Tests whether TYPE exists after having included INCLUDES, setting cache
2557 # variable VAR accordingly.
2558 ac_fn_c_check_type ()
2559 {
2560   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2562 $as_echo_n "checking for $2... " >&6; }
2563 if eval \${$3+:} false; then :
2564   $as_echo_n "(cached) " >&6
2565 else
2566   eval "$3=no"
2567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568 /* end confdefs.h.  */
2569 $4
2570 int
2571 main ()
2572 {
2573 if (sizeof ($2))
2574          return 0;
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 if ac_fn_c_try_compile "$LINENO"; then :
2580   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2581 /* end confdefs.h.  */
2582 $4
2583 int
2584 main ()
2585 {
2586 if (sizeof (($2)))
2587             return 0;
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593
2594 else
2595   eval "$3=yes"
2596 fi
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 fi
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 fi
2601 eval ac_res=\$$3
2602                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2605
2606 } # ac_fn_c_check_type
2607
2608 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2609 # ----------------------------------------------------
2610 # Tries to find if the field MEMBER exists in type AGGR, after including
2611 # INCLUDES, setting cache variable VAR accordingly.
2612 ac_fn_c_check_member ()
2613 {
2614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2616 $as_echo_n "checking for $2.$3... " >&6; }
2617 if eval \${$4+:} false; then :
2618   $as_echo_n "(cached) " >&6
2619 else
2620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h.  */
2622 $5
2623 int
2624 main ()
2625 {
2626 static $2 ac_aggr;
2627 if (ac_aggr.$3)
2628 return 0;
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 if ac_fn_c_try_compile "$LINENO"; then :
2634   eval "$4=yes"
2635 else
2636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h.  */
2638 $5
2639 int
2640 main ()
2641 {
2642 static $2 ac_aggr;
2643 if (sizeof ac_aggr.$3)
2644 return 0;
2645   ;
2646   return 0;
2647 }
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650   eval "$4=yes"
2651 else
2652   eval "$4=no"
2653 fi
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 fi
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2657 fi
2658 eval ac_res=\$$4
2659                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2660 $as_echo "$ac_res" >&6; }
2661   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2662
2663 } # ac_fn_c_check_member
2664
2665 # ac_fn_c_find_intX_t LINENO BITS VAR
2666 # -----------------------------------
2667 # Finds a signed integer type with width BITS, setting cache variable VAR
2668 # accordingly.
2669 ac_fn_c_find_intX_t ()
2670 {
2671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2673 $as_echo_n "checking for int$2_t... " >&6; }
2674 if eval \${$3+:} false; then :
2675   $as_echo_n "(cached) " >&6
2676 else
2677   eval "$3=no"
2678      # Order is important - never check a type that is potentially smaller
2679      # than half of the expected target width.
2680      for ac_type in int$2_t 'int' 'long int' \
2681          'long long int' 'short int' 'signed char'; do
2682        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h.  */
2684 $ac_includes_default
2685              enum { N = $2 / 2 - 1 };
2686 int
2687 main ()
2688 {
2689 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2690 test_array [0] = 0
2691
2692   ;
2693   return 0;
2694 }
2695 _ACEOF
2696 if ac_fn_c_try_compile "$LINENO"; then :
2697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h.  */
2699 $ac_includes_default
2700                 enum { N = $2 / 2 - 1 };
2701 int
2702 main ()
2703 {
2704 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2705                  < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2706 test_array [0] = 0
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_c_try_compile "$LINENO"; then :
2713
2714 else
2715   case $ac_type in #(
2716   int$2_t) :
2717     eval "$3=yes" ;; #(
2718   *) :
2719     eval "$3=\$ac_type" ;;
2720 esac
2721 fi
2722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2723 fi
2724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2725        if eval test \"x\$"$3"\" = x"no"; then :
2726
2727 else
2728   break
2729 fi
2730      done
2731 fi
2732 eval ac_res=\$$3
2733                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2734 $as_echo "$ac_res" >&6; }
2735   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2736
2737 } # ac_fn_c_find_intX_t
2738
2739 # ac_fn_c_find_uintX_t LINENO BITS VAR
2740 # ------------------------------------
2741 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2742 # accordingly.
2743 ac_fn_c_find_uintX_t ()
2744 {
2745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2747 $as_echo_n "checking for uint$2_t... " >&6; }
2748 if eval \${$3+:} false; then :
2749   $as_echo_n "(cached) " >&6
2750 else
2751   eval "$3=no"
2752      # Order is important - never check a type that is potentially smaller
2753      # than half of the expected target width.
2754      for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2755          'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2756        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2757 /* end confdefs.h.  */
2758 $ac_includes_default
2759 int
2760 main ()
2761 {
2762 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2763 test_array [0] = 0
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 if ac_fn_c_try_compile "$LINENO"; then :
2770   case $ac_type in #(
2771   uint$2_t) :
2772     eval "$3=yes" ;; #(
2773   *) :
2774     eval "$3=\$ac_type" ;;
2775 esac
2776 fi
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778        if eval test \"x\$"$3"\" = x"no"; then :
2779
2780 else
2781   break
2782 fi
2783      done
2784 fi
2785 eval ac_res=\$$3
2786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789
2790 } # ac_fn_c_find_uintX_t
2791
2792 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2793 # --------------------------------------------
2794 # Tries to find the compile-time value of EXPR in a program that includes
2795 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2796 # computed
2797 ac_fn_c_compute_int ()
2798 {
2799   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2800   if test "$cross_compiling" = yes; then
2801     # Depending upon the size, compute the lo and hi bounds.
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h.  */
2804 $4
2805 int
2806 main ()
2807 {
2808 static int test_array [1 - 2 * !(($2) >= 0)];
2809 test_array [0] = 0
2810
2811   ;
2812   return 0;
2813 }
2814 _ACEOF
2815 if ac_fn_c_try_compile "$LINENO"; then :
2816   ac_lo=0 ac_mid=0
2817   while :; do
2818     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2819 /* end confdefs.h.  */
2820 $4
2821 int
2822 main ()
2823 {
2824 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2825 test_array [0] = 0
2826
2827   ;
2828   return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"; then :
2832   ac_hi=$ac_mid; break
2833 else
2834   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2835                         if test $ac_lo -le $ac_mid; then
2836                           ac_lo= ac_hi=
2837                           break
2838                         fi
2839                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2840 fi
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2842   done
2843 else
2844   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h.  */
2846 $4
2847 int
2848 main ()
2849 {
2850 static int test_array [1 - 2 * !(($2) < 0)];
2851 test_array [0] = 0
2852
2853   ;
2854   return 0;
2855 }
2856 _ACEOF
2857 if ac_fn_c_try_compile "$LINENO"; then :
2858   ac_hi=-1 ac_mid=-1
2859   while :; do
2860     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h.  */
2862 $4
2863 int
2864 main ()
2865 {
2866 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2867 test_array [0] = 0
2868
2869   ;
2870   return 0;
2871 }
2872 _ACEOF
2873 if ac_fn_c_try_compile "$LINENO"; then :
2874   ac_lo=$ac_mid; break
2875 else
2876   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2877                         if test $ac_mid -le $ac_hi; then
2878                           ac_lo= ac_hi=
2879                           break
2880                         fi
2881                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2882 fi
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884   done
2885 else
2886   ac_lo= ac_hi=
2887 fi
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 fi
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 # Binary search between lo and hi bounds.
2892 while test "x$ac_lo" != "x$ac_hi"; do
2893   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h.  */
2896 $4
2897 int
2898 main ()
2899 {
2900 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2901 test_array [0] = 0
2902
2903   ;
2904   return 0;
2905 }
2906 _ACEOF
2907 if ac_fn_c_try_compile "$LINENO"; then :
2908   ac_hi=$ac_mid
2909 else
2910   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2911 fi
2912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 done
2914 case $ac_lo in #((
2915 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2916 '') ac_retval=1 ;;
2917 esac
2918   else
2919     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2920 /* end confdefs.h.  */
2921 $4
2922 static long int longval () { return $2; }
2923 static unsigned long int ulongval () { return $2; }
2924 #include <stdio.h>
2925 #include <stdlib.h>
2926 int
2927 main ()
2928 {
2929
2930   FILE *f = fopen ("conftest.val", "w");
2931   if (! f)
2932     return 1;
2933   if (($2) < 0)
2934     {
2935       long int i = longval ();
2936       if (i != ($2))
2937         return 1;
2938       fprintf (f, "%ld", i);
2939     }
2940   else
2941     {
2942       unsigned long int i = ulongval ();
2943       if (i != ($2))
2944         return 1;
2945       fprintf (f, "%lu", i);
2946     }
2947   /* Do not output a trailing newline, as this causes \r\n confusion
2948      on some platforms.  */
2949   return ferror (f) || fclose (f) != 0;
2950
2951   ;
2952   return 0;
2953 }
2954 _ACEOF
2955 if ac_fn_c_try_run "$LINENO"; then :
2956   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2957 else
2958   ac_retval=1
2959 fi
2960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2961   conftest.$ac_objext conftest.beam conftest.$ac_ext
2962 rm -f conftest.val
2963
2964   fi
2965   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2966   as_fn_set_status $ac_retval
2967
2968 } # ac_fn_c_compute_int
2969
2970 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2971 # ---------------------------------------------------------
2972 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2973 # the include files in INCLUDES and setting the cache variable VAR
2974 # accordingly.
2975 ac_fn_cxx_check_header_mongrel ()
2976 {
2977   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2978   if eval \${$3+:} false; then :
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2980 $as_echo_n "checking for $2... " >&6; }
2981 if eval \${$3+:} false; then :
2982   $as_echo_n "(cached) " >&6
2983 fi
2984 eval ac_res=\$$3
2985                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2986 $as_echo "$ac_res" >&6; }
2987 else
2988   # Is the header compilable?
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2990 $as_echo_n "checking $2 usability... " >&6; }
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h.  */
2993 $4
2994 #include <$2>
2995 _ACEOF
2996 if ac_fn_cxx_try_compile "$LINENO"; then :
2997   ac_header_compiler=yes
2998 else
2999   ac_header_compiler=no
3000 fi
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3003 $as_echo "$ac_header_compiler" >&6; }
3004
3005 # Is the header present?
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3007 $as_echo_n "checking $2 presence... " >&6; }
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h.  */
3010 #include <$2>
3011 _ACEOF
3012 if ac_fn_cxx_try_cpp "$LINENO"; then :
3013   ac_header_preproc=yes
3014 else
3015   ac_header_preproc=no
3016 fi
3017 rm -f conftest.err conftest.i conftest.$ac_ext
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3019 $as_echo "$ac_header_preproc" >&6; }
3020
3021 # So?  What about this header?
3022 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3023   yes:no: )
3024     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3025 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3027 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3028     ;;
3029   no:yes:* )
3030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3031 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
3033 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
3034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3035 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
3037 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
3038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3039 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3040 ( $as_echo "## ----------------------------------------- ##
3041 ## Report this to http://www.imagemagick.org ##
3042 ## ----------------------------------------- ##"
3043      ) | sed "s/^/$as_me: WARNING:     /" >&2
3044     ;;
3045 esac
3046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047 $as_echo_n "checking for $2... " >&6; }
3048 if eval \${$3+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   eval "$3=\$ac_header_compiler"
3052 fi
3053 eval ac_res=\$$3
3054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3055 $as_echo "$ac_res" >&6; }
3056 fi
3057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3058
3059 } # ac_fn_cxx_check_header_mongrel
3060 cat >config.log <<_ACEOF
3061 This file contains any messages produced by compilers while
3062 running configure, to aid debugging if configure makes a mistake.
3063
3064 It was created by ImageMagick $as_me 7.0.0-0, which was
3065 generated by GNU Autoconf 2.68.  Invocation command line was
3066
3067   $ $0 $@
3068
3069 _ACEOF
3070 exec 5>>config.log
3071 {
3072 cat <<_ASUNAME
3073 ## --------- ##
3074 ## Platform. ##
3075 ## --------- ##
3076
3077 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3078 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3079 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3080 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3081 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3082
3083 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3084 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3085
3086 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3087 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3088 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3089 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3090 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3091 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3092 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3093
3094 _ASUNAME
3095
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099   IFS=$as_save_IFS
3100   test -z "$as_dir" && as_dir=.
3101     $as_echo "PATH: $as_dir"
3102   done
3103 IFS=$as_save_IFS
3104
3105 } >&5
3106
3107 cat >&5 <<_ACEOF
3108
3109
3110 ## ----------- ##
3111 ## Core tests. ##
3112 ## ----------- ##
3113
3114 _ACEOF
3115
3116
3117 # Keep a trace of the command line.
3118 # Strip out --no-create and --no-recursion so they do not pile up.
3119 # Strip out --silent because we don't want to record it for future runs.
3120 # Also quote any args containing shell meta-characters.
3121 # Make two passes to allow for proper duplicate-argument suppression.
3122 ac_configure_args=
3123 ac_configure_args0=
3124 ac_configure_args1=
3125 ac_must_keep_next=false
3126 for ac_pass in 1 2
3127 do
3128   for ac_arg
3129   do
3130     case $ac_arg in
3131     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3132     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3133     | -silent | --silent | --silen | --sile | --sil)
3134       continue ;;
3135     *\'*)
3136       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3137     esac
3138     case $ac_pass in
3139     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3140     2)
3141       as_fn_append ac_configure_args1 " '$ac_arg'"
3142       if test $ac_must_keep_next = true; then
3143         ac_must_keep_next=false # Got value, back to normal.
3144       else
3145         case $ac_arg in
3146           *=* | --config-cache | -C | -disable-* | --disable-* \
3147           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3148           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3149           | -with-* | --with-* | -without-* | --without-* | --x)
3150             case "$ac_configure_args0 " in
3151               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3152             esac
3153             ;;
3154           -* ) ac_must_keep_next=true ;;
3155         esac
3156       fi
3157       as_fn_append ac_configure_args " '$ac_arg'"
3158       ;;
3159     esac
3160   done
3161 done
3162 { ac_configure_args0=; unset ac_configure_args0;}
3163 { ac_configure_args1=; unset ac_configure_args1;}
3164
3165 # When interrupted or exit'd, cleanup temporary files, and complete
3166 # config.log.  We remove comments because anyway the quotes in there
3167 # would cause problems or look ugly.
3168 # WARNING: Use '\'' to represent an apostrophe within the trap.
3169 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3170 trap 'exit_status=$?
3171   # Save into config.log some information that might help in debugging.
3172   {
3173     echo
3174
3175     $as_echo "## ---------------- ##
3176 ## Cache variables. ##
3177 ## ---------------- ##"
3178     echo
3179     # The following way of writing the cache mishandles newlines in values,
3180 (
3181   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3182     eval ac_val=\$$ac_var
3183     case $ac_val in #(
3184     *${as_nl}*)
3185       case $ac_var in #(
3186       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3187 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3188       esac
3189       case $ac_var in #(
3190       _ | IFS | as_nl) ;; #(
3191       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3192       *) { eval $ac_var=; unset $ac_var;} ;;
3193       esac ;;
3194     esac
3195   done
3196   (set) 2>&1 |
3197     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3198     *${as_nl}ac_space=\ *)
3199       sed -n \
3200         "s/'\''/'\''\\\\'\'''\''/g;
3201           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3202       ;; #(
3203     *)
3204       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3205       ;;
3206     esac |
3207     sort
3208 )
3209     echo
3210
3211     $as_echo "## ----------------- ##
3212 ## Output variables. ##
3213 ## ----------------- ##"
3214     echo
3215     for ac_var in $ac_subst_vars
3216     do
3217       eval ac_val=\$$ac_var
3218       case $ac_val in
3219       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3220       esac
3221       $as_echo "$ac_var='\''$ac_val'\''"
3222     done | sort
3223     echo
3224
3225     if test -n "$ac_subst_files"; then
3226       $as_echo "## ------------------- ##
3227 ## File substitutions. ##
3228 ## ------------------- ##"
3229       echo
3230       for ac_var in $ac_subst_files
3231       do
3232         eval ac_val=\$$ac_var
3233         case $ac_val in
3234         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3235         esac
3236         $as_echo "$ac_var='\''$ac_val'\''"
3237       done | sort
3238       echo
3239     fi
3240
3241     if test -s confdefs.h; then
3242       $as_echo "## ----------- ##
3243 ## confdefs.h. ##
3244 ## ----------- ##"
3245       echo
3246       cat confdefs.h
3247       echo
3248     fi
3249     test "$ac_signal" != 0 &&
3250       $as_echo "$as_me: caught signal $ac_signal"
3251     $as_echo "$as_me: exit $exit_status"
3252   } >&5
3253   rm -f core *.core core.conftest.* &&
3254     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3255     exit $exit_status
3256 ' 0
3257 for ac_signal in 1 2 13 15; do
3258   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3259 done
3260 ac_signal=0
3261
3262 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3263 rm -f -r conftest* confdefs.h
3264
3265 $as_echo "/* confdefs.h */" > confdefs.h
3266
3267 # Predefined preprocessor variables.
3268
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE_NAME "$PACKAGE_NAME"
3271 _ACEOF
3272
3273 cat >>confdefs.h <<_ACEOF
3274 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3275 _ACEOF
3276
3277 cat >>confdefs.h <<_ACEOF
3278 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3279 _ACEOF
3280
3281 cat >>confdefs.h <<_ACEOF
3282 #define PACKAGE_STRING "$PACKAGE_STRING"
3283 _ACEOF
3284
3285 cat >>confdefs.h <<_ACEOF
3286 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3287 _ACEOF
3288
3289 cat >>confdefs.h <<_ACEOF
3290 #define PACKAGE_URL "$PACKAGE_URL"
3291 _ACEOF
3292
3293
3294 # Let the site file select an alternate cache file if it wants to.
3295 # Prefer an explicitly selected file to automatically selected ones.
3296 ac_site_file1=NONE
3297 ac_site_file2=NONE
3298 if test -n "$CONFIG_SITE"; then
3299   # We do not want a PATH search for config.site.
3300   case $CONFIG_SITE in #((
3301     -*)  ac_site_file1=./$CONFIG_SITE;;
3302     */*) ac_site_file1=$CONFIG_SITE;;
3303     *)   ac_site_file1=./$CONFIG_SITE;;
3304   esac
3305 elif test "x$prefix" != xNONE; then
3306   ac_site_file1=$prefix/share/config.site
3307   ac_site_file2=$prefix/etc/config.site
3308 else
3309   ac_site_file1=$ac_default_prefix/share/config.site
3310   ac_site_file2=$ac_default_prefix/etc/config.site
3311 fi
3312 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3313 do
3314   test "x$ac_site_file" = xNONE && continue
3315   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3316     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3317 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3318     sed 's/^/| /' "$ac_site_file" >&5
3319     . "$ac_site_file" \
3320       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3322 as_fn_error $? "failed to load site script $ac_site_file
3323 See \`config.log' for more details" "$LINENO" 5; }
3324   fi
3325 done
3326
3327 if test -r "$cache_file"; then
3328   # Some versions of bash will fail to source /dev/null (special files
3329   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3330   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3331     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3332 $as_echo "$as_me: loading cache $cache_file" >&6;}
3333     case $cache_file in
3334       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3335       *)                      . "./$cache_file";;
3336     esac
3337   fi
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3340 $as_echo "$as_me: creating cache $cache_file" >&6;}
3341   >$cache_file
3342 fi
3343
3344 as_fn_append ac_header_list " stdlib.h"
3345 as_fn_append ac_header_list " unistd.h"
3346 as_fn_append ac_header_list " sys/param.h"
3347 # Check that the precious variables saved in the cache have kept the same
3348 # value.
3349 ac_cache_corrupted=false
3350 for ac_var in $ac_precious_vars; do
3351   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3352   eval ac_new_set=\$ac_env_${ac_var}_set
3353   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3354   eval ac_new_val=\$ac_env_${ac_var}_value
3355   case $ac_old_set,$ac_new_set in
3356     set,)
3357       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3358 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3359       ac_cache_corrupted=: ;;
3360     ,set)
3361       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3362 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3363       ac_cache_corrupted=: ;;
3364     ,);;
3365     *)
3366       if test "x$ac_old_val" != "x$ac_new_val"; then
3367         # differences in whitespace do not lead to failure.
3368         ac_old_val_w=`echo x $ac_old_val`
3369         ac_new_val_w=`echo x $ac_new_val`
3370         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3371           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3372 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3373           ac_cache_corrupted=:
3374         else
3375           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3376 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3377           eval $ac_var=\$ac_old_val
3378         fi
3379         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3380 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3381         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3382 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3383       fi;;
3384   esac
3385   # Pass precious variables to config.status.
3386   if test "$ac_new_set" = set; then
3387     case $ac_new_val in
3388     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3389     *) ac_arg=$ac_var=$ac_new_val ;;
3390     esac
3391     case " $ac_configure_args " in
3392       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3393       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3394     esac
3395   fi
3396 done
3397 if $ac_cache_corrupted; then
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3401 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3402   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3403 fi
3404 ## -------------------- ##
3405 ## Main body of script. ##
3406 ## -------------------- ##
3407
3408 ac_ext=c
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3413
3414
3415
3416 ac_aux_dir=
3417 for ac_dir in config "$srcdir"/config; do
3418   if test -f "$ac_dir/install-sh"; then
3419     ac_aux_dir=$ac_dir
3420     ac_install_sh="$ac_aux_dir/install-sh -c"
3421     break
3422   elif test -f "$ac_dir/install.sh"; then
3423     ac_aux_dir=$ac_dir
3424     ac_install_sh="$ac_aux_dir/install.sh -c"
3425     break
3426   elif test -f "$ac_dir/shtool"; then
3427     ac_aux_dir=$ac_dir
3428     ac_install_sh="$ac_aux_dir/shtool install -c"
3429     break
3430   fi
3431 done
3432 if test -z "$ac_aux_dir"; then
3433   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3434 fi
3435
3436 # These three variables are undocumented and unsupported,
3437 # and are intended to be withdrawn in a future Autoconf release.
3438 # They can cause serious problems if a builder's source tree is in a directory
3439 # whose full name contains unusual characters.
3440 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3441 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3442 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3443
3444
3445
3446
3447 ac_config_headers="$ac_config_headers config/config.h"
3448
3449
3450 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3451
3452 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox 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/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
3453
3454
3455 #
3456 # Save initial user-tunable values
3457 #
3458 USER_LIBS=$LIBS
3459 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3460   eval isset=\${$var+set}
3461     if test "$isset" = 'set'; then
3462         eval val=$`echo $var`
3463         DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3464     fi
3465 done
3466
3467
3468 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3469
3470
3471 # Source file containing package/library versioning information.
3472 . ${srcdir}/version.sh
3473
3474 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3475 # Make sure we can run config.sub.
3476 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3477   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3478
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3480 $as_echo_n "checking build system type... " >&6; }
3481 if ${ac_cv_build+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   ac_build_alias=$build_alias
3485 test "x$ac_build_alias" = x &&
3486   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3487 test "x$ac_build_alias" = x &&
3488   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3489 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3490   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3491
3492 fi
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3494 $as_echo "$ac_cv_build" >&6; }
3495 case $ac_cv_build in
3496 *-*-*) ;;
3497 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3498 esac
3499 build=$ac_cv_build
3500 ac_save_IFS=$IFS; IFS='-'
3501 set x $ac_cv_build
3502 shift
3503 build_cpu=$1
3504 build_vendor=$2
3505 shift; shift
3506 # Remember, the first character of IFS is used to create $*,
3507 # except with old shells:
3508 build_os=$*
3509 IFS=$ac_save_IFS
3510 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3511
3512
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3514 $as_echo_n "checking host system type... " >&6; }
3515 if ${ac_cv_host+:} false; then :
3516   $as_echo_n "(cached) " >&6
3517 else
3518   if test "x$host_alias" = x; then
3519   ac_cv_host=$ac_cv_build
3520 else
3521   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3522     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3523 fi
3524
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3527 $as_echo "$ac_cv_host" >&6; }
3528 case $ac_cv_host in
3529 *-*-*) ;;
3530 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3531 esac
3532 host=$ac_cv_host
3533 ac_save_IFS=$IFS; IFS='-'
3534 set x $ac_cv_host
3535 shift
3536 host_cpu=$1
3537 host_vendor=$2
3538 shift; shift
3539 # Remember, the first character of IFS is used to create $*,
3540 # except with old shells:
3541 host_os=$*
3542 IFS=$ac_save_IFS
3543 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3544
3545
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3547 $as_echo_n "checking target system type... " >&6; }
3548 if ${ac_cv_target+:} false; then :
3549   $as_echo_n "(cached) " >&6
3550 else
3551   if test "x$target_alias" = x; then
3552   ac_cv_target=$ac_cv_host
3553 else
3554   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3555     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3556 fi
3557
3558 fi
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3560 $as_echo "$ac_cv_target" >&6; }
3561 case $ac_cv_target in
3562 *-*-*) ;;
3563 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3564 esac
3565 target=$ac_cv_target
3566 ac_save_IFS=$IFS; IFS='-'
3567 set x $ac_cv_target
3568 shift
3569 target_cpu=$1
3570 target_vendor=$2
3571 shift; shift
3572 # Remember, the first character of IFS is used to create $*,
3573 # except with old shells:
3574 target_os=$*
3575 IFS=$ac_save_IFS
3576 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3577
3578
3579 # The aliases save the names the user supplied, while $host etc.
3580 # will get canonicalized.
3581 test -n "$target_alias" &&
3582   test "$program_prefix$program_suffix$program_transform_name" = \
3583     NONENONEs,x,x, &&
3584   program_prefix=${target_alias}-
3585
3586
3587
3588
3589 MAGICK_TARGET_CPU=$host_cpu
3590
3591
3592 MAGICK_TARGET_VENDOR=$host_vendor
3593
3594
3595 MAGICK_TARGET_OS=$host_os
3596
3597
3598 # Substitute library versioning
3599 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3600
3601 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3602
3603 MAGICK_SVN_REVISION=5750
3604
3605
3606
3607
3608 # Ensure that make can run correctly
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3610 $as_echo_n "checking whether build environment is sane... " >&6; }
3611 # Just in case
3612 sleep 1
3613 echo timestamp > conftest.file
3614 # Reject unsafe characters in $srcdir or the absolute working directory
3615 # name.  Accept space and tab only in the latter.
3616 am_lf='
3617 '
3618 case `pwd` in
3619   *[\\\"\#\$\&\'\`$am_lf]*)
3620     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3621 esac
3622 case $srcdir in
3623   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3624     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3625 esac
3626
3627 # Do `set' in a subshell so we don't clobber the current shell's
3628 # arguments.  Must try -L first in case configure is actually a
3629 # symlink; some systems play weird games with the mod time of symlinks
3630 # (eg FreeBSD returns the mod time of the symlink's containing
3631 # directory).
3632 if (
3633    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3634    if test "$*" = "X"; then
3635       # -L didn't work.
3636       set X `ls -t "$srcdir/configure" conftest.file`
3637    fi
3638    rm -f conftest.file
3639    if test "$*" != "X $srcdir/configure conftest.file" \
3640       && test "$*" != "X conftest.file $srcdir/configure"; then
3641
3642       # If neither matched, then we have a broken ls.  This can happen
3643       # if, for instance, CONFIG_SHELL is bash and it inherits a
3644       # broken ls alias from the environment.  This has actually
3645       # happened.  Such a system could not be considered "sane".
3646       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3647 alias in your environment" "$LINENO" 5
3648    fi
3649
3650    test "$2" = conftest.file
3651    )
3652 then
3653    # Ok.
3654    :
3655 else
3656    as_fn_error $? "newly created file is older than distributed files!
3657 Check your system clock" "$LINENO" 5
3658 fi
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3661
3662 am__api_version='1.11'
3663
3664 # Find a good install program.  We prefer a C program (faster),
3665 # so one script is as good as another.  But avoid the broken or
3666 # incompatible versions:
3667 # SysV /etc/install, /usr/sbin/install
3668 # SunOS /usr/etc/install
3669 # IRIX /sbin/install
3670 # AIX /bin/install
3671 # AmigaOS /C/install, which installs bootblocks on floppy discs
3672 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3673 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3674 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3675 # OS/2's system install, which has a completely different semantic
3676 # ./install, which can be erroneously created by make from ./install.sh.
3677 # Reject install programs that cannot install multiple files.
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3679 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3680 if test -z "$INSTALL"; then
3681 if ${ac_cv_path_install+:} false; then :
3682   $as_echo_n "(cached) " >&6
3683 else
3684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687   IFS=$as_save_IFS
3688   test -z "$as_dir" && as_dir=.
3689     # Account for people who put trailing slashes in PATH elements.
3690 case $as_dir/ in #((
3691   ./ | .// | /[cC]/* | \
3692   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3693   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3694   /usr/ucb/* ) ;;
3695   *)
3696     # OSF1 and SCO ODT 3.0 have their own names for install.
3697     # Don't use installbsd from OSF since it installs stuff as root
3698     # by default.
3699     for ac_prog in ginstall scoinst install; do
3700       for ac_exec_ext in '' $ac_executable_extensions; do
3701         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3702           if test $ac_prog = install &&
3703             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704             # AIX install.  It has an incompatible calling convention.
3705             :
3706           elif test $ac_prog = install &&
3707             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3708             # program-specific install script used by HP pwplus--don't use.
3709             :
3710           else
3711             rm -rf conftest.one conftest.two conftest.dir
3712             echo one > conftest.one
3713             echo two > conftest.two
3714             mkdir conftest.dir
3715             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3716               test -s conftest.one && test -s conftest.two &&
3717               test -s conftest.dir/conftest.one &&
3718               test -s conftest.dir/conftest.two
3719             then
3720               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3721               break 3
3722             fi
3723           fi
3724         fi
3725       done
3726     done
3727     ;;
3728 esac
3729
3730   done
3731 IFS=$as_save_IFS
3732
3733 rm -rf conftest.one conftest.two conftest.dir
3734
3735 fi
3736   if test "${ac_cv_path_install+set}" = set; then
3737     INSTALL=$ac_cv_path_install
3738   else
3739     # As a last resort, use the slow shell script.  Don't cache a
3740     # value for INSTALL within a source directory, because that will
3741     # break other packages using the cache if that directory is
3742     # removed, or if the value is a relative name.
3743     INSTALL=$ac_install_sh
3744   fi
3745 fi
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3747 $as_echo "$INSTALL" >&6; }
3748
3749 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3750 # It thinks the first close brace ends the variable substitution.
3751 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3752
3753 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3754
3755 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3756
3757 test "$program_prefix" != NONE &&
3758   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3759 # Use a double $ so make ignores it.
3760 test "$program_suffix" != NONE &&
3761   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3762 # Double any \ or $.
3763 # By default was `s,x,x', remove it if useless.
3764 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3765 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3766
3767 # expand $ac_aux_dir to an absolute path
3768 am_aux_dir=`cd $ac_aux_dir && pwd`
3769
3770 if test x"${MISSING+set}" != xset; then
3771   case $am_aux_dir in
3772   *\ * | *\     *)
3773     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3774   *)
3775     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3776   esac
3777 fi
3778 # Use eval to expand $SHELL
3779 if eval "$MISSING --run true"; then
3780   am_missing_run="$MISSING --run "
3781 else
3782   am_missing_run=
3783   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3784 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3785 fi
3786
3787 if test x"${install_sh}" != xset; then
3788   case $am_aux_dir in
3789   *\ * | *\     *)
3790     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3791   *)
3792     install_sh="\${SHELL} $am_aux_dir/install-sh"
3793   esac
3794 fi
3795
3796 # Installed binaries are usually stripped using `strip' when the user
3797 # run `make install-strip'.  However `strip' might not be the right
3798 # tool to use in cross-compilation environments, therefore Automake
3799 # will honor the `STRIP' environment variable to overrule this program.
3800 if test "$cross_compiling" != no; then
3801   if test -n "$ac_tool_prefix"; then
3802   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3803 set dummy ${ac_tool_prefix}strip; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if ${ac_cv_prog_STRIP+:} false; then :
3807   $as_echo_n "(cached) " >&6
3808 else
3809   if test -n "$STRIP"; then
3810   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3811 else
3812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813 for as_dir in $PATH
3814 do
3815   IFS=$as_save_IFS
3816   test -z "$as_dir" && as_dir=.
3817     for ac_exec_ext in '' $ac_executable_extensions; do
3818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821     break 2
3822   fi
3823 done
3824   done
3825 IFS=$as_save_IFS
3826
3827 fi
3828 fi
3829 STRIP=$ac_cv_prog_STRIP
3830 if test -n "$STRIP"; then
3831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3832 $as_echo "$STRIP" >&6; }
3833 else
3834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 fi
3837
3838
3839 fi
3840 if test -z "$ac_cv_prog_STRIP"; then
3841   ac_ct_STRIP=$STRIP
3842   # Extract the first word of "strip", so it can be a program name with args.
3843 set dummy strip; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   if test -n "$ac_ct_STRIP"; then
3850   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857     for ac_exec_ext in '' $ac_executable_extensions; do
3858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859     ac_cv_prog_ac_ct_STRIP="strip"
3860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864   done
3865 IFS=$as_save_IFS
3866
3867 fi
3868 fi
3869 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3870 if test -n "$ac_ct_STRIP"; then
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3872 $as_echo "$ac_ct_STRIP" >&6; }
3873 else
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 fi
3877
3878   if test "x$ac_ct_STRIP" = x; then
3879     STRIP=":"
3880   else
3881     case $cross_compiling:$ac_tool_warned in
3882 yes:)
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3885 ac_tool_warned=yes ;;
3886 esac
3887     STRIP=$ac_ct_STRIP
3888   fi
3889 else
3890   STRIP="$ac_cv_prog_STRIP"
3891 fi
3892
3893 fi
3894 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3895
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3897 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3898 if test -z "$MKDIR_P"; then
3899   if ${ac_cv_path_mkdir+:} false; then :
3900   $as_echo_n "(cached) " >&6
3901 else
3902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3904 do
3905   IFS=$as_save_IFS
3906   test -z "$as_dir" && as_dir=.
3907     for ac_prog in mkdir gmkdir; do
3908          for ac_exec_ext in '' $ac_executable_extensions; do
3909            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3910            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3911              'mkdir (GNU coreutils) '* | \
3912              'mkdir (coreutils) '* | \
3913              'mkdir (fileutils) '4.1*)
3914                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3915                break 3;;
3916            esac
3917          done
3918        done
3919   done
3920 IFS=$as_save_IFS
3921
3922 fi
3923
3924   test -d ./--version && rmdir ./--version
3925   if test "${ac_cv_path_mkdir+set}" = set; then
3926     MKDIR_P="$ac_cv_path_mkdir -p"
3927   else
3928     # As a last resort, use the slow shell script.  Don't cache a
3929     # value for MKDIR_P within a source directory, because that will
3930     # break other packages using the cache if that directory is
3931     # removed, or if the value is a relative name.
3932     MKDIR_P="$ac_install_sh -d"
3933   fi
3934 fi
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3936 $as_echo "$MKDIR_P" >&6; }
3937
3938 mkdir_p="$MKDIR_P"
3939 case $mkdir_p in
3940   [\\/$]* | ?:[\\/]*) ;;
3941   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3942 esac
3943
3944 for ac_prog in gawk mawk nawk awk
3945 do
3946   # Extract the first word of "$ac_prog", so it can be a program name with args.
3947 set dummy $ac_prog; ac_word=$2
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3949 $as_echo_n "checking for $ac_word... " >&6; }
3950 if ${ac_cv_prog_AWK+:} false; then :
3951   $as_echo_n "(cached) " >&6
3952 else
3953   if test -n "$AWK"; then
3954   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3955 else
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in $PATH
3958 do
3959   IFS=$as_save_IFS
3960   test -z "$as_dir" && as_dir=.
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963     ac_cv_prog_AWK="$ac_prog"
3964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965     break 2
3966   fi
3967 done
3968   done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 AWK=$ac_cv_prog_AWK
3974 if test -n "$AWK"; then
3975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3976 $as_echo "$AWK" >&6; }
3977 else
3978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 $as_echo "no" >&6; }
3980 fi
3981
3982
3983   test -n "$AWK" && break
3984 done
3985
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3987 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3988 set x ${MAKE-make}
3989 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3990 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   cat >conftest.make <<\_ACEOF
3994 SHELL = /bin/sh
3995 all:
3996         @echo '@@@%%%=$(MAKE)=@@@%%%'
3997 _ACEOF
3998 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3999 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4000   *@@@%%%=?*=@@@%%%*)
4001     eval ac_cv_prog_make_${ac_make}_set=yes;;
4002   *)
4003     eval ac_cv_prog_make_${ac_make}_set=no;;
4004 esac
4005 rm -f conftest.make
4006 fi
4007 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4009 $as_echo "yes" >&6; }
4010   SET_MAKE=
4011 else
4012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4014   SET_MAKE="MAKE=${MAKE-make}"
4015 fi
4016
4017 rm -rf .tst 2>/dev/null
4018 mkdir .tst 2>/dev/null
4019 if test -d .tst; then
4020   am__leading_dot=.
4021 else
4022   am__leading_dot=_
4023 fi
4024 rmdir .tst 2>/dev/null
4025
4026 # Check whether --enable-silent-rules was given.
4027 if test "${enable_silent_rules+set}" = set; then :
4028   enableval=$enable_silent_rules;
4029 fi
4030
4031 case $enable_silent_rules in
4032 yes) AM_DEFAULT_VERBOSITY=0;;
4033 no)  AM_DEFAULT_VERBOSITY=1;;
4034 *)   AM_DEFAULT_VERBOSITY=1;;
4035 esac
4036 AM_BACKSLASH='\'
4037
4038 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4039   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4040   # is not polluted with repeated "-I."
4041   am__isrc=' -I$(srcdir)'
4042   # test to see if srcdir already configured
4043   if test -f $srcdir/config.status; then
4044     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4045   fi
4046 fi
4047
4048 # test whether we have cygpath
4049 if test -z "$CYGPATH_W"; then
4050   if (cygpath --version) >/dev/null 2>/dev/null; then
4051     CYGPATH_W='cygpath -w'
4052   else
4053     CYGPATH_W=echo
4054   fi
4055 fi
4056
4057
4058 # Define the identity of the package.
4059  PACKAGE='ImageMagick'
4060  VERSION='7.0.0-0'
4061
4062
4063 cat >>confdefs.h <<_ACEOF
4064 #define PACKAGE "$PACKAGE"
4065 _ACEOF
4066
4067
4068 cat >>confdefs.h <<_ACEOF
4069 #define VERSION "$VERSION"
4070 _ACEOF
4071
4072 # Some tools Automake needs.
4073
4074 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4075
4076
4077 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4078
4079
4080 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4081
4082
4083 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4084
4085
4086 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4087
4088 # We need awk for the "check" target.  The system "awk" is bad on
4089 # some platforms.
4090 # Always define AMTAR for backward compatibility.
4091
4092 AMTAR=${AMTAR-"${am_missing_run}tar"}
4093
4094 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4095
4096
4097
4098
4099
4100
4101 # Enable support for silent build rules
4102 # Check whether --enable-silent-rules was given.
4103 if test "${enable_silent_rules+set}" = set; then :
4104   enableval=$enable_silent_rules;
4105 fi
4106
4107 case $enable_silent_rules in
4108 yes) AM_DEFAULT_VERBOSITY=0;;
4109 no)  AM_DEFAULT_VERBOSITY=1;;
4110 *)   AM_DEFAULT_VERBOSITY=0;;
4111 esac
4112 AM_BACKSLASH='\'
4113
4114
4115 MAGICK_LIB_VERSION="0x"
4116 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4117   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4118 fi
4119 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4120 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4121   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4122 fi
4123 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4124 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4125   MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4126 fi
4127 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4128
4129
4130 # Definition used to define MagickLibVersionText in version.h
4131 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4132
4133
4134 # Definition used to define MagickLibVersionNumber in version.h
4135 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4136
4137
4138 # Regenerate config.status if ChangeLog or version.sh is updated.
4139 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4140
4141
4142 PERLMAINCC=$CC
4143
4144 MAGICK_CFLAGS=''
4145 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4146 MAGICK_PCFLAGS=$CPPFLAGS_USER
4147 MAGICK_LDFLAGS=''
4148 MAGICK_LIBS=''
4149 MAGICK_FEATURES=''
4150
4151 #
4152 # Evaluate shell variable equivalents to Makefile directory variables
4153 #
4154 if test "x$prefix" = xNONE; then
4155     prefix=$ac_default_prefix
4156 fi
4157 # Let make expand exec_prefix.
4158 if test "x$exec_prefix" = xNONE; then
4159     exec_prefix='${prefix}'
4160 fi
4161
4162 #
4163 eval "eval PREFIX_DIR=${prefix}"
4164
4165 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4166
4167 eval "eval BIN_DIR=$bindir"
4168
4169 eval "eval SBIN_DIR=$sbindir"
4170
4171 eval "eval LIBEXEC_DIR=$libexecdir"
4172
4173 eval "eval DATA_DIR=$datadir"
4174
4175 eval "eval DOC_DIR=$docdir"
4176
4177 eval "eval SYSCONF_DIR=$sysconfdir"
4178
4179 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4180
4181 eval "eval LOCALSTATE_DIR=$localstatedir"
4182
4183 eval "eval LIB_DIR=$libdir"
4184
4185 eval "eval INCLUDE_DIR=$includedir"
4186
4187 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4188
4189 eval "eval INFO_DIR=$infodir"
4190
4191 eval "eval MAN_DIR=$mandir"
4192
4193
4194 # Get full paths to source and build directories
4195 srcdirfull="`cd $srcdir && pwd`"
4196 builddir="`pwd`"
4197
4198 #
4199 # Compute variables useful for running uninstalled software.
4200 #
4201 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4202 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4203 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4204 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4205 DIRSEP=':'
4206 case "${build_os}" in
4207     mingw* )
4208         MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4209         MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4210         MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4211         MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4212         DIRSEP=';'
4213     ;;
4214 esac
4215 case "${host_os}" in
4216   mingw* )
4217     DIRSEP=';'
4218     ;;
4219 esac
4220
4221
4222
4223
4224
4225
4226
4227 #
4228 # Enable OS features.
4229 #
4230 DEPDIR="${am__leading_dot}deps"
4231
4232 ac_config_commands="$ac_config_commands depfiles"
4233
4234
4235 am_make=${MAKE-make}
4236 cat > confinc << 'END'
4237 am__doit:
4238         @echo this is the am__doit target
4239 .PHONY: am__doit
4240 END
4241 # If we don't find an include directive, just comment out the code.
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4243 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4244 am__include="#"
4245 am__quote=
4246 _am_result=none
4247 # First try GNU make style include.
4248 echo "include confinc" > confmf
4249 # Ignore all kinds of additional output from `make'.
4250 case `$am_make -s -f confmf 2> /dev/null` in #(
4251 *the\ am__doit\ target*)
4252   am__include=include
4253   am__quote=
4254   _am_result=GNU
4255   ;;
4256 esac
4257 # Now try BSD make style include.
4258 if test "$am__include" = "#"; then
4259    echo '.include "confinc"' > confmf
4260    case `$am_make -s -f confmf 2> /dev/null` in #(
4261    *the\ am__doit\ target*)
4262      am__include=.include
4263      am__quote="\""
4264      _am_result=BSD
4265      ;;
4266    esac
4267 fi
4268
4269
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4271 $as_echo "$_am_result" >&6; }
4272 rm -f confinc confmf
4273
4274 # Check whether --enable-dependency-tracking was given.
4275 if test "${enable_dependency_tracking+set}" = set; then :
4276   enableval=$enable_dependency_tracking;
4277 fi
4278
4279 if test "x$enable_dependency_tracking" != xno; then
4280   am_depcomp="$ac_aux_dir/depcomp"
4281   AMDEPBACKSLASH='\'
4282 fi
4283  if test "x$enable_dependency_tracking" != xno; then
4284   AMDEP_TRUE=
4285   AMDEP_FALSE='#'
4286 else
4287   AMDEP_TRUE='#'
4288   AMDEP_FALSE=
4289 fi
4290
4291
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 if test -n "$ac_tool_prefix"; then
4298   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4299 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4301 $as_echo_n "checking for $ac_word... " >&6; }
4302 if ${ac_cv_prog_CC+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if test -n "$CC"; then
4306   ac_cv_prog_CC="$CC" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313     for ac_exec_ext in '' $ac_executable_extensions; do
4314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317     break 2
4318   fi
4319 done
4320   done
4321 IFS=$as_save_IFS
4322
4323 fi
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4328 $as_echo "$CC" >&6; }
4329 else
4330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4331 $as_echo "no" >&6; }
4332 fi
4333
4334
4335 fi
4336 if test -z "$ac_cv_prog_CC"; then
4337   ac_ct_CC=$CC
4338   # Extract the first word of "gcc", so it can be a program name with args.
4339 set dummy gcc; ac_word=$2
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4341 $as_echo_n "checking for $ac_word... " >&6; }
4342 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4343   $as_echo_n "(cached) " >&6
4344 else
4345   if test -n "$ac_ct_CC"; then
4346   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4347 else
4348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 for as_dir in $PATH
4350 do
4351   IFS=$as_save_IFS
4352   test -z "$as_dir" && as_dir=.
4353     for ac_exec_ext in '' $ac_executable_extensions; do
4354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4355     ac_cv_prog_ac_ct_CC="gcc"
4356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357     break 2
4358   fi
4359 done
4360   done
4361 IFS=$as_save_IFS
4362
4363 fi
4364 fi
4365 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4366 if test -n "$ac_ct_CC"; then
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4368 $as_echo "$ac_ct_CC" >&6; }
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4372 fi
4373
4374   if test "x$ac_ct_CC" = x; then
4375     CC=""
4376   else
4377     case $cross_compiling:$ac_tool_warned in
4378 yes:)
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4381 ac_tool_warned=yes ;;
4382 esac
4383     CC=$ac_ct_CC
4384   fi
4385 else
4386   CC="$ac_cv_prog_CC"
4387 fi
4388
4389 if test -z "$CC"; then
4390           if test -n "$ac_tool_prefix"; then
4391     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4392 set dummy ${ac_tool_prefix}cc; ac_word=$2
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4394 $as_echo_n "checking for $ac_word... " >&6; }
4395 if ${ac_cv_prog_CC+:} false; then :
4396   $as_echo_n "(cached) " >&6
4397 else
4398   if test -n "$CC"; then
4399   ac_cv_prog_CC="$CC" # Let the user override the test.
4400 else
4401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406     for ac_exec_ext in '' $ac_executable_extensions; do
4407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4408     ac_cv_prog_CC="${ac_tool_prefix}cc"
4409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4410     break 2
4411   fi
4412 done
4413   done
4414 IFS=$as_save_IFS
4415
4416 fi
4417 fi
4418 CC=$ac_cv_prog_CC
4419 if test -n "$CC"; then
4420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4421 $as_echo "$CC" >&6; }
4422 else
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 fi
4426
4427
4428   fi
4429 fi
4430 if test -z "$CC"; then
4431   # Extract the first word of "cc", so it can be a program name with args.
4432 set dummy cc; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_CC+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   if test -n "$CC"; then
4439   ac_cv_prog_CC="$CC" # Let the user override the test.
4440 else
4441   ac_prog_rejected=no
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4444 do
4445   IFS=$as_save_IFS
4446   test -z "$as_dir" && as_dir=.
4447     for ac_exec_ext in '' $ac_executable_extensions; do
4448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4450        ac_prog_rejected=yes
4451        continue
4452      fi
4453     ac_cv_prog_CC="cc"
4454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4455     break 2
4456   fi
4457 done
4458   done
4459 IFS=$as_save_IFS
4460
4461 if test $ac_prog_rejected = yes; then
4462   # We found a bogon in the path, so make sure we never use it.
4463   set dummy $ac_cv_prog_CC
4464   shift
4465   if test $# != 0; then
4466     # We chose a different compiler from the bogus one.
4467     # However, it has the same basename, so the bogon will be chosen
4468     # first if we set CC to just the basename; use the full file name.
4469     shift
4470     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4471   fi
4472 fi
4473 fi
4474 fi
4475 CC=$ac_cv_prog_CC
4476 if test -n "$CC"; then
4477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4478 $as_echo "$CC" >&6; }
4479 else
4480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4482 fi
4483
4484
4485 fi
4486 if test -z "$CC"; then
4487   if test -n "$ac_tool_prefix"; then
4488   for ac_prog in cl.exe
4489   do
4490     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4491 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4493 $as_echo_n "checking for $ac_word... " >&6; }
4494 if ${ac_cv_prog_CC+:} false; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497   if test -n "$CC"; then
4498   ac_cv_prog_CC="$CC" # Let the user override the test.
4499 else
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501 for as_dir in $PATH
4502 do
4503   IFS=$as_save_IFS
4504   test -z "$as_dir" && as_dir=.
4505     for ac_exec_ext in '' $ac_executable_extensions; do
4506   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4508     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4509     break 2
4510   fi
4511 done
4512   done
4513 IFS=$as_save_IFS
4514
4515 fi
4516 fi
4517 CC=$ac_cv_prog_CC
4518 if test -n "$CC"; then
4519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4520 $as_echo "$CC" >&6; }
4521 else
4522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4524 fi
4525
4526
4527     test -n "$CC" && break
4528   done
4529 fi
4530 if test -z "$CC"; then
4531   ac_ct_CC=$CC
4532   for ac_prog in cl.exe
4533 do
4534   # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4539   $as_echo_n "(cached) " >&6
4540 else
4541   if test -n "$ac_ct_CC"; then
4542   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4546 do
4547   IFS=$as_save_IFS
4548   test -z "$as_dir" && as_dir=.
4549     for ac_exec_ext in '' $ac_executable_extensions; do
4550   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551     ac_cv_prog_ac_ct_CC="$ac_prog"
4552     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553     break 2
4554   fi
4555 done
4556   done
4557 IFS=$as_save_IFS
4558
4559 fi
4560 fi
4561 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4562 if test -n "$ac_ct_CC"; then
4563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4564 $as_echo "$ac_ct_CC" >&6; }
4565 else
4566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4568 fi
4569
4570
4571   test -n "$ac_ct_CC" && break
4572 done
4573
4574   if test "x$ac_ct_CC" = x; then
4575     CC=""
4576   else
4577     case $cross_compiling:$ac_tool_warned in
4578 yes:)
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4581 ac_tool_warned=yes ;;
4582 esac
4583     CC=$ac_ct_CC
4584   fi
4585 fi
4586
4587 fi
4588
4589
4590 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4592 as_fn_error $? "no acceptable C compiler found in \$PATH
4593 See \`config.log' for more details" "$LINENO" 5; }
4594
4595 # Provide some information about the compiler.
4596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4597 set X $ac_compile
4598 ac_compiler=$2
4599 for ac_option in --version -v -V -qversion; do
4600   { { ac_try="$ac_compiler $ac_option >&5"
4601 case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4606 $as_echo "$ac_try_echo"; } >&5
4607   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4608   ac_status=$?
4609   if test -s conftest.err; then
4610     sed '10a\
4611 ... rest of stderr output deleted ...
4612          10q' conftest.err >conftest.er1
4613     cat conftest.er1 >&5
4614   fi
4615   rm -f conftest.er1 conftest.err
4616   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4617   test $ac_status = 0; }
4618 done
4619
4620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h.  */
4622
4623 int
4624 main ()
4625 {
4626
4627   ;
4628   return 0;
4629 }
4630 _ACEOF
4631 ac_clean_files_save=$ac_clean_files
4632 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4633 # Try to create an executable without -o first, disregard a.out.
4634 # It will help us diagnose broken compilers, and finding out an intuition
4635 # of exeext.
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4637 $as_echo_n "checking whether the C compiler works... " >&6; }
4638 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4639
4640 # The possible output files:
4641 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4642
4643 ac_rmfiles=
4644 for ac_file in $ac_files
4645 do
4646   case $ac_file in
4647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4648     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4649   esac
4650 done
4651 rm -f $ac_rmfiles
4652
4653 if { { ac_try="$ac_link_default"
4654 case "(($ac_try" in
4655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656   *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4659 $as_echo "$ac_try_echo"; } >&5
4660   (eval "$ac_link_default") 2>&5
4661   ac_status=$?
4662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4663   test $ac_status = 0; }; then :
4664   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4665 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4666 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4667 # so that the user can short-circuit this test for compilers unknown to
4668 # Autoconf.
4669 for ac_file in $ac_files ''
4670 do
4671   test -f "$ac_file" || continue
4672   case $ac_file in
4673     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4674         ;;
4675     [ab].out )
4676         # We found the default executable, but exeext='' is most
4677         # certainly right.
4678         break;;
4679     *.* )
4680         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4681         then :; else
4682            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4683         fi
4684         # We set ac_cv_exeext here because the later test for it is not
4685         # safe: cross compilers may not add the suffix if given an `-o'
4686         # argument, so we may need to know it at that point already.
4687         # Even if this section looks crufty: it has the advantage of
4688         # actually working.
4689         break;;
4690     * )
4691         break;;
4692   esac
4693 done
4694 test "$ac_cv_exeext" = no && ac_cv_exeext=
4695
4696 else
4697   ac_file=''
4698 fi
4699 if test -z "$ac_file"; then :
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 $as_echo "no" >&6; }
4702 $as_echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4704
4705 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4706 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4707 as_fn_error 77 "C compiler cannot create executables
4708 See \`config.log' for more details" "$LINENO" 5; }
4709 else
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4711 $as_echo "yes" >&6; }
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4714 $as_echo_n "checking for C compiler default output file name... " >&6; }
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4716 $as_echo "$ac_file" >&6; }
4717 ac_exeext=$ac_cv_exeext
4718
4719 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4720 ac_clean_files=$ac_clean_files_save
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4722 $as_echo_n "checking for suffix of executables... " >&6; }
4723 if { { ac_try="$ac_link"
4724 case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4729 $as_echo "$ac_try_echo"; } >&5
4730   (eval "$ac_link") 2>&5
4731   ac_status=$?
4732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4733   test $ac_status = 0; }; then :
4734   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4735 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4736 # work properly (i.e., refer to `conftest.exe'), while it won't with
4737 # `rm'.
4738 for ac_file in conftest.exe conftest conftest.*; do
4739   test -f "$ac_file" || continue
4740   case $ac_file in
4741     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4742     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4743           break;;
4744     * ) break;;
4745   esac
4746 done
4747 else
4748   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4749 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4750 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4751 See \`config.log' for more details" "$LINENO" 5; }
4752 fi
4753 rm -f conftest conftest$ac_cv_exeext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4755 $as_echo "$ac_cv_exeext" >&6; }
4756
4757 rm -f conftest.$ac_ext
4758 EXEEXT=$ac_cv_exeext
4759 ac_exeext=$EXEEXT
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762 #include <stdio.h>
4763 int
4764 main ()
4765 {
4766 FILE *f = fopen ("conftest.out", "w");
4767  return ferror (f) || fclose (f) != 0;
4768
4769   ;
4770   return 0;
4771 }
4772 _ACEOF
4773 ac_clean_files="$ac_clean_files conftest.out"
4774 # Check that the compiler produces executables we can run.  If not, either
4775 # the compiler is broken, or we cross compile.
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4777 $as_echo_n "checking whether we are cross compiling... " >&6; }
4778 if test "$cross_compiling" != yes; then
4779   { { ac_try="$ac_link"
4780 case "(($ac_try" in
4781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4782   *) ac_try_echo=$ac_try;;
4783 esac
4784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4785 $as_echo "$ac_try_echo"; } >&5
4786   (eval "$ac_link") 2>&5
4787   ac_status=$?
4788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4789   test $ac_status = 0; }
4790   if { ac_try='./conftest$ac_cv_exeext'
4791   { { case "(($ac_try" in
4792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4793   *) ac_try_echo=$ac_try;;
4794 esac
4795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4796 $as_echo "$ac_try_echo"; } >&5
4797   (eval "$ac_try") 2>&5
4798   ac_status=$?
4799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4800   test $ac_status = 0; }; }; then
4801     cross_compiling=no
4802   else
4803     if test "$cross_compiling" = maybe; then
4804         cross_compiling=yes
4805     else
4806         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4808 as_fn_error $? "cannot run C compiled programs.
4809 If you meant to cross compile, use \`--host'.
4810 See \`config.log' for more details" "$LINENO" 5; }
4811     fi
4812   fi
4813 fi
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4815 $as_echo "$cross_compiling" >&6; }
4816
4817 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4818 ac_clean_files=$ac_clean_files_save
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4820 $as_echo_n "checking for suffix of object files... " >&6; }
4821 if ${ac_cv_objext+:} false; then :
4822   $as_echo_n "(cached) " >&6
4823 else
4824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4825 /* end confdefs.h.  */
4826
4827 int
4828 main ()
4829 {
4830
4831   ;
4832   return 0;
4833 }
4834 _ACEOF
4835 rm -f conftest.o conftest.obj
4836 if { { ac_try="$ac_compile"
4837 case "(($ac_try" in
4838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839   *) ac_try_echo=$ac_try;;
4840 esac
4841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4842 $as_echo "$ac_try_echo"; } >&5
4843   (eval "$ac_compile") 2>&5
4844   ac_status=$?
4845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4846   test $ac_status = 0; }; then :
4847   for ac_file in conftest.o conftest.obj conftest.*; do
4848   test -f "$ac_file" || continue;
4849   case $ac_file in
4850     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4851     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4852        break;;
4853   esac
4854 done
4855 else
4856   $as_echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4861 as_fn_error $? "cannot compute suffix of object files: cannot compile
4862 See \`config.log' for more details" "$LINENO" 5; }
4863 fi
4864 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4867 $as_echo "$ac_cv_objext" >&6; }
4868 OBJEXT=$ac_cv_objext
4869 ac_objext=$OBJEXT
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4871 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4872 if ${ac_cv_c_compiler_gnu+:} false; then :
4873   $as_echo_n "(cached) " >&6
4874 else
4875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h.  */
4877
4878 int
4879 main ()
4880 {
4881 #ifndef __GNUC__
4882        choke me
4883 #endif
4884
4885   ;
4886   return 0;
4887 }
4888 _ACEOF
4889 if ac_fn_c_try_compile "$LINENO"; then :
4890   ac_compiler_gnu=yes
4891 else
4892   ac_compiler_gnu=no
4893 fi
4894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4896
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4899 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4900 if test $ac_compiler_gnu = yes; then
4901   GCC=yes
4902 else
4903   GCC=
4904 fi
4905 ac_test_CFLAGS=${CFLAGS+set}
4906 ac_save_CFLAGS=$CFLAGS
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4908 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4909 if ${ac_cv_prog_cc_g+:} false; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   ac_save_c_werror_flag=$ac_c_werror_flag
4913    ac_c_werror_flag=yes
4914    ac_cv_prog_cc_g=no
4915    CFLAGS="-g"
4916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h.  */
4918
4919 int
4920 main ()
4921 {
4922
4923   ;
4924   return 0;
4925 }
4926 _ACEOF
4927 if ac_fn_c_try_compile "$LINENO"; then :
4928   ac_cv_prog_cc_g=yes
4929 else
4930   CFLAGS=""
4931       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933
4934 int
4935 main ()
4936 {
4937
4938   ;
4939   return 0;
4940 }
4941 _ACEOF
4942 if ac_fn_c_try_compile "$LINENO"; then :
4943
4944 else
4945   ac_c_werror_flag=$ac_save_c_werror_flag
4946          CFLAGS="-g"
4947          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949
4950 int
4951 main ()
4952 {
4953
4954   ;
4955   return 0;
4956 }
4957 _ACEOF
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959   ac_cv_prog_cc_g=yes
4960 fi
4961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4962 fi
4963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4964 fi
4965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4966    ac_c_werror_flag=$ac_save_c_werror_flag
4967 fi
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4969 $as_echo "$ac_cv_prog_cc_g" >&6; }
4970 if test "$ac_test_CFLAGS" = set; then
4971   CFLAGS=$ac_save_CFLAGS
4972 elif test $ac_cv_prog_cc_g = yes; then
4973   if test "$GCC" = yes; then
4974     CFLAGS="-g -O2"
4975   else
4976     CFLAGS="-g"
4977   fi
4978 else
4979   if test "$GCC" = yes; then
4980     CFLAGS="-O2"
4981   else
4982     CFLAGS=
4983   fi
4984 fi
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4987 if ${ac_cv_prog_cc_c89+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   ac_cv_prog_cc_c89=no
4991 ac_save_CC=$CC
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h.  */
4994 #include <stdarg.h>
4995 #include <stdio.h>
4996 #include <sys/types.h>
4997 #include <sys/stat.h>
4998 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4999 struct buf { int x; };
5000 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5001 static char *e (p, i)
5002      char **p;
5003      int i;
5004 {
5005   return p[i];
5006 }
5007 static char *f (char * (*g) (char **, int), char **p, ...)
5008 {
5009   char *s;
5010   va_list v;
5011   va_start (v,p);
5012   s = g (p, va_arg (v,int));
5013   va_end (v);
5014   return s;
5015 }
5016
5017 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5018    function prototypes and stuff, but not '\xHH' hex character constants.
5019    These don't provoke an error unfortunately, instead are silently treated
5020    as 'x'.  The following induces an error, until -std is added to get
5021    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5022    array size at least.  It's necessary to write '\x00'==0 to get something
5023    that's true only with -std.  */
5024 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5025
5026 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5027    inside strings and character constants.  */
5028 #define FOO(x) 'x'
5029 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5030
5031 int test (int i, double x);
5032 struct s1 {int (*f) (int a);};
5033 struct s2 {int (*f) (double a);};
5034 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5035 int argc;
5036 char **argv;
5037 int
5038 main ()
5039 {
5040 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5041   ;
5042   return 0;
5043 }
5044 _ACEOF
5045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5046         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5047 do
5048   CC="$ac_save_CC $ac_arg"
5049   if ac_fn_c_try_compile "$LINENO"; then :
5050   ac_cv_prog_cc_c89=$ac_arg
5051 fi
5052 rm -f core conftest.err conftest.$ac_objext
5053   test "x$ac_cv_prog_cc_c89" != "xno" && break
5054 done
5055 rm -f conftest.$ac_ext
5056 CC=$ac_save_CC
5057
5058 fi
5059 # AC_CACHE_VAL
5060 case "x$ac_cv_prog_cc_c89" in
5061   x)
5062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5063 $as_echo "none needed" >&6; } ;;
5064   xno)
5065     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5066 $as_echo "unsupported" >&6; } ;;
5067   *)
5068     CC="$CC $ac_cv_prog_cc_c89"
5069     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5070 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5071 esac
5072 if test "x$ac_cv_prog_cc_c89" != xno; then :
5073
5074 fi
5075
5076 ac_ext=c
5077 ac_cpp='$CPP $CPPFLAGS'
5078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5081
5082 depcc="$CC"   am_compiler_list=
5083
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5085 $as_echo_n "checking dependency style of $depcc... " >&6; }
5086 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5087   $as_echo_n "(cached) " >&6
5088 else
5089   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5090   # We make a subdir and do the tests there.  Otherwise we can end up
5091   # making bogus files that we don't know about and never remove.  For
5092   # instance it was reported that on HP-UX the gcc test will end up
5093   # making a dummy file named `D' -- because `-MD' means `put the output
5094   # in D'.
5095   mkdir conftest.dir
5096   # Copy depcomp to subdir because otherwise we won't find it if we're
5097   # using a relative directory.
5098   cp "$am_depcomp" conftest.dir
5099   cd conftest.dir
5100   # We will build objects and dependencies in a subdirectory because
5101   # it helps to detect inapplicable dependency modes.  For instance
5102   # both Tru64's cc and ICC support -MD to output dependencies as a
5103   # side effect of compilation, but ICC will put the dependencies in
5104   # the current directory while Tru64 will put them in the object
5105   # directory.
5106   mkdir sub
5107
5108   am_cv_CC_dependencies_compiler_type=none
5109   if test "$am_compiler_list" = ""; then
5110      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5111   fi
5112   am__universal=false
5113   case " $depcc " in #(
5114      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5115      esac
5116
5117   for depmode in $am_compiler_list; do
5118     # Setup a source with many dependencies, because some compilers
5119     # like to wrap large dependency lists on column 80 (with \), and
5120     # we should not choose a depcomp mode which is confused by this.
5121     #
5122     # We need to recreate these files for each test, as the compiler may
5123     # overwrite some of them when testing with obscure command lines.
5124     # This happens at least with the AIX C compiler.
5125     : > sub/conftest.c
5126     for i in 1 2 3 4 5 6; do
5127       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5128       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5129       # Solaris 8's {/usr,}/bin/sh.
5130       touch sub/conftst$i.h
5131     done
5132     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5133
5134     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5135     # mode.  It turns out that the SunPro C++ compiler does not properly
5136     # handle `-M -o', and we need to detect this.  Also, some Intel
5137     # versions had trouble with output in subdirs
5138     am__obj=sub/conftest.${OBJEXT-o}
5139     am__minus_obj="-o $am__obj"
5140     case $depmode in
5141     gcc)
5142       # This depmode causes a compiler race in universal mode.
5143       test "$am__universal" = false || continue
5144       ;;
5145     nosideeffect)
5146       # after this tag, mechanisms are not by side-effect, so they'll
5147       # only be used when explicitly requested
5148       if test "x$enable_dependency_tracking" = xyes; then
5149         continue
5150       else
5151         break
5152       fi
5153       ;;
5154     msvisualcpp | msvcmsys)
5155       # This compiler won't grok `-c -o', but also, the minuso test has
5156       # not run yet.  These depmodes are late enough in the game, and
5157       # so weak that their functioning should not be impacted.
5158       am__obj=conftest.${OBJEXT-o}
5159       am__minus_obj=
5160       ;;
5161     none) break ;;
5162     esac
5163     if depmode=$depmode \
5164        source=sub/conftest.c object=$am__obj \
5165        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5166        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5167          >/dev/null 2>conftest.err &&
5168        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5169        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5170        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5171        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5172       # icc doesn't choke on unknown options, it will just issue warnings
5173       # or remarks (even with -Werror).  So we grep stderr for any message
5174       # that says an option was ignored or not supported.
5175       # When given -MP, icc 7.0 and 7.1 complain thusly:
5176       #   icc: Command line warning: ignoring option '-M'; no argument required
5177       # The diagnosis changed in icc 8.0:
5178       #   icc: Command line remark: option '-MP' not supported
5179       if (grep 'ignoring option' conftest.err ||
5180           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5181         am_cv_CC_dependencies_compiler_type=$depmode
5182         break
5183       fi
5184     fi
5185   done
5186
5187   cd ..
5188   rm -rf conftest.dir
5189 else
5190   am_cv_CC_dependencies_compiler_type=none
5191 fi
5192
5193 fi
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5196 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5197
5198  if
5199   test "x$enable_dependency_tracking" != xno \
5200   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5201   am__fastdepCC_TRUE=
5202   am__fastdepCC_FALSE='#'
5203 else
5204   am__fastdepCC_TRUE='#'
5205   am__fastdepCC_FALSE=
5206 fi
5207
5208
5209
5210 ac_ext=c
5211 ac_cpp='$CPP $CPPFLAGS'
5212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5216 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5217 # On Suns, sometimes $CPP names a directory.
5218 if test -n "$CPP" && test -d "$CPP"; then
5219   CPP=
5220 fi
5221 if test -z "$CPP"; then
5222   if ${ac_cv_prog_CPP+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225       # Double quotes because CPP needs to be expanded
5226     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5227     do
5228       ac_preproc_ok=false
5229 for ac_c_preproc_warn_flag in '' yes
5230 do
5231   # Use a header file that comes with gcc, so configuring glibc
5232   # with a fresh cross-compiler works.
5233   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5234   # <limits.h> exists even on freestanding compilers.
5235   # On the NeXT, cc -E runs the code through the compiler's parser,
5236   # not just through cpp. "Syntax error" is here to catch this case.
5237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5238 /* end confdefs.h.  */
5239 #ifdef __STDC__
5240 # include <limits.h>
5241 #else
5242 # include <assert.h>
5243 #endif
5244                      Syntax error
5245 _ACEOF
5246 if ac_fn_c_try_cpp "$LINENO"; then :
5247
5248 else
5249   # Broken: fails on valid input.
5250 continue
5251 fi
5252 rm -f conftest.err conftest.i conftest.$ac_ext
5253
5254   # OK, works on sane cases.  Now check whether nonexistent headers
5255   # can be detected and how.
5256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5257 /* end confdefs.h.  */
5258 #include <ac_nonexistent.h>
5259 _ACEOF
5260 if ac_fn_c_try_cpp "$LINENO"; then :
5261   # Broken: success on invalid input.
5262 continue
5263 else
5264   # Passes both tests.
5265 ac_preproc_ok=:
5266 break
5267 fi
5268 rm -f conftest.err conftest.i conftest.$ac_ext
5269
5270 done
5271 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5272 rm -f conftest.i conftest.err conftest.$ac_ext
5273 if $ac_preproc_ok; then :
5274   break
5275 fi
5276
5277     done
5278     ac_cv_prog_CPP=$CPP
5279
5280 fi
5281   CPP=$ac_cv_prog_CPP
5282 else
5283   ac_cv_prog_CPP=$CPP
5284 fi
5285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5286 $as_echo "$CPP" >&6; }
5287 ac_preproc_ok=false
5288 for ac_c_preproc_warn_flag in '' yes
5289 do
5290   # Use a header file that comes with gcc, so configuring glibc
5291   # with a fresh cross-compiler works.
5292   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5293   # <limits.h> exists even on freestanding compilers.
5294   # On the NeXT, cc -E runs the code through the compiler's parser,
5295   # not just through cpp. "Syntax error" is here to catch this case.
5296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h.  */
5298 #ifdef __STDC__
5299 # include <limits.h>
5300 #else
5301 # include <assert.h>
5302 #endif
5303                      Syntax error
5304 _ACEOF
5305 if ac_fn_c_try_cpp "$LINENO"; then :
5306
5307 else
5308   # Broken: fails on valid input.
5309 continue
5310 fi
5311 rm -f conftest.err conftest.i conftest.$ac_ext
5312
5313   # OK, works on sane cases.  Now check whether nonexistent headers
5314   # can be detected and how.
5315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316 /* end confdefs.h.  */
5317 #include <ac_nonexistent.h>
5318 _ACEOF
5319 if ac_fn_c_try_cpp "$LINENO"; then :
5320   # Broken: success on invalid input.
5321 continue
5322 else
5323   # Passes both tests.
5324 ac_preproc_ok=:
5325 break
5326 fi
5327 rm -f conftest.err conftest.i conftest.$ac_ext
5328
5329 done
5330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5331 rm -f conftest.i conftest.err conftest.$ac_ext
5332 if $ac_preproc_ok; then :
5333
5334 else
5335   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5337 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5338 See \`config.log' for more details" "$LINENO" 5; }
5339 fi
5340
5341 ac_ext=c
5342 ac_cpp='$CPP $CPPFLAGS'
5343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5346
5347
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5349 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5350 if ${ac_cv_path_GREP+:} false; then :
5351   $as_echo_n "(cached) " >&6
5352 else
5353   if test -z "$GREP"; then
5354   ac_path_GREP_found=false
5355   # Loop through the user's path and test for each of PROGNAME-LIST
5356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361     for ac_prog in grep ggrep; do
5362     for ac_exec_ext in '' $ac_executable_extensions; do
5363       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5364       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5365 # Check for GNU ac_path_GREP and select it if it is found.
5366   # Check for GNU $ac_path_GREP
5367 case `"$ac_path_GREP" --version 2>&1` in
5368 *GNU*)
5369   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5370 *)
5371   ac_count=0
5372   $as_echo_n 0123456789 >"conftest.in"
5373   while :
5374   do
5375     cat "conftest.in" "conftest.in" >"conftest.tmp"
5376     mv "conftest.tmp" "conftest.in"
5377     cp "conftest.in" "conftest.nl"
5378     $as_echo 'GREP' >> "conftest.nl"
5379     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5380     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5381     as_fn_arith $ac_count + 1 && ac_count=$as_val
5382     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5383       # Best one so far, save it but keep looking for a better one
5384       ac_cv_path_GREP="$ac_path_GREP"
5385       ac_path_GREP_max=$ac_count
5386     fi
5387     # 10*(2^10) chars as input seems more than enough
5388     test $ac_count -gt 10 && break
5389   done
5390   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391 esac
5392
5393       $ac_path_GREP_found && break 3
5394     done
5395   done
5396   done
5397 IFS=$as_save_IFS
5398   if test -z "$ac_cv_path_GREP"; then
5399     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5400   fi
5401 else
5402   ac_cv_path_GREP=$GREP
5403 fi
5404
5405 fi
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5407 $as_echo "$ac_cv_path_GREP" >&6; }
5408  GREP="$ac_cv_path_GREP"
5409
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5412 $as_echo_n "checking for egrep... " >&6; }
5413 if ${ac_cv_path_EGREP+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5417    then ac_cv_path_EGREP="$GREP -E"
5418    else
5419      if test -z "$EGREP"; then
5420   ac_path_EGREP_found=false
5421   # Loop through the user's path and test for each of PROGNAME-LIST
5422   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5424 do
5425   IFS=$as_save_IFS
5426   test -z "$as_dir" && as_dir=.
5427     for ac_prog in egrep; do
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5430       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5431 # Check for GNU ac_path_EGREP and select it if it is found.
5432   # Check for GNU $ac_path_EGREP
5433 case `"$ac_path_EGREP" --version 2>&1` in
5434 *GNU*)
5435   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5436 *)
5437   ac_count=0
5438   $as_echo_n 0123456789 >"conftest.in"
5439   while :
5440   do
5441     cat "conftest.in" "conftest.in" >"conftest.tmp"
5442     mv "conftest.tmp" "conftest.in"
5443     cp "conftest.in" "conftest.nl"
5444     $as_echo 'EGREP' >> "conftest.nl"
5445     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5446     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5447     as_fn_arith $ac_count + 1 && ac_count=$as_val
5448     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5449       # Best one so far, save it but keep looking for a better one
5450       ac_cv_path_EGREP="$ac_path_EGREP"
5451       ac_path_EGREP_max=$ac_count
5452     fi
5453     # 10*(2^10) chars as input seems more than enough
5454     test $ac_count -gt 10 && break
5455   done
5456   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5457 esac
5458
5459       $ac_path_EGREP_found && break 3
5460     done
5461   done
5462   done
5463 IFS=$as_save_IFS
5464   if test -z "$ac_cv_path_EGREP"; then
5465     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5466   fi
5467 else
5468   ac_cv_path_EGREP=$EGREP
5469 fi
5470
5471    fi
5472 fi
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5474 $as_echo "$ac_cv_path_EGREP" >&6; }
5475  EGREP="$ac_cv_path_EGREP"
5476
5477
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5479 $as_echo_n "checking for ANSI C header files... " >&6; }
5480 if ${ac_cv_header_stdc+:} false; then :
5481   $as_echo_n "(cached) " >&6
5482 else
5483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h.  */
5485 #include <stdlib.h>
5486 #include <stdarg.h>
5487 #include <string.h>
5488 #include <float.h>
5489
5490 int
5491 main ()
5492 {
5493
5494   ;
5495   return 0;
5496 }
5497 _ACEOF
5498 if ac_fn_c_try_compile "$LINENO"; then :
5499   ac_cv_header_stdc=yes
5500 else
5501   ac_cv_header_stdc=no
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5504
5505 if test $ac_cv_header_stdc = yes; then
5506   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h.  */
5509 #include <string.h>
5510
5511 _ACEOF
5512 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5513   $EGREP "memchr" >/dev/null 2>&1; then :
5514
5515 else
5516   ac_cv_header_stdc=no
5517 fi
5518 rm -f conftest*
5519
5520 fi
5521
5522 if test $ac_cv_header_stdc = yes; then
5523   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5524   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526 #include <stdlib.h>
5527
5528 _ACEOF
5529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5530   $EGREP "free" >/dev/null 2>&1; then :
5531
5532 else
5533   ac_cv_header_stdc=no
5534 fi
5535 rm -f conftest*
5536
5537 fi
5538
5539 if test $ac_cv_header_stdc = yes; then
5540   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5541   if test "$cross_compiling" = yes; then :
5542   :
5543 else
5544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h.  */
5546 #include <ctype.h>
5547 #include <stdlib.h>
5548 #if ((' ' & 0x0FF) == 0x020)
5549 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5550 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5551 #else
5552 # define ISLOWER(c) \
5553                    (('a' <= (c) && (c) <= 'i') \
5554                      || ('j' <= (c) && (c) <= 'r') \
5555                      || ('s' <= (c) && (c) <= 'z'))
5556 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5557 #endif
5558
5559 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5560 int
5561 main ()
5562 {
5563   int i;
5564   for (i = 0; i < 256; i++)
5565     if (XOR (islower (i), ISLOWER (i))
5566         || toupper (i) != TOUPPER (i))
5567       return 2;
5568   return 0;
5569 }
5570 _ACEOF
5571 if ac_fn_c_try_run "$LINENO"; then :
5572
5573 else
5574   ac_cv_header_stdc=no
5575 fi
5576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5577   conftest.$ac_objext conftest.beam conftest.$ac_ext
5578 fi
5579
5580 fi
5581 fi
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5583 $as_echo "$ac_cv_header_stdc" >&6; }
5584 if test $ac_cv_header_stdc = yes; then
5585
5586 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5587
5588 fi
5589
5590 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5591 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5592                   inttypes.h stdint.h unistd.h
5593 do :
5594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5595 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5596 "
5597 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5598   cat >>confdefs.h <<_ACEOF
5599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5600 _ACEOF
5601
5602 fi
5603
5604 done
5605
5606
5607
5608   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5609 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5610   MINIX=yes
5611 else
5612   MINIX=
5613 fi
5614
5615
5616   if test "$MINIX" = yes; then
5617
5618 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5619
5620
5621 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5622
5623
5624 $as_echo "#define _MINIX 1" >>confdefs.h
5625
5626   fi
5627
5628
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5630 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5631 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5632   $as_echo_n "(cached) " >&6
5633 else
5634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h.  */
5636
5637 #         define __EXTENSIONS__ 1
5638           $ac_includes_default
5639 int
5640 main ()
5641 {
5642
5643   ;
5644   return 0;
5645 }
5646 _ACEOF
5647 if ac_fn_c_try_compile "$LINENO"; then :
5648   ac_cv_safe_to_define___extensions__=yes
5649 else
5650   ac_cv_safe_to_define___extensions__=no
5651 fi
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 fi
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5655 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5656   test $ac_cv_safe_to_define___extensions__ = yes &&
5657     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5658
5659   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5660
5661   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5662
5663   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5664
5665   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5666
5667
5668
5669 # Check for programs
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675 if test -n "$ac_tool_prefix"; then
5676   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_CC+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$CC"; then
5684   ac_cv_prog_CC="$CC" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 CC=$ac_cv_prog_CC
5704 if test -n "$CC"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706 $as_echo "$CC" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 fi
5714 if test -z "$ac_cv_prog_CC"; then
5715   ac_ct_CC=$CC
5716   # Extract the first word of "gcc", so it can be a program name with args.
5717 set dummy gcc; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$ac_ct_CC"; then
5724   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733     ac_cv_prog_ac_ct_CC="gcc"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5744 if test -n "$ac_ct_CC"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5746 $as_echo "$ac_ct_CC" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752   if test "x$ac_ct_CC" = x; then
5753     CC=""
5754   else
5755     case $cross_compiling:$ac_tool_warned in
5756 yes:)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761     CC=$ac_ct_CC
5762   fi
5763 else
5764   CC="$ac_cv_prog_CC"
5765 fi
5766
5767 if test -z "$CC"; then
5768           if test -n "$ac_tool_prefix"; then
5769     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5770 set dummy ${ac_tool_prefix}cc; ac_word=$2
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772 $as_echo_n "checking for $ac_word... " >&6; }
5773 if ${ac_cv_prog_CC+:} false; then :
5774   $as_echo_n "(cached) " >&6
5775 else
5776   if test -n "$CC"; then
5777   ac_cv_prog_CC="$CC" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782   IFS=$as_save_IFS
5783   test -z "$as_dir" && as_dir=.
5784     for ac_exec_ext in '' $ac_executable_extensions; do
5785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786     ac_cv_prog_CC="${ac_tool_prefix}cc"
5787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788     break 2
5789   fi
5790 done
5791   done
5792 IFS=$as_save_IFS
5793
5794 fi
5795 fi
5796 CC=$ac_cv_prog_CC
5797 if test -n "$CC"; then
5798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5799 $as_echo "$CC" >&6; }
5800 else
5801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802 $as_echo "no" >&6; }
5803 fi
5804
5805
5806   fi
5807 fi
5808 if test -z "$CC"; then
5809   # Extract the first word of "cc", so it can be a program name with args.
5810 set dummy cc; ac_word=$2
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812 $as_echo_n "checking for $ac_word... " >&6; }
5813 if ${ac_cv_prog_CC+:} false; then :
5814   $as_echo_n "(cached) " >&6
5815 else
5816   if test -n "$CC"; then
5817   ac_cv_prog_CC="$CC" # Let the user override the test.
5818 else
5819   ac_prog_rejected=no
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5822 do
5823   IFS=$as_save_IFS
5824   test -z "$as_dir" && as_dir=.
5825     for ac_exec_ext in '' $ac_executable_extensions; do
5826   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5828        ac_prog_rejected=yes
5829        continue
5830      fi
5831     ac_cv_prog_CC="cc"
5832     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833     break 2
5834   fi
5835 done
5836   done
5837 IFS=$as_save_IFS
5838
5839 if test $ac_prog_rejected = yes; then
5840   # We found a bogon in the path, so make sure we never use it.
5841   set dummy $ac_cv_prog_CC
5842   shift
5843   if test $# != 0; then
5844     # We chose a different compiler from the bogus one.
5845     # However, it has the same basename, so the bogon will be chosen
5846     # first if we set CC to just the basename; use the full file name.
5847     shift
5848     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5849   fi
5850 fi
5851 fi
5852 fi
5853 CC=$ac_cv_prog_CC
5854 if test -n "$CC"; then
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856 $as_echo "$CC" >&6; }
5857 else
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859 $as_echo "no" >&6; }
5860 fi
5861
5862
5863 fi
5864 if test -z "$CC"; then
5865   if test -n "$ac_tool_prefix"; then
5866   for ac_prog in cl.exe
5867   do
5868     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_CC+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   if test -n "$CC"; then
5876   ac_cv_prog_CC="$CC" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883     for ac_exec_ext in '' $ac_executable_extensions; do
5884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887     break 2
5888   fi
5889 done
5890   done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 CC=$ac_cv_prog_CC
5896 if test -n "$CC"; then
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5898 $as_echo "$CC" >&6; }
5899 else
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905     test -n "$CC" && break
5906   done
5907 fi
5908 if test -z "$CC"; then
5909   ac_ct_CC=$CC
5910   for ac_prog in cl.exe
5911 do
5912   # Extract the first word of "$ac_prog", so it can be a program name with args.
5913 set dummy $ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   if test -n "$ac_ct_CC"; then
5920   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927     for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_prog_ac_ct_CC="$ac_prog"
5930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934   done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5940 if test -n "$ac_ct_CC"; then
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5942 $as_echo "$ac_ct_CC" >&6; }
5943 else
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949   test -n "$ac_ct_CC" && break
5950 done
5951
5952   if test "x$ac_ct_CC" = x; then
5953     CC=""
5954   else
5955     case $cross_compiling:$ac_tool_warned in
5956 yes:)
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959 ac_tool_warned=yes ;;
5960 esac
5961     CC=$ac_ct_CC
5962   fi
5963 fi
5964
5965 fi
5966
5967
5968 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970 as_fn_error $? "no acceptable C compiler found in \$PATH
5971 See \`config.log' for more details" "$LINENO" 5; }
5972
5973 # Provide some information about the compiler.
5974 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5975 set X $ac_compile
5976 ac_compiler=$2
5977 for ac_option in --version -v -V -qversion; do
5978   { { ac_try="$ac_compiler $ac_option >&5"
5979 case "(($ac_try" in
5980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981   *) ac_try_echo=$ac_try;;
5982 esac
5983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984 $as_echo "$ac_try_echo"; } >&5
5985   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5986   ac_status=$?
5987   if test -s conftest.err; then
5988     sed '10a\
5989 ... rest of stderr output deleted ...
5990          10q' conftest.err >conftest.er1
5991     cat conftest.er1 >&5
5992   fi
5993   rm -f conftest.er1 conftest.err
5994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995   test $ac_status = 0; }
5996 done
5997
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6000 if ${ac_cv_c_compiler_gnu+:} false; then :
6001   $as_echo_n "(cached) " >&6
6002 else
6003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h.  */
6005
6006 int
6007 main ()
6008 {
6009 #ifndef __GNUC__
6010        choke me
6011 #endif
6012
6013   ;
6014   return 0;
6015 }
6016 _ACEOF
6017 if ac_fn_c_try_compile "$LINENO"; then :
6018   ac_compiler_gnu=yes
6019 else
6020   ac_compiler_gnu=no
6021 fi
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6024
6025 fi
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6027 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6028 if test $ac_compiler_gnu = yes; then
6029   GCC=yes
6030 else
6031   GCC=
6032 fi
6033 ac_test_CFLAGS=${CFLAGS+set}
6034 ac_save_CFLAGS=$CFLAGS
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6036 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6037 if ${ac_cv_prog_cc_g+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040   ac_save_c_werror_flag=$ac_c_werror_flag
6041    ac_c_werror_flag=yes
6042    ac_cv_prog_cc_g=no
6043    CFLAGS="-g"
6044    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h.  */
6046
6047 int
6048 main ()
6049 {
6050
6051   ;
6052   return 0;
6053 }
6054 _ACEOF
6055 if ac_fn_c_try_compile "$LINENO"; then :
6056   ac_cv_prog_cc_g=yes
6057 else
6058   CFLAGS=""
6059       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060 /* end confdefs.h.  */
6061
6062 int
6063 main ()
6064 {
6065
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 if ac_fn_c_try_compile "$LINENO"; then :
6071
6072 else
6073   ac_c_werror_flag=$ac_save_c_werror_flag
6074          CFLAGS="-g"
6075          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h.  */
6077
6078 int
6079 main ()
6080 {
6081
6082   ;
6083   return 0;
6084 }
6085 _ACEOF
6086 if ac_fn_c_try_compile "$LINENO"; then :
6087   ac_cv_prog_cc_g=yes
6088 fi
6089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090 fi
6091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 fi
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094    ac_c_werror_flag=$ac_save_c_werror_flag
6095 fi
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6097 $as_echo "$ac_cv_prog_cc_g" >&6; }
6098 if test "$ac_test_CFLAGS" = set; then
6099   CFLAGS=$ac_save_CFLAGS
6100 elif test $ac_cv_prog_cc_g = yes; then
6101   if test "$GCC" = yes; then
6102     CFLAGS="-g -O2"
6103   else
6104     CFLAGS="-g"
6105   fi
6106 else
6107   if test "$GCC" = yes; then
6108     CFLAGS="-O2"
6109   else
6110     CFLAGS=
6111   fi
6112 fi
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6115 if ${ac_cv_prog_cc_c89+:} false; then :
6116   $as_echo_n "(cached) " >&6
6117 else
6118   ac_cv_prog_cc_c89=no
6119 ac_save_CC=$CC
6120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h.  */
6122 #include <stdarg.h>
6123 #include <stdio.h>
6124 #include <sys/types.h>
6125 #include <sys/stat.h>
6126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6127 struct buf { int x; };
6128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6129 static char *e (p, i)
6130      char **p;
6131      int i;
6132 {
6133   return p[i];
6134 }
6135 static char *f (char * (*g) (char **, int), char **p, ...)
6136 {
6137   char *s;
6138   va_list v;
6139   va_start (v,p);
6140   s = g (p, va_arg (v,int));
6141   va_end (v);
6142   return s;
6143 }
6144
6145 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6146    function prototypes and stuff, but not '\xHH' hex character constants.
6147    These don't provoke an error unfortunately, instead are silently treated
6148    as 'x'.  The following induces an error, until -std is added to get
6149    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6150    array size at least.  It's necessary to write '\x00'==0 to get something
6151    that's true only with -std.  */
6152 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6153
6154 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6155    inside strings and character constants.  */
6156 #define FOO(x) 'x'
6157 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6158
6159 int test (int i, double x);
6160 struct s1 {int (*f) (int a);};
6161 struct s2 {int (*f) (double a);};
6162 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6163 int argc;
6164 char **argv;
6165 int
6166 main ()
6167 {
6168 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6174         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6175 do
6176   CC="$ac_save_CC $ac_arg"
6177   if ac_fn_c_try_compile "$LINENO"; then :
6178   ac_cv_prog_cc_c89=$ac_arg
6179 fi
6180 rm -f core conftest.err conftest.$ac_objext
6181   test "x$ac_cv_prog_cc_c89" != "xno" && break
6182 done
6183 rm -f conftest.$ac_ext
6184 CC=$ac_save_CC
6185
6186 fi
6187 # AC_CACHE_VAL
6188 case "x$ac_cv_prog_cc_c89" in
6189   x)
6190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191 $as_echo "none needed" >&6; } ;;
6192   xno)
6193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6194 $as_echo "unsupported" >&6; } ;;
6195   *)
6196     CC="$CC $ac_cv_prog_cc_c89"
6197     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6198 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6199 esac
6200 if test "x$ac_cv_prog_cc_c89" != xno; then :
6201
6202 fi
6203
6204 ac_ext=c
6205 ac_cpp='$CPP $CPPFLAGS'
6206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210 depcc="$CC"   am_compiler_list=
6211
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6213 $as_echo_n "checking dependency style of $depcc... " >&6; }
6214 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6215   $as_echo_n "(cached) " >&6
6216 else
6217   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6218   # We make a subdir and do the tests there.  Otherwise we can end up
6219   # making bogus files that we don't know about and never remove.  For
6220   # instance it was reported that on HP-UX the gcc test will end up
6221   # making a dummy file named `D' -- because `-MD' means `put the output
6222   # in D'.
6223   mkdir conftest.dir
6224   # Copy depcomp to subdir because otherwise we won't find it if we're
6225   # using a relative directory.
6226   cp "$am_depcomp" conftest.dir
6227   cd conftest.dir
6228   # We will build objects and dependencies in a subdirectory because
6229   # it helps to detect inapplicable dependency modes.  For instance
6230   # both Tru64's cc and ICC support -MD to output dependencies as a
6231   # side effect of compilation, but ICC will put the dependencies in
6232   # the current directory while Tru64 will put them in the object
6233   # directory.
6234   mkdir sub
6235
6236   am_cv_CC_dependencies_compiler_type=none
6237   if test "$am_compiler_list" = ""; then
6238      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6239   fi
6240   am__universal=false
6241   case " $depcc " in #(
6242      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6243      esac
6244
6245   for depmode in $am_compiler_list; do
6246     # Setup a source with many dependencies, because some compilers
6247     # like to wrap large dependency lists on column 80 (with \), and
6248     # we should not choose a depcomp mode which is confused by this.
6249     #
6250     # We need to recreate these files for each test, as the compiler may
6251     # overwrite some of them when testing with obscure command lines.
6252     # This happens at least with the AIX C compiler.
6253     : > sub/conftest.c
6254     for i in 1 2 3 4 5 6; do
6255       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6256       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6257       # Solaris 8's {/usr,}/bin/sh.
6258       touch sub/conftst$i.h
6259     done
6260     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6261
6262     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6263     # mode.  It turns out that the SunPro C++ compiler does not properly
6264     # handle `-M -o', and we need to detect this.  Also, some Intel
6265     # versions had trouble with output in subdirs
6266     am__obj=sub/conftest.${OBJEXT-o}
6267     am__minus_obj="-o $am__obj"
6268     case $depmode in
6269     gcc)
6270       # This depmode causes a compiler race in universal mode.
6271       test "$am__universal" = false || continue
6272       ;;
6273     nosideeffect)
6274       # after this tag, mechanisms are not by side-effect, so they'll
6275       # only be used when explicitly requested
6276       if test "x$enable_dependency_tracking" = xyes; then
6277         continue
6278       else
6279         break
6280       fi
6281       ;;
6282     msvisualcpp | msvcmsys)
6283       # This compiler won't grok `-c -o', but also, the minuso test has
6284       # not run yet.  These depmodes are late enough in the game, and
6285       # so weak that their functioning should not be impacted.
6286       am__obj=conftest.${OBJEXT-o}
6287       am__minus_obj=
6288       ;;
6289     none) break ;;
6290     esac
6291     if depmode=$depmode \
6292        source=sub/conftest.c object=$am__obj \
6293        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6294        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6295          >/dev/null 2>conftest.err &&
6296        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6297        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6298        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6299        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6300       # icc doesn't choke on unknown options, it will just issue warnings
6301       # or remarks (even with -Werror).  So we grep stderr for any message
6302       # that says an option was ignored or not supported.
6303       # When given -MP, icc 7.0 and 7.1 complain thusly:
6304       #   icc: Command line warning: ignoring option '-M'; no argument required
6305       # The diagnosis changed in icc 8.0:
6306       #   icc: Command line remark: option '-MP' not supported
6307       if (grep 'ignoring option' conftest.err ||
6308           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6309         am_cv_CC_dependencies_compiler_type=$depmode
6310         break
6311       fi
6312     fi
6313   done
6314
6315   cd ..
6316   rm -rf conftest.dir
6317 else
6318   am_cv_CC_dependencies_compiler_type=none
6319 fi
6320
6321 fi
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6323 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6324 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6325
6326  if
6327   test "x$enable_dependency_tracking" != xno \
6328   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6329   am__fastdepCC_TRUE=
6330   am__fastdepCC_FALSE='#'
6331 else
6332   am__fastdepCC_TRUE='#'
6333   am__fastdepCC_FALSE=
6334 fi
6335
6336
6337 ac_ext=cpp
6338 ac_cpp='$CXXCPP $CPPFLAGS'
6339 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6342 if test -z "$CXX"; then
6343   if test -n "$CCC"; then
6344     CXX=$CCC
6345   else
6346     if test -n "$ac_tool_prefix"; then
6347   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6348   do
6349     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_CXX+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   if test -n "$CXX"; then
6357   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6358 else
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360 for as_dir in $PATH
6361 do
6362   IFS=$as_save_IFS
6363   test -z "$as_dir" && as_dir=.
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368     break 2
6369   fi
6370 done
6371   done
6372 IFS=$as_save_IFS
6373
6374 fi
6375 fi
6376 CXX=$ac_cv_prog_CXX
6377 if test -n "$CXX"; then
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6379 $as_echo "$CXX" >&6; }
6380 else
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6383 fi
6384
6385
6386     test -n "$CXX" && break
6387   done
6388 fi
6389 if test -z "$CXX"; then
6390   ac_ct_CXX=$CXX
6391   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6392 do
6393   # Extract the first word of "$ac_prog", so it can be a program name with args.
6394 set dummy $ac_prog; ac_word=$2
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6396 $as_echo_n "checking for $ac_word... " >&6; }
6397 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6398   $as_echo_n "(cached) " >&6
6399 else
6400   if test -n "$ac_ct_CXX"; then
6401   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6402 else
6403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6404 for as_dir in $PATH
6405 do
6406   IFS=$as_save_IFS
6407   test -z "$as_dir" && as_dir=.
6408     for ac_exec_ext in '' $ac_executable_extensions; do
6409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6410     ac_cv_prog_ac_ct_CXX="$ac_prog"
6411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6412     break 2
6413   fi
6414 done
6415   done
6416 IFS=$as_save_IFS
6417
6418 fi
6419 fi
6420 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6421 if test -n "$ac_ct_CXX"; then
6422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6423 $as_echo "$ac_ct_CXX" >&6; }
6424 else
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6426 $as_echo "no" >&6; }
6427 fi
6428
6429
6430   test -n "$ac_ct_CXX" && break
6431 done
6432
6433   if test "x$ac_ct_CXX" = x; then
6434     CXX="g++"
6435   else
6436     case $cross_compiling:$ac_tool_warned in
6437 yes:)
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6441 esac
6442     CXX=$ac_ct_CXX
6443   fi
6444 fi
6445
6446   fi
6447 fi
6448 # Provide some information about the compiler.
6449 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6450 set X $ac_compile
6451 ac_compiler=$2
6452 for ac_option in --version -v -V -qversion; do
6453   { { ac_try="$ac_compiler $ac_option >&5"
6454 case "(($ac_try" in
6455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6456   *) ac_try_echo=$ac_try;;
6457 esac
6458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6459 $as_echo "$ac_try_echo"; } >&5
6460   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6461   ac_status=$?
6462   if test -s conftest.err; then
6463     sed '10a\
6464 ... rest of stderr output deleted ...
6465          10q' conftest.err >conftest.er1
6466     cat conftest.er1 >&5
6467   fi
6468   rm -f conftest.er1 conftest.err
6469   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6470   test $ac_status = 0; }
6471 done
6472
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6474 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6475 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6476   $as_echo_n "(cached) " >&6
6477 else
6478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6479 /* end confdefs.h.  */
6480
6481 int
6482 main ()
6483 {
6484 #ifndef __GNUC__
6485        choke me
6486 #endif
6487
6488   ;
6489   return 0;
6490 }
6491 _ACEOF
6492 if ac_fn_cxx_try_compile "$LINENO"; then :
6493   ac_compiler_gnu=yes
6494 else
6495   ac_compiler_gnu=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6498 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6499
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6502 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6503 if test $ac_compiler_gnu = yes; then
6504   GXX=yes
6505 else
6506   GXX=
6507 fi
6508 ac_test_CXXFLAGS=${CXXFLAGS+set}
6509 ac_save_CXXFLAGS=$CXXFLAGS
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6511 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6512 if ${ac_cv_prog_cxx_g+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6516    ac_cxx_werror_flag=yes
6517    ac_cv_prog_cxx_g=no
6518    CXXFLAGS="-g"
6519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6520 /* end confdefs.h.  */
6521
6522 int
6523 main ()
6524 {
6525
6526   ;
6527   return 0;
6528 }
6529 _ACEOF
6530 if ac_fn_cxx_try_compile "$LINENO"; then :
6531   ac_cv_prog_cxx_g=yes
6532 else
6533   CXXFLAGS=""
6534       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6535 /* end confdefs.h.  */
6536
6537 int
6538 main ()
6539 {
6540
6541   ;
6542   return 0;
6543 }
6544 _ACEOF
6545 if ac_fn_cxx_try_compile "$LINENO"; then :
6546
6547 else
6548   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549          CXXFLAGS="-g"
6550          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6551 /* end confdefs.h.  */
6552
6553 int
6554 main ()
6555 {
6556
6557   ;
6558   return 0;
6559 }
6560 _ACEOF
6561 if ac_fn_cxx_try_compile "$LINENO"; then :
6562   ac_cv_prog_cxx_g=yes
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565 fi
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 fi
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6570 fi
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6572 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6573 if test "$ac_test_CXXFLAGS" = set; then
6574   CXXFLAGS=$ac_save_CXXFLAGS
6575 elif test $ac_cv_prog_cxx_g = yes; then
6576   if test "$GXX" = yes; then
6577     CXXFLAGS="-g -O2"
6578   else
6579     CXXFLAGS="-g"
6580   fi
6581 else
6582   if test "$GXX" = yes; then
6583     CXXFLAGS="-O2"
6584   else
6585     CXXFLAGS=
6586   fi
6587 fi
6588 ac_ext=c
6589 ac_cpp='$CPP $CPPFLAGS'
6590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593
6594 depcc="$CXX"  am_compiler_list=
6595
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6597 $as_echo_n "checking dependency style of $depcc... " >&6; }
6598 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6599   $as_echo_n "(cached) " >&6
6600 else
6601   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6602   # We make a subdir and do the tests there.  Otherwise we can end up
6603   # making bogus files that we don't know about and never remove.  For
6604   # instance it was reported that on HP-UX the gcc test will end up
6605   # making a dummy file named `D' -- because `-MD' means `put the output
6606   # in D'.
6607   mkdir conftest.dir
6608   # Copy depcomp to subdir because otherwise we won't find it if we're
6609   # using a relative directory.
6610   cp "$am_depcomp" conftest.dir
6611   cd conftest.dir
6612   # We will build objects and dependencies in a subdirectory because
6613   # it helps to detect inapplicable dependency modes.  For instance
6614   # both Tru64's cc and ICC support -MD to output dependencies as a
6615   # side effect of compilation, but ICC will put the dependencies in
6616   # the current directory while Tru64 will put them in the object
6617   # directory.
6618   mkdir sub
6619
6620   am_cv_CXX_dependencies_compiler_type=none
6621   if test "$am_compiler_list" = ""; then
6622      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6623   fi
6624   am__universal=false
6625   case " $depcc " in #(
6626      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6627      esac
6628
6629   for depmode in $am_compiler_list; do
6630     # Setup a source with many dependencies, because some compilers
6631     # like to wrap large dependency lists on column 80 (with \), and
6632     # we should not choose a depcomp mode which is confused by this.
6633     #
6634     # We need to recreate these files for each test, as the compiler may
6635     # overwrite some of them when testing with obscure command lines.
6636     # This happens at least with the AIX C compiler.
6637     : > sub/conftest.c
6638     for i in 1 2 3 4 5 6; do
6639       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6640       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6641       # Solaris 8's {/usr,}/bin/sh.
6642       touch sub/conftst$i.h
6643     done
6644     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6645
6646     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6647     # mode.  It turns out that the SunPro C++ compiler does not properly
6648     # handle `-M -o', and we need to detect this.  Also, some Intel
6649     # versions had trouble with output in subdirs
6650     am__obj=sub/conftest.${OBJEXT-o}
6651     am__minus_obj="-o $am__obj"
6652     case $depmode in
6653     gcc)
6654       # This depmode causes a compiler race in universal mode.
6655       test "$am__universal" = false || continue
6656       ;;
6657     nosideeffect)
6658       # after this tag, mechanisms are not by side-effect, so they'll
6659       # only be used when explicitly requested
6660       if test "x$enable_dependency_tracking" = xyes; then
6661         continue
6662       else
6663         break
6664       fi
6665       ;;
6666     msvisualcpp | msvcmsys)
6667       # This compiler won't grok `-c -o', but also, the minuso test has
6668       # not run yet.  These depmodes are late enough in the game, and
6669       # so weak that their functioning should not be impacted.
6670       am__obj=conftest.${OBJEXT-o}
6671       am__minus_obj=
6672       ;;
6673     none) break ;;
6674     esac
6675     if depmode=$depmode \
6676        source=sub/conftest.c object=$am__obj \
6677        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6678        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6679          >/dev/null 2>conftest.err &&
6680        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6681        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6682        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6683        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6684       # icc doesn't choke on unknown options, it will just issue warnings
6685       # or remarks (even with -Werror).  So we grep stderr for any message
6686       # that says an option was ignored or not supported.
6687       # When given -MP, icc 7.0 and 7.1 complain thusly:
6688       #   icc: Command line warning: ignoring option '-M'; no argument required
6689       # The diagnosis changed in icc 8.0:
6690       #   icc: Command line remark: option '-MP' not supported
6691       if (grep 'ignoring option' conftest.err ||
6692           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6693         am_cv_CXX_dependencies_compiler_type=$depmode
6694         break
6695       fi
6696     fi
6697   done
6698
6699   cd ..
6700   rm -rf conftest.dir
6701 else
6702   am_cv_CXX_dependencies_compiler_type=none
6703 fi
6704
6705 fi
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6707 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6708 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6709
6710  if
6711   test "x$enable_dependency_tracking" != xno \
6712   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6713   am__fastdepCXX_TRUE=
6714   am__fastdepCXX_FALSE='#'
6715 else
6716   am__fastdepCXX_TRUE='#'
6717   am__fastdepCXX_FALSE=
6718 fi
6719
6720
6721    case $ac_cv_prog_cc_stdc in #(
6722   no) :
6723     ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6724   *) :
6725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6726 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6727 if ${ac_cv_prog_cc_c99+:} false; then :
6728   $as_echo_n "(cached) " >&6
6729 else
6730   ac_cv_prog_cc_c99=no
6731 ac_save_CC=$CC
6732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6733 /* end confdefs.h.  */
6734 #include <stdarg.h>
6735 #include <stdbool.h>
6736 #include <stdlib.h>
6737 #include <wchar.h>
6738 #include <stdio.h>
6739
6740 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
6741 #define debug(...) fprintf (stderr, __VA_ARGS__)
6742 #define showlist(...) puts (#__VA_ARGS__)
6743 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6744 static void
6745 test_varargs_macros (void)
6746 {
6747   int x = 1234;
6748   int y = 5678;
6749   debug ("Flag");
6750   debug ("X = %d\n", x);
6751   showlist (The first, second, and third items.);
6752   report (x>y, "x is %d but y is %d", x, y);
6753 }
6754
6755 // Check long long types.
6756 #define BIG64 18446744073709551615ull
6757 #define BIG32 4294967295ul
6758 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6759 #if !BIG_OK
6760   your preprocessor is broken;
6761 #endif
6762 #if BIG_OK
6763 #else
6764   your preprocessor is broken;
6765 #endif
6766 static long long int bignum = -9223372036854775807LL;
6767 static unsigned long long int ubignum = BIG64;
6768
6769 struct incomplete_array
6770 {
6771   int datasize;
6772   double data[];
6773 };
6774
6775 struct named_init {
6776   int number;
6777   const wchar_t *name;
6778   double average;
6779 };
6780
6781 typedef const char *ccp;
6782
6783 static inline int
6784 test_restrict (ccp restrict text)
6785 {
6786   // See if C++-style comments work.
6787   // Iterate through items via the restricted pointer.
6788   // Also check for declarations in for loops.
6789   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6790     continue;
6791   return 0;
6792 }
6793
6794 // Check varargs and va_copy.
6795 static void
6796 test_varargs (const char *format, ...)
6797 {
6798   va_list args;
6799   va_start (args, format);
6800   va_list args_copy;
6801   va_copy (args_copy, args);
6802
6803   const char *str;
6804   int number;
6805   float fnumber;
6806
6807   while (*format)
6808     {
6809       switch (*format++)
6810         {
6811         case 's': // string
6812           str = va_arg (args_copy, const char *);
6813           break;
6814         case 'd': // int
6815           number = va_arg (args_copy, int);
6816           break;
6817         case 'f': // float
6818           fnumber = va_arg (args_copy, double);
6819           break;
6820         default:
6821           break;
6822         }
6823     }
6824   va_end (args_copy);
6825   va_end (args);
6826 }
6827
6828 int
6829 main ()
6830 {
6831
6832   // Check bool.
6833   _Bool success = false;
6834
6835   // Check restrict.
6836   if (test_restrict ("String literal") == 0)
6837     success = true;
6838   char *restrict newvar = "Another string";
6839
6840   // Check varargs.
6841   test_varargs ("s, d' f .", "string", 65, 34.234);
6842   test_varargs_macros ();
6843
6844   // Check flexible array members.
6845   struct incomplete_array *ia =
6846     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6847   ia->datasize = 10;
6848   for (int i = 0; i < ia->datasize; ++i)
6849     ia->data[i] = i * 1.234;
6850
6851   // Check named initializers.
6852   struct named_init ni = {
6853     .number = 34,
6854     .name = L"Test wide string",
6855     .average = 543.34343,
6856   };
6857
6858   ni.number = 58;
6859
6860   int dynamic_array[ni.number];
6861   dynamic_array[ni.number - 1] = 543;
6862
6863   // work around unused variable warnings
6864   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6865           || dynamic_array[ni.number - 1] != 543);
6866
6867   ;
6868   return 0;
6869 }
6870 _ACEOF
6871 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6872 do
6873   CC="$ac_save_CC $ac_arg"
6874   if ac_fn_c_try_compile "$LINENO"; then :
6875   ac_cv_prog_cc_c99=$ac_arg
6876 fi
6877 rm -f core conftest.err conftest.$ac_objext
6878   test "x$ac_cv_prog_cc_c99" != "xno" && break
6879 done
6880 rm -f conftest.$ac_ext
6881 CC=$ac_save_CC
6882
6883 fi
6884 # AC_CACHE_VAL
6885 case "x$ac_cv_prog_cc_c99" in
6886   x)
6887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6888 $as_echo "none needed" >&6; } ;;
6889   xno)
6890     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6891 $as_echo "unsupported" >&6; } ;;
6892   *)
6893     CC="$CC $ac_cv_prog_cc_c99"
6894     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6895 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6896 esac
6897 if test "x$ac_cv_prog_cc_c99" != xno; then :
6898   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6899 else
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6902 if ${ac_cv_prog_cc_c89+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   ac_cv_prog_cc_c89=no
6906 ac_save_CC=$CC
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908 /* end confdefs.h.  */
6909 #include <stdarg.h>
6910 #include <stdio.h>
6911 #include <sys/types.h>
6912 #include <sys/stat.h>
6913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6914 struct buf { int x; };
6915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6916 static char *e (p, i)
6917      char **p;
6918      int i;
6919 {
6920   return p[i];
6921 }
6922 static char *f (char * (*g) (char **, int), char **p, ...)
6923 {
6924   char *s;
6925   va_list v;
6926   va_start (v,p);
6927   s = g (p, va_arg (v,int));
6928   va_end (v);
6929   return s;
6930 }
6931
6932 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6933    function prototypes and stuff, but not '\xHH' hex character constants.
6934    These don't provoke an error unfortunately, instead are silently treated
6935    as 'x'.  The following induces an error, until -std is added to get
6936    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6937    array size at least.  It's necessary to write '\x00'==0 to get something
6938    that's true only with -std.  */
6939 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6940
6941 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6942    inside strings and character constants.  */
6943 #define FOO(x) 'x'
6944 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6945
6946 int test (int i, double x);
6947 struct s1 {int (*f) (int a);};
6948 struct s2 {int (*f) (double a);};
6949 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6950 int argc;
6951 char **argv;
6952 int
6953 main ()
6954 {
6955 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6956   ;
6957   return 0;
6958 }
6959 _ACEOF
6960 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6961         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6962 do
6963   CC="$ac_save_CC $ac_arg"
6964   if ac_fn_c_try_compile "$LINENO"; then :
6965   ac_cv_prog_cc_c89=$ac_arg
6966 fi
6967 rm -f core conftest.err conftest.$ac_objext
6968   test "x$ac_cv_prog_cc_c89" != "xno" && break
6969 done
6970 rm -f conftest.$ac_ext
6971 CC=$ac_save_CC
6972
6973 fi
6974 # AC_CACHE_VAL
6975 case "x$ac_cv_prog_cc_c89" in
6976   x)
6977     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6978 $as_echo "none needed" >&6; } ;;
6979   xno)
6980     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6981 $as_echo "unsupported" >&6; } ;;
6982   *)
6983     CC="$CC $ac_cv_prog_cc_c89"
6984     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6985 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6986 esac
6987 if test "x$ac_cv_prog_cc_c89" != xno; then :
6988   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6989 else
6990   ac_cv_prog_cc_stdc=no
6991 fi
6992
6993 fi
6994  ;;
6995 esac
6996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6997 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6998   if ${ac_cv_prog_cc_stdc+:} false; then :
6999   $as_echo_n "(cached) " >&6
7000 fi
7001
7002   case $ac_cv_prog_cc_stdc in #(
7003   no) :
7004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7005 $as_echo "unsupported" >&6; } ;; #(
7006   '') :
7007     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7008 $as_echo "none needed" >&6; } ;; #(
7009   *) :
7010     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
7011 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7012 esac
7013
7014 ac_ext=c
7015 ac_cpp='$CPP $CPPFLAGS'
7016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7020 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7021 # On Suns, sometimes $CPP names a directory.
7022 if test -n "$CPP" && test -d "$CPP"; then
7023   CPP=
7024 fi
7025 if test -z "$CPP"; then
7026   if ${ac_cv_prog_CPP+:} false; then :
7027   $as_echo_n "(cached) " >&6
7028 else
7029       # Double quotes because CPP needs to be expanded
7030     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7031     do
7032       ac_preproc_ok=false
7033 for ac_c_preproc_warn_flag in '' yes
7034 do
7035   # Use a header file that comes with gcc, so configuring glibc
7036   # with a fresh cross-compiler works.
7037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7038   # <limits.h> exists even on freestanding compilers.
7039   # On the NeXT, cc -E runs the code through the compiler's parser,
7040   # not just through cpp. "Syntax error" is here to catch this case.
7041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7042 /* end confdefs.h.  */
7043 #ifdef __STDC__
7044 # include <limits.h>
7045 #else
7046 # include <assert.h>
7047 #endif
7048                      Syntax error
7049 _ACEOF
7050 if ac_fn_c_try_cpp "$LINENO"; then :
7051
7052 else
7053   # Broken: fails on valid input.
7054 continue
7055 fi
7056 rm -f conftest.err conftest.i conftest.$ac_ext
7057
7058   # OK, works on sane cases.  Now check whether nonexistent headers
7059   # can be detected and how.
7060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h.  */
7062 #include <ac_nonexistent.h>
7063 _ACEOF
7064 if ac_fn_c_try_cpp "$LINENO"; then :
7065   # Broken: success on invalid input.
7066 continue
7067 else
7068   # Passes both tests.
7069 ac_preproc_ok=:
7070 break
7071 fi
7072 rm -f conftest.err conftest.i conftest.$ac_ext
7073
7074 done
7075 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7076 rm -f conftest.i conftest.err conftest.$ac_ext
7077 if $ac_preproc_ok; then :
7078   break
7079 fi
7080
7081     done
7082     ac_cv_prog_CPP=$CPP
7083
7084 fi
7085   CPP=$ac_cv_prog_CPP
7086 else
7087   ac_cv_prog_CPP=$CPP
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7090 $as_echo "$CPP" >&6; }
7091 ac_preproc_ok=false
7092 for ac_c_preproc_warn_flag in '' yes
7093 do
7094   # Use a header file that comes with gcc, so configuring glibc
7095   # with a fresh cross-compiler works.
7096   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7097   # <limits.h> exists even on freestanding compilers.
7098   # On the NeXT, cc -E runs the code through the compiler's parser,
7099   # not just through cpp. "Syntax error" is here to catch this case.
7100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h.  */
7102 #ifdef __STDC__
7103 # include <limits.h>
7104 #else
7105 # include <assert.h>
7106 #endif
7107                      Syntax error
7108 _ACEOF
7109 if ac_fn_c_try_cpp "$LINENO"; then :
7110
7111 else
7112   # Broken: fails on valid input.
7113 continue
7114 fi
7115 rm -f conftest.err conftest.i conftest.$ac_ext
7116
7117   # OK, works on sane cases.  Now check whether nonexistent headers
7118   # can be detected and how.
7119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121 #include <ac_nonexistent.h>
7122 _ACEOF
7123 if ac_fn_c_try_cpp "$LINENO"; then :
7124   # Broken: success on invalid input.
7125 continue
7126 else
7127   # Passes both tests.
7128 ac_preproc_ok=:
7129 break
7130 fi
7131 rm -f conftest.err conftest.i conftest.$ac_ext
7132
7133 done
7134 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7135 rm -f conftest.i conftest.err conftest.$ac_ext
7136 if $ac_preproc_ok; then :
7137
7138 else
7139   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7141 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7142 See \`config.log' for more details" "$LINENO" 5; }
7143 fi
7144
7145 ac_ext=c
7146 ac_cpp='$CPP $CPPFLAGS'
7147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7150
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7153 if ${ac_cv_path_SED+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7157      for ac_i in 1 2 3 4 5 6 7; do
7158        ac_script="$ac_script$as_nl$ac_script"
7159      done
7160      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7161      { ac_script=; unset ac_script;}
7162      if test -z "$SED"; then
7163   ac_path_SED_found=false
7164   # Loop through the user's path and test for each of PROGNAME-LIST
7165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170     for ac_prog in sed gsed; do
7171     for ac_exec_ext in '' $ac_executable_extensions; do
7172       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7173       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7174 # Check for GNU ac_path_SED and select it if it is found.
7175   # Check for GNU $ac_path_SED
7176 case `"$ac_path_SED" --version 2>&1` in
7177 *GNU*)
7178   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7179 *)
7180   ac_count=0
7181   $as_echo_n 0123456789 >"conftest.in"
7182   while :
7183   do
7184     cat "conftest.in" "conftest.in" >"conftest.tmp"
7185     mv "conftest.tmp" "conftest.in"
7186     cp "conftest.in" "conftest.nl"
7187     $as_echo '' >> "conftest.nl"
7188     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7189     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7190     as_fn_arith $ac_count + 1 && ac_count=$as_val
7191     if test $ac_count -gt ${ac_path_SED_max-0}; then
7192       # Best one so far, save it but keep looking for a better one
7193       ac_cv_path_SED="$ac_path_SED"
7194       ac_path_SED_max=$ac_count
7195     fi
7196     # 10*(2^10) chars as input seems more than enough
7197     test $ac_count -gt 10 && break
7198   done
7199   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7200 esac
7201
7202       $ac_path_SED_found && break 3
7203     done
7204   done
7205   done
7206 IFS=$as_save_IFS
7207   if test -z "$ac_cv_path_SED"; then
7208     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7209   fi
7210 else
7211   ac_cv_path_SED=$SED
7212 fi
7213
7214 fi
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7216 $as_echo "$ac_cv_path_SED" >&6; }
7217  SED="$ac_cv_path_SED"
7218   rm -f conftest.sed
7219
7220 test -z "$SED" && SED=sed
7221 Xsed="$SED -e 1s/^X//"
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7234 $as_echo_n "checking for fgrep... " >&6; }
7235 if ${ac_cv_path_FGREP+:} false; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7239    then ac_cv_path_FGREP="$GREP -F"
7240    else
7241      if test -z "$FGREP"; then
7242   ac_path_FGREP_found=false
7243   # Loop through the user's path and test for each of PROGNAME-LIST
7244   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7246 do
7247   IFS=$as_save_IFS
7248   test -z "$as_dir" && as_dir=.
7249     for ac_prog in fgrep; do
7250     for ac_exec_ext in '' $ac_executable_extensions; do
7251       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7252       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7253 # Check for GNU ac_path_FGREP and select it if it is found.
7254   # Check for GNU $ac_path_FGREP
7255 case `"$ac_path_FGREP" --version 2>&1` in
7256 *GNU*)
7257   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7258 *)
7259   ac_count=0
7260   $as_echo_n 0123456789 >"conftest.in"
7261   while :
7262   do
7263     cat "conftest.in" "conftest.in" >"conftest.tmp"
7264     mv "conftest.tmp" "conftest.in"
7265     cp "conftest.in" "conftest.nl"
7266     $as_echo 'FGREP' >> "conftest.nl"
7267     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7268     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7269     as_fn_arith $ac_count + 1 && ac_count=$as_val
7270     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7271       # Best one so far, save it but keep looking for a better one
7272       ac_cv_path_FGREP="$ac_path_FGREP"
7273       ac_path_FGREP_max=$ac_count
7274     fi
7275     # 10*(2^10) chars as input seems more than enough
7276     test $ac_count -gt 10 && break
7277   done
7278   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7279 esac
7280
7281       $ac_path_FGREP_found && break 3
7282     done
7283   done
7284   done
7285 IFS=$as_save_IFS
7286   if test -z "$ac_cv_path_FGREP"; then
7287     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7288   fi
7289 else
7290   ac_cv_path_FGREP=$FGREP
7291 fi
7292
7293    fi
7294 fi
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7296 $as_echo "$ac_cv_path_FGREP" >&6; }
7297  FGREP="$ac_cv_path_FGREP"
7298
7299
7300 test -z "$GREP" && GREP=grep
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7319 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7320 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7323 $as_echo_n "checking how to print strings... " >&6; }
7324 # Test print first, because it will be a builtin if present.
7325 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7326    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7327   ECHO='print -r --'
7328 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7329   ECHO='printf %s\n'
7330 else
7331   # Use this function as a fallback that always works.
7332   func_fallback_echo ()
7333   {
7334     eval 'cat <<_LTECHO_EOF
7335 $1
7336 _LTECHO_EOF'
7337   }
7338   ECHO='func_fallback_echo'
7339 fi
7340
7341 # func_echo_all arg...
7342 # Invoke $ECHO with all args, space-separated.
7343 func_echo_all ()
7344 {
7345     $ECHO ""
7346 }
7347
7348 case "$ECHO" in
7349   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7350 $as_echo "printf" >&6; } ;;
7351   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7352 $as_echo "print -r" >&6; } ;;
7353   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7354 $as_echo "cat" >&6; } ;;
7355 esac
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372 # Check whether --with-gnu-ld was given.
7373 if test "${with_gnu_ld+set}" = set; then :
7374   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7375 else
7376   with_gnu_ld=no
7377 fi
7378
7379 ac_prog=ld
7380 if test "$GCC" = yes; then
7381   # Check if gcc -print-prog-name=ld gives a path.
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7383 $as_echo_n "checking for ld used by $CC... " >&6; }
7384   case $host in
7385   *-*-mingw*)
7386     # gcc leaves a trailing carriage return which upsets mingw
7387     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7388   *)
7389     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7390   esac
7391   case $ac_prog in
7392     # Accept absolute paths.
7393     [\\/]* | ?:[\\/]*)
7394       re_direlt='/[^/][^/]*/\.\./'
7395       # Canonicalize the pathname of ld
7396       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7397       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7398         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7399       done
7400       test -z "$LD" && LD="$ac_prog"
7401       ;;
7402   "")
7403     # If it fails, then pretend we aren't using GCC.
7404     ac_prog=ld
7405     ;;
7406   *)
7407     # If it is relative, then search for the first ld in PATH.
7408     with_gnu_ld=unknown
7409     ;;
7410   esac
7411 elif test "$with_gnu_ld" = yes; then
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7413 $as_echo_n "checking for GNU ld... " >&6; }
7414 else
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7416 $as_echo_n "checking for non-GNU ld... " >&6; }
7417 fi
7418 if ${lt_cv_path_LD+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   if test -z "$LD"; then
7422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7423   for ac_dir in $PATH; do
7424     IFS="$lt_save_ifs"
7425     test -z "$ac_dir" && ac_dir=.
7426     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7427       lt_cv_path_LD="$ac_dir/$ac_prog"
7428       # Check to see if the program is GNU ld.  I'd rather use --version,
7429       # but apparently some variants of GNU ld only accept -v.
7430       # Break only if it was the GNU/non-GNU ld that we prefer.
7431       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7432       *GNU* | *'with BFD'*)
7433         test "$with_gnu_ld" != no && break
7434         ;;
7435       *)
7436         test "$with_gnu_ld" != yes && break
7437         ;;
7438       esac
7439     fi
7440   done
7441   IFS="$lt_save_ifs"
7442 else
7443   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7444 fi
7445 fi
7446
7447 LD="$lt_cv_path_LD"
7448 if test -n "$LD"; then
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7450 $as_echo "$LD" >&6; }
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7457 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7458 if ${lt_cv_prog_gnu_ld+:} false; then :
7459   $as_echo_n "(cached) " >&6
7460 else
7461   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7462 case `$LD -v 2>&1 </dev/null` in
7463 *GNU* | *'with BFD'*)
7464   lt_cv_prog_gnu_ld=yes
7465   ;;
7466 *)
7467   lt_cv_prog_gnu_ld=no
7468   ;;
7469 esac
7470 fi
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7472 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7473 with_gnu_ld=$lt_cv_prog_gnu_ld
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7485 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7486 if ${ac_cv_prog_cc_c99+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   ac_cv_prog_cc_c99=no
7490 ac_save_CC=$CC
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h.  */
7493 #include <stdarg.h>
7494 #include <stdbool.h>
7495 #include <stdlib.h>
7496 #include <wchar.h>
7497 #include <stdio.h>
7498
7499 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
7500 #define debug(...) fprintf (stderr, __VA_ARGS__)
7501 #define showlist(...) puts (#__VA_ARGS__)
7502 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7503 static void
7504 test_varargs_macros (void)
7505 {
7506   int x = 1234;
7507   int y = 5678;
7508   debug ("Flag");
7509   debug ("X = %d\n", x);
7510   showlist (The first, second, and third items.);
7511   report (x>y, "x is %d but y is %d", x, y);
7512 }
7513
7514 // Check long long types.
7515 #define BIG64 18446744073709551615ull
7516 #define BIG32 4294967295ul
7517 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7518 #if !BIG_OK
7519   your preprocessor is broken;
7520 #endif
7521 #if BIG_OK
7522 #else
7523   your preprocessor is broken;
7524 #endif
7525 static long long int bignum = -9223372036854775807LL;
7526 static unsigned long long int ubignum = BIG64;
7527
7528 struct incomplete_array
7529 {
7530   int datasize;
7531   double data[];
7532 };
7533
7534 struct named_init {
7535   int number;
7536   const wchar_t *name;
7537   double average;
7538 };
7539
7540 typedef const char *ccp;
7541
7542 static inline int
7543 test_restrict (ccp restrict text)
7544 {
7545   // See if C++-style comments work.
7546   // Iterate through items via the restricted pointer.
7547   // Also check for declarations in for loops.
7548   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7549     continue;
7550   return 0;
7551 }
7552
7553 // Check varargs and va_copy.
7554 static void
7555 test_varargs (const char *format, ...)
7556 {
7557   va_list args;
7558   va_start (args, format);
7559   va_list args_copy;
7560   va_copy (args_copy, args);
7561
7562   const char *str;
7563   int number;
7564   float fnumber;
7565
7566   while (*format)
7567     {
7568       switch (*format++)
7569         {
7570         case 's': // string
7571           str = va_arg (args_copy, const char *);
7572           break;
7573         case 'd': // int
7574           number = va_arg (args_copy, int);
7575           break;
7576         case 'f': // float
7577           fnumber = va_arg (args_copy, double);
7578           break;
7579         default:
7580           break;
7581         }
7582     }
7583   va_end (args_copy);
7584   va_end (args);
7585 }
7586
7587 int
7588 main ()
7589 {
7590
7591   // Check bool.
7592   _Bool success = false;
7593
7594   // Check restrict.
7595   if (test_restrict ("String literal") == 0)
7596     success = true;
7597   char *restrict newvar = "Another string";
7598
7599   // Check varargs.
7600   test_varargs ("s, d' f .", "string", 65, 34.234);
7601   test_varargs_macros ();
7602
7603   // Check flexible array members.
7604   struct incomplete_array *ia =
7605     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7606   ia->datasize = 10;
7607   for (int i = 0; i < ia->datasize; ++i)
7608     ia->data[i] = i * 1.234;
7609
7610   // Check named initializers.
7611   struct named_init ni = {
7612     .number = 34,
7613     .name = L"Test wide string",
7614     .average = 543.34343,
7615   };
7616
7617   ni.number = 58;
7618
7619   int dynamic_array[ni.number];
7620   dynamic_array[ni.number - 1] = 543;
7621
7622   // work around unused variable warnings
7623   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7624           || dynamic_array[ni.number - 1] != 543);
7625
7626   ;
7627   return 0;
7628 }
7629 _ACEOF
7630 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7631 do
7632   CC="$ac_save_CC $ac_arg"
7633   if ac_fn_c_try_compile "$LINENO"; then :
7634   ac_cv_prog_cc_c99=$ac_arg
7635 fi
7636 rm -f core conftest.err conftest.$ac_objext
7637   test "x$ac_cv_prog_cc_c99" != "xno" && break
7638 done
7639 rm -f conftest.$ac_ext
7640 CC=$ac_save_CC
7641
7642 fi
7643 # AC_CACHE_VAL
7644 case "x$ac_cv_prog_cc_c99" in
7645   x)
7646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7647 $as_echo "none needed" >&6; } ;;
7648   xno)
7649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7650 $as_echo "unsupported" >&6; } ;;
7651   *)
7652     CC="$CC $ac_cv_prog_cc_c99"
7653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7654 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7655 esac
7656 if test "x$ac_cv_prog_cc_c99" != xno; then :
7657
7658 fi
7659
7660
7661 if test "x$CC" != xcc; then
7662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7663 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7664 else
7665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7666 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7667 fi
7668 set dummy $CC; ac_cc=`$as_echo "$2" |
7669                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7670 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7671   $as_echo_n "(cached) " >&6
7672 else
7673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h.  */
7675
7676 int
7677 main ()
7678 {
7679
7680   ;
7681   return 0;
7682 }
7683 _ACEOF
7684 # Make sure it works both with $CC and with simple cc.
7685 # We do the test twice because some compilers refuse to overwrite an
7686 # existing .o file with -o, though they will create one.
7687 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7688 rm -f conftest2.*
7689 if { { case "(($ac_try" in
7690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691   *) ac_try_echo=$ac_try;;
7692 esac
7693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7694 $as_echo "$ac_try_echo"; } >&5
7695   (eval "$ac_try") 2>&5
7696   ac_status=$?
7697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698   test $ac_status = 0; } &&
7699    test -f conftest2.$ac_objext && { { case "(($ac_try" in
7700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701   *) ac_try_echo=$ac_try;;
7702 esac
7703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704 $as_echo "$ac_try_echo"; } >&5
7705   (eval "$ac_try") 2>&5
7706   ac_status=$?
7707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708   test $ac_status = 0; };
7709 then
7710   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7711   if test "x$CC" != xcc; then
7712     # Test first that cc exists at all.
7713     if { ac_try='cc -c conftest.$ac_ext >&5'
7714   { { case "(($ac_try" in
7715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716   *) ac_try_echo=$ac_try;;
7717 esac
7718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7719 $as_echo "$ac_try_echo"; } >&5
7720   (eval "$ac_try") 2>&5
7721   ac_status=$?
7722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723   test $ac_status = 0; }; }; then
7724       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7725       rm -f conftest2.*
7726       if { { case "(($ac_try" in
7727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7728   *) ac_try_echo=$ac_try;;
7729 esac
7730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7731 $as_echo "$ac_try_echo"; } >&5
7732   (eval "$ac_try") 2>&5
7733   ac_status=$?
7734   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7735   test $ac_status = 0; } &&
7736          test -f conftest2.$ac_objext && { { case "(($ac_try" in
7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738   *) ac_try_echo=$ac_try;;
7739 esac
7740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7741 $as_echo "$ac_try_echo"; } >&5
7742   (eval "$ac_try") 2>&5
7743   ac_status=$?
7744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7745   test $ac_status = 0; };
7746       then
7747         # cc works too.
7748         :
7749       else
7750         # cc exists but doesn't like -o.
7751         eval ac_cv_prog_cc_${ac_cc}_c_o=no
7752       fi
7753     fi
7754   fi
7755 else
7756   eval ac_cv_prog_cc_${ac_cc}_c_o=no
7757 fi
7758 rm -f core conftest*
7759
7760 fi
7761 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7763 $as_echo "yes" >&6; }
7764 else
7765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7767
7768 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7769
7770 fi
7771
7772 # FIXME: we rely on the cache variable name because
7773 # there is no other way.
7774 set dummy $CC
7775 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7776 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7777 if test "$am_t" != yes; then
7778    # Losing compiler, so override with the script.
7779    # FIXME: It is wrong to rewrite CC.
7780    # But if we don't then we get into trouble of one sort or another.
7781    # A longer-term fix would be to have automake use am__CC in this case,
7782    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7783    CC="$am_aux_dir/compile $CC"
7784 fi
7785
7786
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7788 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7789 if ${ac_cv_cflags_warn_all+:} false; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792   ac_cv_cflags_warn_all="no, unknown"
7793  ac_ext=c
7794 ac_cpp='$CPP $CPPFLAGS'
7795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798
7799  ac_save_CFLAGS="$CFLAGS"
7800 for ac_arg in "-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"    #
7801 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7802    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h.  */
7804
7805 int
7806 main ()
7807 {
7808
7809   ;
7810   return 0;
7811 }
7812 _ACEOF
7813 if ac_fn_c_try_compile "$LINENO"; then :
7814   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7815 fi
7816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7817 done
7818  CFLAGS="$ac_save_CFLAGS"
7819  ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826 fi
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7828 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7829 case ".$ac_cv_cflags_warn_all" in
7830      .ok|.ok,*)  ;;
7831    .|.no|.no,*)
7832  ;;
7833    *)
7834    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7835    then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7836   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7837   ac_status=$?
7838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7839   test $ac_status = 0; }
7840    else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7841   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7842   ac_status=$?
7843   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844   test $ac_status = 0; }
7845                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7846    fi
7847  ;;
7848 esac
7849
7850
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7852 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7853 set x ${MAKE-make}
7854 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7855 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7856   $as_echo_n "(cached) " >&6
7857 else
7858   cat >conftest.make <<\_ACEOF
7859 SHELL = /bin/sh
7860 all:
7861         @echo '@@@%%%=$(MAKE)=@@@%%%'
7862 _ACEOF
7863 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7864 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7865   *@@@%%%=?*=@@@%%%*)
7866     eval ac_cv_prog_make_${ac_make}_set=yes;;
7867   *)
7868     eval ac_cv_prog_make_${ac_make}_set=no;;
7869 esac
7870 rm -f conftest.make
7871 fi
7872 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7874 $as_echo "yes" >&6; }
7875   SET_MAKE=
7876 else
7877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7878 $as_echo "no" >&6; }
7879   SET_MAKE="MAKE=${MAKE-make}"
7880 fi
7881
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7883 $as_echo_n "checking whether ln -s works... " >&6; }
7884 LN_S=$as_ln_s
7885 if test "$LN_S" = "ln -s"; then
7886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7887 $as_echo "yes" >&6; }
7888 else
7889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7890 $as_echo "no, using $LN_S" >&6; }
7891 fi
7892
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7894 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7895
7896 # Check whether --with-dmalloc was given.
7897 if test "${with_dmalloc+set}" = set; then :
7898   withval=$with_dmalloc; if test "$withval" = yes; then
7899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7900 $as_echo "yes" >&6; }
7901
7902 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7903
7904   LIBS="$LIBS -ldmalloc"
7905   LDFLAGS="$LDFLAGS -g"
7906 else
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910 else
7911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7912 $as_echo "no" >&6; }
7913 fi
7914
7915
7916
7917   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7918 $as_echo_n "checking for __attribute__... " >&6; }
7919 if ${ax_cv___attribute__+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7923 /* end confdefs.h.  */
7924 #include <stdlib.h>
7925           static void foo(void) __attribute__ ((unused));
7926           static void
7927           foo(void) {
7928               exit(1);
7929           }
7930
7931 int
7932 main ()
7933 {
7934
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940   ax_cv___attribute__=yes
7941 else
7942   ax_cv___attribute__=no
7943
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946
7947 fi
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7949 $as_echo "$ax_cv___attribute__" >&6; }
7950   if test "$ax_cv___attribute__" = "yes"; then
7951
7952 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7953
7954   fi
7955
7956
7957
7958 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7959         if test -n "$ac_tool_prefix"; then
7960   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7965   $as_echo_n "(cached) " >&6
7966 else
7967   case $PKG_CONFIG in
7968   [\\/]* | ?:[\\/]*)
7969   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7970   ;;
7971   *)
7972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7974 do
7975   IFS=$as_save_IFS
7976   test -z "$as_dir" && as_dir=.
7977     for ac_exec_ext in '' $ac_executable_extensions; do
7978   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7980     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981     break 2
7982   fi
7983 done
7984   done
7985 IFS=$as_save_IFS
7986
7987   ;;
7988 esac
7989 fi
7990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7991 if test -n "$PKG_CONFIG"; then
7992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7993 $as_echo "$PKG_CONFIG" >&6; }
7994 else
7995   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
7997 fi
7998
7999
8000 fi
8001 if test -z "$ac_cv_path_PKG_CONFIG"; then
8002   ac_pt_PKG_CONFIG=$PKG_CONFIG
8003   # Extract the first word of "pkg-config", so it can be a program name with args.
8004 set dummy pkg-config; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
8008   $as_echo_n "(cached) " >&6
8009 else
8010   case $ac_pt_PKG_CONFIG in
8011   [\\/]* | ?:[\\/]*)
8012   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8013   ;;
8014   *)
8015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8017 do
8018   IFS=$as_save_IFS
8019   test -z "$as_dir" && as_dir=.
8020     for ac_exec_ext in '' $ac_executable_extensions; do
8021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024     break 2
8025   fi
8026 done
8027   done
8028 IFS=$as_save_IFS
8029
8030   ;;
8031 esac
8032 fi
8033 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8034 if test -n "$ac_pt_PKG_CONFIG"; then
8035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8036 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8037 else
8038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8040 fi
8041
8042   if test "x$ac_pt_PKG_CONFIG" = x; then
8043     PKG_CONFIG=""
8044   else
8045     case $cross_compiling:$ac_tool_warned in
8046 yes:)
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8048 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8049 ac_tool_warned=yes ;;
8050 esac
8051     PKG_CONFIG=$ac_pt_PKG_CONFIG
8052   fi
8053 else
8054   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8055 fi
8056
8057 fi
8058 if test -n "$PKG_CONFIG"; then
8059         _pkg_min_version=0.9.0
8060         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8061 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8062         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8063                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8064 $as_echo "yes" >&6; }
8065         else
8066                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo "no" >&6; }
8068                 PKG_CONFIG=""
8069         fi
8070
8071 fi
8072
8073 #
8074 # Enable run-time checking.
8075 #
8076 # Check whether --enable-bounds-checking was given.
8077 if test "${enable_bounds_checking+set}" = set; then :
8078   enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8079 else
8080   enable_bounds_checking='no'
8081 fi
8082
8083
8084 if test "$enable_bounds_checking" = yes; then
8085
8086 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8087
8088 fi
8089
8090 #
8091 # Tests for Windows
8092 #
8093
8094
8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8096 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8097 if ${ax_cv_c_compiler_ms+:} false; then :
8098   $as_echo_n "(cached) " >&6
8099 else
8100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8101 /* end confdefs.h.  */
8102
8103 int
8104 main ()
8105 {
8106 #ifndef _MSC_VER
8107        choke me
8108 #endif
8109
8110   ;
8111   return 0;
8112 }
8113 _ACEOF
8114 if ac_fn_c_try_compile "$LINENO"; then :
8115   ax_compiler_ms=yes
8116 else
8117   ax_compiler_ms=no
8118 fi
8119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8120 ax_cv_c_compiler_ms=$ax_compiler_ms
8121
8122 fi
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8124 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8125
8126 GDI32_LIBS=''
8127 native_win32_build='no'
8128 cygwin_build='no'
8129 case "${host_os}" in
8130     cygwin* )
8131         cygwin_build='yes'
8132         GDI32_LIBS='-lgdi32'
8133     ;;
8134     mingw* )
8135         native_win32_build='yes'
8136         GDI32_LIBS='-lgdi32'
8137     ;;
8138 esac
8139 if test "${GDI32_LIBS}x" != 'x'; then
8140
8141 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8142
8143 fi
8144
8145  if test "${GDI32_LIBS}x" != 'x' ; then
8146   WINGDI32_DELEGATE_TRUE=
8147   WINGDI32_DELEGATE_FALSE='#'
8148 else
8149   WINGDI32_DELEGATE_TRUE='#'
8150   WINGDI32_DELEGATE_FALSE=
8151 fi
8152
8153  if test "${native_win32_build}" = 'yes' ; then
8154   WIN32_NATIVE_BUILD_TRUE=
8155   WIN32_NATIVE_BUILD_FALSE='#'
8156 else
8157   WIN32_NATIVE_BUILD_TRUE='#'
8158   WIN32_NATIVE_BUILD_FALSE=
8159 fi
8160
8161  if test "${cygwin_build}" = 'yes' ; then
8162   CYGWIN_BUILD_TRUE=
8163   CYGWIN_BUILD_FALSE='#'
8164 else
8165   CYGWIN_BUILD_TRUE='#'
8166   CYGWIN_BUILD_FALSE=
8167 fi
8168
8169  if test "x${CC}" = 'xcl.exe' ; then
8170   USING_CL_TRUE=
8171   USING_CL_FALSE='#'
8172 else
8173   USING_CL_TRUE='#'
8174   USING_CL_FALSE=
8175 fi
8176
8177
8178 WinPathScript="${srcdirfull}/winpath.sh"
8179
8180
8181 #
8182 # Compiler flags tweaks
8183 #
8184 if test "${GCC}" != "yes"; then
8185     case "${host}" in
8186         *-*-hpux* )
8187             # aCC: HP ANSI C++ B3910B A.03.34
8188             CFLAGS="${CFLAGS} -Wp,-H30000"
8189             if test -n "${CXXFLAGS}"; then
8190                 CXXFLAGS='-AA'
8191             else
8192                 CXXFLAGS="${CXXFLAGS} -AA"
8193             fi
8194         ;;
8195         *-dec-osf5.* )
8196             # Compaq alphaev68-dec-osf5.1 compiler
8197             if test -n "${CXXFLAGS}"; then
8198                 CXXFLAGS='-std strict_ansi -noimplicit_include'
8199             else
8200                 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8201             fi
8202   esac
8203 fi
8204
8205 # Check for lazy-loading.
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8207 $as_echo_n "checking for linker lazyload option... " >&6; }
8208 if ${im_cv_ld_lazyload+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211
8212 im_cv_ld_lazyload='none'
8213 case "${host}" in
8214   *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8215     if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8216        im_cv_ld_lazyload='-Wl,-zlazyload'
8217     fi
8218     ;;
8219 esac
8220
8221 fi
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8223 $as_echo "$im_cv_ld_lazyload" >&6; }
8224 if test "${im_cv_ld_lazyload}" != 'none' ; then
8225   if test -z "${LDFLAGS}" ; then
8226     LDFLAGS="${im_cv_ld_lazyload}"
8227   else
8228     LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8229   fi
8230 fi
8231
8232 case "$host" in
8233 *darwin* | *-macos10*)
8234     # Check whether --enable-osx-universal-binary was given.
8235 if test "${enable_osx_universal_binary+set}" = set; then :
8236   enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8237 else
8238   build_osxuniversal=no
8239 fi
8240
8241
8242   if test "${build_osxuniversal}" != no ; then
8243     if test "$enable_dependency_tracking" != no ; then
8244       as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8245 Please re-run configure with these options:
8246   --disable-dependency-tracking --enable-osx-universal-binary
8247         " "$LINENO" 5
8248     fi
8249     CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8250     CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8251     LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8252   fi
8253   ;;
8254 esac
8255
8256 # Enable support for threads
8257
8258 # Check whether --with-threads was given.
8259 if test "${with_threads+set}" = set; then :
8260   withval=$with_threads; with_threads=$withval
8261 else
8262   with_threads='yes'
8263 fi
8264
8265
8266 have_threads=no
8267 if test "$with_threads" != 'no'; then
8268
8269
8270 ac_ext=c
8271 ac_cpp='$CPP $CPPFLAGS'
8272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276 ax_pthread_ok=no
8277
8278 # We used to check for pthread.h first, but this fails if pthread.h
8279 # requires special compiler flags (e.g. on True64 or Sequent).
8280 # It gets checked for in the link test anyway.
8281
8282 # First of all, check if the user has set any of the PTHREAD_LIBS,
8283 # etcetera environment variables, and if threads linking works using
8284 # them:
8285 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8286         save_CFLAGS="$CFLAGS"
8287         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8288         save_LIBS="$LIBS"
8289         LIBS="$PTHREAD_LIBS $LIBS"
8290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8291 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8292         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h.  */
8294
8295 /* Override any GCC internal prototype to avoid an error.
8296    Use char because int might match the return type of a GCC
8297    builtin and then its argument prototype would still apply.  */
8298 #ifdef __cplusplus
8299 extern "C"
8300 #endif
8301 char pthread_join ();
8302 int
8303 main ()
8304 {
8305 return pthread_join ();
8306   ;
8307   return 0;
8308 }
8309 _ACEOF
8310 if ac_fn_c_try_link "$LINENO"; then :
8311   ax_pthread_ok=yes
8312 fi
8313 rm -f core conftest.err conftest.$ac_objext \
8314     conftest$ac_exeext conftest.$ac_ext
8315         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8316 $as_echo "$ax_pthread_ok" >&6; }
8317         if test x"$ax_pthread_ok" = xno; then
8318                 PTHREAD_LIBS=""
8319                 PTHREAD_CFLAGS=""
8320         fi
8321         LIBS="$save_LIBS"
8322         CFLAGS="$save_CFLAGS"
8323 fi
8324
8325 # We must check for the threads library under a number of different
8326 # names; the ordering is very important because some systems
8327 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8328 # libraries is broken (non-POSIX).
8329
8330 # Create a list of thread flags to try.  Items starting with a "-" are
8331 # C compiler flags, and other items are library names, except for "none"
8332 # which indicates that we try without any flags at all, and "pthread-config"
8333 # which is a program returning the flags for the Pth emulation library.
8334
8335 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8336
8337 # The ordering *is* (sometimes) important.  Some notes on the
8338 # individual items follow:
8339
8340 # pthreads: AIX (must check this before -lpthread)
8341 # none: in case threads are in libc; should be tried before -Kthread and
8342 #       other compiler flags to prevent continual compiler warnings
8343 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8344 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8345 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8346 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8347 # -pthreads: Solaris/gcc
8348 # -mthreads: Mingw32/gcc, Lynx/gcc
8349 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8350 #      doesn't hurt to check since this sometimes defines pthreads too;
8351 #      also defines -D_REENTRANT)
8352 #      ... -mt is also the pthreads flag for HP/aCC
8353 # pthread: Linux, etcetera
8354 # --thread-safe: KAI C++
8355 # pthread-config: use pthread-config program (for GNU Pth library)
8356
8357 case "${host_cpu}-${host_os}" in
8358         *solaris*)
8359
8360         # On Solaris (at least, for some versions), libc contains stubbed
8361         # (non-functional) versions of the pthreads routines, so link-based
8362         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8363         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8364         # a function called by this macro, so we could check for that, but
8365         # who knows whether they'll stub that too in a future libc.)  So,
8366         # we'll just look for -pthreads and -lpthread first:
8367
8368         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8369         ;;
8370
8371         *-darwin*)
8372         ax_pthread_flags="-pthread $ax_pthread_flags"
8373         ;;
8374 esac
8375
8376 if test x"$ax_pthread_ok" = xno; then
8377 for flag in $ax_pthread_flags; do
8378
8379         case $flag in
8380                 none)
8381                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8382 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8383                 ;;
8384
8385                 -*)
8386                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8387 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8388                 PTHREAD_CFLAGS="$flag"
8389                 ;;
8390
8391                 pthread-config)
8392                 # Extract the first word of "pthread-config", so it can be a program name with args.
8393 set dummy pthread-config; ac_word=$2
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395 $as_echo_n "checking for $ac_word... " >&6; }
8396 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8397   $as_echo_n "(cached) " >&6
8398 else
8399   if test -n "$ax_pthread_config"; then
8400   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
8405   IFS=$as_save_IFS
8406   test -z "$as_dir" && as_dir=.
8407     for ac_exec_ext in '' $ac_executable_extensions; do
8408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8409     ac_cv_prog_ax_pthread_config="yes"
8410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411     break 2
8412   fi
8413 done
8414   done
8415 IFS=$as_save_IFS
8416
8417   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8418 fi
8419 fi
8420 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8421 if test -n "$ax_pthread_config"; then
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8423 $as_echo "$ax_pthread_config" >&6; }
8424 else
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8426 $as_echo "no" >&6; }
8427 fi
8428
8429
8430                 if test x"$ax_pthread_config" = xno; then continue; fi
8431                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8432                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8433                 ;;
8434
8435                 *)
8436                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8437 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8438                 PTHREAD_LIBS="-l$flag"
8439                 ;;
8440         esac
8441
8442         save_LIBS="$LIBS"
8443         save_CFLAGS="$CFLAGS"
8444         LIBS="$PTHREAD_LIBS $LIBS"
8445         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8446
8447         # Check for various functions.  We must include pthread.h,
8448         # since some functions may be macros.  (On the Sequent, we
8449         # need a special flag -Kthread to make this header compile.)
8450         # We check for pthread_join because it is in -lpthread on IRIX
8451         # while pthread_create is in libc.  We check for pthread_attr_init
8452         # due to DEC craziness with -lpthreads.  We check for
8453         # pthread_cleanup_push because it is one of the few pthread
8454         # functions on Solaris that doesn't have a non-functional libc stub.
8455         # We try pthread_create on general principles.
8456         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8457 /* end confdefs.h.  */
8458 #include <pthread.h>
8459                         static void routine(void *a) { a = 0; }
8460                         static void *start_routine(void *a) { return a; }
8461 int
8462 main ()
8463 {
8464 pthread_t th; pthread_attr_t attr;
8465                         pthread_create(&th, 0, start_routine, 0);
8466                         pthread_join(th, 0);
8467                         pthread_attr_init(&attr);
8468                         pthread_cleanup_push(routine, 0);
8469                         pthread_cleanup_pop(0) /* ; */
8470   ;
8471   return 0;
8472 }
8473 _ACEOF
8474 if ac_fn_c_try_link "$LINENO"; then :
8475   ax_pthread_ok=yes
8476 fi
8477 rm -f core conftest.err conftest.$ac_objext \
8478     conftest$ac_exeext conftest.$ac_ext
8479
8480         LIBS="$save_LIBS"
8481         CFLAGS="$save_CFLAGS"
8482
8483         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8484 $as_echo "$ax_pthread_ok" >&6; }
8485         if test "x$ax_pthread_ok" = xyes; then
8486                 break;
8487         fi
8488
8489         PTHREAD_LIBS=""
8490         PTHREAD_CFLAGS=""
8491 done
8492 fi
8493
8494 # Various other checks:
8495 if test "x$ax_pthread_ok" = xyes; then
8496         save_LIBS="$LIBS"
8497         LIBS="$PTHREAD_LIBS $LIBS"
8498         save_CFLAGS="$CFLAGS"
8499         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8500
8501         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8502         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8503 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8504         attr_name=unknown
8505         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8506             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h.  */
8508 #include <pthread.h>
8509 int
8510 main ()
8511 {
8512 int attr = $attr; return attr /* ; */
8513   ;
8514   return 0;
8515 }
8516 _ACEOF
8517 if ac_fn_c_try_link "$LINENO"; then :
8518   attr_name=$attr; break
8519 fi
8520 rm -f core conftest.err conftest.$ac_objext \
8521     conftest$ac_exeext conftest.$ac_ext
8522         done
8523         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8524 $as_echo "$attr_name" >&6; }
8525         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8526
8527 cat >>confdefs.h <<_ACEOF
8528 #define PTHREAD_CREATE_JOINABLE $attr_name
8529 _ACEOF
8530
8531         fi
8532
8533         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8534 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8535         flag=no
8536         case "${host_cpu}-${host_os}" in
8537             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8538             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8539         esac
8540         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8541 $as_echo "${flag}" >&6; }
8542         if test "x$flag" != xno; then
8543             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8544         fi
8545
8546         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
8547 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
8548 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
8549   $as_echo_n "(cached) " >&6
8550 else
8551
8552                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8553 /* end confdefs.h.  */
8554
8555                     #include <pthread.h>
8556 int
8557 main ()
8558 {
8559 int i = PTHREAD_PRIO_INHERIT;
8560   ;
8561   return 0;
8562 }
8563 _ACEOF
8564 if ac_fn_c_try_link "$LINENO"; then :
8565   ax_cv_PTHREAD_PRIO_INHERIT=yes
8566 else
8567   ax_cv_PTHREAD_PRIO_INHERIT=no
8568 fi
8569 rm -f core conftest.err conftest.$ac_objext \
8570     conftest$ac_exeext conftest.$ac_ext
8571
8572 fi
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
8574 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
8575         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
8576
8577 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
8578
8579 fi
8580
8581         LIBS="$save_LIBS"
8582         CFLAGS="$save_CFLAGS"
8583
8584         # More AIX lossage: must compile with xlc_r or cc_r
8585         if test x"$GCC" != xyes; then
8586           for ac_prog in xlc_r cc_r
8587 do
8588   # Extract the first word of "$ac_prog", so it can be a program name with args.
8589 set dummy $ac_prog; ac_word=$2
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8591 $as_echo_n "checking for $ac_word... " >&6; }
8592 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8593   $as_echo_n "(cached) " >&6
8594 else
8595   if test -n "$PTHREAD_CC"; then
8596   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8597 else
8598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8599 for as_dir in $PATH
8600 do
8601   IFS=$as_save_IFS
8602   test -z "$as_dir" && as_dir=.
8603     for ac_exec_ext in '' $ac_executable_extensions; do
8604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8605     ac_cv_prog_PTHREAD_CC="$ac_prog"
8606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8607     break 2
8608   fi
8609 done
8610   done
8611 IFS=$as_save_IFS
8612
8613 fi
8614 fi
8615 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8616 if test -n "$PTHREAD_CC"; then
8617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8618 $as_echo "$PTHREAD_CC" >&6; }
8619 else
8620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8622 fi
8623
8624
8625   test -n "$PTHREAD_CC" && break
8626 done
8627 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8628
8629         else
8630           PTHREAD_CC=$CC
8631         fi
8632 else
8633         PTHREAD_CC="$CC"
8634 fi
8635
8636
8637
8638
8639
8640 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8641 if test x"$ax_pthread_ok" = xyes; then
8642
8643 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8644
8645         :
8646 else
8647         ax_pthread_ok=no
8648
8649 fi
8650 ac_ext=c
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656
8657     if test "$ax_pthread_ok" = yes; then
8658         have_threads=yes
8659         DEF_THREAD="$PTHREAD_CFLAGS"
8660         CFLAGS="$CFLAGS $DEF_THREAD"
8661         CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8662         if test "$CC" != "$PTHREAD_CC"; then
8663             { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8664 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8665             CC="$PTHREAD_CC"
8666         fi
8667
8668 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8669
8670     fi
8671 fi
8672
8673 # Enable support for OpenMP
8674 if test "$have_threads" != 'yes'; then
8675   ac_cv_prog_c_openmp=unsupported
8676 fi
8677
8678   OPENMP_CFLAGS=
8679   # Check whether --enable-openmp was given.
8680 if test "${enable_openmp+set}" = set; then :
8681   enableval=$enable_openmp;
8682 fi
8683
8684   if test "$enable_openmp" != no; then
8685     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8686 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8687 if ${ac_cv_prog_c_openmp+:} false; then :
8688   $as_echo_n "(cached) " >&6
8689 else
8690   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8691 /* end confdefs.h.  */
8692
8693 #ifndef _OPENMP
8694  choke me
8695 #endif
8696 #include <omp.h>
8697 int main () { return omp_get_num_threads (); }
8698
8699 _ACEOF
8700 if ac_fn_c_try_link "$LINENO"; then :
8701   ac_cv_prog_c_openmp='none needed'
8702 else
8703   ac_cv_prog_c_openmp='unsupported'
8704                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8705             ac_save_CFLAGS=$CFLAGS
8706             CFLAGS="$CFLAGS $ac_option"
8707             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8708 /* end confdefs.h.  */
8709
8710 #ifndef _OPENMP
8711  choke me
8712 #endif
8713 #include <omp.h>
8714 int main () { return omp_get_num_threads (); }
8715
8716 _ACEOF
8717 if ac_fn_c_try_link "$LINENO"; then :
8718   ac_cv_prog_c_openmp=$ac_option
8719 fi
8720 rm -f core conftest.err conftest.$ac_objext \
8721     conftest$ac_exeext conftest.$ac_ext
8722             CFLAGS=$ac_save_CFLAGS
8723             if test "$ac_cv_prog_c_openmp" != unsupported; then
8724               break
8725             fi
8726           done
8727 fi
8728 rm -f core conftest.err conftest.$ac_objext \
8729     conftest$ac_exeext conftest.$ac_ext
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8732 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8733     case $ac_cv_prog_c_openmp in #(
8734       "none needed" | unsupported)
8735         ;; #(
8736       *)
8737         OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8738     esac
8739   fi
8740
8741
8742 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8743 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8744
8745 if test "$enable_openmp" != no; then
8746   if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8747     MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8748   fi
8749 fi
8750
8751 # Enable support for OpenCL
8752
8753
8754 ac_ext=c
8755 ac_cpp='$CPP $CPPFLAGS'
8756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8759
8760 ax_pthread_ok=no
8761
8762 # We used to check for pthread.h first, but this fails if pthread.h
8763 # requires special compiler flags (e.g. on True64 or Sequent).
8764 # It gets checked for in the link test anyway.
8765
8766 # First of all, check if the user has set any of the PTHREAD_LIBS,
8767 # etcetera environment variables, and if threads linking works using
8768 # them:
8769 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8770         save_CFLAGS="$CFLAGS"
8771         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8772         save_LIBS="$LIBS"
8773         LIBS="$PTHREAD_LIBS $LIBS"
8774         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8775 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8776         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8777 /* end confdefs.h.  */
8778
8779 /* Override any GCC internal prototype to avoid an error.
8780    Use char because int might match the return type of a GCC
8781    builtin and then its argument prototype would still apply.  */
8782 #ifdef __cplusplus
8783 extern "C"
8784 #endif
8785 char pthread_join ();
8786 int
8787 main ()
8788 {
8789 return pthread_join ();
8790   ;
8791   return 0;
8792 }
8793 _ACEOF
8794 if ac_fn_c_try_link "$LINENO"; then :
8795   ax_pthread_ok=yes
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext \
8798     conftest$ac_exeext conftest.$ac_ext
8799         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8800 $as_echo "$ax_pthread_ok" >&6; }
8801         if test x"$ax_pthread_ok" = xno; then
8802                 PTHREAD_LIBS=""
8803                 PTHREAD_CFLAGS=""
8804         fi
8805         LIBS="$save_LIBS"
8806         CFLAGS="$save_CFLAGS"
8807 fi
8808
8809 # We must check for the threads library under a number of different
8810 # names; the ordering is very important because some systems
8811 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8812 # libraries is broken (non-POSIX).
8813
8814 # Create a list of thread flags to try.  Items starting with a "-" are
8815 # C compiler flags, and other items are library names, except for "none"
8816 # which indicates that we try without any flags at all, and "pthread-config"
8817 # which is a program returning the flags for the Pth emulation library.
8818
8819 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8820
8821 # The ordering *is* (sometimes) important.  Some notes on the
8822 # individual items follow:
8823
8824 # pthreads: AIX (must check this before -lpthread)
8825 # none: in case threads are in libc; should be tried before -Kthread and
8826 #       other compiler flags to prevent continual compiler warnings
8827 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8828 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8829 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8830 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8831 # -pthreads: Solaris/gcc
8832 # -mthreads: Mingw32/gcc, Lynx/gcc
8833 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8834 #      doesn't hurt to check since this sometimes defines pthreads too;
8835 #      also defines -D_REENTRANT)
8836 #      ... -mt is also the pthreads flag for HP/aCC
8837 # pthread: Linux, etcetera
8838 # --thread-safe: KAI C++
8839 # pthread-config: use pthread-config program (for GNU Pth library)
8840
8841 case "${host_cpu}-${host_os}" in
8842         *solaris*)
8843
8844         # On Solaris (at least, for some versions), libc contains stubbed
8845         # (non-functional) versions of the pthreads routines, so link-based
8846         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
8847         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
8848         # a function called by this macro, so we could check for that, but
8849         # who knows whether they'll stub that too in a future libc.)  So,
8850         # we'll just look for -pthreads and -lpthread first:
8851
8852         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8853         ;;
8854
8855         *-darwin*)
8856         ax_pthread_flags="-pthread $ax_pthread_flags"
8857         ;;
8858 esac
8859
8860 if test x"$ax_pthread_ok" = xno; then
8861 for flag in $ax_pthread_flags; do
8862
8863         case $flag in
8864                 none)
8865                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8866 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8867                 ;;
8868
8869                 -*)
8870                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8871 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8872                 PTHREAD_CFLAGS="$flag"
8873                 ;;
8874
8875                 pthread-config)
8876                 # Extract the first word of "pthread-config", so it can be a program name with args.
8877 set dummy pthread-config; ac_word=$2
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8879 $as_echo_n "checking for $ac_word... " >&6; }
8880 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8881   $as_echo_n "(cached) " >&6
8882 else
8883   if test -n "$ax_pthread_config"; then
8884   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8885 else
8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8887 for as_dir in $PATH
8888 do
8889   IFS=$as_save_IFS
8890   test -z "$as_dir" && as_dir=.
8891     for ac_exec_ext in '' $ac_executable_extensions; do
8892   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8893     ac_cv_prog_ax_pthread_config="yes"
8894     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8895     break 2
8896   fi
8897 done
8898   done
8899 IFS=$as_save_IFS
8900
8901   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8902 fi
8903 fi
8904 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8905 if test -n "$ax_pthread_config"; then
8906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8907 $as_echo "$ax_pthread_config" >&6; }
8908 else
8909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8911 fi
8912
8913
8914                 if test x"$ax_pthread_config" = xno; then continue; fi
8915                 PTHREAD_CFLAGS="`pthread-config --cflags`"
8916                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8917                 ;;
8918
8919                 *)
8920                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8921 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8922                 PTHREAD_LIBS="-l$flag"
8923                 ;;
8924         esac
8925
8926         save_LIBS="$LIBS"
8927         save_CFLAGS="$CFLAGS"
8928         LIBS="$PTHREAD_LIBS $LIBS"
8929         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8930
8931         # Check for various functions.  We must include pthread.h,
8932         # since some functions may be macros.  (On the Sequent, we
8933         # need a special flag -Kthread to make this header compile.)
8934         # We check for pthread_join because it is in -lpthread on IRIX
8935         # while pthread_create is in libc.  We check for pthread_attr_init
8936         # due to DEC craziness with -lpthreads.  We check for
8937         # pthread_cleanup_push because it is one of the few pthread
8938         # functions on Solaris that doesn't have a non-functional libc stub.
8939         # We try pthread_create on general principles.
8940         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h.  */
8942 #include <pthread.h>
8943                         static void routine(void *a) { a = 0; }
8944                         static void *start_routine(void *a) { return a; }
8945 int
8946 main ()
8947 {
8948 pthread_t th; pthread_attr_t attr;
8949                         pthread_create(&th, 0, start_routine, 0);
8950                         pthread_join(th, 0);
8951                         pthread_attr_init(&attr);
8952                         pthread_cleanup_push(routine, 0);
8953                         pthread_cleanup_pop(0) /* ; */
8954   ;
8955   return 0;
8956 }
8957 _ACEOF
8958 if ac_fn_c_try_link "$LINENO"; then :
8959   ax_pthread_ok=yes
8960 fi
8961 rm -f core conftest.err conftest.$ac_objext \
8962     conftest$ac_exeext conftest.$ac_ext
8963
8964         LIBS="$save_LIBS"
8965         CFLAGS="$save_CFLAGS"
8966
8967         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8968 $as_echo "$ax_pthread_ok" >&6; }
8969         if test "x$ax_pthread_ok" = xyes; then
8970                 break;
8971         fi
8972
8973         PTHREAD_LIBS=""
8974         PTHREAD_CFLAGS=""
8975 done
8976 fi
8977
8978 # Various other checks:
8979 if test "x$ax_pthread_ok" = xyes; then
8980         save_LIBS="$LIBS"
8981         LIBS="$PTHREAD_LIBS $LIBS"
8982         save_CFLAGS="$CFLAGS"
8983         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8984
8985         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8986         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8987 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8988         attr_name=unknown
8989         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8990             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8991 /* end confdefs.h.  */
8992 #include <pthread.h>
8993 int
8994 main ()
8995 {
8996 int attr = $attr; return attr /* ; */
8997   ;
8998   return 0;
8999 }
9000 _ACEOF
9001 if ac_fn_c_try_link "$LINENO"; then :
9002   attr_name=$attr; break
9003 fi
9004 rm -f core conftest.err conftest.$ac_objext \
9005     conftest$ac_exeext conftest.$ac_ext
9006         done
9007         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9008 $as_echo "$attr_name" >&6; }
9009         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9010
9011 cat >>confdefs.h <<_ACEOF
9012 #define PTHREAD_CREATE_JOINABLE $attr_name
9013 _ACEOF
9014
9015         fi
9016
9017         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9018 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9019         flag=no
9020         case "${host_cpu}-${host_os}" in
9021             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9022             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9023         esac
9024         { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9025 $as_echo "${flag}" >&6; }
9026         if test "x$flag" != xno; then
9027             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9028         fi
9029
9030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9031 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9032 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035
9036                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h.  */
9038
9039                     #include <pthread.h>
9040 int
9041 main ()
9042 {
9043 int i = PTHREAD_PRIO_INHERIT;
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_link "$LINENO"; then :
9049   ax_cv_PTHREAD_PRIO_INHERIT=yes
9050 else
9051   ax_cv_PTHREAD_PRIO_INHERIT=no
9052 fi
9053 rm -f core conftest.err conftest.$ac_objext \
9054     conftest$ac_exeext conftest.$ac_ext
9055
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9058 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9059         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9060
9061 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9062
9063 fi
9064
9065         LIBS="$save_LIBS"
9066         CFLAGS="$save_CFLAGS"
9067
9068         # More AIX lossage: must compile with xlc_r or cc_r
9069         if test x"$GCC" != xyes; then
9070           for ac_prog in xlc_r cc_r
9071 do
9072   # Extract the first word of "$ac_prog", so it can be a program name with args.
9073 set dummy $ac_prog; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
9077   $as_echo_n "(cached) " >&6
9078 else
9079   if test -n "$PTHREAD_CC"; then
9080   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9081 else
9082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9084 do
9085   IFS=$as_save_IFS
9086   test -z "$as_dir" && as_dir=.
9087     for ac_exec_ext in '' $ac_executable_extensions; do
9088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9089     ac_cv_prog_PTHREAD_CC="$ac_prog"
9090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9091     break 2
9092   fi
9093 done
9094   done
9095 IFS=$as_save_IFS
9096
9097 fi
9098 fi
9099 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9100 if test -n "$PTHREAD_CC"; then
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9102 $as_echo "$PTHREAD_CC" >&6; }
9103 else
9104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9105 $as_echo "no" >&6; }
9106 fi
9107
9108
9109   test -n "$PTHREAD_CC" && break
9110 done
9111 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9112
9113         else
9114           PTHREAD_CC=$CC
9115         fi
9116 else
9117         PTHREAD_CC="$CC"
9118 fi
9119
9120
9121
9122
9123
9124 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9125 if test x"$ax_pthread_ok" = xyes; then
9126
9127 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9128
9129         :
9130 else
9131         ax_pthread_ok=no
9132
9133 fi
9134 ac_ext=c
9135 ac_cpp='$CPP $CPPFLAGS'
9136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9139
9140
9141
9142 # Check whether --enable-opencl was given.
9143 if test "${enable_opencl+set}" = set; then :
9144   enableval=$enable_opencl; disable_opencl=$enableval
9145 else
9146   disable_opencl='yes'
9147 fi
9148
9149
9150 if test "$disable_opencl" = 'yes'; then
9151   ac_ext=c
9152 ac_cpp='$CPP $CPPFLAGS'
9153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9156
9157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9158 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9159 if ${ax_cv_c_compiler_ms+:} false; then :
9160   $as_echo_n "(cached) " >&6
9161 else
9162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h.  */
9164
9165 int
9166 main ()
9167 {
9168 #ifndef _MSC_VER
9169        choke me
9170 #endif
9171
9172   ;
9173   return 0;
9174 }
9175 _ACEOF
9176 if ac_fn_c_try_compile "$LINENO"; then :
9177   ax_compiler_ms=yes
9178 else
9179   ax_compiler_ms=no
9180 fi
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 ax_cv_c_compiler_ms=$ax_compiler_ms
9183
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9186 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9187   if test X$ax_compiler_ms = Xno; then :
9188   CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9189 fi
9190
9191   ax_save_CPPFLAGS=$CPPFLAGS
9192   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9193   for ac_header in CL/cl.h OpenCL/cl.h
9194 do :
9195   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9196 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9197 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9198   cat >>confdefs.h <<_ACEOF
9199 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9200 _ACEOF
9201
9202 fi
9203
9204 done
9205
9206   CPPFLAGS=$ax_save_CPPFLAGS
9207
9208   for ac_header in windows.h
9209 do :
9210   ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9211 if test "x$ac_cv_header_windows_h" = xyes; then :
9212   cat >>confdefs.h <<_ACEOF
9213 #define HAVE_WINDOWS_H 1
9214 _ACEOF
9215
9216 fi
9217
9218 done
9219
9220
9221
9222
9223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9224 $as_echo_n "checking for OpenCL library... " >&6; }
9225 if ${ax_cv_check_cl_libcl+:} false; then :
9226   $as_echo_n "(cached) " >&6
9227 else
9228   ax_cv_check_cl_libcl=no
9229   case $host_cpu in
9230     x86_64) ax_check_cl_libdir=lib64 ;;
9231     *)      ax_check_cl_libdir=lib ;;
9232   esac
9233   ax_save_CPPFLAGS=$CPPFLAGS
9234   CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9235   ax_save_LIBS=$LIBS
9236   LIBS=""
9237   ax_check_libs="-lOpenCL -lCL -lclparser"
9238   for ax_lib in $ax_check_libs; do
9239     if test X$ax_compiler_ms = Xyes; then :
9240   ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9241 else
9242   ax_try_lib=$ax_lib
9243 fi
9244     LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9246 /* end confdefs.h.  */
9247
9248   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9249   #   include <windows.h>
9250   # endif
9251   # ifdef HAVE_CL_CL_H
9252   #   include <CL/cl.h>
9253   # elif defined(HAVE_OPENCL_CL_H)
9254   #   include <OpenCL/cl.h>
9255   # else
9256   #   error no CL.h
9257   # endif
9258 int
9259 main ()
9260 {
9261 clCreateContextFromType(0,0,0,0,0)
9262   ;
9263   return 0;
9264 }
9265 _ACEOF
9266 if ac_fn_c_try_link "$LINENO"; then :
9267   ax_cv_check_cl_libcl=$ax_try_lib; break
9268 else
9269   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"
9270                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9271 /* end confdefs.h.  */
9272
9273   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9274   #   include <windows.h>
9275   # endif
9276   # ifdef HAVE_CL_CL_H
9277   #   include <CL/cl.h>
9278   # elif defined(HAVE_OPENCL_CL_H)
9279   #   include <OpenCL/cl.h>
9280   # else
9281   #   error no CL.h
9282   # endif
9283 int
9284 main ()
9285 {
9286 clCreateContextFromType(0,0,0,0,0)
9287   ;
9288   return 0;
9289 }
9290 _ACEOF
9291 if ac_fn_c_try_link "$LINENO"; then :
9292   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9293 else
9294   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"
9295                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9296 /* end confdefs.h.  */
9297
9298   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9299   #   include <windows.h>
9300   # endif
9301   # ifdef HAVE_CL_CL_H
9302   #   include <CL/cl.h>
9303   # elif defined(HAVE_OPENCL_CL_H)
9304   #   include <OpenCL/cl.h>
9305   # else
9306   #   error no CL.h
9307   # endif
9308 int
9309 main ()
9310 {
9311 clCreateContextFromType(0,0,0,0,0)
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317   ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9318 fi
9319 rm -f core conftest.err conftest.$ac_objext \
9320     conftest$ac_exeext conftest.$ac_ext
9321 fi
9322 rm -f core conftest.err conftest.$ac_objext \
9323     conftest$ac_exeext conftest.$ac_ext
9324 fi
9325 rm -f core conftest.err conftest.$ac_objext \
9326     conftest$ac_exeext conftest.$ac_ext
9327   done
9328
9329   if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9330   LIBS='-Wl,-framework,OpenCL'
9331         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h.  */
9333
9334   # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9335   #   include <windows.h>
9336   # endif
9337   # ifdef HAVE_CL_CL_H
9338   #   include <CL/cl.h>
9339   # elif defined(HAVE_OPENCL_CL_H)
9340   #   include <OpenCL/cl.h>
9341   # else
9342   #   error no CL.h
9343   # endif
9344 int
9345 main ()
9346 {
9347 clCreateContextFromType(0,0,0,0,0)
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 if ac_fn_c_try_link "$LINENO"; then :
9353   ax_cv_check_cl_libcl=$LIBS
9354 fi
9355 rm -f core conftest.err conftest.$ac_objext \
9356     conftest$ac_exeext conftest.$ac_ext
9357 fi
9358
9359   LIBS=$ax_save_LIBS
9360   CPPFLAGS=$ax_save_CPPFLAGS
9361 fi
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9363 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9364
9365   if test "X$ax_cv_check_cl_libcl" = Xno; then :
9366   no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9367 else
9368   CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9369 $as_echo "#define _OPENCL 1" >>confdefs.h
9370
9371 fi
9372   ac_ext=c
9373 ac_cpp='$CPP $CPPFLAGS'
9374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9377
9378 fi
9379
9380
9381
9382
9383 CFLAGS="$CL_CFLAGS $CFLAGS"
9384 LIBS="$CL_LIBS $LIBS"
9385
9386 if test "$enable_opencl" != no; then
9387   if test "X$ax_cv_check_cl_libcl" != Xno; then :
9388     MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9389   fi
9390 fi
9391
9392 ########
9393 #
9394 # Check for large file support
9395 #
9396 ########
9397 # Check whether --enable-largefile was given.
9398 if test "${enable_largefile+set}" = set; then :
9399   enableval=$enable_largefile;
9400 fi
9401
9402 if test "$enable_largefile" != no; then
9403
9404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9405 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9406 if ${ac_cv_sys_largefile_CC+:} false; then :
9407   $as_echo_n "(cached) " >&6
9408 else
9409   ac_cv_sys_largefile_CC=no
9410      if test "$GCC" != yes; then
9411        ac_save_CC=$CC
9412        while :; do
9413          # IRIX 6.2 and later do not support large files by default,
9414          # so use the C compiler's -n32 option if that helps.
9415          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h.  */
9417 #include <sys/types.h>
9418  /* Check that off_t can represent 2**63 - 1 correctly.
9419     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9420     since some C++ compilers masquerading as C compilers
9421     incorrectly reject 9223372036854775807.  */
9422 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9423   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9424                        && LARGE_OFF_T % 2147483647 == 1)
9425                       ? 1 : -1];
9426 int
9427 main ()
9428 {
9429
9430   ;
9431   return 0;
9432 }
9433 _ACEOF
9434          if ac_fn_c_try_compile "$LINENO"; then :
9435   break
9436 fi
9437 rm -f core conftest.err conftest.$ac_objext
9438          CC="$CC -n32"
9439          if ac_fn_c_try_compile "$LINENO"; then :
9440   ac_cv_sys_largefile_CC=' -n32'; break
9441 fi
9442 rm -f core conftest.err conftest.$ac_objext
9443          break
9444        done
9445        CC=$ac_save_CC
9446        rm -f conftest.$ac_ext
9447     fi
9448 fi
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9450 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9451   if test "$ac_cv_sys_largefile_CC" != no; then
9452     CC=$CC$ac_cv_sys_largefile_CC
9453   fi
9454
9455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9456 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9457 if ${ac_cv_sys_file_offset_bits+:} false; then :
9458   $as_echo_n "(cached) " >&6
9459 else
9460   while :; do
9461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h.  */
9463 #include <sys/types.h>
9464  /* Check that off_t can represent 2**63 - 1 correctly.
9465     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9466     since some C++ compilers masquerading as C compilers
9467     incorrectly reject 9223372036854775807.  */
9468 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9469   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9470                        && LARGE_OFF_T % 2147483647 == 1)
9471                       ? 1 : -1];
9472 int
9473 main ()
9474 {
9475
9476   ;
9477   return 0;
9478 }
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"; then :
9481   ac_cv_sys_file_offset_bits=no; break
9482 fi
9483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9485 /* end confdefs.h.  */
9486 #define _FILE_OFFSET_BITS 64
9487 #include <sys/types.h>
9488  /* Check that off_t can represent 2**63 - 1 correctly.
9489     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9490     since some C++ compilers masquerading as C compilers
9491     incorrectly reject 9223372036854775807.  */
9492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9493   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9494                        && LARGE_OFF_T % 2147483647 == 1)
9495                       ? 1 : -1];
9496 int
9497 main ()
9498 {
9499
9500   ;
9501   return 0;
9502 }
9503 _ACEOF
9504 if ac_fn_c_try_compile "$LINENO"; then :
9505   ac_cv_sys_file_offset_bits=64; break
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508   ac_cv_sys_file_offset_bits=unknown
9509   break
9510 done
9511 fi
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9513 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9514 case $ac_cv_sys_file_offset_bits in #(
9515   no | unknown) ;;
9516   *)
9517 cat >>confdefs.h <<_ACEOF
9518 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9519 _ACEOF
9520 ;;
9521 esac
9522 rm -rf conftest*
9523   if test $ac_cv_sys_file_offset_bits = unknown; then
9524     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9525 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9526 if ${ac_cv_sys_large_files+:} false; then :
9527   $as_echo_n "(cached) " >&6
9528 else
9529   while :; do
9530   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531 /* end confdefs.h.  */
9532 #include <sys/types.h>
9533  /* Check that off_t can represent 2**63 - 1 correctly.
9534     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9535     since some C++ compilers masquerading as C compilers
9536     incorrectly reject 9223372036854775807.  */
9537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9538   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9539                        && LARGE_OFF_T % 2147483647 == 1)
9540                       ? 1 : -1];
9541 int
9542 main ()
9543 {
9544
9545   ;
9546   return 0;
9547 }
9548 _ACEOF
9549 if ac_fn_c_try_compile "$LINENO"; then :
9550   ac_cv_sys_large_files=no; break
9551 fi
9552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9554 /* end confdefs.h.  */
9555 #define _LARGE_FILES 1
9556 #include <sys/types.h>
9557  /* Check that off_t can represent 2**63 - 1 correctly.
9558     We can't simply define LARGE_OFF_T to be 9223372036854775807,
9559     since some C++ compilers masquerading as C compilers
9560     incorrectly reject 9223372036854775807.  */
9561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9562   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9563                        && LARGE_OFF_T % 2147483647 == 1)
9564                       ? 1 : -1];
9565 int
9566 main ()
9567 {
9568
9569   ;
9570   return 0;
9571 }
9572 _ACEOF
9573 if ac_fn_c_try_compile "$LINENO"; then :
9574   ac_cv_sys_large_files=1; break
9575 fi
9576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9577   ac_cv_sys_large_files=unknown
9578   break
9579 done
9580 fi
9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9582 $as_echo "$ac_cv_sys_large_files" >&6; }
9583 case $ac_cv_sys_large_files in #(
9584   no | unknown) ;;
9585   *)
9586 cat >>confdefs.h <<_ACEOF
9587 #define _LARGE_FILES $ac_cv_sys_large_files
9588 _ACEOF
9589 ;;
9590 esac
9591 rm -rf conftest*
9592   fi
9593 fi
9594
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9596 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9597 if ${ac_cv_sys_largefile_source+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   while :; do
9601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9602 /* end confdefs.h.  */
9603 #include <sys/types.h> /* for off_t */
9604      #include <stdio.h>
9605 int
9606 main ()
9607 {
9608 int (*fp) (FILE *, off_t, int) = fseeko;
9609      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9610   ;
9611   return 0;
9612 }
9613 _ACEOF
9614 if ac_fn_c_try_link "$LINENO"; then :
9615   ac_cv_sys_largefile_source=no; break
9616 fi
9617 rm -f core conftest.err conftest.$ac_objext \
9618     conftest$ac_exeext conftest.$ac_ext
9619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9620 /* end confdefs.h.  */
9621 #define _LARGEFILE_SOURCE 1
9622 #include <sys/types.h> /* for off_t */
9623      #include <stdio.h>
9624 int
9625 main ()
9626 {
9627 int (*fp) (FILE *, off_t, int) = fseeko;
9628      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9629   ;
9630   return 0;
9631 }
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"; then :
9634   ac_cv_sys_largefile_source=1; break
9635 fi
9636 rm -f core conftest.err conftest.$ac_objext \
9637     conftest$ac_exeext conftest.$ac_ext
9638   ac_cv_sys_largefile_source=unknown
9639   break
9640 done
9641 fi
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9643 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9644 case $ac_cv_sys_largefile_source in #(
9645   no | unknown) ;;
9646   *)
9647 cat >>confdefs.h <<_ACEOF
9648 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9649 _ACEOF
9650 ;;
9651 esac
9652 rm -rf conftest*
9653
9654 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9655 # in glibc 2.1.3, but that breaks too many other things.
9656 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9657 if test $ac_cv_sys_largefile_source != unknown; then
9658
9659 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9660
9661 fi
9662
9663 LFS_CPPFLAGS=''
9664 if test "$enable_largefile" != no; then
9665     case $ac_cv_sys_file_offset_bits in
9666     no)
9667         # nothing to do here as the host supports LFS fine
9668         ;;
9669     unknown)
9670         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9671 $as_echo_n "checking for native large file support... " >&6; }
9672         if test "$cross_compiling" = yes; then :
9673   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9675 as_fn_error $? "cannot run test program while cross compiling
9676 See \`config.log' for more details" "$LINENO" 5; }
9677 else
9678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h.  */
9680 #include <unistd.h>
9681           main () {
9682           exit(!(sizeof(off_t) == 8));
9683         }
9684 int
9685 main ()
9686 {
9687
9688   ;
9689   return 0;
9690 }
9691 _ACEOF
9692 if ac_fn_c_try_run "$LINENO"; then :
9693   ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9694
9695          { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
9696 $as_echo "$as_me: yes" >&6;}
9697 else
9698   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
9699 $as_echo "$as_me: no" >&6;}
9700 fi
9701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9702   conftest.$ac_objext conftest.beam conftest.$ac_ext
9703 fi
9704
9705         ;;
9706     *)
9707         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9708         ;;
9709     esac
9710     if test "$ac_cv_sys_large_files" != 'no'; then
9711         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9712     fi
9713     if test "$ac_cv_sys_largefile_source" != 'no'; then
9714         LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9715     fi
9716 fi
9717
9718
9719 #
9720 # ARCH specific include directory
9721 #
9722
9723 # Check whether --with-includedir-arch was given.
9724 if test "${with_includedir_arch+set}" = set; then :
9725   withval=$with_includedir_arch; includedir_arch=$withval
9726 else
9727   includedir_arch=$INCLUDE_DIR
9728 fi
9729
9730
9731
9732 cat >>confdefs.h <<_ACEOF
9733 #define INCLUDEDIR_ARCH "$includedir_arch"
9734 _ACEOF
9735
9736
9737 #
9738 # ARCH specific configuration directory
9739 #
9740
9741 # Check whether --with-configdir-arch was given.
9742 if test "${with_configdir_arch+set}" = set; then :
9743   withval=$with_configdir_arch; configdir_arch=$withval
9744 else
9745   configdir_arch="${LIB_DIR}/${PACKAGE_NAME}-${PACKAGE_VERSION}"
9746 fi
9747
9748
9749
9750 cat >>confdefs.h <<_ACEOF
9751 #define CONFIGDIR_ARCH "$configdir_arch"
9752 _ACEOF
9753
9754
9755 #
9756 # Configure libtool & libltdl
9757 #
9758 # Configure libtool
9759 enable_dlopen=yes
9760
9761
9762
9763 case `pwd` in
9764   *\ * | *\     *)
9765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9766 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9767 esac
9768
9769
9770
9771 macro_version='2.4'
9772 macro_revision='1.3293'
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786 ltmain="$ac_aux_dir/ltmain.sh"
9787
9788 # Backslashify metacharacters that are still active within
9789 # double-quoted strings.
9790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9791
9792 # Same as above, but do not quote variable references.
9793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9794
9795 # Sed substitution to delay expansion of an escaped shell variable in a
9796 # double_quote_subst'ed string.
9797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9798
9799 # Sed substitution to delay expansion of an escaped single quote.
9800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9801
9802 # Sed substitution to avoid accidental globbing in evaled expressions
9803 no_glob_subst='s/\*/\\\*/g'
9804
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9806 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9807 if ${lt_cv_path_NM+:} false; then :
9808   $as_echo_n "(cached) " >&6
9809 else
9810   if test -n "$NM"; then
9811   # Let the user override the test.
9812   lt_cv_path_NM="$NM"
9813 else
9814   lt_nm_to_check="${ac_tool_prefix}nm"
9815   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9816     lt_nm_to_check="$lt_nm_to_check nm"
9817   fi
9818   for lt_tmp_nm in $lt_nm_to_check; do
9819     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9820     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9821       IFS="$lt_save_ifs"
9822       test -z "$ac_dir" && ac_dir=.
9823       tmp_nm="$ac_dir/$lt_tmp_nm"
9824       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9825         # Check to see if the nm accepts a BSD-compat flag.
9826         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9827         #   nm: unknown option "B" ignored
9828         # Tru64's nm complains that /dev/null is an invalid object file
9829         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9830         */dev/null* | *'Invalid file or object type'*)
9831           lt_cv_path_NM="$tmp_nm -B"
9832           break
9833           ;;
9834         *)
9835           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9836           */dev/null*)
9837             lt_cv_path_NM="$tmp_nm -p"
9838             break
9839             ;;
9840           *)
9841             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9842             continue # so that we can try to find one that supports BSD flags
9843             ;;
9844           esac
9845           ;;
9846         esac
9847       fi
9848     done
9849     IFS="$lt_save_ifs"
9850   done
9851   : ${lt_cv_path_NM=no}
9852 fi
9853 fi
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9855 $as_echo "$lt_cv_path_NM" >&6; }
9856 if test "$lt_cv_path_NM" != "no"; then
9857   NM="$lt_cv_path_NM"
9858 else
9859   # Didn't find any BSD compatible name lister, look for dumpbin.
9860   if test -n "$DUMPBIN"; then :
9861     # Let the user override the test.
9862   else
9863     if test -n "$ac_tool_prefix"; then
9864   for ac_prog in dumpbin "link -dump"
9865   do
9866     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9869 $as_echo_n "checking for $ac_word... " >&6; }
9870 if ${ac_cv_prog_DUMPBIN+:} false; then :
9871   $as_echo_n "(cached) " >&6
9872 else
9873   if test -n "$DUMPBIN"; then
9874   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9875 else
9876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 for as_dir in $PATH
9878 do
9879   IFS=$as_save_IFS
9880   test -z "$as_dir" && as_dir=.
9881     for ac_exec_ext in '' $ac_executable_extensions; do
9882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9885     break 2
9886   fi
9887 done
9888   done
9889 IFS=$as_save_IFS
9890
9891 fi
9892 fi
9893 DUMPBIN=$ac_cv_prog_DUMPBIN
9894 if test -n "$DUMPBIN"; then
9895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9896 $as_echo "$DUMPBIN" >&6; }
9897 else
9898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9899 $as_echo "no" >&6; }
9900 fi
9901
9902
9903     test -n "$DUMPBIN" && break
9904   done
9905 fi
9906 if test -z "$DUMPBIN"; then
9907   ac_ct_DUMPBIN=$DUMPBIN
9908   for ac_prog in dumpbin "link -dump"
9909 do
9910   # Extract the first word of "$ac_prog", so it can be a program name with args.
9911 set dummy $ac_prog; ac_word=$2
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9913 $as_echo_n "checking for $ac_word... " >&6; }
9914 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   if test -n "$ac_ct_DUMPBIN"; then
9918   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9919 else
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9921 for as_dir in $PATH
9922 do
9923   IFS=$as_save_IFS
9924   test -z "$as_dir" && as_dir=.
9925     for ac_exec_ext in '' $ac_executable_extensions; do
9926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9927     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9929     break 2
9930   fi
9931 done
9932   done
9933 IFS=$as_save_IFS
9934
9935 fi
9936 fi
9937 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9938 if test -n "$ac_ct_DUMPBIN"; then
9939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9940 $as_echo "$ac_ct_DUMPBIN" >&6; }
9941 else
9942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9943 $as_echo "no" >&6; }
9944 fi
9945
9946
9947   test -n "$ac_ct_DUMPBIN" && break
9948 done
9949
9950   if test "x$ac_ct_DUMPBIN" = x; then
9951     DUMPBIN=":"
9952   else
9953     case $cross_compiling:$ac_tool_warned in
9954 yes:)
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9957 ac_tool_warned=yes ;;
9958 esac
9959     DUMPBIN=$ac_ct_DUMPBIN
9960   fi
9961 fi
9962
9963     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9964     *COFF*)
9965       DUMPBIN="$DUMPBIN -symbols"
9966       ;;
9967     *)
9968       DUMPBIN=:
9969       ;;
9970     esac
9971   fi
9972
9973   if test "$DUMPBIN" != ":"; then
9974     NM="$DUMPBIN"
9975   fi
9976 fi
9977 test -z "$NM" && NM=nm
9978
9979
9980
9981
9982
9983
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9985 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9986 if ${lt_cv_nm_interface+:} false; then :
9987   $as_echo_n "(cached) " >&6
9988 else
9989   lt_cv_nm_interface="BSD nm"
9990   echo "int some_variable = 0;" > conftest.$ac_ext
9991   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9992   (eval "$ac_compile" 2>conftest.err)
9993   cat conftest.err >&5
9994   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9995   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9996   cat conftest.err >&5
9997   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9998   cat conftest.out >&5
9999   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10000     lt_cv_nm_interface="MS dumpbin"
10001   fi
10002   rm -f conftest*
10003 fi
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10005 $as_echo "$lt_cv_nm_interface" >&6; }
10006
10007 # find the maximum length of command line arguments
10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10009 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
10010 if ${lt_cv_sys_max_cmd_len+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013     i=0
10014   teststring="ABCD"
10015
10016   case $build_os in
10017   msdosdjgpp*)
10018     # On DJGPP, this test can blow up pretty badly due to problems in libc
10019     # (any single argument exceeding 2000 bytes causes a buffer overrun
10020     # during glob expansion).  Even if it were fixed, the result of this
10021     # check would be larger than it should be.
10022     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
10023     ;;
10024
10025   gnu*)
10026     # Under GNU Hurd, this test is not required because there is
10027     # no limit to the length of command line arguments.
10028     # Libtool will interpret -1 as no limit whatsoever
10029     lt_cv_sys_max_cmd_len=-1;
10030     ;;
10031
10032   cygwin* | mingw* | cegcc*)
10033     # On Win9x/ME, this test blows up -- it succeeds, but takes
10034     # about 5 minutes as the teststring grows exponentially.
10035     # Worse, since 9x/ME are not pre-emptively multitasking,
10036     # you end up with a "frozen" computer, even though with patience
10037     # the test eventually succeeds (with a max line length of 256k).
10038     # Instead, let's just punt: use the minimum linelength reported by
10039     # all of the supported platforms: 8192 (on NT/2K/XP).
10040     lt_cv_sys_max_cmd_len=8192;
10041     ;;
10042
10043   mint*)
10044     # On MiNT this can take a long time and run out of memory.
10045     lt_cv_sys_max_cmd_len=8192;
10046     ;;
10047
10048   amigaos*)
10049     # On AmigaOS with pdksh, this test takes hours, literally.
10050     # So we just punt and use a minimum line length of 8192.
10051     lt_cv_sys_max_cmd_len=8192;
10052     ;;
10053
10054   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10055     # This has been around since 386BSD, at least.  Likely further.
10056     if test -x /sbin/sysctl; then
10057       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10058     elif test -x /usr/sbin/sysctl; then
10059       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10060     else
10061       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
10062     fi
10063     # And add a safety zone
10064     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10065     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10066     ;;
10067
10068   interix*)
10069     # We know the value 262144 and hardcode it with a safety zone (like BSD)
10070     lt_cv_sys_max_cmd_len=196608
10071     ;;
10072
10073   osf*)
10074     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10075     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10076     # nice to cause kernel panics so lets avoid the loop below.
10077     # First set a reasonable default.
10078     lt_cv_sys_max_cmd_len=16384
10079     #
10080     if test -x /sbin/sysconfig; then
10081       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10082         *1*) lt_cv_sys_max_cmd_len=-1 ;;
10083       esac
10084     fi
10085     ;;
10086   sco3.2v5*)
10087     lt_cv_sys_max_cmd_len=102400
10088     ;;
10089   sysv5* | sco5v6* | sysv4.2uw2*)
10090     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10091     if test -n "$kargmax"; then
10092       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
10093     else
10094       lt_cv_sys_max_cmd_len=32768
10095     fi
10096     ;;
10097   *)
10098     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10099     if test -n "$lt_cv_sys_max_cmd_len"; then
10100       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10101       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10102     else
10103       # Make teststring a little bigger before we do anything with it.
10104       # a 1K string should be a reasonable start.
10105       for i in 1 2 3 4 5 6 7 8 ; do
10106         teststring=$teststring$teststring
10107       done
10108       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10109       # If test is not a shell built-in, we'll probably end up computing a
10110       # maximum length that is only half of the actual maximum length, but
10111       # we can't tell.
10112       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
10113                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
10114               test $i != 17 # 1/2 MB should be enough
10115       do
10116         i=`expr $i + 1`
10117         teststring=$teststring$teststring
10118       done
10119       # Only check the string length outside the loop.
10120       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10121       teststring=
10122       # Add a significant safety factor because C++ compilers can tack on
10123       # massive amounts of additional arguments before passing them to the
10124       # linker.  It appears as though 1/2 is a usable value.
10125       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10126     fi
10127     ;;
10128   esac
10129
10130 fi
10131
10132 if test -n $lt_cv_sys_max_cmd_len ; then
10133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10134 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10135 else
10136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10137 $as_echo "none" >&6; }
10138 fi
10139 max_cmd_len=$lt_cv_sys_max_cmd_len
10140
10141
10142
10143
10144
10145
10146 : ${CP="cp -f"}
10147 : ${MV="mv -f"}
10148 : ${RM="rm -f"}
10149
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10151 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10152 # Try some XSI features
10153 xsi_shell=no
10154 ( _lt_dummy="a/b/c"
10155   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10156       = c,a/b,b/c, \
10157     && eval 'test $(( 1 + 1 )) -eq 2 \
10158     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10159   && xsi_shell=yes
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10161 $as_echo "$xsi_shell" >&6; }
10162
10163
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10165 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10166 lt_shell_append=no
10167 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10168     >/dev/null 2>&1 \
10169   && lt_shell_append=yes
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10171 $as_echo "$lt_shell_append" >&6; }
10172
10173
10174 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10175   lt_unset=unset
10176 else
10177   lt_unset=false
10178 fi
10179
10180
10181
10182
10183
10184 # test EBCDIC or ASCII
10185 case `echo X|tr X '\101'` in
10186  A) # ASCII based system
10187     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10188   lt_SP2NL='tr \040 \012'
10189   lt_NL2SP='tr \015\012 \040\040'
10190   ;;
10191  *) # EBCDIC based system
10192   lt_SP2NL='tr \100 \n'
10193   lt_NL2SP='tr \r\n \100\100'
10194   ;;
10195 esac
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10206 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10207 if ${lt_cv_to_host_file_cmd+:} false; then :
10208   $as_echo_n "(cached) " >&6
10209 else
10210   case $host in
10211   *-*-mingw* )
10212     case $build in
10213       *-*-mingw* ) # actually msys
10214         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10215         ;;
10216       *-*-cygwin* )
10217         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10218         ;;
10219       * ) # otherwise, assume *nix
10220         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10221         ;;
10222     esac
10223     ;;
10224   *-*-cygwin* )
10225     case $build in
10226       *-*-mingw* ) # actually msys
10227         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10228         ;;
10229       *-*-cygwin* )
10230         lt_cv_to_host_file_cmd=func_convert_file_noop
10231         ;;
10232       * ) # otherwise, assume *nix
10233         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10234         ;;
10235     esac
10236     ;;
10237   * ) # unhandled hosts (and "normal" native builds)
10238     lt_cv_to_host_file_cmd=func_convert_file_noop
10239     ;;
10240 esac
10241
10242 fi
10243
10244 to_host_file_cmd=$lt_cv_to_host_file_cmd
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10246 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10247
10248
10249
10250
10251
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10253 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10254 if ${lt_cv_to_tool_file_cmd+:} false; then :
10255   $as_echo_n "(cached) " >&6
10256 else
10257   #assume ordinary cross tools, or native build.
10258 lt_cv_to_tool_file_cmd=func_convert_file_noop
10259 case $host in
10260   *-*-mingw* )
10261     case $build in
10262       *-*-mingw* ) # actually msys
10263         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10264         ;;
10265     esac
10266     ;;
10267 esac
10268
10269 fi
10270
10271 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10273 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10274
10275
10276
10277
10278
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10280 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10281 if ${lt_cv_ld_reload_flag+:} false; then :
10282   $as_echo_n "(cached) " >&6
10283 else
10284   lt_cv_ld_reload_flag='-r'
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10287 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10288 reload_flag=$lt_cv_ld_reload_flag
10289 case $reload_flag in
10290 "" | " "*) ;;
10291 *) reload_flag=" $reload_flag" ;;
10292 esac
10293 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10294 case $host_os in
10295   cygwin* | mingw* | pw32* | cegcc*)
10296     if test "$GCC" != yes; then
10297       reload_cmds=false
10298     fi
10299     ;;
10300   darwin*)
10301     if test "$GCC" = yes; then
10302       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10303     else
10304       reload_cmds='$LD$reload_flag -o $output$reload_objs'
10305     fi
10306     ;;
10307 esac
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317 if test -n "$ac_tool_prefix"; then
10318   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10319 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10321 $as_echo_n "checking for $ac_word... " >&6; }
10322 if ${ac_cv_prog_OBJDUMP+:} false; then :
10323   $as_echo_n "(cached) " >&6
10324 else
10325   if test -n "$OBJDUMP"; then
10326   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10327 else
10328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10329 for as_dir in $PATH
10330 do
10331   IFS=$as_save_IFS
10332   test -z "$as_dir" && as_dir=.
10333     for ac_exec_ext in '' $ac_executable_extensions; do
10334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10335     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10337     break 2
10338   fi
10339 done
10340   done
10341 IFS=$as_save_IFS
10342
10343 fi
10344 fi
10345 OBJDUMP=$ac_cv_prog_OBJDUMP
10346 if test -n "$OBJDUMP"; then
10347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10348 $as_echo "$OBJDUMP" >&6; }
10349 else
10350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10352 fi
10353
10354
10355 fi
10356 if test -z "$ac_cv_prog_OBJDUMP"; then
10357   ac_ct_OBJDUMP=$OBJDUMP
10358   # Extract the first word of "objdump", so it can be a program name with args.
10359 set dummy objdump; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10363   $as_echo_n "(cached) " >&6
10364 else
10365   if test -n "$ac_ct_OBJDUMP"; then
10366   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10367 else
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10370 do
10371   IFS=$as_save_IFS
10372   test -z "$as_dir" && as_dir=.
10373     for ac_exec_ext in '' $ac_executable_extensions; do
10374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10375     ac_cv_prog_ac_ct_OBJDUMP="objdump"
10376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10377     break 2
10378   fi
10379 done
10380   done
10381 IFS=$as_save_IFS
10382
10383 fi
10384 fi
10385 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10386 if test -n "$ac_ct_OBJDUMP"; then
10387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10388 $as_echo "$ac_ct_OBJDUMP" >&6; }
10389 else
10390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10392 fi
10393
10394   if test "x$ac_ct_OBJDUMP" = x; then
10395     OBJDUMP="false"
10396   else
10397     case $cross_compiling:$ac_tool_warned in
10398 yes:)
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10401 ac_tool_warned=yes ;;
10402 esac
10403     OBJDUMP=$ac_ct_OBJDUMP
10404   fi
10405 else
10406   OBJDUMP="$ac_cv_prog_OBJDUMP"
10407 fi
10408
10409 test -z "$OBJDUMP" && OBJDUMP=objdump
10410
10411
10412
10413
10414
10415
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10417 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10418 if ${lt_cv_deplibs_check_method+:} false; then :
10419   $as_echo_n "(cached) " >&6
10420 else
10421   lt_cv_file_magic_cmd='$MAGIC_CMD'
10422 lt_cv_file_magic_test_file=
10423 lt_cv_deplibs_check_method='unknown'
10424 # Need to set the preceding variable on all platforms that support
10425 # interlibrary dependencies.
10426 # 'none' -- dependencies not supported.
10427 # `unknown' -- same as none, but documents that we really don't know.
10428 # 'pass_all' -- all dependencies passed with no checks.
10429 # 'test_compile' -- check by making test program.
10430 # 'file_magic [[regex]]' -- check by looking for files in library path
10431 # which responds to the $file_magic_cmd with a given extended regex.
10432 # If you have `file' or equivalent on your system and you're not sure
10433 # whether `pass_all' will *always* work, you probably want this one.
10434
10435 case $host_os in
10436 aix[4-9]*)
10437   lt_cv_deplibs_check_method=pass_all
10438   ;;
10439
10440 beos*)
10441   lt_cv_deplibs_check_method=pass_all
10442   ;;
10443
10444 bsdi[45]*)
10445   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10446   lt_cv_file_magic_cmd='/usr/bin/file -L'
10447   lt_cv_file_magic_test_file=/shlib/libc.so
10448   ;;
10449
10450 cygwin*)
10451   # func_win32_libid is a shell function defined in ltmain.sh
10452   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10453   lt_cv_file_magic_cmd='func_win32_libid'
10454   ;;
10455
10456 mingw* | pw32*)
10457   # Base MSYS/MinGW do not provide the 'file' command needed by
10458   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10459   # unless we find 'file', for example because we are cross-compiling.
10460   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10461   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10462     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10463     lt_cv_file_magic_cmd='func_win32_libid'
10464   else
10465     # Keep this pattern in sync with the one in func_win32_libid.
10466     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10467     lt_cv_file_magic_cmd='$OBJDUMP -f'
10468   fi
10469   ;;
10470
10471 cegcc*)
10472   # use the weaker test based on 'objdump'. See mingw*.
10473   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10474   lt_cv_file_magic_cmd='$OBJDUMP -f'
10475   ;;
10476
10477 darwin* | rhapsody*)
10478   lt_cv_deplibs_check_method=pass_all
10479   ;;
10480
10481 freebsd* | dragonfly*)
10482   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10483     case $host_cpu in
10484     i*86 )
10485       # Not sure whether the presence of OpenBSD here was a mistake.
10486       # Let's accept both of them until this is cleared up.
10487       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10488       lt_cv_file_magic_cmd=/usr/bin/file
10489       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10490       ;;
10491     esac
10492   else
10493     lt_cv_deplibs_check_method=pass_all
10494   fi
10495   ;;
10496
10497 gnu*)
10498   lt_cv_deplibs_check_method=pass_all
10499   ;;
10500
10501 haiku*)
10502   lt_cv_deplibs_check_method=pass_all
10503   ;;
10504
10505 hpux10.20* | hpux11*)
10506   lt_cv_file_magic_cmd=/usr/bin/file
10507   case $host_cpu in
10508   ia64*)
10509     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10510     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10511     ;;
10512   hppa*64*)
10513     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]'
10514     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10515     ;;
10516   *)
10517     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10518     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10519     ;;
10520   esac
10521   ;;
10522
10523 interix[3-9]*)
10524   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10525   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10526   ;;
10527
10528 irix5* | irix6* | nonstopux*)
10529   case $LD in
10530   *-32|*"-32 ") libmagic=32-bit;;
10531   *-n32|*"-n32 ") libmagic=N32;;
10532   *-64|*"-64 ") libmagic=64-bit;;
10533   *) libmagic=never-match;;
10534   esac
10535   lt_cv_deplibs_check_method=pass_all
10536   ;;
10537
10538 # This must be Linux ELF.
10539 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10540   lt_cv_deplibs_check_method=pass_all
10541   ;;
10542
10543 netbsd*)
10544   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10545     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10546   else
10547     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10548   fi
10549   ;;
10550
10551 newos6*)
10552   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10553   lt_cv_file_magic_cmd=/usr/bin/file
10554   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10555   ;;
10556
10557 *nto* | *qnx*)
10558   lt_cv_deplibs_check_method=pass_all
10559   ;;
10560
10561 openbsd*)
10562   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10563     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10564   else
10565     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10566   fi
10567   ;;
10568
10569 osf3* | osf4* | osf5*)
10570   lt_cv_deplibs_check_method=pass_all
10571   ;;
10572
10573 rdos*)
10574   lt_cv_deplibs_check_method=pass_all
10575   ;;
10576
10577 solaris*)
10578   lt_cv_deplibs_check_method=pass_all
10579   ;;
10580
10581 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10582   lt_cv_deplibs_check_method=pass_all
10583   ;;
10584
10585 sysv4 | sysv4.3*)
10586   case $host_vendor in
10587   motorola)
10588     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]'
10589     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10590     ;;
10591   ncr)
10592     lt_cv_deplibs_check_method=pass_all
10593     ;;
10594   sequent)
10595     lt_cv_file_magic_cmd='/bin/file'
10596     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10597     ;;
10598   sni)
10599     lt_cv_file_magic_cmd='/bin/file'
10600     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10601     lt_cv_file_magic_test_file=/lib/libc.so
10602     ;;
10603   siemens)
10604     lt_cv_deplibs_check_method=pass_all
10605     ;;
10606   pc)
10607     lt_cv_deplibs_check_method=pass_all
10608     ;;
10609   esac
10610   ;;
10611
10612 tpf*)
10613   lt_cv_deplibs_check_method=pass_all
10614   ;;
10615 esac
10616
10617 fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10619 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10620
10621 file_magic_glob=
10622 want_nocaseglob=no
10623 if test "$build" = "$host"; then
10624   case $host_os in
10625   mingw* | pw32*)
10626     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10627       want_nocaseglob=yes
10628     else
10629       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10630     fi
10631     ;;
10632   esac
10633 fi
10634
10635 file_magic_cmd=$lt_cv_file_magic_cmd
10636 deplibs_check_method=$lt_cv_deplibs_check_method
10637 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660 if test -n "$ac_tool_prefix"; then
10661   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10662 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10664 $as_echo_n "checking for $ac_word... " >&6; }
10665 if ${ac_cv_prog_DLLTOOL+:} false; then :
10666   $as_echo_n "(cached) " >&6
10667 else
10668   if test -n "$DLLTOOL"; then
10669   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10670 else
10671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10672 for as_dir in $PATH
10673 do
10674   IFS=$as_save_IFS
10675   test -z "$as_dir" && as_dir=.
10676     for ac_exec_ext in '' $ac_executable_extensions; do
10677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10678     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10680     break 2
10681   fi
10682 done
10683   done
10684 IFS=$as_save_IFS
10685
10686 fi
10687 fi
10688 DLLTOOL=$ac_cv_prog_DLLTOOL
10689 if test -n "$DLLTOOL"; then
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10691 $as_echo "$DLLTOOL" >&6; }
10692 else
10693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10694 $as_echo "no" >&6; }
10695 fi
10696
10697
10698 fi
10699 if test -z "$ac_cv_prog_DLLTOOL"; then
10700   ac_ct_DLLTOOL=$DLLTOOL
10701   # Extract the first word of "dlltool", so it can be a program name with args.
10702 set dummy dlltool; ac_word=$2
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10704 $as_echo_n "checking for $ac_word... " >&6; }
10705 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10706   $as_echo_n "(cached) " >&6
10707 else
10708   if test -n "$ac_ct_DLLTOOL"; then
10709   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10710 else
10711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10712 for as_dir in $PATH
10713 do
10714   IFS=$as_save_IFS
10715   test -z "$as_dir" && as_dir=.
10716     for ac_exec_ext in '' $ac_executable_extensions; do
10717   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10718     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10720     break 2
10721   fi
10722 done
10723   done
10724 IFS=$as_save_IFS
10725
10726 fi
10727 fi
10728 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10729 if test -n "$ac_ct_DLLTOOL"; then
10730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10731 $as_echo "$ac_ct_DLLTOOL" >&6; }
10732 else
10733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10735 fi
10736
10737   if test "x$ac_ct_DLLTOOL" = x; then
10738     DLLTOOL="false"
10739   else
10740     case $cross_compiling:$ac_tool_warned in
10741 yes:)
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744 ac_tool_warned=yes ;;
10745 esac
10746     DLLTOOL=$ac_ct_DLLTOOL
10747   fi
10748 else
10749   DLLTOOL="$ac_cv_prog_DLLTOOL"
10750 fi
10751
10752 test -z "$DLLTOOL" && DLLTOOL=dlltool
10753
10754
10755
10756
10757
10758
10759
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10761 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10762 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10763   $as_echo_n "(cached) " >&6
10764 else
10765   lt_cv_sharedlib_from_linklib_cmd='unknown'
10766
10767 case $host_os in
10768 cygwin* | mingw* | pw32* | cegcc*)
10769   # two different shell functions defined in ltmain.sh
10770   # decide which to use based on capabilities of $DLLTOOL
10771   case `$DLLTOOL --help 2>&1` in
10772   *--identify-strict*)
10773     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10774     ;;
10775   *)
10776     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10777     ;;
10778   esac
10779   ;;
10780 *)
10781   # fallback: assume linklib IS sharedlib
10782   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10783   ;;
10784 esac
10785
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10788 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10789 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10790 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10791
10792
10793
10794
10795
10796
10797
10798 if test -n "$ac_tool_prefix"; then
10799   for ac_prog in ar
10800   do
10801     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10804 $as_echo_n "checking for $ac_word... " >&6; }
10805 if ${ac_cv_prog_AR+:} false; then :
10806   $as_echo_n "(cached) " >&6
10807 else
10808   if test -n "$AR"; then
10809   ac_cv_prog_AR="$AR" # Let the user override the test.
10810 else
10811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10812 for as_dir in $PATH
10813 do
10814   IFS=$as_save_IFS
10815   test -z "$as_dir" && as_dir=.
10816     for ac_exec_ext in '' $ac_executable_extensions; do
10817   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10818     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10820     break 2
10821   fi
10822 done
10823   done
10824 IFS=$as_save_IFS
10825
10826 fi
10827 fi
10828 AR=$ac_cv_prog_AR
10829 if test -n "$AR"; then
10830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10831 $as_echo "$AR" >&6; }
10832 else
10833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 $as_echo "no" >&6; }
10835 fi
10836
10837
10838     test -n "$AR" && break
10839   done
10840 fi
10841 if test -z "$AR"; then
10842   ac_ct_AR=$AR
10843   for ac_prog in ar
10844 do
10845   # Extract the first word of "$ac_prog", so it can be a program name with args.
10846 set dummy $ac_prog; ac_word=$2
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10848 $as_echo_n "checking for $ac_word... " >&6; }
10849 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10850   $as_echo_n "(cached) " >&6
10851 else
10852   if test -n "$ac_ct_AR"; then
10853   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10854 else
10855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10856 for as_dir in $PATH
10857 do
10858   IFS=$as_save_IFS
10859   test -z "$as_dir" && as_dir=.
10860     for ac_exec_ext in '' $ac_executable_extensions; do
10861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10862     ac_cv_prog_ac_ct_AR="$ac_prog"
10863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10864     break 2
10865   fi
10866 done
10867   done
10868 IFS=$as_save_IFS
10869
10870 fi
10871 fi
10872 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10873 if test -n "$ac_ct_AR"; then
10874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10875 $as_echo "$ac_ct_AR" >&6; }
10876 else
10877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10878 $as_echo "no" >&6; }
10879 fi
10880
10881
10882   test -n "$ac_ct_AR" && break
10883 done
10884
10885   if test "x$ac_ct_AR" = x; then
10886     AR="false"
10887   else
10888     case $cross_compiling:$ac_tool_warned in
10889 yes:)
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10892 ac_tool_warned=yes ;;
10893 esac
10894     AR=$ac_ct_AR
10895   fi
10896 fi
10897
10898 : ${AR=ar}
10899 : ${AR_FLAGS=cru}
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10912 $as_echo_n "checking for archiver @FILE support... " >&6; }
10913 if ${lt_cv_ar_at_file+:} false; then :
10914   $as_echo_n "(cached) " >&6
10915 else
10916   lt_cv_ar_at_file=no
10917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10918 /* end confdefs.h.  */
10919
10920 int
10921 main ()
10922 {
10923
10924   ;
10925   return 0;
10926 }
10927 _ACEOF
10928 if ac_fn_c_try_compile "$LINENO"; then :
10929   echo conftest.$ac_objext > conftest.lst
10930       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10931       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10932   (eval $lt_ar_try) 2>&5
10933   ac_status=$?
10934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10935   test $ac_status = 0; }
10936       if test "$ac_status" -eq 0; then
10937         # Ensure the archiver fails upon bogus file names.
10938         rm -f conftest.$ac_objext libconftest.a
10939         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10940   (eval $lt_ar_try) 2>&5
10941   ac_status=$?
10942   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943   test $ac_status = 0; }
10944         if test "$ac_status" -ne 0; then
10945           lt_cv_ar_at_file=@
10946         fi
10947       fi
10948       rm -f conftest.* libconftest.a
10949
10950 fi
10951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10952
10953 fi
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10955 $as_echo "$lt_cv_ar_at_file" >&6; }
10956
10957 if test "x$lt_cv_ar_at_file" = xno; then
10958   archiver_list_spec=
10959 else
10960   archiver_list_spec=$lt_cv_ar_at_file
10961 fi
10962
10963
10964
10965
10966
10967
10968
10969 if test -n "$ac_tool_prefix"; then
10970   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10971 set dummy ${ac_tool_prefix}strip; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10973 $as_echo_n "checking for $ac_word... " >&6; }
10974 if ${ac_cv_prog_STRIP+:} false; then :
10975   $as_echo_n "(cached) " >&6
10976 else
10977   if test -n "$STRIP"; then
10978   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10979 else
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10982 do
10983   IFS=$as_save_IFS
10984   test -z "$as_dir" && as_dir=.
10985     for ac_exec_ext in '' $ac_executable_extensions; do
10986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10987     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10989     break 2
10990   fi
10991 done
10992   done
10993 IFS=$as_save_IFS
10994
10995 fi
10996 fi
10997 STRIP=$ac_cv_prog_STRIP
10998 if test -n "$STRIP"; then
10999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11000 $as_echo "$STRIP" >&6; }
11001 else
11002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11003 $as_echo "no" >&6; }
11004 fi
11005
11006
11007 fi
11008 if test -z "$ac_cv_prog_STRIP"; then
11009   ac_ct_STRIP=$STRIP
11010   # Extract the first word of "strip", so it can be a program name with args.
11011 set dummy strip; ac_word=$2
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11013 $as_echo_n "checking for $ac_word... " >&6; }
11014 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
11015   $as_echo_n "(cached) " >&6
11016 else
11017   if test -n "$ac_ct_STRIP"; then
11018   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11019 else
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11022 do
11023   IFS=$as_save_IFS
11024   test -z "$as_dir" && as_dir=.
11025     for ac_exec_ext in '' $ac_executable_extensions; do
11026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11027     ac_cv_prog_ac_ct_STRIP="strip"
11028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11029     break 2
11030   fi
11031 done
11032   done
11033 IFS=$as_save_IFS
11034
11035 fi
11036 fi
11037 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11038 if test -n "$ac_ct_STRIP"; then
11039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11040 $as_echo "$ac_ct_STRIP" >&6; }
11041 else
11042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11043 $as_echo "no" >&6; }
11044 fi
11045
11046   if test "x$ac_ct_STRIP" = x; then
11047     STRIP=":"
11048   else
11049     case $cross_compiling:$ac_tool_warned in
11050 yes:)
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11053 ac_tool_warned=yes ;;
11054 esac
11055     STRIP=$ac_ct_STRIP
11056   fi
11057 else
11058   STRIP="$ac_cv_prog_STRIP"
11059 fi
11060
11061 test -z "$STRIP" && STRIP=:
11062
11063
11064
11065
11066
11067
11068 if test -n "$ac_tool_prefix"; then
11069   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11072 $as_echo_n "checking for $ac_word... " >&6; }
11073 if ${ac_cv_prog_RANLIB+:} false; then :
11074   $as_echo_n "(cached) " >&6
11075 else
11076   if test -n "$RANLIB"; then
11077   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11078 else
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11081 do
11082   IFS=$as_save_IFS
11083   test -z "$as_dir" && as_dir=.
11084     for ac_exec_ext in '' $ac_executable_extensions; do
11085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11086     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088     break 2
11089   fi
11090 done
11091   done
11092 IFS=$as_save_IFS
11093
11094 fi
11095 fi
11096 RANLIB=$ac_cv_prog_RANLIB
11097 if test -n "$RANLIB"; then
11098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11099 $as_echo "$RANLIB" >&6; }
11100 else
11101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11102 $as_echo "no" >&6; }
11103 fi
11104
11105
11106 fi
11107 if test -z "$ac_cv_prog_RANLIB"; then
11108   ac_ct_RANLIB=$RANLIB
11109   # Extract the first word of "ranlib", so it can be a program name with args.
11110 set dummy ranlib; ac_word=$2
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11112 $as_echo_n "checking for $ac_word... " >&6; }
11113 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
11114   $as_echo_n "(cached) " >&6
11115 else
11116   if test -n "$ac_ct_RANLIB"; then
11117   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11118 else
11119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11120 for as_dir in $PATH
11121 do
11122   IFS=$as_save_IFS
11123   test -z "$as_dir" && as_dir=.
11124     for ac_exec_ext in '' $ac_executable_extensions; do
11125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11126     ac_cv_prog_ac_ct_RANLIB="ranlib"
11127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128     break 2
11129   fi
11130 done
11131   done
11132 IFS=$as_save_IFS
11133
11134 fi
11135 fi
11136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11137 if test -n "$ac_ct_RANLIB"; then
11138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11139 $as_echo "$ac_ct_RANLIB" >&6; }
11140 else
11141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11142 $as_echo "no" >&6; }
11143 fi
11144
11145   if test "x$ac_ct_RANLIB" = x; then
11146     RANLIB=":"
11147   else
11148     case $cross_compiling:$ac_tool_warned in
11149 yes:)
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11152 ac_tool_warned=yes ;;
11153 esac
11154     RANLIB=$ac_ct_RANLIB
11155   fi
11156 else
11157   RANLIB="$ac_cv_prog_RANLIB"
11158 fi
11159
11160 test -z "$RANLIB" && RANLIB=:
11161
11162
11163
11164
11165
11166
11167 # Determine commands to create old-style static archives.
11168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11169 old_postinstall_cmds='chmod 644 $oldlib'
11170 old_postuninstall_cmds=
11171
11172 if test -n "$RANLIB"; then
11173   case $host_os in
11174   openbsd*)
11175     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11176     ;;
11177   *)
11178     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11179     ;;
11180   esac
11181   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11182 fi
11183
11184 case $host_os in
11185   darwin*)
11186     lock_old_archive_extraction=yes ;;
11187   *)
11188     lock_old_archive_extraction=no ;;
11189 esac
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 # If no C compiler was specified, use CC.
11230 LTCC=${LTCC-"$CC"}
11231
11232 # If no C compiler flags were specified, use CFLAGS.
11233 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11234
11235 # Allow CC to be a program name with arguments.
11236 compiler=$CC
11237
11238
11239 # Check for command to grab the raw symbol name followed by C symbol from nm.
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11241 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11242 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11243   $as_echo_n "(cached) " >&6
11244 else
11245
11246 # These are sane defaults that work on at least a few old systems.
11247 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
11248
11249 # Character class describing NM global symbol codes.
11250 symcode='[BCDEGRST]'
11251
11252 # Regexp to match symbols that can be accessed directly from C.
11253 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11254
11255 # Define system-specific variables.
11256 case $host_os in
11257 aix*)
11258   symcode='[BCDT]'
11259   ;;
11260 cygwin* | mingw* | pw32* | cegcc*)
11261   symcode='[ABCDGISTW]'
11262   ;;
11263 hpux*)
11264   if test "$host_cpu" = ia64; then
11265     symcode='[ABCDEGRST]'
11266   fi
11267   ;;
11268 irix* | nonstopux*)
11269   symcode='[BCDEGRST]'
11270   ;;
11271 osf*)
11272   symcode='[BCDEGQRST]'
11273   ;;
11274 solaris*)
11275   symcode='[BDRT]'
11276   ;;
11277 sco3.2v5*)
11278   symcode='[DT]'
11279   ;;
11280 sysv4.2uw2*)
11281   symcode='[DT]'
11282   ;;
11283 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11284   symcode='[ABDT]'
11285   ;;
11286 sysv4)
11287   symcode='[DFNSTU]'
11288   ;;
11289 esac
11290
11291 # If we're using GNU nm, then use its standard symbol codes.
11292 case `$NM -V 2>&1` in
11293 *GNU* | *'with BFD'*)
11294   symcode='[ABCDGIRSTW]' ;;
11295 esac
11296
11297 # Transform an extracted symbol line into a proper C declaration.
11298 # Some systems (esp. on ia64) link data and code symbols differently,
11299 # so use this general approach.
11300 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11301
11302 # Transform an extracted symbol line into symbol name and symbol address
11303 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
11304 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
11305
11306 # Handle CRLF in mingw tool chain
11307 opt_cr=
11308 case $build_os in
11309 mingw*)
11310   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11311   ;;
11312 esac
11313
11314 # Try without a prefix underscore, then with it.
11315 for ac_symprfx in "" "_"; do
11316
11317   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11318   symxfrm="\\1 $ac_symprfx\\2 \\2"
11319
11320   # Write the raw and C identifiers.
11321   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11322     # Fake it for dumpbin and say T for any non-static function
11323     # and D for any global variable.
11324     # Also find C++ and __fastcall symbols from MSVC++,
11325     # which start with @ or ?.
11326     lt_cv_sys_global_symbol_pipe="$AWK '"\
11327 "     {last_section=section; section=\$ 3};"\
11328 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11329 "     \$ 0!~/External *\|/{next};"\
11330 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11331 "     {if(hide[section]) next};"\
11332 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11333 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11334 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
11335 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11336 "     ' prfx=^$ac_symprfx"
11337   else
11338     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11339   fi
11340   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11341
11342   # Check to see that the pipe works correctly.
11343   pipe_works=no
11344
11345   rm -f conftest*
11346   cat > conftest.$ac_ext <<_LT_EOF
11347 #ifdef __cplusplus
11348 extern "C" {
11349 #endif
11350 char nm_test_var;
11351 void nm_test_func(void);
11352 void nm_test_func(void){}
11353 #ifdef __cplusplus
11354 }
11355 #endif
11356 int main(){nm_test_var='a';nm_test_func();return(0);}
11357 _LT_EOF
11358
11359   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11360   (eval $ac_compile) 2>&5
11361   ac_status=$?
11362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11363   test $ac_status = 0; }; then
11364     # Now try to grab the symbols.
11365     nlist=conftest.nm
11366     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11367   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11368   ac_status=$?
11369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11370   test $ac_status = 0; } && test -s "$nlist"; then
11371       # Try sorting and uniquifying the output.
11372       if sort "$nlist" | uniq > "$nlist"T; then
11373         mv -f "$nlist"T "$nlist"
11374       else
11375         rm -f "$nlist"T
11376       fi
11377
11378       # Make sure that we snagged all the symbols we need.
11379       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11380         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11381           cat <<_LT_EOF > conftest.$ac_ext
11382 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
11383 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11384 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11385    relocations are performed -- see ld's documentation on pseudo-relocs.  */
11386 # define LT_DLSYM_CONST
11387 #elif defined(__osf__)
11388 /* This system does not cope well with relocations in const data.  */
11389 # define LT_DLSYM_CONST
11390 #else
11391 # define LT_DLSYM_CONST const
11392 #endif
11393
11394 #ifdef __cplusplus
11395 extern "C" {
11396 #endif
11397
11398 _LT_EOF
11399           # Now generate the symbol file.
11400           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11401
11402           cat <<_LT_EOF >> conftest.$ac_ext
11403
11404 /* The mapping between symbol names and symbols.  */
11405 LT_DLSYM_CONST struct {
11406   const char *name;
11407   void       *address;
11408 }
11409 lt__PROGRAM__LTX_preloaded_symbols[] =
11410 {
11411   { "@PROGRAM@", (void *) 0 },
11412 _LT_EOF
11413           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11414           cat <<\_LT_EOF >> conftest.$ac_ext
11415   {0, (void *) 0}
11416 };
11417
11418 /* This works around a problem in FreeBSD linker */
11419 #ifdef FREEBSD_WORKAROUND
11420 static const void *lt_preloaded_setup() {
11421   return lt__PROGRAM__LTX_preloaded_symbols;
11422 }
11423 #endif
11424
11425 #ifdef __cplusplus
11426 }
11427 #endif
11428 _LT_EOF
11429           # Now try linking the two files.
11430           mv conftest.$ac_objext conftstm.$ac_objext
11431           lt_globsym_save_LIBS=$LIBS
11432           lt_globsym_save_CFLAGS=$CFLAGS
11433           LIBS="conftstm.$ac_objext"
11434           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11435           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11436   (eval $ac_link) 2>&5
11437   ac_status=$?
11438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11439   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11440             pipe_works=yes
11441           fi
11442           LIBS=$lt_globsym_save_LIBS
11443           CFLAGS=$lt_globsym_save_CFLAGS
11444         else
11445           echo "cannot find nm_test_func in $nlist" >&5
11446         fi
11447       else
11448         echo "cannot find nm_test_var in $nlist" >&5
11449       fi
11450     else
11451       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11452     fi
11453   else
11454     echo "$progname: failed program was:" >&5
11455     cat conftest.$ac_ext >&5
11456   fi
11457   rm -rf conftest* conftst*
11458
11459   # Do not use the global_symbol_pipe unless it works.
11460   if test "$pipe_works" = yes; then
11461     break
11462   else
11463     lt_cv_sys_global_symbol_pipe=
11464   fi
11465 done
11466
11467 fi
11468
11469 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11470   lt_cv_sys_global_symbol_to_cdecl=
11471 fi
11472 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11474 $as_echo "failed" >&6; }
11475 else
11476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11477 $as_echo "ok" >&6; }
11478 fi
11479
11480 # Response file support.
11481 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11482   nm_file_list_spec='@'
11483 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11484   nm_file_list_spec='@'
11485 fi
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11514 $as_echo_n "checking for sysroot... " >&6; }
11515
11516 # Check whether --with-sysroot was given.
11517 if test "${with_sysroot+set}" = set; then :
11518   withval=$with_sysroot;
11519 else
11520   with_sysroot=no
11521 fi
11522
11523
11524 lt_sysroot=
11525 case ${with_sysroot} in #(
11526  yes)
11527    if test "$GCC" = yes; then
11528      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11529    fi
11530    ;; #(
11531  /*)
11532    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11533    ;; #(
11534  no|'')
11535    ;; #(
11536  *)
11537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11538 $as_echo "${with_sysroot}" >&6; }
11539    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11540    ;;
11541 esac
11542
11543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11544 $as_echo "${lt_sysroot:-no}" >&6; }
11545
11546
11547
11548
11549
11550 # Check whether --enable-libtool-lock was given.
11551 if test "${enable_libtool_lock+set}" = set; then :
11552   enableval=$enable_libtool_lock;
11553 fi
11554
11555 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11556
11557 # Some flags need to be propagated to the compiler or linker for good
11558 # libtool support.
11559 case $host in
11560 ia64-*-hpux*)
11561   # Find out which ABI we are using.
11562   echo 'int i;' > conftest.$ac_ext
11563   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11564   (eval $ac_compile) 2>&5
11565   ac_status=$?
11566   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11567   test $ac_status = 0; }; then
11568     case `/usr/bin/file conftest.$ac_objext` in
11569       *ELF-32*)
11570         HPUX_IA64_MODE="32"
11571         ;;
11572       *ELF-64*)
11573         HPUX_IA64_MODE="64"
11574         ;;
11575     esac
11576   fi
11577   rm -rf conftest*
11578   ;;
11579 *-*-irix6*)
11580   # Find out which ABI we are using.
11581   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11582   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11583   (eval $ac_compile) 2>&5
11584   ac_status=$?
11585   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11586   test $ac_status = 0; }; then
11587     if test "$lt_cv_prog_gnu_ld" = yes; then
11588       case `/usr/bin/file conftest.$ac_objext` in
11589         *32-bit*)
11590           LD="${LD-ld} -melf32bsmip"
11591           ;;
11592         *N32*)
11593           LD="${LD-ld} -melf32bmipn32"
11594           ;;
11595         *64-bit*)
11596           LD="${LD-ld} -melf64bmip"
11597         ;;
11598       esac
11599     else
11600       case `/usr/bin/file conftest.$ac_objext` in
11601         *32-bit*)
11602           LD="${LD-ld} -32"
11603           ;;
11604         *N32*)
11605           LD="${LD-ld} -n32"
11606           ;;
11607         *64-bit*)
11608           LD="${LD-ld} -64"
11609           ;;
11610       esac
11611     fi
11612   fi
11613   rm -rf conftest*
11614   ;;
11615
11616 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11617 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11618   # Find out which ABI we are using.
11619   echo 'int i;' > conftest.$ac_ext
11620   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11621   (eval $ac_compile) 2>&5
11622   ac_status=$?
11623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11624   test $ac_status = 0; }; then
11625     case `/usr/bin/file conftest.o` in
11626       *32-bit*)
11627         case $host in
11628           x86_64-*kfreebsd*-gnu)
11629             LD="${LD-ld} -m elf_i386_fbsd"
11630             ;;
11631           x86_64-*linux*)
11632             LD="${LD-ld} -m elf_i386"
11633             ;;
11634           ppc64-*linux*|powerpc64-*linux*)
11635             LD="${LD-ld} -m elf32ppclinux"
11636             ;;
11637           s390x-*linux*)
11638             LD="${LD-ld} -m elf_s390"
11639             ;;
11640           sparc64-*linux*)
11641             LD="${LD-ld} -m elf32_sparc"
11642             ;;
11643         esac
11644         ;;
11645       *64-bit*)
11646         case $host in
11647           x86_64-*kfreebsd*-gnu)
11648             LD="${LD-ld} -m elf_x86_64_fbsd"
11649             ;;
11650           x86_64-*linux*)
11651             LD="${LD-ld} -m elf_x86_64"
11652             ;;
11653           ppc*-*linux*|powerpc*-*linux*)
11654             LD="${LD-ld} -m elf64ppc"
11655             ;;
11656           s390*-*linux*|s390*-*tpf*)
11657             LD="${LD-ld} -m elf64_s390"
11658             ;;
11659           sparc*-*linux*)
11660             LD="${LD-ld} -m elf64_sparc"
11661             ;;
11662         esac
11663         ;;
11664     esac
11665   fi
11666   rm -rf conftest*
11667   ;;
11668
11669 *-*-sco3.2v5*)
11670   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11671   SAVE_CFLAGS="$CFLAGS"
11672   CFLAGS="$CFLAGS -belf"
11673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11674 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11675 if ${lt_cv_cc_needs_belf+:} false; then :
11676   $as_echo_n "(cached) " >&6
11677 else
11678   ac_ext=c
11679 ac_cpp='$CPP $CPPFLAGS'
11680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11683
11684      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11685 /* end confdefs.h.  */
11686
11687 int
11688 main ()
11689 {
11690
11691   ;
11692   return 0;
11693 }
11694 _ACEOF
11695 if ac_fn_c_try_link "$LINENO"; then :
11696   lt_cv_cc_needs_belf=yes
11697 else
11698   lt_cv_cc_needs_belf=no
11699 fi
11700 rm -f core conftest.err conftest.$ac_objext \
11701     conftest$ac_exeext conftest.$ac_ext
11702      ac_ext=c
11703 ac_cpp='$CPP $CPPFLAGS'
11704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11707
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11710 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11711   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11712     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11713     CFLAGS="$SAVE_CFLAGS"
11714   fi
11715   ;;
11716 sparc*-*solaris*)
11717   # Find out which ABI we are using.
11718   echo 'int i;' > conftest.$ac_ext
11719   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11720   (eval $ac_compile) 2>&5
11721   ac_status=$?
11722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11723   test $ac_status = 0; }; then
11724     case `/usr/bin/file conftest.o` in
11725     *64-bit*)
11726       case $lt_cv_prog_gnu_ld in
11727       yes*) LD="${LD-ld} -m elf64_sparc" ;;
11728       *)
11729         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11730           LD="${LD-ld} -64"
11731         fi
11732         ;;
11733       esac
11734       ;;
11735     esac
11736   fi
11737   rm -rf conftest*
11738   ;;
11739 esac
11740
11741 need_locks="$enable_libtool_lock"
11742
11743 if test -n "$ac_tool_prefix"; then
11744   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11745 set dummy ${ac_tool_prefix}mt; ac_word=$2
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11747 $as_echo_n "checking for $ac_word... " >&6; }
11748 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11749   $as_echo_n "(cached) " >&6
11750 else
11751   if test -n "$MANIFEST_TOOL"; then
11752   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11753 else
11754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11755 for as_dir in $PATH
11756 do
11757   IFS=$as_save_IFS
11758   test -z "$as_dir" && as_dir=.
11759     for ac_exec_ext in '' $ac_executable_extensions; do
11760   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11761     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11763     break 2
11764   fi
11765 done
11766   done
11767 IFS=$as_save_IFS
11768
11769 fi
11770 fi
11771 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11772 if test -n "$MANIFEST_TOOL"; then
11773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11774 $as_echo "$MANIFEST_TOOL" >&6; }
11775 else
11776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11777 $as_echo "no" >&6; }
11778 fi
11779
11780
11781 fi
11782 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11783   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11784   # Extract the first word of "mt", so it can be a program name with args.
11785 set dummy mt; ac_word=$2
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11787 $as_echo_n "checking for $ac_word... " >&6; }
11788 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11789   $as_echo_n "(cached) " >&6
11790 else
11791   if test -n "$ac_ct_MANIFEST_TOOL"; then
11792   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11793 else
11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11795 for as_dir in $PATH
11796 do
11797   IFS=$as_save_IFS
11798   test -z "$as_dir" && as_dir=.
11799     for ac_exec_ext in '' $ac_executable_extensions; do
11800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11801     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11803     break 2
11804   fi
11805 done
11806   done
11807 IFS=$as_save_IFS
11808
11809 fi
11810 fi
11811 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11812 if test -n "$ac_ct_MANIFEST_TOOL"; then
11813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11814 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11815 else
11816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819
11820   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11821     MANIFEST_TOOL=":"
11822   else
11823     case $cross_compiling:$ac_tool_warned in
11824 yes:)
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11827 ac_tool_warned=yes ;;
11828 esac
11829     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11830   fi
11831 else
11832   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11833 fi
11834
11835 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11837 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11838 if ${lt_cv_path_mainfest_tool+:} false; then :
11839   $as_echo_n "(cached) " >&6
11840 else
11841   lt_cv_path_mainfest_tool=no
11842   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11843   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11844   cat conftest.err >&5
11845   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11846     lt_cv_path_mainfest_tool=yes
11847   fi
11848   rm -f conftest*
11849 fi
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11851 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11852 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11853   MANIFEST_TOOL=:
11854 fi
11855
11856
11857
11858
11859
11860
11861   case $host_os in
11862     rhapsody* | darwin*)
11863     if test -n "$ac_tool_prefix"; then
11864   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11865 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11867 $as_echo_n "checking for $ac_word... " >&6; }
11868 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11869   $as_echo_n "(cached) " >&6
11870 else
11871   if test -n "$DSYMUTIL"; then
11872   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11873 else
11874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11875 for as_dir in $PATH
11876 do
11877   IFS=$as_save_IFS
11878   test -z "$as_dir" && as_dir=.
11879     for ac_exec_ext in '' $ac_executable_extensions; do
11880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11881     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11882     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11883     break 2
11884   fi
11885 done
11886   done
11887 IFS=$as_save_IFS
11888
11889 fi
11890 fi
11891 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11892 if test -n "$DSYMUTIL"; then
11893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11894 $as_echo "$DSYMUTIL" >&6; }
11895 else
11896   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897 $as_echo "no" >&6; }
11898 fi
11899
11900
11901 fi
11902 if test -z "$ac_cv_prog_DSYMUTIL"; then
11903   ac_ct_DSYMUTIL=$DSYMUTIL
11904   # Extract the first word of "dsymutil", so it can be a program name with args.
11905 set dummy dsymutil; ac_word=$2
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11907 $as_echo_n "checking for $ac_word... " >&6; }
11908 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11909   $as_echo_n "(cached) " >&6
11910 else
11911   if test -n "$ac_ct_DSYMUTIL"; then
11912   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11913 else
11914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11915 for as_dir in $PATH
11916 do
11917   IFS=$as_save_IFS
11918   test -z "$as_dir" && as_dir=.
11919     for ac_exec_ext in '' $ac_executable_extensions; do
11920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11921     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11922     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11923     break 2
11924   fi
11925 done
11926   done
11927 IFS=$as_save_IFS
11928
11929 fi
11930 fi
11931 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11932 if test -n "$ac_ct_DSYMUTIL"; then
11933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11934 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11935 else
11936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937 $as_echo "no" >&6; }
11938 fi
11939
11940   if test "x$ac_ct_DSYMUTIL" = x; then
11941     DSYMUTIL=":"
11942   else
11943     case $cross_compiling:$ac_tool_warned in
11944 yes:)
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11946 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11947 ac_tool_warned=yes ;;
11948 esac
11949     DSYMUTIL=$ac_ct_DSYMUTIL
11950   fi
11951 else
11952   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11953 fi
11954
11955     if test -n "$ac_tool_prefix"; then
11956   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11957 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11959 $as_echo_n "checking for $ac_word... " >&6; }
11960 if ${ac_cv_prog_NMEDIT+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   if test -n "$NMEDIT"; then
11964   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11965 else
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11968 do
11969   IFS=$as_save_IFS
11970   test -z "$as_dir" && as_dir=.
11971     for ac_exec_ext in '' $ac_executable_extensions; do
11972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11973     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11975     break 2
11976   fi
11977 done
11978   done
11979 IFS=$as_save_IFS
11980
11981 fi
11982 fi
11983 NMEDIT=$ac_cv_prog_NMEDIT
11984 if test -n "$NMEDIT"; then
11985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11986 $as_echo "$NMEDIT" >&6; }
11987 else
11988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11989 $as_echo "no" >&6; }
11990 fi
11991
11992
11993 fi
11994 if test -z "$ac_cv_prog_NMEDIT"; then
11995   ac_ct_NMEDIT=$NMEDIT
11996   # Extract the first word of "nmedit", so it can be a program name with args.
11997 set dummy nmedit; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11999 $as_echo_n "checking for $ac_word... " >&6; }
12000 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
12001   $as_echo_n "(cached) " >&6
12002 else
12003   if test -n "$ac_ct_NMEDIT"; then
12004   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12005 else
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12008 do
12009   IFS=$as_save_IFS
12010   test -z "$as_dir" && as_dir=.
12011     for ac_exec_ext in '' $ac_executable_extensions; do
12012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12013     ac_cv_prog_ac_ct_NMEDIT="nmedit"
12014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015     break 2
12016   fi
12017 done
12018   done
12019 IFS=$as_save_IFS
12020
12021 fi
12022 fi
12023 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12024 if test -n "$ac_ct_NMEDIT"; then
12025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12026 $as_echo "$ac_ct_NMEDIT" >&6; }
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12029 $as_echo "no" >&6; }
12030 fi
12031
12032   if test "x$ac_ct_NMEDIT" = x; then
12033     NMEDIT=":"
12034   else
12035     case $cross_compiling:$ac_tool_warned in
12036 yes:)
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12039 ac_tool_warned=yes ;;
12040 esac
12041     NMEDIT=$ac_ct_NMEDIT
12042   fi
12043 else
12044   NMEDIT="$ac_cv_prog_NMEDIT"
12045 fi
12046
12047     if test -n "$ac_tool_prefix"; then
12048   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12049 set dummy ${ac_tool_prefix}lipo; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_LIPO+:} false; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   if test -n "$LIPO"; then
12056   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12057 else
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12060 do
12061   IFS=$as_save_IFS
12062   test -z "$as_dir" && as_dir=.
12063     for ac_exec_ext in '' $ac_executable_extensions; do
12064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12065     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12067     break 2
12068   fi
12069 done
12070   done
12071 IFS=$as_save_IFS
12072
12073 fi
12074 fi
12075 LIPO=$ac_cv_prog_LIPO
12076 if test -n "$LIPO"; then
12077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12078 $as_echo "$LIPO" >&6; }
12079 else
12080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082 fi
12083
12084
12085 fi
12086 if test -z "$ac_cv_prog_LIPO"; then
12087   ac_ct_LIPO=$LIPO
12088   # Extract the first word of "lipo", so it can be a program name with args.
12089 set dummy lipo; ac_word=$2
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12091 $as_echo_n "checking for $ac_word... " >&6; }
12092 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
12093   $as_echo_n "(cached) " >&6
12094 else
12095   if test -n "$ac_ct_LIPO"; then
12096   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12097 else
12098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099 for as_dir in $PATH
12100 do
12101   IFS=$as_save_IFS
12102   test -z "$as_dir" && as_dir=.
12103     for ac_exec_ext in '' $ac_executable_extensions; do
12104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12105     ac_cv_prog_ac_ct_LIPO="lipo"
12106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12107     break 2
12108   fi
12109 done
12110   done
12111 IFS=$as_save_IFS
12112
12113 fi
12114 fi
12115 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12116 if test -n "$ac_ct_LIPO"; then
12117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12118 $as_echo "$ac_ct_LIPO" >&6; }
12119 else
12120   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12121 $as_echo "no" >&6; }
12122 fi
12123
12124   if test "x$ac_ct_LIPO" = x; then
12125     LIPO=":"
12126   else
12127     case $cross_compiling:$ac_tool_warned in
12128 yes:)
12129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12130 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12131 ac_tool_warned=yes ;;
12132 esac
12133     LIPO=$ac_ct_LIPO
12134   fi
12135 else
12136   LIPO="$ac_cv_prog_LIPO"
12137 fi
12138
12139     if test -n "$ac_tool_prefix"; then
12140   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12141 set dummy ${ac_tool_prefix}otool; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12143 $as_echo_n "checking for $ac_word... " >&6; }
12144 if ${ac_cv_prog_OTOOL+:} false; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147   if test -n "$OTOOL"; then
12148   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12149 else
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12152 do
12153   IFS=$as_save_IFS
12154   test -z "$as_dir" && as_dir=.
12155     for ac_exec_ext in '' $ac_executable_extensions; do
12156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12157     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12159     break 2
12160   fi
12161 done
12162   done
12163 IFS=$as_save_IFS
12164
12165 fi
12166 fi
12167 OTOOL=$ac_cv_prog_OTOOL
12168 if test -n "$OTOOL"; then
12169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12170 $as_echo "$OTOOL" >&6; }
12171 else
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12173 $as_echo "no" >&6; }
12174 fi
12175
12176
12177 fi
12178 if test -z "$ac_cv_prog_OTOOL"; then
12179   ac_ct_OTOOL=$OTOOL
12180   # Extract the first word of "otool", so it can be a program name with args.
12181 set dummy otool; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12185   $as_echo_n "(cached) " >&6
12186 else
12187   if test -n "$ac_ct_OTOOL"; then
12188   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193   IFS=$as_save_IFS
12194   test -z "$as_dir" && as_dir=.
12195     for ac_exec_ext in '' $ac_executable_extensions; do
12196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12197     ac_cv_prog_ac_ct_OTOOL="otool"
12198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199     break 2
12200   fi
12201 done
12202   done
12203 IFS=$as_save_IFS
12204
12205 fi
12206 fi
12207 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12208 if test -n "$ac_ct_OTOOL"; then
12209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12210 $as_echo "$ac_ct_OTOOL" >&6; }
12211 else
12212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215
12216   if test "x$ac_ct_OTOOL" = x; then
12217     OTOOL=":"
12218   else
12219     case $cross_compiling:$ac_tool_warned in
12220 yes:)
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12223 ac_tool_warned=yes ;;
12224 esac
12225     OTOOL=$ac_ct_OTOOL
12226   fi
12227 else
12228   OTOOL="$ac_cv_prog_OTOOL"
12229 fi
12230
12231     if test -n "$ac_tool_prefix"; then
12232   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12233 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12235 $as_echo_n "checking for $ac_word... " >&6; }
12236 if ${ac_cv_prog_OTOOL64+:} false; then :
12237   $as_echo_n "(cached) " >&6
12238 else
12239   if test -n "$OTOOL64"; then
12240   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12241 else
12242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12243 for as_dir in $PATH
12244 do
12245   IFS=$as_save_IFS
12246   test -z "$as_dir" && as_dir=.
12247     for ac_exec_ext in '' $ac_executable_extensions; do
12248   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12249     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12251     break 2
12252   fi
12253 done
12254   done
12255 IFS=$as_save_IFS
12256
12257 fi
12258 fi
12259 OTOOL64=$ac_cv_prog_OTOOL64
12260 if test -n "$OTOOL64"; then
12261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12262 $as_echo "$OTOOL64" >&6; }
12263 else
12264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266 fi
12267
12268
12269 fi
12270 if test -z "$ac_cv_prog_OTOOL64"; then
12271   ac_ct_OTOOL64=$OTOOL64
12272   # Extract the first word of "otool64", so it can be a program name with args.
12273 set dummy otool64; ac_word=$2
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12275 $as_echo_n "checking for $ac_word... " >&6; }
12276 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279   if test -n "$ac_ct_OTOOL64"; then
12280   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12281 else
12282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12283 for as_dir in $PATH
12284 do
12285   IFS=$as_save_IFS
12286   test -z "$as_dir" && as_dir=.
12287     for ac_exec_ext in '' $ac_executable_extensions; do
12288   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12289     ac_cv_prog_ac_ct_OTOOL64="otool64"
12290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12291     break 2
12292   fi
12293 done
12294   done
12295 IFS=$as_save_IFS
12296
12297 fi
12298 fi
12299 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12300 if test -n "$ac_ct_OTOOL64"; then
12301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12302 $as_echo "$ac_ct_OTOOL64" >&6; }
12303 else
12304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305 $as_echo "no" >&6; }
12306 fi
12307
12308   if test "x$ac_ct_OTOOL64" = x; then
12309     OTOOL64=":"
12310   else
12311     case $cross_compiling:$ac_tool_warned in
12312 yes:)
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12315 ac_tool_warned=yes ;;
12316 esac
12317     OTOOL64=$ac_ct_OTOOL64
12318   fi
12319 else
12320   OTOOL64="$ac_cv_prog_OTOOL64"
12321 fi
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12350 $as_echo_n "checking for -single_module linker flag... " >&6; }
12351 if ${lt_cv_apple_cc_single_mod+:} false; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   lt_cv_apple_cc_single_mod=no
12355       if test -z "${LT_MULTI_MODULE}"; then
12356         # By default we will add the -single_module flag. You can override
12357         # by either setting the environment variable LT_MULTI_MODULE
12358         # non-empty at configure time, or by adding -multi_module to the
12359         # link flags.
12360         rm -rf libconftest.dylib*
12361         echo "int foo(void){return 1;}" > conftest.c
12362         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12363 -dynamiclib -Wl,-single_module conftest.c" >&5
12364         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12365           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12366         _lt_result=$?
12367         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12368           lt_cv_apple_cc_single_mod=yes
12369         else
12370           cat conftest.err >&5
12371         fi
12372         rm -rf libconftest.dylib*
12373         rm -f conftest.*
12374       fi
12375 fi
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12377 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12379 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12380 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   lt_cv_ld_exported_symbols_list=no
12384       save_LDFLAGS=$LDFLAGS
12385       echo "_main" > conftest.sym
12386       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12387       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h.  */
12389
12390 int
12391 main ()
12392 {
12393
12394   ;
12395   return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399   lt_cv_ld_exported_symbols_list=yes
12400 else
12401   lt_cv_ld_exported_symbols_list=no
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext \
12404     conftest$ac_exeext conftest.$ac_ext
12405         LDFLAGS="$save_LDFLAGS"
12406
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12409 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12411 $as_echo_n "checking for -force_load linker flag... " >&6; }
12412 if ${lt_cv_ld_force_load+:} false; then :
12413   $as_echo_n "(cached) " >&6
12414 else
12415   lt_cv_ld_force_load=no
12416       cat > conftest.c << _LT_EOF
12417 int forced_loaded() { return 2;}
12418 _LT_EOF
12419       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12420       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12421       echo "$AR cru libconftest.a conftest.o" >&5
12422       $AR cru libconftest.a conftest.o 2>&5
12423       echo "$RANLIB libconftest.a" >&5
12424       $RANLIB libconftest.a 2>&5
12425       cat > conftest.c << _LT_EOF
12426 int main() { return 0;}
12427 _LT_EOF
12428       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12429       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12430       _lt_result=$?
12431       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12432         lt_cv_ld_force_load=yes
12433       else
12434         cat conftest.err >&5
12435       fi
12436         rm -f conftest.err libconftest.a conftest conftest.c
12437         rm -rf conftest.dSYM
12438
12439 fi
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12441 $as_echo "$lt_cv_ld_force_load" >&6; }
12442     case $host_os in
12443     rhapsody* | darwin1.[012])
12444       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12445     darwin1.*)
12446       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12447     darwin*) # darwin 5.x on
12448       # if running on 10.5 or later, the deployment target defaults
12449       # to the OS version, if on x86, and 10.4, the deployment
12450       # target defaults to 10.4. Don't you love it?
12451       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12452         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12453           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12454         10.[012]*)
12455           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12456         10.*)
12457           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12458       esac
12459     ;;
12460   esac
12461     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12462       _lt_dar_single_mod='$single_module'
12463     fi
12464     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12465       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12466     else
12467       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12468     fi
12469     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12470       _lt_dsymutil='~$DSYMUTIL $lib || :'
12471     else
12472       _lt_dsymutil=
12473     fi
12474     ;;
12475   esac
12476
12477 for ac_header in dlfcn.h
12478 do :
12479   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12480 "
12481 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12482   cat >>confdefs.h <<_ACEOF
12483 #define HAVE_DLFCN_H 1
12484 _ACEOF
12485
12486 fi
12487
12488 done
12489
12490
12491
12492
12493 func_stripname_cnf ()
12494 {
12495   case ${2} in
12496   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12497   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12498   esac
12499 } # func_stripname_cnf
12500
12501
12502
12503
12504
12505 # Set options
12506 enable_win32_dll=yes
12507
12508 case $host in
12509 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12510   if test -n "$ac_tool_prefix"; then
12511   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12512 set dummy ${ac_tool_prefix}as; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12514 $as_echo_n "checking for $ac_word... " >&6; }
12515 if ${ac_cv_prog_AS+:} false; then :
12516   $as_echo_n "(cached) " >&6
12517 else
12518   if test -n "$AS"; then
12519   ac_cv_prog_AS="$AS" # Let the user override the test.
12520 else
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12523 do
12524   IFS=$as_save_IFS
12525   test -z "$as_dir" && as_dir=.
12526     for ac_exec_ext in '' $ac_executable_extensions; do
12527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12528     ac_cv_prog_AS="${ac_tool_prefix}as"
12529     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12530     break 2
12531   fi
12532 done
12533   done
12534 IFS=$as_save_IFS
12535
12536 fi
12537 fi
12538 AS=$ac_cv_prog_AS
12539 if test -n "$AS"; then
12540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12541 $as_echo "$AS" >&6; }
12542 else
12543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12544 $as_echo "no" >&6; }
12545 fi
12546
12547
12548 fi
12549 if test -z "$ac_cv_prog_AS"; then
12550   ac_ct_AS=$AS
12551   # Extract the first word of "as", so it can be a program name with args.
12552 set dummy as; ac_word=$2
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12554 $as_echo_n "checking for $ac_word... " >&6; }
12555 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12556   $as_echo_n "(cached) " >&6
12557 else
12558   if test -n "$ac_ct_AS"; then
12559   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12560 else
12561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12562 for as_dir in $PATH
12563 do
12564   IFS=$as_save_IFS
12565   test -z "$as_dir" && as_dir=.
12566     for ac_exec_ext in '' $ac_executable_extensions; do
12567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12568     ac_cv_prog_ac_ct_AS="as"
12569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12570     break 2
12571   fi
12572 done
12573   done
12574 IFS=$as_save_IFS
12575
12576 fi
12577 fi
12578 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12579 if test -n "$ac_ct_AS"; then
12580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12581 $as_echo "$ac_ct_AS" >&6; }
12582 else
12583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12584 $as_echo "no" >&6; }
12585 fi
12586
12587   if test "x$ac_ct_AS" = x; then
12588     AS="false"
12589   else
12590     case $cross_compiling:$ac_tool_warned in
12591 yes:)
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12594 ac_tool_warned=yes ;;
12595 esac
12596     AS=$ac_ct_AS
12597   fi
12598 else
12599   AS="$ac_cv_prog_AS"
12600 fi
12601
12602   if test -n "$ac_tool_prefix"; then
12603   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12604 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12606 $as_echo_n "checking for $ac_word... " >&6; }
12607 if ${ac_cv_prog_DLLTOOL+:} false; then :
12608   $as_echo_n "(cached) " >&6
12609 else
12610   if test -n "$DLLTOOL"; then
12611   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12612 else
12613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12614 for as_dir in $PATH
12615 do
12616   IFS=$as_save_IFS
12617   test -z "$as_dir" && as_dir=.
12618     for ac_exec_ext in '' $ac_executable_extensions; do
12619   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12620     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12621     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12622     break 2
12623   fi
12624 done
12625   done
12626 IFS=$as_save_IFS
12627
12628 fi
12629 fi
12630 DLLTOOL=$ac_cv_prog_DLLTOOL
12631 if test -n "$DLLTOOL"; then
12632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12633 $as_echo "$DLLTOOL" >&6; }
12634 else
12635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12636 $as_echo "no" >&6; }
12637 fi
12638
12639
12640 fi
12641 if test -z "$ac_cv_prog_DLLTOOL"; then
12642   ac_ct_DLLTOOL=$DLLTOOL
12643   # Extract the first word of "dlltool", so it can be a program name with args.
12644 set dummy dlltool; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12648   $as_echo_n "(cached) " >&6
12649 else
12650   if test -n "$ac_ct_DLLTOOL"; then
12651   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656   IFS=$as_save_IFS
12657   test -z "$as_dir" && as_dir=.
12658     for ac_exec_ext in '' $ac_executable_extensions; do
12659   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12660     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12661     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662     break 2
12663   fi
12664 done
12665   done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12671 if test -n "$ac_ct_DLLTOOL"; then
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12673 $as_echo "$ac_ct_DLLTOOL" >&6; }
12674 else
12675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679   if test "x$ac_ct_DLLTOOL" = x; then
12680     DLLTOOL="false"
12681   else
12682     case $cross_compiling:$ac_tool_warned in
12683 yes:)
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686 ac_tool_warned=yes ;;
12687 esac
12688     DLLTOOL=$ac_ct_DLLTOOL
12689   fi
12690 else
12691   DLLTOOL="$ac_cv_prog_DLLTOOL"
12692 fi
12693
12694   if test -n "$ac_tool_prefix"; then
12695   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12696 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12698 $as_echo_n "checking for $ac_word... " >&6; }
12699 if ${ac_cv_prog_OBJDUMP+:} false; then :
12700   $as_echo_n "(cached) " >&6
12701 else
12702   if test -n "$OBJDUMP"; then
12703   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12704 else
12705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12706 for as_dir in $PATH
12707 do
12708   IFS=$as_save_IFS
12709   test -z "$as_dir" && as_dir=.
12710     for ac_exec_ext in '' $ac_executable_extensions; do
12711   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12712     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12713     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12714     break 2
12715   fi
12716 done
12717   done
12718 IFS=$as_save_IFS
12719
12720 fi
12721 fi
12722 OBJDUMP=$ac_cv_prog_OBJDUMP
12723 if test -n "$OBJDUMP"; then
12724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12725 $as_echo "$OBJDUMP" >&6; }
12726 else
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12728 $as_echo "no" >&6; }
12729 fi
12730
12731
12732 fi
12733 if test -z "$ac_cv_prog_OBJDUMP"; then
12734   ac_ct_OBJDUMP=$OBJDUMP
12735   # Extract the first word of "objdump", so it can be a program name with args.
12736 set dummy objdump; ac_word=$2
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12738 $as_echo_n "checking for $ac_word... " >&6; }
12739 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12740   $as_echo_n "(cached) " >&6
12741 else
12742   if test -n "$ac_ct_OBJDUMP"; then
12743   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12744 else
12745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12746 for as_dir in $PATH
12747 do
12748   IFS=$as_save_IFS
12749   test -z "$as_dir" && as_dir=.
12750     for ac_exec_ext in '' $ac_executable_extensions; do
12751   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12752     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12753     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12754     break 2
12755   fi
12756 done
12757   done
12758 IFS=$as_save_IFS
12759
12760 fi
12761 fi
12762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12763 if test -n "$ac_ct_OBJDUMP"; then
12764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12765 $as_echo "$ac_ct_OBJDUMP" >&6; }
12766 else
12767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12769 fi
12770
12771   if test "x$ac_ct_OBJDUMP" = x; then
12772     OBJDUMP="false"
12773   else
12774     case $cross_compiling:$ac_tool_warned in
12775 yes:)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12777 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12778 ac_tool_warned=yes ;;
12779 esac
12780     OBJDUMP=$ac_ct_OBJDUMP
12781   fi
12782 else
12783   OBJDUMP="$ac_cv_prog_OBJDUMP"
12784 fi
12785
12786   ;;
12787 esac
12788
12789 test -z "$AS" && AS=as
12790
12791
12792
12793
12794
12795 test -z "$DLLTOOL" && DLLTOOL=dlltool
12796
12797
12798
12799
12800
12801 test -z "$OBJDUMP" && OBJDUMP=objdump
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811             # Check whether --enable-shared was given.
12812 if test "${enable_shared+set}" = set; then :
12813   enableval=$enable_shared; p=${PACKAGE-default}
12814     case $enableval in
12815     yes) enable_shared=yes ;;
12816     no) enable_shared=no ;;
12817     *)
12818       enable_shared=no
12819       # Look at the argument we got.  We use all the common list separators.
12820       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12821       for pkg in $enableval; do
12822         IFS="$lt_save_ifs"
12823         if test "X$pkg" = "X$p"; then
12824           enable_shared=yes
12825         fi
12826       done
12827       IFS="$lt_save_ifs"
12828       ;;
12829     esac
12830 else
12831   enable_shared=yes
12832 fi
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842   # Check whether --enable-static was given.
12843 if test "${enable_static+set}" = set; then :
12844   enableval=$enable_static; p=${PACKAGE-default}
12845     case $enableval in
12846     yes) enable_static=yes ;;
12847     no) enable_static=no ;;
12848     *)
12849      enable_static=no
12850       # Look at the argument we got.  We use all the common list separators.
12851       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12852       for pkg in $enableval; do
12853         IFS="$lt_save_ifs"
12854         if test "X$pkg" = "X$p"; then
12855           enable_static=yes
12856         fi
12857       done
12858       IFS="$lt_save_ifs"
12859       ;;
12860     esac
12861 else
12862   enable_static=yes
12863 fi
12864
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874 # Check whether --with-pic was given.
12875 if test "${with_pic+set}" = set; then :
12876   withval=$with_pic; pic_mode="$withval"
12877 else
12878   pic_mode=default
12879 fi
12880
12881
12882 test -z "$pic_mode" && pic_mode=default
12883
12884
12885
12886
12887
12888
12889
12890   # Check whether --enable-fast-install was given.
12891 if test "${enable_fast_install+set}" = set; then :
12892   enableval=$enable_fast_install; p=${PACKAGE-default}
12893     case $enableval in
12894     yes) enable_fast_install=yes ;;
12895     no) enable_fast_install=no ;;
12896     *)
12897       enable_fast_install=no
12898       # Look at the argument we got.  We use all the common list separators.
12899       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12900       for pkg in $enableval; do
12901         IFS="$lt_save_ifs"
12902         if test "X$pkg" = "X$p"; then
12903           enable_fast_install=yes
12904         fi
12905       done
12906       IFS="$lt_save_ifs"
12907       ;;
12908     esac
12909 else
12910   enable_fast_install=yes
12911 fi
12912
12913
12914
12915
12916
12917
12918
12919
12920
12921
12922
12923 # This can be used to rebuild libtool when needed
12924 LIBTOOL_DEPS="$ltmain"
12925
12926 # Always use our own libtool.
12927 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954 test -z "$LN_S" && LN_S="ln -s"
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969 if test -n "${ZSH_VERSION+set}" ; then
12970    setopt NO_GLOB_SUBST
12971 fi
12972
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12974 $as_echo_n "checking for objdir... " >&6; }
12975 if ${lt_cv_objdir+:} false; then :
12976   $as_echo_n "(cached) " >&6
12977 else
12978   rm -f .libs 2>/dev/null
12979 mkdir .libs 2>/dev/null
12980 if test -d .libs; then
12981   lt_cv_objdir=.libs
12982 else
12983   # MS-DOS does not allow filenames that begin with a dot.
12984   lt_cv_objdir=_libs
12985 fi
12986 rmdir .libs 2>/dev/null
12987 fi
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12989 $as_echo "$lt_cv_objdir" >&6; }
12990 objdir=$lt_cv_objdir
12991
12992
12993
12994
12995
12996 cat >>confdefs.h <<_ACEOF
12997 #define LT_OBJDIR "$lt_cv_objdir/"
12998 _ACEOF
12999
13000
13001
13002
13003 case $host_os in
13004 aix3*)
13005   # AIX sometimes has problems with the GCC collect2 program.  For some
13006   # reason, if we set the COLLECT_NAMES environment variable, the problems
13007   # vanish in a puff of smoke.
13008   if test "X${COLLECT_NAMES+set}" != Xset; then
13009     COLLECT_NAMES=
13010     export COLLECT_NAMES
13011   fi
13012   ;;
13013 esac
13014
13015 # Global variables:
13016 ofile=libtool
13017 can_build_shared=yes
13018
13019 # All known linkers require a `.a' archive for static linking (except MSVC,
13020 # which needs '.lib').
13021 libext=a
13022
13023 with_gnu_ld="$lt_cv_prog_gnu_ld"
13024
13025 old_CC="$CC"
13026 old_CFLAGS="$CFLAGS"
13027
13028 # Set sane defaults for various variables
13029 test -z "$CC" && CC=cc
13030 test -z "$LTCC" && LTCC=$CC
13031 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13032 test -z "$LD" && LD=ld
13033 test -z "$ac_objext" && ac_objext=o
13034
13035 for cc_temp in $compiler""; do
13036   case $cc_temp in
13037     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13038     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13039     \-*) ;;
13040     *) break;;
13041   esac
13042 done
13043 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13044
13045
13046 # Only perform the check for file, if the check method requires it
13047 test -z "$MAGIC_CMD" && MAGIC_CMD=file
13048 case $deplibs_check_method in
13049 file_magic*)
13050   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13051     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13052 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
13053 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13054   $as_echo_n "(cached) " >&6
13055 else
13056   case $MAGIC_CMD in
13057 [\\/*] |  ?:[\\/]*)
13058   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13059   ;;
13060 *)
13061   lt_save_MAGIC_CMD="$MAGIC_CMD"
13062   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13063   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13064   for ac_dir in $ac_dummy; do
13065     IFS="$lt_save_ifs"
13066     test -z "$ac_dir" && ac_dir=.
13067     if test -f $ac_dir/${ac_tool_prefix}file; then
13068       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13069       if test -n "$file_magic_test_file"; then
13070         case $deplibs_check_method in
13071         "file_magic "*)
13072           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13073           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13074           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13075             $EGREP "$file_magic_regex" > /dev/null; then
13076             :
13077           else
13078             cat <<_LT_EOF 1>&2
13079
13080 *** Warning: the command libtool uses to detect shared libraries,
13081 *** $file_magic_cmd, produces output that libtool cannot recognize.
13082 *** The result is that libtool may fail to recognize shared libraries
13083 *** as such.  This will affect the creation of libtool libraries that
13084 *** depend on shared libraries, but programs linked with such libtool
13085 *** libraries will work regardless of this problem.  Nevertheless, you
13086 *** may want to report the problem to your system manager and/or to
13087 *** bug-libtool@gnu.org
13088
13089 _LT_EOF
13090           fi ;;
13091         esac
13092       fi
13093       break
13094     fi
13095   done
13096   IFS="$lt_save_ifs"
13097   MAGIC_CMD="$lt_save_MAGIC_CMD"
13098   ;;
13099 esac
13100 fi
13101
13102 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13103 if test -n "$MAGIC_CMD"; then
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13105 $as_echo "$MAGIC_CMD" >&6; }
13106 else
13107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13108 $as_echo "no" >&6; }
13109 fi
13110
13111
13112
13113
13114
13115 if test -z "$lt_cv_path_MAGIC_CMD"; then
13116   if test -n "$ac_tool_prefix"; then
13117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13118 $as_echo_n "checking for file... " >&6; }
13119 if ${lt_cv_path_MAGIC_CMD+:} false; then :
13120   $as_echo_n "(cached) " >&6
13121 else
13122   case $MAGIC_CMD in
13123 [\\/*] |  ?:[\\/]*)
13124   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13125   ;;
13126 *)
13127   lt_save_MAGIC_CMD="$MAGIC_CMD"
13128   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13129   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13130   for ac_dir in $ac_dummy; do
13131     IFS="$lt_save_ifs"
13132     test -z "$ac_dir" && ac_dir=.
13133     if test -f $ac_dir/file; then
13134       lt_cv_path_MAGIC_CMD="$ac_dir/file"
13135       if test -n "$file_magic_test_file"; then
13136         case $deplibs_check_method in
13137         "file_magic "*)
13138           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13139           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13140           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13141             $EGREP "$file_magic_regex" > /dev/null; then
13142             :
13143           else
13144             cat <<_LT_EOF 1>&2
13145
13146 *** Warning: the command libtool uses to detect shared libraries,
13147 *** $file_magic_cmd, produces output that libtool cannot recognize.
13148 *** The result is that libtool may fail to recognize shared libraries
13149 *** as such.  This will affect the creation of libtool libraries that
13150 *** depend on shared libraries, but programs linked with such libtool
13151 *** libraries will work regardless of this problem.  Nevertheless, you
13152 *** may want to report the problem to your system manager and/or to
13153 *** bug-libtool@gnu.org
13154
13155 _LT_EOF
13156           fi ;;
13157         esac
13158       fi
13159       break
13160     fi
13161   done
13162   IFS="$lt_save_ifs"
13163   MAGIC_CMD="$lt_save_MAGIC_CMD"
13164   ;;
13165 esac
13166 fi
13167
13168 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13169 if test -n "$MAGIC_CMD"; then
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13171 $as_echo "$MAGIC_CMD" >&6; }
13172 else
13173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13174 $as_echo "no" >&6; }
13175 fi
13176
13177
13178   else
13179     MAGIC_CMD=:
13180   fi
13181 fi
13182
13183   fi
13184   ;;
13185 esac
13186
13187 # Use C for the default configuration in the libtool script
13188
13189 lt_save_CC="$CC"
13190 ac_ext=c
13191 ac_cpp='$CPP $CPPFLAGS'
13192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13195
13196
13197 # Source file extension for C test sources.
13198 ac_ext=c
13199
13200 # Object file extension for compiled C test sources.
13201 objext=o
13202 objext=$objext
13203
13204 # Code to be used in simple compile tests
13205 lt_simple_compile_test_code="int some_variable = 0;"
13206
13207 # Code to be used in simple link tests
13208 lt_simple_link_test_code='int main(){return(0);}'
13209
13210
13211
13212
13213
13214
13215
13216 # If no C compiler was specified, use CC.
13217 LTCC=${LTCC-"$CC"}
13218
13219 # If no C compiler flags were specified, use CFLAGS.
13220 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13221
13222 # Allow CC to be a program name with arguments.
13223 compiler=$CC
13224
13225 # Save the default compiler, since it gets overwritten when the other
13226 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13227 compiler_DEFAULT=$CC
13228
13229 # save warnings/boilerplate of simple test code
13230 ac_outfile=conftest.$ac_objext
13231 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13232 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13233 _lt_compiler_boilerplate=`cat conftest.err`
13234 $RM conftest*
13235
13236 ac_outfile=conftest.$ac_objext
13237 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13238 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13239 _lt_linker_boilerplate=`cat conftest.err`
13240 $RM -r conftest*
13241
13242
13243 ## CAVEAT EMPTOR:
13244 ## There is no encapsulation within the following macros, do not change
13245 ## the running order or otherwise move them around unless you know exactly
13246 ## what you are doing...
13247 if test -n "$compiler"; then
13248
13249 lt_prog_compiler_no_builtin_flag=
13250
13251 if test "$GCC" = yes; then
13252   case $cc_basename in
13253   nvcc*)
13254     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13255   *)
13256     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13257   esac
13258
13259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13260 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13261 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13262   $as_echo_n "(cached) " >&6
13263 else
13264   lt_cv_prog_compiler_rtti_exceptions=no
13265    ac_outfile=conftest.$ac_objext
13266    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13267    lt_compiler_flag="-fno-rtti -fno-exceptions"
13268    # Insert the option either (1) after the last *FLAGS variable, or
13269    # (2) before a word containing "conftest.", or (3) at the end.
13270    # Note that $ac_compile itself does not contain backslashes and begins
13271    # with a dollar sign (not a hyphen), so the echo should work correctly.
13272    # The option is referenced via a variable to avoid confusing sed.
13273    lt_compile=`echo "$ac_compile" | $SED \
13274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13276    -e 's:$: $lt_compiler_flag:'`
13277    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13278    (eval "$lt_compile" 2>conftest.err)
13279    ac_status=$?
13280    cat conftest.err >&5
13281    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282    if (exit $ac_status) && test -s "$ac_outfile"; then
13283      # The compiler can only warn and ignore the option if not recognized
13284      # So say no if there are warnings other than the usual output.
13285      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13286      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13287      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13288        lt_cv_prog_compiler_rtti_exceptions=yes
13289      fi
13290    fi
13291    $RM conftest*
13292
13293 fi
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13295 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13296
13297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13298     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13299 else
13300     :
13301 fi
13302
13303 fi
13304
13305
13306
13307
13308
13309
13310   lt_prog_compiler_wl=
13311 lt_prog_compiler_pic=
13312 lt_prog_compiler_static=
13313
13314
13315   if test "$GCC" = yes; then
13316     lt_prog_compiler_wl='-Wl,'
13317     lt_prog_compiler_static='-static'
13318
13319     case $host_os in
13320       aix*)
13321       # All AIX code is PIC.
13322       if test "$host_cpu" = ia64; then
13323         # AIX 5 now supports IA64 processor
13324         lt_prog_compiler_static='-Bstatic'
13325       fi
13326       ;;
13327
13328     amigaos*)
13329       case $host_cpu in
13330       powerpc)
13331             # see comment about AmigaOS4 .so support
13332             lt_prog_compiler_pic='-fPIC'
13333         ;;
13334       m68k)
13335             # FIXME: we need at least 68020 code to build shared libraries, but
13336             # adding the `-m68020' flag to GCC prevents building anything better,
13337             # like `-m68040'.
13338             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13339         ;;
13340       esac
13341       ;;
13342
13343     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13344       # PIC is the default for these OSes.
13345       ;;
13346
13347     mingw* | cygwin* | pw32* | os2* | cegcc*)
13348       # This hack is so that the source file can tell whether it is being
13349       # built for inclusion in a dll (and should export symbols for example).
13350       # Although the cygwin gcc ignores -fPIC, still need this for old-style
13351       # (--disable-auto-import) libraries
13352       lt_prog_compiler_pic='-DDLL_EXPORT'
13353       ;;
13354
13355     darwin* | rhapsody*)
13356       # PIC is the default on this platform
13357       # Common symbols not allowed in MH_DYLIB files
13358       lt_prog_compiler_pic='-fno-common'
13359       ;;
13360
13361     haiku*)
13362       # PIC is the default for Haiku.
13363       # The "-static" flag exists, but is broken.
13364       lt_prog_compiler_static=
13365       ;;
13366
13367     hpux*)
13368       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13369       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13370       # sets the default TLS model and affects inlining.
13371       case $host_cpu in
13372       hppa*64*)
13373         # +Z the default
13374         ;;
13375       *)
13376         lt_prog_compiler_pic='-fPIC'
13377         ;;
13378       esac
13379       ;;
13380
13381     interix[3-9]*)
13382       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13383       # Instead, we relocate shared libraries at runtime.
13384       ;;
13385
13386     msdosdjgpp*)
13387       # Just because we use GCC doesn't mean we suddenly get shared libraries
13388       # on systems that don't support them.
13389       lt_prog_compiler_can_build_shared=no
13390       enable_shared=no
13391       ;;
13392
13393     *nto* | *qnx*)
13394       # QNX uses GNU C++, but need to define -shared option too, otherwise
13395       # it will coredump.
13396       lt_prog_compiler_pic='-fPIC -shared'
13397       ;;
13398
13399     sysv4*MP*)
13400       if test -d /usr/nec; then
13401         lt_prog_compiler_pic=-Kconform_pic
13402       fi
13403       ;;
13404
13405     *)
13406       lt_prog_compiler_pic='-fPIC'
13407       ;;
13408     esac
13409
13410     case $cc_basename in
13411     nvcc*) # Cuda Compiler Driver 2.2
13412       lt_prog_compiler_wl='-Xlinker '
13413       lt_prog_compiler_pic='-Xcompiler -fPIC'
13414       ;;
13415     esac
13416   else
13417     # PORTME Check for flag to pass linker flags through the system compiler.
13418     case $host_os in
13419     aix*)
13420       lt_prog_compiler_wl='-Wl,'
13421       if test "$host_cpu" = ia64; then
13422         # AIX 5 now supports IA64 processor
13423         lt_prog_compiler_static='-Bstatic'
13424       else
13425         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13426       fi
13427       ;;
13428
13429     mingw* | cygwin* | pw32* | os2* | cegcc*)
13430       # This hack is so that the source file can tell whether it is being
13431       # built for inclusion in a dll (and should export symbols for example).
13432       lt_prog_compiler_pic='-DDLL_EXPORT'
13433       ;;
13434
13435     hpux9* | hpux10* | hpux11*)
13436       lt_prog_compiler_wl='-Wl,'
13437       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13438       # not for PA HP-UX.
13439       case $host_cpu in
13440       hppa*64*|ia64*)
13441         # +Z the default
13442         ;;
13443       *)
13444         lt_prog_compiler_pic='+Z'
13445         ;;
13446       esac
13447       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13448       lt_prog_compiler_static='${wl}-a ${wl}archive'
13449       ;;
13450
13451     irix5* | irix6* | nonstopux*)
13452       lt_prog_compiler_wl='-Wl,'
13453       # PIC (with -KPIC) is the default.
13454       lt_prog_compiler_static='-non_shared'
13455       ;;
13456
13457     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13458       case $cc_basename in
13459       # old Intel for x86_64 which still supported -KPIC.
13460       ecc*)
13461         lt_prog_compiler_wl='-Wl,'
13462         lt_prog_compiler_pic='-KPIC'
13463         lt_prog_compiler_static='-static'
13464         ;;
13465       # icc used to be incompatible with GCC.
13466       # ICC 10 doesn't accept -KPIC any more.
13467       icc* | ifort*)
13468         lt_prog_compiler_wl='-Wl,'
13469         lt_prog_compiler_pic='-fPIC'
13470         lt_prog_compiler_static='-static'
13471         ;;
13472       # Lahey Fortran 8.1.
13473       lf95*)
13474         lt_prog_compiler_wl='-Wl,'
13475         lt_prog_compiler_pic='--shared'
13476         lt_prog_compiler_static='--static'
13477         ;;
13478       nagfor*)
13479         # NAG Fortran compiler
13480         lt_prog_compiler_wl='-Wl,-Wl,,'
13481         lt_prog_compiler_pic='-PIC'
13482         lt_prog_compiler_static='-Bstatic'
13483         ;;
13484       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13485         # Portland Group compilers (*not* the Pentium gcc compiler,
13486         # which looks to be a dead project)
13487         lt_prog_compiler_wl='-Wl,'
13488         lt_prog_compiler_pic='-fpic'
13489         lt_prog_compiler_static='-Bstatic'
13490         ;;
13491       ccc*)
13492         lt_prog_compiler_wl='-Wl,'
13493         # All Alpha code is PIC.
13494         lt_prog_compiler_static='-non_shared'
13495         ;;
13496       xl* | bgxl* | bgf* | mpixl*)
13497         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13498         lt_prog_compiler_wl='-Wl,'
13499         lt_prog_compiler_pic='-qpic'
13500         lt_prog_compiler_static='-qstaticlink'
13501         ;;
13502       *)
13503         case `$CC -V 2>&1 | sed 5q` in
13504         *Sun\ F* | *Sun*Fortran*)
13505           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13506           lt_prog_compiler_pic='-KPIC'
13507           lt_prog_compiler_static='-Bstatic'
13508           lt_prog_compiler_wl=''
13509           ;;
13510         *Sun\ C*)
13511           # Sun C 5.9
13512           lt_prog_compiler_pic='-KPIC'
13513           lt_prog_compiler_static='-Bstatic'
13514           lt_prog_compiler_wl='-Wl,'
13515           ;;
13516         esac
13517         ;;
13518       esac
13519       ;;
13520
13521     newsos6)
13522       lt_prog_compiler_pic='-KPIC'
13523       lt_prog_compiler_static='-Bstatic'
13524       ;;
13525
13526     *nto* | *qnx*)
13527       # QNX uses GNU C++, but need to define -shared option too, otherwise
13528       # it will coredump.
13529       lt_prog_compiler_pic='-fPIC -shared'
13530       ;;
13531
13532     osf3* | osf4* | osf5*)
13533       lt_prog_compiler_wl='-Wl,'
13534       # All OSF/1 code is PIC.
13535       lt_prog_compiler_static='-non_shared'
13536       ;;
13537
13538     rdos*)
13539       lt_prog_compiler_static='-non_shared'
13540       ;;
13541
13542     solaris*)
13543       lt_prog_compiler_pic='-KPIC'
13544       lt_prog_compiler_static='-Bstatic'
13545       case $cc_basename in
13546       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13547         lt_prog_compiler_wl='-Qoption ld ';;
13548       *)
13549         lt_prog_compiler_wl='-Wl,';;
13550       esac
13551       ;;
13552
13553     sunos4*)
13554       lt_prog_compiler_wl='-Qoption ld '
13555       lt_prog_compiler_pic='-PIC'
13556       lt_prog_compiler_static='-Bstatic'
13557       ;;
13558
13559     sysv4 | sysv4.2uw2* | sysv4.3*)
13560       lt_prog_compiler_wl='-Wl,'
13561       lt_prog_compiler_pic='-KPIC'
13562       lt_prog_compiler_static='-Bstatic'
13563       ;;
13564
13565     sysv4*MP*)
13566       if test -d /usr/nec ;then
13567         lt_prog_compiler_pic='-Kconform_pic'
13568         lt_prog_compiler_static='-Bstatic'
13569       fi
13570       ;;
13571
13572     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13573       lt_prog_compiler_wl='-Wl,'
13574       lt_prog_compiler_pic='-KPIC'
13575       lt_prog_compiler_static='-Bstatic'
13576       ;;
13577
13578     unicos*)
13579       lt_prog_compiler_wl='-Wl,'
13580       lt_prog_compiler_can_build_shared=no
13581       ;;
13582
13583     uts4*)
13584       lt_prog_compiler_pic='-pic'
13585       lt_prog_compiler_static='-Bstatic'
13586       ;;
13587
13588     *)
13589       lt_prog_compiler_can_build_shared=no
13590       ;;
13591     esac
13592   fi
13593
13594 case $host_os in
13595   # For platforms which do not support PIC, -DPIC is meaningless:
13596   *djgpp*)
13597     lt_prog_compiler_pic=
13598     ;;
13599   *)
13600     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13601     ;;
13602 esac
13603
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13606 if ${lt_cv_prog_compiler_pic+:} false; then :
13607   $as_echo_n "(cached) " >&6
13608 else
13609   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13610 fi
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13612 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13613 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13614
13615 #
13616 # Check to make sure the PIC flag actually works.
13617 #
13618 if test -n "$lt_prog_compiler_pic"; then
13619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13620 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13621 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13622   $as_echo_n "(cached) " >&6
13623 else
13624   lt_cv_prog_compiler_pic_works=no
13625    ac_outfile=conftest.$ac_objext
13626    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13627    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13628    # Insert the option either (1) after the last *FLAGS variable, or
13629    # (2) before a word containing "conftest.", or (3) at the end.
13630    # Note that $ac_compile itself does not contain backslashes and begins
13631    # with a dollar sign (not a hyphen), so the echo should work correctly.
13632    # The option is referenced via a variable to avoid confusing sed.
13633    lt_compile=`echo "$ac_compile" | $SED \
13634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13636    -e 's:$: $lt_compiler_flag:'`
13637    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13638    (eval "$lt_compile" 2>conftest.err)
13639    ac_status=$?
13640    cat conftest.err >&5
13641    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642    if (exit $ac_status) && test -s "$ac_outfile"; then
13643      # The compiler can only warn and ignore the option if not recognized
13644      # So say no if there are warnings other than the usual output.
13645      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13646      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13647      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13648        lt_cv_prog_compiler_pic_works=yes
13649      fi
13650    fi
13651    $RM conftest*
13652
13653 fi
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13655 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13656
13657 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13658     case $lt_prog_compiler_pic in
13659      "" | " "*) ;;
13660      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13661      esac
13662 else
13663     lt_prog_compiler_pic=
13664      lt_prog_compiler_can_build_shared=no
13665 fi
13666
13667 fi
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679 #
13680 # Check to make sure the static flag actually works.
13681 #
13682 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13684 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13685 if ${lt_cv_prog_compiler_static_works+:} false; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   lt_cv_prog_compiler_static_works=no
13689    save_LDFLAGS="$LDFLAGS"
13690    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13691    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13692    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13693      # The linker can only warn and ignore the option if not recognized
13694      # So say no if there are warnings
13695      if test -s conftest.err; then
13696        # Append any errors to the config.log.
13697        cat conftest.err 1>&5
13698        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13699        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13700        if diff conftest.exp conftest.er2 >/dev/null; then
13701          lt_cv_prog_compiler_static_works=yes
13702        fi
13703      else
13704        lt_cv_prog_compiler_static_works=yes
13705      fi
13706    fi
13707    $RM -r conftest*
13708    LDFLAGS="$save_LDFLAGS"
13709
13710 fi
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13712 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13713
13714 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13715     :
13716 else
13717     lt_prog_compiler_static=
13718 fi
13719
13720
13721
13722
13723
13724
13725
13726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13727 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13728 if ${lt_cv_prog_compiler_c_o+:} false; then :
13729   $as_echo_n "(cached) " >&6
13730 else
13731   lt_cv_prog_compiler_c_o=no
13732    $RM -r conftest 2>/dev/null
13733    mkdir conftest
13734    cd conftest
13735    mkdir out
13736    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13737
13738    lt_compiler_flag="-o out/conftest2.$ac_objext"
13739    # Insert the option either (1) after the last *FLAGS variable, or
13740    # (2) before a word containing "conftest.", or (3) at the end.
13741    # Note that $ac_compile itself does not contain backslashes and begins
13742    # with a dollar sign (not a hyphen), so the echo should work correctly.
13743    lt_compile=`echo "$ac_compile" | $SED \
13744    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13745    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13746    -e 's:$: $lt_compiler_flag:'`
13747    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13748    (eval "$lt_compile" 2>out/conftest.err)
13749    ac_status=$?
13750    cat out/conftest.err >&5
13751    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13753    then
13754      # The compiler can only warn and ignore the option if not recognized
13755      # So say no if there are warnings
13756      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13757      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13758      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13759        lt_cv_prog_compiler_c_o=yes
13760      fi
13761    fi
13762    chmod u+w . 2>&5
13763    $RM conftest*
13764    # SGI C++ compiler will create directory out/ii_files/ for
13765    # template instantiation
13766    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13767    $RM out/* && rmdir out
13768    cd ..
13769    $RM -r conftest
13770    $RM conftest*
13771
13772 fi
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13774 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13775
13776
13777
13778
13779
13780
13781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13782 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13783 if ${lt_cv_prog_compiler_c_o+:} false; then :
13784   $as_echo_n "(cached) " >&6
13785 else
13786   lt_cv_prog_compiler_c_o=no
13787    $RM -r conftest 2>/dev/null
13788    mkdir conftest
13789    cd conftest
13790    mkdir out
13791    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13792
13793    lt_compiler_flag="-o out/conftest2.$ac_objext"
13794    # Insert the option either (1) after the last *FLAGS variable, or
13795    # (2) before a word containing "conftest.", or (3) at the end.
13796    # Note that $ac_compile itself does not contain backslashes and begins
13797    # with a dollar sign (not a hyphen), so the echo should work correctly.
13798    lt_compile=`echo "$ac_compile" | $SED \
13799    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13800    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13801    -e 's:$: $lt_compiler_flag:'`
13802    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13803    (eval "$lt_compile" 2>out/conftest.err)
13804    ac_status=$?
13805    cat out/conftest.err >&5
13806    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13808    then
13809      # The compiler can only warn and ignore the option if not recognized
13810      # So say no if there are warnings
13811      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13812      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13813      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13814        lt_cv_prog_compiler_c_o=yes
13815      fi
13816    fi
13817    chmod u+w . 2>&5
13818    $RM conftest*
13819    # SGI C++ compiler will create directory out/ii_files/ for
13820    # template instantiation
13821    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13822    $RM out/* && rmdir out
13823    cd ..
13824    $RM -r conftest
13825    $RM conftest*
13826
13827 fi
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13829 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13830
13831
13832
13833
13834 hard_links="nottested"
13835 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13836   # do not overwrite the value of need_locks provided by the user
13837   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13838 $as_echo_n "checking if we can lock with hard links... " >&6; }
13839   hard_links=yes
13840   $RM conftest*
13841   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13842   touch conftest.a
13843   ln conftest.a conftest.b 2>&5 || hard_links=no
13844   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13846 $as_echo "$hard_links" >&6; }
13847   if test "$hard_links" = no; then
13848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13849 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13850     need_locks=warn
13851   fi
13852 else
13853   need_locks=no
13854 fi
13855
13856
13857
13858
13859
13860
13861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13862 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13863
13864   runpath_var=
13865   allow_undefined_flag=
13866   always_export_symbols=no
13867   archive_cmds=
13868   archive_expsym_cmds=
13869   compiler_needs_object=no
13870   enable_shared_with_static_runtimes=no
13871   export_dynamic_flag_spec=
13872   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13873   hardcode_automatic=no
13874   hardcode_direct=no
13875   hardcode_direct_absolute=no
13876   hardcode_libdir_flag_spec=
13877   hardcode_libdir_flag_spec_ld=
13878   hardcode_libdir_separator=
13879   hardcode_minus_L=no
13880   hardcode_shlibpath_var=unsupported
13881   inherit_rpath=no
13882   link_all_deplibs=unknown
13883   module_cmds=
13884   module_expsym_cmds=
13885   old_archive_from_new_cmds=
13886   old_archive_from_expsyms_cmds=
13887   thread_safe_flag_spec=
13888   whole_archive_flag_spec=
13889   # include_expsyms should be a list of space-separated symbols to be *always*
13890   # included in the symbol list
13891   include_expsyms=
13892   # exclude_expsyms can be an extended regexp of symbols to exclude
13893   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13894   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13895   # as well as any symbol that contains `d'.
13896   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13897   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13898   # platforms (ab)use it in PIC code, but their linkers get confused if
13899   # the symbol is explicitly referenced.  Since portable code cannot
13900   # rely on this symbol name, it's probably fine to never include it in
13901   # preloaded symbol tables.
13902   # Exclude shared library initialization/finalization symbols.
13903   extract_expsyms_cmds=
13904
13905   case $host_os in
13906   cygwin* | mingw* | pw32* | cegcc*)
13907     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13908     # When not using gcc, we currently assume that we are using
13909     # Microsoft Visual C++.
13910     if test "$GCC" != yes; then
13911       with_gnu_ld=no
13912     fi
13913     ;;
13914   interix*)
13915     # we just hope/assume this is gcc and not c89 (= MSVC++)
13916     with_gnu_ld=yes
13917     ;;
13918   openbsd*)
13919     with_gnu_ld=no
13920     ;;
13921   esac
13922
13923   ld_shlibs=yes
13924
13925   # On some targets, GNU ld is compatible enough with the native linker
13926   # that we're better off using the native interface for both.
13927   lt_use_gnu_ld_interface=no
13928   if test "$with_gnu_ld" = yes; then
13929     case $host_os in
13930       aix*)
13931         # The AIX port of GNU ld has always aspired to compatibility
13932         # with the native linker.  However, as the warning in the GNU ld
13933         # block says, versions before 2.19.5* couldn't really create working
13934         # shared libraries, regardless of the interface used.
13935         case `$LD -v 2>&1` in
13936           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13937           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13938           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13939           *)
13940             lt_use_gnu_ld_interface=yes
13941             ;;
13942         esac
13943         ;;
13944       *)
13945         lt_use_gnu_ld_interface=yes
13946         ;;
13947     esac
13948   fi
13949
13950   if test "$lt_use_gnu_ld_interface" = yes; then
13951     # If archive_cmds runs LD, not CC, wlarc should be empty
13952     wlarc='${wl}'
13953
13954     # Set some defaults for GNU ld with shared library support. These
13955     # are reset later if shared libraries are not supported. Putting them
13956     # here allows them to be overridden if necessary.
13957     runpath_var=LD_RUN_PATH
13958     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13959     export_dynamic_flag_spec='${wl}--export-dynamic'
13960     # ancient GNU ld didn't support --whole-archive et. al.
13961     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13962       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13963     else
13964       whole_archive_flag_spec=
13965     fi
13966     supports_anon_versioning=no
13967     case `$LD -v 2>&1` in
13968       *GNU\ gold*) supports_anon_versioning=yes ;;
13969       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13970       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13971       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13972       *\ 2.11.*) ;; # other 2.11 versions
13973       *) supports_anon_versioning=yes ;;
13974     esac
13975
13976     # See if GNU ld supports shared libraries.
13977     case $host_os in
13978     aix[3-9]*)
13979       # On AIX/PPC, the GNU linker is very broken
13980       if test "$host_cpu" != ia64; then
13981         ld_shlibs=no
13982         cat <<_LT_EOF 1>&2
13983
13984 *** Warning: the GNU linker, at least up to release 2.19, is reported
13985 *** to be unable to reliably create shared libraries on AIX.
13986 *** Therefore, libtool is disabling shared libraries support.  If you
13987 *** really care for shared libraries, you may want to install binutils
13988 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13989 *** You will then need to restart the configuration process.
13990
13991 _LT_EOF
13992       fi
13993       ;;
13994
13995     amigaos*)
13996       case $host_cpu in
13997       powerpc)
13998             # see comment about AmigaOS4 .so support
13999             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14000             archive_expsym_cmds=''
14001         ;;
14002       m68k)
14003             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)'
14004             hardcode_libdir_flag_spec='-L$libdir'
14005             hardcode_minus_L=yes
14006         ;;
14007       esac
14008       ;;
14009
14010     beos*)
14011       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14012         allow_undefined_flag=unsupported
14013         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14014         # support --undefined.  This deserves some investigation.  FIXME
14015         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14016       else
14017         ld_shlibs=no
14018       fi
14019       ;;
14020
14021     cygwin* | mingw* | pw32* | cegcc*)
14022       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14023       # as there is no search path for DLLs.
14024       hardcode_libdir_flag_spec='-L$libdir'
14025       export_dynamic_flag_spec='${wl}--export-all-symbols'
14026       allow_undefined_flag=unsupported
14027       always_export_symbols=no
14028       enable_shared_with_static_runtimes=yes
14029       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'
14030       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14031
14032       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14033         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14034         # If the export-symbols file already is a .def file (1st line
14035         # is EXPORTS), use it as is; otherwise, prepend...
14036         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14037           cp $export_symbols $output_objdir/$soname.def;
14038         else
14039           echo EXPORTS > $output_objdir/$soname.def;
14040           cat $export_symbols >> $output_objdir/$soname.def;
14041         fi~
14042         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14043       else
14044         ld_shlibs=no
14045       fi
14046       ;;
14047
14048     haiku*)
14049       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050       link_all_deplibs=yes
14051       ;;
14052
14053     interix[3-9]*)
14054       hardcode_direct=no
14055       hardcode_shlibpath_var=no
14056       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14057       export_dynamic_flag_spec='${wl}-E'
14058       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14059       # Instead, shared libraries are loaded at an image base (0x10000000 by
14060       # default) and relocated if they conflict, which is a slow very memory
14061       # consuming and fragmenting process.  To avoid this, we pick a random,
14062       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14063       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14064       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14065       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'
14066       ;;
14067
14068     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
14069       tmp_diet=no
14070       if test "$host_os" = linux-dietlibc; then
14071         case $cc_basename in
14072           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
14073         esac
14074       fi
14075       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14076          && test "$tmp_diet" = no
14077       then
14078         tmp_addflag=' $pic_flag'
14079         tmp_sharedflag='-shared'
14080         case $cc_basename,$host_cpu in
14081         pgcc*)                          # Portland Group C compiler
14082           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'
14083           tmp_addflag=' $pic_flag'
14084           ;;
14085         pgf77* | pgf90* | pgf95* | pgfortran*)
14086                                         # Portland Group f77 and f90 compilers
14087           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'
14088           tmp_addflag=' $pic_flag -Mnomain' ;;
14089         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
14090           tmp_addflag=' -i_dynamic' ;;
14091         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
14092           tmp_addflag=' -i_dynamic -nofor_main' ;;
14093         ifc* | ifort*)                  # Intel Fortran compiler
14094           tmp_addflag=' -nofor_main' ;;
14095         lf95*)                          # Lahey Fortran 8.1
14096           whole_archive_flag_spec=
14097           tmp_sharedflag='--shared' ;;
14098         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
14099           tmp_sharedflag='-qmkshrobj'
14100           tmp_addflag= ;;
14101         nvcc*)  # Cuda Compiler Driver 2.2
14102           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'
14103           compiler_needs_object=yes
14104           ;;
14105         esac
14106         case `$CC -V 2>&1 | sed 5q` in
14107         *Sun\ C*)                       # Sun C 5.9
14108           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'
14109           compiler_needs_object=yes
14110           tmp_sharedflag='-G' ;;
14111         *Sun\ F*)                       # Sun Fortran 8.3
14112           tmp_sharedflag='-G' ;;
14113         esac
14114         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14115
14116         if test "x$supports_anon_versioning" = xyes; then
14117           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14118             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14119             echo "local: *; };" >> $output_objdir/$libname.ver~
14120             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14121         fi
14122
14123         case $cc_basename in
14124         xlf* | bgf* | bgxlf* | mpixlf*)
14125           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14126           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
14127           hardcode_libdir_flag_spec=
14128           hardcode_libdir_flag_spec_ld='-rpath $libdir'
14129           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
14130           if test "x$supports_anon_versioning" = xyes; then
14131             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14132               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14133               echo "local: *; };" >> $output_objdir/$libname.ver~
14134               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14135           fi
14136           ;;
14137         esac
14138       else
14139         ld_shlibs=no
14140       fi
14141       ;;
14142
14143     netbsd*)
14144       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14145         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14146         wlarc=
14147       else
14148         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14149         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14150       fi
14151       ;;
14152
14153     solaris*)
14154       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14155         ld_shlibs=no
14156         cat <<_LT_EOF 1>&2
14157
14158 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14159 *** create shared libraries on Solaris systems.  Therefore, libtool
14160 *** is disabling shared libraries support.  We urge you to upgrade GNU
14161 *** binutils to release 2.9.1 or newer.  Another option is to modify
14162 *** your PATH or compiler configuration so that the native linker is
14163 *** used, and then restart.
14164
14165 _LT_EOF
14166       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14167         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14169       else
14170         ld_shlibs=no
14171       fi
14172       ;;
14173
14174     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14175       case `$LD -v 2>&1` in
14176         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14177         ld_shlibs=no
14178         cat <<_LT_EOF 1>&2
14179
14180 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14181 *** reliably create shared libraries on SCO systems.  Therefore, libtool
14182 *** is disabling shared libraries support.  We urge you to upgrade GNU
14183 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14184 *** your PATH or compiler configuration so that the native linker is
14185 *** used, and then restart.
14186
14187 _LT_EOF
14188         ;;
14189         *)
14190           # For security reasons, it is highly recommended that you always
14191           # use absolute paths for naming shared libraries, and exclude the
14192           # DT_RUNPATH tag from executables and libraries.  But doing so
14193           # requires that you compile everything twice, which is a pain.
14194           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14195             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14196             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14197             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14198           else
14199             ld_shlibs=no
14200           fi
14201         ;;
14202       esac
14203       ;;
14204
14205     sunos4*)
14206       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14207       wlarc=
14208       hardcode_direct=yes
14209       hardcode_shlibpath_var=no
14210       ;;
14211
14212     *)
14213       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14214         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14215         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14216       else
14217         ld_shlibs=no
14218       fi
14219       ;;
14220     esac
14221
14222     if test "$ld_shlibs" = no; then
14223       runpath_var=
14224       hardcode_libdir_flag_spec=
14225       export_dynamic_flag_spec=
14226       whole_archive_flag_spec=
14227     fi
14228   else
14229     # PORTME fill in a description of your system's linker (not GNU ld)
14230     case $host_os in
14231     aix3*)
14232       allow_undefined_flag=unsupported
14233       always_export_symbols=yes
14234       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'
14235       # Note: this linker hardcodes the directories in LIBPATH if there
14236       # are no directories specified by -L.
14237       hardcode_minus_L=yes
14238       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14239         # Neither direct hardcoding nor static linking is supported with a
14240         # broken collect2.
14241         hardcode_direct=unsupported
14242       fi
14243       ;;
14244
14245     aix[4-9]*)
14246       if test "$host_cpu" = ia64; then
14247         # On IA64, the linker does run time linking by default, so we don't
14248         # have to do anything special.
14249         aix_use_runtimelinking=no
14250         exp_sym_flag='-Bexport'
14251         no_entry_flag=""
14252       else
14253         # If we're using GNU nm, then we don't want the "-C" option.
14254         # -C means demangle to AIX nm, but means don't demangle with GNU nm
14255         # Also, AIX nm treats weak defined symbols like other global
14256         # defined symbols, whereas GNU nm marks them as "W".
14257         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14258           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14259         else
14260           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14261         fi
14262         aix_use_runtimelinking=no
14263
14264         # Test if we are trying to use run time linking or normal
14265         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14266         # need to do runtime linking.
14267         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14268           for ld_flag in $LDFLAGS; do
14269           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14270             aix_use_runtimelinking=yes
14271             break
14272           fi
14273           done
14274           ;;
14275         esac
14276
14277         exp_sym_flag='-bexport'
14278         no_entry_flag='-bnoentry'
14279       fi
14280
14281       # When large executables or shared objects are built, AIX ld can
14282       # have problems creating the table of contents.  If linking a library
14283       # or program results in "error TOC overflow" add -mminimal-toc to
14284       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14285       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14286
14287       archive_cmds=''
14288       hardcode_direct=yes
14289       hardcode_direct_absolute=yes
14290       hardcode_libdir_separator=':'
14291       link_all_deplibs=yes
14292       file_list_spec='${wl}-f,'
14293
14294       if test "$GCC" = yes; then
14295         case $host_os in aix4.[012]|aix4.[012].*)
14296         # We only want to do this on AIX 4.2 and lower, the check
14297         # below for broken collect2 doesn't work under 4.3+
14298           collect2name=`${CC} -print-prog-name=collect2`
14299           if test -f "$collect2name" &&
14300            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14301           then
14302           # We have reworked collect2
14303           :
14304           else
14305           # We have old collect2
14306           hardcode_direct=unsupported
14307           # It fails to find uninstalled libraries when the uninstalled
14308           # path is not listed in the libpath.  Setting hardcode_minus_L
14309           # to unsupported forces relinking
14310           hardcode_minus_L=yes
14311           hardcode_libdir_flag_spec='-L$libdir'
14312           hardcode_libdir_separator=
14313           fi
14314           ;;
14315         esac
14316         shared_flag='-shared'
14317         if test "$aix_use_runtimelinking" = yes; then
14318           shared_flag="$shared_flag "'${wl}-G'
14319         fi
14320       else
14321         # not using gcc
14322         if test "$host_cpu" = ia64; then
14323         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14324         # chokes on -Wl,-G. The following line is correct:
14325           shared_flag='-G'
14326         else
14327           if test "$aix_use_runtimelinking" = yes; then
14328             shared_flag='${wl}-G'
14329           else
14330             shared_flag='${wl}-bM:SRE'
14331           fi
14332         fi
14333       fi
14334
14335       export_dynamic_flag_spec='${wl}-bexpall'
14336       # It seems that -bexpall does not export symbols beginning with
14337       # underscore (_), so it is better to generate a list of symbols to export.
14338       always_export_symbols=yes
14339       if test "$aix_use_runtimelinking" = yes; then
14340         # Warning - without using the other runtime loading flags (-brtl),
14341         # -berok will link without error, but may produce a broken library.
14342         allow_undefined_flag='-berok'
14343         # Determine the default libpath from the value encoded in an
14344         # empty executable.
14345         if test "${lt_cv_aix_libpath+set}" = set; then
14346   aix_libpath=$lt_cv_aix_libpath
14347 else
14348   if ${lt_cv_aix_libpath_+:} false; then :
14349   $as_echo_n "(cached) " >&6
14350 else
14351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14352 /* end confdefs.h.  */
14353
14354 int
14355 main ()
14356 {
14357
14358   ;
14359   return 0;
14360 }
14361 _ACEOF
14362 if ac_fn_c_try_link "$LINENO"; then :
14363
14364   lt_aix_libpath_sed='
14365       /Import File Strings/,/^$/ {
14366           /^0/ {
14367               s/^0  *\([^ ]*\) *$/\1/
14368               p
14369           }
14370       }'
14371   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14372   # Check for a 64-bit object if we didn't find anything.
14373   if test -z "$lt_cv_aix_libpath_"; then
14374     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14375   fi
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext \
14378     conftest$ac_exeext conftest.$ac_ext
14379   if test -z "$lt_cv_aix_libpath_"; then
14380     lt_cv_aix_libpath_="/usr/lib:/lib"
14381   fi
14382
14383 fi
14384
14385   aix_libpath=$lt_cv_aix_libpath_
14386 fi
14387
14388         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14389         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14390       else
14391         if test "$host_cpu" = ia64; then
14392           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14393           allow_undefined_flag="-z nodefs"
14394           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"
14395         else
14396          # Determine the default libpath from the value encoded in an
14397          # empty executable.
14398          if test "${lt_cv_aix_libpath+set}" = set; then
14399   aix_libpath=$lt_cv_aix_libpath
14400 else
14401   if ${lt_cv_aix_libpath_+:} false; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406
14407 int
14408 main ()
14409 {
14410
14411   ;
14412   return 0;
14413 }
14414 _ACEOF
14415 if ac_fn_c_try_link "$LINENO"; then :
14416
14417   lt_aix_libpath_sed='
14418       /Import File Strings/,/^$/ {
14419           /^0/ {
14420               s/^0  *\([^ ]*\) *$/\1/
14421               p
14422           }
14423       }'
14424   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14425   # Check for a 64-bit object if we didn't find anything.
14426   if test -z "$lt_cv_aix_libpath_"; then
14427     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14428   fi
14429 fi
14430 rm -f core conftest.err conftest.$ac_objext \
14431     conftest$ac_exeext conftest.$ac_ext
14432   if test -z "$lt_cv_aix_libpath_"; then
14433     lt_cv_aix_libpath_="/usr/lib:/lib"
14434   fi
14435
14436 fi
14437
14438   aix_libpath=$lt_cv_aix_libpath_
14439 fi
14440
14441          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14442           # Warning - without using the other run time loading flags,
14443           # -berok will link without error, but may produce a broken library.
14444           no_undefined_flag=' ${wl}-bernotok'
14445           allow_undefined_flag=' ${wl}-berok'
14446           if test "$with_gnu_ld" = yes; then
14447             # We only use this code for GNU lds that support --whole-archive.
14448             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14449           else
14450             # Exported symbols can be pulled into shared objects from archives
14451             whole_archive_flag_spec='$convenience'
14452           fi
14453           archive_cmds_need_lc=yes
14454           # This is similar to how AIX traditionally builds its shared libraries.
14455           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14456         fi
14457       fi
14458       ;;
14459
14460     amigaos*)
14461       case $host_cpu in
14462       powerpc)
14463             # see comment about AmigaOS4 .so support
14464             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14465             archive_expsym_cmds=''
14466         ;;
14467       m68k)
14468             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)'
14469             hardcode_libdir_flag_spec='-L$libdir'
14470             hardcode_minus_L=yes
14471         ;;
14472       esac
14473       ;;
14474
14475     bsdi[45]*)
14476       export_dynamic_flag_spec=-rdynamic
14477       ;;
14478
14479     cygwin* | mingw* | pw32* | cegcc*)
14480       # When not using gcc, we currently assume that we are using
14481       # Microsoft Visual C++.
14482       # hardcode_libdir_flag_spec is actually meaningless, as there is
14483       # no search path for DLLs.
14484       case $cc_basename in
14485       cl*)
14486         # Native MSVC
14487         hardcode_libdir_flag_spec=' '
14488         allow_undefined_flag=unsupported
14489         always_export_symbols=yes
14490         file_list_spec='@'
14491         # Tell ltmain to make .lib files, not .a files.
14492         libext=lib
14493         # Tell ltmain to make .dll files, not .so files.
14494         shrext_cmds=".dll"
14495         # FIXME: Setting linknames here is a bad hack.
14496         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14497         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14498             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14499           else
14500             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14501           fi~
14502           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14503           linknames='
14504         # The linker will not automatically build a static lib if we build a DLL.
14505         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14506         enable_shared_with_static_runtimes=yes
14507         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14508         # Don't use ranlib
14509         old_postinstall_cmds='chmod 644 $oldlib'
14510         postlink_cmds='lt_outputfile="@OUTPUT@"~
14511           lt_tool_outputfile="@TOOL_OUTPUT@"~
14512           case $lt_outputfile in
14513             *.exe|*.EXE) ;;
14514             *)
14515               lt_outputfile="$lt_outputfile.exe"
14516               lt_tool_outputfile="$lt_tool_outputfile.exe"
14517               ;;
14518           esac~
14519           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14520             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14521             $RM "$lt_outputfile.manifest";
14522           fi'
14523         ;;
14524       *)
14525         # Assume MSVC wrapper
14526         hardcode_libdir_flag_spec=' '
14527         allow_undefined_flag=unsupported
14528         # Tell ltmain to make .lib files, not .a files.
14529         libext=lib
14530         # Tell ltmain to make .dll files, not .so files.
14531         shrext_cmds=".dll"
14532         # FIXME: Setting linknames here is a bad hack.
14533         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14534         # The linker will automatically build a .lib file if we build a DLL.
14535         old_archive_from_new_cmds='true'
14536         # FIXME: Should let the user specify the lib program.
14537         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14538         enable_shared_with_static_runtimes=yes
14539         ;;
14540       esac
14541       ;;
14542
14543     darwin* | rhapsody*)
14544
14545
14546   archive_cmds_need_lc=no
14547   hardcode_direct=no
14548   hardcode_automatic=yes
14549   hardcode_shlibpath_var=unsupported
14550   if test "$lt_cv_ld_force_load" = "yes"; then
14551     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\"`'
14552   else
14553     whole_archive_flag_spec=''
14554   fi
14555   link_all_deplibs=yes
14556   allow_undefined_flag="$_lt_dar_allow_undefined"
14557   case $cc_basename in
14558      ifort*) _lt_dar_can_shared=yes ;;
14559      *) _lt_dar_can_shared=$GCC ;;
14560   esac
14561   if test "$_lt_dar_can_shared" = "yes"; then
14562     output_verbose_link_cmd=func_echo_all
14563     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14564     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14565     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}"
14566     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}"
14567
14568   else
14569   ld_shlibs=no
14570   fi
14571
14572       ;;
14573
14574     dgux*)
14575       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14576       hardcode_libdir_flag_spec='-L$libdir'
14577       hardcode_shlibpath_var=no
14578       ;;
14579
14580     freebsd1*)
14581       ld_shlibs=no
14582       ;;
14583
14584     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14585     # support.  Future versions do this automatically, but an explicit c++rt0.o
14586     # does not break anything, and helps significantly (at the cost of a little
14587     # extra space).
14588     freebsd2.2*)
14589       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14590       hardcode_libdir_flag_spec='-R$libdir'
14591       hardcode_direct=yes
14592       hardcode_shlibpath_var=no
14593       ;;
14594
14595     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14596     freebsd2*)
14597       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14598       hardcode_direct=yes
14599       hardcode_minus_L=yes
14600       hardcode_shlibpath_var=no
14601       ;;
14602
14603     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14604     freebsd* | dragonfly*)
14605       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14606       hardcode_libdir_flag_spec='-R$libdir'
14607       hardcode_direct=yes
14608       hardcode_shlibpath_var=no
14609       ;;
14610
14611     hpux9*)
14612       if test "$GCC" = yes; then
14613         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14614       else
14615         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14616       fi
14617       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14618       hardcode_libdir_separator=:
14619       hardcode_direct=yes
14620
14621       # hardcode_minus_L: Not really in the search PATH,
14622       # but as the default location of the library.
14623       hardcode_minus_L=yes
14624       export_dynamic_flag_spec='${wl}-E'
14625       ;;
14626
14627     hpux10*)
14628       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14629         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14630       else
14631         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14632       fi
14633       if test "$with_gnu_ld" = no; then
14634         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14635         hardcode_libdir_flag_spec_ld='+b $libdir'
14636         hardcode_libdir_separator=:
14637         hardcode_direct=yes
14638         hardcode_direct_absolute=yes
14639         export_dynamic_flag_spec='${wl}-E'
14640         # hardcode_minus_L: Not really in the search PATH,
14641         # but as the default location of the library.
14642         hardcode_minus_L=yes
14643       fi
14644       ;;
14645
14646     hpux11*)
14647       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14648         case $host_cpu in
14649         hppa*64*)
14650           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14651           ;;
14652         ia64*)
14653           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14654           ;;
14655         *)
14656           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14657           ;;
14658         esac
14659       else
14660         case $host_cpu in
14661         hppa*64*)
14662           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14663           ;;
14664         ia64*)
14665           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14666           ;;
14667         *)
14668
14669           # Older versions of the 11.00 compiler do not understand -b yet
14670           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14671           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14672 $as_echo_n "checking if $CC understands -b... " >&6; }
14673 if ${lt_cv_prog_compiler__b+:} false; then :
14674   $as_echo_n "(cached) " >&6
14675 else
14676   lt_cv_prog_compiler__b=no
14677    save_LDFLAGS="$LDFLAGS"
14678    LDFLAGS="$LDFLAGS -b"
14679    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14680    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14681      # The linker can only warn and ignore the option if not recognized
14682      # So say no if there are warnings
14683      if test -s conftest.err; then
14684        # Append any errors to the config.log.
14685        cat conftest.err 1>&5
14686        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14687        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14688        if diff conftest.exp conftest.er2 >/dev/null; then
14689          lt_cv_prog_compiler__b=yes
14690        fi
14691      else
14692        lt_cv_prog_compiler__b=yes
14693      fi
14694    fi
14695    $RM -r conftest*
14696    LDFLAGS="$save_LDFLAGS"
14697
14698 fi
14699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14700 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14701
14702 if test x"$lt_cv_prog_compiler__b" = xyes; then
14703     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14704 else
14705     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14706 fi
14707
14708           ;;
14709         esac
14710       fi
14711       if test "$with_gnu_ld" = no; then
14712         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14713         hardcode_libdir_separator=:
14714
14715         case $host_cpu in
14716         hppa*64*|ia64*)
14717           hardcode_direct=no
14718           hardcode_shlibpath_var=no
14719           ;;
14720         *)
14721           hardcode_direct=yes
14722           hardcode_direct_absolute=yes
14723           export_dynamic_flag_spec='${wl}-E'
14724
14725           # hardcode_minus_L: Not really in the search PATH,
14726           # but as the default location of the library.
14727           hardcode_minus_L=yes
14728           ;;
14729         esac
14730       fi
14731       ;;
14732
14733     irix5* | irix6* | nonstopux*)
14734       if test "$GCC" = yes; then
14735         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'
14736         # Try to use the -exported_symbol ld option, if it does not
14737         # work, assume that -exports_file does not work either and
14738         # implicitly export all symbols.
14739         # This should be the same for all languages, so no per-tag cache variable.
14740         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14741 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14742 if ${lt_cv_irix_exported_symbol+:} false; then :
14743   $as_echo_n "(cached) " >&6
14744 else
14745   save_LDFLAGS="$LDFLAGS"
14746            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14747            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h.  */
14749 int foo (void) { return 0; }
14750 _ACEOF
14751 if ac_fn_c_try_link "$LINENO"; then :
14752   lt_cv_irix_exported_symbol=yes
14753 else
14754   lt_cv_irix_exported_symbol=no
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext \
14757     conftest$ac_exeext conftest.$ac_ext
14758            LDFLAGS="$save_LDFLAGS"
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14761 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14762         if test "$lt_cv_irix_exported_symbol" = yes; then
14763           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'
14764         fi
14765       else
14766         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'
14767         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'
14768       fi
14769       archive_cmds_need_lc='no'
14770       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14771       hardcode_libdir_separator=:
14772       inherit_rpath=yes
14773       link_all_deplibs=yes
14774       ;;
14775
14776     netbsd*)
14777       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14778         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14779       else
14780         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14781       fi
14782       hardcode_libdir_flag_spec='-R$libdir'
14783       hardcode_direct=yes
14784       hardcode_shlibpath_var=no
14785       ;;
14786
14787     newsos6)
14788       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14789       hardcode_direct=yes
14790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14791       hardcode_libdir_separator=:
14792       hardcode_shlibpath_var=no
14793       ;;
14794
14795     *nto* | *qnx*)
14796       ;;
14797
14798     openbsd*)
14799       if test -f /usr/libexec/ld.so; then
14800         hardcode_direct=yes
14801         hardcode_shlibpath_var=no
14802         hardcode_direct_absolute=yes
14803         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14804           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14805           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14806           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14807           export_dynamic_flag_spec='${wl}-E'
14808         else
14809           case $host_os in
14810            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14811              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14812              hardcode_libdir_flag_spec='-R$libdir'
14813              ;;
14814            *)
14815              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14816              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14817              ;;
14818           esac
14819         fi
14820       else
14821         ld_shlibs=no
14822       fi
14823       ;;
14824
14825     os2*)
14826       hardcode_libdir_flag_spec='-L$libdir'
14827       hardcode_minus_L=yes
14828       allow_undefined_flag=unsupported
14829       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14830       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14831       ;;
14832
14833     osf3*)
14834       if test "$GCC" = yes; then
14835         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14836         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'
14837       else
14838         allow_undefined_flag=' -expect_unresolved \*'
14839         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'
14840       fi
14841       archive_cmds_need_lc='no'
14842       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14843       hardcode_libdir_separator=:
14844       ;;
14845
14846     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14847       if test "$GCC" = yes; then
14848         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14849         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'
14850         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14851       else
14852         allow_undefined_flag=' -expect_unresolved \*'
14853         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'
14854         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~
14855         $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'
14856
14857         # Both c and cxx compiler support -rpath directly
14858         hardcode_libdir_flag_spec='-rpath $libdir'
14859       fi
14860       archive_cmds_need_lc='no'
14861       hardcode_libdir_separator=:
14862       ;;
14863
14864     solaris*)
14865       no_undefined_flag=' -z defs'
14866       if test "$GCC" = yes; then
14867         wlarc='${wl}'
14868         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14869         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14870           $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'
14871       else
14872         case `$CC -V 2>&1` in
14873         *"Compilers 5.0"*)
14874           wlarc=''
14875           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14876           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14877           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14878           ;;
14879         *)
14880           wlarc='${wl}'
14881           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14882           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14883           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14884           ;;
14885         esac
14886       fi
14887       hardcode_libdir_flag_spec='-R$libdir'
14888       hardcode_shlibpath_var=no
14889       case $host_os in
14890       solaris2.[0-5] | solaris2.[0-5].*) ;;
14891       *)
14892         # The compiler driver will combine and reorder linker options,
14893         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14894         # but is careful enough not to reorder.
14895         # Supported since Solaris 2.6 (maybe 2.5.1?)
14896         if test "$GCC" = yes; then
14897           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14898         else
14899           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14900         fi
14901         ;;
14902       esac
14903       link_all_deplibs=yes
14904       ;;
14905
14906     sunos4*)
14907       if test "x$host_vendor" = xsequent; then
14908         # Use $CC to link under sequent, because it throws in some extra .o
14909         # files that make .init and .fini sections work.
14910         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14911       else
14912         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14913       fi
14914       hardcode_libdir_flag_spec='-L$libdir'
14915       hardcode_direct=yes
14916       hardcode_minus_L=yes
14917       hardcode_shlibpath_var=no
14918       ;;
14919
14920     sysv4)
14921       case $host_vendor in
14922         sni)
14923           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924           hardcode_direct=yes # is this really true???
14925         ;;
14926         siemens)
14927           ## LD is ld it makes a PLAMLIB
14928           ## CC just makes a GrossModule.
14929           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14930           reload_cmds='$CC -r -o $output$reload_objs'
14931           hardcode_direct=no
14932         ;;
14933         motorola)
14934           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14935           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14936         ;;
14937       esac
14938       runpath_var='LD_RUN_PATH'
14939       hardcode_shlibpath_var=no
14940       ;;
14941
14942     sysv4.3*)
14943       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14944       hardcode_shlibpath_var=no
14945       export_dynamic_flag_spec='-Bexport'
14946       ;;
14947
14948     sysv4*MP*)
14949       if test -d /usr/nec; then
14950         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14951         hardcode_shlibpath_var=no
14952         runpath_var=LD_RUN_PATH
14953         hardcode_runpath_var=yes
14954         ld_shlibs=yes
14955       fi
14956       ;;
14957
14958     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14959       no_undefined_flag='${wl}-z,text'
14960       archive_cmds_need_lc=no
14961       hardcode_shlibpath_var=no
14962       runpath_var='LD_RUN_PATH'
14963
14964       if test "$GCC" = yes; then
14965         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967       else
14968         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14969         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970       fi
14971       ;;
14972
14973     sysv5* | sco3.2v5* | sco5v6*)
14974       # Note: We can NOT use -z defs as we might desire, because we do not
14975       # link with -lc, and that would cause any symbols used from libc to
14976       # always be unresolved, which means just about no library would
14977       # ever link correctly.  If we're not using GNU ld we use -z text
14978       # though, which does catch some bad symbols but isn't as heavy-handed
14979       # as -z defs.
14980       no_undefined_flag='${wl}-z,text'
14981       allow_undefined_flag='${wl}-z,nodefs'
14982       archive_cmds_need_lc=no
14983       hardcode_shlibpath_var=no
14984       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14985       hardcode_libdir_separator=':'
14986       link_all_deplibs=yes
14987       export_dynamic_flag_spec='${wl}-Bexport'
14988       runpath_var='LD_RUN_PATH'
14989
14990       if test "$GCC" = yes; then
14991         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993       else
14994         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996       fi
14997       ;;
14998
14999     uts4*)
15000       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15001       hardcode_libdir_flag_spec='-L$libdir'
15002       hardcode_shlibpath_var=no
15003       ;;
15004
15005     *)
15006       ld_shlibs=no
15007       ;;
15008     esac
15009
15010     if test x$host_vendor = xsni; then
15011       case $host in
15012       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15013         export_dynamic_flag_spec='${wl}-Blargedynsym'
15014         ;;
15015       esac
15016     fi
15017   fi
15018
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15020 $as_echo "$ld_shlibs" >&6; }
15021 test "$ld_shlibs" = no && can_build_shared=no
15022
15023 with_gnu_ld=$with_gnu_ld
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034
15035
15036
15037
15038
15039 #
15040 # Do we need to explicitly link libc?
15041 #
15042 case "x$archive_cmds_need_lc" in
15043 x|xyes)
15044   # Assume -lc should be added
15045   archive_cmds_need_lc=yes
15046
15047   if test "$enable_shared" = yes && test "$GCC" = yes; then
15048     case $archive_cmds in
15049     *'~'*)
15050       # FIXME: we may have to deal with multi-command sequences.
15051       ;;
15052     '$CC '*)
15053       # Test whether the compiler implicitly links with -lc since on some
15054       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15055       # to ld, don't add -lc before -lgcc.
15056       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15057 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15058 if ${lt_cv_archive_cmds_need_lc+:} false; then :
15059   $as_echo_n "(cached) " >&6
15060 else
15061   $RM conftest*
15062         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15063
15064         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15065   (eval $ac_compile) 2>&5
15066   ac_status=$?
15067   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068   test $ac_status = 0; } 2>conftest.err; then
15069           soname=conftest
15070           lib=conftest
15071           libobjs=conftest.$ac_objext
15072           deplibs=
15073           wl=$lt_prog_compiler_wl
15074           pic_flag=$lt_prog_compiler_pic
15075           compiler_flags=-v
15076           linker_flags=-v
15077           verstring=
15078           output_objdir=.
15079           libname=conftest
15080           lt_save_allow_undefined_flag=$allow_undefined_flag
15081           allow_undefined_flag=
15082           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15083   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15084   ac_status=$?
15085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15086   test $ac_status = 0; }
15087           then
15088             lt_cv_archive_cmds_need_lc=no
15089           else
15090             lt_cv_archive_cmds_need_lc=yes
15091           fi
15092           allow_undefined_flag=$lt_save_allow_undefined_flag
15093         else
15094           cat conftest.err 1>&5
15095         fi
15096         $RM conftest*
15097
15098 fi
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15100 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15101       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15102       ;;
15103     esac
15104   fi
15105   ;;
15106 esac
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15266
15267 if test "$GCC" = yes; then
15268   case $host_os in
15269     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15270     *) lt_awk_arg="/^libraries:/" ;;
15271   esac
15272   case $host_os in
15273     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15274     *) lt_sed_strip_eq="s,=/,/,g" ;;
15275   esac
15276   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15277   case $lt_search_path_spec in
15278   *\;*)
15279     # if the path contains ";" then we assume it to be the separator
15280     # otherwise default to the standard path separator (i.e. ":") - it is
15281     # assumed that no part of a normal pathname contains ";" but that should
15282     # okay in the real world where ";" in dirpaths is itself problematic.
15283     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15284     ;;
15285   *)
15286     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15287     ;;
15288   esac
15289   # Ok, now we have the path, separated by spaces, we can step through it
15290   # and add multilib dir if necessary.
15291   lt_tmp_lt_search_path_spec=
15292   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15293   for lt_sys_path in $lt_search_path_spec; do
15294     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15295       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15296     else
15297       test -d "$lt_sys_path" && \
15298         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15299     fi
15300   done
15301   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15302 BEGIN {RS=" "; FS="/|\n";} {
15303   lt_foo="";
15304   lt_count=0;
15305   for (lt_i = NF; lt_i > 0; lt_i--) {
15306     if ($lt_i != "" && $lt_i != ".") {
15307       if ($lt_i == "..") {
15308         lt_count++;
15309       } else {
15310         if (lt_count == 0) {
15311           lt_foo="/" $lt_i lt_foo;
15312         } else {
15313           lt_count--;
15314         }
15315       }
15316     }
15317   }
15318   if (lt_foo != "") { lt_freq[lt_foo]++; }
15319   if (lt_freq[lt_foo] == 1) { print lt_foo; }
15320 }'`
15321   # AWK program above erroneously prepends '/' to C:/dos/paths
15322   # for these hosts.
15323   case $host_os in
15324     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15325       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15326   esac
15327   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15328 else
15329   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15330 fi
15331 library_names_spec=
15332 libname_spec='lib$name'
15333 soname_spec=
15334 shrext_cmds=".so"
15335 postinstall_cmds=
15336 postuninstall_cmds=
15337 finish_cmds=
15338 finish_eval=
15339 shlibpath_var=
15340 shlibpath_overrides_runpath=unknown
15341 version_type=none
15342 dynamic_linker="$host_os ld.so"
15343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15344 need_lib_prefix=unknown
15345 hardcode_into_libs=no
15346
15347 # when you set need_version to no, make sure it does not cause -set_version
15348 # flags to be left without arguments
15349 need_version=unknown
15350
15351 case $host_os in
15352 aix3*)
15353   version_type=linux
15354   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15355   shlibpath_var=LIBPATH
15356
15357   # AIX 3 has no versioning support, so we append a major version to the name.
15358   soname_spec='${libname}${release}${shared_ext}$major'
15359   ;;
15360
15361 aix[4-9]*)
15362   version_type=linux
15363   need_lib_prefix=no
15364   need_version=no
15365   hardcode_into_libs=yes
15366   if test "$host_cpu" = ia64; then
15367     # AIX 5 supports IA64
15368     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15369     shlibpath_var=LD_LIBRARY_PATH
15370   else
15371     # With GCC up to 2.95.x, collect2 would create an import file
15372     # for dependence libraries.  The import file would start with
15373     # the line `#! .'.  This would cause the generated library to
15374     # depend on `.', always an invalid library.  This was fixed in
15375     # development snapshots of GCC prior to 3.0.
15376     case $host_os in
15377       aix4 | aix4.[01] | aix4.[01].*)
15378       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15379            echo ' yes '
15380            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15381         :
15382       else
15383         can_build_shared=no
15384       fi
15385       ;;
15386     esac
15387     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15388     # soname into executable. Probably we can add versioning support to
15389     # collect2, so additional links can be useful in future.
15390     if test "$aix_use_runtimelinking" = yes; then
15391       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15392       # instead of lib<name>.a to let people know that these are not
15393       # typical AIX shared libraries.
15394       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395     else
15396       # We preserve .a as extension for shared libraries through AIX4.2
15397       # and later when we are not doing run time linking.
15398       library_names_spec='${libname}${release}.a $libname.a'
15399       soname_spec='${libname}${release}${shared_ext}$major'
15400     fi
15401     shlibpath_var=LIBPATH
15402   fi
15403   ;;
15404
15405 amigaos*)
15406   case $host_cpu in
15407   powerpc)
15408     # Since July 2007 AmigaOS4 officially supports .so libraries.
15409     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15410     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15411     ;;
15412   m68k)
15413     library_names_spec='$libname.ixlibrary $libname.a'
15414     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15415     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
15416     ;;
15417   esac
15418   ;;
15419
15420 beos*)
15421   library_names_spec='${libname}${shared_ext}'
15422   dynamic_linker="$host_os ld.so"
15423   shlibpath_var=LIBRARY_PATH
15424   ;;
15425
15426 bsdi[45]*)
15427   version_type=linux
15428   need_version=no
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430   soname_spec='${libname}${release}${shared_ext}$major'
15431   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15432   shlibpath_var=LD_LIBRARY_PATH
15433   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15434   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15435   # the default ld.so.conf also contains /usr/contrib/lib and
15436   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15437   # libtool to hard-code these into programs
15438   ;;
15439
15440 cygwin* | mingw* | pw32* | cegcc*)
15441   version_type=windows
15442   shrext_cmds=".dll"
15443   need_version=no
15444   need_lib_prefix=no
15445
15446   case $GCC,$cc_basename in
15447   yes,*)
15448     # gcc
15449     library_names_spec='$libname.dll.a'
15450     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15451     postinstall_cmds='base_file=`basename \${file}`~
15452       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15453       dldir=$destdir/`dirname \$dlpath`~
15454       test -d \$dldir || mkdir -p \$dldir~
15455       $install_prog $dir/$dlname \$dldir/$dlname~
15456       chmod a+x \$dldir/$dlname~
15457       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15458         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15459       fi'
15460     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15461       dlpath=$dir/\$dldll~
15462        $RM \$dlpath'
15463     shlibpath_overrides_runpath=yes
15464
15465     case $host_os in
15466     cygwin*)
15467       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15468       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15469
15470       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15471       ;;
15472     mingw* | cegcc*)
15473       # MinGW DLLs use traditional 'lib' prefix
15474       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15475       ;;
15476     pw32*)
15477       # pw32 DLLs use 'pw' prefix rather than 'lib'
15478       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15479       ;;
15480     esac
15481     dynamic_linker='Win32 ld.exe'
15482     ;;
15483
15484   *,cl*)
15485     # Native MSVC
15486     libname_spec='$name'
15487     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15488     library_names_spec='${libname}.dll.lib'
15489
15490     case $build_os in
15491     mingw*)
15492       sys_lib_search_path_spec=
15493       lt_save_ifs=$IFS
15494       IFS=';'
15495       for lt_path in $LIB
15496       do
15497         IFS=$lt_save_ifs
15498         # Let DOS variable expansion print the short 8.3 style file name.
15499         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15500         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15501       done
15502       IFS=$lt_save_ifs
15503       # Convert to MSYS style.
15504       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15505       ;;
15506     cygwin*)
15507       # Convert to unix form, then to dos form, then back to unix form
15508       # but this time dos style (no spaces!) so that the unix form looks
15509       # like /cygdrive/c/PROGRA~1:/cygdr...
15510       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15511       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15512       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15513       ;;
15514     *)
15515       sys_lib_search_path_spec="$LIB"
15516       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15517         # It is most probably a Windows format PATH.
15518         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15519       else
15520         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15521       fi
15522       # FIXME: find the short name or the path components, as spaces are
15523       # common. (e.g. "Program Files" -> "PROGRA~1")
15524       ;;
15525     esac
15526
15527     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15528     postinstall_cmds='base_file=`basename \${file}`~
15529       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15530       dldir=$destdir/`dirname \$dlpath`~
15531       test -d \$dldir || mkdir -p \$dldir~
15532       $install_prog $dir/$dlname \$dldir/$dlname'
15533     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15534       dlpath=$dir/\$dldll~
15535        $RM \$dlpath'
15536     shlibpath_overrides_runpath=yes
15537     dynamic_linker='Win32 link.exe'
15538     ;;
15539
15540   *)
15541     # Assume MSVC wrapper
15542     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15543     dynamic_linker='Win32 ld.exe'
15544     ;;
15545   esac
15546   # FIXME: first we should search . and the directory the executable is in
15547   shlibpath_var=PATH
15548   ;;
15549
15550 darwin* | rhapsody*)
15551   dynamic_linker="$host_os dyld"
15552   version_type=darwin
15553   need_lib_prefix=no
15554   need_version=no
15555   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15556   soname_spec='${libname}${release}${major}$shared_ext'
15557   shlibpath_overrides_runpath=yes
15558   shlibpath_var=DYLD_LIBRARY_PATH
15559   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15560
15561   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15562   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15563   ;;
15564
15565 dgux*)
15566   version_type=linux
15567   need_lib_prefix=no
15568   need_version=no
15569   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15570   soname_spec='${libname}${release}${shared_ext}$major'
15571   shlibpath_var=LD_LIBRARY_PATH
15572   ;;
15573
15574 freebsd1*)
15575   dynamic_linker=no
15576   ;;
15577
15578 freebsd* | dragonfly*)
15579   # DragonFly does not have aout.  When/if they implement a new
15580   # versioning mechanism, adjust this.
15581   if test -x /usr/bin/objformat; then
15582     objformat=`/usr/bin/objformat`
15583   else
15584     case $host_os in
15585     freebsd[123]*) objformat=aout ;;
15586     *) objformat=elf ;;
15587     esac
15588   fi
15589   version_type=freebsd-$objformat
15590   case $version_type in
15591     freebsd-elf*)
15592       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15593       need_version=no
15594       need_lib_prefix=no
15595       ;;
15596     freebsd-*)
15597       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15598       need_version=yes
15599       ;;
15600   esac
15601   shlibpath_var=LD_LIBRARY_PATH
15602   case $host_os in
15603   freebsd2*)
15604     shlibpath_overrides_runpath=yes
15605     ;;
15606   freebsd3.[01]* | freebsdelf3.[01]*)
15607     shlibpath_overrides_runpath=yes
15608     hardcode_into_libs=yes
15609     ;;
15610   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15611   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15612     shlibpath_overrides_runpath=no
15613     hardcode_into_libs=yes
15614     ;;
15615   *) # from 4.6 on, and DragonFly
15616     shlibpath_overrides_runpath=yes
15617     hardcode_into_libs=yes
15618     ;;
15619   esac
15620   ;;
15621
15622 gnu*)
15623   version_type=linux
15624   need_lib_prefix=no
15625   need_version=no
15626   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15627   soname_spec='${libname}${release}${shared_ext}$major'
15628   shlibpath_var=LD_LIBRARY_PATH
15629   hardcode_into_libs=yes
15630   ;;
15631
15632 haiku*)
15633   version_type=linux
15634   need_lib_prefix=no
15635   need_version=no
15636   dynamic_linker="$host_os runtime_loader"
15637   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15638   soname_spec='${libname}${release}${shared_ext}$major'
15639   shlibpath_var=LIBRARY_PATH
15640   shlibpath_overrides_runpath=yes
15641   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15642   hardcode_into_libs=yes
15643   ;;
15644
15645 hpux9* | hpux10* | hpux11*)
15646   # Give a soname corresponding to the major version so that dld.sl refuses to
15647   # link against other versions.
15648   version_type=sunos
15649   need_lib_prefix=no
15650   need_version=no
15651   case $host_cpu in
15652   ia64*)
15653     shrext_cmds='.so'
15654     hardcode_into_libs=yes
15655     dynamic_linker="$host_os dld.so"
15656     shlibpath_var=LD_LIBRARY_PATH
15657     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15659     soname_spec='${libname}${release}${shared_ext}$major'
15660     if test "X$HPUX_IA64_MODE" = X32; then
15661       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15662     else
15663       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15664     fi
15665     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15666     ;;
15667   hppa*64*)
15668     shrext_cmds='.sl'
15669     hardcode_into_libs=yes
15670     dynamic_linker="$host_os dld.sl"
15671     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15672     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15673     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15674     soname_spec='${libname}${release}${shared_ext}$major'
15675     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15676     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15677     ;;
15678   *)
15679     shrext_cmds='.sl'
15680     dynamic_linker="$host_os dld.sl"
15681     shlibpath_var=SHLIB_PATH
15682     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15683     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684     soname_spec='${libname}${release}${shared_ext}$major'
15685     ;;
15686   esac
15687   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15688   postinstall_cmds='chmod 555 $lib'
15689   # or fails outright, so override atomically:
15690   install_override_mode=555
15691   ;;
15692
15693 interix[3-9]*)
15694   version_type=linux
15695   need_lib_prefix=no
15696   need_version=no
15697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15698   soname_spec='${libname}${release}${shared_ext}$major'
15699   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15700   shlibpath_var=LD_LIBRARY_PATH
15701   shlibpath_overrides_runpath=no
15702   hardcode_into_libs=yes
15703   ;;
15704
15705 irix5* | irix6* | nonstopux*)
15706   case $host_os in
15707     nonstopux*) version_type=nonstopux ;;
15708     *)
15709         if test "$lt_cv_prog_gnu_ld" = yes; then
15710                 version_type=linux
15711         else
15712                 version_type=irix
15713         fi ;;
15714   esac
15715   need_lib_prefix=no
15716   need_version=no
15717   soname_spec='${libname}${release}${shared_ext}$major'
15718   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15719   case $host_os in
15720   irix5* | nonstopux*)
15721     libsuff= shlibsuff=
15722     ;;
15723   *)
15724     case $LD in # libtool.m4 will add one of these switches to LD
15725     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15726       libsuff= shlibsuff= libmagic=32-bit;;
15727     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15728       libsuff=32 shlibsuff=N32 libmagic=N32;;
15729     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15730       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15731     *) libsuff= shlibsuff= libmagic=never-match;;
15732     esac
15733     ;;
15734   esac
15735   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15736   shlibpath_overrides_runpath=no
15737   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15738   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15739   hardcode_into_libs=yes
15740   ;;
15741
15742 # No shared lib support for Linux oldld, aout, or coff.
15743 linux*oldld* | linux*aout* | linux*coff*)
15744   dynamic_linker=no
15745   ;;
15746
15747 # This must be Linux ELF.
15748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15749   version_type=linux
15750   need_lib_prefix=no
15751   need_version=no
15752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753   soname_spec='${libname}${release}${shared_ext}$major'
15754   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15755   shlibpath_var=LD_LIBRARY_PATH
15756   shlibpath_overrides_runpath=no
15757
15758   # Some binutils ld are patched to set DT_RUNPATH
15759   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15760   $as_echo_n "(cached) " >&6
15761 else
15762   lt_cv_shlibpath_overrides_runpath=no
15763     save_LDFLAGS=$LDFLAGS
15764     save_libdir=$libdir
15765     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15766          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15768 /* end confdefs.h.  */
15769
15770 int
15771 main ()
15772 {
15773
15774   ;
15775   return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_link "$LINENO"; then :
15779   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15780   lt_cv_shlibpath_overrides_runpath=yes
15781 fi
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext \
15784     conftest$ac_exeext conftest.$ac_ext
15785     LDFLAGS=$save_LDFLAGS
15786     libdir=$save_libdir
15787
15788 fi
15789
15790   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15791
15792   # This implies no fast_install, which is unacceptable.
15793   # Some rework will be needed to allow for fast_install
15794   # before this can be enabled.
15795   hardcode_into_libs=yes
15796
15797   # Add ABI-specific directories to the system library path.
15798   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15799
15800   # Append ld.so.conf contents to the search path
15801   if test -f /etc/ld.so.conf; then
15802     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' ' '`
15803     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15804
15805   fi
15806
15807   # We used to test for /lib/ld.so.1 and disable shared libraries on
15808   # powerpc, because MkLinux only supported shared libraries with the
15809   # GNU dynamic linker.  Since this was broken with cross compilers,
15810   # most powerpc-linux boxes support dynamic linking these days and
15811   # people can always --disable-shared, the test was removed, and we
15812   # assume the GNU/Linux dynamic linker is in use.
15813   dynamic_linker='GNU/Linux ld.so'
15814   ;;
15815
15816 netbsd*)
15817   version_type=sunos
15818   need_lib_prefix=no
15819   need_version=no
15820   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15821     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15822     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15823     dynamic_linker='NetBSD (a.out) ld.so'
15824   else
15825     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15826     soname_spec='${libname}${release}${shared_ext}$major'
15827     dynamic_linker='NetBSD ld.elf_so'
15828   fi
15829   shlibpath_var=LD_LIBRARY_PATH
15830   shlibpath_overrides_runpath=yes
15831   hardcode_into_libs=yes
15832   ;;
15833
15834 newsos6)
15835   version_type=linux
15836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837   shlibpath_var=LD_LIBRARY_PATH
15838   shlibpath_overrides_runpath=yes
15839   ;;
15840
15841 *nto* | *qnx*)
15842   version_type=qnx
15843   need_lib_prefix=no
15844   need_version=no
15845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15846   soname_spec='${libname}${release}${shared_ext}$major'
15847   shlibpath_var=LD_LIBRARY_PATH
15848   shlibpath_overrides_runpath=no
15849   hardcode_into_libs=yes
15850   dynamic_linker='ldqnx.so'
15851   ;;
15852
15853 openbsd*)
15854   version_type=sunos
15855   sys_lib_dlsearch_path_spec="/usr/lib"
15856   need_lib_prefix=no
15857   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15858   case $host_os in
15859     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15860     *)                          need_version=no  ;;
15861   esac
15862   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15864   shlibpath_var=LD_LIBRARY_PATH
15865   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15866     case $host_os in
15867       openbsd2.[89] | openbsd2.[89].*)
15868         shlibpath_overrides_runpath=no
15869         ;;
15870       *)
15871         shlibpath_overrides_runpath=yes
15872         ;;
15873       esac
15874   else
15875     shlibpath_overrides_runpath=yes
15876   fi
15877   ;;
15878
15879 os2*)
15880   libname_spec='$name'
15881   shrext_cmds=".dll"
15882   need_lib_prefix=no
15883   library_names_spec='$libname${shared_ext} $libname.a'
15884   dynamic_linker='OS/2 ld.exe'
15885   shlibpath_var=LIBPATH
15886   ;;
15887
15888 osf3* | osf4* | osf5*)
15889   version_type=osf
15890   need_lib_prefix=no
15891   need_version=no
15892   soname_spec='${libname}${release}${shared_ext}$major'
15893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894   shlibpath_var=LD_LIBRARY_PATH
15895   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15896   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15897   ;;
15898
15899 rdos*)
15900   dynamic_linker=no
15901   ;;
15902
15903 solaris*)
15904   version_type=linux
15905   need_lib_prefix=no
15906   need_version=no
15907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15908   soname_spec='${libname}${release}${shared_ext}$major'
15909   shlibpath_var=LD_LIBRARY_PATH
15910   shlibpath_overrides_runpath=yes
15911   hardcode_into_libs=yes
15912   # ldd complains unless libraries are executable
15913   postinstall_cmds='chmod +x $lib'
15914   ;;
15915
15916 sunos4*)
15917   version_type=sunos
15918   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15919   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15920   shlibpath_var=LD_LIBRARY_PATH
15921   shlibpath_overrides_runpath=yes
15922   if test "$with_gnu_ld" = yes; then
15923     need_lib_prefix=no
15924   fi
15925   need_version=yes
15926   ;;
15927
15928 sysv4 | sysv4.3*)
15929   version_type=linux
15930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15931   soname_spec='${libname}${release}${shared_ext}$major'
15932   shlibpath_var=LD_LIBRARY_PATH
15933   case $host_vendor in
15934     sni)
15935       shlibpath_overrides_runpath=no
15936       need_lib_prefix=no
15937       runpath_var=LD_RUN_PATH
15938       ;;
15939     siemens)
15940       need_lib_prefix=no
15941       ;;
15942     motorola)
15943       need_lib_prefix=no
15944       need_version=no
15945       shlibpath_overrides_runpath=no
15946       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15947       ;;
15948   esac
15949   ;;
15950
15951 sysv4*MP*)
15952   if test -d /usr/nec ;then
15953     version_type=linux
15954     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15955     soname_spec='$libname${shared_ext}.$major'
15956     shlibpath_var=LD_LIBRARY_PATH
15957   fi
15958   ;;
15959
15960 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15961   version_type=freebsd-elf
15962   need_lib_prefix=no
15963   need_version=no
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15965   soname_spec='${libname}${release}${shared_ext}$major'
15966   shlibpath_var=LD_LIBRARY_PATH
15967   shlibpath_overrides_runpath=yes
15968   hardcode_into_libs=yes
15969   if test "$with_gnu_ld" = yes; then
15970     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15971   else
15972     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15973     case $host_os in
15974       sco3.2v5*)
15975         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15976         ;;
15977     esac
15978   fi
15979   sys_lib_dlsearch_path_spec='/usr/lib'
15980   ;;
15981
15982 tpf*)
15983   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15984   version_type=linux
15985   need_lib_prefix=no
15986   need_version=no
15987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15988   shlibpath_var=LD_LIBRARY_PATH
15989   shlibpath_overrides_runpath=no
15990   hardcode_into_libs=yes
15991   ;;
15992
15993 uts4*)
15994   version_type=linux
15995   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15996   soname_spec='${libname}${release}${shared_ext}$major'
15997   shlibpath_var=LD_LIBRARY_PATH
15998   ;;
15999
16000 *)
16001   dynamic_linker=no
16002   ;;
16003 esac
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16005 $as_echo "$dynamic_linker" >&6; }
16006 test "$dynamic_linker" = no && can_build_shared=no
16007
16008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16009 if test "$GCC" = yes; then
16010   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16011 fi
16012
16013 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16014   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16015 fi
16016 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16017   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16018 fi
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
16045
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16112 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16113 hardcode_action=
16114 if test -n "$hardcode_libdir_flag_spec" ||
16115    test -n "$runpath_var" ||
16116    test "X$hardcode_automatic" = "Xyes" ; then
16117
16118   # We can hardcode non-existent directories.
16119   if test "$hardcode_direct" != no &&
16120      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16121      # have to relink, otherwise we might link with an installed library
16122      # when we should be linking with a yet-to-be-installed one
16123      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16124      test "$hardcode_minus_L" != no; then
16125     # Linking always hardcodes the temporary library directory.
16126     hardcode_action=relink
16127   else
16128     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16129     hardcode_action=immediate
16130   fi
16131 else
16132   # We cannot hardcode anything, or else we can only hardcode existing
16133   # directories.
16134   hardcode_action=unsupported
16135 fi
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16137 $as_echo "$hardcode_action" >&6; }
16138
16139 if test "$hardcode_action" = relink ||
16140    test "$inherit_rpath" = yes; then
16141   # Fast installation is not supported
16142   enable_fast_install=no
16143 elif test "$shlibpath_overrides_runpath" = yes ||
16144      test "$enable_shared" = no; then
16145   # Fast installation is not necessary
16146   enable_fast_install=needless
16147 fi
16148
16149
16150
16151
16152
16153
16154   if test "x$enable_dlopen" != xyes; then
16155   enable_dlopen=unknown
16156   enable_dlopen_self=unknown
16157   enable_dlopen_self_static=unknown
16158 else
16159   lt_cv_dlopen=no
16160   lt_cv_dlopen_libs=
16161
16162   case $host_os in
16163   beos*)
16164     lt_cv_dlopen="load_add_on"
16165     lt_cv_dlopen_libs=
16166     lt_cv_dlopen_self=yes
16167     ;;
16168
16169   mingw* | pw32* | cegcc*)
16170     lt_cv_dlopen="LoadLibrary"
16171     lt_cv_dlopen_libs=
16172     ;;
16173
16174   cygwin*)
16175     lt_cv_dlopen="dlopen"
16176     lt_cv_dlopen_libs=
16177     ;;
16178
16179   darwin*)
16180   # if libdl is installed we need to link against it
16181     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16182 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16183 if ${ac_cv_lib_dl_dlopen+:} false; then :
16184   $as_echo_n "(cached) " >&6
16185 else
16186   ac_check_lib_save_LIBS=$LIBS
16187 LIBS="-ldl  $LIBS"
16188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16189 /* end confdefs.h.  */
16190
16191 /* Override any GCC internal prototype to avoid an error.
16192    Use char because int might match the return type of a GCC
16193    builtin and then its argument prototype would still apply.  */
16194 #ifdef __cplusplus
16195 extern "C"
16196 #endif
16197 char dlopen ();
16198 int
16199 main ()
16200 {
16201 return dlopen ();
16202   ;
16203   return 0;
16204 }
16205 _ACEOF
16206 if ac_fn_c_try_link "$LINENO"; then :
16207   ac_cv_lib_dl_dlopen=yes
16208 else
16209   ac_cv_lib_dl_dlopen=no
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext \
16212     conftest$ac_exeext conftest.$ac_ext
16213 LIBS=$ac_check_lib_save_LIBS
16214 fi
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16216 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16217 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16218   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16219 else
16220
16221     lt_cv_dlopen="dyld"
16222     lt_cv_dlopen_libs=
16223     lt_cv_dlopen_self=yes
16224
16225 fi
16226
16227     ;;
16228
16229   *)
16230     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16231 if test "x$ac_cv_func_shl_load" = xyes; then :
16232   lt_cv_dlopen="shl_load"
16233 else
16234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16235 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16236 if ${ac_cv_lib_dld_shl_load+:} false; then :
16237   $as_echo_n "(cached) " >&6
16238 else
16239   ac_check_lib_save_LIBS=$LIBS
16240 LIBS="-ldld  $LIBS"
16241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16242 /* end confdefs.h.  */
16243
16244 /* Override any GCC internal prototype to avoid an error.
16245    Use char because int might match the return type of a GCC
16246    builtin and then its argument prototype would still apply.  */
16247 #ifdef __cplusplus
16248 extern "C"
16249 #endif
16250 char shl_load ();
16251 int
16252 main ()
16253 {
16254 return shl_load ();
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 if ac_fn_c_try_link "$LINENO"; then :
16260   ac_cv_lib_dld_shl_load=yes
16261 else
16262   ac_cv_lib_dld_shl_load=no
16263 fi
16264 rm -f core conftest.err conftest.$ac_objext \
16265     conftest$ac_exeext conftest.$ac_ext
16266 LIBS=$ac_check_lib_save_LIBS
16267 fi
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16269 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16270 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16271   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16272 else
16273   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16274 if test "x$ac_cv_func_dlopen" = xyes; then :
16275   lt_cv_dlopen="dlopen"
16276 else
16277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16278 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16279 if ${ac_cv_lib_dl_dlopen+:} false; then :
16280   $as_echo_n "(cached) " >&6
16281 else
16282   ac_check_lib_save_LIBS=$LIBS
16283 LIBS="-ldl  $LIBS"
16284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16285 /* end confdefs.h.  */
16286
16287 /* Override any GCC internal prototype to avoid an error.
16288    Use char because int might match the return type of a GCC
16289    builtin and then its argument prototype would still apply.  */
16290 #ifdef __cplusplus
16291 extern "C"
16292 #endif
16293 char dlopen ();
16294 int
16295 main ()
16296 {
16297 return dlopen ();
16298   ;
16299   return 0;
16300 }
16301 _ACEOF
16302 if ac_fn_c_try_link "$LINENO"; then :
16303   ac_cv_lib_dl_dlopen=yes
16304 else
16305   ac_cv_lib_dl_dlopen=no
16306 fi
16307 rm -f core conftest.err conftest.$ac_objext \
16308     conftest$ac_exeext conftest.$ac_ext
16309 LIBS=$ac_check_lib_save_LIBS
16310 fi
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16312 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16313 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16314   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16315 else
16316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16317 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16318 if ${ac_cv_lib_svld_dlopen+:} false; then :
16319   $as_echo_n "(cached) " >&6
16320 else
16321   ac_check_lib_save_LIBS=$LIBS
16322 LIBS="-lsvld  $LIBS"
16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16324 /* end confdefs.h.  */
16325
16326 /* Override any GCC internal prototype to avoid an error.
16327    Use char because int might match the return type of a GCC
16328    builtin and then its argument prototype would still apply.  */
16329 #ifdef __cplusplus
16330 extern "C"
16331 #endif
16332 char dlopen ();
16333 int
16334 main ()
16335 {
16336 return dlopen ();
16337   ;
16338   return 0;
16339 }
16340 _ACEOF
16341 if ac_fn_c_try_link "$LINENO"; then :
16342   ac_cv_lib_svld_dlopen=yes
16343 else
16344   ac_cv_lib_svld_dlopen=no
16345 fi
16346 rm -f core conftest.err conftest.$ac_objext \
16347     conftest$ac_exeext conftest.$ac_ext
16348 LIBS=$ac_check_lib_save_LIBS
16349 fi
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16351 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16352 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16353   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16354 else
16355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16356 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16357 if ${ac_cv_lib_dld_dld_link+:} false; then :
16358   $as_echo_n "(cached) " >&6
16359 else
16360   ac_check_lib_save_LIBS=$LIBS
16361 LIBS="-ldld  $LIBS"
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h.  */
16364
16365 /* Override any GCC internal prototype to avoid an error.
16366    Use char because int might match the return type of a GCC
16367    builtin and then its argument prototype would still apply.  */
16368 #ifdef __cplusplus
16369 extern "C"
16370 #endif
16371 char dld_link ();
16372 int
16373 main ()
16374 {
16375 return dld_link ();
16376   ;
16377   return 0;
16378 }
16379 _ACEOF
16380 if ac_fn_c_try_link "$LINENO"; then :
16381   ac_cv_lib_dld_dld_link=yes
16382 else
16383   ac_cv_lib_dld_dld_link=no
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext \
16386     conftest$ac_exeext conftest.$ac_ext
16387 LIBS=$ac_check_lib_save_LIBS
16388 fi
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16390 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16391 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16392   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16393 fi
16394
16395
16396 fi
16397
16398
16399 fi
16400
16401
16402 fi
16403
16404
16405 fi
16406
16407
16408 fi
16409
16410     ;;
16411   esac
16412
16413   if test "x$lt_cv_dlopen" != xno; then
16414     enable_dlopen=yes
16415   else
16416     enable_dlopen=no
16417   fi
16418
16419   case $lt_cv_dlopen in
16420   dlopen)
16421     save_CPPFLAGS="$CPPFLAGS"
16422     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16423
16424     save_LDFLAGS="$LDFLAGS"
16425     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16426
16427     save_LIBS="$LIBS"
16428     LIBS="$lt_cv_dlopen_libs $LIBS"
16429
16430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16431 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16432 if ${lt_cv_dlopen_self+:} false; then :
16433   $as_echo_n "(cached) " >&6
16434 else
16435           if test "$cross_compiling" = yes; then :
16436   lt_cv_dlopen_self=cross
16437 else
16438   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16439   lt_status=$lt_dlunknown
16440   cat > conftest.$ac_ext <<_LT_EOF
16441 #line $LINENO "configure"
16442 #include "confdefs.h"
16443
16444 #if HAVE_DLFCN_H
16445 #include <dlfcn.h>
16446 #endif
16447
16448 #include <stdio.h>
16449
16450 #ifdef RTLD_GLOBAL
16451 #  define LT_DLGLOBAL           RTLD_GLOBAL
16452 #else
16453 #  ifdef DL_GLOBAL
16454 #    define LT_DLGLOBAL         DL_GLOBAL
16455 #  else
16456 #    define LT_DLGLOBAL         0
16457 #  endif
16458 #endif
16459
16460 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16461    find out it does not work in some platform. */
16462 #ifndef LT_DLLAZY_OR_NOW
16463 #  ifdef RTLD_LAZY
16464 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16465 #  else
16466 #    ifdef DL_LAZY
16467 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16468 #    else
16469 #      ifdef RTLD_NOW
16470 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16471 #      else
16472 #        ifdef DL_NOW
16473 #          define LT_DLLAZY_OR_NOW      DL_NOW
16474 #        else
16475 #          define LT_DLLAZY_OR_NOW      0
16476 #        endif
16477 #      endif
16478 #    endif
16479 #  endif
16480 #endif
16481
16482 /* When -fvisbility=hidden is used, assume the code has been annotated
16483    correspondingly for the symbols needed.  */
16484 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16485 int fnord () __attribute__((visibility("default")));
16486 #endif
16487
16488 int fnord () { return 42; }
16489 int main ()
16490 {
16491   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16492   int status = $lt_dlunknown;
16493
16494   if (self)
16495     {
16496       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16497       else
16498         {
16499           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16500           else puts (dlerror ());
16501         }
16502       /* dlclose (self); */
16503     }
16504   else
16505     puts (dlerror ());
16506
16507   return status;
16508 }
16509 _LT_EOF
16510   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16511   (eval $ac_link) 2>&5
16512   ac_status=$?
16513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16514   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16515     (./conftest; exit; ) >&5 2>/dev/null
16516     lt_status=$?
16517     case x$lt_status in
16518       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16519       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16520       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16521     esac
16522   else :
16523     # compilation failed
16524     lt_cv_dlopen_self=no
16525   fi
16526 fi
16527 rm -fr conftest*
16528
16529
16530 fi
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16532 $as_echo "$lt_cv_dlopen_self" >&6; }
16533
16534     if test "x$lt_cv_dlopen_self" = xyes; then
16535       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16536       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16537 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16538 if ${lt_cv_dlopen_self_static+:} false; then :
16539   $as_echo_n "(cached) " >&6
16540 else
16541           if test "$cross_compiling" = yes; then :
16542   lt_cv_dlopen_self_static=cross
16543 else
16544   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16545   lt_status=$lt_dlunknown
16546   cat > conftest.$ac_ext <<_LT_EOF
16547 #line $LINENO "configure"
16548 #include "confdefs.h"
16549
16550 #if HAVE_DLFCN_H
16551 #include <dlfcn.h>
16552 #endif
16553
16554 #include <stdio.h>
16555
16556 #ifdef RTLD_GLOBAL
16557 #  define LT_DLGLOBAL           RTLD_GLOBAL
16558 #else
16559 #  ifdef DL_GLOBAL
16560 #    define LT_DLGLOBAL         DL_GLOBAL
16561 #  else
16562 #    define LT_DLGLOBAL         0
16563 #  endif
16564 #endif
16565
16566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16567    find out it does not work in some platform. */
16568 #ifndef LT_DLLAZY_OR_NOW
16569 #  ifdef RTLD_LAZY
16570 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16571 #  else
16572 #    ifdef DL_LAZY
16573 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16574 #    else
16575 #      ifdef RTLD_NOW
16576 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16577 #      else
16578 #        ifdef DL_NOW
16579 #          define LT_DLLAZY_OR_NOW      DL_NOW
16580 #        else
16581 #          define LT_DLLAZY_OR_NOW      0
16582 #        endif
16583 #      endif
16584 #    endif
16585 #  endif
16586 #endif
16587
16588 /* When -fvisbility=hidden is used, assume the code has been annotated
16589    correspondingly for the symbols needed.  */
16590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16591 int fnord () __attribute__((visibility("default")));
16592 #endif
16593
16594 int fnord () { return 42; }
16595 int main ()
16596 {
16597   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16598   int status = $lt_dlunknown;
16599
16600   if (self)
16601     {
16602       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16603       else
16604         {
16605           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16606           else puts (dlerror ());
16607         }
16608       /* dlclose (self); */
16609     }
16610   else
16611     puts (dlerror ());
16612
16613   return status;
16614 }
16615 _LT_EOF
16616   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16617   (eval $ac_link) 2>&5
16618   ac_status=$?
16619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16621     (./conftest; exit; ) >&5 2>/dev/null
16622     lt_status=$?
16623     case x$lt_status in
16624       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16625       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16626       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16627     esac
16628   else :
16629     # compilation failed
16630     lt_cv_dlopen_self_static=no
16631   fi
16632 fi
16633 rm -fr conftest*
16634
16635
16636 fi
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16638 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16639     fi
16640
16641     CPPFLAGS="$save_CPPFLAGS"
16642     LDFLAGS="$save_LDFLAGS"
16643     LIBS="$save_LIBS"
16644     ;;
16645   esac
16646
16647   case $lt_cv_dlopen_self in
16648   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16649   *) enable_dlopen_self=unknown ;;
16650   esac
16651
16652   case $lt_cv_dlopen_self_static in
16653   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16654   *) enable_dlopen_self_static=unknown ;;
16655   esac
16656 fi
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671
16672
16673
16674 striplib=
16675 old_striplib=
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16677 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16678 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16679   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16680   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16682 $as_echo "yes" >&6; }
16683 else
16684 # FIXME - insert some real tests, host_os isn't really good enough
16685   case $host_os in
16686   darwin*)
16687     if test -n "$STRIP" ; then
16688       striplib="$STRIP -x"
16689       old_striplib="$STRIP -S"
16690       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691 $as_echo "yes" >&6; }
16692     else
16693       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16694 $as_echo "no" >&6; }
16695     fi
16696     ;;
16697   *)
16698     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699 $as_echo "no" >&6; }
16700     ;;
16701   esac
16702 fi
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715   # Report which library types will actually be built
16716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16717 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16719 $as_echo "$can_build_shared" >&6; }
16720
16721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16722 $as_echo_n "checking whether to build shared libraries... " >&6; }
16723   test "$can_build_shared" = "no" && enable_shared=no
16724
16725   # On AIX, shared libraries and static libraries use the same namespace, and
16726   # are all built from PIC.
16727   case $host_os in
16728   aix3*)
16729     test "$enable_shared" = yes && enable_static=no
16730     if test -n "$RANLIB"; then
16731       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16732       postinstall_cmds='$RANLIB $lib'
16733     fi
16734     ;;
16735
16736   aix[4-9]*)
16737     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16738       test "$enable_shared" = yes && enable_static=no
16739     fi
16740     ;;
16741   esac
16742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16743 $as_echo "$enable_shared" >&6; }
16744
16745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16746 $as_echo_n "checking whether to build static libraries... " >&6; }
16747   # Make sure either enable_shared or enable_static is yes.
16748   test "$enable_shared" = yes || enable_static=yes
16749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16750 $as_echo "$enable_static" >&6; }
16751
16752
16753
16754
16755 fi
16756 ac_ext=c
16757 ac_cpp='$CPP $CPPFLAGS'
16758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16761
16762 CC="$lt_save_CC"
16763
16764       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16765     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16766     (test "X$CXX" != "Xg++"))) ; then
16767   ac_ext=cpp
16768 ac_cpp='$CXXCPP $CPPFLAGS'
16769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16773 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16774 if test -z "$CXXCPP"; then
16775   if ${ac_cv_prog_CXXCPP+:} false; then :
16776   $as_echo_n "(cached) " >&6
16777 else
16778       # Double quotes because CXXCPP needs to be expanded
16779     for CXXCPP in "$CXX -E" "/lib/cpp"
16780     do
16781       ac_preproc_ok=false
16782 for ac_cxx_preproc_warn_flag in '' yes
16783 do
16784   # Use a header file that comes with gcc, so configuring glibc
16785   # with a fresh cross-compiler works.
16786   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16787   # <limits.h> exists even on freestanding compilers.
16788   # On the NeXT, cc -E runs the code through the compiler's parser,
16789   # not just through cpp. "Syntax error" is here to catch this case.
16790   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16791 /* end confdefs.h.  */
16792 #ifdef __STDC__
16793 # include <limits.h>
16794 #else
16795 # include <assert.h>
16796 #endif
16797                      Syntax error
16798 _ACEOF
16799 if ac_fn_cxx_try_cpp "$LINENO"; then :
16800
16801 else
16802   # Broken: fails on valid input.
16803 continue
16804 fi
16805 rm -f conftest.err conftest.i conftest.$ac_ext
16806
16807   # OK, works on sane cases.  Now check whether nonexistent headers
16808   # can be detected and how.
16809   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16810 /* end confdefs.h.  */
16811 #include <ac_nonexistent.h>
16812 _ACEOF
16813 if ac_fn_cxx_try_cpp "$LINENO"; then :
16814   # Broken: success on invalid input.
16815 continue
16816 else
16817   # Passes both tests.
16818 ac_preproc_ok=:
16819 break
16820 fi
16821 rm -f conftest.err conftest.i conftest.$ac_ext
16822
16823 done
16824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16825 rm -f conftest.i conftest.err conftest.$ac_ext
16826 if $ac_preproc_ok; then :
16827   break
16828 fi
16829
16830     done
16831     ac_cv_prog_CXXCPP=$CXXCPP
16832
16833 fi
16834   CXXCPP=$ac_cv_prog_CXXCPP
16835 else
16836   ac_cv_prog_CXXCPP=$CXXCPP
16837 fi
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16839 $as_echo "$CXXCPP" >&6; }
16840 ac_preproc_ok=false
16841 for ac_cxx_preproc_warn_flag in '' yes
16842 do
16843   # Use a header file that comes with gcc, so configuring glibc
16844   # with a fresh cross-compiler works.
16845   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846   # <limits.h> exists even on freestanding compilers.
16847   # On the NeXT, cc -E runs the code through the compiler's parser,
16848   # not just through cpp. "Syntax error" is here to catch this case.
16849   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16850 /* end confdefs.h.  */
16851 #ifdef __STDC__
16852 # include <limits.h>
16853 #else
16854 # include <assert.h>
16855 #endif
16856                      Syntax error
16857 _ACEOF
16858 if ac_fn_cxx_try_cpp "$LINENO"; then :
16859
16860 else
16861   # Broken: fails on valid input.
16862 continue
16863 fi
16864 rm -f conftest.err conftest.i conftest.$ac_ext
16865
16866   # OK, works on sane cases.  Now check whether nonexistent headers
16867   # can be detected and how.
16868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h.  */
16870 #include <ac_nonexistent.h>
16871 _ACEOF
16872 if ac_fn_cxx_try_cpp "$LINENO"; then :
16873   # Broken: success on invalid input.
16874 continue
16875 else
16876   # Passes both tests.
16877 ac_preproc_ok=:
16878 break
16879 fi
16880 rm -f conftest.err conftest.i conftest.$ac_ext
16881
16882 done
16883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16884 rm -f conftest.i conftest.err conftest.$ac_ext
16885 if $ac_preproc_ok; then :
16886
16887 else
16888   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16890 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16891 See \`config.log' for more details" "$LINENO" 5; }
16892 fi
16893
16894 ac_ext=c
16895 ac_cpp='$CPP $CPPFLAGS'
16896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16899
16900 else
16901   _lt_caught_CXX_error=yes
16902 fi
16903
16904 ac_ext=cpp
16905 ac_cpp='$CXXCPP $CPPFLAGS'
16906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16909
16910 archive_cmds_need_lc_CXX=no
16911 allow_undefined_flag_CXX=
16912 always_export_symbols_CXX=no
16913 archive_expsym_cmds_CXX=
16914 compiler_needs_object_CXX=no
16915 export_dynamic_flag_spec_CXX=
16916 hardcode_direct_CXX=no
16917 hardcode_direct_absolute_CXX=no
16918 hardcode_libdir_flag_spec_CXX=
16919 hardcode_libdir_flag_spec_ld_CXX=
16920 hardcode_libdir_separator_CXX=
16921 hardcode_minus_L_CXX=no
16922 hardcode_shlibpath_var_CXX=unsupported
16923 hardcode_automatic_CXX=no
16924 inherit_rpath_CXX=no
16925 module_cmds_CXX=
16926 module_expsym_cmds_CXX=
16927 link_all_deplibs_CXX=unknown
16928 old_archive_cmds_CXX=$old_archive_cmds
16929 reload_flag_CXX=$reload_flag
16930 reload_cmds_CXX=$reload_cmds
16931 no_undefined_flag_CXX=
16932 whole_archive_flag_spec_CXX=
16933 enable_shared_with_static_runtimes_CXX=no
16934
16935 # Source file extension for C++ test sources.
16936 ac_ext=cpp
16937
16938 # Object file extension for compiled C++ test sources.
16939 objext=o
16940 objext_CXX=$objext
16941
16942 # No sense in running all these tests if we already determined that
16943 # the CXX compiler isn't working.  Some variables (like enable_shared)
16944 # are currently assumed to apply to all compilers on this platform,
16945 # and will be corrupted by setting them based on a non-working compiler.
16946 if test "$_lt_caught_CXX_error" != yes; then
16947   # Code to be used in simple compile tests
16948   lt_simple_compile_test_code="int some_variable = 0;"
16949
16950   # Code to be used in simple link tests
16951   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16952
16953   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16954
16955
16956
16957
16958
16959
16960 # If no C compiler was specified, use CC.
16961 LTCC=${LTCC-"$CC"}
16962
16963 # If no C compiler flags were specified, use CFLAGS.
16964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16965
16966 # Allow CC to be a program name with arguments.
16967 compiler=$CC
16968
16969
16970   # save warnings/boilerplate of simple test code
16971   ac_outfile=conftest.$ac_objext
16972 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16974 _lt_compiler_boilerplate=`cat conftest.err`
16975 $RM conftest*
16976
16977   ac_outfile=conftest.$ac_objext
16978 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16980 _lt_linker_boilerplate=`cat conftest.err`
16981 $RM -r conftest*
16982
16983
16984   # Allow CC to be a program name with arguments.
16985   lt_save_CC=$CC
16986   lt_save_CFLAGS=$CFLAGS
16987   lt_save_LD=$LD
16988   lt_save_GCC=$GCC
16989   GCC=$GXX
16990   lt_save_with_gnu_ld=$with_gnu_ld
16991   lt_save_path_LD=$lt_cv_path_LD
16992   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16993     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16994   else
16995     $as_unset lt_cv_prog_gnu_ld
16996   fi
16997   if test -n "${lt_cv_path_LDCXX+set}"; then
16998     lt_cv_path_LD=$lt_cv_path_LDCXX
16999   else
17000     $as_unset lt_cv_path_LD
17001   fi
17002   test -z "${LDCXX+set}" || LD=$LDCXX
17003   CC=${CXX-"c++"}
17004   CFLAGS=$CXXFLAGS
17005   compiler=$CC
17006   compiler_CXX=$CC
17007   for cc_temp in $compiler""; do
17008   case $cc_temp in
17009     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17010     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17011     \-*) ;;
17012     *) break;;
17013   esac
17014 done
17015 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17016
17017
17018   if test -n "$compiler"; then
17019     # We don't want -fno-exception when compiling C++ code, so set the
17020     # no_builtin_flag separately
17021     if test "$GXX" = yes; then
17022       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17023     else
17024       lt_prog_compiler_no_builtin_flag_CXX=
17025     fi
17026
17027     if test "$GXX" = yes; then
17028       # Set up default GNU C++ configuration
17029
17030
17031
17032 # Check whether --with-gnu-ld was given.
17033 if test "${with_gnu_ld+set}" = set; then :
17034   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17035 else
17036   with_gnu_ld=no
17037 fi
17038
17039 ac_prog=ld
17040 if test "$GCC" = yes; then
17041   # Check if gcc -print-prog-name=ld gives a path.
17042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17043 $as_echo_n "checking for ld used by $CC... " >&6; }
17044   case $host in
17045   *-*-mingw*)
17046     # gcc leaves a trailing carriage return which upsets mingw
17047     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17048   *)
17049     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17050   esac
17051   case $ac_prog in
17052     # Accept absolute paths.
17053     [\\/]* | ?:[\\/]*)
17054       re_direlt='/[^/][^/]*/\.\./'
17055       # Canonicalize the pathname of ld
17056       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17057       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17058         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17059       done
17060       test -z "$LD" && LD="$ac_prog"
17061       ;;
17062   "")
17063     # If it fails, then pretend we aren't using GCC.
17064     ac_prog=ld
17065     ;;
17066   *)
17067     # If it is relative, then search for the first ld in PATH.
17068     with_gnu_ld=unknown
17069     ;;
17070   esac
17071 elif test "$with_gnu_ld" = yes; then
17072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17073 $as_echo_n "checking for GNU ld... " >&6; }
17074 else
17075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17076 $as_echo_n "checking for non-GNU ld... " >&6; }
17077 fi
17078 if ${lt_cv_path_LD+:} false; then :
17079   $as_echo_n "(cached) " >&6
17080 else
17081   if test -z "$LD"; then
17082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17083   for ac_dir in $PATH; do
17084     IFS="$lt_save_ifs"
17085     test -z "$ac_dir" && ac_dir=.
17086     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17087       lt_cv_path_LD="$ac_dir/$ac_prog"
17088       # Check to see if the program is GNU ld.  I'd rather use --version,
17089       # but apparently some variants of GNU ld only accept -v.
17090       # Break only if it was the GNU/non-GNU ld that we prefer.
17091       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17092       *GNU* | *'with BFD'*)
17093         test "$with_gnu_ld" != no && break
17094         ;;
17095       *)
17096         test "$with_gnu_ld" != yes && break
17097         ;;
17098       esac
17099     fi
17100   done
17101   IFS="$lt_save_ifs"
17102 else
17103   lt_cv_path_LD="$LD" # Let the user override the test with a path.
17104 fi
17105 fi
17106
17107 LD="$lt_cv_path_LD"
17108 if test -n "$LD"; then
17109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17110 $as_echo "$LD" >&6; }
17111 else
17112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17113 $as_echo "no" >&6; }
17114 fi
17115 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17117 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17118 if ${lt_cv_prog_gnu_ld+:} false; then :
17119   $as_echo_n "(cached) " >&6
17120 else
17121   # I'd rather use --version here, but apparently some GNU lds only accept -v.
17122 case `$LD -v 2>&1 </dev/null` in
17123 *GNU* | *'with BFD'*)
17124   lt_cv_prog_gnu_ld=yes
17125   ;;
17126 *)
17127   lt_cv_prog_gnu_ld=no
17128   ;;
17129 esac
17130 fi
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17132 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
17133 with_gnu_ld=$lt_cv_prog_gnu_ld
17134
17135
17136
17137
17138
17139
17140
17141       # Check if GNU C++ uses GNU ld as the underlying linker, since the
17142       # archiving commands below assume that GNU ld is being used.
17143       if test "$with_gnu_ld" = yes; then
17144         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17145         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'
17146
17147         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17148         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17149
17150         # If archive_cmds runs LD, not CC, wlarc should be empty
17151         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17152         #     investigate it a little bit more. (MM)
17153         wlarc='${wl}'
17154
17155         # ancient GNU ld didn't support --whole-archive et. al.
17156         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17157           $GREP 'no-whole-archive' > /dev/null; then
17158           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17159         else
17160           whole_archive_flag_spec_CXX=
17161         fi
17162       else
17163         with_gnu_ld=no
17164         wlarc=
17165
17166         # A generic and very simple default shared library creation
17167         # command for GNU C++ for the case where it uses the native
17168         # linker, instead of GNU ld.  If possible, this setting should
17169         # overridden to take advantage of the native linker features on
17170         # the platform it is being used on.
17171         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17172       fi
17173
17174       # Commands to make compiler produce verbose output that lists
17175       # what "hidden" libraries, object files and flags are used when
17176       # linking a shared library.
17177       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17178
17179     else
17180       GXX=no
17181       with_gnu_ld=no
17182       wlarc=
17183     fi
17184
17185     # PORTME: fill in a description of your system's C++ link characteristics
17186     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17187 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17188     ld_shlibs_CXX=yes
17189     case $host_os in
17190       aix3*)
17191         # FIXME: insert proper C++ library support
17192         ld_shlibs_CXX=no
17193         ;;
17194       aix[4-9]*)
17195         if test "$host_cpu" = ia64; then
17196           # On IA64, the linker does run time linking by default, so we don't
17197           # have to do anything special.
17198           aix_use_runtimelinking=no
17199           exp_sym_flag='-Bexport'
17200           no_entry_flag=""
17201         else
17202           aix_use_runtimelinking=no
17203
17204           # Test if we are trying to use run time linking or normal
17205           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17206           # need to do runtime linking.
17207           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17208             for ld_flag in $LDFLAGS; do
17209               case $ld_flag in
17210               *-brtl*)
17211                 aix_use_runtimelinking=yes
17212                 break
17213                 ;;
17214               esac
17215             done
17216             ;;
17217           esac
17218
17219           exp_sym_flag='-bexport'
17220           no_entry_flag='-bnoentry'
17221         fi
17222
17223         # When large executables or shared objects are built, AIX ld can
17224         # have problems creating the table of contents.  If linking a library
17225         # or program results in "error TOC overflow" add -mminimal-toc to
17226         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17227         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17228
17229         archive_cmds_CXX=''
17230         hardcode_direct_CXX=yes
17231         hardcode_direct_absolute_CXX=yes
17232         hardcode_libdir_separator_CXX=':'
17233         link_all_deplibs_CXX=yes
17234         file_list_spec_CXX='${wl}-f,'
17235
17236         if test "$GXX" = yes; then
17237           case $host_os in aix4.[012]|aix4.[012].*)
17238           # We only want to do this on AIX 4.2 and lower, the check
17239           # below for broken collect2 doesn't work under 4.3+
17240           collect2name=`${CC} -print-prog-name=collect2`
17241           if test -f "$collect2name" &&
17242              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17243           then
17244             # We have reworked collect2
17245             :
17246           else
17247             # We have old collect2
17248             hardcode_direct_CXX=unsupported
17249             # It fails to find uninstalled libraries when the uninstalled
17250             # path is not listed in the libpath.  Setting hardcode_minus_L
17251             # to unsupported forces relinking
17252             hardcode_minus_L_CXX=yes
17253             hardcode_libdir_flag_spec_CXX='-L$libdir'
17254             hardcode_libdir_separator_CXX=
17255           fi
17256           esac
17257           shared_flag='-shared'
17258           if test "$aix_use_runtimelinking" = yes; then
17259             shared_flag="$shared_flag "'${wl}-G'
17260           fi
17261         else
17262           # not using gcc
17263           if test "$host_cpu" = ia64; then
17264           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17265           # chokes on -Wl,-G. The following line is correct:
17266           shared_flag='-G'
17267           else
17268             if test "$aix_use_runtimelinking" = yes; then
17269               shared_flag='${wl}-G'
17270             else
17271               shared_flag='${wl}-bM:SRE'
17272             fi
17273           fi
17274         fi
17275
17276         export_dynamic_flag_spec_CXX='${wl}-bexpall'
17277         # It seems that -bexpall does not export symbols beginning with
17278         # underscore (_), so it is better to generate a list of symbols to
17279         # export.
17280         always_export_symbols_CXX=yes
17281         if test "$aix_use_runtimelinking" = yes; then
17282           # Warning - without using the other runtime loading flags (-brtl),
17283           # -berok will link without error, but may produce a broken library.
17284           allow_undefined_flag_CXX='-berok'
17285           # Determine the default libpath from the value encoded in an empty
17286           # executable.
17287           if test "${lt_cv_aix_libpath+set}" = set; then
17288   aix_libpath=$lt_cv_aix_libpath
17289 else
17290   if ${lt_cv_aix_libpath__CXX+:} false; then :
17291   $as_echo_n "(cached) " >&6
17292 else
17293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17294 /* end confdefs.h.  */
17295
17296 int
17297 main ()
17298 {
17299
17300   ;
17301   return 0;
17302 }
17303 _ACEOF
17304 if ac_fn_cxx_try_link "$LINENO"; then :
17305
17306   lt_aix_libpath_sed='
17307       /Import File Strings/,/^$/ {
17308           /^0/ {
17309               s/^0  *\([^ ]*\) *$/\1/
17310               p
17311           }
17312       }'
17313   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17314   # Check for a 64-bit object if we didn't find anything.
17315   if test -z "$lt_cv_aix_libpath__CXX"; then
17316     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17317   fi
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext \
17320     conftest$ac_exeext conftest.$ac_ext
17321   if test -z "$lt_cv_aix_libpath__CXX"; then
17322     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17323   fi
17324
17325 fi
17326
17327   aix_libpath=$lt_cv_aix_libpath__CXX
17328 fi
17329
17330           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17331
17332           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17333         else
17334           if test "$host_cpu" = ia64; then
17335             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17336             allow_undefined_flag_CXX="-z nodefs"
17337             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"
17338           else
17339             # Determine the default libpath from the value encoded in an
17340             # empty executable.
17341             if test "${lt_cv_aix_libpath+set}" = set; then
17342   aix_libpath=$lt_cv_aix_libpath
17343 else
17344   if ${lt_cv_aix_libpath__CXX+:} false; then :
17345   $as_echo_n "(cached) " >&6
17346 else
17347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17348 /* end confdefs.h.  */
17349
17350 int
17351 main ()
17352 {
17353
17354   ;
17355   return 0;
17356 }
17357 _ACEOF
17358 if ac_fn_cxx_try_link "$LINENO"; then :
17359
17360   lt_aix_libpath_sed='
17361       /Import File Strings/,/^$/ {
17362           /^0/ {
17363               s/^0  *\([^ ]*\) *$/\1/
17364               p
17365           }
17366       }'
17367   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17368   # Check for a 64-bit object if we didn't find anything.
17369   if test -z "$lt_cv_aix_libpath__CXX"; then
17370     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17371   fi
17372 fi
17373 rm -f core conftest.err conftest.$ac_objext \
17374     conftest$ac_exeext conftest.$ac_ext
17375   if test -z "$lt_cv_aix_libpath__CXX"; then
17376     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17377   fi
17378
17379 fi
17380
17381   aix_libpath=$lt_cv_aix_libpath__CXX
17382 fi
17383
17384             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17385             # Warning - without using the other run time loading flags,
17386             # -berok will link without error, but may produce a broken library.
17387             no_undefined_flag_CXX=' ${wl}-bernotok'
17388             allow_undefined_flag_CXX=' ${wl}-berok'
17389             if test "$with_gnu_ld" = yes; then
17390               # We only use this code for GNU lds that support --whole-archive.
17391               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17392             else
17393               # Exported symbols can be pulled into shared objects from archives
17394               whole_archive_flag_spec_CXX='$convenience'
17395             fi
17396             archive_cmds_need_lc_CXX=yes
17397             # This is similar to how AIX traditionally builds its shared
17398             # libraries.
17399             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17400           fi
17401         fi
17402         ;;
17403
17404       beos*)
17405         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17406           allow_undefined_flag_CXX=unsupported
17407           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17408           # support --undefined.  This deserves some investigation.  FIXME
17409           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17410         else
17411           ld_shlibs_CXX=no
17412         fi
17413         ;;
17414
17415       chorus*)
17416         case $cc_basename in
17417           *)
17418           # FIXME: insert proper C++ library support
17419           ld_shlibs_CXX=no
17420           ;;
17421         esac
17422         ;;
17423
17424       cygwin* | mingw* | pw32* | cegcc*)
17425         case $GXX,$cc_basename in
17426         ,cl* | no,cl*)
17427           # Native MSVC
17428           # hardcode_libdir_flag_spec is actually meaningless, as there is
17429           # no search path for DLLs.
17430           hardcode_libdir_flag_spec_CXX=' '
17431           allow_undefined_flag_CXX=unsupported
17432           always_export_symbols_CXX=yes
17433           file_list_spec_CXX='@'
17434           # Tell ltmain to make .lib files, not .a files.
17435           libext=lib
17436           # Tell ltmain to make .dll files, not .so files.
17437           shrext_cmds=".dll"
17438           # FIXME: Setting linknames here is a bad hack.
17439           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17440           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17441               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17442             else
17443               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17444             fi~
17445             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17446             linknames='
17447           # The linker will not automatically build a static lib if we build a DLL.
17448           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17449           enable_shared_with_static_runtimes_CXX=yes
17450           # Don't use ranlib
17451           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17452           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17453             lt_tool_outputfile="@TOOL_OUTPUT@"~
17454             case $lt_outputfile in
17455               *.exe|*.EXE) ;;
17456               *)
17457                 lt_outputfile="$lt_outputfile.exe"
17458                 lt_tool_outputfile="$lt_tool_outputfile.exe"
17459                 ;;
17460             esac~
17461             func_to_tool_file "$lt_outputfile"~
17462             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17463               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17464               $RM "$lt_outputfile.manifest";
17465             fi'
17466           ;;
17467         *)
17468           # g++
17469           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17470           # as there is no search path for DLLs.
17471           hardcode_libdir_flag_spec_CXX='-L$libdir'
17472           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17473           allow_undefined_flag_CXX=unsupported
17474           always_export_symbols_CXX=no
17475           enable_shared_with_static_runtimes_CXX=yes
17476
17477           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17478             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'
17479             # If the export-symbols file already is a .def file (1st line
17480             # is EXPORTS), use it as is; otherwise, prepend...
17481             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17482               cp $export_symbols $output_objdir/$soname.def;
17483             else
17484               echo EXPORTS > $output_objdir/$soname.def;
17485               cat $export_symbols >> $output_objdir/$soname.def;
17486             fi~
17487             $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'
17488           else
17489             ld_shlibs_CXX=no
17490           fi
17491           ;;
17492         esac
17493         ;;
17494       darwin* | rhapsody*)
17495
17496
17497   archive_cmds_need_lc_CXX=no
17498   hardcode_direct_CXX=no
17499   hardcode_automatic_CXX=yes
17500   hardcode_shlibpath_var_CXX=unsupported
17501   if test "$lt_cv_ld_force_load" = "yes"; then
17502     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\"`'
17503   else
17504     whole_archive_flag_spec_CXX=''
17505   fi
17506   link_all_deplibs_CXX=yes
17507   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17508   case $cc_basename in
17509      ifort*) _lt_dar_can_shared=yes ;;
17510      *) _lt_dar_can_shared=$GCC ;;
17511   esac
17512   if test "$_lt_dar_can_shared" = "yes"; then
17513     output_verbose_link_cmd=func_echo_all
17514     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}"
17515     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17516     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}"
17517     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}"
17518        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17519       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}"
17520       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}"
17521     fi
17522
17523   else
17524   ld_shlibs_CXX=no
17525   fi
17526
17527         ;;
17528
17529       dgux*)
17530         case $cc_basename in
17531           ec++*)
17532             # FIXME: insert proper C++ library support
17533             ld_shlibs_CXX=no
17534             ;;
17535           ghcx*)
17536             # Green Hills C++ Compiler
17537             # FIXME: insert proper C++ library support
17538             ld_shlibs_CXX=no
17539             ;;
17540           *)
17541             # FIXME: insert proper C++ library support
17542             ld_shlibs_CXX=no
17543             ;;
17544         esac
17545         ;;
17546
17547       freebsd[12]*)
17548         # C++ shared libraries reported to be fairly broken before
17549         # switch to ELF
17550         ld_shlibs_CXX=no
17551         ;;
17552
17553       freebsd-elf*)
17554         archive_cmds_need_lc_CXX=no
17555         ;;
17556
17557       freebsd* | dragonfly*)
17558         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17559         # conventions
17560         ld_shlibs_CXX=yes
17561         ;;
17562
17563       gnu*)
17564         ;;
17565
17566       haiku*)
17567         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17568         link_all_deplibs_CXX=yes
17569         ;;
17570
17571       hpux9*)
17572         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17573         hardcode_libdir_separator_CXX=:
17574         export_dynamic_flag_spec_CXX='${wl}-E'
17575         hardcode_direct_CXX=yes
17576         hardcode_minus_L_CXX=yes # Not in the search PATH,
17577                                              # but as the default
17578                                              # location of the library.
17579
17580         case $cc_basename in
17581           CC*)
17582             # FIXME: insert proper C++ library support
17583             ld_shlibs_CXX=no
17584             ;;
17585           aCC*)
17586             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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17587             # Commands to make compiler produce verbose output that lists
17588             # what "hidden" libraries, object files and flags are used when
17589             # linking a shared library.
17590             #
17591             # There doesn't appear to be a way to prevent this compiler from
17592             # explicitly linking system object files so we need to strip them
17593             # from the output so that they don't get included in the library
17594             # dependencies.
17595             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"'
17596             ;;
17597           *)
17598             if test "$GXX" = yes; then
17599               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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17600             else
17601               # FIXME: insert proper C++ library support
17602               ld_shlibs_CXX=no
17603             fi
17604             ;;
17605         esac
17606         ;;
17607
17608       hpux10*|hpux11*)
17609         if test $with_gnu_ld = no; then
17610           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17611           hardcode_libdir_separator_CXX=:
17612
17613           case $host_cpu in
17614             hppa*64*|ia64*)
17615               ;;
17616             *)
17617               export_dynamic_flag_spec_CXX='${wl}-E'
17618               ;;
17619           esac
17620         fi
17621         case $host_cpu in
17622           hppa*64*|ia64*)
17623             hardcode_direct_CXX=no
17624             hardcode_shlibpath_var_CXX=no
17625             ;;
17626           *)
17627             hardcode_direct_CXX=yes
17628             hardcode_direct_absolute_CXX=yes
17629             hardcode_minus_L_CXX=yes # Not in the search PATH,
17630                                                  # but as the default
17631                                                  # location of the library.
17632             ;;
17633         esac
17634
17635         case $cc_basename in
17636           CC*)
17637             # FIXME: insert proper C++ library support
17638             ld_shlibs_CXX=no
17639             ;;
17640           aCC*)
17641             case $host_cpu in
17642               hppa*64*)
17643                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17644                 ;;
17645               ia64*)
17646                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17647                 ;;
17648               *)
17649                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17650                 ;;
17651             esac
17652             # Commands to make compiler produce verbose output that lists
17653             # what "hidden" libraries, object files and flags are used when
17654             # linking a shared library.
17655             #
17656             # There doesn't appear to be a way to prevent this compiler from
17657             # explicitly linking system object files so we need to strip them
17658             # from the output so that they don't get included in the library
17659             # dependencies.
17660             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"'
17661             ;;
17662           *)
17663             if test "$GXX" = yes; then
17664               if test $with_gnu_ld = no; then
17665                 case $host_cpu in
17666                   hppa*64*)
17667                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17668                     ;;
17669                   ia64*)
17670                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17671                     ;;
17672                   *)
17673                     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'
17674                     ;;
17675                 esac
17676               fi
17677             else
17678               # FIXME: insert proper C++ library support
17679               ld_shlibs_CXX=no
17680             fi
17681             ;;
17682         esac
17683         ;;
17684
17685       interix[3-9]*)
17686         hardcode_direct_CXX=no
17687         hardcode_shlibpath_var_CXX=no
17688         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17689         export_dynamic_flag_spec_CXX='${wl}-E'
17690         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17691         # Instead, shared libraries are loaded at an image base (0x10000000 by
17692         # default) and relocated if they conflict, which is a slow very memory
17693         # consuming and fragmenting process.  To avoid this, we pick a random,
17694         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17695         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17696         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'
17697         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'
17698         ;;
17699       irix5* | irix6*)
17700         case $cc_basename in
17701           CC*)
17702             # SGI C++
17703             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'
17704
17705             # Archives containing C++ object files must be created using
17706             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17707             # necessary to make sure instantiated templates are included
17708             # in the archive.
17709             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17710             ;;
17711           *)
17712             if test "$GXX" = yes; then
17713               if test "$with_gnu_ld" = no; then
17714                 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'
17715               else
17716                 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'
17717               fi
17718             fi
17719             link_all_deplibs_CXX=yes
17720             ;;
17721         esac
17722         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17723         hardcode_libdir_separator_CXX=:
17724         inherit_rpath_CXX=yes
17725         ;;
17726
17727       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17728         case $cc_basename in
17729           KCC*)
17730             # Kuck and Associates, Inc. (KAI) C++ Compiler
17731
17732             # KCC will only create a shared library if the output file
17733             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17734             # to its proper name (with version) after linking.
17735             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'
17736             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'
17737             # Commands to make compiler produce verbose output that lists
17738             # what "hidden" libraries, object files and flags are used when
17739             # linking a shared library.
17740             #
17741             # There doesn't appear to be a way to prevent this compiler from
17742             # explicitly linking system object files so we need to strip them
17743             # from the output so that they don't get included in the library
17744             # dependencies.
17745             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"'
17746
17747             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17748             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17749
17750             # Archives containing C++ object files must be created using
17751             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17752             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17753             ;;
17754           icpc* | ecpc* )
17755             # Intel C++
17756             with_gnu_ld=yes
17757             # version 8.0 and above of icpc choke on multiply defined symbols
17758             # if we add $predep_objects and $postdep_objects, however 7.1 and
17759             # earlier do not add the objects themselves.
17760             case `$CC -V 2>&1` in
17761               *"Version 7."*)
17762                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17763                 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'
17764                 ;;
17765               *)  # Version 8.0 or newer
17766                 tmp_idyn=
17767                 case $host_cpu in
17768                   ia64*) tmp_idyn=' -i_dynamic';;
17769                 esac
17770                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17771                 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'
17772                 ;;
17773             esac
17774             archive_cmds_need_lc_CXX=no
17775             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17776             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17777             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17778             ;;
17779           pgCC* | pgcpp*)
17780             # Portland Group C++ compiler
17781             case `$CC -V` in
17782             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17783               prelink_cmds_CXX='tpldir=Template.dir~
17784                 rm -rf $tpldir~
17785                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17786                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17787               old_archive_cmds_CXX='tpldir=Template.dir~
17788                 rm -rf $tpldir~
17789                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17790                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17791                 $RANLIB $oldlib'
17792               archive_cmds_CXX='tpldir=Template.dir~
17793                 rm -rf $tpldir~
17794                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17795                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17796               archive_expsym_cmds_CXX='tpldir=Template.dir~
17797                 rm -rf $tpldir~
17798                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17799                 $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'
17800               ;;
17801             *) # Version 6 and above use weak symbols
17802               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17803               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'
17804               ;;
17805             esac
17806
17807             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17808             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17809             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'
17810             ;;
17811           cxx*)
17812             # Compaq C++
17813             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17814             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'
17815
17816             runpath_var=LD_RUN_PATH
17817             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17818             hardcode_libdir_separator_CXX=:
17819
17820             # Commands to make compiler produce verbose output that lists
17821             # what "hidden" libraries, object files and flags are used when
17822             # linking a shared library.
17823             #
17824             # There doesn't appear to be a way to prevent this compiler from
17825             # explicitly linking system object files so we need to strip them
17826             # from the output so that they don't get included in the library
17827             # dependencies.
17828             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'
17829             ;;
17830           xl* | mpixl* | bgxl*)
17831             # IBM XL 8.0 on PPC, with GNU ld
17832             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17833             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17834             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17835             if test "x$supports_anon_versioning" = xyes; then
17836               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17837                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17838                 echo "local: *; };" >> $output_objdir/$libname.ver~
17839                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17840             fi
17841             ;;
17842           *)
17843             case `$CC -V 2>&1 | sed 5q` in
17844             *Sun\ C*)
17845               # Sun C++ 5.9
17846               no_undefined_flag_CXX=' -zdefs'
17847               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17848               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'
17849               hardcode_libdir_flag_spec_CXX='-R$libdir'
17850               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'
17851               compiler_needs_object_CXX=yes
17852
17853               # Not sure whether something based on
17854               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17855               # would be better.
17856               output_verbose_link_cmd='func_echo_all'
17857
17858               # Archives containing C++ object files must be created using
17859               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17860               # necessary to make sure instantiated templates are included
17861               # in the archive.
17862               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17863               ;;
17864             esac
17865             ;;
17866         esac
17867         ;;
17868
17869       lynxos*)
17870         # FIXME: insert proper C++ library support
17871         ld_shlibs_CXX=no
17872         ;;
17873
17874       m88k*)
17875         # FIXME: insert proper C++ library support
17876         ld_shlibs_CXX=no
17877         ;;
17878
17879       mvs*)
17880         case $cc_basename in
17881           cxx*)
17882             # FIXME: insert proper C++ library support
17883             ld_shlibs_CXX=no
17884             ;;
17885           *)
17886             # FIXME: insert proper C++ library support
17887             ld_shlibs_CXX=no
17888             ;;
17889         esac
17890         ;;
17891
17892       netbsd*)
17893         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17894           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17895           wlarc=
17896           hardcode_libdir_flag_spec_CXX='-R$libdir'
17897           hardcode_direct_CXX=yes
17898           hardcode_shlibpath_var_CXX=no
17899         fi
17900         # Workaround some broken pre-1.5 toolchains
17901         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17902         ;;
17903
17904       *nto* | *qnx*)
17905         ld_shlibs_CXX=yes
17906         ;;
17907
17908       openbsd2*)
17909         # C++ shared libraries are fairly broken
17910         ld_shlibs_CXX=no
17911         ;;
17912
17913       openbsd*)
17914         if test -f /usr/libexec/ld.so; then
17915           hardcode_direct_CXX=yes
17916           hardcode_shlibpath_var_CXX=no
17917           hardcode_direct_absolute_CXX=yes
17918           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17919           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17920           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17921             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17922             export_dynamic_flag_spec_CXX='${wl}-E'
17923             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17924           fi
17925           output_verbose_link_cmd=func_echo_all
17926         else
17927           ld_shlibs_CXX=no
17928         fi
17929         ;;
17930
17931       osf3* | osf4* | osf5*)
17932         case $cc_basename in
17933           KCC*)
17934             # Kuck and Associates, Inc. (KAI) C++ Compiler
17935
17936             # KCC will only create a shared library if the output file
17937             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17938             # to its proper name (with version) after linking.
17939             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'
17940
17941             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17942             hardcode_libdir_separator_CXX=:
17943
17944             # Archives containing C++ object files must be created using
17945             # the KAI C++ compiler.
17946             case $host in
17947               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17948               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17949             esac
17950             ;;
17951           RCC*)
17952             # Rational C++ 2.4.1
17953             # FIXME: insert proper C++ library support
17954             ld_shlibs_CXX=no
17955             ;;
17956           cxx*)
17957             case $host in
17958               osf3*)
17959                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17960                 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'
17961                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17962                 ;;
17963               *)
17964                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17965                 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'
17966                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17967                   echo "-hidden">> $lib.exp~
17968                   $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~
17969                   $RM $lib.exp'
17970                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17971                 ;;
17972             esac
17973
17974             hardcode_libdir_separator_CXX=:
17975
17976             # Commands to make compiler produce verbose output that lists
17977             # what "hidden" libraries, object files and flags are used when
17978             # linking a shared library.
17979             #
17980             # There doesn't appear to be a way to prevent this compiler from
17981             # explicitly linking system object files so we need to strip them
17982             # from the output so that they don't get included in the library
17983             # dependencies.
17984             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"'
17985             ;;
17986           *)
17987             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17988               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17989               case $host in
17990                 osf3*)
17991                   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'
17992                   ;;
17993                 *)
17994                   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'
17995                   ;;
17996               esac
17997
17998               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17999               hardcode_libdir_separator_CXX=:
18000
18001               # Commands to make compiler produce verbose output that lists
18002               # what "hidden" libraries, object files and flags are used when
18003               # linking a shared library.
18004               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18005
18006             else
18007               # FIXME: insert proper C++ library support
18008               ld_shlibs_CXX=no
18009             fi
18010             ;;
18011         esac
18012         ;;
18013
18014       psos*)
18015         # FIXME: insert proper C++ library support
18016         ld_shlibs_CXX=no
18017         ;;
18018
18019       sunos4*)
18020         case $cc_basename in
18021           CC*)
18022             # Sun C++ 4.x
18023             # FIXME: insert proper C++ library support
18024             ld_shlibs_CXX=no
18025             ;;
18026           lcc*)
18027             # Lucid
18028             # FIXME: insert proper C++ library support
18029             ld_shlibs_CXX=no
18030             ;;
18031           *)
18032             # FIXME: insert proper C++ library support
18033             ld_shlibs_CXX=no
18034             ;;
18035         esac
18036         ;;
18037
18038       solaris*)
18039         case $cc_basename in
18040           CC* | sunCC*)
18041             # Sun C++ 4.2, 5.x and Centerline C++
18042             archive_cmds_need_lc_CXX=yes
18043             no_undefined_flag_CXX=' -zdefs'
18044             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18045             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18046               $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'
18047
18048             hardcode_libdir_flag_spec_CXX='-R$libdir'
18049             hardcode_shlibpath_var_CXX=no
18050             case $host_os in
18051               solaris2.[0-5] | solaris2.[0-5].*) ;;
18052               *)
18053                 # The compiler driver will combine and reorder linker options,
18054                 # but understands `-z linker_flag'.
18055                 # Supported since Solaris 2.6 (maybe 2.5.1?)
18056                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18057                 ;;
18058             esac
18059             link_all_deplibs_CXX=yes
18060
18061             output_verbose_link_cmd='func_echo_all'
18062
18063             # Archives containing C++ object files must be created using
18064             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
18065             # necessary to make sure instantiated templates are included
18066             # in the archive.
18067             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18068             ;;
18069           gcx*)
18070             # Green Hills C++ Compiler
18071             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18072
18073             # The C++ compiler must be used to create the archive.
18074             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18075             ;;
18076           *)
18077             # GNU C++ compiler with Solaris linker
18078             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18079               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18080               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
18081                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18082                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18083                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18084
18085                 # Commands to make compiler produce verbose output that lists
18086                 # what "hidden" libraries, object files and flags are used when
18087                 # linking a shared library.
18088                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18089               else
18090                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18091                 # platform.
18092                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18093                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18094                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18095
18096                 # Commands to make compiler produce verbose output that lists
18097                 # what "hidden" libraries, object files and flags are used when
18098                 # linking a shared library.
18099                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
18100               fi
18101
18102               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18103               case $host_os in
18104                 solaris2.[0-5] | solaris2.[0-5].*) ;;
18105                 *)
18106                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18107                   ;;
18108               esac
18109             fi
18110             ;;
18111         esac
18112         ;;
18113
18114     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18115       no_undefined_flag_CXX='${wl}-z,text'
18116       archive_cmds_need_lc_CXX=no
18117       hardcode_shlibpath_var_CXX=no
18118       runpath_var='LD_RUN_PATH'
18119
18120       case $cc_basename in
18121         CC*)
18122           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18123           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18124           ;;
18125         *)
18126           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18127           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18128           ;;
18129       esac
18130       ;;
18131
18132       sysv5* | sco3.2v5* | sco5v6*)
18133         # Note: We can NOT use -z defs as we might desire, because we do not
18134         # link with -lc, and that would cause any symbols used from libc to
18135         # always be unresolved, which means just about no library would
18136         # ever link correctly.  If we're not using GNU ld we use -z text
18137         # though, which does catch some bad symbols but isn't as heavy-handed
18138         # as -z defs.
18139         no_undefined_flag_CXX='${wl}-z,text'
18140         allow_undefined_flag_CXX='${wl}-z,nodefs'
18141         archive_cmds_need_lc_CXX=no
18142         hardcode_shlibpath_var_CXX=no
18143         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18144         hardcode_libdir_separator_CXX=':'
18145         link_all_deplibs_CXX=yes
18146         export_dynamic_flag_spec_CXX='${wl}-Bexport'
18147         runpath_var='LD_RUN_PATH'
18148
18149         case $cc_basename in
18150           CC*)
18151             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18152             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18153             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18154               '"$old_archive_cmds_CXX"
18155             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18156               '"$reload_cmds_CXX"
18157             ;;
18158           *)
18159             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18160             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18161             ;;
18162         esac
18163       ;;
18164
18165       tandem*)
18166         case $cc_basename in
18167           NCC*)
18168             # NonStop-UX NCC 3.20
18169             # FIXME: insert proper C++ library support
18170             ld_shlibs_CXX=no
18171             ;;
18172           *)
18173             # FIXME: insert proper C++ library support
18174             ld_shlibs_CXX=no
18175             ;;
18176         esac
18177         ;;
18178
18179       vxworks*)
18180         # FIXME: insert proper C++ library support
18181         ld_shlibs_CXX=no
18182         ;;
18183
18184       *)
18185         # FIXME: insert proper C++ library support
18186         ld_shlibs_CXX=no
18187         ;;
18188     esac
18189
18190     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18191 $as_echo "$ld_shlibs_CXX" >&6; }
18192     test "$ld_shlibs_CXX" = no && can_build_shared=no
18193
18194     GCC_CXX="$GXX"
18195     LD_CXX="$LD"
18196
18197     ## CAVEAT EMPTOR:
18198     ## There is no encapsulation within the following macros, do not change
18199     ## the running order or otherwise move them around unless you know exactly
18200     ## what you are doing...
18201     # Dependencies to place before and after the object being linked:
18202 predep_objects_CXX=
18203 postdep_objects_CXX=
18204 predeps_CXX=
18205 postdeps_CXX=
18206 compiler_lib_search_path_CXX=
18207
18208 cat > conftest.$ac_ext <<_LT_EOF
18209 class Foo
18210 {
18211 public:
18212   Foo (void) { a = 0; }
18213 private:
18214   int a;
18215 };
18216 _LT_EOF
18217
18218
18219 _lt_libdeps_save_CFLAGS=$CFLAGS
18220 case "$CC $CFLAGS " in #(
18221 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18222 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18223 esac
18224
18225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18226   (eval $ac_compile) 2>&5
18227   ac_status=$?
18228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18229   test $ac_status = 0; }; then
18230   # Parse the compiler output and extract the necessary
18231   # objects, libraries and library flags.
18232
18233   # Sentinel used to keep track of whether or not we are before
18234   # the conftest object file.
18235   pre_test_object_deps_done=no
18236
18237   for p in `eval "$output_verbose_link_cmd"`; do
18238     case ${prev}${p} in
18239
18240     -L* | -R* | -l*)
18241        # Some compilers place space between "-{L,R}" and the path.
18242        # Remove the space.
18243        if test $p = "-L" ||
18244           test $p = "-R"; then
18245          prev=$p
18246          continue
18247        fi
18248
18249        # Expand the sysroot to ease extracting the directories later.
18250        if test -z "$prev"; then
18251          case $p in
18252          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18253          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18254          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18255          esac
18256        fi
18257        case $p in
18258        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18259        esac
18260        if test "$pre_test_object_deps_done" = no; then
18261          case ${prev} in
18262          -L | -R)
18263            # Internal compiler library paths should come after those
18264            # provided the user.  The postdeps already come after the
18265            # user supplied libs so there is no need to process them.
18266            if test -z "$compiler_lib_search_path_CXX"; then
18267              compiler_lib_search_path_CXX="${prev}${p}"
18268            else
18269              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18270            fi
18271            ;;
18272          # The "-l" case would never come before the object being
18273          # linked, so don't bother handling this case.
18274          esac
18275        else
18276          if test -z "$postdeps_CXX"; then
18277            postdeps_CXX="${prev}${p}"
18278          else
18279            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18280          fi
18281        fi
18282        prev=
18283        ;;
18284
18285     *.lto.$objext) ;; # Ignore GCC LTO objects
18286     *.$objext)
18287        # This assumes that the test object file only shows up
18288        # once in the compiler output.
18289        if test "$p" = "conftest.$objext"; then
18290          pre_test_object_deps_done=yes
18291          continue
18292        fi
18293
18294        if test "$pre_test_object_deps_done" = no; then
18295          if test -z "$predep_objects_CXX"; then
18296            predep_objects_CXX="$p"
18297          else
18298            predep_objects_CXX="$predep_objects_CXX $p"
18299          fi
18300        else
18301          if test -z "$postdep_objects_CXX"; then
18302            postdep_objects_CXX="$p"
18303          else
18304            postdep_objects_CXX="$postdep_objects_CXX $p"
18305          fi
18306        fi
18307        ;;
18308
18309     *) ;; # Ignore the rest.
18310
18311     esac
18312   done
18313
18314   # Clean up.
18315   rm -f a.out a.exe
18316 else
18317   echo "libtool.m4: error: problem compiling CXX test program"
18318 fi
18319
18320 $RM -f confest.$objext
18321 CFLAGS=$_lt_libdeps_save_CFLAGS
18322
18323 # PORTME: override above test on systems where it is broken
18324 case $host_os in
18325 interix[3-9]*)
18326   # Interix 3.5 installs completely hosed .la files for C++, so rather than
18327   # hack all around it, let's just trust "g++" to DTRT.
18328   predep_objects_CXX=
18329   postdep_objects_CXX=
18330   postdeps_CXX=
18331   ;;
18332
18333 linux*)
18334   case `$CC -V 2>&1 | sed 5q` in
18335   *Sun\ C*)
18336     # Sun C++ 5.9
18337
18338     # The more standards-conforming stlport4 library is
18339     # incompatible with the Cstd library. Avoid specifying
18340     # it if it's in CXXFLAGS. Ignore libCrun as
18341     # -library=stlport4 depends on it.
18342     case " $CXX $CXXFLAGS " in
18343     *" -library=stlport4 "*)
18344       solaris_use_stlport4=yes
18345       ;;
18346     esac
18347
18348     if test "$solaris_use_stlport4" != yes; then
18349       postdeps_CXX='-library=Cstd -library=Crun'
18350     fi
18351     ;;
18352   esac
18353   ;;
18354
18355 solaris*)
18356   case $cc_basename in
18357   CC* | sunCC*)
18358     # The more standards-conforming stlport4 library is
18359     # incompatible with the Cstd library. Avoid specifying
18360     # it if it's in CXXFLAGS. Ignore libCrun as
18361     # -library=stlport4 depends on it.
18362     case " $CXX $CXXFLAGS " in
18363     *" -library=stlport4 "*)
18364       solaris_use_stlport4=yes
18365       ;;
18366     esac
18367
18368     # Adding this requires a known-good setup of shared libraries for
18369     # Sun compiler versions before 5.6, else PIC objects from an old
18370     # archive will be linked into the output, leading to subtle bugs.
18371     if test "$solaris_use_stlport4" != yes; then
18372       postdeps_CXX='-library=Cstd -library=Crun'
18373     fi
18374     ;;
18375   esac
18376   ;;
18377 esac
18378
18379
18380 case " $postdeps_CXX " in
18381 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18382 esac
18383  compiler_lib_search_dirs_CXX=
18384 if test -n "${compiler_lib_search_path_CXX}"; then
18385  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18386 fi
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412
18413
18414
18415
18416
18417
18418     lt_prog_compiler_wl_CXX=
18419 lt_prog_compiler_pic_CXX=
18420 lt_prog_compiler_static_CXX=
18421
18422
18423   # C++ specific cases for pic, static, wl, etc.
18424   if test "$GXX" = yes; then
18425     lt_prog_compiler_wl_CXX='-Wl,'
18426     lt_prog_compiler_static_CXX='-static'
18427
18428     case $host_os in
18429     aix*)
18430       # All AIX code is PIC.
18431       if test "$host_cpu" = ia64; then
18432         # AIX 5 now supports IA64 processor
18433         lt_prog_compiler_static_CXX='-Bstatic'
18434       fi
18435       ;;
18436
18437     amigaos*)
18438       case $host_cpu in
18439       powerpc)
18440             # see comment about AmigaOS4 .so support
18441             lt_prog_compiler_pic_CXX='-fPIC'
18442         ;;
18443       m68k)
18444             # FIXME: we need at least 68020 code to build shared libraries, but
18445             # adding the `-m68020' flag to GCC prevents building anything better,
18446             # like `-m68040'.
18447             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18448         ;;
18449       esac
18450       ;;
18451
18452     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18453       # PIC is the default for these OSes.
18454       ;;
18455     mingw* | cygwin* | os2* | pw32* | cegcc*)
18456       # This hack is so that the source file can tell whether it is being
18457       # built for inclusion in a dll (and should export symbols for example).
18458       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18459       # (--disable-auto-import) libraries
18460       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18461       ;;
18462     darwin* | rhapsody*)
18463       # PIC is the default on this platform
18464       # Common symbols not allowed in MH_DYLIB files
18465       lt_prog_compiler_pic_CXX='-fno-common'
18466       ;;
18467     *djgpp*)
18468       # DJGPP does not support shared libraries at all
18469       lt_prog_compiler_pic_CXX=
18470       ;;
18471     haiku*)
18472       # PIC is the default for Haiku.
18473       # The "-static" flag exists, but is broken.
18474       lt_prog_compiler_static_CXX=
18475       ;;
18476     interix[3-9]*)
18477       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18478       # Instead, we relocate shared libraries at runtime.
18479       ;;
18480     sysv4*MP*)
18481       if test -d /usr/nec; then
18482         lt_prog_compiler_pic_CXX=-Kconform_pic
18483       fi
18484       ;;
18485     hpux*)
18486       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18487       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18488       # sets the default TLS model and affects inlining.
18489       case $host_cpu in
18490       hppa*64*)
18491         ;;
18492       *)
18493         lt_prog_compiler_pic_CXX='-fPIC'
18494         ;;
18495       esac
18496       ;;
18497     *qnx* | *nto*)
18498       # QNX uses GNU C++, but need to define -shared option too, otherwise
18499       # it will coredump.
18500       lt_prog_compiler_pic_CXX='-fPIC -shared'
18501       ;;
18502     *)
18503       lt_prog_compiler_pic_CXX='-fPIC'
18504       ;;
18505     esac
18506   else
18507     case $host_os in
18508       aix[4-9]*)
18509         # All AIX code is PIC.
18510         if test "$host_cpu" = ia64; then
18511           # AIX 5 now supports IA64 processor
18512           lt_prog_compiler_static_CXX='-Bstatic'
18513         else
18514           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18515         fi
18516         ;;
18517       chorus*)
18518         case $cc_basename in
18519         cxch68*)
18520           # Green Hills C++ Compiler
18521           # _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"
18522           ;;
18523         esac
18524         ;;
18525       mingw* | cygwin* | os2* | pw32* | cegcc*)
18526         # This hack is so that the source file can tell whether it is being
18527         # built for inclusion in a dll (and should export symbols for example).
18528         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18529         ;;
18530       dgux*)
18531         case $cc_basename in
18532           ec++*)
18533             lt_prog_compiler_pic_CXX='-KPIC'
18534             ;;
18535           ghcx*)
18536             # Green Hills C++ Compiler
18537             lt_prog_compiler_pic_CXX='-pic'
18538             ;;
18539           *)
18540             ;;
18541         esac
18542         ;;
18543       freebsd* | dragonfly*)
18544         # FreeBSD uses GNU C++
18545         ;;
18546       hpux9* | hpux10* | hpux11*)
18547         case $cc_basename in
18548           CC*)
18549             lt_prog_compiler_wl_CXX='-Wl,'
18550             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18551             if test "$host_cpu" != ia64; then
18552               lt_prog_compiler_pic_CXX='+Z'
18553             fi
18554             ;;
18555           aCC*)
18556             lt_prog_compiler_wl_CXX='-Wl,'
18557             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18558             case $host_cpu in
18559             hppa*64*|ia64*)
18560               # +Z the default
18561               ;;
18562             *)
18563               lt_prog_compiler_pic_CXX='+Z'
18564               ;;
18565             esac
18566             ;;
18567           *)
18568             ;;
18569         esac
18570         ;;
18571       interix*)
18572         # This is c89, which is MS Visual C++ (no shared libs)
18573         # Anyone wants to do a port?
18574         ;;
18575       irix5* | irix6* | nonstopux*)
18576         case $cc_basename in
18577           CC*)
18578             lt_prog_compiler_wl_CXX='-Wl,'
18579             lt_prog_compiler_static_CXX='-non_shared'
18580             # CC pic flag -KPIC is the default.
18581             ;;
18582           *)
18583             ;;
18584         esac
18585         ;;
18586       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18587         case $cc_basename in
18588           KCC*)
18589             # KAI C++ Compiler
18590             lt_prog_compiler_wl_CXX='--backend -Wl,'
18591             lt_prog_compiler_pic_CXX='-fPIC'
18592             ;;
18593           ecpc* )
18594             # old Intel C++ for x86_64 which still supported -KPIC.
18595             lt_prog_compiler_wl_CXX='-Wl,'
18596             lt_prog_compiler_pic_CXX='-KPIC'
18597             lt_prog_compiler_static_CXX='-static'
18598             ;;
18599           icpc* )
18600             # Intel C++, used to be incompatible with GCC.
18601             # ICC 10 doesn't accept -KPIC any more.
18602             lt_prog_compiler_wl_CXX='-Wl,'
18603             lt_prog_compiler_pic_CXX='-fPIC'
18604             lt_prog_compiler_static_CXX='-static'
18605             ;;
18606           pgCC* | pgcpp*)
18607             # Portland Group C++ compiler
18608             lt_prog_compiler_wl_CXX='-Wl,'
18609             lt_prog_compiler_pic_CXX='-fpic'
18610             lt_prog_compiler_static_CXX='-Bstatic'
18611             ;;
18612           cxx*)
18613             # Compaq C++
18614             # Make sure the PIC flag is empty.  It appears that all Alpha
18615             # Linux and Compaq Tru64 Unix objects are PIC.
18616             lt_prog_compiler_pic_CXX=
18617             lt_prog_compiler_static_CXX='-non_shared'
18618             ;;
18619           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18620             # IBM XL 8.0, 9.0 on PPC and BlueGene
18621             lt_prog_compiler_wl_CXX='-Wl,'
18622             lt_prog_compiler_pic_CXX='-qpic'
18623             lt_prog_compiler_static_CXX='-qstaticlink'
18624             ;;
18625           *)
18626             case `$CC -V 2>&1 | sed 5q` in
18627             *Sun\ C*)
18628               # Sun C++ 5.9
18629               lt_prog_compiler_pic_CXX='-KPIC'
18630               lt_prog_compiler_static_CXX='-Bstatic'
18631               lt_prog_compiler_wl_CXX='-Qoption ld '
18632               ;;
18633             esac
18634             ;;
18635         esac
18636         ;;
18637       lynxos*)
18638         ;;
18639       m88k*)
18640         ;;
18641       mvs*)
18642         case $cc_basename in
18643           cxx*)
18644             lt_prog_compiler_pic_CXX='-W c,exportall'
18645             ;;
18646           *)
18647             ;;
18648         esac
18649         ;;
18650       netbsd*)
18651         ;;
18652       *qnx* | *nto*)
18653         # QNX uses GNU C++, but need to define -shared option too, otherwise
18654         # it will coredump.
18655         lt_prog_compiler_pic_CXX='-fPIC -shared'
18656         ;;
18657       osf3* | osf4* | osf5*)
18658         case $cc_basename in
18659           KCC*)
18660             lt_prog_compiler_wl_CXX='--backend -Wl,'
18661             ;;
18662           RCC*)
18663             # Rational C++ 2.4.1
18664             lt_prog_compiler_pic_CXX='-pic'
18665             ;;
18666           cxx*)
18667             # Digital/Compaq C++
18668             lt_prog_compiler_wl_CXX='-Wl,'
18669             # Make sure the PIC flag is empty.  It appears that all Alpha
18670             # Linux and Compaq Tru64 Unix objects are PIC.
18671             lt_prog_compiler_pic_CXX=
18672             lt_prog_compiler_static_CXX='-non_shared'
18673             ;;
18674           *)
18675             ;;
18676         esac
18677         ;;
18678       psos*)
18679         ;;
18680       solaris*)
18681         case $cc_basename in
18682           CC* | sunCC*)
18683             # Sun C++ 4.2, 5.x and Centerline C++
18684             lt_prog_compiler_pic_CXX='-KPIC'
18685             lt_prog_compiler_static_CXX='-Bstatic'
18686             lt_prog_compiler_wl_CXX='-Qoption ld '
18687             ;;
18688           gcx*)
18689             # Green Hills C++ Compiler
18690             lt_prog_compiler_pic_CXX='-PIC'
18691             ;;
18692           *)
18693             ;;
18694         esac
18695         ;;
18696       sunos4*)
18697         case $cc_basename in
18698           CC*)
18699             # Sun C++ 4.x
18700             lt_prog_compiler_pic_CXX='-pic'
18701             lt_prog_compiler_static_CXX='-Bstatic'
18702             ;;
18703           lcc*)
18704             # Lucid
18705             lt_prog_compiler_pic_CXX='-pic'
18706             ;;
18707           *)
18708             ;;
18709         esac
18710         ;;
18711       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18712         case $cc_basename in
18713           CC*)
18714             lt_prog_compiler_wl_CXX='-Wl,'
18715             lt_prog_compiler_pic_CXX='-KPIC'
18716             lt_prog_compiler_static_CXX='-Bstatic'
18717             ;;
18718         esac
18719         ;;
18720       tandem*)
18721         case $cc_basename in
18722           NCC*)
18723             # NonStop-UX NCC 3.20
18724             lt_prog_compiler_pic_CXX='-KPIC'
18725             ;;
18726           *)
18727             ;;
18728         esac
18729         ;;
18730       vxworks*)
18731         ;;
18732       *)
18733         lt_prog_compiler_can_build_shared_CXX=no
18734         ;;
18735     esac
18736   fi
18737
18738 case $host_os in
18739   # For platforms which do not support PIC, -DPIC is meaningless:
18740   *djgpp*)
18741     lt_prog_compiler_pic_CXX=
18742     ;;
18743   *)
18744     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18745     ;;
18746 esac
18747
18748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18749 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18750 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18754 fi
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18756 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18757 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18758
18759 #
18760 # Check to make sure the PIC flag actually works.
18761 #
18762 if test -n "$lt_prog_compiler_pic_CXX"; then
18763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18764 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18765 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18766   $as_echo_n "(cached) " >&6
18767 else
18768   lt_cv_prog_compiler_pic_works_CXX=no
18769    ac_outfile=conftest.$ac_objext
18770    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18771    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18772    # Insert the option either (1) after the last *FLAGS variable, or
18773    # (2) before a word containing "conftest.", or (3) at the end.
18774    # Note that $ac_compile itself does not contain backslashes and begins
18775    # with a dollar sign (not a hyphen), so the echo should work correctly.
18776    # The option is referenced via a variable to avoid confusing sed.
18777    lt_compile=`echo "$ac_compile" | $SED \
18778    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18779    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18780    -e 's:$: $lt_compiler_flag:'`
18781    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18782    (eval "$lt_compile" 2>conftest.err)
18783    ac_status=$?
18784    cat conftest.err >&5
18785    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18786    if (exit $ac_status) && test -s "$ac_outfile"; then
18787      # The compiler can only warn and ignore the option if not recognized
18788      # So say no if there are warnings other than the usual output.
18789      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18790      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18791      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18792        lt_cv_prog_compiler_pic_works_CXX=yes
18793      fi
18794    fi
18795    $RM conftest*
18796
18797 fi
18798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18799 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18800
18801 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18802     case $lt_prog_compiler_pic_CXX in
18803      "" | " "*) ;;
18804      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18805      esac
18806 else
18807     lt_prog_compiler_pic_CXX=
18808      lt_prog_compiler_can_build_shared_CXX=no
18809 fi
18810
18811 fi
18812
18813
18814
18815
18816
18817 #
18818 # Check to make sure the static flag actually works.
18819 #
18820 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18822 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18823 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18824   $as_echo_n "(cached) " >&6
18825 else
18826   lt_cv_prog_compiler_static_works_CXX=no
18827    save_LDFLAGS="$LDFLAGS"
18828    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18829    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18830    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18831      # The linker can only warn and ignore the option if not recognized
18832      # So say no if there are warnings
18833      if test -s conftest.err; then
18834        # Append any errors to the config.log.
18835        cat conftest.err 1>&5
18836        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18837        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18838        if diff conftest.exp conftest.er2 >/dev/null; then
18839          lt_cv_prog_compiler_static_works_CXX=yes
18840        fi
18841      else
18842        lt_cv_prog_compiler_static_works_CXX=yes
18843      fi
18844    fi
18845    $RM -r conftest*
18846    LDFLAGS="$save_LDFLAGS"
18847
18848 fi
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18850 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18851
18852 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18853     :
18854 else
18855     lt_prog_compiler_static_CXX=
18856 fi
18857
18858
18859
18860
18861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18863 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18864   $as_echo_n "(cached) " >&6
18865 else
18866   lt_cv_prog_compiler_c_o_CXX=no
18867    $RM -r conftest 2>/dev/null
18868    mkdir conftest
18869    cd conftest
18870    mkdir out
18871    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18872
18873    lt_compiler_flag="-o out/conftest2.$ac_objext"
18874    # Insert the option either (1) after the last *FLAGS variable, or
18875    # (2) before a word containing "conftest.", or (3) at the end.
18876    # Note that $ac_compile itself does not contain backslashes and begins
18877    # with a dollar sign (not a hyphen), so the echo should work correctly.
18878    lt_compile=`echo "$ac_compile" | $SED \
18879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18881    -e 's:$: $lt_compiler_flag:'`
18882    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18883    (eval "$lt_compile" 2>out/conftest.err)
18884    ac_status=$?
18885    cat out/conftest.err >&5
18886    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18888    then
18889      # The compiler can only warn and ignore the option if not recognized
18890      # So say no if there are warnings
18891      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18892      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18893      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18894        lt_cv_prog_compiler_c_o_CXX=yes
18895      fi
18896    fi
18897    chmod u+w . 2>&5
18898    $RM conftest*
18899    # SGI C++ compiler will create directory out/ii_files/ for
18900    # template instantiation
18901    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18902    $RM out/* && rmdir out
18903    cd ..
18904    $RM -r conftest
18905    $RM conftest*
18906
18907 fi
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18909 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18910
18911
18912
18913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18914 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18915 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18916   $as_echo_n "(cached) " >&6
18917 else
18918   lt_cv_prog_compiler_c_o_CXX=no
18919    $RM -r conftest 2>/dev/null
18920    mkdir conftest
18921    cd conftest
18922    mkdir out
18923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18924
18925    lt_compiler_flag="-o out/conftest2.$ac_objext"
18926    # Insert the option either (1) after the last *FLAGS variable, or
18927    # (2) before a word containing "conftest.", or (3) at the end.
18928    # Note that $ac_compile itself does not contain backslashes and begins
18929    # with a dollar sign (not a hyphen), so the echo should work correctly.
18930    lt_compile=`echo "$ac_compile" | $SED \
18931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18933    -e 's:$: $lt_compiler_flag:'`
18934    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18935    (eval "$lt_compile" 2>out/conftest.err)
18936    ac_status=$?
18937    cat out/conftest.err >&5
18938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18940    then
18941      # The compiler can only warn and ignore the option if not recognized
18942      # So say no if there are warnings
18943      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18944      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18945      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18946        lt_cv_prog_compiler_c_o_CXX=yes
18947      fi
18948    fi
18949    chmod u+w . 2>&5
18950    $RM conftest*
18951    # SGI C++ compiler will create directory out/ii_files/ for
18952    # template instantiation
18953    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18954    $RM out/* && rmdir out
18955    cd ..
18956    $RM -r conftest
18957    $RM conftest*
18958
18959 fi
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18961 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18962
18963
18964
18965
18966 hard_links="nottested"
18967 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18968   # do not overwrite the value of need_locks provided by the user
18969   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18970 $as_echo_n "checking if we can lock with hard links... " >&6; }
18971   hard_links=yes
18972   $RM conftest*
18973   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18974   touch conftest.a
18975   ln conftest.a conftest.b 2>&5 || hard_links=no
18976   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18978 $as_echo "$hard_links" >&6; }
18979   if test "$hard_links" = no; then
18980     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18981 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18982     need_locks=warn
18983   fi
18984 else
18985   need_locks=no
18986 fi
18987
18988
18989
18990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18991 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18992
18993   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18994   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18995   case $host_os in
18996   aix[4-9]*)
18997     # If we're using GNU nm, then we don't want the "-C" option.
18998     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18999     # Also, AIX nm treats weak defined symbols like other global defined
19000     # symbols, whereas GNU nm marks them as "W".
19001     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
19002       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19003     else
19004       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
19005     fi
19006     ;;
19007   pw32*)
19008     export_symbols_cmds_CXX="$ltdll_cmds"
19009     ;;
19010   cygwin* | mingw* | cegcc*)
19011     case $cc_basename in
19012     cl*) ;;
19013     *)
19014       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'
19015       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19016       ;;
19017     esac
19018     ;;
19019   *)
19020     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19021     ;;
19022   esac
19023
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19025 $as_echo "$ld_shlibs_CXX" >&6; }
19026 test "$ld_shlibs_CXX" = no && can_build_shared=no
19027
19028 with_gnu_ld_CXX=$with_gnu_ld
19029
19030
19031
19032
19033
19034
19035 #
19036 # Do we need to explicitly link libc?
19037 #
19038 case "x$archive_cmds_need_lc_CXX" in
19039 x|xyes)
19040   # Assume -lc should be added
19041   archive_cmds_need_lc_CXX=yes
19042
19043   if test "$enable_shared" = yes && test "$GCC" = yes; then
19044     case $archive_cmds_CXX in
19045     *'~'*)
19046       # FIXME: we may have to deal with multi-command sequences.
19047       ;;
19048     '$CC '*)
19049       # Test whether the compiler implicitly links with -lc since on some
19050       # systems, -lgcc has to come before -lc. If gcc already passes -lc
19051       # to ld, don't add -lc before -lgcc.
19052       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19053 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19054 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
19055   $as_echo_n "(cached) " >&6
19056 else
19057   $RM conftest*
19058         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19059
19060         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19061   (eval $ac_compile) 2>&5
19062   ac_status=$?
19063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19064   test $ac_status = 0; } 2>conftest.err; then
19065           soname=conftest
19066           lib=conftest
19067           libobjs=conftest.$ac_objext
19068           deplibs=
19069           wl=$lt_prog_compiler_wl_CXX
19070           pic_flag=$lt_prog_compiler_pic_CXX
19071           compiler_flags=-v
19072           linker_flags=-v
19073           verstring=
19074           output_objdir=.
19075           libname=conftest
19076           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19077           allow_undefined_flag_CXX=
19078           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19079   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19080   ac_status=$?
19081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19082   test $ac_status = 0; }
19083           then
19084             lt_cv_archive_cmds_need_lc_CXX=no
19085           else
19086             lt_cv_archive_cmds_need_lc_CXX=yes
19087           fi
19088           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19089         else
19090           cat conftest.err 1>&5
19091         fi
19092         $RM conftest*
19093
19094 fi
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19096 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19097       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19098       ;;
19099     esac
19100   fi
19101   ;;
19102 esac
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19168 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19169
19170 library_names_spec=
19171 libname_spec='lib$name'
19172 soname_spec=
19173 shrext_cmds=".so"
19174 postinstall_cmds=
19175 postuninstall_cmds=
19176 finish_cmds=
19177 finish_eval=
19178 shlibpath_var=
19179 shlibpath_overrides_runpath=unknown
19180 version_type=none
19181 dynamic_linker="$host_os ld.so"
19182 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19183 need_lib_prefix=unknown
19184 hardcode_into_libs=no
19185
19186 # when you set need_version to no, make sure it does not cause -set_version
19187 # flags to be left without arguments
19188 need_version=unknown
19189
19190 case $host_os in
19191 aix3*)
19192   version_type=linux
19193   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19194   shlibpath_var=LIBPATH
19195
19196   # AIX 3 has no versioning support, so we append a major version to the name.
19197   soname_spec='${libname}${release}${shared_ext}$major'
19198   ;;
19199
19200 aix[4-9]*)
19201   version_type=linux
19202   need_lib_prefix=no
19203   need_version=no
19204   hardcode_into_libs=yes
19205   if test "$host_cpu" = ia64; then
19206     # AIX 5 supports IA64
19207     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19208     shlibpath_var=LD_LIBRARY_PATH
19209   else
19210     # With GCC up to 2.95.x, collect2 would create an import file
19211     # for dependence libraries.  The import file would start with
19212     # the line `#! .'.  This would cause the generated library to
19213     # depend on `.', always an invalid library.  This was fixed in
19214     # development snapshots of GCC prior to 3.0.
19215     case $host_os in
19216       aix4 | aix4.[01] | aix4.[01].*)
19217       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19218            echo ' yes '
19219            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19220         :
19221       else
19222         can_build_shared=no
19223       fi
19224       ;;
19225     esac
19226     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19227     # soname into executable. Probably we can add versioning support to
19228     # collect2, so additional links can be useful in future.
19229     if test "$aix_use_runtimelinking" = yes; then
19230       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19231       # instead of lib<name>.a to let people know that these are not
19232       # typical AIX shared libraries.
19233       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19234     else
19235       # We preserve .a as extension for shared libraries through AIX4.2
19236       # and later when we are not doing run time linking.
19237       library_names_spec='${libname}${release}.a $libname.a'
19238       soname_spec='${libname}${release}${shared_ext}$major'
19239     fi
19240     shlibpath_var=LIBPATH
19241   fi
19242   ;;
19243
19244 amigaos*)
19245   case $host_cpu in
19246   powerpc)
19247     # Since July 2007 AmigaOS4 officially supports .so libraries.
19248     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19250     ;;
19251   m68k)
19252     library_names_spec='$libname.ixlibrary $libname.a'
19253     # Create ${libname}_ixlibrary.a entries in /sys/libs.
19254     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
19255     ;;
19256   esac
19257   ;;
19258
19259 beos*)
19260   library_names_spec='${libname}${shared_ext}'
19261   dynamic_linker="$host_os ld.so"
19262   shlibpath_var=LIBRARY_PATH
19263   ;;
19264
19265 bsdi[45]*)
19266   version_type=linux
19267   need_version=no
19268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19269   soname_spec='${libname}${release}${shared_ext}$major'
19270   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19271   shlibpath_var=LD_LIBRARY_PATH
19272   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19273   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19274   # the default ld.so.conf also contains /usr/contrib/lib and
19275   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19276   # libtool to hard-code these into programs
19277   ;;
19278
19279 cygwin* | mingw* | pw32* | cegcc*)
19280   version_type=windows
19281   shrext_cmds=".dll"
19282   need_version=no
19283   need_lib_prefix=no
19284
19285   case $GCC,$cc_basename in
19286   yes,*)
19287     # gcc
19288     library_names_spec='$libname.dll.a'
19289     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19290     postinstall_cmds='base_file=`basename \${file}`~
19291       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19292       dldir=$destdir/`dirname \$dlpath`~
19293       test -d \$dldir || mkdir -p \$dldir~
19294       $install_prog $dir/$dlname \$dldir/$dlname~
19295       chmod a+x \$dldir/$dlname~
19296       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19297         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19298       fi'
19299     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19300       dlpath=$dir/\$dldll~
19301        $RM \$dlpath'
19302     shlibpath_overrides_runpath=yes
19303
19304     case $host_os in
19305     cygwin*)
19306       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19307       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19308
19309       ;;
19310     mingw* | cegcc*)
19311       # MinGW DLLs use traditional 'lib' prefix
19312       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19313       ;;
19314     pw32*)
19315       # pw32 DLLs use 'pw' prefix rather than 'lib'
19316       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19317       ;;
19318     esac
19319     dynamic_linker='Win32 ld.exe'
19320     ;;
19321
19322   *,cl*)
19323     # Native MSVC
19324     libname_spec='$name'
19325     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19326     library_names_spec='${libname}.dll.lib'
19327
19328     case $build_os in
19329     mingw*)
19330       sys_lib_search_path_spec=
19331       lt_save_ifs=$IFS
19332       IFS=';'
19333       for lt_path in $LIB
19334       do
19335         IFS=$lt_save_ifs
19336         # Let DOS variable expansion print the short 8.3 style file name.
19337         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19338         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19339       done
19340       IFS=$lt_save_ifs
19341       # Convert to MSYS style.
19342       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19343       ;;
19344     cygwin*)
19345       # Convert to unix form, then to dos form, then back to unix form
19346       # but this time dos style (no spaces!) so that the unix form looks
19347       # like /cygdrive/c/PROGRA~1:/cygdr...
19348       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19349       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19350       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19351       ;;
19352     *)
19353       sys_lib_search_path_spec="$LIB"
19354       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19355         # It is most probably a Windows format PATH.
19356         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19357       else
19358         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19359       fi
19360       # FIXME: find the short name or the path components, as spaces are
19361       # common. (e.g. "Program Files" -> "PROGRA~1")
19362       ;;
19363     esac
19364
19365     # DLL is installed to $(libdir)/../bin by postinstall_cmds
19366     postinstall_cmds='base_file=`basename \${file}`~
19367       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19368       dldir=$destdir/`dirname \$dlpath`~
19369       test -d \$dldir || mkdir -p \$dldir~
19370       $install_prog $dir/$dlname \$dldir/$dlname'
19371     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19372       dlpath=$dir/\$dldll~
19373        $RM \$dlpath'
19374     shlibpath_overrides_runpath=yes
19375     dynamic_linker='Win32 link.exe'
19376     ;;
19377
19378   *)
19379     # Assume MSVC wrapper
19380     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19381     dynamic_linker='Win32 ld.exe'
19382     ;;
19383   esac
19384   # FIXME: first we should search . and the directory the executable is in
19385   shlibpath_var=PATH
19386   ;;
19387
19388 darwin* | rhapsody*)
19389   dynamic_linker="$host_os dyld"
19390   version_type=darwin
19391   need_lib_prefix=no
19392   need_version=no
19393   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19394   soname_spec='${libname}${release}${major}$shared_ext'
19395   shlibpath_overrides_runpath=yes
19396   shlibpath_var=DYLD_LIBRARY_PATH
19397   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19398
19399   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19400   ;;
19401
19402 dgux*)
19403   version_type=linux
19404   need_lib_prefix=no
19405   need_version=no
19406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19407   soname_spec='${libname}${release}${shared_ext}$major'
19408   shlibpath_var=LD_LIBRARY_PATH
19409   ;;
19410
19411 freebsd1*)
19412   dynamic_linker=no
19413   ;;
19414
19415 freebsd* | dragonfly*)
19416   # DragonFly does not have aout.  When/if they implement a new
19417   # versioning mechanism, adjust this.
19418   if test -x /usr/bin/objformat; then
19419     objformat=`/usr/bin/objformat`
19420   else
19421     case $host_os in
19422     freebsd[123]*) objformat=aout ;;
19423     *) objformat=elf ;;
19424     esac
19425   fi
19426   version_type=freebsd-$objformat
19427   case $version_type in
19428     freebsd-elf*)
19429       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19430       need_version=no
19431       need_lib_prefix=no
19432       ;;
19433     freebsd-*)
19434       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19435       need_version=yes
19436       ;;
19437   esac
19438   shlibpath_var=LD_LIBRARY_PATH
19439   case $host_os in
19440   freebsd2*)
19441     shlibpath_overrides_runpath=yes
19442     ;;
19443   freebsd3.[01]* | freebsdelf3.[01]*)
19444     shlibpath_overrides_runpath=yes
19445     hardcode_into_libs=yes
19446     ;;
19447   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19448   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19449     shlibpath_overrides_runpath=no
19450     hardcode_into_libs=yes
19451     ;;
19452   *) # from 4.6 on, and DragonFly
19453     shlibpath_overrides_runpath=yes
19454     hardcode_into_libs=yes
19455     ;;
19456   esac
19457   ;;
19458
19459 gnu*)
19460   version_type=linux
19461   need_lib_prefix=no
19462   need_version=no
19463   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19464   soname_spec='${libname}${release}${shared_ext}$major'
19465   shlibpath_var=LD_LIBRARY_PATH
19466   hardcode_into_libs=yes
19467   ;;
19468
19469 haiku*)
19470   version_type=linux
19471   need_lib_prefix=no
19472   need_version=no
19473   dynamic_linker="$host_os runtime_loader"
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=LIBRARY_PATH
19477   shlibpath_overrides_runpath=yes
19478   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19479   hardcode_into_libs=yes
19480   ;;
19481
19482 hpux9* | hpux10* | hpux11*)
19483   # Give a soname corresponding to the major version so that dld.sl refuses to
19484   # link against other versions.
19485   version_type=sunos
19486   need_lib_prefix=no
19487   need_version=no
19488   case $host_cpu in
19489   ia64*)
19490     shrext_cmds='.so'
19491     hardcode_into_libs=yes
19492     dynamic_linker="$host_os dld.so"
19493     shlibpath_var=LD_LIBRARY_PATH
19494     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19495     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19496     soname_spec='${libname}${release}${shared_ext}$major'
19497     if test "X$HPUX_IA64_MODE" = X32; then
19498       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19499     else
19500       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19501     fi
19502     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19503     ;;
19504   hppa*64*)
19505     shrext_cmds='.sl'
19506     hardcode_into_libs=yes
19507     dynamic_linker="$host_os dld.sl"
19508     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19509     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19510     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19511     soname_spec='${libname}${release}${shared_ext}$major'
19512     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19513     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19514     ;;
19515   *)
19516     shrext_cmds='.sl'
19517     dynamic_linker="$host_os dld.sl"
19518     shlibpath_var=SHLIB_PATH
19519     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19520     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19521     soname_spec='${libname}${release}${shared_ext}$major'
19522     ;;
19523   esac
19524   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19525   postinstall_cmds='chmod 555 $lib'
19526   # or fails outright, so override atomically:
19527   install_override_mode=555
19528   ;;
19529
19530 interix[3-9]*)
19531   version_type=linux
19532   need_lib_prefix=no
19533   need_version=no
19534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19535   soname_spec='${libname}${release}${shared_ext}$major'
19536   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19537   shlibpath_var=LD_LIBRARY_PATH
19538   shlibpath_overrides_runpath=no
19539   hardcode_into_libs=yes
19540   ;;
19541
19542 irix5* | irix6* | nonstopux*)
19543   case $host_os in
19544     nonstopux*) version_type=nonstopux ;;
19545     *)
19546         if test "$lt_cv_prog_gnu_ld" = yes; then
19547                 version_type=linux
19548         else
19549                 version_type=irix
19550         fi ;;
19551   esac
19552   need_lib_prefix=no
19553   need_version=no
19554   soname_spec='${libname}${release}${shared_ext}$major'
19555   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19556   case $host_os in
19557   irix5* | nonstopux*)
19558     libsuff= shlibsuff=
19559     ;;
19560   *)
19561     case $LD in # libtool.m4 will add one of these switches to LD
19562     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19563       libsuff= shlibsuff= libmagic=32-bit;;
19564     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19565       libsuff=32 shlibsuff=N32 libmagic=N32;;
19566     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19567       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19568     *) libsuff= shlibsuff= libmagic=never-match;;
19569     esac
19570     ;;
19571   esac
19572   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19573   shlibpath_overrides_runpath=no
19574   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19575   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19576   hardcode_into_libs=yes
19577   ;;
19578
19579 # No shared lib support for Linux oldld, aout, or coff.
19580 linux*oldld* | linux*aout* | linux*coff*)
19581   dynamic_linker=no
19582   ;;
19583
19584 # This must be Linux ELF.
19585 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19586   version_type=linux
19587   need_lib_prefix=no
19588   need_version=no
19589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590   soname_spec='${libname}${release}${shared_ext}$major'
19591   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19592   shlibpath_var=LD_LIBRARY_PATH
19593   shlibpath_overrides_runpath=no
19594
19595   # Some binutils ld are patched to set DT_RUNPATH
19596   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19597   $as_echo_n "(cached) " >&6
19598 else
19599   lt_cv_shlibpath_overrides_runpath=no
19600     save_LDFLAGS=$LDFLAGS
19601     save_libdir=$libdir
19602     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19603          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19604     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19605 /* end confdefs.h.  */
19606
19607 int
19608 main ()
19609 {
19610
19611   ;
19612   return 0;
19613 }
19614 _ACEOF
19615 if ac_fn_cxx_try_link "$LINENO"; then :
19616   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19617   lt_cv_shlibpath_overrides_runpath=yes
19618 fi
19619 fi
19620 rm -f core conftest.err conftest.$ac_objext \
19621     conftest$ac_exeext conftest.$ac_ext
19622     LDFLAGS=$save_LDFLAGS
19623     libdir=$save_libdir
19624
19625 fi
19626
19627   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19628
19629   # This implies no fast_install, which is unacceptable.
19630   # Some rework will be needed to allow for fast_install
19631   # before this can be enabled.
19632   hardcode_into_libs=yes
19633
19634   # Add ABI-specific directories to the system library path.
19635   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19636
19637   # Append ld.so.conf contents to the search path
19638   if test -f /etc/ld.so.conf; then
19639     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' ' '`
19640     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19641
19642   fi
19643
19644   # We used to test for /lib/ld.so.1 and disable shared libraries on
19645   # powerpc, because MkLinux only supported shared libraries with the
19646   # GNU dynamic linker.  Since this was broken with cross compilers,
19647   # most powerpc-linux boxes support dynamic linking these days and
19648   # people can always --disable-shared, the test was removed, and we
19649   # assume the GNU/Linux dynamic linker is in use.
19650   dynamic_linker='GNU/Linux ld.so'
19651   ;;
19652
19653 netbsd*)
19654   version_type=sunos
19655   need_lib_prefix=no
19656   need_version=no
19657   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19658     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19659     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19660     dynamic_linker='NetBSD (a.out) ld.so'
19661   else
19662     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19663     soname_spec='${libname}${release}${shared_ext}$major'
19664     dynamic_linker='NetBSD ld.elf_so'
19665   fi
19666   shlibpath_var=LD_LIBRARY_PATH
19667   shlibpath_overrides_runpath=yes
19668   hardcode_into_libs=yes
19669   ;;
19670
19671 newsos6)
19672   version_type=linux
19673   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19674   shlibpath_var=LD_LIBRARY_PATH
19675   shlibpath_overrides_runpath=yes
19676   ;;
19677
19678 *nto* | *qnx*)
19679   version_type=qnx
19680   need_lib_prefix=no
19681   need_version=no
19682   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19683   soname_spec='${libname}${release}${shared_ext}$major'
19684   shlibpath_var=LD_LIBRARY_PATH
19685   shlibpath_overrides_runpath=no
19686   hardcode_into_libs=yes
19687   dynamic_linker='ldqnx.so'
19688   ;;
19689
19690 openbsd*)
19691   version_type=sunos
19692   sys_lib_dlsearch_path_spec="/usr/lib"
19693   need_lib_prefix=no
19694   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19695   case $host_os in
19696     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19697     *)                          need_version=no  ;;
19698   esac
19699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19700   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19701   shlibpath_var=LD_LIBRARY_PATH
19702   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19703     case $host_os in
19704       openbsd2.[89] | openbsd2.[89].*)
19705         shlibpath_overrides_runpath=no
19706         ;;
19707       *)
19708         shlibpath_overrides_runpath=yes
19709         ;;
19710       esac
19711   else
19712     shlibpath_overrides_runpath=yes
19713   fi
19714   ;;
19715
19716 os2*)
19717   libname_spec='$name'
19718   shrext_cmds=".dll"
19719   need_lib_prefix=no
19720   library_names_spec='$libname${shared_ext} $libname.a'
19721   dynamic_linker='OS/2 ld.exe'
19722   shlibpath_var=LIBPATH
19723   ;;
19724
19725 osf3* | osf4* | osf5*)
19726   version_type=osf
19727   need_lib_prefix=no
19728   need_version=no
19729   soname_spec='${libname}${release}${shared_ext}$major'
19730   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19731   shlibpath_var=LD_LIBRARY_PATH
19732   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19733   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19734   ;;
19735
19736 rdos*)
19737   dynamic_linker=no
19738   ;;
19739
19740 solaris*)
19741   version_type=linux
19742   need_lib_prefix=no
19743   need_version=no
19744   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19745   soname_spec='${libname}${release}${shared_ext}$major'
19746   shlibpath_var=LD_LIBRARY_PATH
19747   shlibpath_overrides_runpath=yes
19748   hardcode_into_libs=yes
19749   # ldd complains unless libraries are executable
19750   postinstall_cmds='chmod +x $lib'
19751   ;;
19752
19753 sunos4*)
19754   version_type=sunos
19755   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19756   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19757   shlibpath_var=LD_LIBRARY_PATH
19758   shlibpath_overrides_runpath=yes
19759   if test "$with_gnu_ld" = yes; then
19760     need_lib_prefix=no
19761   fi
19762   need_version=yes
19763   ;;
19764
19765 sysv4 | sysv4.3*)
19766   version_type=linux
19767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19768   soname_spec='${libname}${release}${shared_ext}$major'
19769   shlibpath_var=LD_LIBRARY_PATH
19770   case $host_vendor in
19771     sni)
19772       shlibpath_overrides_runpath=no
19773       need_lib_prefix=no
19774       runpath_var=LD_RUN_PATH
19775       ;;
19776     siemens)
19777       need_lib_prefix=no
19778       ;;
19779     motorola)
19780       need_lib_prefix=no
19781       need_version=no
19782       shlibpath_overrides_runpath=no
19783       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19784       ;;
19785   esac
19786   ;;
19787
19788 sysv4*MP*)
19789   if test -d /usr/nec ;then
19790     version_type=linux
19791     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19792     soname_spec='$libname${shared_ext}.$major'
19793     shlibpath_var=LD_LIBRARY_PATH
19794   fi
19795   ;;
19796
19797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19798   version_type=freebsd-elf
19799   need_lib_prefix=no
19800   need_version=no
19801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19802   soname_spec='${libname}${release}${shared_ext}$major'
19803   shlibpath_var=LD_LIBRARY_PATH
19804   shlibpath_overrides_runpath=yes
19805   hardcode_into_libs=yes
19806   if test "$with_gnu_ld" = yes; then
19807     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19808   else
19809     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19810     case $host_os in
19811       sco3.2v5*)
19812         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19813         ;;
19814     esac
19815   fi
19816   sys_lib_dlsearch_path_spec='/usr/lib'
19817   ;;
19818
19819 tpf*)
19820   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19821   version_type=linux
19822   need_lib_prefix=no
19823   need_version=no
19824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19825   shlibpath_var=LD_LIBRARY_PATH
19826   shlibpath_overrides_runpath=no
19827   hardcode_into_libs=yes
19828   ;;
19829
19830 uts4*)
19831   version_type=linux
19832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19833   soname_spec='${libname}${release}${shared_ext}$major'
19834   shlibpath_var=LD_LIBRARY_PATH
19835   ;;
19836
19837 *)
19838   dynamic_linker=no
19839   ;;
19840 esac
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19842 $as_echo "$dynamic_linker" >&6; }
19843 test "$dynamic_linker" = no && can_build_shared=no
19844
19845 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19846 if test "$GCC" = yes; then
19847   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19848 fi
19849
19850 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19851   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19852 fi
19853 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19854   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19855 fi
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886
19887
19888
19889
19890
19891
19892
19893
19894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19895 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19896 hardcode_action_CXX=
19897 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19898    test -n "$runpath_var_CXX" ||
19899    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19900
19901   # We can hardcode non-existent directories.
19902   if test "$hardcode_direct_CXX" != no &&
19903      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19904      # have to relink, otherwise we might link with an installed library
19905      # when we should be linking with a yet-to-be-installed one
19906      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19907      test "$hardcode_minus_L_CXX" != no; then
19908     # Linking always hardcodes the temporary library directory.
19909     hardcode_action_CXX=relink
19910   else
19911     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19912     hardcode_action_CXX=immediate
19913   fi
19914 else
19915   # We cannot hardcode anything, or else we can only hardcode existing
19916   # directories.
19917   hardcode_action_CXX=unsupported
19918 fi
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19920 $as_echo "$hardcode_action_CXX" >&6; }
19921
19922 if test "$hardcode_action_CXX" = relink ||
19923    test "$inherit_rpath_CXX" = yes; then
19924   # Fast installation is not supported
19925   enable_fast_install=no
19926 elif test "$shlibpath_overrides_runpath" = yes ||
19927      test "$enable_shared" = no; then
19928   # Fast installation is not necessary
19929   enable_fast_install=needless
19930 fi
19931
19932
19933
19934
19935
19936
19937
19938   fi # test -n "$compiler"
19939
19940   CC=$lt_save_CC
19941   CFLAGS=$lt_save_CFLAGS
19942   LDCXX=$LD
19943   LD=$lt_save_LD
19944   GCC=$lt_save_GCC
19945   with_gnu_ld=$lt_save_with_gnu_ld
19946   lt_cv_path_LDCXX=$lt_cv_path_LD
19947   lt_cv_path_LD=$lt_save_path_LD
19948   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19949   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19950 fi # test "$_lt_caught_CXX_error" != yes
19951
19952 ac_ext=c
19953 ac_cpp='$CPP $CPPFLAGS'
19954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19957
19958
19959
19960
19961
19962
19963
19964
19965
19966
19967
19968
19969
19970         ac_config_commands="$ac_config_commands libtool"
19971
19972
19973
19974
19975 # Only expand once:
19976
19977
19978
19979
19980
19981 # Configure libltdl
19982
19983
19984
19985
19986
19987
19988
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19990 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19991 if ${libltdl_cv_shlibext+:} false; then :
19992   $as_echo_n "(cached) " >&6
19993 else
19994
19995 module=yes
19996 eval libltdl_cv_shlibext=$shrext_cmds
19997
19998 fi
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20000 $as_echo "$libltdl_cv_shlibext" >&6; }
20001 if test -n "$libltdl_cv_shlibext"; then
20002
20003 cat >>confdefs.h <<_ACEOF
20004 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
20005 _ACEOF
20006
20007 fi
20008
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20010 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
20011 if ${lt_cv_module_path_var+:} false; then :
20012   $as_echo_n "(cached) " >&6
20013 else
20014   lt_cv_module_path_var="$shlibpath_var"
20015 fi
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20017 $as_echo "$lt_cv_module_path_var" >&6; }
20018 if test -n "$lt_cv_module_path_var"; then
20019
20020 cat >>confdefs.h <<_ACEOF
20021 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20022 _ACEOF
20023
20024 fi
20025
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20027 $as_echo_n "checking for the default library search path... " >&6; }
20028 if ${lt_cv_sys_dlsearch_path+:} false; then :
20029   $as_echo_n "(cached) " >&6
20030 else
20031   lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20032 fi
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20034 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20035 if test -n "$lt_cv_sys_dlsearch_path"; then
20036   sys_dlsearch_path=
20037   for dir in $lt_cv_sys_dlsearch_path; do
20038     if test -z "$sys_dlsearch_path"; then
20039       sys_dlsearch_path="$dir"
20040     else
20041       sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20042     fi
20043   done
20044
20045 cat >>confdefs.h <<_ACEOF
20046 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20047 _ACEOF
20048
20049 fi
20050
20051
20052 LT_DLLOADERS=
20053
20054
20055 ac_ext=c
20056 ac_cpp='$CPP $CPPFLAGS'
20057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20060
20061
20062 LIBADD_DLOPEN=
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20064 $as_echo_n "checking for library containing dlopen... " >&6; }
20065 if ${ac_cv_search_dlopen+:} false; then :
20066   $as_echo_n "(cached) " >&6
20067 else
20068   ac_func_search_save_LIBS=$LIBS
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h.  */
20071
20072 /* Override any GCC internal prototype to avoid an error.
20073    Use char because int might match the return type of a GCC
20074    builtin and then its argument prototype would still apply.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char dlopen ();
20079 int
20080 main ()
20081 {
20082 return dlopen ();
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 for ac_lib in '' dl; do
20088   if test -z "$ac_lib"; then
20089     ac_res="none required"
20090   else
20091     ac_res=-l$ac_lib
20092     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20093   fi
20094   if ac_fn_c_try_link "$LINENO"; then :
20095   ac_cv_search_dlopen=$ac_res
20096 fi
20097 rm -f core conftest.err conftest.$ac_objext \
20098     conftest$ac_exeext
20099   if ${ac_cv_search_dlopen+:} false; then :
20100   break
20101 fi
20102 done
20103 if ${ac_cv_search_dlopen+:} false; then :
20104
20105 else
20106   ac_cv_search_dlopen=no
20107 fi
20108 rm conftest.$ac_ext
20109 LIBS=$ac_func_search_save_LIBS
20110 fi
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20112 $as_echo "$ac_cv_search_dlopen" >&6; }
20113 ac_res=$ac_cv_search_dlopen
20114 if test "$ac_res" != no; then :
20115   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20116
20117 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20118
20119         if test "$ac_cv_search_dlopen" != "none required" ; then
20120           LIBADD_DLOPEN="-ldl"
20121         fi
20122         libltdl_cv_lib_dl_dlopen="yes"
20123         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20124 else
20125   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h.  */
20127 #if HAVE_DLFCN_H
20128 #  include <dlfcn.h>
20129 #endif
20130
20131 int
20132 main ()
20133 {
20134 dlopen(0, 0);
20135   ;
20136   return 0;
20137 }
20138 _ACEOF
20139 if ac_fn_c_try_link "$LINENO"; then :
20140
20141 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20142
20143             libltdl_cv_func_dlopen="yes"
20144             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20145 else
20146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20147 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20148 if ${ac_cv_lib_svld_dlopen+:} false; then :
20149   $as_echo_n "(cached) " >&6
20150 else
20151   ac_check_lib_save_LIBS=$LIBS
20152 LIBS="-lsvld  $LIBS"
20153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20154 /* end confdefs.h.  */
20155
20156 /* Override any GCC internal prototype to avoid an error.
20157    Use char because int might match the return type of a GCC
20158    builtin and then its argument prototype would still apply.  */
20159 #ifdef __cplusplus
20160 extern "C"
20161 #endif
20162 char dlopen ();
20163 int
20164 main ()
20165 {
20166 return dlopen ();
20167   ;
20168   return 0;
20169 }
20170 _ACEOF
20171 if ac_fn_c_try_link "$LINENO"; then :
20172   ac_cv_lib_svld_dlopen=yes
20173 else
20174   ac_cv_lib_svld_dlopen=no
20175 fi
20176 rm -f core conftest.err conftest.$ac_objext \
20177     conftest$ac_exeext conftest.$ac_ext
20178 LIBS=$ac_check_lib_save_LIBS
20179 fi
20180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20181 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20182 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20183
20184 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20185
20186                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20187                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20188 fi
20189
20190 fi
20191 rm -f core conftest.err conftest.$ac_objext \
20192     conftest$ac_exeext conftest.$ac_ext
20193 fi
20194
20195 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20196 then
20197   lt_save_LIBS="$LIBS"
20198   LIBS="$LIBS $LIBADD_DLOPEN"
20199   for ac_func in dlerror
20200 do :
20201   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20202 if test "x$ac_cv_func_dlerror" = xyes; then :
20203   cat >>confdefs.h <<_ACEOF
20204 #define HAVE_DLERROR 1
20205 _ACEOF
20206
20207 fi
20208 done
20209
20210   LIBS="$lt_save_LIBS"
20211 fi
20212
20213
20214 LIBADD_SHL_LOAD=
20215 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20216 if test "x$ac_cv_func_shl_load" = xyes; then :
20217
20218 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20219
20220         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20221 else
20222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20223 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20224 if ${ac_cv_lib_dld_shl_load+:} false; then :
20225   $as_echo_n "(cached) " >&6
20226 else
20227   ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-ldld  $LIBS"
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h.  */
20231
20232 /* Override any GCC internal prototype to avoid an error.
20233    Use char because int might match the return type of a GCC
20234    builtin and then its argument prototype would still apply.  */
20235 #ifdef __cplusplus
20236 extern "C"
20237 #endif
20238 char shl_load ();
20239 int
20240 main ()
20241 {
20242 return shl_load ();
20243   ;
20244   return 0;
20245 }
20246 _ACEOF
20247 if ac_fn_c_try_link "$LINENO"; then :
20248   ac_cv_lib_dld_shl_load=yes
20249 else
20250   ac_cv_lib_dld_shl_load=no
20251 fi
20252 rm -f core conftest.err conftest.$ac_objext \
20253     conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20255 fi
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20257 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20258 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20259
20260 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20261
20262             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20263             LIBADD_SHL_LOAD="-ldld"
20264 fi
20265
20266 fi
20267
20268
20269
20270 case $host_os in
20271 darwin[1567].*)
20272 # We only want this for pre-Mac OS X 10.4.
20273   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20274 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20275
20276 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20277
20278         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20279 fi
20280
20281   ;;
20282 beos*)
20283   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20284   ;;
20285 cygwin* | mingw* | os2* | pw32*)
20286   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20287 "
20288 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20289   ac_have_decl=1
20290 else
20291   ac_have_decl=0
20292 fi
20293
20294 cat >>confdefs.h <<_ACEOF
20295 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20296 _ACEOF
20297
20298   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20299   ;;
20300 esac
20301
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20303 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20304 if ${ac_cv_lib_dld_dld_link+:} false; then :
20305   $as_echo_n "(cached) " >&6
20306 else
20307   ac_check_lib_save_LIBS=$LIBS
20308 LIBS="-ldld  $LIBS"
20309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20310 /* end confdefs.h.  */
20311
20312 /* Override any GCC internal prototype to avoid an error.
20313    Use char because int might match the return type of a GCC
20314    builtin and then its argument prototype would still apply.  */
20315 #ifdef __cplusplus
20316 extern "C"
20317 #endif
20318 char dld_link ();
20319 int
20320 main ()
20321 {
20322 return dld_link ();
20323   ;
20324   return 0;
20325 }
20326 _ACEOF
20327 if ac_fn_c_try_link "$LINENO"; then :
20328   ac_cv_lib_dld_dld_link=yes
20329 else
20330   ac_cv_lib_dld_dld_link=no
20331 fi
20332 rm -f core conftest.err conftest.$ac_objext \
20333     conftest$ac_exeext conftest.$ac_ext
20334 LIBS=$ac_check_lib_save_LIBS
20335 fi
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20337 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20338 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20339
20340 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20341
20342                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20343 fi
20344
20345
20346
20347
20348 LT_DLPREOPEN=
20349 if test -n "$LT_DLLOADERS"
20350 then
20351   for lt_loader in $LT_DLLOADERS; do
20352     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20353   done
20354
20355 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20356
20357 fi
20358
20359
20360 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20361
20362
20363 ac_ext=c
20364 ac_cpp='$CPP $CPPFLAGS'
20365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20368
20369
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20371 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20372 if ${lt_cv_sys_symbol_underscore+:} false; then :
20373   $as_echo_n "(cached) " >&6
20374 else
20375   lt_cv_sys_symbol_underscore=no
20376   cat > conftest.$ac_ext <<_LT_EOF
20377 void nm_test_func(){}
20378 int main(){nm_test_func;return 0;}
20379 _LT_EOF
20380   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20381   (eval $ac_compile) 2>&5
20382   ac_status=$?
20383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20384   test $ac_status = 0; }; then
20385     # Now try to grab the symbols.
20386     ac_nlist=conftest.nm
20387     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20388   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20389   ac_status=$?
20390   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20391   test $ac_status = 0; } && test -s "$ac_nlist"; then
20392       # See whether the symbols have a leading underscore.
20393       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20394         lt_cv_sys_symbol_underscore=yes
20395       else
20396         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20397           :
20398         else
20399           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20400         fi
20401       fi
20402     else
20403       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20404     fi
20405   else
20406     echo "configure: failed program was:" >&5
20407     cat conftest.c >&5
20408   fi
20409   rm -rf conftest*
20410
20411 fi
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20413 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20414   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20415
20416
20417 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20418   if test x"$libltdl_cv_func_dlopen" = xyes ||
20419      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20420         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20421 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20422 if ${libltdl_cv_need_uscore+:} false; then :
20423   $as_echo_n "(cached) " >&6
20424 else
20425   libltdl_cv_need_uscore=unknown
20426           save_LIBS="$LIBS"
20427           LIBS="$LIBS $LIBADD_DLOPEN"
20428           if test "$cross_compiling" = yes; then :
20429   libltdl_cv_need_uscore=cross
20430 else
20431   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20432   lt_status=$lt_dlunknown
20433   cat > conftest.$ac_ext <<_LT_EOF
20434 #line $LINENO "configure"
20435 #include "confdefs.h"
20436
20437 #if HAVE_DLFCN_H
20438 #include <dlfcn.h>
20439 #endif
20440
20441 #include <stdio.h>
20442
20443 #ifdef RTLD_GLOBAL
20444 #  define LT_DLGLOBAL           RTLD_GLOBAL
20445 #else
20446 #  ifdef DL_GLOBAL
20447 #    define LT_DLGLOBAL         DL_GLOBAL
20448 #  else
20449 #    define LT_DLGLOBAL         0
20450 #  endif
20451 #endif
20452
20453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20454    find out it does not work in some platform. */
20455 #ifndef LT_DLLAZY_OR_NOW
20456 #  ifdef RTLD_LAZY
20457 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
20458 #  else
20459 #    ifdef DL_LAZY
20460 #      define LT_DLLAZY_OR_NOW          DL_LAZY
20461 #    else
20462 #      ifdef RTLD_NOW
20463 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
20464 #      else
20465 #        ifdef DL_NOW
20466 #          define LT_DLLAZY_OR_NOW      DL_NOW
20467 #        else
20468 #          define LT_DLLAZY_OR_NOW      0
20469 #        endif
20470 #      endif
20471 #    endif
20472 #  endif
20473 #endif
20474
20475 /* When -fvisbility=hidden is used, assume the code has been annotated
20476    correspondingly for the symbols needed.  */
20477 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20478 int fnord () __attribute__((visibility("default")));
20479 #endif
20480
20481 int fnord () { return 42; }
20482 int main ()
20483 {
20484   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20485   int status = $lt_dlunknown;
20486
20487   if (self)
20488     {
20489       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
20490       else
20491         {
20492           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
20493           else puts (dlerror ());
20494         }
20495       /* dlclose (self); */
20496     }
20497   else
20498     puts (dlerror ());
20499
20500   return status;
20501 }
20502 _LT_EOF
20503   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20504   (eval $ac_link) 2>&5
20505   ac_status=$?
20506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20507   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20508     (./conftest; exit; ) >&5 2>/dev/null
20509     lt_status=$?
20510     case x$lt_status in
20511       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20512       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20513       x$lt_dlunknown|x*)  ;;
20514     esac
20515   else :
20516     # compilation failed
20517
20518   fi
20519 fi
20520 rm -fr conftest*
20521
20522           LIBS="$save_LIBS"
20523
20524 fi
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20526 $as_echo "$libltdl_cv_need_uscore" >&6; }
20527   fi
20528 fi
20529
20530 if test x"$libltdl_cv_need_uscore" = xyes; then
20531
20532 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20533
20534 fi
20535
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20537 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20538 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20539   $as_echo_n "(cached) " >&6
20540 else
20541   # PORTME does your system automatically load deplibs for dlopen?
20542   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20543   # For now, we just catch OSes we know something about -- in the
20544   # future, we'll try test this programmatically.
20545   lt_cv_sys_dlopen_deplibs=unknown
20546   case $host_os in
20547   aix3*|aix4.1.*|aix4.2.*)
20548     # Unknown whether this is true for these versions of AIX, but
20549     # we want this `case' here to explicitly catch those versions.
20550     lt_cv_sys_dlopen_deplibs=unknown
20551     ;;
20552   aix[4-9]*)
20553     lt_cv_sys_dlopen_deplibs=yes
20554     ;;
20555   amigaos*)
20556     case $host_cpu in
20557     powerpc)
20558       lt_cv_sys_dlopen_deplibs=no
20559       ;;
20560     esac
20561     ;;
20562   darwin*)
20563     # Assuming the user has installed a libdl from somewhere, this is true
20564     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20565     lt_cv_sys_dlopen_deplibs=yes
20566     ;;
20567   freebsd* | dragonfly*)
20568     lt_cv_sys_dlopen_deplibs=yes
20569     ;;
20570   gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20571     # GNU and its variants, using gnu ld.so (Glibc)
20572     lt_cv_sys_dlopen_deplibs=yes
20573     ;;
20574   hpux10*|hpux11*)
20575     lt_cv_sys_dlopen_deplibs=yes
20576     ;;
20577   interix*)
20578     lt_cv_sys_dlopen_deplibs=yes
20579     ;;
20580   irix[12345]*|irix6.[01]*)
20581     # Catch all versions of IRIX before 6.2, and indicate that we don't
20582     # know how it worked for any of those versions.
20583     lt_cv_sys_dlopen_deplibs=unknown
20584     ;;
20585   irix*)
20586     # The case above catches anything before 6.2, and it's known that
20587     # at 6.2 and later dlopen does load deplibs.
20588     lt_cv_sys_dlopen_deplibs=yes
20589     ;;
20590   netbsd*)
20591     lt_cv_sys_dlopen_deplibs=yes
20592     ;;
20593   openbsd*)
20594     lt_cv_sys_dlopen_deplibs=yes
20595     ;;
20596   osf[1234]*)
20597     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20598     # it did *not* use an RPATH in a shared library to find objects the
20599     # library depends on, so we explicitly say `no'.
20600     lt_cv_sys_dlopen_deplibs=no
20601     ;;
20602   osf5.0|osf5.0a|osf5.1)
20603     # dlopen *does* load deplibs and with the right loader patch applied
20604     # it even uses RPATH in a shared library to search for shared objects
20605     # that the library depends on, but there's no easy way to know if that
20606     # patch is installed.  Since this is the case, all we can really
20607     # say is unknown -- it depends on the patch being installed.  If
20608     # it is, this changes to `yes'.  Without it, it would be `no'.
20609     lt_cv_sys_dlopen_deplibs=unknown
20610     ;;
20611   osf*)
20612     # the two cases above should catch all versions of osf <= 5.1.  Read
20613     # the comments above for what we know about them.
20614     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20615     # is used to find them so we can finally say `yes'.
20616     lt_cv_sys_dlopen_deplibs=yes
20617     ;;
20618   qnx*)
20619     lt_cv_sys_dlopen_deplibs=yes
20620     ;;
20621   solaris*)
20622     lt_cv_sys_dlopen_deplibs=yes
20623     ;;
20624   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20625     libltdl_cv_sys_dlopen_deplibs=yes
20626     ;;
20627   esac
20628
20629 fi
20630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20631 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20632 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20633
20634 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20635
20636 fi
20637
20638 :
20639
20640 for ac_header in argz.h
20641 do :
20642   ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20643 "
20644 if test "x$ac_cv_header_argz_h" = xyes; then :
20645   cat >>confdefs.h <<_ACEOF
20646 #define HAVE_ARGZ_H 1
20647 _ACEOF
20648
20649 fi
20650
20651 done
20652
20653
20654 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20655 #  include <argz.h>
20656 #endif
20657 "
20658 if test "x$ac_cv_type_error_t" = xyes; then :
20659
20660 cat >>confdefs.h <<_ACEOF
20661 #define HAVE_ERROR_T 1
20662 _ACEOF
20663
20664
20665 else
20666
20667 $as_echo "#define error_t int" >>confdefs.h
20668
20669
20670 $as_echo "#define __error_t_defined 1" >>confdefs.h
20671
20672 fi
20673
20674
20675 ARGZ_H=
20676 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20677         argz_next argz_stringify
20678 do :
20679   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20680 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20681 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20682   cat >>confdefs.h <<_ACEOF
20683 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20684 _ACEOF
20685
20686 else
20687   ARGZ_H=argz.h;
20688
20689   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20690
20691 fi
20692 done
20693
20694
20695 if test -z "$ARGZ_H"; then :
20696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20697 $as_echo_n "checking if argz actually works... " >&6; }
20698 if ${lt_cv_sys_argz_works+:} false; then :
20699   $as_echo_n "(cached) " >&6
20700 else
20701   case $host_os in #(
20702          *cygwin*)
20703            lt_cv_sys_argz_works=no
20704            if test "$cross_compiling" != no; then
20705              lt_cv_sys_argz_works="guessing no"
20706            else
20707              lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20708              save_IFS=$IFS
20709              IFS=-.
20710              set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20711              IFS=$save_IFS
20712              lt_os_major=${2-0}
20713              lt_os_minor=${3-0}
20714              lt_os_micro=${4-0}
20715              if test "$lt_os_major" -gt 1 \
20716                 || { test "$lt_os_major" -eq 1 \
20717                   && { test "$lt_os_minor" -gt 5 \
20718                     || { test "$lt_os_minor" -eq 5 \
20719                       && test "$lt_os_micro" -gt 24; }; }; }; then
20720                lt_cv_sys_argz_works=yes
20721              fi
20722            fi
20723            ;; #(
20724          *) lt_cv_sys_argz_works=yes ;;
20725          esac
20726 fi
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20728 $as_echo "$lt_cv_sys_argz_works" >&6; }
20729      if test "$lt_cv_sys_argz_works" = yes; then :
20730
20731 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20732
20733 else
20734   ARGZ_H=argz.h
20735
20736
20737   _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20738
20739 fi
20740 fi
20741
20742
20743
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20745 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20746 if ${libltdl_cv_preloaded_symbols+:} false; then :
20747   $as_echo_n "(cached) " >&6
20748 else
20749   if test -n "$lt_cv_sys_global_symbol_pipe"; then
20750     libltdl_cv_preloaded_symbols=yes
20751   else
20752     libltdl_cv_preloaded_symbols=no
20753   fi
20754
20755 fi
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20757 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20758 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20759
20760 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20761
20762 fi
20763
20764 # Set options
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776 # Check whether --with-included_ltdl was given.
20777 if test "${with_included_ltdl+set}" = set; then :
20778   withval=$with_included_ltdl;
20779 fi
20780
20781
20782 if test "x$with_included_ltdl" != xyes; then
20783   # We are not being forced to use the included libltdl sources, so
20784   # decide whether there is a useful installed version we can use.
20785   ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20786
20787 "
20788 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20789   ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20790             #include <ltdl.h>
20791 "
20792 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20794 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20795 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20796   $as_echo_n "(cached) " >&6
20797 else
20798   ac_check_lib_save_LIBS=$LIBS
20799 LIBS="-lltdl  $LIBS"
20800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20801 /* end confdefs.h.  */
20802
20803 /* Override any GCC internal prototype to avoid an error.
20804    Use char because int might match the return type of a GCC
20805    builtin and then its argument prototype would still apply.  */
20806 #ifdef __cplusplus
20807 extern "C"
20808 #endif
20809 char lt_dladvise_preload ();
20810 int
20811 main ()
20812 {
20813 return lt_dladvise_preload ();
20814   ;
20815   return 0;
20816 }
20817 _ACEOF
20818 if ac_fn_c_try_link "$LINENO"; then :
20819   ac_cv_lib_ltdl_lt_dladvise_preload=yes
20820 else
20821   ac_cv_lib_ltdl_lt_dladvise_preload=no
20822 fi
20823 rm -f core conftest.err conftest.$ac_objext \
20824     conftest$ac_exeext conftest.$ac_ext
20825 LIBS=$ac_check_lib_save_LIBS
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20828 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20829 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20830   with_included_ltdl=no
20831 else
20832   with_included_ltdl=yes
20833 fi
20834
20835 else
20836   with_included_ltdl=yes
20837 fi
20838
20839 else
20840   with_included_ltdl=yes
20841 fi
20842
20843
20844 fi
20845
20846
20847
20848
20849 # Check whether --with-ltdl_include was given.
20850 if test "${with_ltdl_include+set}" = set; then :
20851   withval=$with_ltdl_include;
20852 fi
20853
20854
20855 if test -n "$with_ltdl_include"; then
20856   if test -f "$with_ltdl_include/ltdl.h"; then :
20857   else
20858     as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20859   fi
20860 else
20861   with_ltdl_include=no
20862 fi
20863
20864
20865 # Check whether --with-ltdl_lib was given.
20866 if test "${with_ltdl_lib+set}" = set; then :
20867   withval=$with_ltdl_lib;
20868 fi
20869
20870
20871 if test -n "$with_ltdl_lib"; then
20872   if test -f "$with_ltdl_lib/libltdl.la"; then :
20873   else
20874     as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20875   fi
20876 else
20877   with_ltdl_lib=no
20878 fi
20879
20880 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20881   ,yes,no,no,)
20882         case $enable_ltdl_convenience in
20883   no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20884   "") enable_ltdl_convenience=yes
20885       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20886 esac
20887 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20888 LTDLDEPS=$LIBLTDL
20889 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20890
20891
20892
20893
20894
20895 # For backwards non-gettext consistent compatibility...
20896 INCLTDL="$LTDLINCL"
20897
20898
20899         ;;
20900   ,no,no,no,)
20901         # If the included ltdl is not to be used, then use the
20902         # preinstalled libltdl we found.
20903
20904 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20905
20906         LIBLTDL=-lltdl
20907         LTDLDEPS=
20908         LTDLINCL=
20909         ;;
20910   ,no*,no,*)
20911         as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20912         ;;
20913   *)    with_included_ltdl=no
20914         LIBLTDL="-L$with_ltdl_lib -lltdl"
20915         LTDLDEPS=
20916         LTDLINCL="-I$with_ltdl_include"
20917         ;;
20918 esac
20919 INCLTDL="$LTDLINCL"
20920
20921 # Report our decision...
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20923 $as_echo_n "checking where to find libltdl headers... " >&6; }
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20925 $as_echo "$LTDLINCL" >&6; }
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20927 $as_echo_n "checking where to find libltdl library... " >&6; }
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20929 $as_echo "$LIBLTDL" >&6; }
20930
20931
20932
20933 # Check whether --enable-ltdl-install was given.
20934 if test "${enable_ltdl_install+set}" = set; then :
20935   enableval=$enable_ltdl_install;
20936 fi
20937
20938
20939 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20940   *yes*) ;;
20941   *) enable_ltdl_convenience=yes ;;
20942 esac
20943
20944  if test x"${enable_ltdl_install-no}" != xno; then
20945   INSTALL_LTDL_TRUE=
20946   INSTALL_LTDL_FALSE='#'
20947 else
20948   INSTALL_LTDL_TRUE='#'
20949   INSTALL_LTDL_FALSE=
20950 fi
20951
20952   if test x"${enable_ltdl_convenience-no}" != xno; then
20953   CONVENIENCE_LTDL_TRUE=
20954   CONVENIENCE_LTDL_FALSE='#'
20955 else
20956   CONVENIENCE_LTDL_TRUE='#'
20957   CONVENIENCE_LTDL_FALSE=
20958 fi
20959
20960
20961
20962
20963
20964
20965 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20966 # the user used.  This is so that ltdl.h can pick up the parent projects
20967 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20968 # definitions required by ltdl.c.
20969 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20970
20971
20972
20973 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20974 do :
20975   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20976 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20977 "
20978 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20979   cat >>confdefs.h <<_ACEOF
20980 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20981 _ACEOF
20982
20983 fi
20984
20985 done
20986
20987
20988 for ac_func in closedir opendir readdir
20989 do :
20990   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20991 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20992 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20993   cat >>confdefs.h <<_ACEOF
20994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20995 _ACEOF
20996
20997 else
20998
20999
21000   _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21001
21002 fi
21003 done
21004
21005 for ac_func in strlcat strlcpy
21006 do :
21007   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21010   cat >>confdefs.h <<_ACEOF
21011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21012 _ACEOF
21013
21014 else
21015
21016
21017   _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21018
21019 fi
21020 done
21021
21022
21023
21024 cat >>confdefs.h <<_ACEOF
21025 #define LT_LIBEXT "$libext"
21026 _ACEOF
21027
21028
21029 name=
21030 eval "lt_libprefix=\"$libname_spec\""
21031
21032 cat >>confdefs.h <<_ACEOF
21033 #define LT_LIBPREFIX "$lt_libprefix"
21034 _ACEOF
21035
21036
21037 name=ltdl
21038 eval "LTDLOPEN=\"$libname_spec\""
21039
21040
21041
21042
21043
21044
21045
21046
21047 # Only expand once:
21048
21049
21050
21051 # Check to see if building shared libraries
21052 libtool_build_shared_libs='no'
21053 if test "$enable_shared" = 'yes'; then
21054     libtool_build_shared_libs='yes'
21055 fi
21056
21057 # Check to see if building static libraries
21058 libtool_build_static_libs='no'
21059 if test "$enable_static" = 'yes'; then
21060     libtool_build_static_libs='yes'
21061 fi
21062
21063  if test "${libtool_build_shared_libs}" = 'yes'; then
21064   WITH_SHARED_LIBS_TRUE=
21065   WITH_SHARED_LIBS_FALSE='#'
21066 else
21067   WITH_SHARED_LIBS_TRUE='#'
21068   WITH_SHARED_LIBS_FALSE=
21069 fi
21070
21071 #
21072 # Enable support for building loadable modules
21073 #
21074
21075 # Check whether --with-modules was given.
21076 if test "${with_modules+set}" = set; then :
21077   withval=$with_modules; with_modules=$withval
21078 else
21079   with_modules='no'
21080 fi
21081
21082
21083 # Only allow building loadable modules if we are building shared libraries
21084 if test "$with_modules" != 'no' ; then
21085     if test "$libtool_build_shared_libs" = 'no'; then
21086         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21087 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21088         with_modules='no'
21089     fi
21090 fi
21091 if test "$with_modules" != 'no'; then
21092
21093 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
21094
21095 fi
21096  if test "$with_modules" != 'no'; then
21097   WITH_MODULES_TRUE=
21098   WITH_MODULES_FALSE='#'
21099 else
21100   WITH_MODULES_TRUE='#'
21101   WITH_MODULES_FALSE=
21102 fi
21103
21104
21105 # Enable building/use of libltdl if we are building shared libraries regardless
21106 # of whether modules are built or not.
21107 with_ltdl='no'
21108 if test "$libtool_build_shared_libs" != 'no'; then
21109     with_ltdl='yes'
21110 fi
21111
21112  if test "$with_ltdl" != 'no'; then
21113   WITH_LTDL_TRUE=
21114   WITH_LTDL_FALSE='#'
21115 else
21116   WITH_LTDL_TRUE='#'
21117   WITH_LTDL_FALSE=
21118 fi
21119
21120 if test "$with_ltdl" != 'no'; then
21121
21122 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
21123
21124
21125     # Set DLLDFLAGS
21126     if test X"$enable_shared" = Xyes; then
21127         DLLDFLAGS=-export-dynamic
21128
21129     fi
21130 fi
21131
21132 # Enable build using delegate libraries built in subdirectories rather than installed
21133 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
21134 # Check whether --enable-delegate-build was given.
21135 if test "${enable_delegate_build+set}" = set; then :
21136   enableval=$enable_delegate_build; enable_delegate_build=$enableval
21137 else
21138   enable_delegate_build='no'
21139 fi
21140
21141
21142 # Check whether --enable-deprecated was given.
21143 if test "${enable_deprecated+set}" = set; then :
21144   enableval=$enable_deprecated; enable_deprecated=$enableval
21145 else
21146   enable_deprecated='no'
21147 fi
21148
21149
21150 if test "$enable_deprecated" = 'yes'; then
21151
21152 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21153
21154 else
21155   DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21156 fi
21157
21158 # Build a version of ImageMagick which operates uninstalled.
21159 # Used to build distributions located via MAGICK_HOME / executable path
21160 # Check whether --enable-installed was given.
21161 if test "${enable_installed+set}" = set; then :
21162   enableval=$enable_installed; enable_installed=$enableval
21163 else
21164   enable_installed='yes'
21165 fi
21166
21167
21168 if test "$enable_installed" = 'yes'; then
21169
21170 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21171
21172 else
21173     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21174 fi
21175
21176 # Permit enciphering and deciphering image pixels.
21177 # Check whether --enable-cipher was given.
21178 if test "${enable_cipher+set}" = set; then :
21179   enableval=$enable_cipher; enable_cipher=$enableval
21180 else
21181   enable_cipher='yes'
21182 fi
21183
21184
21185 if test "$enable_cipher" = 'yes'; then
21186
21187 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21188
21189 fi
21190
21191 # Build a zero-configuration version of ImageMagick.
21192 # Check whether --enable-zero-configuration was given.
21193 if test "${enable_zero_configuration+set}" = set; then :
21194   enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21195 else
21196   enable_zero_configuration='no'
21197 fi
21198
21199
21200 if test "$enable_zero_configuration" = 'yes'; then
21201
21202 $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21203
21204     MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21205 fi
21206
21207 # Build a high dynamic range version of ImageMagick.
21208 # Check whether --enable-hdri was given.
21209 if test "${enable_hdri+set}" = set; then :
21210   enableval=$enable_hdri; enable_hdri=$enableval
21211 else
21212   enable_hdri='no'
21213 fi
21214
21215
21216 MAGICK_HDRI=""
21217 if test "$enable_hdri" = 'yes'; then
21218     MAGICK_HDRI="HDRI"
21219
21220 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21221
21222     MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21223 fi
21224
21225 # Build a version of ImageMagick with assert statements.
21226 # Check whether --enable-assert was given.
21227 if test "${enable_assert+set}" = set; then :
21228   enableval=$enable_assert; enable_assert=$enableval
21229 else
21230   enable_assert='yes'
21231 fi
21232
21233
21234 if test "$enable_assert" = 'no'; then
21235
21236 $as_echo "#define NDEBUG 1" >>confdefs.h
21237
21238 fi
21239
21240 # Don't emit "rebuild rules" for configure, Makefile.ins, etc.
21241
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21243 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21244     # Check whether --enable-maintainer-mode was given.
21245 if test "${enable_maintainer_mode+set}" = set; then :
21246   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21247 else
21248   USE_MAINTAINER_MODE=no
21249 fi
21250
21251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21252 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21253    if test $USE_MAINTAINER_MODE = yes; then
21254   MAINTAINER_MODE_TRUE=
21255   MAINTAINER_MODE_FALSE='#'
21256 else
21257   MAINTAINER_MODE_TRUE='#'
21258   MAINTAINER_MODE_FALSE=
21259 fi
21260
21261   MAINT=$MAINTAINER_MODE_TRUE
21262
21263
21264
21265 # Enable ccmalloc memory debugging support
21266 # Check whether --enable-ccmalloc was given.
21267 if test "${enable_ccmalloc+set}" = set; then :
21268   enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21269 else
21270   enable_ccmalloc='no'
21271 fi
21272
21273
21274 # Enable Electric Fence memory debugging support
21275 # Check whether --enable-efence was given.
21276 if test "${enable_efence+set}" = set; then :
21277   enableval=$enable_efence; enable_efence=$enableval
21278 else
21279   enable_efence='no'
21280 fi
21281
21282
21283 # Enable prof-based profiling support
21284 # Check whether --enable-prof was given.
21285 if test "${enable_prof+set}" = set; then :
21286   enableval=$enable_prof; enable_prof=$enableval
21287 else
21288   enable_prof='no'
21289 fi
21290
21291
21292 # Enable gprof-based profiling support
21293 # Check whether --enable-gprof was given.
21294 if test "${enable_gprof+set}" = set; then :
21295   enableval=$enable_gprof; enable_gprof=$enableval
21296 else
21297   enable_gprof='no'
21298 fi
21299
21300
21301 # Enable gcov-based profiling support
21302 # Check whether --enable-gcov was given.
21303 if test "${enable_gcov+set}" = set; then :
21304   enableval=$enable_gcov; enable_gcov=$enableval
21305 else
21306   enable_gcov='no'
21307 fi
21308
21309
21310 enable_profiling='no'
21311 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21312     enable_profiling='yes'
21313     if test "$libtool_build_shared_libs" = 'yes'; then
21314         echo "Warning: Can not profile code using shared libraries"
21315     fi
21316 fi
21317
21318 # Magick API method prefix
21319
21320 # Check whether --with-method-prefix was given.
21321 if test "${with_method_prefix+set}" = set; then :
21322   withval=$with_method_prefix; with_method_prefix=$enableval
21323 else
21324   with_method_prefix=''
21325 fi
21326
21327
21328 if test "$with_method_prefix" != ''; then
21329
21330 cat >>confdefs.h <<_ACEOF
21331 #define NAMESPACE_PREFIX $with_method_prefix
21332 _ACEOF
21333
21334 fi
21335
21336 # Number of bits in a Quantum
21337
21338 # Check whether --with-quantum-depth was given.
21339 if test "${with_quantum_depth+set}" = set; then :
21340   withval=$with_quantum_depth; with_quantum_depth=$withval
21341 else
21342   with_quantum_depth=16
21343 fi
21344
21345
21346 if test "$with_quantum_depth" != '8'; then
21347     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21348 fi
21349
21350 case "${with_quantum_depth}" in
21351     8 ) ;;
21352     16 ) ;;
21353     32 ) ;;
21354     64 ) ;;
21355     * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21356 esac
21357 QUANTUM_DEPTH="$with_quantum_depth"
21358
21359 cat >>confdefs.h <<_ACEOF
21360 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21361 _ACEOF
21362
21363
21364 # Set pixel cache threshold
21365
21366 # Check whether --with-cache was given.
21367 if test "${with_cache+set}" = set; then :
21368   withval=$with_cache; with_cache=$withval
21369 else
21370   with_cache=''
21371 fi
21372
21373
21374 if test "$with_cache" != ''; then
21375
21376 cat >>confdefs.h <<_ACEOF
21377 #define PixelCacheThreshold $with_cache
21378 _ACEOF
21379
21380     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21381 fi
21382
21383 # Disable/Enable support for full delegate paths
21384
21385 # Check whether --with-frozenpaths was given.
21386 if test "${with_frozenpaths+set}" = set; then :
21387   withval=$with_frozenpaths; with_frozenpaths=$withval
21388 else
21389   with_frozenpaths='no'
21390 fi
21391
21392
21393 # Enable build/install of Magick++
21394
21395 # Check whether --with-magick-plus-plus was given.
21396 if test "${with_magick_plus_plus+set}" = set; then :
21397   withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21398 else
21399   with_magick_plus_plus='yes'
21400 fi
21401
21402
21403 # Disable build/install of PerlMagick.
21404
21405 # Check whether --with-perl was given.
21406 if test "${with_perl+set}" = set; then :
21407   withval=$with_perl; with_perl=$withval
21408 else
21409   with_perl='no'
21410 fi
21411
21412
21413 # Options to pass when configuring PerlMagick
21414
21415 # Check whether --with-perl-options was given.
21416 if test "${with_perl_options+set}" = set; then :
21417   withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21418 fi
21419
21420
21421
21422 # Enable umem, object-caching memory allocation library.
21423
21424 # Check whether --with-umem was given.
21425 if test "${with_umem+set}" = set; then :
21426   withval=$with_umem; with_umem=$withval
21427 else
21428   with_umem='no'
21429 fi
21430
21431 if test "$with_umem" != 'yes' ; then
21432     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21433 fi
21434
21435 #
21436 # Specify path to shared libstdc++ if not in normal location
21437 #
21438
21439 # Check whether --with-libstdc was given.
21440 if test "${with_libstdc+set}" = set; then :
21441   withval=$with_libstdc; with_libstdc=$withval
21442 else
21443   with_libstdc=''
21444 fi
21445
21446
21447 if test "$with_libstdc" != ''; then
21448     if test -d "$with_libstdc"; then
21449         LIBSTDCLDFLAGS="-L$with_libstdc"
21450     fi
21451 fi
21452
21453
21454 # Does gcc required -traditional?
21455 if test $ac_cv_c_compiler_gnu = yes; then
21456     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21457 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21458 if ${ac_cv_prog_gcc_traditional+:} false; then :
21459   $as_echo_n "(cached) " >&6
21460 else
21461     ac_pattern="Autoconf.*'x'"
21462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h.  */
21464 #include <sgtty.h>
21465 Autoconf TIOCGETP
21466 _ACEOF
21467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21468   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21469   ac_cv_prog_gcc_traditional=yes
21470 else
21471   ac_cv_prog_gcc_traditional=no
21472 fi
21473 rm -f conftest*
21474
21475
21476   if test $ac_cv_prog_gcc_traditional = no; then
21477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21478 /* end confdefs.h.  */
21479 #include <termio.h>
21480 Autoconf TCGETA
21481 _ACEOF
21482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21483   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21484   ac_cv_prog_gcc_traditional=yes
21485 fi
21486 rm -f conftest*
21487
21488   fi
21489 fi
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21491 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21492   if test $ac_cv_prog_gcc_traditional = yes; then
21493     CC="$CC -traditional"
21494   fi
21495 fi
21496
21497
21498 ########
21499 #
21500 # Set defines required to build DLLs and modules using MinGW
21501 #
21502 ########
21503 # These options are set for multi-thread DLL module build
21504 #  libMagickCore:           _DLL _MAGICKMOD_ _MAGICKLIB_
21505 #  module:              _DLL
21506 #  executable/Magick++: _DLL _MAGICKMOD_
21507 MODULE_EXTRA_CPPFLAGS=''
21508 LIBRARY_EXTRA_CPPFLAGS=''
21509 if test "${native_win32_build}" = 'yes'; then
21510     if test "${libtool_build_shared_libs}" = 'yes'; then
21511         CPPFLAGS="$CPPFLAGS -D_DLL"
21512         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21513         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21514         LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21515         if test "$with_modules" = 'yes'; then
21516             LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21517         else
21518             MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21519         fi
21520     else
21521         CPPFLAGS="$CPPFLAGS -D_LIB"
21522         MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21523         MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21524     fi
21525     if test "$with_threads" = 'yes'; then
21526          CPPFLAGS="$CPPFLAGS -D_MT"
21527          MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21528          MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21529     fi
21530 fi
21531
21532
21533
21534 # Check standard headers
21535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21536 $as_echo_n "checking for ANSI C header files... " >&6; }
21537 if ${ac_cv_header_stdc+:} false; then :
21538   $as_echo_n "(cached) " >&6
21539 else
21540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21541 /* end confdefs.h.  */
21542 #include <stdlib.h>
21543 #include <stdarg.h>
21544 #include <string.h>
21545 #include <float.h>
21546
21547 int
21548 main ()
21549 {
21550
21551   ;
21552   return 0;
21553 }
21554 _ACEOF
21555 if ac_fn_c_try_compile "$LINENO"; then :
21556   ac_cv_header_stdc=yes
21557 else
21558   ac_cv_header_stdc=no
21559 fi
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561
21562 if test $ac_cv_header_stdc = yes; then
21563   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h.  */
21566 #include <string.h>
21567
21568 _ACEOF
21569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21570   $EGREP "memchr" >/dev/null 2>&1; then :
21571
21572 else
21573   ac_cv_header_stdc=no
21574 fi
21575 rm -f conftest*
21576
21577 fi
21578
21579 if test $ac_cv_header_stdc = yes; then
21580   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h.  */
21583 #include <stdlib.h>
21584
21585 _ACEOF
21586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21587   $EGREP "free" >/dev/null 2>&1; then :
21588
21589 else
21590   ac_cv_header_stdc=no
21591 fi
21592 rm -f conftest*
21593
21594 fi
21595
21596 if test $ac_cv_header_stdc = yes; then
21597   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21598   if test "$cross_compiling" = yes; then :
21599   :
21600 else
21601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21602 /* end confdefs.h.  */
21603 #include <ctype.h>
21604 #include <stdlib.h>
21605 #if ((' ' & 0x0FF) == 0x020)
21606 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21607 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21608 #else
21609 # define ISLOWER(c) \
21610                    (('a' <= (c) && (c) <= 'i') \
21611                      || ('j' <= (c) && (c) <= 'r') \
21612                      || ('s' <= (c) && (c) <= 'z'))
21613 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21614 #endif
21615
21616 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21617 int
21618 main ()
21619 {
21620   int i;
21621   for (i = 0; i < 256; i++)
21622     if (XOR (islower (i), ISLOWER (i))
21623         || toupper (i) != TOUPPER (i))
21624       return 2;
21625   return 0;
21626 }
21627 _ACEOF
21628 if ac_fn_c_try_run "$LINENO"; then :
21629
21630 else
21631   ac_cv_header_stdc=no
21632 fi
21633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21634   conftest.$ac_objext conftest.beam conftest.$ac_ext
21635 fi
21636
21637 fi
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21640 $as_echo "$ac_cv_header_stdc" >&6; }
21641 if test $ac_cv_header_stdc = yes; then
21642
21643 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21644
21645 fi
21646
21647 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21648     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21649     header files.  Compilation cannot proceed.  Please install the ANSI C
21650     headers and rerun this script." >&5
21651 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21652     header files.  Compilation cannot proceed.  Please install the ANSI C
21653     headers and rerun this script." >&2;};
21654 fi
21655
21656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21657 $as_echo_n "checking whether to enable assertions... " >&6; }
21658   # Check whether --enable-assert was given.
21659 if test "${enable_assert+set}" = set; then :
21660   enableval=$enable_assert; ac_enable_assert=$enableval
21661      if       test "x$enableval" = xno; then :
21662
21663 $as_echo "#define NDEBUG 1" >>confdefs.h
21664
21665 elif test "x$enableval" != xyes; then :
21666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21667 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21668         ac_enable_assert=yes
21669 fi
21670 else
21671   ac_enable_assert=yes
21672 fi
21673
21674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21675 $as_echo "$ac_enable_assert" >&6; }
21676
21677 ac_header_dirent=no
21678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21679   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21681 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21682 if eval \${$as_ac_Header+:} false; then :
21683   $as_echo_n "(cached) " >&6
21684 else
21685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h.  */
21687 #include <sys/types.h>
21688 #include <$ac_hdr>
21689
21690 int
21691 main ()
21692 {
21693 if ((DIR *) 0)
21694 return 0;
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 if ac_fn_c_try_compile "$LINENO"; then :
21700   eval "$as_ac_Header=yes"
21701 else
21702   eval "$as_ac_Header=no"
21703 fi
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 fi
21706 eval ac_res=\$$as_ac_Header
21707                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21708 $as_echo "$ac_res" >&6; }
21709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21710   cat >>confdefs.h <<_ACEOF
21711 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21712 _ACEOF
21713
21714 ac_header_dirent=$ac_hdr; break
21715 fi
21716
21717 done
21718 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21719 if test $ac_header_dirent = dirent.h; then
21720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21721 $as_echo_n "checking for library containing opendir... " >&6; }
21722 if ${ac_cv_search_opendir+:} false; then :
21723   $as_echo_n "(cached) " >&6
21724 else
21725   ac_func_search_save_LIBS=$LIBS
21726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21727 /* end confdefs.h.  */
21728
21729 /* Override any GCC internal prototype to avoid an error.
21730    Use char because int might match the return type of a GCC
21731    builtin and then its argument prototype would still apply.  */
21732 #ifdef __cplusplus
21733 extern "C"
21734 #endif
21735 char opendir ();
21736 int
21737 main ()
21738 {
21739 return opendir ();
21740   ;
21741   return 0;
21742 }
21743 _ACEOF
21744 for ac_lib in '' dir; do
21745   if test -z "$ac_lib"; then
21746     ac_res="none required"
21747   else
21748     ac_res=-l$ac_lib
21749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21750   fi
21751   if ac_fn_c_try_link "$LINENO"; then :
21752   ac_cv_search_opendir=$ac_res
21753 fi
21754 rm -f core conftest.err conftest.$ac_objext \
21755     conftest$ac_exeext
21756   if ${ac_cv_search_opendir+:} false; then :
21757   break
21758 fi
21759 done
21760 if ${ac_cv_search_opendir+:} false; then :
21761
21762 else
21763   ac_cv_search_opendir=no
21764 fi
21765 rm conftest.$ac_ext
21766 LIBS=$ac_func_search_save_LIBS
21767 fi
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21769 $as_echo "$ac_cv_search_opendir" >&6; }
21770 ac_res=$ac_cv_search_opendir
21771 if test "$ac_res" != no; then :
21772   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21773
21774 fi
21775
21776 else
21777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21778 $as_echo_n "checking for library containing opendir... " >&6; }
21779 if ${ac_cv_search_opendir+:} false; then :
21780   $as_echo_n "(cached) " >&6
21781 else
21782   ac_func_search_save_LIBS=$LIBS
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h.  */
21785
21786 /* Override any GCC internal prototype to avoid an error.
21787    Use char because int might match the return type of a GCC
21788    builtin and then its argument prototype would still apply.  */
21789 #ifdef __cplusplus
21790 extern "C"
21791 #endif
21792 char opendir ();
21793 int
21794 main ()
21795 {
21796 return opendir ();
21797   ;
21798   return 0;
21799 }
21800 _ACEOF
21801 for ac_lib in '' x; do
21802   if test -z "$ac_lib"; then
21803     ac_res="none required"
21804   else
21805     ac_res=-l$ac_lib
21806     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21807   fi
21808   if ac_fn_c_try_link "$LINENO"; then :
21809   ac_cv_search_opendir=$ac_res
21810 fi
21811 rm -f core conftest.err conftest.$ac_objext \
21812     conftest$ac_exeext
21813   if ${ac_cv_search_opendir+:} false; then :
21814   break
21815 fi
21816 done
21817 if ${ac_cv_search_opendir+:} false; then :
21818
21819 else
21820   ac_cv_search_opendir=no
21821 fi
21822 rm conftest.$ac_ext
21823 LIBS=$ac_func_search_save_LIBS
21824 fi
21825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21826 $as_echo "$ac_cv_search_opendir" >&6; }
21827 ac_res=$ac_cv_search_opendir
21828 if test "$ac_res" != no; then :
21829   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21830
21831 fi
21832
21833 fi
21834
21835
21836 # Check additional headers
21837 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
21838 do :
21839   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21840 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21841 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21842   cat >>confdefs.h <<_ACEOF
21843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21844 _ACEOF
21845
21846 fi
21847
21848 done
21849
21850
21851 ########
21852 #
21853 # Checks for typedefs, structures, and compiler characteristics.
21854 #
21855 ########
21856
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21858 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21859 if ${ac_cv_header_stdbool_h+:} false; then :
21860   $as_echo_n "(cached) " >&6
21861 else
21862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h.  */
21864
21865 #include <stdbool.h>
21866 #ifndef bool
21867  "error: bool is not defined"
21868 #endif
21869 #ifndef false
21870  "error: false is not defined"
21871 #endif
21872 #if false
21873  "error: false is not 0"
21874 #endif
21875 #ifndef true
21876  "error: true is not defined"
21877 #endif
21878 #if true != 1
21879  "error: true is not 1"
21880 #endif
21881 #ifndef __bool_true_false_are_defined
21882  "error: __bool_true_false_are_defined is not defined"
21883 #endif
21884
21885         struct s { _Bool s: 1; _Bool t; } s;
21886
21887         char a[true == 1 ? 1 : -1];
21888         char b[false == 0 ? 1 : -1];
21889         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21890         char d[(bool) 0.5 == true ? 1 : -1];
21891         /* See body of main program for 'e'.  */
21892         char f[(_Bool) 0.0 == false ? 1 : -1];
21893         char g[true];
21894         char h[sizeof (_Bool)];
21895         char i[sizeof s.t];
21896         enum { j = false, k = true, l = false * true, m = true * 256 };
21897         /* The following fails for
21898            HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21899         _Bool n[m];
21900         char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21901         char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21902         /* Catch a bug in an HP-UX C compiler.  See
21903            http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21904            http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21905          */
21906         _Bool q = true;
21907         _Bool *pq = &q;
21908
21909 int
21910 main ()
21911 {
21912
21913         bool e = &s;
21914         *pq |= q;
21915         *pq |= ! q;
21916         /* Refer to every declared value, to avoid compiler optimizations.  */
21917         return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21918                 + !m + !n + !o + !p + !q + !pq);
21919
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 if ac_fn_c_try_compile "$LINENO"; then :
21925   ac_cv_header_stdbool_h=yes
21926 else
21927   ac_cv_header_stdbool_h=no
21928 fi
21929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21930 fi
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21932 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21933 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21934 if test "x$ac_cv_type__Bool" = xyes; then :
21935
21936 cat >>confdefs.h <<_ACEOF
21937 #define HAVE__BOOL 1
21938 _ACEOF
21939
21940
21941 fi
21942
21943 if test $ac_cv_header_stdbool_h = yes; then
21944
21945 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21946
21947 fi
21948
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21950 $as_echo_n "checking for working volatile... " >&6; }
21951 if ${ac_cv_c_volatile+:} false; then :
21952   $as_echo_n "(cached) " >&6
21953 else
21954   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h.  */
21956
21957 int
21958 main ()
21959 {
21960
21961 volatile int x;
21962 int * volatile y = (int *) 0;
21963 return !x && !y;
21964   ;
21965   return 0;
21966 }
21967 _ACEOF
21968 if ac_fn_c_try_compile "$LINENO"; then :
21969   ac_cv_c_volatile=yes
21970 else
21971   ac_cv_c_volatile=no
21972 fi
21973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21974 fi
21975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21976 $as_echo "$ac_cv_c_volatile" >&6; }
21977 if test $ac_cv_c_volatile = no; then
21978
21979 $as_echo "#define volatile /**/" >>confdefs.h
21980
21981 fi
21982
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21984 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21985 if ${ac_cv_c_stringize+:} false; then :
21986   $as_echo_n "(cached) " >&6
21987 else
21988   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21989 /* end confdefs.h.  */
21990 #define x(y) #y
21991
21992 char *s = x(teststring);
21993 _ACEOF
21994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21995   $EGREP "#teststring" >/dev/null 2>&1; then :
21996   ac_cv_c_stringize=no
21997 else
21998   ac_cv_c_stringize=yes
21999 fi
22000 rm -f conftest*
22001
22002 fi
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
22004 $as_echo "$ac_cv_c_stringize" >&6; }
22005 if test $ac_cv_c_stringize = yes; then
22006
22007 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
22008
22009 fi
22010
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22012 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22013 if ${ac_cv_header_stat_broken+:} false; then :
22014   $as_echo_n "(cached) " >&6
22015 else
22016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22017 /* end confdefs.h.  */
22018 #include <sys/types.h>
22019 #include <sys/stat.h>
22020
22021 #if defined S_ISBLK && defined S_IFDIR
22022 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22023 #endif
22024
22025 #if defined S_ISBLK && defined S_IFCHR
22026 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22027 #endif
22028
22029 #if defined S_ISLNK && defined S_IFREG
22030 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22031 #endif
22032
22033 #if defined S_ISSOCK && defined S_IFREG
22034 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22035 #endif
22036
22037 _ACEOF
22038 if ac_fn_c_try_compile "$LINENO"; then :
22039   ac_cv_header_stat_broken=no
22040 else
22041   ac_cv_header_stat_broken=yes
22042 fi
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22044 fi
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22046 $as_echo "$ac_cv_header_stat_broken" >&6; }
22047 if test $ac_cv_header_stat_broken = yes; then
22048
22049 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22050
22051 fi
22052
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22054 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22055 if ${ac_cv_header_time+:} false; then :
22056   $as_echo_n "(cached) " >&6
22057 else
22058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22059 /* end confdefs.h.  */
22060 #include <sys/types.h>
22061 #include <sys/time.h>
22062 #include <time.h>
22063
22064 int
22065 main ()
22066 {
22067 if ((struct tm *) 0)
22068 return 0;
22069   ;
22070   return 0;
22071 }
22072 _ACEOF
22073 if ac_fn_c_try_compile "$LINENO"; then :
22074   ac_cv_header_time=yes
22075 else
22076   ac_cv_header_time=no
22077 fi
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 fi
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22081 $as_echo "$ac_cv_header_time" >&6; }
22082 if test $ac_cv_header_time = yes; then
22083
22084 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22085
22086 fi
22087
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22089 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22090 if ${ac_cv_struct_tm+:} false; then :
22091   $as_echo_n "(cached) " >&6
22092 else
22093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h.  */
22095 #include <sys/types.h>
22096 #include <time.h>
22097
22098 int
22099 main ()
22100 {
22101 struct tm tm;
22102                                      int *p = &tm.tm_sec;
22103                                      return !p;
22104   ;
22105   return 0;
22106 }
22107 _ACEOF
22108 if ac_fn_c_try_compile "$LINENO"; then :
22109   ac_cv_struct_tm=time.h
22110 else
22111   ac_cv_struct_tm=sys/time.h
22112 fi
22113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22114 fi
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22116 $as_echo "$ac_cv_struct_tm" >&6; }
22117 if test $ac_cv_struct_tm = sys/time.h; then
22118
22119 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22120
22121 fi
22122
22123 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22124 #include <$ac_cv_struct_tm>
22125
22126 "
22127 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
22128
22129 cat >>confdefs.h <<_ACEOF
22130 #define HAVE_STRUCT_TM_TM_ZONE 1
22131 _ACEOF
22132
22133
22134 fi
22135
22136 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22137
22138 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22139
22140 else
22141   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22142 "
22143 if test "x$ac_cv_have_decl_tzname" = xyes; then :
22144   ac_have_decl=1
22145 else
22146   ac_have_decl=0
22147 fi
22148
22149 cat >>confdefs.h <<_ACEOF
22150 #define HAVE_DECL_TZNAME $ac_have_decl
22151 _ACEOF
22152
22153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22154 $as_echo_n "checking for tzname... " >&6; }
22155 if ${ac_cv_var_tzname+:} false; then :
22156   $as_echo_n "(cached) " >&6
22157 else
22158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22159 /* end confdefs.h.  */
22160 #include <time.h>
22161 #if !HAVE_DECL_TZNAME
22162 extern char *tzname[];
22163 #endif
22164
22165 int
22166 main ()
22167 {
22168 return tzname[0][0];
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 if ac_fn_c_try_link "$LINENO"; then :
22174   ac_cv_var_tzname=yes
22175 else
22176   ac_cv_var_tzname=no
22177 fi
22178 rm -f core conftest.err conftest.$ac_objext \
22179     conftest$ac_exeext conftest.$ac_ext
22180 fi
22181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22182 $as_echo "$ac_cv_var_tzname" >&6; }
22183   if test $ac_cv_var_tzname = yes; then
22184
22185 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22186
22187   fi
22188 fi
22189
22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22191 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22192 if ${ac_cv_sys_interpreter+:} false; then :
22193   $as_echo_n "(cached) " >&6
22194 else
22195   echo '#! /bin/cat
22196 exit 69
22197 ' >conftest
22198 chmod u+x conftest
22199 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22200 if test $? -ne 69; then
22201    ac_cv_sys_interpreter=yes
22202 else
22203    ac_cv_sys_interpreter=no
22204 fi
22205 rm -f conftest
22206 fi
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22208 $as_echo "$ac_cv_sys_interpreter" >&6; }
22209 interpval=$ac_cv_sys_interpreter
22210
22211
22212 # If the C compiler supports the keyword inline, do nothing. Otherwise
22213 # define inline to __inline__ or __inline if it accepts one of those,
22214 # otherwise define inline to be empty.
22215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22216 $as_echo_n "checking for inline... " >&6; }
22217 if ${ac_cv_c_inline+:} false; then :
22218   $as_echo_n "(cached) " >&6
22219 else
22220   ac_cv_c_inline=no
22221 for ac_kw in inline __inline__ __inline; do
22222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22223 /* end confdefs.h.  */
22224 #ifndef __cplusplus
22225 typedef int foo_t;
22226 static $ac_kw foo_t static_foo () {return 0; }
22227 $ac_kw foo_t foo () {return 0; }
22228 #endif
22229
22230 _ACEOF
22231 if ac_fn_c_try_compile "$LINENO"; then :
22232   ac_cv_c_inline=$ac_kw
22233 fi
22234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22235   test "$ac_cv_c_inline" != no && break
22236 done
22237
22238 fi
22239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22240 $as_echo "$ac_cv_c_inline" >&6; }
22241
22242 case $ac_cv_c_inline in
22243   inline | yes) ;;
22244   *)
22245     case $ac_cv_c_inline in
22246       no) ac_val=;;
22247       *) ac_val=$ac_cv_c_inline;;
22248     esac
22249     cat >>confdefs.h <<_ACEOF
22250 #ifndef __cplusplus
22251 #define inline $ac_val
22252 #endif
22253 _ACEOF
22254     ;;
22255 esac
22256
22257
22258 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22259 # define restrict to __restrict__ or __restrict if it accepts one of those,
22260 # otherwise define restrict to be empty.
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22262 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22263 if ${ac_cv_c_restrict+:} false; then :
22264   $as_echo_n "(cached) " >&6
22265 else
22266   ac_cv_c_restrict=no
22267    # The order here caters to the fact that C++ does not require restrict.
22268    for ac_kw in __restrict __restrict__ _Restrict restrict; do
22269      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22270 /* end confdefs.h.  */
22271 typedef int * int_ptr;
22272         int foo (int_ptr $ac_kw ip) {
22273         return ip[0];
22274        }
22275 int
22276 main ()
22277 {
22278 int s[1];
22279         int * $ac_kw t = s;
22280         t[0] = 0;
22281         return foo(t)
22282   ;
22283   return 0;
22284 }
22285 _ACEOF
22286 if ac_fn_c_try_compile "$LINENO"; then :
22287   ac_cv_c_restrict=$ac_kw
22288 fi
22289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22290      test "$ac_cv_c_restrict" != no && break
22291    done
22292
22293 fi
22294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22295 $as_echo "$ac_cv_c_restrict" >&6; }
22296
22297  case $ac_cv_c_restrict in
22298    restrict) ;;
22299    no) $as_echo "#define restrict /**/" >>confdefs.h
22300  ;;
22301    *)  cat >>confdefs.h <<_ACEOF
22302 #define restrict $ac_cv_c_restrict
22303 _ACEOF
22304  ;;
22305  esac
22306
22307
22308 # If words are stored with the most significant byte first (like
22309 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22310  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22311 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22312 if ${ac_cv_c_bigendian+:} false; then :
22313   $as_echo_n "(cached) " >&6
22314 else
22315   ac_cv_c_bigendian=unknown
22316     # See if we're dealing with a universal compiler.
22317     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22318 /* end confdefs.h.  */
22319 #ifndef __APPLE_CC__
22320                not a universal capable compiler
22321              #endif
22322              typedef int dummy;
22323
22324 _ACEOF
22325 if ac_fn_c_try_compile "$LINENO"; then :
22326
22327         # Check for potential -arch flags.  It is not universal unless
22328         # there are at least two -arch flags with different values.
22329         ac_arch=
22330         ac_prev=
22331         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22332          if test -n "$ac_prev"; then
22333            case $ac_word in
22334              i?86 | x86_64 | ppc | ppc64)
22335                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22336                  ac_arch=$ac_word
22337                else
22338                  ac_cv_c_bigendian=universal
22339                  break
22340                fi
22341                ;;
22342            esac
22343            ac_prev=
22344          elif test "x$ac_word" = "x-arch"; then
22345            ac_prev=arch
22346          fi
22347        done
22348 fi
22349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22350     if test $ac_cv_c_bigendian = unknown; then
22351       # See if sys/param.h defines the BYTE_ORDER macro.
22352       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h.  */
22354 #include <sys/types.h>
22355              #include <sys/param.h>
22356
22357 int
22358 main ()
22359 {
22360 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22361                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22362                      && LITTLE_ENDIAN)
22363               bogus endian macros
22364              #endif
22365
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 if ac_fn_c_try_compile "$LINENO"; then :
22371   # It does; now see whether it defined to BIG_ENDIAN or not.
22372          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22373 /* end confdefs.h.  */
22374 #include <sys/types.h>
22375                 #include <sys/param.h>
22376
22377 int
22378 main ()
22379 {
22380 #if BYTE_ORDER != BIG_ENDIAN
22381                  not big endian
22382                 #endif
22383
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 if ac_fn_c_try_compile "$LINENO"; then :
22389   ac_cv_c_bigendian=yes
22390 else
22391   ac_cv_c_bigendian=no
22392 fi
22393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 fi
22395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22396     fi
22397     if test $ac_cv_c_bigendian = unknown; then
22398       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22399       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h.  */
22401 #include <limits.h>
22402
22403 int
22404 main ()
22405 {
22406 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22407               bogus endian macros
22408              #endif
22409
22410   ;
22411   return 0;
22412 }
22413 _ACEOF
22414 if ac_fn_c_try_compile "$LINENO"; then :
22415   # It does; now see whether it defined to _BIG_ENDIAN or not.
22416          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h.  */
22418 #include <limits.h>
22419
22420 int
22421 main ()
22422 {
22423 #ifndef _BIG_ENDIAN
22424                  not big endian
22425                 #endif
22426
22427   ;
22428   return 0;
22429 }
22430 _ACEOF
22431 if ac_fn_c_try_compile "$LINENO"; then :
22432   ac_cv_c_bigendian=yes
22433 else
22434   ac_cv_c_bigendian=no
22435 fi
22436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22437 fi
22438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22439     fi
22440     if test $ac_cv_c_bigendian = unknown; then
22441       # Compile a test program.
22442       if test "$cross_compiling" = yes; then :
22443   # Try to guess by grepping values from an object file.
22444          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22445 /* end confdefs.h.  */
22446 short int ascii_mm[] =
22447                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22448                 short int ascii_ii[] =
22449                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22450                 int use_ascii (int i) {
22451                   return ascii_mm[i] + ascii_ii[i];
22452                 }
22453                 short int ebcdic_ii[] =
22454                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22455                 short int ebcdic_mm[] =
22456                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22457                 int use_ebcdic (int i) {
22458                   return ebcdic_mm[i] + ebcdic_ii[i];
22459                 }
22460                 extern int foo;
22461
22462 int
22463 main ()
22464 {
22465 return use_ascii (foo) == use_ebcdic (foo);
22466   ;
22467   return 0;
22468 }
22469 _ACEOF
22470 if ac_fn_c_try_compile "$LINENO"; then :
22471   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22472               ac_cv_c_bigendian=yes
22473             fi
22474             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22475               if test "$ac_cv_c_bigendian" = unknown; then
22476                 ac_cv_c_bigendian=no
22477               else
22478                 # finding both strings is unlikely to happen, but who knows?
22479                 ac_cv_c_bigendian=unknown
22480               fi
22481             fi
22482 fi
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 else
22485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22486 /* end confdefs.h.  */
22487 $ac_includes_default
22488 int
22489 main ()
22490 {
22491
22492              /* Are we little or big endian?  From Harbison&Steele.  */
22493              union
22494              {
22495                long int l;
22496                char c[sizeof (long int)];
22497              } u;
22498              u.l = 1;
22499              return u.c[sizeof (long int) - 1] == 1;
22500
22501   ;
22502   return 0;
22503 }
22504 _ACEOF
22505 if ac_fn_c_try_run "$LINENO"; then :
22506   ac_cv_c_bigendian=no
22507 else
22508   ac_cv_c_bigendian=yes
22509 fi
22510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22511   conftest.$ac_objext conftest.beam conftest.$ac_ext
22512 fi
22513
22514     fi
22515 fi
22516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22517 $as_echo "$ac_cv_c_bigendian" >&6; }
22518  case $ac_cv_c_bigendian in #(
22519    yes)
22520      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22521 ;; #(
22522    no)
22523       ;; #(
22524    universal)
22525
22526 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22527
22528      ;; #(
22529    *)
22530      as_fn_error $? "unknown endianness
22531  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22532  esac
22533
22534
22535 # Define to a suitable type, if standard headers do not define it.
22536 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22537 case $ac_cv_c_int8_t in #(
22538   no|yes) ;; #(
22539   *)
22540
22541 cat >>confdefs.h <<_ACEOF
22542 #define int8_t $ac_cv_c_int8_t
22543 _ACEOF
22544 ;;
22545 esac
22546
22547 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22548 case $ac_cv_c_int16_t in #(
22549   no|yes) ;; #(
22550   *)
22551
22552 cat >>confdefs.h <<_ACEOF
22553 #define int16_t $ac_cv_c_int16_t
22554 _ACEOF
22555 ;;
22556 esac
22557
22558 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22559 case $ac_cv_c_int32_t in #(
22560   no|yes) ;; #(
22561   *)
22562
22563 cat >>confdefs.h <<_ACEOF
22564 #define int32_t $ac_cv_c_int32_t
22565 _ACEOF
22566 ;;
22567 esac
22568
22569 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22570 case $ac_cv_c_int64_t in #(
22571   no|yes) ;; #(
22572   *)
22573
22574 cat >>confdefs.h <<_ACEOF
22575 #define int64_t $ac_cv_c_int64_t
22576 _ACEOF
22577 ;;
22578 esac
22579
22580
22581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22582 $as_echo_n "checking for long long int... " >&6; }
22583 if ${ac_cv_type_long_long_int+:} false; then :
22584   $as_echo_n "(cached) " >&6
22585 else
22586   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22587 /* end confdefs.h.  */
22588
22589   /* For now, do not test the preprocessor; as of 2007 there are too many
22590          implementations with broken preprocessors.  Perhaps this can
22591          be revisited in 2012.  In the meantime, code should not expect
22592          #if to work with literals wider than 32 bits.  */
22593       /* Test literals.  */
22594       long long int ll = 9223372036854775807ll;
22595       long long int nll = -9223372036854775807LL;
22596       unsigned long long int ull = 18446744073709551615ULL;
22597       /* Test constant expressions.   */
22598       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22599                      ? 1 : -1)];
22600       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22601                      ? 1 : -1)];
22602       int i = 63;
22603 int
22604 main ()
22605 {
22606 /* Test availability of runtime routines for shift and division.  */
22607       long long int llmax = 9223372036854775807ll;
22608       unsigned long long int ullmax = 18446744073709551615ull;
22609       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22610               | (llmax / ll) | (llmax % ll)
22611               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22612               | (ullmax / ull) | (ullmax % ull));
22613   ;
22614   return 0;
22615 }
22616
22617 _ACEOF
22618 if ac_fn_c_try_link "$LINENO"; then :
22619                           if test "$cross_compiling" = yes; then :
22620   ac_cv_type_long_long_int=yes
22621 else
22622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h.  */
22624 #include <limits.h>
22625                #ifndef LLONG_MAX
22626                # define HALF \
22627                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22628                # define LLONG_MAX (HALF - 1 + HALF)
22629                #endif
22630 int
22631 main ()
22632 {
22633 long long int n = 1;
22634                int i;
22635                for (i = 0; ; i++)
22636                  {
22637                    long long int m = n << i;
22638                    if (m >> i != n)
22639                      return 1;
22640                    if (LLONG_MAX / 2 < m)
22641                      break;
22642                  }
22643                return 0;
22644   ;
22645   return 0;
22646 }
22647 _ACEOF
22648 if ac_fn_c_try_run "$LINENO"; then :
22649   ac_cv_type_long_long_int=yes
22650 else
22651   ac_cv_type_long_long_int=no
22652 fi
22653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22654   conftest.$ac_objext conftest.beam conftest.$ac_ext
22655 fi
22656
22657 else
22658   ac_cv_type_long_long_int=no
22659 fi
22660 rm -f core conftest.err conftest.$ac_objext \
22661     conftest$ac_exeext conftest.$ac_ext
22662 fi
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22664 $as_echo "$ac_cv_type_long_long_int" >&6; }
22665   if test $ac_cv_type_long_long_int = yes; then
22666
22667 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22668
22669   fi
22670
22671
22672
22673   ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22674 if test "x$ac_cv_type_intmax_t" = xyes; then :
22675
22676 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22677
22678 else
22679   test $ac_cv_type_long_long_int = yes \
22680        && ac_type='long long int' \
22681        || ac_type='long int'
22682
22683 cat >>confdefs.h <<_ACEOF
22684 #define intmax_t $ac_type
22685 _ACEOF
22686
22687 fi
22688
22689
22690
22691   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22692 if test "x$ac_cv_type_intptr_t" = xyes; then :
22693
22694 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22695
22696 else
22697   for ac_type in 'int' 'long int' 'long long int'; do
22698        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699 /* end confdefs.h.  */
22700 $ac_includes_default
22701 int
22702 main ()
22703 {
22704 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22705 test_array [0] = 0
22706
22707   ;
22708   return 0;
22709 }
22710 _ACEOF
22711 if ac_fn_c_try_compile "$LINENO"; then :
22712
22713 cat >>confdefs.h <<_ACEOF
22714 #define intptr_t $ac_type
22715 _ACEOF
22716
22717           ac_type=
22718 fi
22719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22720        test -z "$ac_type" && break
22721      done
22722 fi
22723
22724
22725
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22727 $as_echo_n "checking for long double... " >&6; }
22728 if ${ac_cv_type_long_double+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731   if test "$GCC" = yes; then
22732        ac_cv_type_long_double=yes
22733      else
22734        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22735 /* end confdefs.h.  */
22736 /* The Stardent Vistra knows sizeof (long double), but does
22737                  not support it.  */
22738               long double foo = 0.0L;
22739 int
22740 main ()
22741 {
22742 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
22743               sizeof (double) <= sizeof (long double))];
22744 test_array [0] = 0
22745
22746   ;
22747   return 0;
22748 }
22749 _ACEOF
22750 if ac_fn_c_try_compile "$LINENO"; then :
22751   ac_cv_type_long_double=yes
22752 else
22753   ac_cv_type_long_double=no
22754 fi
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756      fi
22757 fi
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22759 $as_echo "$ac_cv_type_long_double" >&6; }
22760   if test $ac_cv_type_long_double = yes; then
22761
22762 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22763
22764   fi
22765
22766
22767   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22768 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22769 if ${ac_cv_type_long_double_wider+:} false; then :
22770   $as_echo_n "(cached) " >&6
22771 else
22772   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h.  */
22774 #include <float.h>
22775             long double const a[] =
22776               {
22777                  0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22778                  LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22779               };
22780             long double
22781             f (long double x)
22782             {
22783                return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22784                         + (x ? f (x) : 'c'));
22785             }
22786
22787 int
22788 main ()
22789 {
22790 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22791                    + (DBL_MANT_DIG < LDBL_MANT_DIG)
22792                    - (LDBL_MAX_EXP < DBL_MAX_EXP)
22793                    - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22794             && (int) LDBL_EPSILON == 0
22795           )];
22796 test_array [0] = 0
22797
22798   ;
22799   return 0;
22800 }
22801 _ACEOF
22802 if ac_fn_c_try_compile "$LINENO"; then :
22803   ac_cv_type_long_double_wider=yes
22804 else
22805   ac_cv_type_long_double_wider=no
22806 fi
22807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22808 fi
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22810 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22811   if test $ac_cv_type_long_double_wider = yes; then
22812
22813 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22814
22815   fi
22816
22817
22818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22819 $as_echo_n "checking for long long int... " >&6; }
22820 if ${ac_cv_type_long_long_int+:} false; then :
22821   $as_echo_n "(cached) " >&6
22822 else
22823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h.  */
22825
22826   /* For now, do not test the preprocessor; as of 2007 there are too many
22827          implementations with broken preprocessors.  Perhaps this can
22828          be revisited in 2012.  In the meantime, code should not expect
22829          #if to work with literals wider than 32 bits.  */
22830       /* Test literals.  */
22831       long long int ll = 9223372036854775807ll;
22832       long long int nll = -9223372036854775807LL;
22833       unsigned long long int ull = 18446744073709551615ULL;
22834       /* Test constant expressions.   */
22835       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22836                      ? 1 : -1)];
22837       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22838                      ? 1 : -1)];
22839       int i = 63;
22840 int
22841 main ()
22842 {
22843 /* Test availability of runtime routines for shift and division.  */
22844       long long int llmax = 9223372036854775807ll;
22845       unsigned long long int ullmax = 18446744073709551615ull;
22846       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22847               | (llmax / ll) | (llmax % ll)
22848               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22849               | (ullmax / ull) | (ullmax % ull));
22850   ;
22851   return 0;
22852 }
22853
22854 _ACEOF
22855 if ac_fn_c_try_link "$LINENO"; then :
22856                           if test "$cross_compiling" = yes; then :
22857   ac_cv_type_long_long_int=yes
22858 else
22859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22860 /* end confdefs.h.  */
22861 #include <limits.h>
22862                #ifndef LLONG_MAX
22863                # define HALF \
22864                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22865                # define LLONG_MAX (HALF - 1 + HALF)
22866                #endif
22867 int
22868 main ()
22869 {
22870 long long int n = 1;
22871                int i;
22872                for (i = 0; ; i++)
22873                  {
22874                    long long int m = n << i;
22875                    if (m >> i != n)
22876                      return 1;
22877                    if (LLONG_MAX / 2 < m)
22878                      break;
22879                  }
22880                return 0;
22881   ;
22882   return 0;
22883 }
22884 _ACEOF
22885 if ac_fn_c_try_run "$LINENO"; then :
22886   ac_cv_type_long_long_int=yes
22887 else
22888   ac_cv_type_long_long_int=no
22889 fi
22890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22891   conftest.$ac_objext conftest.beam conftest.$ac_ext
22892 fi
22893
22894 else
22895   ac_cv_type_long_long_int=no
22896 fi
22897 rm -f core conftest.err conftest.$ac_objext \
22898     conftest$ac_exeext conftest.$ac_ext
22899 fi
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22901 $as_echo "$ac_cv_type_long_long_int" >&6; }
22902   if test $ac_cv_type_long_long_int = yes; then
22903
22904 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22905
22906   fi
22907
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22909 $as_echo_n "checking for mbstate_t... " >&6; }
22910 if ${ac_cv_type_mbstate_t+:} false; then :
22911   $as_echo_n "(cached) " >&6
22912 else
22913   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h.  */
22915 $ac_includes_default
22916 #           include <wchar.h>
22917 int
22918 main ()
22919 {
22920 mbstate_t x; return sizeof x;
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 if ac_fn_c_try_compile "$LINENO"; then :
22926   ac_cv_type_mbstate_t=yes
22927 else
22928   ac_cv_type_mbstate_t=no
22929 fi
22930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 fi
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22933 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22934    if test $ac_cv_type_mbstate_t = yes; then
22935
22936 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22937
22938    else
22939
22940 $as_echo "#define mbstate_t int" >>confdefs.h
22941
22942    fi
22943 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22944 if test "x$ac_cv_type_mode_t" = xyes; then :
22945
22946 else
22947
22948 cat >>confdefs.h <<_ACEOF
22949 #define mode_t int
22950 _ACEOF
22951
22952 fi
22953
22954 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22955 if test "x$ac_cv_type_off_t" = xyes; then :
22956
22957 else
22958
22959 cat >>confdefs.h <<_ACEOF
22960 #define off_t long int
22961 _ACEOF
22962
22963 fi
22964
22965 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22966 if test "x$ac_cv_type_pid_t" = xyes; then :
22967
22968 else
22969
22970 cat >>confdefs.h <<_ACEOF
22971 #define pid_t int
22972 _ACEOF
22973
22974 fi
22975
22976 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22977 if test "x$ac_cv_type_size_t" = xyes; then :
22978
22979 else
22980
22981 cat >>confdefs.h <<_ACEOF
22982 #define size_t unsigned int
22983 _ACEOF
22984
22985 fi
22986
22987 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22988 if test "x$ac_cv_type_ssize_t" = xyes; then :
22989
22990 else
22991
22992 cat >>confdefs.h <<_ACEOF
22993 #define ssize_t int
22994 _ACEOF
22995
22996 fi
22997
22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22999 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23000 if ${ac_cv_type_uid_t+:} false; then :
23001   $as_echo_n "(cached) " >&6
23002 else
23003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23004 /* end confdefs.h.  */
23005 #include <sys/types.h>
23006
23007 _ACEOF
23008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23009   $EGREP "uid_t" >/dev/null 2>&1; then :
23010   ac_cv_type_uid_t=yes
23011 else
23012   ac_cv_type_uid_t=no
23013 fi
23014 rm -f conftest*
23015
23016 fi
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23018 $as_echo "$ac_cv_type_uid_t" >&6; }
23019 if test $ac_cv_type_uid_t = no; then
23020
23021 $as_echo "#define uid_t int" >>confdefs.h
23022
23023
23024 $as_echo "#define gid_t int" >>confdefs.h
23025
23026 fi
23027
23028 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23029 case $ac_cv_c_uint8_t in #(
23030   no|yes) ;; #(
23031   *)
23032
23033 $as_echo "#define _UINT8_T 1" >>confdefs.h
23034
23035
23036 cat >>confdefs.h <<_ACEOF
23037 #define uint8_t $ac_cv_c_uint8_t
23038 _ACEOF
23039 ;;
23040   esac
23041
23042 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23043 case $ac_cv_c_uint16_t in #(
23044   no|yes) ;; #(
23045   *)
23046
23047
23048 cat >>confdefs.h <<_ACEOF
23049 #define uint16_t $ac_cv_c_uint16_t
23050 _ACEOF
23051 ;;
23052   esac
23053
23054 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23055 case $ac_cv_c_uint32_t in #(
23056   no|yes) ;; #(
23057   *)
23058
23059 $as_echo "#define _UINT32_T 1" >>confdefs.h
23060
23061
23062 cat >>confdefs.h <<_ACEOF
23063 #define uint32_t $ac_cv_c_uint32_t
23064 _ACEOF
23065 ;;
23066   esac
23067
23068 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23069 case $ac_cv_c_uint64_t in #(
23070   no|yes) ;; #(
23071   *)
23072
23073 $as_echo "#define _UINT64_T 1" >>confdefs.h
23074
23075
23076 cat >>confdefs.h <<_ACEOF
23077 #define uint64_t $ac_cv_c_uint64_t
23078 _ACEOF
23079 ;;
23080   esac
23081
23082
23083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23084 $as_echo_n "checking for unsigned long long int... " >&6; }
23085 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23086   $as_echo_n "(cached) " >&6
23087 else
23088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h.  */
23090
23091   /* For now, do not test the preprocessor; as of 2007 there are too many
23092          implementations with broken preprocessors.  Perhaps this can
23093          be revisited in 2012.  In the meantime, code should not expect
23094          #if to work with literals wider than 32 bits.  */
23095       /* Test literals.  */
23096       long long int ll = 9223372036854775807ll;
23097       long long int nll = -9223372036854775807LL;
23098       unsigned long long int ull = 18446744073709551615ULL;
23099       /* Test constant expressions.   */
23100       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23101                      ? 1 : -1)];
23102       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23103                      ? 1 : -1)];
23104       int i = 63;
23105 int
23106 main ()
23107 {
23108 /* Test availability of runtime routines for shift and division.  */
23109       long long int llmax = 9223372036854775807ll;
23110       unsigned long long int ullmax = 18446744073709551615ull;
23111       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23112               | (llmax / ll) | (llmax % ll)
23113               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23114               | (ullmax / ull) | (ullmax % ull));
23115   ;
23116   return 0;
23117 }
23118
23119 _ACEOF
23120 if ac_fn_c_try_link "$LINENO"; then :
23121   ac_cv_type_unsigned_long_long_int=yes
23122 else
23123   ac_cv_type_unsigned_long_long_int=no
23124 fi
23125 rm -f core conftest.err conftest.$ac_objext \
23126     conftest$ac_exeext conftest.$ac_ext
23127 fi
23128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23129 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23130   if test $ac_cv_type_unsigned_long_long_int = yes; then
23131
23132 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23133
23134   fi
23135
23136
23137
23138   ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23139 if test "x$ac_cv_type_uintmax_t" = xyes; then :
23140
23141 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23142
23143 else
23144   test $ac_cv_type_unsigned_long_long_int = yes \
23145        && ac_type='unsigned long long int' \
23146        || ac_type='unsigned long int'
23147
23148 cat >>confdefs.h <<_ACEOF
23149 #define uintmax_t $ac_type
23150 _ACEOF
23151
23152 fi
23153
23154
23155
23156   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23157 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23158
23159 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23160
23161 else
23162   for ac_type in 'unsigned int' 'unsigned long int' \
23163         'unsigned long long int'; do
23164        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23165 /* end confdefs.h.  */
23166 $ac_includes_default
23167 int
23168 main ()
23169 {
23170 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23171 test_array [0] = 0
23172
23173   ;
23174   return 0;
23175 }
23176 _ACEOF
23177 if ac_fn_c_try_compile "$LINENO"; then :
23178
23179 cat >>confdefs.h <<_ACEOF
23180 #define uintptr_t $ac_type
23181 _ACEOF
23182
23183           ac_type=
23184 fi
23185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186        test -z "$ac_type" && break
23187      done
23188 fi
23189
23190
23191
23192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23193 $as_echo_n "checking for unsigned long long int... " >&6; }
23194 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23195   $as_echo_n "(cached) " >&6
23196 else
23197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23198 /* end confdefs.h.  */
23199
23200   /* For now, do not test the preprocessor; as of 2007 there are too many
23201          implementations with broken preprocessors.  Perhaps this can
23202          be revisited in 2012.  In the meantime, code should not expect
23203          #if to work with literals wider than 32 bits.  */
23204       /* Test literals.  */
23205       long long int ll = 9223372036854775807ll;
23206       long long int nll = -9223372036854775807LL;
23207       unsigned long long int ull = 18446744073709551615ULL;
23208       /* Test constant expressions.   */
23209       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23210                      ? 1 : -1)];
23211       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23212                      ? 1 : -1)];
23213       int i = 63;
23214 int
23215 main ()
23216 {
23217 /* Test availability of runtime routines for shift and division.  */
23218       long long int llmax = 9223372036854775807ll;
23219       unsigned long long int ullmax = 18446744073709551615ull;
23220       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23221               | (llmax / ll) | (llmax % ll)
23222               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23223               | (ullmax / ull) | (ullmax % ull));
23224   ;
23225   return 0;
23226 }
23227
23228 _ACEOF
23229 if ac_fn_c_try_link "$LINENO"; then :
23230   ac_cv_type_unsigned_long_long_int=yes
23231 else
23232   ac_cv_type_unsigned_long_long_int=no
23233 fi
23234 rm -f core conftest.err conftest.$ac_objext \
23235     conftest$ac_exeext conftest.$ac_ext
23236 fi
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23238 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23239   if test $ac_cv_type_unsigned_long_long_int = yes; then
23240
23241 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23242
23243   fi
23244
23245
23246 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23247 # C compiler predefines it.
23248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23249 $as_echo_n "checking whether char is unsigned... " >&6; }
23250 if ${ac_cv_c_char_unsigned+:} false; then :
23251   $as_echo_n "(cached) " >&6
23252 else
23253   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254 /* end confdefs.h.  */
23255 $ac_includes_default
23256 int
23257 main ()
23258 {
23259 static int test_array [1 - 2 * !(((char) -1) < 0)];
23260 test_array [0] = 0
23261
23262   ;
23263   return 0;
23264 }
23265 _ACEOF
23266 if ac_fn_c_try_compile "$LINENO"; then :
23267   ac_cv_c_char_unsigned=no
23268 else
23269   ac_cv_c_char_unsigned=yes
23270 fi
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 fi
23273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23274 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23275 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23276   $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23277
23278 fi
23279
23280
23281 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23282 # The cast to long int works around a bug in the HP C Compiler
23283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23285 # This bug is HP SR number 8606223364.
23286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23287 $as_echo_n "checking size of signed short... " >&6; }
23288 if ${ac_cv_sizeof_signed_short+:} false; then :
23289   $as_echo_n "(cached) " >&6
23290 else
23291   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short"        "$ac_includes_default"; then :
23292
23293 else
23294   if test "$ac_cv_type_signed_short" = yes; then
23295      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23297 as_fn_error 77 "cannot compute sizeof (signed short)
23298 See \`config.log' for more details" "$LINENO" 5; }
23299    else
23300      ac_cv_sizeof_signed_short=0
23301    fi
23302 fi
23303
23304 fi
23305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23306 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23307
23308
23309
23310 cat >>confdefs.h <<_ACEOF
23311 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23312 _ACEOF
23313
23314
23315
23316 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23317 # The cast to long int works around a bug in the HP C Compiler
23318 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23319 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23320 # This bug is HP SR number 8606223364.
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23322 $as_echo_n "checking size of unsigned short... " >&6; }
23323 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23324   $as_echo_n "(cached) " >&6
23325 else
23326   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short"        "$ac_includes_default"; then :
23327
23328 else
23329   if test "$ac_cv_type_unsigned_short" = yes; then
23330      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23331 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23332 as_fn_error 77 "cannot compute sizeof (unsigned short)
23333 See \`config.log' for more details" "$LINENO" 5; }
23334    else
23335      ac_cv_sizeof_unsigned_short=0
23336    fi
23337 fi
23338
23339 fi
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23341 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23342
23343
23344
23345 cat >>confdefs.h <<_ACEOF
23346 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23347 _ACEOF
23348
23349
23350
23351 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23352 # The cast to long int works around a bug in the HP C Compiler
23353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23355 # This bug is HP SR number 8606223364.
23356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23357 $as_echo_n "checking size of signed int... " >&6; }
23358 if ${ac_cv_sizeof_signed_int+:} false; then :
23359   $as_echo_n "(cached) " >&6
23360 else
23361   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int"        "$ac_includes_default"; then :
23362
23363 else
23364   if test "$ac_cv_type_signed_int" = yes; then
23365      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23367 as_fn_error 77 "cannot compute sizeof (signed int)
23368 See \`config.log' for more details" "$LINENO" 5; }
23369    else
23370      ac_cv_sizeof_signed_int=0
23371    fi
23372 fi
23373
23374 fi
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23376 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23377
23378
23379
23380 cat >>confdefs.h <<_ACEOF
23381 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23382 _ACEOF
23383
23384
23385
23386 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23387 # The cast to long int works around a bug in the HP C Compiler
23388 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23389 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23390 # This bug is HP SR number 8606223364.
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23392 $as_echo_n "checking size of unsigned int... " >&6; }
23393 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23394   $as_echo_n "(cached) " >&6
23395 else
23396   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int"        "$ac_includes_default"; then :
23397
23398 else
23399   if test "$ac_cv_type_unsigned_int" = yes; then
23400      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23402 as_fn_error 77 "cannot compute sizeof (unsigned int)
23403 See \`config.log' for more details" "$LINENO" 5; }
23404    else
23405      ac_cv_sizeof_unsigned_int=0
23406    fi
23407 fi
23408
23409 fi
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23411 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23412
23413
23414
23415 cat >>confdefs.h <<_ACEOF
23416 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23417 _ACEOF
23418
23419
23420
23421 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23422 # The cast to long int works around a bug in the HP C Compiler
23423 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23424 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23425 # This bug is HP SR number 8606223364.
23426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23427 $as_echo_n "checking size of signed long... " >&6; }
23428 if ${ac_cv_sizeof_signed_long+:} false; then :
23429   $as_echo_n "(cached) " >&6
23430 else
23431   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long"        "$ac_includes_default"; then :
23432
23433 else
23434   if test "$ac_cv_type_signed_long" = yes; then
23435      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23437 as_fn_error 77 "cannot compute sizeof (signed long)
23438 See \`config.log' for more details" "$LINENO" 5; }
23439    else
23440      ac_cv_sizeof_signed_long=0
23441    fi
23442 fi
23443
23444 fi
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23446 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23447
23448
23449
23450 cat >>confdefs.h <<_ACEOF
23451 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23452 _ACEOF
23453
23454
23455
23456 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23457 # The cast to long int works around a bug in the HP C Compiler
23458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23460 # This bug is HP SR number 8606223364.
23461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23462 $as_echo_n "checking size of unsigned long... " >&6; }
23463 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23464   $as_echo_n "(cached) " >&6
23465 else
23466   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long"        "$ac_includes_default"; then :
23467
23468 else
23469   if test "$ac_cv_type_unsigned_long" = yes; then
23470      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23472 as_fn_error 77 "cannot compute sizeof (unsigned long)
23473 See \`config.log' for more details" "$LINENO" 5; }
23474    else
23475      ac_cv_sizeof_unsigned_long=0
23476    fi
23477 fi
23478
23479 fi
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23481 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23482
23483
23484
23485 cat >>confdefs.h <<_ACEOF
23486 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23487 _ACEOF
23488
23489
23490
23491 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.  If
23492 # 'signed long long' is not supported then the value defined is zero.
23493 # The cast to long int works around a bug in the HP C Compiler
23494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23496 # This bug is HP SR number 8606223364.
23497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23498 $as_echo_n "checking size of signed long long... " >&6; }
23499 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23500   $as_echo_n "(cached) " >&6
23501 else
23502   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long"        "$ac_includes_default"; then :
23503
23504 else
23505   if test "$ac_cv_type_signed_long_long" = yes; then
23506      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23508 as_fn_error 77 "cannot compute sizeof (signed long long)
23509 See \`config.log' for more details" "$LINENO" 5; }
23510    else
23511      ac_cv_sizeof_signed_long_long=0
23512    fi
23513 fi
23514
23515 fi
23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23517 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23518
23519
23520
23521 cat >>confdefs.h <<_ACEOF
23522 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23523 _ACEOF
23524
23525
23526
23527 # Obtain size of a 'unsigned long long' and define as
23528 # SIZEOF_UNSIGNED_LONG_LONG.  If 'unsigned long long' is not
23529 # supported then the value defined is zero.
23530 # The cast to long int works around a bug in the HP C Compiler
23531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23533 # This bug is HP SR number 8606223364.
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23535 $as_echo_n "checking size of unsigned long long... " >&6; }
23536 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23537   $as_echo_n "(cached) " >&6
23538 else
23539   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long"        "$ac_includes_default"; then :
23540
23541 else
23542   if test "$ac_cv_type_unsigned_long_long" = yes; then
23543      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23545 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23546 See \`config.log' for more details" "$LINENO" 5; }
23547    else
23548      ac_cv_sizeof_unsigned_long_long=0
23549    fi
23550 fi
23551
23552 fi
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23554 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23555
23556
23557
23558 cat >>confdefs.h <<_ACEOF
23559 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23560 _ACEOF
23561
23562
23563
23564 # Obtain size of off_t and define as SIZEOF_OFF_T
23565 # The cast to long int works around a bug in the HP C Compiler
23566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23568 # This bug is HP SR number 8606223364.
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23570 $as_echo_n "checking size of off_t... " >&6; }
23571 if ${ac_cv_sizeof_off_t+:} false; then :
23572   $as_echo_n "(cached) " >&6
23573 else
23574   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t"        "$ac_includes_default"; then :
23575
23576 else
23577   if test "$ac_cv_type_off_t" = yes; then
23578      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23580 as_fn_error 77 "cannot compute sizeof (off_t)
23581 See \`config.log' for more details" "$LINENO" 5; }
23582    else
23583      ac_cv_sizeof_off_t=0
23584    fi
23585 fi
23586
23587 fi
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23589 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23590
23591
23592
23593 cat >>confdefs.h <<_ACEOF
23594 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23595 _ACEOF
23596
23597
23598
23599 # Obtain size of size_t and define as SIZEOF_SIZE_T
23600 # The cast to long int works around a bug in the HP C Compiler
23601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23603 # This bug is HP SR number 8606223364.
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23605 $as_echo_n "checking size of size_t... " >&6; }
23606 if ${ac_cv_sizeof_size_t+:} false; then :
23607   $as_echo_n "(cached) " >&6
23608 else
23609   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23610
23611 else
23612   if test "$ac_cv_type_size_t" = yes; then
23613      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23615 as_fn_error 77 "cannot compute sizeof (size_t)
23616 See \`config.log' for more details" "$LINENO" 5; }
23617    else
23618      ac_cv_sizeof_size_t=0
23619    fi
23620 fi
23621
23622 fi
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23624 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23625
23626
23627
23628 cat >>confdefs.h <<_ACEOF
23629 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23630 _ACEOF
23631
23632
23633
23634 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23635 # The cast to long int works around a bug in the HP C Compiler
23636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23638 # This bug is HP SR number 8606223364.
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23640 $as_echo_n "checking size of ssize_t... " >&6; }
23641 if ${ac_cv_sizeof_ssize_t+:} false; then :
23642   $as_echo_n "(cached) " >&6
23643 else
23644   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t"        "$ac_includes_default"; then :
23645
23646 else
23647   if test "$ac_cv_type_ssize_t" = yes; then
23648      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23650 as_fn_error 77 "cannot compute sizeof (ssize_t)
23651 See \`config.log' for more details" "$LINENO" 5; }
23652    else
23653      ac_cv_sizeof_ssize_t=0
23654    fi
23655 fi
23656
23657 fi
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23659 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23660
23661
23662
23663 cat >>confdefs.h <<_ACEOF
23664 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23665 _ACEOF
23666
23667
23668
23669 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23670 # The cast to long int works around a bug in the HP C Compiler
23671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23673 # This bug is HP SR number 8606223364.
23674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23675 $as_echo_n "checking size of unsigned int*... " >&6; }
23676 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23677   $as_echo_n "(cached) " >&6
23678 else
23679   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp"        "$ac_includes_default"; then :
23680
23681 else
23682   if test "$ac_cv_type_unsigned_intp" = yes; then
23683      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23685 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23686 See \`config.log' for more details" "$LINENO" 5; }
23687    else
23688      ac_cv_sizeof_unsigned_intp=0
23689    fi
23690 fi
23691
23692 fi
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23694 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23695
23696
23697
23698 cat >>confdefs.h <<_ACEOF
23699 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23700 _ACEOF
23701
23702
23703
23704 #
23705 # Compute sized types for current CPU and compiler options.
23706 #
23707
23708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23709 $as_echo_n "checking for signed 8-bit type... " >&6; }
23710 INT8_T='signed char'
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23712 $as_echo "$as_me: $INT8_T" >&6;}
23713
23714
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23716 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23717 UINT8_T='unsigned char'
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23719 $as_echo "$as_me: $UINT8_T" >&6;}
23720
23721
23722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23723 $as_echo_n "checking for signed 16-bit type... " >&6; }
23724 INT16_T='signed short'
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23726 $as_echo "$as_me: $INT16_T" >&6;}
23727
23728
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23730 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23731 UINT16_T='unsigned short'
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23733 $as_echo "$as_me: $UINT16_T" >&6;}
23734
23735
23736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23737 $as_echo_n "checking for signed 32-bit type... " >&6; }
23738 INT32_T='none'
23739 INT32_F='none'
23740 if test $ac_cv_sizeof_signed_int -eq 4; then
23741   INT32_T='signed int'
23742   INT32_F='""'
23743 elif test $ac_cv_sizeof_signed_long -eq 4; then
23744   INT32_T='signed long'
23745   INT32_F='"l"'
23746 fi
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23748 $as_echo "$as_me: $INT32_T" >&6;}
23749
23750
23751
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23753 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23754 UINT32_T='none'
23755 UINT32_F='none'
23756 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23757   UINT32_T='unsigned int'
23758   UINT32_F='""'
23759 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23760   UINT32_T='unsigned long'
23761   UINT32_F='"l"'
23762 fi
23763 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23764 $as_echo "$as_me: $UINT32_T" >&6;}
23765
23766
23767
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23769 $as_echo_n "checking for signed 64-bit type... " >&6; }
23770 INT64_T='none'
23771 INT64_F='none'
23772 if test $ac_cv_sizeof_signed_long -eq 8; then
23773   INT64_T='signed long'
23774   INT64_F='"l"'
23775 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23776   INT64_T='signed long long'
23777   INT64_F='"ll"'
23778 fi
23779 case "${build_os}" in
23780   mingw* )
23781     INT64_F='"I64"'
23782     ;;
23783 esac
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23785 $as_echo "$as_me: $INT64_T" >&6;}
23786
23787
23788
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23790 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23791 UINT64_T='none'
23792 UINT64_F='none'
23793 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23794   UINT64_T='unsigned long'
23795   UINT64_F='"l"'
23796 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23797   UINT64_T='unsigned long long'
23798   UINT64_F='"ll"'
23799 fi
23800 case "${build_os}" in
23801   mingw* )
23802     UINT64_F='"I64"'
23803     ;;
23804 esac
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23806 $as_echo "$as_me: $UINT64_T" >&6;}
23807
23808
23809
23810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23811 $as_echo_n "checking for unsigned maximum type... " >&6; }
23812 UINTMAX_T='none'
23813 UINTMAX_F='none'
23814 if test "$UINT64_T" != 'none'; then
23815   UINTMAX_T=$UINT64_T
23816   UINTMAX_F=$UINT64_F
23817 elif test "$UINT32_T" != 'none'; then
23818   UINTMAX_T=$UINT32_T
23819   UINTMAX_F=$UINT32_F
23820 fi
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23822 $as_echo "$as_me: $UINTMAX_T" >&6;}
23823
23824
23825
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23827 $as_echo_n "checking for pointer difference type... " >&6; }
23828 UINTPTR_T='none'
23829 UINTPTR_F='none'
23830 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23831   UINTPTR_T='unsigned long'
23832   UINTPTR_F='"l"'
23833 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23834   UINTPTR_T='unsigned long long'
23835   UINTPTR_F='"ll"'
23836 fi
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23838 $as_echo "$as_me: $UINTPTR_T" >&6;}
23839
23840
23841
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23843 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23845 /* end confdefs.h.  */
23846
23847 int
23848 main ()
23849 {
23850 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23851   ;
23852   return 0;
23853 }
23854 _ACEOF
23855 if ac_fn_c_try_compile "$LINENO"; then :
23856   { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23857 $as_echo "$as_me: yes" >&6;}
23858 else
23859   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23860 $as_echo "$as_me: no" >&6;}
23861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23862 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23863  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h.  */
23865
23866 int
23867 main ()
23868 {
23869 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23870   ;
23871   return 0;
23872 }
23873 _ACEOF
23874 if ac_fn_c_try_compile "$LINENO"; then :
23875   { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23876 $as_echo "$as_me: yes" >&6;}
23877
23878 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23879
23880 else
23881   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23882 $as_echo "$as_me: no" >&6;}
23883
23884 $as_echo "#define __func__ __FILE__" >>confdefs.h
23885
23886 fi
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 fi
23889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890
23891 ########
23892 #
23893 # Check for functions
23894 #
23895 ########
23896 for ac_header in stdlib.h unistd.h
23897 do :
23898   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23899 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23900 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23901   cat >>confdefs.h <<_ACEOF
23902 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23903 _ACEOF
23904
23905 fi
23906
23907 done
23908
23909 for ac_func in getpagesize
23910 do :
23911   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23912 if test "x$ac_cv_func_getpagesize" = xyes; then :
23913   cat >>confdefs.h <<_ACEOF
23914 #define HAVE_GETPAGESIZE 1
23915 _ACEOF
23916
23917 fi
23918 done
23919
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23921 $as_echo_n "checking for working mmap file i/o... " >&6; }
23922 if ${magick_cv_func_mmap_fileio+:} false; then :
23923   $as_echo_n "(cached) " >&6
23924 else
23925   if test "$cross_compiling" = yes; then :
23926   magick_cv_func_mmap_fileio=no
23927 else
23928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h.  */
23930 $ac_includes_default
23931 /* malloc might have been renamed as rpl_malloc. */
23932 #undef malloc
23933
23934 /*
23935    This test is derived from GNU Autoconf's similar macro.
23936    The purpose of this test is to verify that files may be memory
23937    mapped, and that memory mapping and file I/O are coherent.
23938
23939    The test creates a test file, memory maps the file, updates
23940    the file using the memory map, and then reads the file using
23941    file I/O to verify that the file contains the updates.
23942 */
23943
23944 #include <fcntl.h>
23945 #include <sys/mman.h>
23946
23947 #if !STDC_HEADERS && !HAVE_STDLIB_H
23948 char *malloc ();
23949 #endif
23950
23951 /* This mess was copied from the GNU getpagesize.h.  */
23952 #if !HAVE_GETPAGESIZE
23953 /* Assume that all systems that can run configure have sys/param.h.  */
23954 # if !HAVE_SYS_PARAM_H
23955 #  define HAVE_SYS_PARAM_H 1
23956 # endif
23957
23958 # ifdef _SC_PAGESIZE
23959 #  define getpagesize() sysconf(_SC_PAGESIZE)
23960 # else /* no _SC_PAGESIZE */
23961 #  if HAVE_SYS_PARAM_H
23962 #   include <sys/param.h>
23963 #   ifdef EXEC_PAGESIZE
23964 #    define getpagesize() EXEC_PAGESIZE
23965 #   else /* no EXEC_PAGESIZE */
23966 #    ifdef NBPG
23967 #     define getpagesize() NBPG * CLSIZE
23968 #     ifndef CLSIZE
23969 #      define CLSIZE 1
23970 #     endif /* no CLSIZE */
23971 #    else /* no NBPG */
23972 #     ifdef NBPC
23973 #      define getpagesize() NBPC
23974 #     else /* no NBPC */
23975 #      ifdef PAGESIZE
23976 #       define getpagesize() PAGESIZE
23977 #      endif /* PAGESIZE */
23978 #     endif /* no NBPC */
23979 #    endif /* no NBPG */
23980 #   endif /* no EXEC_PAGESIZE */
23981 #  else /* no HAVE_SYS_PARAM_H */
23982 #   define getpagesize() 8192   /* punt totally */
23983 #  endif /* no HAVE_SYS_PARAM_H */
23984 # endif /* no _SC_PAGESIZE */
23985
23986 #endif /* no HAVE_GETPAGESIZE */
23987
23988 int
23989 main ()
23990 {
23991   char *data, *data2, *data3;
23992   int i, pagesize;
23993   int fd;
23994
23995   pagesize = getpagesize ();
23996
23997   /* First, make a file with some known garbage in it. */
23998   data = (char *) malloc (pagesize);
23999   if (!data)
24000     exit (1);
24001   for (i = 0; i < pagesize; ++i)
24002     *(data + i) = rand ();
24003   umask (0);
24004   fd = creat ("conftest.mmap", 0600);
24005   if (fd < 0)
24006     exit (1);
24007   if (write (fd, data, pagesize) != pagesize)
24008     exit (1);
24009   close (fd);
24010
24011   /* Mmap the file as read/write/shared and verify that we see the
24012   same garbage. */
24013   fd = open ("conftest.mmap", O_RDWR);
24014   if (fd < 0)
24015     exit (1);
24016   data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24017   if (data2 == 0)
24018     exit (1);
24019   for (i = 0; i < pagesize; ++i)
24020     if (*(data + i) != *(data2 + i))
24021       exit (1);
24022
24023   /* Finally, make sure that changes to the mapped area
24024      percolate back to the file as seen by read().  */
24025   for (i = 0; i < pagesize; ++i)
24026     *(data2 + i) = *(data2 + i) + 1;
24027   data3 = (char *) malloc (pagesize);
24028   if (!data3)
24029     exit (1);
24030   if (read (fd, data3, pagesize) != pagesize)
24031     exit (1);
24032   for (i = 0; i < pagesize; ++i)
24033     if (*(data2 + i) != *(data3 + i))
24034       exit (1);
24035   close (fd);
24036   exit (0);
24037 }
24038 _ACEOF
24039 if ac_fn_c_try_run "$LINENO"; then :
24040   magick_cv_func_mmap_fileio=yes
24041 else
24042   magick_cv_func_mmap_fileio=no
24043 fi
24044 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24045   conftest.$ac_objext conftest.beam conftest.$ac_ext
24046 fi
24047
24048 fi
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24050 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
24051 if test $magick_cv_func_mmap_fileio = yes; then
24052
24053 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24054
24055 fi
24056 rm -f conftest.mmap
24057
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
24059 $as_echo_n "checking whether closedir returns void... " >&6; }
24060 if ${ac_cv_func_closedir_void+:} false; then :
24061   $as_echo_n "(cached) " >&6
24062 else
24063   if test "$cross_compiling" = yes; then :
24064   ac_cv_func_closedir_void=yes
24065 else
24066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24067 /* end confdefs.h.  */
24068 $ac_includes_default
24069 #include <$ac_header_dirent>
24070 #ifndef __cplusplus
24071 int closedir ();
24072 #endif
24073
24074 int
24075 main ()
24076 {
24077 return closedir (opendir (".")) != 0;
24078   ;
24079   return 0;
24080 }
24081 _ACEOF
24082 if ac_fn_c_try_run "$LINENO"; then :
24083   ac_cv_func_closedir_void=no
24084 else
24085   ac_cv_func_closedir_void=yes
24086 fi
24087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24088   conftest.$ac_objext conftest.beam conftest.$ac_ext
24089 fi
24090
24091 fi
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
24093 $as_echo "$ac_cv_func_closedir_void" >&6; }
24094 if test $ac_cv_func_closedir_void = yes; then
24095
24096 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
24097
24098 fi
24099
24100
24101
24102
24103   for ac_header in $ac_header_list
24104 do :
24105   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24106 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24107 "
24108 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24109   cat >>confdefs.h <<_ACEOF
24110 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24111 _ACEOF
24112
24113 fi
24114
24115 done
24116
24117
24118
24119
24120
24121
24122
24123
24124 for ac_func in getpagesize
24125 do :
24126   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
24127 if test "x$ac_cv_func_getpagesize" = xyes; then :
24128   cat >>confdefs.h <<_ACEOF
24129 #define HAVE_GETPAGESIZE 1
24130 _ACEOF
24131
24132 fi
24133 done
24134
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
24136 $as_echo_n "checking for working mmap... " >&6; }
24137 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24138   $as_echo_n "(cached) " >&6
24139 else
24140   if test "$cross_compiling" = yes; then :
24141   ac_cv_func_mmap_fixed_mapped=no
24142 else
24143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24144 /* end confdefs.h.  */
24145 $ac_includes_default
24146 /* malloc might have been renamed as rpl_malloc. */
24147 #undef malloc
24148
24149 /* Thanks to Mike Haertel and Jim Avera for this test.
24150    Here is a matrix of mmap possibilities:
24151         mmap private not fixed
24152         mmap private fixed at somewhere currently unmapped
24153         mmap private fixed at somewhere already mapped
24154         mmap shared not fixed
24155         mmap shared fixed at somewhere currently unmapped
24156         mmap shared fixed at somewhere already mapped
24157    For private mappings, we should verify that changes cannot be read()
24158    back from the file, nor mmap's back from the file at a different
24159    address.  (There have been systems where private was not correctly
24160    implemented like the infamous i386 svr4.0, and systems where the
24161    VM page cache was not coherent with the file system buffer cache
24162    like early versions of FreeBSD and possibly contemporary NetBSD.)
24163    For shared mappings, we should conversely verify that changes get
24164    propagated back to all the places they're supposed to be.
24165
24166    Grep wants private fixed already mapped.
24167    The main things grep needs to know about mmap are:
24168    * does it exist and is it safe to write into the mmap'd area
24169    * how to use it (BSD variants)  */
24170
24171 #include <fcntl.h>
24172 #include <sys/mman.h>
24173
24174 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24175 char *malloc ();
24176 #endif
24177
24178 /* This mess was copied from the GNU getpagesize.h.  */
24179 #ifndef HAVE_GETPAGESIZE
24180 # ifdef _SC_PAGESIZE
24181 #  define getpagesize() sysconf(_SC_PAGESIZE)
24182 # else /* no _SC_PAGESIZE */
24183 #  ifdef HAVE_SYS_PARAM_H
24184 #   include <sys/param.h>
24185 #   ifdef EXEC_PAGESIZE
24186 #    define getpagesize() EXEC_PAGESIZE
24187 #   else /* no EXEC_PAGESIZE */
24188 #    ifdef NBPG
24189 #     define getpagesize() NBPG * CLSIZE
24190 #     ifndef CLSIZE
24191 #      define CLSIZE 1
24192 #     endif /* no CLSIZE */
24193 #    else /* no NBPG */
24194 #     ifdef NBPC
24195 #      define getpagesize() NBPC
24196 #     else /* no NBPC */
24197 #      ifdef PAGESIZE
24198 #       define getpagesize() PAGESIZE
24199 #      endif /* PAGESIZE */
24200 #     endif /* no NBPC */
24201 #    endif /* no NBPG */
24202 #   endif /* no EXEC_PAGESIZE */
24203 #  else /* no HAVE_SYS_PARAM_H */
24204 #   define getpagesize() 8192   /* punt totally */
24205 #  endif /* no HAVE_SYS_PARAM_H */
24206 # endif /* no _SC_PAGESIZE */
24207
24208 #endif /* no HAVE_GETPAGESIZE */
24209
24210 int
24211 main ()
24212 {
24213   char *data, *data2, *data3;
24214   const char *cdata2;
24215   int i, pagesize;
24216   int fd, fd2;
24217
24218   pagesize = getpagesize ();
24219
24220   /* First, make a file with some known garbage in it. */
24221   data = (char *) malloc (pagesize);
24222   if (!data)
24223     return 1;
24224   for (i = 0; i < pagesize; ++i)
24225     *(data + i) = rand ();
24226   umask (0);
24227   fd = creat ("conftest.mmap", 0600);
24228   if (fd < 0)
24229     return 2;
24230   if (write (fd, data, pagesize) != pagesize)
24231     return 3;
24232   close (fd);
24233
24234   /* Next, check that the tail of a page is zero-filled.  File must have
24235      non-zero length, otherwise we risk SIGBUS for entire page.  */
24236   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24237   if (fd2 < 0)
24238     return 4;
24239   cdata2 = "";
24240   if (write (fd2, cdata2, 1) != 1)
24241     return 5;
24242   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24243   if (data2 == MAP_FAILED)
24244     return 6;
24245   for (i = 0; i < pagesize; ++i)
24246     if (*(data2 + i))
24247       return 7;
24248   close (fd2);
24249   if (munmap (data2, pagesize))
24250     return 8;
24251
24252   /* Next, try to mmap the file at a fixed address which already has
24253      something else allocated at it.  If we can, also make sure that
24254      we see the same garbage.  */
24255   fd = open ("conftest.mmap", O_RDWR);
24256   if (fd < 0)
24257     return 9;
24258   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24259                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
24260     return 10;
24261   for (i = 0; i < pagesize; ++i)
24262     if (*(data + i) != *(data2 + i))
24263       return 11;
24264
24265   /* Finally, make sure that changes to the mapped area do not
24266      percolate back to the file as seen by read().  (This is a bug on
24267      some variants of i386 svr4.0.)  */
24268   for (i = 0; i < pagesize; ++i)
24269     *(data2 + i) = *(data2 + i) + 1;
24270   data3 = (char *) malloc (pagesize);
24271   if (!data3)
24272     return 12;
24273   if (read (fd, data3, pagesize) != pagesize)
24274     return 13;
24275   for (i = 0; i < pagesize; ++i)
24276     if (*(data + i) != *(data3 + i))
24277       return 14;
24278   close (fd);
24279   return 0;
24280 }
24281 _ACEOF
24282 if ac_fn_c_try_run "$LINENO"; then :
24283   ac_cv_func_mmap_fixed_mapped=yes
24284 else
24285   ac_cv_func_mmap_fixed_mapped=no
24286 fi
24287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24288   conftest.$ac_objext conftest.beam conftest.$ac_ext
24289 fi
24290
24291 fi
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24293 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24294 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24295
24296 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24297
24298 fi
24299 rm -f conftest.mmap conftest.txt
24300
24301 for ac_header in vfork.h
24302 do :
24303   ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24304 if test "x$ac_cv_header_vfork_h" = xyes; then :
24305   cat >>confdefs.h <<_ACEOF
24306 #define HAVE_VFORK_H 1
24307 _ACEOF
24308
24309 fi
24310
24311 done
24312
24313 for ac_func in fork vfork
24314 do :
24315   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24317 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24318   cat >>confdefs.h <<_ACEOF
24319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24320 _ACEOF
24321
24322 fi
24323 done
24324
24325 if test "x$ac_cv_func_fork" = xyes; then
24326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24327 $as_echo_n "checking for working fork... " >&6; }
24328 if ${ac_cv_func_fork_works+:} false; then :
24329   $as_echo_n "(cached) " >&6
24330 else
24331   if test "$cross_compiling" = yes; then :
24332   ac_cv_func_fork_works=cross
24333 else
24334   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h.  */
24336 $ac_includes_default
24337 int
24338 main ()
24339 {
24340
24341           /* By Ruediger Kuhlmann. */
24342           return fork () < 0;
24343
24344   ;
24345   return 0;
24346 }
24347 _ACEOF
24348 if ac_fn_c_try_run "$LINENO"; then :
24349   ac_cv_func_fork_works=yes
24350 else
24351   ac_cv_func_fork_works=no
24352 fi
24353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24354   conftest.$ac_objext conftest.beam conftest.$ac_ext
24355 fi
24356
24357 fi
24358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24359 $as_echo "$ac_cv_func_fork_works" >&6; }
24360
24361 else
24362   ac_cv_func_fork_works=$ac_cv_func_fork
24363 fi
24364 if test "x$ac_cv_func_fork_works" = xcross; then
24365   case $host in
24366     *-*-amigaos* | *-*-msdosdjgpp*)
24367       # Override, as these systems have only a dummy fork() stub
24368       ac_cv_func_fork_works=no
24369       ;;
24370     *)
24371       ac_cv_func_fork_works=yes
24372       ;;
24373   esac
24374   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24375 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24376 fi
24377 ac_cv_func_vfork_works=$ac_cv_func_vfork
24378 if test "x$ac_cv_func_vfork" = xyes; then
24379   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24380 $as_echo_n "checking for working vfork... " >&6; }
24381 if ${ac_cv_func_vfork_works+:} false; then :
24382   $as_echo_n "(cached) " >&6
24383 else
24384   if test "$cross_compiling" = yes; then :
24385   ac_cv_func_vfork_works=cross
24386 else
24387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24388 /* end confdefs.h.  */
24389 /* Thanks to Paul Eggert for this test.  */
24390 $ac_includes_default
24391 #include <sys/wait.h>
24392 #ifdef HAVE_VFORK_H
24393 # include <vfork.h>
24394 #endif
24395 /* On some sparc systems, changes by the child to local and incoming
24396    argument registers are propagated back to the parent.  The compiler
24397    is told about this with #include <vfork.h>, but some compilers
24398    (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
24399    static variable whose address is put into a register that is
24400    clobbered by the vfork.  */
24401 static void
24402 #ifdef __cplusplus
24403 sparc_address_test (int arg)
24404 # else
24405 sparc_address_test (arg) int arg;
24406 #endif
24407 {
24408   static pid_t child;
24409   if (!child) {
24410     child = vfork ();
24411     if (child < 0) {
24412       perror ("vfork");
24413       _exit(2);
24414     }
24415     if (!child) {
24416       arg = getpid();
24417       write(-1, "", 0);
24418       _exit (arg);
24419     }
24420   }
24421 }
24422
24423 int
24424 main ()
24425 {
24426   pid_t parent = getpid ();
24427   pid_t child;
24428
24429   sparc_address_test (0);
24430
24431   child = vfork ();
24432
24433   if (child == 0) {
24434     /* Here is another test for sparc vfork register problems.  This
24435        test uses lots of local variables, at least as many local
24436        variables as main has allocated so far including compiler
24437        temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
24438        4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
24439        reuse the register of parent for one of the local variables,
24440        since it will think that parent can't possibly be used any more
24441        in this routine.  Assigning to the local variable will thus
24442        munge parent in the parent process.  */
24443     pid_t
24444       p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24445       p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24446     /* Convince the compiler that p..p7 are live; otherwise, it might
24447        use the same hardware register for all 8 local variables.  */
24448     if (p != p1 || p != p2 || p != p3 || p != p4
24449         || p != p5 || p != p6 || p != p7)
24450       _exit(1);
24451
24452     /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24453        from child file descriptors.  If the child closes a descriptor
24454        before it execs or exits, this munges the parent's descriptor
24455        as well.  Test for this by closing stdout in the child.  */
24456     _exit(close(fileno(stdout)) != 0);
24457   } else {
24458     int status;
24459     struct stat st;
24460
24461     while (wait(&status) != child)
24462       ;
24463     return (
24464          /* Was there some problem with vforking?  */
24465          child < 0
24466
24467          /* Did the child fail?  (This shouldn't happen.)  */
24468          || status
24469
24470          /* Did the vfork/compiler bug occur?  */
24471          || parent != getpid()
24472
24473          /* Did the file descriptor bug occur?  */
24474          || fstat(fileno(stdout), &st) != 0
24475          );
24476   }
24477 }
24478 _ACEOF
24479 if ac_fn_c_try_run "$LINENO"; then :
24480   ac_cv_func_vfork_works=yes
24481 else
24482   ac_cv_func_vfork_works=no
24483 fi
24484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24485   conftest.$ac_objext conftest.beam conftest.$ac_ext
24486 fi
24487
24488 fi
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24490 $as_echo "$ac_cv_func_vfork_works" >&6; }
24491
24492 fi;
24493 if test "x$ac_cv_func_fork_works" = xcross; then
24494   ac_cv_func_vfork_works=$ac_cv_func_vfork
24495   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24496 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24497 fi
24498
24499 if test "x$ac_cv_func_vfork_works" = xyes; then
24500
24501 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24502
24503 else
24504
24505 $as_echo "#define vfork fork" >>confdefs.h
24506
24507 fi
24508 if test "x$ac_cv_func_fork_works" = xyes; then
24509
24510 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24511
24512 fi
24513
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24515 $as_echo_n "checking for working memcmp... " >&6; }
24516 if ${ac_cv_func_memcmp_working+:} false; then :
24517   $as_echo_n "(cached) " >&6
24518 else
24519   if test "$cross_compiling" = yes; then :
24520   ac_cv_func_memcmp_working=no
24521 else
24522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24523 /* end confdefs.h.  */
24524 $ac_includes_default
24525 int
24526 main ()
24527 {
24528
24529   /* Some versions of memcmp are not 8-bit clean.  */
24530   char c0 = '\100', c1 = '\200', c2 = '\201';
24531   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24532     return 1;
24533
24534   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24535      or more and with at least one buffer not starting on a 4-byte boundary.
24536      William Lewis provided this test program.   */
24537   {
24538     char foo[21];
24539     char bar[21];
24540     int i;
24541     for (i = 0; i < 4; i++)
24542       {
24543         char *a = foo + i;
24544         char *b = bar + i;
24545         strcpy (a, "--------01111111");
24546         strcpy (b, "--------10000000");
24547         if (memcmp (a, b, 16) >= 0)
24548           return 1;
24549       }
24550     return 0;
24551   }
24552
24553   ;
24554   return 0;
24555 }
24556 _ACEOF
24557 if ac_fn_c_try_run "$LINENO"; then :
24558   ac_cv_func_memcmp_working=yes
24559 else
24560   ac_cv_func_memcmp_working=no
24561 fi
24562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24563   conftest.$ac_objext conftest.beam conftest.$ac_ext
24564 fi
24565
24566 fi
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24568 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24569 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24570   *" memcmp.$ac_objext "* ) ;;
24571   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24572  ;;
24573 esac
24574
24575
24576 for ac_header in sys/select.h sys/socket.h
24577 do :
24578   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24579 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24580 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24581   cat >>confdefs.h <<_ACEOF
24582 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24583 _ACEOF
24584
24585 fi
24586
24587 done
24588
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24590 $as_echo_n "checking types of arguments for select... " >&6; }
24591 if ${ac_cv_func_select_args+:} false; then :
24592   $as_echo_n "(cached) " >&6
24593 else
24594   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24595  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24596   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24597    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h.  */
24599 $ac_includes_default
24600 #ifdef HAVE_SYS_SELECT_H
24601 # include <sys/select.h>
24602 #endif
24603 #ifdef HAVE_SYS_SOCKET_H
24604 # include <sys/socket.h>
24605 #endif
24606
24607 int
24608 main ()
24609 {
24610 extern int select ($ac_arg1,
24611                                             $ac_arg234, $ac_arg234, $ac_arg234,
24612                                             $ac_arg5);
24613   ;
24614   return 0;
24615 }
24616 _ACEOF
24617 if ac_fn_c_try_compile "$LINENO"; then :
24618   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24619 fi
24620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24621   done
24622  done
24623 done
24624 # Provide a safe default value.
24625 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24626
24627 fi
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24629 $as_echo "$ac_cv_func_select_args" >&6; }
24630 ac_save_IFS=$IFS; IFS=','
24631 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24632 IFS=$ac_save_IFS
24633 shift
24634
24635 cat >>confdefs.h <<_ACEOF
24636 #define SELECT_TYPE_ARG1 $1
24637 _ACEOF
24638
24639
24640 cat >>confdefs.h <<_ACEOF
24641 #define SELECT_TYPE_ARG234 ($2)
24642 _ACEOF
24643
24644
24645 cat >>confdefs.h <<_ACEOF
24646 #define SELECT_TYPE_ARG5 ($3)
24647 _ACEOF
24648
24649 rm -f conftest*
24650
24651 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24652   $as_echo_n "(cached) " >&6
24653 else
24654   ac_cv_func_setvbuf_reversed=no
24655 fi
24656
24657
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24659 $as_echo_n "checking return type of signal handlers... " >&6; }
24660 if ${ac_cv_type_signal+:} false; then :
24661   $as_echo_n "(cached) " >&6
24662 else
24663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h.  */
24665 #include <sys/types.h>
24666 #include <signal.h>
24667
24668 int
24669 main ()
24670 {
24671 return *(signal (0, 0)) (0) == 1;
24672   ;
24673   return 0;
24674 }
24675 _ACEOF
24676 if ac_fn_c_try_compile "$LINENO"; then :
24677   ac_cv_type_signal=int
24678 else
24679   ac_cv_type_signal=void
24680 fi
24681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24682 fi
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24684 $as_echo "$ac_cv_type_signal" >&6; }
24685
24686 cat >>confdefs.h <<_ACEOF
24687 #define RETSIGTYPE $ac_cv_type_signal
24688 _ACEOF
24689
24690
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24692 $as_echo_n "checking for working strtod... " >&6; }
24693 if ${ac_cv_func_strtod+:} false; then :
24694   $as_echo_n "(cached) " >&6
24695 else
24696   if test "$cross_compiling" = yes; then :
24697   ac_cv_func_strtod=no
24698 else
24699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24700 /* end confdefs.h.  */
24701
24702 $ac_includes_default
24703 #ifndef strtod
24704 double strtod ();
24705 #endif
24706 int
24707 main()
24708 {
24709   {
24710     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
24711     char *string = " +69";
24712     char *term;
24713     double value;
24714     value = strtod (string, &term);
24715     if (value != 69 || term != (string + 4))
24716       return 1;
24717   }
24718
24719   {
24720     /* Under Solaris 2.4, strtod returns the wrong value for the
24721        terminating character under some conditions.  */
24722     char *string = "NaN";
24723     char *term;
24724     strtod (string, &term);
24725     if (term != string && *(term - 1) == 0)
24726       return 1;
24727   }
24728   return 0;
24729 }
24730
24731 _ACEOF
24732 if ac_fn_c_try_run "$LINENO"; then :
24733   ac_cv_func_strtod=yes
24734 else
24735   ac_cv_func_strtod=no
24736 fi
24737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24738   conftest.$ac_objext conftest.beam conftest.$ac_ext
24739 fi
24740
24741 fi
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24743 $as_echo "$ac_cv_func_strtod" >&6; }
24744 if test $ac_cv_func_strtod = no; then
24745   case " $LIBOBJS " in
24746   *" strtod.$ac_objext "* ) ;;
24747   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24748  ;;
24749 esac
24750
24751 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24752 if test "x$ac_cv_func_pow" = xyes; then :
24753
24754 fi
24755
24756 if test $ac_cv_func_pow = no; then
24757   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24758 $as_echo_n "checking for pow in -lm... " >&6; }
24759 if ${ac_cv_lib_m_pow+:} false; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762   ac_check_lib_save_LIBS=$LIBS
24763 LIBS="-lm  $LIBS"
24764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24765 /* end confdefs.h.  */
24766
24767 /* Override any GCC internal prototype to avoid an error.
24768    Use char because int might match the return type of a GCC
24769    builtin and then its argument prototype would still apply.  */
24770 #ifdef __cplusplus
24771 extern "C"
24772 #endif
24773 char pow ();
24774 int
24775 main ()
24776 {
24777 return pow ();
24778   ;
24779   return 0;
24780 }
24781 _ACEOF
24782 if ac_fn_c_try_link "$LINENO"; then :
24783   ac_cv_lib_m_pow=yes
24784 else
24785   ac_cv_lib_m_pow=no
24786 fi
24787 rm -f core conftest.err conftest.$ac_objext \
24788     conftest$ac_exeext conftest.$ac_ext
24789 LIBS=$ac_check_lib_save_LIBS
24790 fi
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24792 $as_echo "$ac_cv_lib_m_pow" >&6; }
24793 if test "x$ac_cv_lib_m_pow" = xyes; then :
24794   POW_LIB=-lm
24795 else
24796   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24797 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24798 fi
24799
24800 fi
24801
24802 fi
24803
24804 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24805 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24806   ac_have_decl=1
24807 else
24808   ac_have_decl=0
24809 fi
24810
24811 cat >>confdefs.h <<_ACEOF
24812 #define HAVE_DECL_STRERROR_R $ac_have_decl
24813 _ACEOF
24814
24815 for ac_func in strerror_r
24816 do :
24817   ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24818 if test "x$ac_cv_func_strerror_r" = xyes; then :
24819   cat >>confdefs.h <<_ACEOF
24820 #define HAVE_STRERROR_R 1
24821 _ACEOF
24822
24823 fi
24824 done
24825
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24827 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
24828 if ${ac_cv_func_strerror_r_char_p+:} false; then :
24829   $as_echo_n "(cached) " >&6
24830 else
24831
24832     ac_cv_func_strerror_r_char_p=no
24833     if test $ac_cv_have_decl_strerror_r = yes; then
24834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24835 /* end confdefs.h.  */
24836 $ac_includes_default
24837 int
24838 main ()
24839 {
24840
24841           char buf[100];
24842           char x = *strerror_r (0, buf, sizeof buf);
24843           char *p = strerror_r (0, buf, sizeof buf);
24844           return !p || x;
24845
24846   ;
24847   return 0;
24848 }
24849 _ACEOF
24850 if ac_fn_c_try_compile "$LINENO"; then :
24851   ac_cv_func_strerror_r_char_p=yes
24852 fi
24853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24854     else
24855       # strerror_r is not declared.  Choose between
24856       # systems that have relatively inaccessible declarations for the
24857       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
24858       # former has a strerror_r that returns char*, while the latter
24859       # has a strerror_r that returns `int'.
24860       # This test should segfault on the DEC system.
24861       if test "$cross_compiling" = yes; then :
24862   :
24863 else
24864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24865 /* end confdefs.h.  */
24866 $ac_includes_default
24867         extern char *strerror_r ();
24868 int
24869 main ()
24870 {
24871 char buf[100];
24872           char x = *strerror_r (0, buf, sizeof buf);
24873           return ! isalpha (x);
24874   ;
24875   return 0;
24876 }
24877 _ACEOF
24878 if ac_fn_c_try_run "$LINENO"; then :
24879   ac_cv_func_strerror_r_char_p=yes
24880 fi
24881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24882   conftest.$ac_objext conftest.beam conftest.$ac_ext
24883 fi
24884
24885     fi
24886
24887 fi
24888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24889 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24890 if test $ac_cv_func_strerror_r_char_p = yes; then
24891
24892 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24893
24894 fi
24895
24896 for ac_func in vprintf
24897 do :
24898   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24899 if test "x$ac_cv_func_vprintf" = xyes; then :
24900   cat >>confdefs.h <<_ACEOF
24901 #define HAVE_VPRINTF 1
24902 _ACEOF
24903
24904 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24905 if test "x$ac_cv_func__doprnt" = xyes; then :
24906
24907 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24908
24909 fi
24910
24911 fi
24912 done
24913
24914
24915
24916 #
24917 # Find math library
24918 #
24919 MATH_LIBS=''
24920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24921 $as_echo_n "checking for sqrt in -lm... " >&6; }
24922 if ${ac_cv_lib_m_sqrt+:} false; then :
24923   $as_echo_n "(cached) " >&6
24924 else
24925   ac_check_lib_save_LIBS=$LIBS
24926 LIBS="-lm  $LIBS"
24927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24928 /* end confdefs.h.  */
24929
24930 /* Override any GCC internal prototype to avoid an error.
24931    Use char because int might match the return type of a GCC
24932    builtin and then its argument prototype would still apply.  */
24933 #ifdef __cplusplus
24934 extern "C"
24935 #endif
24936 char sqrt ();
24937 int
24938 main ()
24939 {
24940 return sqrt ();
24941   ;
24942   return 0;
24943 }
24944 _ACEOF
24945 if ac_fn_c_try_link "$LINENO"; then :
24946   ac_cv_lib_m_sqrt=yes
24947 else
24948   ac_cv_lib_m_sqrt=no
24949 fi
24950 rm -f core conftest.err conftest.$ac_objext \
24951     conftest$ac_exeext conftest.$ac_ext
24952 LIBS=$ac_check_lib_save_LIBS
24953 fi
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24955 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24956 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24957   MATH_LIBS="-lm"
24958 fi
24959
24960 LIBS="$MATH_LIBS $LIBS"
24961
24962
24963 for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r 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 setlocale 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
24964 do :
24965   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24966 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24967 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24968   cat >>confdefs.h <<_ACEOF
24969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24970 _ACEOF
24971
24972 fi
24973 done
24974
24975
24976 #
24977 # Check for clock_gettime().
24978 #
24979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24980 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24981 if ${ac_cv_search_clock_gettime+:} false; then :
24982   $as_echo_n "(cached) " >&6
24983 else
24984   ac_func_search_save_LIBS=$LIBS
24985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24986 /* end confdefs.h.  */
24987
24988 /* Override any GCC internal prototype to avoid an error.
24989    Use char because int might match the return type of a GCC
24990    builtin and then its argument prototype would still apply.  */
24991 #ifdef __cplusplus
24992 extern "C"
24993 #endif
24994 char clock_gettime ();
24995 int
24996 main ()
24997 {
24998 return clock_gettime ();
24999   ;
25000   return 0;
25001 }
25002 _ACEOF
25003 for ac_lib in '' rt; do
25004   if test -z "$ac_lib"; then
25005     ac_res="none required"
25006   else
25007     ac_res=-l$ac_lib
25008     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25009   fi
25010   if ac_fn_c_try_link "$LINENO"; then :
25011   ac_cv_search_clock_gettime=$ac_res
25012 fi
25013 rm -f core conftest.err conftest.$ac_objext \
25014     conftest$ac_exeext
25015   if ${ac_cv_search_clock_gettime+:} false; then :
25016   break
25017 fi
25018 done
25019 if ${ac_cv_search_clock_gettime+:} false; then :
25020
25021 else
25022   ac_cv_search_clock_gettime=no
25023 fi
25024 rm conftest.$ac_ext
25025 LIBS=$ac_func_search_save_LIBS
25026 fi
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
25028 $as_echo "$ac_cv_search_clock_gettime" >&6; }
25029 ac_res=$ac_cv_search_clock_gettime
25030 if test "$ac_res" != no; then :
25031   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25032
25033
25034 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25035
25036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
25037 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
25038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h.  */
25040
25041     #include <time.h>
25042 int
25043 main ()
25044 {
25045 clockid_t clockType = CLOCK_REALTIME;
25046   ;
25047   return 0;
25048 }
25049 _ACEOF
25050 if ac_fn_c_try_compile "$LINENO"; then :
25051
25052         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25053 $as_echo "$as_me: yes" >&6;}
25054
25055 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
25056
25057
25058 else
25059   { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25060 $as_echo "$as_me: no" >&6;}
25061
25062 fi
25063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25064
25065 else
25066
25067     for ac_func in gettimeofday ftime
25068 do :
25069   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25070 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25071 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25072   cat >>confdefs.h <<_ACEOF
25073 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25074 _ACEOF
25075  break
25076 fi
25077 done
25078
25079
25080
25081 fi
25082
25083
25084 ########
25085 #
25086 # Check for function prototypes
25087 #
25088 ########
25089
25090 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
25091 #include <unistd.h>
25092 "
25093 if test "x$ac_cv_have_decl_pread" = xyes; then :
25094   ac_have_decl=1
25095 else
25096   ac_have_decl=0
25097 fi
25098
25099 cat >>confdefs.h <<_ACEOF
25100 #define HAVE_DECL_PREAD $ac_have_decl
25101 _ACEOF
25102 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
25103 #include <unistd.h>
25104 "
25105 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
25106   ac_have_decl=1
25107 else
25108   ac_have_decl=0
25109 fi
25110
25111 cat >>confdefs.h <<_ACEOF
25112 #define HAVE_DECL_PWRITE $ac_have_decl
25113 _ACEOF
25114
25115
25116 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
25117 #include <strings.h>
25118 "
25119 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
25120   ac_have_decl=1
25121 else
25122   ac_have_decl=0
25123 fi
25124
25125 cat >>confdefs.h <<_ACEOF
25126 #define HAVE_DECL_STRLCPY $ac_have_decl
25127 _ACEOF
25128
25129
25130 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
25131 #include <stdio.h>
25132 #include <stdarg.h>
25133 "
25134 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
25135   ac_have_decl=1
25136 else
25137   ac_have_decl=0
25138 fi
25139
25140 cat >>confdefs.h <<_ACEOF
25141 #define HAVE_DECL_VSNPRINTF $ac_have_decl
25142 _ACEOF
25143
25144
25145 ########
25146 #
25147 # C++ Support Tests (For Magick++)
25148 #
25149 ########
25150 have_magick_plus_plus='no'
25151 if test "$with_magick_plus_plus" = 'yes'; then
25152     OLIBS="$LIBS"
25153     LIBS=''
25154     ac_ext=cpp
25155 ac_cpp='$CXXCPP $CPPFLAGS'
25156 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25157 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25158 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25159
25160
25161     # Full set of headers used...
25162     # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25163     # functional iomanip iosfwd iostream iterator list string strstream utility
25164     ac_ext=cpp
25165 ac_cpp='$CXXCPP $CPPFLAGS'
25166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25169
25170     ac_ext=cpp
25171 ac_cpp='$CXXCPP $CPPFLAGS'
25172 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25173 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25174 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25175 if test -z "$CXX"; then
25176   if test -n "$CCC"; then
25177     CXX=$CCC
25178   else
25179     if test -n "$ac_tool_prefix"; then
25180   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25181   do
25182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25185 $as_echo_n "checking for $ac_word... " >&6; }
25186 if ${ac_cv_prog_CXX+:} false; then :
25187   $as_echo_n "(cached) " >&6
25188 else
25189   if test -n "$CXX"; then
25190   ac_cv_prog_CXX="$CXX" # Let the user override the test.
25191 else
25192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25193 for as_dir in $PATH
25194 do
25195   IFS=$as_save_IFS
25196   test -z "$as_dir" && as_dir=.
25197     for ac_exec_ext in '' $ac_executable_extensions; do
25198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25199     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
25200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25201     break 2
25202   fi
25203 done
25204   done
25205 IFS=$as_save_IFS
25206
25207 fi
25208 fi
25209 CXX=$ac_cv_prog_CXX
25210 if test -n "$CXX"; then
25211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
25212 $as_echo "$CXX" >&6; }
25213 else
25214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25215 $as_echo "no" >&6; }
25216 fi
25217
25218
25219     test -n "$CXX" && break
25220   done
25221 fi
25222 if test -z "$CXX"; then
25223   ac_ct_CXX=$CXX
25224   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25225 do
25226   # Extract the first word of "$ac_prog", so it can be a program name with args.
25227 set dummy $ac_prog; ac_word=$2
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25229 $as_echo_n "checking for $ac_word... " >&6; }
25230 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25231   $as_echo_n "(cached) " >&6
25232 else
25233   if test -n "$ac_ct_CXX"; then
25234   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25235 else
25236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25237 for as_dir in $PATH
25238 do
25239   IFS=$as_save_IFS
25240   test -z "$as_dir" && as_dir=.
25241     for ac_exec_ext in '' $ac_executable_extensions; do
25242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25243     ac_cv_prog_ac_ct_CXX="$ac_prog"
25244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25245     break 2
25246   fi
25247 done
25248   done
25249 IFS=$as_save_IFS
25250
25251 fi
25252 fi
25253 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25254 if test -n "$ac_ct_CXX"; then
25255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25256 $as_echo "$ac_ct_CXX" >&6; }
25257 else
25258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25259 $as_echo "no" >&6; }
25260 fi
25261
25262
25263   test -n "$ac_ct_CXX" && break
25264 done
25265
25266   if test "x$ac_ct_CXX" = x; then
25267     CXX="g++"
25268   else
25269     case $cross_compiling:$ac_tool_warned in
25270 yes:)
25271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25273 ac_tool_warned=yes ;;
25274 esac
25275     CXX=$ac_ct_CXX
25276   fi
25277 fi
25278
25279   fi
25280 fi
25281 # Provide some information about the compiler.
25282 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25283 set X $ac_compile
25284 ac_compiler=$2
25285 for ac_option in --version -v -V -qversion; do
25286   { { ac_try="$ac_compiler $ac_option >&5"
25287 case "(($ac_try" in
25288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25289   *) ac_try_echo=$ac_try;;
25290 esac
25291 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25292 $as_echo "$ac_try_echo"; } >&5
25293   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25294   ac_status=$?
25295   if test -s conftest.err; then
25296     sed '10a\
25297 ... rest of stderr output deleted ...
25298          10q' conftest.err >conftest.er1
25299     cat conftest.er1 >&5
25300   fi
25301   rm -f conftest.er1 conftest.err
25302   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25303   test $ac_status = 0; }
25304 done
25305
25306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25307 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25308 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25309   $as_echo_n "(cached) " >&6
25310 else
25311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h.  */
25313
25314 int
25315 main ()
25316 {
25317 #ifndef __GNUC__
25318        choke me
25319 #endif
25320
25321   ;
25322   return 0;
25323 }
25324 _ACEOF
25325 if ac_fn_cxx_try_compile "$LINENO"; then :
25326   ac_compiler_gnu=yes
25327 else
25328   ac_compiler_gnu=no
25329 fi
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25332
25333 fi
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25335 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25336 if test $ac_compiler_gnu = yes; then
25337   GXX=yes
25338 else
25339   GXX=
25340 fi
25341 ac_test_CXXFLAGS=${CXXFLAGS+set}
25342 ac_save_CXXFLAGS=$CXXFLAGS
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25344 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25345 if ${ac_cv_prog_cxx_g+:} false; then :
25346   $as_echo_n "(cached) " >&6
25347 else
25348   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25349    ac_cxx_werror_flag=yes
25350    ac_cv_prog_cxx_g=no
25351    CXXFLAGS="-g"
25352    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25353 /* end confdefs.h.  */
25354
25355 int
25356 main ()
25357 {
25358
25359   ;
25360   return 0;
25361 }
25362 _ACEOF
25363 if ac_fn_cxx_try_compile "$LINENO"; then :
25364   ac_cv_prog_cxx_g=yes
25365 else
25366   CXXFLAGS=""
25367       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h.  */
25369
25370 int
25371 main ()
25372 {
25373
25374   ;
25375   return 0;
25376 }
25377 _ACEOF
25378 if ac_fn_cxx_try_compile "$LINENO"; then :
25379
25380 else
25381   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25382          CXXFLAGS="-g"
25383          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25384 /* end confdefs.h.  */
25385
25386 int
25387 main ()
25388 {
25389
25390   ;
25391   return 0;
25392 }
25393 _ACEOF
25394 if ac_fn_cxx_try_compile "$LINENO"; then :
25395   ac_cv_prog_cxx_g=yes
25396 fi
25397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25398 fi
25399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25400 fi
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25402    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25403 fi
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25405 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25406 if test "$ac_test_CXXFLAGS" = set; then
25407   CXXFLAGS=$ac_save_CXXFLAGS
25408 elif test $ac_cv_prog_cxx_g = yes; then
25409   if test "$GXX" = yes; then
25410     CXXFLAGS="-g -O2"
25411   else
25412     CXXFLAGS="-g"
25413   fi
25414 else
25415   if test "$GXX" = yes; then
25416     CXXFLAGS="-O2"
25417   else
25418     CXXFLAGS=
25419   fi
25420 fi
25421 ac_ext=cpp
25422 ac_cpp='$CXXCPP $CPPFLAGS'
25423 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25426
25427 depcc="$CXX"  am_compiler_list=
25428
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25430 $as_echo_n "checking dependency style of $depcc... " >&6; }
25431 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25432   $as_echo_n "(cached) " >&6
25433 else
25434   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25435   # We make a subdir and do the tests there.  Otherwise we can end up
25436   # making bogus files that we don't know about and never remove.  For
25437   # instance it was reported that on HP-UX the gcc test will end up
25438   # making a dummy file named `D' -- because `-MD' means `put the output
25439   # in D'.
25440   mkdir conftest.dir
25441   # Copy depcomp to subdir because otherwise we won't find it if we're
25442   # using a relative directory.
25443   cp "$am_depcomp" conftest.dir
25444   cd conftest.dir
25445   # We will build objects and dependencies in a subdirectory because
25446   # it helps to detect inapplicable dependency modes.  For instance
25447   # both Tru64's cc and ICC support -MD to output dependencies as a
25448   # side effect of compilation, but ICC will put the dependencies in
25449   # the current directory while Tru64 will put them in the object
25450   # directory.
25451   mkdir sub
25452
25453   am_cv_CXX_dependencies_compiler_type=none
25454   if test "$am_compiler_list" = ""; then
25455      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25456   fi
25457   am__universal=false
25458   case " $depcc " in #(
25459      *\ -arch\ *\ -arch\ *) am__universal=true ;;
25460      esac
25461
25462   for depmode in $am_compiler_list; do
25463     # Setup a source with many dependencies, because some compilers
25464     # like to wrap large dependency lists on column 80 (with \), and
25465     # we should not choose a depcomp mode which is confused by this.
25466     #
25467     # We need to recreate these files for each test, as the compiler may
25468     # overwrite some of them when testing with obscure command lines.
25469     # This happens at least with the AIX C compiler.
25470     : > sub/conftest.c
25471     for i in 1 2 3 4 5 6; do
25472       echo '#include "conftst'$i'.h"' >> sub/conftest.c
25473       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25474       # Solaris 8's {/usr,}/bin/sh.
25475       touch sub/conftst$i.h
25476     done
25477     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25478
25479     # We check with `-c' and `-o' for the sake of the "dashmstdout"
25480     # mode.  It turns out that the SunPro C++ compiler does not properly
25481     # handle `-M -o', and we need to detect this.  Also, some Intel
25482     # versions had trouble with output in subdirs
25483     am__obj=sub/conftest.${OBJEXT-o}
25484     am__minus_obj="-o $am__obj"
25485     case $depmode in
25486     gcc)
25487       # This depmode causes a compiler race in universal mode.
25488       test "$am__universal" = false || continue
25489       ;;
25490     nosideeffect)
25491       # after this tag, mechanisms are not by side-effect, so they'll
25492       # only be used when explicitly requested
25493       if test "x$enable_dependency_tracking" = xyes; then
25494         continue
25495       else
25496         break
25497       fi
25498       ;;
25499     msvisualcpp | msvcmsys)
25500       # This compiler won't grok `-c -o', but also, the minuso test has
25501       # not run yet.  These depmodes are late enough in the game, and
25502       # so weak that their functioning should not be impacted.
25503       am__obj=conftest.${OBJEXT-o}
25504       am__minus_obj=
25505       ;;
25506     none) break ;;
25507     esac
25508     if depmode=$depmode \
25509        source=sub/conftest.c object=$am__obj \
25510        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25511        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25512          >/dev/null 2>conftest.err &&
25513        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25514        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25515        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25516        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25517       # icc doesn't choke on unknown options, it will just issue warnings
25518       # or remarks (even with -Werror).  So we grep stderr for any message
25519       # that says an option was ignored or not supported.
25520       # When given -MP, icc 7.0 and 7.1 complain thusly:
25521       #   icc: Command line warning: ignoring option '-M'; no argument required
25522       # The diagnosis changed in icc 8.0:
25523       #   icc: Command line remark: option '-MP' not supported
25524       if (grep 'ignoring option' conftest.err ||
25525           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25526         am_cv_CXX_dependencies_compiler_type=$depmode
25527         break
25528       fi
25529     fi
25530   done
25531
25532   cd ..
25533   rm -rf conftest.dir
25534 else
25535   am_cv_CXX_dependencies_compiler_type=none
25536 fi
25537
25538 fi
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25540 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25541 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25542
25543  if
25544   test "x$enable_dependency_tracking" != xno \
25545   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25546   am__fastdepCXX_TRUE=
25547   am__fastdepCXX_FALSE='#'
25548 else
25549   am__fastdepCXX_TRUE='#'
25550   am__fastdepCXX_FALSE=
25551 fi
25552
25553
25554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25555 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25556 if ${ax_cv_cxx_bool+:} false; then :
25557   $as_echo_n "(cached) " >&6
25558 else
25559
25560  ac_ext=cpp
25561 ac_cpp='$CXXCPP $CPPFLAGS'
25562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25565
25566  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25567 /* end confdefs.h.  */
25568
25569 int f(int  x){return 1;}
25570 int f(char x){return 1;}
25571 int f(bool x){return 1;}
25572
25573 int
25574 main ()
25575 {
25576 bool b = true; return f(b);
25577   ;
25578   return 0;
25579 }
25580 _ACEOF
25581 if ac_fn_cxx_try_compile "$LINENO"; then :
25582   ax_cv_cxx_bool=yes
25583 else
25584   ax_cv_cxx_bool=no
25585 fi
25586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25587  ac_ext=cpp
25588 ac_cpp='$CXXCPP $CPPFLAGS'
25589 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25590 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25591 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25592
25593
25594 fi
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25596 $as_echo "$ax_cv_cxx_bool" >&6; }
25597 if test "$ax_cv_cxx_bool" = yes; then
25598
25599 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25600
25601 fi
25602
25603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25604 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25605 if ${ax_cv_cxx_namespaces+:} false; then :
25606   $as_echo_n "(cached) " >&6
25607 else
25608
25609  ac_ext=cpp
25610 ac_cpp='$CXXCPP $CPPFLAGS'
25611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25614
25615  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25616 /* end confdefs.h.  */
25617 namespace Outer { namespace Inner { int i = 0; }}
25618 int
25619 main ()
25620 {
25621 using namespace Outer::Inner; return i;
25622   ;
25623   return 0;
25624 }
25625 _ACEOF
25626 if ac_fn_cxx_try_compile "$LINENO"; then :
25627   ax_cv_cxx_namespaces=yes
25628 else
25629   ax_cv_cxx_namespaces=no
25630 fi
25631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25632  ac_ext=cpp
25633 ac_cpp='$CXXCPP $CPPFLAGS'
25634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25637
25638
25639 fi
25640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25641 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25642 if test "$ax_cv_cxx_namespaces" = yes; then
25643
25644 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25645
25646 fi
25647
25648
25649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25650 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25651 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25652   $as_echo_n "(cached) " >&6
25653 else
25654
25655   ac_ext=cpp
25656 ac_cpp='$CXXCPP $CPPFLAGS'
25657 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25658 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25659 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25660
25661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25662 /* end confdefs.h.  */
25663 #include <iostream>
25664                   std::istream& is = std::cin;
25665 int
25666 main ()
25667 {
25668
25669   ;
25670   return 0;
25671 }
25672 _ACEOF
25673 if ac_fn_cxx_try_compile "$LINENO"; then :
25674   ax_cv_cxx_have_std_namespace=yes
25675 else
25676   ax_cv_cxx_have_std_namespace=no
25677 fi
25678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25679   ac_ext=cpp
25680 ac_cpp='$CXXCPP $CPPFLAGS'
25681 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25682 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25683 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25684
25685
25686 fi
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25688 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25689   if test "$ax_cv_cxx_have_std_namespace" = yes; then
25690
25691 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25692
25693   fi
25694
25695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25696 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25697 if ${ac_cv_cxx_have_std_libs+:} false; then :
25698   $as_echo_n "(cached) " >&6
25699 else
25700
25701
25702  ac_ext=cpp
25703 ac_cpp='$CXXCPP $CPPFLAGS'
25704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25707
25708  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25709 /* end confdefs.h.  */
25710 #include <iostream>
25711 #include <map>
25712 #include <iomanip>
25713 #include <cmath>
25714 #ifdef HAVE_NAMESPACES
25715 using namespace std;
25716 #endif
25717 int
25718 main ()
25719 {
25720 return 0;
25721   ;
25722   return 0;
25723 }
25724 _ACEOF
25725 if ac_fn_cxx_try_compile "$LINENO"; then :
25726   ac_cv_cxx_have_std_libs=yes
25727 else
25728   ac_cv_cxx_have_std_libs=no
25729 fi
25730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731  ac_ext=cpp
25732 ac_cpp='$CXXCPP $CPPFLAGS'
25733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25736
25737
25738 fi
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25740 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25741 if test "$ac_cv_cxx_have_std_libs" = yes; then
25742
25743 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25744
25745 fi
25746
25747
25748   OPENMP_CXXFLAGS=
25749   # Check whether --enable-openmp was given.
25750 if test "${enable_openmp+set}" = set; then :
25751   enableval=$enable_openmp;
25752 fi
25753
25754   if test "$enable_openmp" != no; then
25755     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25756 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25757 if ${ac_cv_prog_cxx_openmp+:} false; then :
25758   $as_echo_n "(cached) " >&6
25759 else
25760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25761 /* end confdefs.h.  */
25762
25763 #ifndef _OPENMP
25764  choke me
25765 #endif
25766 #include <omp.h>
25767 int main () { return omp_get_num_threads (); }
25768
25769 _ACEOF
25770 if ac_fn_cxx_try_link "$LINENO"; then :
25771   ac_cv_prog_cxx_openmp='none needed'
25772 else
25773   ac_cv_prog_cxx_openmp='unsupported'
25774                                                                                                           for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25775             ac_save_CXXFLAGS=$CXXFLAGS
25776             CXXFLAGS="$CXXFLAGS $ac_option"
25777             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25778 /* end confdefs.h.  */
25779
25780 #ifndef _OPENMP
25781  choke me
25782 #endif
25783 #include <omp.h>
25784 int main () { return omp_get_num_threads (); }
25785
25786 _ACEOF
25787 if ac_fn_cxx_try_link "$LINENO"; then :
25788   ac_cv_prog_cxx_openmp=$ac_option
25789 fi
25790 rm -f core conftest.err conftest.$ac_objext \
25791     conftest$ac_exeext conftest.$ac_ext
25792             CXXFLAGS=$ac_save_CXXFLAGS
25793             if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25794               break
25795             fi
25796           done
25797 fi
25798 rm -f core conftest.err conftest.$ac_objext \
25799     conftest$ac_exeext conftest.$ac_ext
25800 fi
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25802 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25803     case $ac_cv_prog_cxx_openmp in #(
25804       "none needed" | unsupported)
25805         ;; #(
25806       *)
25807         OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25808     esac
25809   fi
25810
25811
25812     ac_ext=c
25813 ac_cpp='$CPP $CPPFLAGS'
25814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25817
25818
25819     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25820 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25821     if \
25822         test $ax_cv_cxx_bool = 'yes' && \
25823         test $ax_cv_cxx_namespaces = 'yes' && \
25824         test $ac_cv_cxx_have_std_libs = 'yes' && \
25825         test $ax_cv_cxx_have_std_namespace = 'yes'; then
25826         have_magick_plus_plus='yes'
25827     else
25828         have_magick_plus_plus='no (failed tests)'
25829     fi
25830     { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25831 $as_echo "$as_me: $have_magick_plus_plus" >&6;}
25832     LIBS="$OLIBS"
25833 fi
25834  if test "$have_magick_plus_plus" = 'yes'; then
25835   WITH_MAGICK_PLUS_PLUS_TRUE=
25836   WITH_MAGICK_PLUS_PLUS_FALSE='#'
25837 else
25838   WITH_MAGICK_PLUS_PLUS_TRUE='#'
25839   WITH_MAGICK_PLUS_PLUS_FALSE=
25840 fi
25841
25842
25843 # Only check for delegate libraries in subdirectories if requested.
25844 if test "$enable_delegate_build" != 'no'; then
25845     # Check for delegate sub-directories and add -I & -L options as required.
25846     # This presumes that delegates are installed as detailed in the ImageMagick
25847     # README. If delegates are installed in a standard location where the
25848     # compiler will automatically find them then these options should not be
25849     # required.
25850
25851     #
25852     # Most delegates have includes in the same directory as the library, but not all...
25853     #
25854     # Includes
25855     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
25856         if test -d "$builddir/$dir"; then
25857             CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25858         else
25859             if test -d "$srcdirfull/$dir"; then
25860                 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25861             fi
25862         fi
25863     done
25864
25865     # Libraries
25866     for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
25867     if test -d "$builddir/$dir/.libs"; then
25868         LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25869     else
25870         if test -d "$srcdirfull/$dir/.libs"; then
25871             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25872         fi
25873     fi
25874     if test -d "$builddir/$dir"; then
25875         LDFLAGS="$LDFLAGS -L$builddir/$dir"
25876     else
25877         if test -d "$srcdirfull/$dir"; then
25878             LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25879         fi
25880     fi
25881   done
25882 fi
25883
25884 # Assume that delegate headers reside under same directory as ImageMagick
25885 # installation prefix.
25886 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25887
25888 #
25889 # Find the X11 RGB database
25890 #
25891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25892 $as_echo_n "checking for X11 configure files... " >&6; }
25893 if ${im_cv_x_configure+:} false; then :
25894   $as_echo_n "(cached) " >&6
25895 else
25896   # Look for the header file in a standard set of common directories.
25897 # Check X11 before X11Rn because it is often a symlink to the current release.
25898     for ac_dir in          \
25899     /lib/usr/lib/X11       \
25900     /usr/X11/lib           \
25901     /usr/X11R4/lib         \
25902     /usr/X11R5/lib         \
25903     /usr/X11R6/lib         \
25904     /usr/X11R7/lib         \
25905     /usr/X386/lib          \
25906     /usr/XFree86/lib/X11   \
25907     /usr/athena/lib        \
25908     /usr/lib               \
25909     /usr/lib/X11           \
25910     /usr/lib/X11R4         \
25911     /usr/lib/X11R5         \
25912     /usr/lib/X11R6         \
25913     /usr/lib/X11R7         \
25914     /usr/local/X11/lib     \
25915     /usr/local/X11R4/lib   \
25916     /usr/local/X11R5/lib   \
25917     /usr/local/X11R6/lib   \
25918     /usr/local/lib         \
25919     /usr/local/lib/X11     \
25920     /usr/local/lib/X11R4   \
25921     /usr/local/lib/X11R5   \
25922     /usr/local/lib/X11R6   \
25923     /usr/local/lib/X11R7   \
25924     /usr/local/x11r5/lib   \
25925     /usr/lpp/Xamples/lib   \
25926     /usr/openwin/lib       \
25927     /usr/openwin/share/lib \
25928     /usr/unsupported/lib   \
25929     /usr/x386/lib          \
25930     ; do
25931     if test -f "$ac_dir/X11/rgb.txt"; then
25932       im_cv_x_configure="$ac_dir/X11/"
25933       break
25934     elif test -f "$ac_dir/rgb.txt"; then
25935       im_cv_x_configure="$ac_dir/"
25936       break
25937     fi
25938
25939   done
25940 fi
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25942 $as_echo "$im_cv_x_configure" >&6; }
25943 X11_CONFIGURE_PATH="$im_cv_x_configure"
25944 case "${build_os}" in
25945   mingw* )
25946     X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25947   ;;
25948 esac
25949
25950 cat >>confdefs.h <<_ACEOF
25951 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25952 _ACEOF
25953
25954
25955 #
25956 # Find OpenMP library
25957 #
25958 GOMP_LIBS=''
25959 if test "$enable_openmp" != 'no'; then
25960   if test "${GCC}" = "yes"; then
25961     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25962 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25963 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25964   $as_echo_n "(cached) " >&6
25965 else
25966   ac_check_lib_save_LIBS=$LIBS
25967 LIBS="-lgomp  $LIBS"
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h.  */
25970
25971 /* Override any GCC internal prototype to avoid an error.
25972    Use char because int might match the return type of a GCC
25973    builtin and then its argument prototype would still apply.  */
25974 #ifdef __cplusplus
25975 extern "C"
25976 #endif
25977 char GOMP_parallel_start ();
25978 int
25979 main ()
25980 {
25981 return GOMP_parallel_start ();
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 if ac_fn_c_try_link "$LINENO"; then :
25987   ac_cv_lib_gomp_GOMP_parallel_start=yes
25988 else
25989   ac_cv_lib_gomp_GOMP_parallel_start=no
25990 fi
25991 rm -f core conftest.err conftest.$ac_objext \
25992     conftest$ac_exeext conftest.$ac_ext
25993 LIBS=$ac_check_lib_save_LIBS
25994 fi
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25996 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25997 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25998   GOMP_LIBS="-lgomp"
25999 fi
26000   # gcc
26001   else
26002     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
26003 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
26004 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
26005   $as_echo_n "(cached) " >&6
26006 else
26007   ac_check_lib_save_LIBS=$LIBS
26008 LIBS="-lmtsk  $LIBS"
26009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26010 /* end confdefs.h.  */
26011
26012 /* Override any GCC internal prototype to avoid an error.
26013    Use char because int might match the return type of a GCC
26014    builtin and then its argument prototype would still apply.  */
26015 #ifdef __cplusplus
26016 extern "C"
26017 #endif
26018 char sunw_mp_register_warn ();
26019 int
26020 main ()
26021 {
26022 return sunw_mp_register_warn ();
26023   ;
26024   return 0;
26025 }
26026 _ACEOF
26027 if ac_fn_c_try_link "$LINENO"; then :
26028   ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26029 else
26030   ac_cv_lib_mtsk_sunw_mp_register_warn=no
26031 fi
26032 rm -f core conftest.err conftest.$ac_objext \
26033     conftest$ac_exeext conftest.$ac_ext
26034 LIBS=$ac_check_lib_save_LIBS
26035 fi
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
26037 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
26038 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
26039   GOMP_LIBS="-lmtsk"
26040 fi
26041   # solaris cc
26042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
26043 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
26044 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
26045   $as_echo_n "(cached) " >&6
26046 else
26047   ac_check_lib_save_LIBS=$LIBS
26048 LIBS="-lxlsmp  $LIBS"
26049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26050 /* end confdefs.h.  */
26051
26052 /* Override any GCC internal prototype to avoid an error.
26053    Use char because int might match the return type of a GCC
26054    builtin and then its argument prototype would still apply.  */
26055 #ifdef __cplusplus
26056 extern "C"
26057 #endif
26058 char _xlsmpFlush ();
26059 int
26060 main ()
26061 {
26062 return _xlsmpFlush ();
26063   ;
26064   return 0;
26065 }
26066 _ACEOF
26067 if ac_fn_c_try_link "$LINENO"; then :
26068   ac_cv_lib_xlsmp__xlsmpFlush=yes
26069 else
26070   ac_cv_lib_xlsmp__xlsmpFlush=no
26071 fi
26072 rm -f core conftest.err conftest.$ac_objext \
26073     conftest$ac_exeext conftest.$ac_ext
26074 LIBS=$ac_check_lib_save_LIBS
26075 fi
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
26077 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
26078 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
26079   GOMP_LIBS="-lxlsmp"
26080 fi
26081   # AIX xlc
26082     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
26083 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
26084 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
26085   $as_echo_n "(cached) " >&6
26086 else
26087   ac_check_lib_save_LIBS=$LIBS
26088 LIBS="-lmp  $LIBS"
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h.  */
26091
26092 /* Override any GCC internal prototype to avoid an error.
26093    Use char because int might match the return type of a GCC
26094    builtin and then its argument prototype would still apply.  */
26095 #ifdef __cplusplus
26096 extern "C"
26097 #endif
26098 char mp_destroy ();
26099 int
26100 main ()
26101 {
26102 return mp_destroy ();
26103   ;
26104   return 0;
26105 }
26106 _ACEOF
26107 if ac_fn_c_try_link "$LINENO"; then :
26108   ac_cv_lib_mp_mp_destroy=yes
26109 else
26110   ac_cv_lib_mp_mp_destroy=no
26111 fi
26112 rm -f core conftest.err conftest.$ac_objext \
26113     conftest$ac_exeext conftest.$ac_ext
26114 LIBS=$ac_check_lib_save_LIBS
26115 fi
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
26117 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
26118 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
26119   GOMP_LIBS="-lmp"
26120 fi
26121   # SGI IRIX 6.5 MIPSpro C/C++
26122   fi
26123   LIBS="$GOMP_LIBS $LIBS"
26124 fi
26125
26126
26127 #
26128 # Find Posix threads library
26129 #
26130 THREAD_LIBS=''
26131 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26132
26133     if test "x$PTHREAD_LIBS" = "x"; then
26134     case "${host_cpu}-${host_os}" in
26135       *-freebsd*)
26136
26137
26138
26139 ac_ext=c
26140 ac_cpp='$CPP $CPPFLAGS'
26141 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26142 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26143 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26144
26145 magick_pthread_lib_ok=no
26146
26147 LIB=-lc_r
26148 save_LIBS="$LIBS"
26149 LIBS="$LIBS $LIB"
26150
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26152 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
26153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26154 /* end confdefs.h.  */
26155 #include <pthread.h>
26156 int
26157 main ()
26158 {
26159   pthread_t th;
26160   pthread_join(th, 0);
26161   pthread_attr_init(0);
26162   pthread_cleanup_push(0, 0);
26163   pthread_create(0,0,0,0);
26164   pthread_cleanup_pop(0);
26165   ;
26166   return 0;
26167 }
26168 _ACEOF
26169 if ac_fn_c_try_link "$LINENO"; then :
26170   magick_pthread_lib_ok=yes
26171 fi
26172 rm -f core conftest.err conftest.$ac_objext \
26173     conftest$ac_exeext conftest.$ac_ext
26174
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26176 $as_echo "${magick_pthread_lib_ok}" >&6; }
26177 if test "$magick_pthread_lib_ok" = yes
26178 then
26179   PTHREAD_LIBS=-lc_r
26180   :
26181 else
26182
26183   :
26184 fi
26185
26186 LIBS="$save_LIBS"
26187
26188 ac_ext=c
26189 ac_cpp='$CPP $CPPFLAGS'
26190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26193
26194  ;;
26195     esac
26196     fi
26197
26198     for lib in pthread pthreads; do
26199         if test "x$PTHREAD_LIBS" = "x"; then
26200
26201
26202
26203 ac_ext=c
26204 ac_cpp='$CPP $CPPFLAGS'
26205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26208
26209 magick_pthread_lib_ok=no
26210
26211 LIB=-l$lib
26212 save_LIBS="$LIBS"
26213 LIBS="$LIBS $LIB"
26214
26215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26216 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
26217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26218 /* end confdefs.h.  */
26219 #include <pthread.h>
26220 int
26221 main ()
26222 {
26223   pthread_t th;
26224   pthread_join(th, 0);
26225   pthread_attr_init(0);
26226   pthread_cleanup_push(0, 0);
26227   pthread_create(0,0,0,0);
26228   pthread_cleanup_pop(0);
26229   ;
26230   return 0;
26231 }
26232 _ACEOF
26233 if ac_fn_c_try_link "$LINENO"; then :
26234   magick_pthread_lib_ok=yes
26235 fi
26236 rm -f core conftest.err conftest.$ac_objext \
26237     conftest$ac_exeext conftest.$ac_ext
26238
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26240 $as_echo "${magick_pthread_lib_ok}" >&6; }
26241 if test "$magick_pthread_lib_ok" = yes
26242 then
26243   PTHREAD_LIBS=-l$lib
26244   :
26245 else
26246
26247   :
26248 fi
26249
26250 LIBS="$save_LIBS"
26251
26252 ac_ext=c
26253 ac_cpp='$CPP $CPPFLAGS'
26254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26257
26258
26259         fi
26260     done
26261
26262     THREAD_LIBS="$PTHREAD_LIBS"
26263     LIBS="$LIBS $THREAD_LIBS"
26264 fi
26265
26266
26267 #
26268 # Check for umem.
26269 #
26270 have_umem='no'
26271 UMEM_LIBS=''
26272 if test "$with_umem" != 'no'; then
26273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26274 $as_echo_n "checking for UMEM support ... " >&6; }
26275   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26276 $as_echo "$as_me: " >&6;}
26277   failed=0
26278   passed=0
26279   ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26280 if test "x$ac_cv_header_umem_h" = xyes; then :
26281   passed=`expr $passed + 1`
26282 else
26283   failed=`expr $failed + 1`
26284 fi
26285
26286
26287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26288 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26289 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26290   $as_echo_n "(cached) " >&6
26291 else
26292   ac_check_lib_save_LIBS=$LIBS
26293 LIBS="-lumem  $LIBS"
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h.  */
26296
26297 /* Override any GCC internal prototype to avoid an error.
26298    Use char because int might match the return type of a GCC
26299    builtin and then its argument prototype would still apply.  */
26300 #ifdef __cplusplus
26301 extern "C"
26302 #endif
26303 char umem_alloc ();
26304 int
26305 main ()
26306 {
26307 return umem_alloc ();
26308   ;
26309   return 0;
26310 }
26311 _ACEOF
26312 if ac_fn_c_try_link "$LINENO"; then :
26313   ac_cv_lib_umem_umem_alloc=yes
26314 else
26315   ac_cv_lib_umem_umem_alloc=no
26316 fi
26317 rm -f core conftest.err conftest.$ac_objext \
26318     conftest$ac_exeext conftest.$ac_ext
26319 LIBS=$ac_check_lib_save_LIBS
26320 fi
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26322 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26323 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26324   passed=`expr $passed + 1`
26325 else
26326   failed=`expr $failed + 1`
26327 fi
26328
26329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26330 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26331 if ${ac_cv_lib_umem_umem_free+:} false; then :
26332   $as_echo_n "(cached) " >&6
26333 else
26334   ac_check_lib_save_LIBS=$LIBS
26335 LIBS="-lumem  $LIBS"
26336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h.  */
26338
26339 /* Override any GCC internal prototype to avoid an error.
26340    Use char because int might match the return type of a GCC
26341    builtin and then its argument prototype would still apply.  */
26342 #ifdef __cplusplus
26343 extern "C"
26344 #endif
26345 char umem_free ();
26346 int
26347 main ()
26348 {
26349 return umem_free ();
26350   ;
26351   return 0;
26352 }
26353 _ACEOF
26354 if ac_fn_c_try_link "$LINENO"; then :
26355   ac_cv_lib_umem_umem_free=yes
26356 else
26357   ac_cv_lib_umem_umem_free=no
26358 fi
26359 rm -f core conftest.err conftest.$ac_objext \
26360     conftest$ac_exeext conftest.$ac_ext
26361 LIBS=$ac_check_lib_save_LIBS
26362 fi
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26364 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26365 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26366   passed=`expr $passed + 1`
26367 else
26368   failed=`expr $failed + 1`
26369 fi
26370
26371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26372 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26373   if test $passed -gt 0; then
26374     if test $failed -gt 0; then
26375       { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26376 $as_echo "$as_me: no -- some components failed test" >&6;}
26377       have_umem='no (failed tests)'
26378     else
26379       UMEM_LIBS='-lumem'
26380       LIBS="$UMEM_LIBS $LIBS"
26381
26382 $as_echo "#define HasUMEM 1" >>confdefs.h
26383
26384       { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26385 $as_echo "$as_me: yes" >&6;}
26386       have_umem='yes'
26387     fi
26388   else
26389     { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26390 $as_echo "$as_me: no" >&6;}
26391   fi
26392 fi
26393  if test "$have_umem" = 'yes'; then
26394   HasUMEM_TRUE=
26395   HasUMEM_FALSE='#'
26396 else
26397   HasUMEM_TRUE='#'
26398   HasUMEM_FALSE=
26399 fi
26400
26401
26402
26403 #
26404 # Add support for ccmalloc memory debugging library if requested
26405 #
26406 have_ccmalloc='no'
26407 CCMALLOC_LIBS=''
26408 if test "$enable_ccmalloc" = 'yes'; then
26409     # Extract the first word of "ccmalloc", so it can be a program name with args.
26410 set dummy ccmalloc; ac_word=$2
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26412 $as_echo_n "checking for $ac_word... " >&6; }
26413 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26414   $as_echo_n "(cached) " >&6
26415 else
26416   case $CCMALLOCDelegate in
26417   [\\/]* | ?:[\\/]*)
26418   ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26419   ;;
26420   *)
26421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26422 for as_dir in $PATH
26423 do
26424   IFS=$as_save_IFS
26425   test -z "$as_dir" && as_dir=.
26426     for ac_exec_ext in '' $ac_executable_extensions; do
26427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26428     ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26430     break 2
26431   fi
26432 done
26433   done
26434 IFS=$as_save_IFS
26435
26436   ;;
26437 esac
26438 fi
26439 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26440 if test -n "$CCMALLOCDelegate"; then
26441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26442 $as_echo "$CCMALLOCDelegate" >&6; }
26443 else
26444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445 $as_echo "no" >&6; }
26446 fi
26447
26448
26449     if test -n "$CCMALLOCDelegate"; then
26450         eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26451         OLIBS="$LIBS"
26452         # Assume that gcc is used with ccmalloc.
26453         LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26454        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26455 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26456 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26457   $as_echo_n "(cached) " >&6
26458 else
26459   ac_check_lib_save_LIBS=$LIBS
26460 LIBS="-lccmalloc -ldl $LIBS"
26461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h.  */
26463
26464 /* Override any GCC internal prototype to avoid an error.
26465    Use char because int might match the return type of a GCC
26466    builtin and then its argument prototype would still apply.  */
26467 #ifdef __cplusplus
26468 extern "C"
26469 #endif
26470 char ccmalloc_malloc ();
26471 int
26472 main ()
26473 {
26474 return ccmalloc_malloc ();
26475   ;
26476   return 0;
26477 }
26478 _ACEOF
26479 if ac_fn_c_try_link "$LINENO"; then :
26480   ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26481 else
26482   ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26483 fi
26484 rm -f core conftest.err conftest.$ac_objext \
26485     conftest$ac_exeext conftest.$ac_ext
26486 LIBS=$ac_check_lib_save_LIBS
26487 fi
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26489 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26490 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26491   CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26492 fi
26493
26494         if test -n "$CCMALLOC_LIBS"; then
26495             LIBS="$OLIBS"
26496             LIBS="$LIBS $CCMALLOC_LIBS"
26497             have_ccmalloc='yes'
26498         else
26499             LIBS="$OLIBS"
26500         fi
26501     fi
26502 fi
26503
26504 #
26505 # Add support for efence memory debugging library if requested
26506 #
26507 if test "$enable_efence" = 'yes'; then
26508     EFENCE_LIBS='-lefence'
26509     LIBS="$EFENCE_LIBS $LIBS"
26510 fi
26511
26512
26513 #
26514 # Check for BZLIB
26515 #
26516
26517
26518 # Check whether --with-bzlib was given.
26519 if test "${with_bzlib+set}" = set; then :
26520   withval=$with_bzlib; with_bzlib=$withval
26521 else
26522   with_bzlib='yes'
26523 fi
26524
26525
26526 if test "$with_bzlib" != 'yes'; then
26527     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26528 fi
26529
26530 have_bzlib='no'
26531 if test "$with_bzlib" != 'no'; then
26532     BZLIB_LIBS=''
26533     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26534 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
26535     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26536 $as_echo_n "checking for BZLIB... " >&6; }
26537     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26538 $as_echo "$as_me: " >&6;}
26539     failed=0
26540     passed=0
26541     found_libbz=0
26542     ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26543 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26544   passed=`expr $passed + 1`
26545 else
26546   failed=`expr $failed + 1`
26547 fi
26548
26549
26550     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26551 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26552 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26553   $as_echo_n "(cached) " >&6
26554 else
26555   ac_check_lib_save_LIBS=$LIBS
26556 LIBS="-lbz2  $LIBS"
26557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26558 /* end confdefs.h.  */
26559
26560 /* Override any GCC internal prototype to avoid an error.
26561    Use char because int might match the return type of a GCC
26562    builtin and then its argument prototype would still apply.  */
26563 #ifdef __cplusplus
26564 extern "C"
26565 #endif
26566 char BZ2_bzDecompress ();
26567 int
26568 main ()
26569 {
26570 return BZ2_bzDecompress ();
26571   ;
26572   return 0;
26573 }
26574 _ACEOF
26575 if ac_fn_c_try_link "$LINENO"; then :
26576   ac_cv_lib_bz2_BZ2_bzDecompress=yes
26577 else
26578   ac_cv_lib_bz2_BZ2_bzDecompress=no
26579 fi
26580 rm -f core conftest.err conftest.$ac_objext \
26581     conftest$ac_exeext conftest.$ac_ext
26582 LIBS=$ac_check_lib_save_LIBS
26583 fi
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26585 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26586 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26587   found_libbz=`expr $found_libbz + 1`
26588 fi
26589
26590     if test "$native_win32_build" = 'yes'; then
26591       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26592 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26593 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26594   $as_echo_n "(cached) " >&6
26595 else
26596   ac_check_lib_save_LIBS=$LIBS
26597 LIBS="-lbz2  $LIBS"
26598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26599 /* end confdefs.h.  */
26600
26601 /* Override any GCC internal prototype to avoid an error.
26602    Use char because int might match the return type of a GCC
26603    builtin and then its argument prototype would still apply.  */
26604 #ifdef __cplusplus
26605 extern "C"
26606 #endif
26607 char _imp__BZ2_decompress ();
26608 int
26609 main ()
26610 {
26611 return _imp__BZ2_decompress ();
26612   ;
26613   return 0;
26614 }
26615 _ACEOF
26616 if ac_fn_c_try_link "$LINENO"; then :
26617   ac_cv_lib_bz2__imp__BZ2_decompress=yes
26618 else
26619   ac_cv_lib_bz2__imp__BZ2_decompress=no
26620 fi
26621 rm -f core conftest.err conftest.$ac_objext \
26622     conftest$ac_exeext conftest.$ac_ext
26623 LIBS=$ac_check_lib_save_LIBS
26624 fi
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26626 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26627 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26628   found_libbz=`expr $found_libbz + 1`
26629 fi
26630
26631     fi
26632     if test $found_libbz -gt 0; then
26633       passed=`expr $passed + 1`
26634     else
26635       failed=`expr $failed + 1`
26636     fi
26637     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26638 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26639     if test $passed -gt 0; then
26640       if test $failed -gt 0; then
26641         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26642 $as_echo "$as_me: no -- some components failed test" >&6;}
26643         have_bzlib='no (failed tests)'
26644       else
26645         BZLIB_LIBS='-lbz2'
26646         LIBS="$BZLIB_LIBS $LIBS"
26647
26648 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26649
26650         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26651 $as_echo "$as_me: yes" >&6;}
26652         have_bzlib='yes'
26653       fi
26654     else
26655       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26656 $as_echo "$as_me: no" >&6;}
26657     fi
26658 fi
26659  if test "$have_bzlib" = 'yes'; then
26660   BZLIB_DELEGATE_TRUE=
26661   BZLIB_DELEGATE_FALSE='#'
26662 else
26663   BZLIB_DELEGATE_TRUE='#'
26664   BZLIB_DELEGATE_FALSE=
26665 fi
26666
26667
26668
26669 #
26670 # Find the X11 include and library directories.
26671 #
26672 IPC_LIBS=''
26673 X11_LIBS=''
26674 XEXT_LIBS=''
26675 XT_LIBS=''
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26677 $as_echo_n "checking for X... " >&6; }
26678
26679
26680 # Check whether --with-x was given.
26681 if test "${with_x+set}" = set; then :
26682   withval=$with_x;
26683 fi
26684
26685 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26686 if test "x$with_x" = xno; then
26687   # The user explicitly disabled X.
26688   have_x=disabled
26689 else
26690   case $x_includes,$x_libraries in #(
26691     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26692     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26693   $as_echo_n "(cached) " >&6
26694 else
26695   # One or both of the vars are not set, and there is no cached value.
26696 ac_x_includes=no ac_x_libraries=no
26697 rm -f -r conftest.dir
26698 if mkdir conftest.dir; then
26699   cd conftest.dir
26700   cat >Imakefile <<'_ACEOF'
26701 incroot:
26702         @echo incroot='${INCROOT}'
26703 usrlibdir:
26704         @echo usrlibdir='${USRLIBDIR}'
26705 libdir:
26706         @echo libdir='${LIBDIR}'
26707 _ACEOF
26708   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26709     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26710     for ac_var in incroot usrlibdir libdir; do
26711       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26712     done
26713     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26714     for ac_extension in a so sl dylib la dll; do
26715       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26716          test -f "$ac_im_libdir/libX11.$ac_extension"; then
26717         ac_im_usrlibdir=$ac_im_libdir; break
26718       fi
26719     done
26720     # Screen out bogus values from the imake configuration.  They are
26721     # bogus both because they are the default anyway, and because
26722     # using them would break gcc on systems where it needs fixed includes.
26723     case $ac_im_incroot in
26724         /usr/include) ac_x_includes= ;;
26725         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26726     esac
26727     case $ac_im_usrlibdir in
26728         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26729         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26730     esac
26731   fi
26732   cd ..
26733   rm -f -r conftest.dir
26734 fi
26735
26736 # Standard set of common directories for X headers.
26737 # Check X11 before X11Rn because it is often a symlink to the current release.
26738 ac_x_header_dirs='
26739 /usr/X11/include
26740 /usr/X11R7/include
26741 /usr/X11R6/include
26742 /usr/X11R5/include
26743 /usr/X11R4/include
26744
26745 /usr/include/X11
26746 /usr/include/X11R7
26747 /usr/include/X11R6
26748 /usr/include/X11R5
26749 /usr/include/X11R4
26750
26751 /usr/local/X11/include
26752 /usr/local/X11R7/include
26753 /usr/local/X11R6/include
26754 /usr/local/X11R5/include
26755 /usr/local/X11R4/include
26756
26757 /usr/local/include/X11
26758 /usr/local/include/X11R7
26759 /usr/local/include/X11R6
26760 /usr/local/include/X11R5
26761 /usr/local/include/X11R4
26762
26763 /usr/X386/include
26764 /usr/x386/include
26765 /usr/XFree86/include/X11
26766
26767 /usr/include
26768 /usr/local/include
26769 /usr/unsupported/include
26770 /usr/athena/include
26771 /usr/local/x11r5/include
26772 /usr/lpp/Xamples/include
26773
26774 /usr/openwin/include
26775 /usr/openwin/share/include'
26776
26777 if test "$ac_x_includes" = no; then
26778   # Guess where to find include files, by looking for Xlib.h.
26779   # First, try using that file with no special directory specified.
26780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h.  */
26782 #include <X11/Xlib.h>
26783 _ACEOF
26784 if ac_fn_c_try_cpp "$LINENO"; then :
26785   # We can compile using X headers with no special include directory.
26786 ac_x_includes=
26787 else
26788   for ac_dir in $ac_x_header_dirs; do
26789   if test -r "$ac_dir/X11/Xlib.h"; then
26790     ac_x_includes=$ac_dir
26791     break
26792   fi
26793 done
26794 fi
26795 rm -f conftest.err conftest.i conftest.$ac_ext
26796 fi # $ac_x_includes = no
26797
26798 if test "$ac_x_libraries" = no; then
26799   # Check for the libraries.
26800   # See if we find them without any special options.
26801   # Don't add to $LIBS permanently.
26802   ac_save_LIBS=$LIBS
26803   LIBS="-lX11 $LIBS"
26804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h.  */
26806 #include <X11/Xlib.h>
26807 int
26808 main ()
26809 {
26810 XrmInitialize ()
26811   ;
26812   return 0;
26813 }
26814 _ACEOF
26815 if ac_fn_c_try_link "$LINENO"; then :
26816   LIBS=$ac_save_LIBS
26817 # We can link X programs with no special library path.
26818 ac_x_libraries=
26819 else
26820   LIBS=$ac_save_LIBS
26821 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26822 do
26823   # Don't even attempt the hair of trying to link an X program!
26824   for ac_extension in a so sl dylib la dll; do
26825     if test -r "$ac_dir/libX11.$ac_extension"; then
26826       ac_x_libraries=$ac_dir
26827       break 2
26828     fi
26829   done
26830 done
26831 fi
26832 rm -f core conftest.err conftest.$ac_objext \
26833     conftest$ac_exeext conftest.$ac_ext
26834 fi # $ac_x_libraries = no
26835
26836 case $ac_x_includes,$ac_x_libraries in #(
26837   no,* | *,no | *\'*)
26838     # Didn't find X, or a directory has "'" in its name.
26839     ac_cv_have_x="have_x=no";; #(
26840   *)
26841     # Record where we found X for the cache.
26842     ac_cv_have_x="have_x=yes\
26843         ac_x_includes='$ac_x_includes'\
26844         ac_x_libraries='$ac_x_libraries'"
26845 esac
26846 fi
26847 ;; #(
26848     *) have_x=yes;;
26849   esac
26850   eval "$ac_cv_have_x"
26851 fi # $with_x != no
26852
26853 if test "$have_x" != yes; then
26854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26855 $as_echo "$have_x" >&6; }
26856   no_x=yes
26857 else
26858   # If each of the values was on the command line, it overrides each guess.
26859   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26860   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26861   # Update the cache value to reflect the command line values.
26862   ac_cv_have_x="have_x=yes\
26863         ac_x_includes='$x_includes'\
26864         ac_x_libraries='$x_libraries'"
26865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26866 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26867 fi
26868
26869 if test "$no_x" = yes; then
26870   # Not all programs may use this symbol, but it does not hurt to define it.
26871
26872 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26873
26874   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26875 else
26876   if test -n "$x_includes"; then
26877     X_CFLAGS="$X_CFLAGS -I$x_includes"
26878   fi
26879
26880   # It would also be nice to do this for all -L options, not just this one.
26881   if test -n "$x_libraries"; then
26882     X_LIBS="$X_LIBS -L$x_libraries"
26883     # For Solaris; some versions of Sun CC require a space after -R and
26884     # others require no space.  Words are not sufficient . . . .
26885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26886 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26887     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26888     ac_xsave_c_werror_flag=$ac_c_werror_flag
26889     ac_c_werror_flag=yes
26890     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26891 /* end confdefs.h.  */
26892
26893 int
26894 main ()
26895 {
26896
26897   ;
26898   return 0;
26899 }
26900 _ACEOF
26901 if ac_fn_c_try_link "$LINENO"; then :
26902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26903 $as_echo "no" >&6; }
26904        X_LIBS="$X_LIBS -R$x_libraries"
26905 else
26906   LIBS="$ac_xsave_LIBS -R $x_libraries"
26907        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h.  */
26909
26910 int
26911 main ()
26912 {
26913
26914   ;
26915   return 0;
26916 }
26917 _ACEOF
26918 if ac_fn_c_try_link "$LINENO"; then :
26919   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26920 $as_echo "yes" >&6; }
26921           X_LIBS="$X_LIBS -R $x_libraries"
26922 else
26923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26924 $as_echo "neither works" >&6; }
26925 fi
26926 rm -f core conftest.err conftest.$ac_objext \
26927     conftest$ac_exeext conftest.$ac_ext
26928 fi
26929 rm -f core conftest.err conftest.$ac_objext \
26930     conftest$ac_exeext conftest.$ac_ext
26931     ac_c_werror_flag=$ac_xsave_c_werror_flag
26932     LIBS=$ac_xsave_LIBS
26933   fi
26934
26935   # Check for system-dependent libraries X programs must link with.
26936   # Do this before checking for the system-independent R6 libraries
26937   # (-lICE), since we may need -lsocket or whatever for X linking.
26938
26939   if test "$ISC" = yes; then
26940     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26941   else
26942     # Martyn Johnson says this is needed for Ultrix, if the X
26943     # libraries were built with DECnet support.  And Karl Berry says
26944     # the Alpha needs dnet_stub (dnet does not exist).
26945     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26946     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h.  */
26948
26949 /* Override any GCC internal prototype to avoid an error.
26950    Use char because int might match the return type of a GCC
26951    builtin and then its argument prototype would still apply.  */
26952 #ifdef __cplusplus
26953 extern "C"
26954 #endif
26955 char XOpenDisplay ();
26956 int
26957 main ()
26958 {
26959 return XOpenDisplay ();
26960   ;
26961   return 0;
26962 }
26963 _ACEOF
26964 if ac_fn_c_try_link "$LINENO"; then :
26965
26966 else
26967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26968 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26969 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26970   $as_echo_n "(cached) " >&6
26971 else
26972   ac_check_lib_save_LIBS=$LIBS
26973 LIBS="-ldnet  $LIBS"
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h.  */
26976
26977 /* Override any GCC internal prototype to avoid an error.
26978    Use char because int might match the return type of a GCC
26979    builtin and then its argument prototype would still apply.  */
26980 #ifdef __cplusplus
26981 extern "C"
26982 #endif
26983 char dnet_ntoa ();
26984 int
26985 main ()
26986 {
26987 return dnet_ntoa ();
26988   ;
26989   return 0;
26990 }
26991 _ACEOF
26992 if ac_fn_c_try_link "$LINENO"; then :
26993   ac_cv_lib_dnet_dnet_ntoa=yes
26994 else
26995   ac_cv_lib_dnet_dnet_ntoa=no
26996 fi
26997 rm -f core conftest.err conftest.$ac_objext \
26998     conftest$ac_exeext conftest.$ac_ext
26999 LIBS=$ac_check_lib_save_LIBS
27000 fi
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
27002 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
27003 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
27004   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27005 fi
27006
27007     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
27008       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
27009 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
27010 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
27011   $as_echo_n "(cached) " >&6
27012 else
27013   ac_check_lib_save_LIBS=$LIBS
27014 LIBS="-ldnet_stub  $LIBS"
27015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27016 /* end confdefs.h.  */
27017
27018 /* Override any GCC internal prototype to avoid an error.
27019    Use char because int might match the return type of a GCC
27020    builtin and then its argument prototype would still apply.  */
27021 #ifdef __cplusplus
27022 extern "C"
27023 #endif
27024 char dnet_ntoa ();
27025 int
27026 main ()
27027 {
27028 return dnet_ntoa ();
27029   ;
27030   return 0;
27031 }
27032 _ACEOF
27033 if ac_fn_c_try_link "$LINENO"; then :
27034   ac_cv_lib_dnet_stub_dnet_ntoa=yes
27035 else
27036   ac_cv_lib_dnet_stub_dnet_ntoa=no
27037 fi
27038 rm -f core conftest.err conftest.$ac_objext \
27039     conftest$ac_exeext conftest.$ac_ext
27040 LIBS=$ac_check_lib_save_LIBS
27041 fi
27042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
27043 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
27044 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
27045   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27046 fi
27047
27048     fi
27049 fi
27050 rm -f core conftest.err conftest.$ac_objext \
27051     conftest$ac_exeext conftest.$ac_ext
27052     LIBS="$ac_xsave_LIBS"
27053
27054     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27055     # to get the SysV transport functions.
27056     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27057     # needs -lnsl.
27058     # The nsl library prevents programs from opening the X display
27059     # on Irix 5.2, according to T.E. Dickey.
27060     # The functions gethostbyname, getservbyname, and inet_addr are
27061     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
27062     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
27063 if test "x$ac_cv_func_gethostbyname" = xyes; then :
27064
27065 fi
27066
27067     if test $ac_cv_func_gethostbyname = no; then
27068       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
27069 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
27070 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
27071   $as_echo_n "(cached) " >&6
27072 else
27073   ac_check_lib_save_LIBS=$LIBS
27074 LIBS="-lnsl  $LIBS"
27075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27076 /* end confdefs.h.  */
27077
27078 /* Override any GCC internal prototype to avoid an error.
27079    Use char because int might match the return type of a GCC
27080    builtin and then its argument prototype would still apply.  */
27081 #ifdef __cplusplus
27082 extern "C"
27083 #endif
27084 char gethostbyname ();
27085 int
27086 main ()
27087 {
27088 return gethostbyname ();
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 if ac_fn_c_try_link "$LINENO"; then :
27094   ac_cv_lib_nsl_gethostbyname=yes
27095 else
27096   ac_cv_lib_nsl_gethostbyname=no
27097 fi
27098 rm -f core conftest.err conftest.$ac_objext \
27099     conftest$ac_exeext conftest.$ac_ext
27100 LIBS=$ac_check_lib_save_LIBS
27101 fi
27102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
27103 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
27104 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
27105   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27106 fi
27107
27108       if test $ac_cv_lib_nsl_gethostbyname = no; then
27109         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
27110 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
27111 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
27112   $as_echo_n "(cached) " >&6
27113 else
27114   ac_check_lib_save_LIBS=$LIBS
27115 LIBS="-lbsd  $LIBS"
27116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27117 /* end confdefs.h.  */
27118
27119 /* Override any GCC internal prototype to avoid an error.
27120    Use char because int might match the return type of a GCC
27121    builtin and then its argument prototype would still apply.  */
27122 #ifdef __cplusplus
27123 extern "C"
27124 #endif
27125 char gethostbyname ();
27126 int
27127 main ()
27128 {
27129 return gethostbyname ();
27130   ;
27131   return 0;
27132 }
27133 _ACEOF
27134 if ac_fn_c_try_link "$LINENO"; then :
27135   ac_cv_lib_bsd_gethostbyname=yes
27136 else
27137   ac_cv_lib_bsd_gethostbyname=no
27138 fi
27139 rm -f core conftest.err conftest.$ac_objext \
27140     conftest$ac_exeext conftest.$ac_ext
27141 LIBS=$ac_check_lib_save_LIBS
27142 fi
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
27144 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
27145 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
27146   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27147 fi
27148
27149       fi
27150     fi
27151
27152     # lieder@skyler.mavd.honeywell.com says without -lsocket,
27153     # socket/setsockopt and other routines are undefined under SCO ODT
27154     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
27155     # on later versions), says Simon Leinen: it contains gethostby*
27156     # variants that don't use the name server (or something).  -lsocket
27157     # must be given before -lnsl if both are needed.  We assume that
27158     # if connect needs -lnsl, so does gethostbyname.
27159     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
27160 if test "x$ac_cv_func_connect" = xyes; then :
27161
27162 fi
27163
27164     if test $ac_cv_func_connect = no; then
27165       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
27166 $as_echo_n "checking for connect in -lsocket... " >&6; }
27167 if ${ac_cv_lib_socket_connect+:} false; then :
27168   $as_echo_n "(cached) " >&6
27169 else
27170   ac_check_lib_save_LIBS=$LIBS
27171 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
27172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27173 /* end confdefs.h.  */
27174
27175 /* Override any GCC internal prototype to avoid an error.
27176    Use char because int might match the return type of a GCC
27177    builtin and then its argument prototype would still apply.  */
27178 #ifdef __cplusplus
27179 extern "C"
27180 #endif
27181 char connect ();
27182 int
27183 main ()
27184 {
27185 return connect ();
27186   ;
27187   return 0;
27188 }
27189 _ACEOF
27190 if ac_fn_c_try_link "$LINENO"; then :
27191   ac_cv_lib_socket_connect=yes
27192 else
27193   ac_cv_lib_socket_connect=no
27194 fi
27195 rm -f core conftest.err conftest.$ac_objext \
27196     conftest$ac_exeext conftest.$ac_ext
27197 LIBS=$ac_check_lib_save_LIBS
27198 fi
27199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
27200 $as_echo "$ac_cv_lib_socket_connect" >&6; }
27201 if test "x$ac_cv_lib_socket_connect" = xyes; then :
27202   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27203 fi
27204
27205     fi
27206
27207     # Guillermo Gomez says -lposix is necessary on A/UX.
27208     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
27209 if test "x$ac_cv_func_remove" = xyes; then :
27210
27211 fi
27212
27213     if test $ac_cv_func_remove = no; then
27214       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
27215 $as_echo_n "checking for remove in -lposix... " >&6; }
27216 if ${ac_cv_lib_posix_remove+:} false; then :
27217   $as_echo_n "(cached) " >&6
27218 else
27219   ac_check_lib_save_LIBS=$LIBS
27220 LIBS="-lposix  $LIBS"
27221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27222 /* end confdefs.h.  */
27223
27224 /* Override any GCC internal prototype to avoid an error.
27225    Use char because int might match the return type of a GCC
27226    builtin and then its argument prototype would still apply.  */
27227 #ifdef __cplusplus
27228 extern "C"
27229 #endif
27230 char remove ();
27231 int
27232 main ()
27233 {
27234 return remove ();
27235   ;
27236   return 0;
27237 }
27238 _ACEOF
27239 if ac_fn_c_try_link "$LINENO"; then :
27240   ac_cv_lib_posix_remove=yes
27241 else
27242   ac_cv_lib_posix_remove=no
27243 fi
27244 rm -f core conftest.err conftest.$ac_objext \
27245     conftest$ac_exeext conftest.$ac_ext
27246 LIBS=$ac_check_lib_save_LIBS
27247 fi
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27249 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27250 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27251   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27252 fi
27253
27254     fi
27255
27256     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27257     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27258 if test "x$ac_cv_func_shmat" = xyes; then :
27259
27260 fi
27261
27262     if test $ac_cv_func_shmat = no; then
27263       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27264 $as_echo_n "checking for shmat in -lipc... " >&6; }
27265 if ${ac_cv_lib_ipc_shmat+:} false; then :
27266   $as_echo_n "(cached) " >&6
27267 else
27268   ac_check_lib_save_LIBS=$LIBS
27269 LIBS="-lipc  $LIBS"
27270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27271 /* end confdefs.h.  */
27272
27273 /* Override any GCC internal prototype to avoid an error.
27274    Use char because int might match the return type of a GCC
27275    builtin and then its argument prototype would still apply.  */
27276 #ifdef __cplusplus
27277 extern "C"
27278 #endif
27279 char shmat ();
27280 int
27281 main ()
27282 {
27283 return shmat ();
27284   ;
27285   return 0;
27286 }
27287 _ACEOF
27288 if ac_fn_c_try_link "$LINENO"; then :
27289   ac_cv_lib_ipc_shmat=yes
27290 else
27291   ac_cv_lib_ipc_shmat=no
27292 fi
27293 rm -f core conftest.err conftest.$ac_objext \
27294     conftest$ac_exeext conftest.$ac_ext
27295 LIBS=$ac_check_lib_save_LIBS
27296 fi
27297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27298 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27299 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27300   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27301 fi
27302
27303     fi
27304   fi
27305
27306   # Check for libraries that X11R6 Xt/Xaw programs need.
27307   ac_save_LDFLAGS=$LDFLAGS
27308   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27309   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27310   # check for ICE first), but we must link in the order -lSM -lICE or
27311   # we get undefined symbols.  So assume we have SM if we have ICE.
27312   # These have to be linked with before -lX11, unlike the other
27313   # libraries we check for below, so use a different variable.
27314   # John Interrante, Karl Berry
27315   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27316 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27317 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27318   $as_echo_n "(cached) " >&6
27319 else
27320   ac_check_lib_save_LIBS=$LIBS
27321 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27323 /* end confdefs.h.  */
27324
27325 /* Override any GCC internal prototype to avoid an error.
27326    Use char because int might match the return type of a GCC
27327    builtin and then its argument prototype would still apply.  */
27328 #ifdef __cplusplus
27329 extern "C"
27330 #endif
27331 char IceConnectionNumber ();
27332 int
27333 main ()
27334 {
27335 return IceConnectionNumber ();
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 if ac_fn_c_try_link "$LINENO"; then :
27341   ac_cv_lib_ICE_IceConnectionNumber=yes
27342 else
27343   ac_cv_lib_ICE_IceConnectionNumber=no
27344 fi
27345 rm -f core conftest.err conftest.$ac_objext \
27346     conftest$ac_exeext conftest.$ac_ext
27347 LIBS=$ac_check_lib_save_LIBS
27348 fi
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27350 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27351 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27352   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27353 fi
27354
27355   LDFLAGS=$ac_save_LDFLAGS
27356
27357 fi
27358
27359 if test "$no_x" != 'yes'; then
27360     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27361 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
27362     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27363 $as_echo_n "checking for X11... " >&6; }
27364     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27365 $as_echo "$as_me: " >&6;}
27366     LDFLAGS="$LDFLAGS $X_LIBS"
27367     X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27368     LIBS="$X11_LIBS $LIBS"
27369     CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27370
27371
27372 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27373
27374     #
27375     # Check for X11 shared memory extension
27376     #
27377     # shmctl is required to support the shared memory extension
27378     ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27379 if test "x$ac_cv_func_shmctl" = xyes; then :
27380   have_shmctl='yes'
27381 fi
27382
27383     if test "$have_shmctl" != 'yes'; then
27384         PERSIST_LIBS=$LIBS
27385         LIBS="$LIBS -lcygipc"
27386         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h.  */
27388
27389 /* Override any GCC internal prototype to avoid an error.
27390    Use char because int might match the return type of a GCC
27391    builtin and then its argument prototype would still apply.  */
27392 #ifdef __cplusplus
27393 extern "C"
27394 #endif
27395 char shmctl ();
27396 int
27397 main ()
27398 {
27399 return shmctl ();
27400   ;
27401   return 0;
27402 }
27403 _ACEOF
27404 if ac_fn_c_try_link "$LINENO"; then :
27405   have_shmctl='yes'; IPC_LIBS='-lcygipc'
27406 fi
27407 rm -f core conftest.err conftest.$ac_objext \
27408     conftest$ac_exeext conftest.$ac_ext
27409         LIBS=$PERSIST_LIBS
27410     fi
27411
27412     if test "$have_shmctl" = 'yes'; then
27413         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27414 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27415 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27416   $as_echo_n "(cached) " >&6
27417 else
27418   ac_check_lib_save_LIBS=$LIBS
27419 LIBS="-lXext  $LIBS"
27420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27421 /* end confdefs.h.  */
27422
27423 /* Override any GCC internal prototype to avoid an error.
27424    Use char because int might match the return type of a GCC
27425    builtin and then its argument prototype would still apply.  */
27426 #ifdef __cplusplus
27427 extern "C"
27428 #endif
27429 char XShmAttach ();
27430 int
27431 main ()
27432 {
27433 return XShmAttach ();
27434   ;
27435   return 0;
27436 }
27437 _ACEOF
27438 if ac_fn_c_try_link "$LINENO"; then :
27439   ac_cv_lib_Xext_XShmAttach=yes
27440 else
27441   ac_cv_lib_Xext_XShmAttach=no
27442 fi
27443 rm -f core conftest.err conftest.$ac_objext \
27444     conftest$ac_exeext conftest.$ac_ext
27445 LIBS=$ac_check_lib_save_LIBS
27446 fi
27447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27448 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27449 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27450   XEXT_LIBS='-lXext' ;
27451 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27452
27453 fi
27454
27455     fi
27456
27457     #
27458     # Check for X11 shape extension
27459     #
27460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27461 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27462 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27463   $as_echo_n "(cached) " >&6
27464 else
27465   ac_check_lib_save_LIBS=$LIBS
27466 LIBS="-lXext  $LIBS"
27467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27468 /* end confdefs.h.  */
27469
27470 /* Override any GCC internal prototype to avoid an error.
27471    Use char because int might match the return type of a GCC
27472    builtin and then its argument prototype would still apply.  */
27473 #ifdef __cplusplus
27474 extern "C"
27475 #endif
27476 char XShapeCombineMask ();
27477 int
27478 main ()
27479 {
27480 return XShapeCombineMask ();
27481   ;
27482   return 0;
27483 }
27484 _ACEOF
27485 if ac_fn_c_try_link "$LINENO"; then :
27486   ac_cv_lib_Xext_XShapeCombineMask=yes
27487 else
27488   ac_cv_lib_Xext_XShapeCombineMask=no
27489 fi
27490 rm -f core conftest.err conftest.$ac_objext \
27491     conftest$ac_exeext conftest.$ac_ext
27492 LIBS=$ac_check_lib_save_LIBS
27493 fi
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27495 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27496 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27497   XEXT_LIBS='-lXext' ;
27498 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27499
27500 fi
27501
27502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27503 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27504 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27505   $as_echo_n "(cached) " >&6
27506 else
27507   ac_check_lib_save_LIBS=$LIBS
27508 LIBS="-lXt  $LIBS"
27509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27510 /* end confdefs.h.  */
27511
27512 /* Override any GCC internal prototype to avoid an error.
27513    Use char because int might match the return type of a GCC
27514    builtin and then its argument prototype would still apply.  */
27515 #ifdef __cplusplus
27516 extern "C"
27517 #endif
27518 char XtSetEventDispatcher ();
27519 int
27520 main ()
27521 {
27522 return XtSetEventDispatcher ();
27523   ;
27524   return 0;
27525 }
27526 _ACEOF
27527 if ac_fn_c_try_link "$LINENO"; then :
27528   ac_cv_lib_Xt_XtSetEventDispatcher=yes
27529 else
27530   ac_cv_lib_Xt_XtSetEventDispatcher=no
27531 fi
27532 rm -f core conftest.err conftest.$ac_objext \
27533     conftest$ac_exeext conftest.$ac_ext
27534 LIBS=$ac_check_lib_save_LIBS
27535 fi
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27537 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27538 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27539   XT_LIBS='-lXt'
27540 fi
27541
27542     LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27543 fi
27544 if test "$no_x" != 'yes'; then
27545   have_x='yes'
27546 else
27547   have_x='no'
27548 fi
27549  if test "$have_x" = 'yes'; then
27550   X11_DELEGATE_TRUE=
27551   X11_DELEGATE_FALSE='#'
27552 else
27553   X11_DELEGATE_TRUE='#'
27554   X11_DELEGATE_FALSE=
27555 fi
27556
27557
27558
27559
27560
27561 #
27562 # Check for ZLIB
27563 #
27564
27565 # Check whether --with-zlib was given.
27566 if test "${with_zlib+set}" = set; then :
27567   withval=$with_zlib; with_zlib=$withval
27568 else
27569   with_zlib='yes'
27570 fi
27571
27572
27573 if test "$with_zlib" != 'yes'; then
27574     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27575 fi
27576
27577 have_zlib='no'
27578 ZLIB_LIBS=''
27579 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27580     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27581 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
27582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27583 $as_echo_n "checking for ZLIB... " >&6; }
27584     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27585 $as_echo "$as_me: " >&6;}
27586     ZLIB_LIBS=''
27587     failed=0
27588     passed=0
27589     ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27590 if test "x$ac_cv_header_zconf_h" = xyes; then :
27591   passed=`expr $passed + 1`
27592 else
27593   failed=`expr $failed + 1`
27594 fi
27595
27596
27597     ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27598 if test "x$ac_cv_header_zlib_h" = xyes; then :
27599   passed=`expr $passed + 1`
27600 else
27601   failed=`expr $failed + 1`
27602 fi
27603
27604
27605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27606 $as_echo_n "checking for compress in -lz... " >&6; }
27607 if ${ac_cv_lib_z_compress+:} false; then :
27608   $as_echo_n "(cached) " >&6
27609 else
27610   ac_check_lib_save_LIBS=$LIBS
27611 LIBS="-lz  $LIBS"
27612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27613 /* end confdefs.h.  */
27614
27615 /* Override any GCC internal prototype to avoid an error.
27616    Use char because int might match the return type of a GCC
27617    builtin and then its argument prototype would still apply.  */
27618 #ifdef __cplusplus
27619 extern "C"
27620 #endif
27621 char compress ();
27622 int
27623 main ()
27624 {
27625 return compress ();
27626   ;
27627   return 0;
27628 }
27629 _ACEOF
27630 if ac_fn_c_try_link "$LINENO"; then :
27631   ac_cv_lib_z_compress=yes
27632 else
27633   ac_cv_lib_z_compress=no
27634 fi
27635 rm -f core conftest.err conftest.$ac_objext \
27636     conftest$ac_exeext conftest.$ac_ext
27637 LIBS=$ac_check_lib_save_LIBS
27638 fi
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27640 $as_echo "$ac_cv_lib_z_compress" >&6; }
27641 if test "x$ac_cv_lib_z_compress" = xyes; then :
27642   passed=`expr $passed + 1`
27643 else
27644   failed=`expr $failed + 1`
27645 fi
27646
27647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27648 $as_echo_n "checking for uncompress in -lz... " >&6; }
27649 if ${ac_cv_lib_z_uncompress+:} false; then :
27650   $as_echo_n "(cached) " >&6
27651 else
27652   ac_check_lib_save_LIBS=$LIBS
27653 LIBS="-lz  $LIBS"
27654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27655 /* end confdefs.h.  */
27656
27657 /* Override any GCC internal prototype to avoid an error.
27658    Use char because int might match the return type of a GCC
27659    builtin and then its argument prototype would still apply.  */
27660 #ifdef __cplusplus
27661 extern "C"
27662 #endif
27663 char uncompress ();
27664 int
27665 main ()
27666 {
27667 return uncompress ();
27668   ;
27669   return 0;
27670 }
27671 _ACEOF
27672 if ac_fn_c_try_link "$LINENO"; then :
27673   ac_cv_lib_z_uncompress=yes
27674 else
27675   ac_cv_lib_z_uncompress=no
27676 fi
27677 rm -f core conftest.err conftest.$ac_objext \
27678     conftest$ac_exeext conftest.$ac_ext
27679 LIBS=$ac_check_lib_save_LIBS
27680 fi
27681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27682 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27683 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27684   passed=`expr $passed + 1`
27685 else
27686   failed=`expr $failed + 1`
27687 fi
27688
27689     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27690 $as_echo_n "checking for deflate in -lz... " >&6; }
27691 if ${ac_cv_lib_z_deflate+:} false; then :
27692   $as_echo_n "(cached) " >&6
27693 else
27694   ac_check_lib_save_LIBS=$LIBS
27695 LIBS="-lz  $LIBS"
27696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27697 /* end confdefs.h.  */
27698
27699 /* Override any GCC internal prototype to avoid an error.
27700    Use char because int might match the return type of a GCC
27701    builtin and then its argument prototype would still apply.  */
27702 #ifdef __cplusplus
27703 extern "C"
27704 #endif
27705 char deflate ();
27706 int
27707 main ()
27708 {
27709 return deflate ();
27710   ;
27711   return 0;
27712 }
27713 _ACEOF
27714 if ac_fn_c_try_link "$LINENO"; then :
27715   ac_cv_lib_z_deflate=yes
27716 else
27717   ac_cv_lib_z_deflate=no
27718 fi
27719 rm -f core conftest.err conftest.$ac_objext \
27720     conftest$ac_exeext conftest.$ac_ext
27721 LIBS=$ac_check_lib_save_LIBS
27722 fi
27723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27724 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27725 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27726   passed=`expr $passed + 1`
27727 else
27728   failed=`expr $failed + 1`
27729 fi
27730
27731     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27732 $as_echo_n "checking for inflate in -lz... " >&6; }
27733 if ${ac_cv_lib_z_inflate+:} false; then :
27734   $as_echo_n "(cached) " >&6
27735 else
27736   ac_check_lib_save_LIBS=$LIBS
27737 LIBS="-lz  $LIBS"
27738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27739 /* end confdefs.h.  */
27740
27741 /* Override any GCC internal prototype to avoid an error.
27742    Use char because int might match the return type of a GCC
27743    builtin and then its argument prototype would still apply.  */
27744 #ifdef __cplusplus
27745 extern "C"
27746 #endif
27747 char inflate ();
27748 int
27749 main ()
27750 {
27751 return inflate ();
27752   ;
27753   return 0;
27754 }
27755 _ACEOF
27756 if ac_fn_c_try_link "$LINENO"; then :
27757   ac_cv_lib_z_inflate=yes
27758 else
27759   ac_cv_lib_z_inflate=no
27760 fi
27761 rm -f core conftest.err conftest.$ac_objext \
27762     conftest$ac_exeext conftest.$ac_ext
27763 LIBS=$ac_check_lib_save_LIBS
27764 fi
27765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27766 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27767 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27768   passed=`expr $passed + 1`
27769 else
27770   failed=`expr $failed + 1`
27771 fi
27772
27773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27774 $as_echo_n "checking for gzseek in -lz... " >&6; }
27775 if ${ac_cv_lib_z_gzseek+:} false; then :
27776   $as_echo_n "(cached) " >&6
27777 else
27778   ac_check_lib_save_LIBS=$LIBS
27779 LIBS="-lz  $LIBS"
27780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27781 /* end confdefs.h.  */
27782
27783 /* Override any GCC internal prototype to avoid an error.
27784    Use char because int might match the return type of a GCC
27785    builtin and then its argument prototype would still apply.  */
27786 #ifdef __cplusplus
27787 extern "C"
27788 #endif
27789 char gzseek ();
27790 int
27791 main ()
27792 {
27793 return gzseek ();
27794   ;
27795   return 0;
27796 }
27797 _ACEOF
27798 if ac_fn_c_try_link "$LINENO"; then :
27799   ac_cv_lib_z_gzseek=yes
27800 else
27801   ac_cv_lib_z_gzseek=no
27802 fi
27803 rm -f core conftest.err conftest.$ac_objext \
27804     conftest$ac_exeext conftest.$ac_ext
27805 LIBS=$ac_check_lib_save_LIBS
27806 fi
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27808 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27809 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27810   passed=`expr $passed + 1`
27811 else
27812   failed=`expr $failed + 1`
27813 fi
27814
27815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27816 $as_echo_n "checking for gztell in -lz... " >&6; }
27817 if ${ac_cv_lib_z_gztell+:} false; then :
27818   $as_echo_n "(cached) " >&6
27819 else
27820   ac_check_lib_save_LIBS=$LIBS
27821 LIBS="-lz  $LIBS"
27822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27823 /* end confdefs.h.  */
27824
27825 /* Override any GCC internal prototype to avoid an error.
27826    Use char because int might match the return type of a GCC
27827    builtin and then its argument prototype would still apply.  */
27828 #ifdef __cplusplus
27829 extern "C"
27830 #endif
27831 char gztell ();
27832 int
27833 main ()
27834 {
27835 return gztell ();
27836   ;
27837   return 0;
27838 }
27839 _ACEOF
27840 if ac_fn_c_try_link "$LINENO"; then :
27841   ac_cv_lib_z_gztell=yes
27842 else
27843   ac_cv_lib_z_gztell=no
27844 fi
27845 rm -f core conftest.err conftest.$ac_objext \
27846     conftest$ac_exeext conftest.$ac_ext
27847 LIBS=$ac_check_lib_save_LIBS
27848 fi
27849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27850 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27851 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27852   passed=`expr $passed + 1`
27853 else
27854   failed=`expr $failed + 1`
27855 fi
27856
27857     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27858 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27859     if test $passed -gt 0; then
27860         if test $failed -gt 0; then
27861             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27862 $as_echo "$as_me: no -- some components failed test" >&6;}
27863             have_zlib='no (failed tests)'
27864         else
27865             ZLIB_LIBS='-lz'
27866             LIBS="$ZLIB_LIBS $LIBS"
27867
27868 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27869
27870             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27871 $as_echo "$as_me: yes" >&6;}
27872             have_zlib='yes'
27873         fi
27874     else
27875         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27876 $as_echo "$as_me: no" >&6;}
27877     fi
27878 fi
27879  if test "$have_zlib" = 'yes'; then
27880   ZLIB_DELEGATE_TRUE=
27881   ZLIB_DELEGATE_FALSE='#'
27882 else
27883   ZLIB_DELEGATE_TRUE='#'
27884   ZLIB_DELEGATE_FALSE=
27885 fi
27886
27887
27888
27889 #
27890 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27891 #
27892 LIB_DL=''
27893 if test "$enable_profiling" = 'yes'; then
27894     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27895 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27896 if ${ac_cv_lib_dl_dlopen+:} false; then :
27897   $as_echo_n "(cached) " >&6
27898 else
27899   ac_check_lib_save_LIBS=$LIBS
27900 LIBS="-ldl  $LIBS"
27901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27902 /* end confdefs.h.  */
27903
27904 /* Override any GCC internal prototype to avoid an error.
27905    Use char because int might match the return type of a GCC
27906    builtin and then its argument prototype would still apply.  */
27907 #ifdef __cplusplus
27908 extern "C"
27909 #endif
27910 char dlopen ();
27911 int
27912 main ()
27913 {
27914 return dlopen ();
27915   ;
27916   return 0;
27917 }
27918 _ACEOF
27919 if ac_fn_c_try_link "$LINENO"; then :
27920   ac_cv_lib_dl_dlopen=yes
27921 else
27922   ac_cv_lib_dl_dlopen=no
27923 fi
27924 rm -f core conftest.err conftest.$ac_objext \
27925     conftest$ac_exeext conftest.$ac_ext
27926 LIBS=$ac_check_lib_save_LIBS
27927 fi
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27929 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27930 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27931   LIB_DL='-ldl'
27932 fi
27933
27934     LIBS="$LIB_DL $LIBS"
27935 fi
27936
27937
27938
27939 #
27940 # Check for Autotrace delegate library.
27941 #
27942
27943 # Check whether --with-autotrace was given.
27944 if test "${with_autotrace+set}" = set; then :
27945   withval=$with_autotrace; with_autotrace=$withval
27946 else
27947   with_autotrace='no'
27948 fi
27949
27950
27951 if test "$with_autotrace" != 'yes'; then
27952     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27953 fi
27954
27955 have_autotrace='no'
27956 AUTOTRACE_CFLAGS=""
27957 AUTOTRACE_LIBS=""
27958 AUTOTRACE_PKG=""
27959 if test "x$with_autotrace" = "xyes"; then
27960     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27961 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
27962
27963 pkg_failed=no
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27965 $as_echo_n "checking for AUTOTRACE... " >&6; }
27966
27967 if test -n "$AUTOTRACE_CFLAGS"; then
27968     pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27969  elif test -n "$PKG_CONFIG"; then
27970     if test -n "$PKG_CONFIG" && \
27971     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27972   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27973   ac_status=$?
27974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27975   test $ac_status = 0; }; then
27976   pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27977 else
27978   pkg_failed=yes
27979 fi
27980  else
27981     pkg_failed=untried
27982 fi
27983 if test -n "$AUTOTRACE_LIBS"; then
27984     pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27985  elif test -n "$PKG_CONFIG"; then
27986     if test -n "$PKG_CONFIG" && \
27987     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27988   ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27989   ac_status=$?
27990   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27991   test $ac_status = 0; }; then
27992   pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27993 else
27994   pkg_failed=yes
27995 fi
27996  else
27997     pkg_failed=untried
27998 fi
27999
28000
28001
28002 if test $pkg_failed = yes; then
28003
28004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28005         _pkg_short_errors_supported=yes
28006 else
28007         _pkg_short_errors_supported=no
28008 fi
28009         if test $_pkg_short_errors_supported = yes; then
28010                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28011         else
28012                 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28013         fi
28014         # Put the nasty error message in config.log where it belongs
28015         echo "$AUTOTRACE_PKG_ERRORS" >&5
28016
28017         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28018 $as_echo "no" >&6; }
28019                 have_autotrace=no
28020 elif test $pkg_failed = untried; then
28021         have_autotrace=no
28022 else
28023         AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28024         AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28025         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28026 $as_echo "yes" >&6; }
28027         have_autotrace=yes
28028 fi
28029     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28030 $as_echo "$as_me: " >&6;}
28031 fi
28032
28033 if test "$have_autotrace" = 'yes'; then
28034     failed=0
28035
28036 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
28037
28038     if test "$with_modules" = 'no'; then
28039     CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28040     fi
28041 fi
28042
28043  if test "$have_autotrace" = 'yes'; then
28044   AUTOTRACE_DELEGATE_TRUE=
28045   AUTOTRACE_DELEGATE_FALSE='#'
28046 else
28047   AUTOTRACE_DELEGATE_TRUE='#'
28048   AUTOTRACE_DELEGATE_FALSE=
28049 fi
28050
28051
28052
28053
28054
28055 #
28056 # Check for Display Postscript delegate library.
28057 #
28058
28059 # Check whether --with-dps was given.
28060 if test "${with_dps+set}" = set; then :
28061   withval=$with_dps; with_dps=$withval
28062 else
28063   with_dps='yes'
28064 fi
28065
28066
28067 if test "$with_dps" != 'yes'; then
28068     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28069 fi
28070
28071 have_dps='no'
28072 DPS_LIBS=''
28073 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
28074     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28075 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
28077 $as_echo_n "checking for DPS... " >&6; }
28078     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28079 $as_echo "$as_me: " >&6;}
28080     failed=0
28081     passed=0
28082     PERSIST_CPPFLAGS="$CPPFLAGS"
28083     CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
28084     ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
28085 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
28086   passed=`expr $passed + 1`
28087 else
28088   failed=`expr $failed + 1`
28089 fi
28090
28091
28092     # DPS issues:
28093     # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28094     # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28095     # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28096     # ImageMagick itself doesn't use -lXt.
28097     have_libdps='no'
28098     LIBDPS_XT=''
28099     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28100 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28101 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28102   $as_echo_n "(cached) " >&6
28103 else
28104   ac_check_lib_save_LIBS=$LIBS
28105 LIBS="-ldps  $LIBS"
28106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28107 /* end confdefs.h.  */
28108
28109 /* Override any GCC internal prototype to avoid an error.
28110    Use char because int might match the return type of a GCC
28111    builtin and then its argument prototype would still apply.  */
28112 #ifdef __cplusplus
28113 extern "C"
28114 #endif
28115 char DPSInitialize ();
28116 int
28117 main ()
28118 {
28119 return DPSInitialize ();
28120   ;
28121   return 0;
28122 }
28123 _ACEOF
28124 if ac_fn_c_try_link "$LINENO"; then :
28125   ac_cv_lib_dps_DPSInitialize=yes
28126 else
28127   ac_cv_lib_dps_DPSInitialize=no
28128 fi
28129 rm -f core conftest.err conftest.$ac_objext \
28130     conftest$ac_exeext conftest.$ac_ext
28131 LIBS=$ac_check_lib_save_LIBS
28132 fi
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28134 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28135 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28136   have_libdps='yes'
28137 else
28138   have_libdps='no'
28139 fi
28140
28141     if test "$have_libdps" != 'yes'; then
28142         # Unset cache variable so we can try again.
28143         unset ac_cv_lib_dps_DPSInitialize
28144         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
28145 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
28146 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
28147   $as_echo_n "(cached) " >&6
28148 else
28149   ac_check_lib_save_LIBS=$LIBS
28150 LIBS="-ldps -lXt $LIBS"
28151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28152 /* end confdefs.h.  */
28153
28154 /* Override any GCC internal prototype to avoid an error.
28155    Use char because int might match the return type of a GCC
28156    builtin and then its argument prototype would still apply.  */
28157 #ifdef __cplusplus
28158 extern "C"
28159 #endif
28160 char DPSInitialize ();
28161 int
28162 main ()
28163 {
28164 return DPSInitialize ();
28165   ;
28166   return 0;
28167 }
28168 _ACEOF
28169 if ac_fn_c_try_link "$LINENO"; then :
28170   ac_cv_lib_dps_DPSInitialize=yes
28171 else
28172   ac_cv_lib_dps_DPSInitialize=no
28173 fi
28174 rm -f core conftest.err conftest.$ac_objext \
28175     conftest$ac_exeext conftest.$ac_ext
28176 LIBS=$ac_check_lib_save_LIBS
28177 fi
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
28179 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
28180 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
28181   have_libdps='yes'
28182 else
28183   have_libdps='no'
28184 fi
28185
28186         if test "$have_libdps" = 'yes'; then
28187             LIBDPS_XT='-lXt'
28188         fi
28189     fi
28190     if test "$have_libdps" = 'yes'; then
28191         passed=`expr $passed + 1`
28192     else
28193         failed=`expr $failed + 1`
28194     fi
28195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
28196 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
28197 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
28198   $as_echo_n "(cached) " >&6
28199 else
28200   ac_check_lib_save_LIBS=$LIBS
28201 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
28202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28203 /* end confdefs.h.  */
28204
28205 /* Override any GCC internal prototype to avoid an error.
28206    Use char because int might match the return type of a GCC
28207    builtin and then its argument prototype would still apply.  */
28208 #ifdef __cplusplus
28209 extern "C"
28210 #endif
28211 char XDPSPixelsPerPoint ();
28212 int
28213 main ()
28214 {
28215 return XDPSPixelsPerPoint ();
28216   ;
28217   return 0;
28218 }
28219 _ACEOF
28220 if ac_fn_c_try_link "$LINENO"; then :
28221   ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28222 else
28223   ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
28224 fi
28225 rm -f core conftest.err conftest.$ac_objext \
28226     conftest$ac_exeext conftest.$ac_ext
28227 LIBS=$ac_check_lib_save_LIBS
28228 fi
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28230 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28231 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28232   passed=`expr $passed + 1`
28233 else
28234   failed=`expr $failed + 1`
28235 fi
28236
28237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28238 $as_echo_n "checking if DPS package is complete... " >&6; }
28239     if test $passed -gt 0; then
28240         if test $failed -gt 0; then
28241             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28242 $as_echo "$as_me: no -- some components failed test" >&6;}
28243             have_dps='no (failed tests)'
28244             CPPFLAGS="$PERSIST_CPPFLAGS"
28245         else
28246             DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28247             LIBS="$DPS_LIBS $LIBS"
28248
28249 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28250
28251             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28252 $as_echo "$as_me: yes" >&6;}
28253             have_dps='yes'
28254         fi
28255     else
28256         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28257 $as_echo "$as_me: no" >&6;}
28258         CPPFLAGS=$PERSIST_CPPFLAGS
28259     fi
28260 fi
28261  if test "$have_dps" = 'yes'; then
28262   DPS_DELEGATE_TRUE=
28263   DPS_DELEGATE_FALSE='#'
28264 else
28265   DPS_DELEGATE_TRUE='#'
28266   DPS_DELEGATE_FALSE=
28267 fi
28268
28269
28270
28271
28272 #
28273 # Check for DJVU delegate library.
28274 #
28275
28276 # Check whether --with-djvu was given.
28277 if test "${with_djvu+set}" = set; then :
28278   withval=$with_djvu; with_djvu=$withval
28279 else
28280   with_djvu='yes'
28281 fi
28282
28283
28284 if test "$with_djvu" != 'yes'; then
28285     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28286 fi
28287
28288 have_djvu='no'
28289 DJVU_LIBS=''
28290 if test "$with_djvu" != 'no'; then
28291     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28292 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28293     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28294 $as_echo_n "checking for DJVU... " >&6; }
28295     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28296 $as_echo "$as_me: " >&6;}
28297     failed=0
28298     passed=0
28299     ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28300 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28301   passed=`expr $passed + 1`
28302 else
28303   failed=`expr $failed + 1`
28304 fi
28305
28306
28307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28308 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28309 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28310   $as_echo_n "(cached) " >&6
28311 else
28312   ac_check_lib_save_LIBS=$LIBS
28313 LIBS="-ldjvulibre  $LIBS"
28314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28315 /* end confdefs.h.  */
28316
28317 /* Override any GCC internal prototype to avoid an error.
28318    Use char because int might match the return type of a GCC
28319    builtin and then its argument prototype would still apply.  */
28320 #ifdef __cplusplus
28321 extern "C"
28322 #endif
28323 char ddjvu_context_create ();
28324 int
28325 main ()
28326 {
28327 return ddjvu_context_create ();
28328   ;
28329   return 0;
28330 }
28331 _ACEOF
28332 if ac_fn_c_try_link "$LINENO"; then :
28333   ac_cv_lib_djvulibre_ddjvu_context_create=yes
28334 else
28335   ac_cv_lib_djvulibre_ddjvu_context_create=no
28336 fi
28337 rm -f core conftest.err conftest.$ac_objext \
28338     conftest$ac_exeext conftest.$ac_ext
28339 LIBS=$ac_check_lib_save_LIBS
28340 fi
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28342 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28343 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28344   passed=`expr $passed + 1`
28345 else
28346   failed=`expr $failed + 1`
28347 fi
28348
28349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28350 $as_echo_n "checking if DJVU package is complete... " >&6; }
28351     if test $passed -gt 0; then
28352         if test $failed -gt 0; then
28353             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28354 $as_echo "$as_me: no -- some components failed test" >&6;}
28355             have_djvu='no (failed tests)'
28356         else
28357             DJVU_LIBS='-ldjvulibre'
28358             LIBS="$DJVU_LIBS $LIBS"
28359
28360 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28361
28362             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28363 $as_echo "$as_me: yes" >&6;}
28364             have_djvu='yes'
28365         fi
28366     else
28367         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28368 $as_echo "$as_me: no" >&6;}
28369     fi
28370 fi
28371  if test "$have_djvu" = 'yes'; then
28372   DJVU_DELEGATE_TRUE=
28373   DJVU_DELEGATE_FALSE='#'
28374 else
28375   DJVU_DELEGATE_TRUE='#'
28376   DJVU_DELEGATE_FALSE=
28377 fi
28378
28379
28380
28381
28382 #
28383 # Set DejaVu font directory.
28384 #
28385
28386 # Check whether --with-dejavu-font-dir was given.
28387 if test "${with_dejavu_font_dir+set}" = set; then :
28388   withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28389 else
28390   with_dejavu_font_dir='default'
28391 fi
28392
28393
28394 if test "$with_dejavu_font_dir" != 'default'; then
28395     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28396 fi
28397
28398
28399 #
28400 # Check for FFTW delegate library.
28401 #
28402
28403 # Check whether --with-fftw was given.
28404 if test "${with_fftw+set}" = set; then :
28405   withval=$with_fftw; with_fftw=$withval
28406 else
28407   with_fftw='yes'
28408 fi
28409
28410
28411 if test "$with_fftw" != 'yes'; then
28412     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28413 fi
28414
28415 have_fftw='no'
28416 FFTW_LIBS=''
28417 if test "$with_fftw" != 'no'; then
28418     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28419 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28421 $as_echo_n "checking for FFTW... " >&6; }
28422     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28423 $as_echo "$as_me: " >&6;}
28424     failed=0
28425     passed=0
28426     ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28427 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28428   passed=`expr $passed + 1`
28429 else
28430   failed=`expr $failed + 1`
28431 fi
28432
28433
28434     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28435 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28436 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28437   $as_echo_n "(cached) " >&6
28438 else
28439   ac_check_lib_save_LIBS=$LIBS
28440 LIBS="-lfftw3  $LIBS"
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h.  */
28443
28444 /* Override any GCC internal prototype to avoid an error.
28445    Use char because int might match the return type of a GCC
28446    builtin and then its argument prototype would still apply.  */
28447 #ifdef __cplusplus
28448 extern "C"
28449 #endif
28450 char fftw_execute ();
28451 int
28452 main ()
28453 {
28454 return fftw_execute ();
28455   ;
28456   return 0;
28457 }
28458 _ACEOF
28459 if ac_fn_c_try_link "$LINENO"; then :
28460   ac_cv_lib_fftw3_fftw_execute=yes
28461 else
28462   ac_cv_lib_fftw3_fftw_execute=no
28463 fi
28464 rm -f core conftest.err conftest.$ac_objext \
28465     conftest$ac_exeext conftest.$ac_ext
28466 LIBS=$ac_check_lib_save_LIBS
28467 fi
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28469 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28470 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28471   passed=`expr $passed + 1`
28472 else
28473   failed=`expr $failed + 1`
28474 fi
28475
28476     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28477 $as_echo_n "checking if FFTW package is complete... " >&6; }
28478     if test $passed -gt 0; then
28479         if test $failed -gt 0; then
28480             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28481 $as_echo "$as_me: no -- some components failed test" >&6;}
28482             have_fftw='no (failed tests)'
28483         else
28484             FFTW_LIBS='-lfftw3'
28485             LIBS="$FFTW_LIBS $LIBS"
28486
28487 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28488
28489             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28490 $as_echo "$as_me: yes" >&6;}
28491             have_fftw='yes'
28492         fi
28493     else
28494         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28495 $as_echo "$as_me: no" >&6;}
28496     fi
28497 fi
28498  if test "$have_fftw" = 'yes'; then
28499   FFTW_DELEGATE_TRUE=
28500   FFTW_DELEGATE_FALSE='#'
28501 else
28502   FFTW_DELEGATE_TRUE='#'
28503   FFTW_DELEGATE_FALSE=
28504 fi
28505
28506
28507
28508
28509 #
28510 # Check for FlashPIX delegate library.
28511 #
28512
28513 # Check whether --with-fpx was given.
28514 if test "${with_fpx+set}" = set; then :
28515   withval=$with_fpx; with_fpx=$withval
28516 else
28517   with_fpx='yes'
28518 fi
28519
28520
28521 if test "$with_fpx" != 'yes'; then
28522     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28523 fi
28524
28525 have_fpx='no'
28526 FPX_LIBS=''
28527 if test "$with_fpx" != 'no'; then
28528     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28529 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28530     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28531 $as_echo_n "checking for FlashPIX... " >&6; }
28532     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28533 $as_echo "$as_me: " >&6;}
28534     failed=0
28535     passed=0
28536     ac_ext=cpp
28537 ac_cpp='$CXXCPP $CPPFLAGS'
28538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28541
28542
28543 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28544 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28545   passed=`expr $passed + 1`
28546 else
28547   failed=`expr $failed + 1`
28548 fi
28549
28550
28551     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28552 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28553 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28554   $as_echo_n "(cached) " >&6
28555 else
28556   ac_check_lib_save_LIBS=$LIBS
28557 LIBS="-lfpx  $LIBS"
28558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28559 /* end confdefs.h.  */
28560
28561 /* Override any GCC internal prototype to avoid an error.
28562    Use char because int might match the return type of a GCC
28563    builtin and then its argument prototype would still apply.  */
28564 #ifdef __cplusplus
28565 extern "C"
28566 #endif
28567 char FPX_OpenImageByFilename ();
28568 int
28569 main ()
28570 {
28571 return FPX_OpenImageByFilename ();
28572   ;
28573   return 0;
28574 }
28575 _ACEOF
28576 if ac_fn_cxx_try_link "$LINENO"; then :
28577   ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28578 else
28579   ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28580 fi
28581 rm -f core conftest.err conftest.$ac_objext \
28582     conftest$ac_exeext conftest.$ac_ext
28583 LIBS=$ac_check_lib_save_LIBS
28584 fi
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28586 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28587 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28588   passed=`expr $passed + 1`
28589 else
28590   failed=`expr $failed + 1`
28591 fi
28592
28593     ac_ext=c
28594 ac_cpp='$CPP $CPPFLAGS'
28595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28598
28599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28600 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28601     if test $passed -gt 0; then
28602         if test $failed -gt 0; then
28603             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28604 $as_echo "$as_me: no -- some components failed test" >&6;}
28605             have_fpx='no (failed tests)'
28606         else
28607             FPX_LIBS='-lfpx'
28608
28609 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28610
28611             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28612 $as_echo "$as_me: yes" >&6;}
28613             have_fpx='yes'
28614             PERLMAINCC="$CXX"
28615         fi
28616     else
28617         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28618 $as_echo "$as_me: no" >&6;}
28619     fi
28620 fi
28621  if test "$have_fpx" = 'yes'; then
28622   FPX_DELEGATE_TRUE=
28623   FPX_DELEGATE_FALSE='#'
28624 else
28625   FPX_DELEGATE_TRUE='#'
28626   FPX_DELEGATE_FALSE=
28627 fi
28628
28629
28630
28631
28632 #
28633 # Check for fontconfig delegate library.
28634 #
28635
28636 # Check whether --with-fontconfig was given.
28637 if test "${with_fontconfig+set}" = set; then :
28638   withval=$with_fontconfig; with_fontconfig=$withval
28639 else
28640   with_fontconfig=$have_x
28641 fi
28642
28643
28644 if test "$with_fontconfig" != 'yes'; then
28645     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28646 fi
28647
28648 have_fontconfig='no'
28649 FONTCONFIG_CFLAGS=""
28650 FONTCONFIG_LIBS=""
28651 FONTCONFIG_PKG=""
28652 if test "x$with_fontconfig" = "xyes"; then
28653     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28654 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28655
28656 pkg_failed=no
28657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28658 $as_echo_n "checking for FONTCONFIG... " >&6; }
28659
28660 if test -n "$FONTCONFIG_CFLAGS"; then
28661     pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28662  elif test -n "$PKG_CONFIG"; then
28663     if test -n "$PKG_CONFIG" && \
28664     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28665   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28666   ac_status=$?
28667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28668   test $ac_status = 0; }; then
28669   pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28670 else
28671   pkg_failed=yes
28672 fi
28673  else
28674     pkg_failed=untried
28675 fi
28676 if test -n "$FONTCONFIG_LIBS"; then
28677     pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28678  elif test -n "$PKG_CONFIG"; then
28679     if test -n "$PKG_CONFIG" && \
28680     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28681   ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28682   ac_status=$?
28683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28684   test $ac_status = 0; }; then
28685   pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28686 else
28687   pkg_failed=yes
28688 fi
28689  else
28690     pkg_failed=untried
28691 fi
28692
28693
28694
28695 if test $pkg_failed = yes; then
28696
28697 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28698         _pkg_short_errors_supported=yes
28699 else
28700         _pkg_short_errors_supported=no
28701 fi
28702         if test $_pkg_short_errors_supported = yes; then
28703                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28704         else
28705                 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28706         fi
28707         # Put the nasty error message in config.log where it belongs
28708         echo "$FONTCONFIG_PKG_ERRORS" >&5
28709
28710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28711 $as_echo "no" >&6; }
28712                 have_fontconfig=no
28713 elif test $pkg_failed = untried; then
28714         have_fontconfig=no
28715 else
28716         FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28717         FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28719 $as_echo "yes" >&6; }
28720         have_fontconfig=yes
28721 fi
28722     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28723 $as_echo "$as_me: " >&6;}
28724 fi
28725
28726 if test "$have_fontconfig" = 'yes'; then
28727
28728 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28729
28730   if test "$with_modules" = 'no'; then
28731     CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28732   fi
28733 fi
28734
28735  if test "$have_fontconfig" = 'yes'; then
28736   FONTCONFIG_DELEGATE_TRUE=
28737   FONTCONFIG_DELEGATE_FALSE='#'
28738 else
28739   FONTCONFIG_DELEGATE_TRUE='#'
28740   FONTCONFIG_DELEGATE_FALSE=
28741 fi
28742
28743
28744
28745
28746
28747 #
28748 # Check for freetype delegate library.
28749 #
28750
28751 # Check whether --with-freetype was given.
28752 if test "${with_freetype+set}" = set; then :
28753   withval=$with_freetype; with_freetype=$withval
28754 else
28755   with_freetype='yes'
28756 fi
28757
28758
28759
28760 if test "$with_freetype" != 'yes'; then
28761     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28762 fi
28763
28764 have_freetype='no'
28765 FREETYPE_LIBS=''
28766 if test "$with_freetype" != 'no'; then
28767     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28768 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28770 $as_echo_n "checking for FreeType 2.0 ... " >&6; }
28771     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28772 $as_echo "$as_me: " >&6;}
28773     failed=0
28774     passed=0
28775     PERSIST_LDFLAGS="$LDFLAGS"
28776     PERSIST_CPPFLAGS="$CPPFLAGS"
28777     freetype_config=''
28778     # Allow the user to specify the location of freetype.
28779     if test "$with_freetype" != 'yes'; then
28780       if test -x "${with_freetype}/bin/freetype-config"; then
28781         freetype_config="${with_freetype}/bin/freetype-config"
28782       elif test -x "${with_freetype}"; then
28783         freetype_config=${with_freetype}
28784       fi
28785     fi
28786     if test -z "$freetype_config"; then
28787       # Extract the first word of "freetype-config", so it can be a program name with args.
28788 set dummy freetype-config; ac_word=$2
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28790 $as_echo_n "checking for $ac_word... " >&6; }
28791 if ${ac_cv_path_freetype_config+:} false; then :
28792   $as_echo_n "(cached) " >&6
28793 else
28794   case $freetype_config in
28795   [\\/]* | ?:[\\/]*)
28796   ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28797   ;;
28798   *)
28799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28800 for as_dir in $PATH
28801 do
28802   IFS=$as_save_IFS
28803   test -z "$as_dir" && as_dir=.
28804     for ac_exec_ext in '' $ac_executable_extensions; do
28805   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28806     ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
28807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28808     break 2
28809   fi
28810 done
28811   done
28812 IFS=$as_save_IFS
28813
28814   ;;
28815 esac
28816 fi
28817 freetype_config=$ac_cv_path_freetype_config
28818 if test -n "$freetype_config"; then
28819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28820 $as_echo "$freetype_config" >&6; }
28821 else
28822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28823 $as_echo "no" >&6; }
28824 fi
28825
28826     fi
28827     if test -n "$freetype_config"; then
28828       freetype_prefix=`${freetype_config} --prefix`
28829       freetype_exec_prefix=`${freetype_config} --exec-prefix`
28830       LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28831       CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
28832     fi
28833
28834     if test "$FREETYPE_LIBS" = ''; then
28835       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28836 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28837 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28838   $as_echo_n "(cached) " >&6
28839 else
28840   ac_check_lib_save_LIBS=$LIBS
28841 LIBS="-lfreetype  $LIBS"
28842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28843 /* end confdefs.h.  */
28844
28845 /* Override any GCC internal prototype to avoid an error.
28846    Use char because int might match the return type of a GCC
28847    builtin and then its argument prototype would still apply.  */
28848 #ifdef __cplusplus
28849 extern "C"
28850 #endif
28851 char FT_Init_FreeType ();
28852 int
28853 main ()
28854 {
28855 return FT_Init_FreeType ();
28856   ;
28857   return 0;
28858 }
28859 _ACEOF
28860 if ac_fn_c_try_link "$LINENO"; then :
28861   ac_cv_lib_freetype_FT_Init_FreeType=yes
28862 else
28863   ac_cv_lib_freetype_FT_Init_FreeType=no
28864 fi
28865 rm -f core conftest.err conftest.$ac_objext \
28866     conftest$ac_exeext conftest.$ac_ext
28867 LIBS=$ac_check_lib_save_LIBS
28868 fi
28869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28870 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28871 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28872   FREETYPE_LIBS='-lfreetype'
28873 fi
28874
28875       if test "$FREETYPE_LIBS" != ''; then
28876         passed=`expr $passed + 1`
28877       else
28878         failed=`expr $failed + 1`
28879         LDFLAGS="$PERSIST_LDFLAGS"
28880       fi
28881     fi
28882
28883     ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28884 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28885   FT2BUILD_H='#include <ft2build.h>'
28886 else
28887   ft2build=''
28888 fi
28889
28890
28891     ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28892 "
28893 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28894   have_freetype_h='yes'
28895 else
28896   have_freetype_h='no'
28897 fi
28898
28899
28900     if test "$have_freetype_h" = 'yes'; then
28901       passed=`expr $passed + 1`
28902     else
28903       failed=`expr $failed + 1`
28904       CPPFLAGS="$PERSIST_CPPFLAGS"
28905     fi
28906
28907     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28908 $as_echo_n "checking if FreeType package is complete... " >&6; }
28909     if test $passed -gt 0; then
28910       if test $failed -gt 0; then
28911         FREETYPE_LIBS=''
28912         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28913 $as_echo "$as_me: no -- some components failed test" >&6;}
28914         have_freetype='no (failed tests)'
28915       else
28916         LIBS="$FREETYPE_LIBS $LIBS"
28917
28918 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28919
28920         if test "$ac_cv_header_ft2build_h" = 'yes'; then
28921
28922 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28923
28924         fi
28925         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28926 $as_echo "$as_me: yes" >&6;}
28927         have_freetype='yes'
28928       fi
28929     else
28930       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28931 $as_echo "$as_me: no" >&6;}
28932     fi
28933 fi
28934  if test "$have_freetype" = 'yes'; then
28935   FREETYPE_DELEGATE_TRUE=
28936   FREETYPE_DELEGATE_FALSE='#'
28937 else
28938   FREETYPE_DELEGATE_TRUE='#'
28939   FREETYPE_DELEGATE_FALSE=
28940 fi
28941
28942
28943
28944
28945 #
28946 # Check for Ghostscript library or framework.
28947 #
28948 # Test for iapi.h & test for gsapi_new_instance in -lgs
28949 # or -framework Ghostscript
28950
28951
28952 # Check whether --with-gslib was given.
28953 if test "${with_gslib+set}" = set; then :
28954   withval=$with_gslib; with_gslib=$withval
28955 else
28956   with_gslib='no'
28957 fi
28958
28959
28960 gslib_framework='no'
28961 if test "$with_gslib" != 'yes'; then
28962     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28963 fi
28964
28965 have_gslib='no'
28966 GS_LIBS=''
28967 if test "$with_gslib" != 'no'; then
28968     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28969 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
28970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28971 $as_echo_n "checking for Ghostscript... " >&6; }
28972     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28973 $as_echo "$as_me: " >&6;}
28974     framework=0
28975     failed=0
28976     passed=0
28977     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28978 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28979   passed=`expr $passed + 1`
28980 else
28981   failed=`expr $failed + 1`
28982 fi
28983
28984
28985     ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28986 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28987   passed=`expr $passed + 1`
28988 else
28989   failed=`expr $failed + 1`
28990 fi
28991
28992
28993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28994 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28995 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28996   $as_echo_n "(cached) " >&6
28997 else
28998   ac_check_framework_save_LIBS=$LIBS
28999 LIBS="-framework Ghostscript  $LIBS"
29000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29001 /* end confdefs.h.  */
29002
29003 /* Override any GCC internal prototype to avoid an error.
29004    Use char because int might match the return type of a GCC
29005    builtin and then its argument prototype would still apply.  */
29006 #ifdef __cplusplus
29007 extern "C"
29008 #endif
29009 char gsapi_new_instance ();
29010 int
29011 main ()
29012 {
29013 return gsapi_new_instance ();
29014   ;
29015   return 0;
29016 }
29017 _ACEOF
29018 if ac_fn_c_try_link "$LINENO"; then :
29019   ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29020 else
29021   ac_cv_framework_Ghostscript_gsapi_new_instance=no
29022 fi
29023 rm -f core conftest.err conftest.$ac_objext \
29024     conftest$ac_exeext conftest.$ac_ext
29025 LIBS=$ac_check_framework_save_LIBS
29026 fi
29027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29028 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29029 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29030   framework=`expr $framework + 1`
29031 else
29032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
29033 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
29034 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
29035   $as_echo_n "(cached) " >&6
29036 else
29037   ac_check_lib_save_LIBS=$LIBS
29038 LIBS="-lgs  $LIBS"
29039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29040 /* end confdefs.h.  */
29041
29042 /* Override any GCC internal prototype to avoid an error.
29043    Use char because int might match the return type of a GCC
29044    builtin and then its argument prototype would still apply.  */
29045 #ifdef __cplusplus
29046 extern "C"
29047 #endif
29048 char gsapi_new_instance ();
29049 int
29050 main ()
29051 {
29052 return gsapi_new_instance ();
29053   ;
29054   return 0;
29055 }
29056 _ACEOF
29057 if ac_fn_c_try_link "$LINENO"; then :
29058   ac_cv_lib_gs_gsapi_new_instance=yes
29059 else
29060   ac_cv_lib_gs_gsapi_new_instance=no
29061 fi
29062 rm -f core conftest.err conftest.$ac_objext \
29063     conftest$ac_exeext conftest.$ac_ext
29064 LIBS=$ac_check_lib_save_LIBS
29065 fi
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
29067 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
29068 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
29069   passed=`expr $passed + 1`
29070 else
29071   failed=`expr $failed + 1`
29072 fi
29073
29074 fi
29075     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
29076 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
29077     if test $passed -gt 0; then
29078         if test $failed -gt 0; then
29079             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29080 $as_echo "$as_me: no -- some components failed test" >&6;}
29081             have_gslib='no (failed tests)'
29082         else
29083             if test $framework -gt 0; then
29084                 GS_LIBS='-framework Ghostscript'
29085                 gslib_framework='yes'
29086                 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29087 $as_echo "$as_me: yes, using framework." >&6;}
29088             else
29089                 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29090 $as_echo "$as_me: yes, using library." >&6;}
29091                 GS_LIBS='-lgs'
29092             fi
29093             LIBS="$GS_LIBS $LIBS"
29094
29095 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
29096
29097             have_gslib='yes'
29098         fi
29099     else
29100         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29101 $as_echo "$as_me: no" >&6;}
29102     fi
29103 fi
29104  if test "$have_gslib" = 'yes'; then
29105   GS_DELEGATE_TRUE=
29106   GS_DELEGATE_FALSE='#'
29107 else
29108   GS_DELEGATE_TRUE='#'
29109   GS_DELEGATE_FALSE=
29110 fi
29111
29112
29113
29114 # Set default font search path
29115
29116 # Check whether --with-fontpath was given.
29117 if test "${with_fontpath+set}" = set; then :
29118   withval=$with_fontpath; with_fontpath=$withval
29119 else
29120   with_fontpath=''
29121 fi
29122
29123
29124 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29125     with_fontpath=''
29126 else
29127
29128 cat >>confdefs.h <<_ACEOF
29129 #define MAGICK_FONT_PATH "$with_fontpath"
29130 _ACEOF
29131
29132 fi
29133 if test "$with_fontpath=" != ''; then
29134     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29135 fi
29136
29137 # Set Ghostscript font directory
29138
29139 # Check whether --with-gs-font-dir was given.
29140 if test "${with_gs_font_dir+set}" = set; then :
29141   withval=$with_gs_font_dir; with_gs_font_dir=$withval
29142 else
29143   with_gs_font_dir='default'
29144 fi
29145
29146
29147 if test "$with_gs_font_dir" != 'default'; then
29148     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29149 fi
29150
29151
29152 #
29153 # Check for GVC delegate library.
29154 #
29155
29156 # Check whether --with-gvc was given.
29157 if test "${with_gvc+set}" = set; then :
29158   withval=$with_gvc; with_gvc=$withval
29159 else
29160   with_gvc='yes'
29161 fi
29162
29163
29164 if test "$with_gvc" != 'yes'; then
29165     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29166 fi
29167
29168 GVC_PKG=""
29169 if test "x$with_gvc" = "xyes"; then
29170     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29171 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29172
29173 pkg_failed=no
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29175 $as_echo_n "checking for GVC... " >&6; }
29176
29177 if test -n "$GVC_CFLAGS"; then
29178     pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29179  elif test -n "$PKG_CONFIG"; then
29180     if test -n "$PKG_CONFIG" && \
29181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29182   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29183   ac_status=$?
29184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185   test $ac_status = 0; }; then
29186   pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29187 else
29188   pkg_failed=yes
29189 fi
29190  else
29191     pkg_failed=untried
29192 fi
29193 if test -n "$GVC_LIBS"; then
29194     pkg_cv_GVC_LIBS="$GVC_LIBS"
29195  elif test -n "$PKG_CONFIG"; then
29196     if test -n "$PKG_CONFIG" && \
29197     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29198   ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29199   ac_status=$?
29200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29201   test $ac_status = 0; }; then
29202   pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29203 else
29204   pkg_failed=yes
29205 fi
29206  else
29207     pkg_failed=untried
29208 fi
29209
29210
29211
29212 if test $pkg_failed = yes; then
29213
29214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29215         _pkg_short_errors_supported=yes
29216 else
29217         _pkg_short_errors_supported=no
29218 fi
29219         if test $_pkg_short_errors_supported = yes; then
29220                 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29221         else
29222                 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29223         fi
29224         # Put the nasty error message in config.log where it belongs
29225         echo "$GVC_PKG_ERRORS" >&5
29226
29227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29228 $as_echo "no" >&6; }
29229                 have_gvc=no
29230 elif test $pkg_failed = untried; then
29231         have_gvc=no
29232 else
29233         GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29234         GVC_LIBS=$pkg_cv_GVC_LIBS
29235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29236 $as_echo "yes" >&6; }
29237         have_gvc=yes
29238 fi
29239     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29240 $as_echo "$as_me: " >&6;}
29241 fi
29242
29243 if test "$have_gvc" = 'yes'; then
29244
29245 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29246
29247     if test "$with_modules" = 'no'; then
29248         CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29249     fi
29250 fi
29251
29252  if test "$have_gvc" = 'yes'; then
29253   GVC_DELEGATE_TRUE=
29254   GVC_DELEGATE_FALSE='#'
29255 else
29256   GVC_DELEGATE_TRUE='#'
29257   GVC_DELEGATE_FALSE=
29258 fi
29259
29260
29261
29262
29263
29264 #
29265 # Check for JBIG delegate library.
29266 #
29267
29268
29269 # Check whether --with-jbig was given.
29270 if test "${with_jbig+set}" = set; then :
29271   withval=$with_jbig; with_jbig=$withval
29272 else
29273   with_jbig='yes'
29274 fi
29275
29276
29277 have_jbig='no'
29278 JBIG_LIBS=''
29279 if test "$with_jbig" != 'no'; then
29280     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29281 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29283 $as_echo_n "checking for JBIG... " >&6; }
29284     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29285 $as_echo "$as_me: " >&6;}
29286     failed=0
29287     passed=0
29288     ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29289 if test "x$ac_cv_header_jbig_h" = xyes; then :
29290   passed=`expr $passed + 1`
29291 else
29292   failed=`expr $failed + 1`
29293 fi
29294
29295
29296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29297 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29298 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29299   $as_echo_n "(cached) " >&6
29300 else
29301   ac_check_lib_save_LIBS=$LIBS
29302 LIBS="-ljbig  $LIBS"
29303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29304 /* end confdefs.h.  */
29305
29306 /* Override any GCC internal prototype to avoid an error.
29307    Use char because int might match the return type of a GCC
29308    builtin and then its argument prototype would still apply.  */
29309 #ifdef __cplusplus
29310 extern "C"
29311 #endif
29312 char jbg_dec_init ();
29313 int
29314 main ()
29315 {
29316 return jbg_dec_init ();
29317   ;
29318   return 0;
29319 }
29320 _ACEOF
29321 if ac_fn_c_try_link "$LINENO"; then :
29322   ac_cv_lib_jbig_jbg_dec_init=yes
29323 else
29324   ac_cv_lib_jbig_jbg_dec_init=no
29325 fi
29326 rm -f core conftest.err conftest.$ac_objext \
29327     conftest$ac_exeext conftest.$ac_ext
29328 LIBS=$ac_check_lib_save_LIBS
29329 fi
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29331 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29332 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29333   passed=`expr $passed + 1`
29334 else
29335   failed=`expr $failed + 1`
29336 fi
29337
29338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29339 $as_echo_n "checking if JBIG package is complete... " >&6; }
29340     if test $passed -gt 0; then
29341         if test $failed -gt 0; then
29342             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29343 $as_echo "$as_me: no -- some components failed test" >&6;}
29344             have_jbig='no (failed tests)'
29345         else
29346             JBIG_LIBS='-ljbig'
29347             LIBS="$JBIG_LIBS $LIBS"
29348
29349 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29350
29351             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29352 $as_echo "$as_me: yes" >&6;}
29353             have_jbig='yes'
29354         fi
29355     else
29356         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29357 $as_echo "$as_me: no" >&6;}
29358     fi
29359 fi
29360  if test "$have_jbig" = 'yes'; then
29361   JBIG_DELEGATE_TRUE=
29362   JBIG_DELEGATE_FALSE='#'
29363 else
29364   JBIG_DELEGATE_TRUE='#'
29365   JBIG_DELEGATE_FALSE=
29366 fi
29367
29368
29369
29370
29371 #
29372 # Check for JPEG delegate library.
29373 #
29374
29375 # Check whether --with-jpeg was given.
29376 if test "${with_jpeg+set}" = set; then :
29377   withval=$with_jpeg; with_jpeg=$withval
29378 else
29379   with_jpeg='yes'
29380 fi
29381
29382
29383 if test "$with_jpeg" != 'yes'; then
29384     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29385 fi
29386
29387 have_jpeg='no'
29388 JPEG_LIBS=''
29389 if test "$with_jpeg" != 'no'; then
29390     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29391 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29392     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29393 $as_echo_n "checking for JPEG... " >&6; }
29394     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29395 $as_echo "$as_me: " >&6;}
29396     failed=0
29397     passed=0
29398     ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29399 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29400   passed=`expr $passed + 1`
29401 else
29402   failed=`expr $failed + 1`
29403 fi
29404
29405
29406     ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29407 if test "x$ac_cv_header_jerror_h" = xyes; then :
29408   passed=`expr $passed + 1`
29409 else
29410   failed=`expr $failed + 1`
29411 fi
29412
29413
29414     ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29415 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29416   passed=`expr $passed + 1`
29417 else
29418   failed=`expr $failed + 1`
29419 fi
29420
29421
29422     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29423 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29424   passed=`expr $passed + 1`
29425 else
29426   failed=`expr $failed + 1`
29427 fi
29428
29429
29430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29431 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29432 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29433   $as_echo_n "(cached) " >&6
29434 else
29435   ac_check_lib_save_LIBS=$LIBS
29436 LIBS="-ljpeg  $LIBS"
29437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29438 /* end confdefs.h.  */
29439
29440 /* Override any GCC internal prototype to avoid an error.
29441    Use char because int might match the return type of a GCC
29442    builtin and then its argument prototype would still apply.  */
29443 #ifdef __cplusplus
29444 extern "C"
29445 #endif
29446 char jpeg_read_header ();
29447 int
29448 main ()
29449 {
29450 return jpeg_read_header ();
29451   ;
29452   return 0;
29453 }
29454 _ACEOF
29455 if ac_fn_c_try_link "$LINENO"; then :
29456   ac_cv_lib_jpeg_jpeg_read_header=yes
29457 else
29458   ac_cv_lib_jpeg_jpeg_read_header=no
29459 fi
29460 rm -f core conftest.err conftest.$ac_objext \
29461     conftest$ac_exeext conftest.$ac_ext
29462 LIBS=$ac_check_lib_save_LIBS
29463 fi
29464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29465 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29466 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29467   passed=`expr $passed + 1`
29468 else
29469   failed=`expr $failed + 1`
29470 fi
29471
29472
29473 # Test for compatible JPEG library
29474 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29476 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29477 if ${ac_cv_jpeg_version_ok+:} false; then :
29478   $as_echo_n "(cached) " >&6
29479 else
29480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29481 /* end confdefs.h.  */
29482 #include <stdio.h>
29483 #include <stdlib.h>
29484 #include <jpeglib.h>
29485
29486 int
29487 main ()
29488 {
29489
29490 #if JPEG_LIB_VERSION < 62
29491 #error IJG JPEG library must be version 6b or newer!
29492 #endif
29493 return 0;
29494
29495   ;
29496   return 0;
29497 }
29498 _ACEOF
29499 if ac_fn_c_try_compile "$LINENO"; then :
29500   ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29501 else
29502   ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29503 fi
29504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29505 fi
29506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29507 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29508 fi
29509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29510 $as_echo_n "checking if JPEG package is complete... " >&6; }
29511     if test $passed -gt 0; then
29512         if test $failed -gt 0; then
29513             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29514 $as_echo "$as_me: no -- some components failed test" >&6;}
29515             have_jpeg='no (failed tests)'
29516         else
29517             JPEG_LIBS='-ljpeg'
29518             LIBS="$JPEG_LIBS $LIBS"
29519
29520 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29521
29522             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29523 $as_echo "$as_me: yes" >&6;}
29524             have_jpeg='yes'
29525         fi
29526     else
29527         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29528 $as_echo "$as_me: no" >&6;}
29529     fi
29530 fi
29531  if test "$have_jpeg" = 'yes'; then
29532   JPEG_DELEGATE_TRUE=
29533   JPEG_DELEGATE_FALSE='#'
29534 else
29535   JPEG_DELEGATE_TRUE='#'
29536   JPEG_DELEGATE_FALSE=
29537 fi
29538
29539
29540
29541
29542 #
29543 # Check for JPEG Version 2 delegate library.
29544 #
29545
29546 # Check whether --with-jp2 was given.
29547 if test "${with_jp2+set}" = set; then :
29548   withval=$with_jp2; with_jp2=$withval
29549 else
29550   with_jp2='yes'
29551 fi
29552
29553
29554 if test "$with_jp2" != 'yes'; then
29555     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29556 fi
29557
29558 have_jp2='no'
29559 JP2_LIBS=''
29560 if test "$with_jp2" != 'no'; then
29561     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29562 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29564 $as_echo_n "checking for JPEG Version 2... " >&6; }
29565     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29566 $as_echo "$as_me: " >&6;}
29567     failed=0
29568     passed=0
29569     ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29570 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29571   passed=`expr $passed + 1`
29572 else
29573   failed=`expr $failed + 1`
29574 fi
29575
29576
29577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29578 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29579 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29580   $as_echo_n "(cached) " >&6
29581 else
29582   ac_check_lib_save_LIBS=$LIBS
29583 LIBS="-ljasper  $LIBS"
29584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29585 /* end confdefs.h.  */
29586
29587 /* Override any GCC internal prototype to avoid an error.
29588    Use char because int might match the return type of a GCC
29589    builtin and then its argument prototype would still apply.  */
29590 #ifdef __cplusplus
29591 extern "C"
29592 #endif
29593 char jas_stream_fopen ();
29594 int
29595 main ()
29596 {
29597 return jas_stream_fopen ();
29598   ;
29599   return 0;
29600 }
29601 _ACEOF
29602 if ac_fn_c_try_link "$LINENO"; then :
29603   ac_cv_lib_jasper_jas_stream_fopen=yes
29604 else
29605   ac_cv_lib_jasper_jas_stream_fopen=no
29606 fi
29607 rm -f core conftest.err conftest.$ac_objext \
29608     conftest$ac_exeext conftest.$ac_ext
29609 LIBS=$ac_check_lib_save_LIBS
29610 fi
29611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29612 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29613 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29614   passed=`expr $passed + 1`
29615 else
29616   failed=`expr $failed + 1`
29617 fi
29618
29619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29620 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29621     if test $passed -gt 0; then
29622         if test $failed -gt 0; then
29623             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29624 $as_echo "$as_me: no -- some components failed test" >&6;}
29625             have_jp2='no (failed tests)'
29626         else
29627             JP2_LIBS='-ljasper'
29628             LIBS="$JP2_LIBS $LIBS"
29629
29630 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29631
29632             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29633 $as_echo "$as_me: yes" >&6;}
29634             have_jp2='yes'
29635         fi
29636     else
29637         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29638 $as_echo "$as_me: no" >&6;}
29639     fi
29640 fi
29641  if test "$have_jp2" = 'yes'; then
29642   JP2_DELEGATE_TRUE=
29643   JP2_DELEGATE_FALSE='#'
29644 else
29645   JP2_DELEGATE_TRUE='#'
29646   JP2_DELEGATE_FALSE=
29647 fi
29648
29649
29650
29651
29652 #
29653 # Check for LCMS delegate library.
29654 #
29655 # Disable LCMS.
29656
29657 # Check whether --with-lcms was given.
29658 if test "${with_lcms+set}" = set; then :
29659   withval=$with_lcms; with_lcms=$withval
29660 else
29661   with_lcms='yes'
29662 fi
29663
29664 if test "$with_lcms" != 'yes' ; then
29665     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29666 fi
29667
29668 # Disable LCMS2.
29669
29670 # Check whether --with-lcms2 was given.
29671 if test "${with_lcms2+set}" = set; then :
29672   withval=$with_lcms2; with_lcms2=$withval
29673 else
29674   with_lcms2='yes'
29675 fi
29676
29677 if test "$with_lcms2" != 'yes' ; then
29678     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29679 fi
29680
29681 have_lcms2='no'
29682 LCMS_LIBS=''
29683 if test "$with_lcms2" != 'no'; then
29684     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29685 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29686     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29687 $as_echo_n "checking for LCMS v2... " >&6; }
29688     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29689 $as_echo "$as_me: " >&6;}
29690     failed=0
29691     passed=0
29692     have_lcms_header='no'
29693
29694     # Check for <lcms2.h>
29695     ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29696 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29697   have_lcms_header='yes'
29698 fi
29699
29700
29701     if test "$have_lcms_header" = 'yes'; then
29702
29703 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29704
29705        passed=`expr $passed + 1`
29706     fi
29707
29708     # Check for <lcms2/lcms2.h)
29709     if test "$have_lcms_header" != 'yes'; then
29710       ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29711 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29712   have_lcms_header='yes'
29713 fi
29714
29715
29716       if test "$have_lcms_header" = 'yes'; then
29717         passed=`expr $passed + 1`
29718
29719 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29720
29721       fi
29722     fi
29723
29724     # Failed to find lcms header?
29725     if test "$have_lcms_header" != 'yes'; then
29726       failed=`expr $failed + 1`
29727     fi
29728
29729     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29730 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29731 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29732   $as_echo_n "(cached) " >&6
29733 else
29734   ac_check_lib_save_LIBS=$LIBS
29735 LIBS="-llcms2  $LIBS"
29736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29737 /* end confdefs.h.  */
29738
29739 /* Override any GCC internal prototype to avoid an error.
29740    Use char because int might match the return type of a GCC
29741    builtin and then its argument prototype would still apply.  */
29742 #ifdef __cplusplus
29743 extern "C"
29744 #endif
29745 char cmsSetLogErrorHandler ();
29746 int
29747 main ()
29748 {
29749 return cmsSetLogErrorHandler ();
29750   ;
29751   return 0;
29752 }
29753 _ACEOF
29754 if ac_fn_c_try_link "$LINENO"; then :
29755   ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29756 else
29757   ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29758 fi
29759 rm -f core conftest.err conftest.$ac_objext \
29760     conftest$ac_exeext conftest.$ac_ext
29761 LIBS=$ac_check_lib_save_LIBS
29762 fi
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29764 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29765 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29766   passed=`expr $passed + 1`
29767 else
29768   failed=`expr $failed + 1`
29769 fi
29770
29771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29772 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29773     if test $passed -gt 0; then
29774       if test $failed -gt 0; then
29775         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29776 $as_echo "$as_me: no -- some components failed test" >&6;}
29777         have_lcms2='no (failed tests)'
29778       else
29779         LCMS_LIBS='-llcms2'
29780         LIBS="$LCMS_LIBS $LIBS"
29781         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29782 $as_echo "$as_me: yes" >&6;}
29783         have_lcms2='yes'
29784       fi
29785     else
29786       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29787 $as_echo "$as_me: no" >&6;}
29788     fi
29789 fi
29790
29791 #
29792 # Check for LCMS v1 (1.11 or later)
29793 #
29794 if test $have_lcms2 = 'yes'; then
29795   with_lcms='no'
29796 fi
29797
29798 have_lcms='no'
29799 if test "$with_lcms" != 'no'; then
29800     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29801 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29803 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29804     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29805 $as_echo "$as_me: " >&6;}
29806     failed=0
29807     passed=0
29808     have_lcms_header='no'
29809
29810     # Check for <lcms.h>
29811     if test "$have_lcms_header" != 'yes'; then
29812       ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29813 if test "x$ac_cv_header_lcms_h" = xyes; then :
29814   have_lcms_header='yes'
29815 fi
29816
29817
29818       if test "$have_lcms_header" = 'yes'; then
29819         passed=`expr $passed + 1`
29820
29821 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29822
29823       fi
29824     fi
29825
29826     # Check for <lcms/lcms.h>
29827     if test "$have_lcms_header" != 'yes'; then
29828       ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29829 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29830   have_lcms_header='yes'
29831 fi
29832
29833
29834       if test "$have_lcms_header" = 'yes'; then
29835         passed=`expr $passed + 1`
29836
29837 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29838
29839       fi
29840     fi
29841
29842     # Failed to find lcms header?
29843     if test "$have_lcms_header" != 'yes'; then
29844       failed=`expr $failed + 1`
29845     fi
29846
29847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29848 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29849 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29850   $as_echo_n "(cached) " >&6
29851 else
29852   ac_check_lib_save_LIBS=$LIBS
29853 LIBS="-llcms  $LIBS"
29854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29855 /* end confdefs.h.  */
29856
29857 /* Override any GCC internal prototype to avoid an error.
29858    Use char because int might match the return type of a GCC
29859    builtin and then its argument prototype would still apply.  */
29860 #ifdef __cplusplus
29861 extern "C"
29862 #endif
29863 char cmsSetErrorHandler ();
29864 int
29865 main ()
29866 {
29867 return cmsSetErrorHandler ();
29868   ;
29869   return 0;
29870 }
29871 _ACEOF
29872 if ac_fn_c_try_link "$LINENO"; then :
29873   ac_cv_lib_lcms_cmsSetErrorHandler=yes
29874 else
29875   ac_cv_lib_lcms_cmsSetErrorHandler=no
29876 fi
29877 rm -f core conftest.err conftest.$ac_objext \
29878     conftest$ac_exeext conftest.$ac_ext
29879 LIBS=$ac_check_lib_save_LIBS
29880 fi
29881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29882 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29883 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29884   passed=`expr $passed + 1`
29885 else
29886   failed=`expr $failed + 1`
29887 fi
29888
29889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29890 $as_echo_n "checking if LCMS package is complete... " >&6; }
29891     if test $passed -gt 0; then
29892       if test $failed -gt 0; then
29893         { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29894 $as_echo "$as_me: no -- some components failed test" >&6;}
29895         have_lcms='no (failed tests)'
29896       else
29897         LCMS_LIBS='-llcms'
29898         LIBS="$LCMS_LIBS $LIBS"
29899         { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29900 $as_echo "$as_me: yes" >&6;}
29901         have_lcms='yes'
29902       fi
29903     else
29904       { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29905 $as_echo "$as_me: no" >&6;}
29906     fi
29907 fi
29908
29909  if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29910   LCMS_DELEGATE_TRUE=
29911   LCMS_DELEGATE_FALSE='#'
29912 else
29913   LCMS_DELEGATE_TRUE='#'
29914   LCMS_DELEGATE_FALSE=
29915 fi
29916
29917 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29918
29919 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29920
29921 fi
29922
29923
29924
29925
29926 #
29927 # Check for the LQR (Liquid Rescale) delegate library.
29928 #
29929
29930 # Check whether --with-lqr was given.
29931 if test "${with_lqr+set}" = set; then :
29932   withval=$with_lqr; with_lqr=$withval
29933 else
29934   with_lqr='yes'
29935 fi
29936
29937
29938 if test "$with_lqr" != 'yes'; then
29939     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29940 fi
29941
29942 have_lqr='no'
29943 LQR_CFLAGS=""
29944 LQR_LIBS=""
29945 LQR_PKG=""
29946 if test "x$with_lqr" = "xyes"; then
29947     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29948 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
29949
29950 pkg_failed=no
29951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29952 $as_echo_n "checking for LQR... " >&6; }
29953
29954 if test -n "$LQR_CFLAGS"; then
29955     pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29956  elif test -n "$PKG_CONFIG"; then
29957     if test -n "$PKG_CONFIG" && \
29958     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29959   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29960   ac_status=$?
29961   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29962   test $ac_status = 0; }; then
29963   pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29964 else
29965   pkg_failed=yes
29966 fi
29967  else
29968     pkg_failed=untried
29969 fi
29970 if test -n "$LQR_LIBS"; then
29971     pkg_cv_LQR_LIBS="$LQR_LIBS"
29972  elif test -n "$PKG_CONFIG"; then
29973     if test -n "$PKG_CONFIG" && \
29974     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29975   ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29976   ac_status=$?
29977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29978   test $ac_status = 0; }; then
29979   pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29980 else
29981   pkg_failed=yes
29982 fi
29983  else
29984     pkg_failed=untried
29985 fi
29986
29987
29988
29989 if test $pkg_failed = yes; then
29990
29991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29992         _pkg_short_errors_supported=yes
29993 else
29994         _pkg_short_errors_supported=no
29995 fi
29996         if test $_pkg_short_errors_supported = yes; then
29997                 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29998         else
29999                 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30000         fi
30001         # Put the nasty error message in config.log where it belongs
30002         echo "$LQR_PKG_ERRORS" >&5
30003
30004         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30005 $as_echo "no" >&6; }
30006                 have_lqr=no
30007 elif test $pkg_failed = untried; then
30008         have_lqr=no
30009 else
30010         LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30011         LQR_LIBS=$pkg_cv_LQR_LIBS
30012         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30013 $as_echo "yes" >&6; }
30014         have_lqr=yes
30015 fi
30016     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30017 $as_echo "$as_me: " >&6;}
30018 fi
30019
30020 if test "$have_lqr" = 'yes'; then
30021
30022 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
30023
30024     CFLAGS="$LQR_CFLAGS $CFLAGS"
30025 fi
30026
30027  if test "$have_lqr" = 'yes'; then
30028   LQR_DELEGATE_TRUE=
30029   LQR_DELEGATE_FALSE='#'
30030 else
30031   LQR_DELEGATE_TRUE='#'
30032   LQR_DELEGATE_FALSE=
30033 fi
30034
30035
30036
30037
30038
30039 # Disable LZMA (lzma library)
30040
30041 # Check whether --with-lzma was given.
30042 if test "${with_lzma+set}" = set; then :
30043   withval=$with_lzma; with_lzma=$withval
30044 else
30045   with_lzma='yes'
30046 fi
30047
30048 if test "$with_lzma" != 'yes' ; then
30049     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30050 fi
30051
30052 #
30053 # Check for LZMA
30054 #
30055 have_lzma='no'
30056 LZMA_LIBS=''
30057 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
30058     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30059 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
30061 $as_echo_n "checking for LZMA... " >&6; }
30062   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30063 $as_echo "$as_me: " >&6;}
30064   failed=0
30065   passed=0
30066   ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
30067 if test "x$ac_cv_header_lzma_h" = xyes; then :
30068   passed=`expr $passed + 1`
30069 else
30070   failed=`expr $failed + 1`
30071 fi
30072
30073
30074   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
30075 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
30076 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
30077   $as_echo_n "(cached) " >&6
30078 else
30079   ac_check_lib_save_LIBS=$LIBS
30080 LIBS="-llzma  $LIBS"
30081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30082 /* end confdefs.h.  */
30083
30084 /* Override any GCC internal prototype to avoid an error.
30085    Use char because int might match the return type of a GCC
30086    builtin and then its argument prototype would still apply.  */
30087 #ifdef __cplusplus
30088 extern "C"
30089 #endif
30090 char lzma_code ();
30091 int
30092 main ()
30093 {
30094 return lzma_code ();
30095   ;
30096   return 0;
30097 }
30098 _ACEOF
30099 if ac_fn_c_try_link "$LINENO"; then :
30100   ac_cv_lib_lzma_lzma_code=yes
30101 else
30102   ac_cv_lib_lzma_lzma_code=no
30103 fi
30104 rm -f core conftest.err conftest.$ac_objext \
30105     conftest$ac_exeext conftest.$ac_ext
30106 LIBS=$ac_check_lib_save_LIBS
30107 fi
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
30109 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
30110 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
30111   passed=`expr $passed + 1`
30112 else
30113   failed=`expr $failed + 1`
30114 fi
30115
30116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
30117 $as_echo_n "checking if LZMA package is complete... " >&6; }
30118   if test $passed -gt 0; then
30119     if test $failed -gt 0; then
30120       { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30121 $as_echo "$as_me: no -- some components failed test" >&6;}
30122       have_lzma='no (failed tests)'
30123     else
30124       LZMA_LIBS='-llzma'
30125       LIBS="$LZMA_LIBS $LIBS"
30126
30127 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30128
30129       { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30130 $as_echo "$as_me: yes" >&6;}
30131       have_lzma='yes'
30132     fi
30133   else
30134     { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30135 $as_echo "$as_me: no" >&6;}
30136   fi
30137 fi
30138  if test "$have_lzma" = 'yes'; then
30139   LZMA_DELEGATE_TRUE=
30140   LZMA_DELEGATE_FALSE='#'
30141 else
30142   LZMA_DELEGATE_TRUE='#'
30143   LZMA_DELEGATE_FALSE=
30144 fi
30145
30146
30147
30148
30149 #
30150 # Check for the OpenEXR delegate library.
30151 #
30152
30153 # Check whether --with-openexr was given.
30154 if test "${with_openexr+set}" = set; then :
30155   withval=$with_openexr; with_openexr=$withval
30156 else
30157   with_openexr='yes'
30158 fi
30159
30160
30161 if test "$with_openexr" != 'yes'; then
30162     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30163 fi
30164
30165 have_openexr='no'
30166 OPENEXR_CFLAGS=""
30167 OPENEXR_LIBS=""
30168 OPENEXR_PKG=""
30169 if test "x$with_openexr" = "xyes"; then
30170     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30171 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30172
30173 pkg_failed=no
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30175 $as_echo_n "checking for OPENEXR... " >&6; }
30176
30177 if test -n "$OPENEXR_CFLAGS"; then
30178     pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30179  elif test -n "$PKG_CONFIG"; then
30180     if test -n "$PKG_CONFIG" && \
30181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30182   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30183   ac_status=$?
30184   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30185   test $ac_status = 0; }; then
30186   pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30187 else
30188   pkg_failed=yes
30189 fi
30190  else
30191     pkg_failed=untried
30192 fi
30193 if test -n "$OPENEXR_LIBS"; then
30194     pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30195  elif test -n "$PKG_CONFIG"; then
30196     if test -n "$PKG_CONFIG" && \
30197     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30198   ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30199   ac_status=$?
30200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30201   test $ac_status = 0; }; then
30202   pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30203 else
30204   pkg_failed=yes
30205 fi
30206  else
30207     pkg_failed=untried
30208 fi
30209
30210
30211
30212 if test $pkg_failed = yes; then
30213
30214 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30215         _pkg_short_errors_supported=yes
30216 else
30217         _pkg_short_errors_supported=no
30218 fi
30219         if test $_pkg_short_errors_supported = yes; then
30220                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30221         else
30222                 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30223         fi
30224         # Put the nasty error message in config.log where it belongs
30225         echo "$OPENEXR_PKG_ERRORS" >&5
30226
30227         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30228 $as_echo "no" >&6; }
30229                 have_openexr=no
30230 elif test $pkg_failed = untried; then
30231         have_openexr=no
30232 else
30233         OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30234         OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30235         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30236 $as_echo "yes" >&6; }
30237         have_openexr=yes
30238 fi
30239     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30240 $as_echo "$as_me: " >&6;}
30241 fi
30242
30243 if test "$have_openexr" = 'yes'; then
30244
30245 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30246
30247     if test "$with_modules" = 'no'; then
30248         CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30249     fi
30250 fi
30251
30252  if test "$have_openexr" = 'yes'; then
30253   OPENEXR_DELEGATE_TRUE=
30254   OPENEXR_DELEGATE_FALSE='#'
30255 else
30256   OPENEXR_DELEGATE_TRUE='#'
30257   OPENEXR_DELEGATE_FALSE=
30258 fi
30259
30260
30261
30262
30263
30264 #
30265 # Check for PANGO delegate library.
30266 #
30267
30268 # Check whether --with-pango was given.
30269 if test "${with_pango+set}" = set; then :
30270   withval=$with_pango; with_pango=$withval
30271 else
30272   with_pango=$have_x
30273 fi
30274
30275
30276 if test "$with_pango" != 'yes'; then
30277     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30278 fi
30279
30280 have_pango='no'
30281 have_pangoft2='no'
30282 PANGO_CFLAGS=""
30283 PANGO_LIBS=""
30284 PANGO_PKG=""
30285 if test "x$with_pango" = "xyes"; then
30286     { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30287 $as_echo "-------------------------------------------------------------" >&6; }
30288
30289 pkg_failed=no
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30291 $as_echo_n "checking for PANGO... " >&6; }
30292
30293 if test -n "$PANGO_CFLAGS"; then
30294     pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30295  elif test -n "$PKG_CONFIG"; then
30296     if test -n "$PKG_CONFIG" && \
30297     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30298   ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30299   ac_status=$?
30300   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30301   test $ac_status = 0; }; then
30302   pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango" 2>/dev/null`
30303 else
30304   pkg_failed=yes
30305 fi
30306  else
30307     pkg_failed=untried
30308 fi
30309 if test -n "$PANGO_LIBS"; then
30310     pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30311  elif test -n "$PKG_CONFIG"; then
30312     if test -n "$PKG_CONFIG" && \
30313     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango\""; } >&5
30314   ($PKG_CONFIG --exists --print-errors "pango") 2>&5
30315   ac_status=$?
30316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30317   test $ac_status = 0; }; then
30318   pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango" 2>/dev/null`
30319 else
30320   pkg_failed=yes
30321 fi
30322  else
30323     pkg_failed=untried
30324 fi
30325
30326
30327
30328 if test $pkg_failed = yes; then
30329
30330 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30331         _pkg_short_errors_supported=yes
30332 else
30333         _pkg_short_errors_supported=no
30334 fi
30335         if test $_pkg_short_errors_supported = yes; then
30336                 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango" 2>&1`
30337         else
30338                 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango" 2>&1`
30339         fi
30340         # Put the nasty error message in config.log where it belongs
30341         echo "$PANGO_PKG_ERRORS" >&5
30342
30343         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30344 $as_echo "no" >&6; }
30345                 have_pango=no
30346 elif test $pkg_failed = untried; then
30347         have_pango=no
30348 else
30349         PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30350         PANGO_LIBS=$pkg_cv_PANGO_LIBS
30351         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30352 $as_echo "yes" >&6; }
30353         have_pango=yes
30354 fi
30355     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30356 $as_echo "" >&6; }
30357
30358 pkg_failed=no
30359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30360 $as_echo_n "checking for PANGO... " >&6; }
30361
30362 if test -n "$PANGO_CFLAGS"; then
30363     pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30364  elif test -n "$PKG_CONFIG"; then
30365     if test -n "$PKG_CONFIG" && \
30366     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30367   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30368   ac_status=$?
30369   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30370   test $ac_status = 0; }; then
30371   pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
30372 else
30373   pkg_failed=yes
30374 fi
30375  else
30376     pkg_failed=untried
30377 fi
30378 if test -n "$PANGO_LIBS"; then
30379     pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30380  elif test -n "$PKG_CONFIG"; then
30381     if test -n "$PKG_CONFIG" && \
30382     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangoft2\""; } >&5
30383   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
30384   ac_status=$?
30385   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30386   test $ac_status = 0; }; then
30387   pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
30388 else
30389   pkg_failed=yes
30390 fi
30391  else
30392     pkg_failed=untried
30393 fi
30394
30395
30396
30397 if test $pkg_failed = yes; then
30398
30399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30400         _pkg_short_errors_supported=yes
30401 else
30402         _pkg_short_errors_supported=no
30403 fi
30404         if test $_pkg_short_errors_supported = yes; then
30405                 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangoft2" 2>&1`
30406         else
30407                 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangoft2" 2>&1`
30408         fi
30409         # Put the nasty error message in config.log where it belongs
30410         echo "$PANGO_PKG_ERRORS" >&5
30411
30412         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30413 $as_echo "no" >&6; }
30414                 have_pangoft2=no
30415 elif test $pkg_failed = untried; then
30416         have_pangoft2=no
30417 else
30418         PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30419         PANGO_LIBS=$pkg_cv_PANGO_LIBS
30420         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30421 $as_echo "yes" >&6; }
30422         have_pangoft2=yes
30423 fi
30424     { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30425 $as_echo "" >&6; }
30426 fi
30427
30428 if test "$have_pango" = 'yes'; then
30429
30430 $as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30431
30432     if test "$with_modules" = 'no'; then
30433         CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30434     fi
30435 fi
30436
30437 if test "$have_pangoft2" = 'yes'; then
30438
30439 $as_echo "#define PANGOFT2_DELEGATE 1" >>confdefs.h
30440
30441     if test "$with_modules" = 'no'; then
30442         CPPFLAGS="$PANGOFT2_CFLAGS $CPPFLAGS"
30443     fi
30444 fi
30445
30446  if test "$have_pango" = 'yes'; then
30447   PANGO_DELEGATE_TRUE=
30448   PANGO_DELEGATE_FALSE='#'
30449 else
30450   PANGO_DELEGATE_TRUE='#'
30451   PANGO_DELEGATE_FALSE=
30452 fi
30453
30454  if test "$have_pangoft2" = 'yes'; then
30455   PANGOFT2_DELEGATE_TRUE=
30456   PANGOFT2_DELEGATE_FALSE='#'
30457 else
30458   PANGOFT2_DELEGATE_TRUE='#'
30459   PANGOFT2_DELEGATE_FALSE=
30460 fi
30461
30462
30463
30464
30465
30466 #
30467 # Check for PNG delegate library.
30468 #
30469
30470 # Check whether --with-png was given.
30471 if test "${with_png+set}" = set; then :
30472   withval=$with_png; with_png=$withval
30473 else
30474   with_png='yes'
30475 fi
30476
30477
30478 if test "$with_png" != 'yes'; then
30479     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30480 fi
30481
30482 have_png='no'
30483 PNG_LIBS=''
30484
30485 if test "$with_png" != 'no' -a  "$have_zlib" != 'no' ; then
30486   { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30487 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30489 $as_echo_n "checking for PNG support ... " >&6; }
30490   { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30491 $as_echo "$as_me: " >&6;}
30492   failed=0
30493   passed=0
30494   ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30495 if test "x$ac_cv_header_png_h" = xyes; then :
30496   passed=`expr $passed + 1`
30497 else
30498   failed=`expr $failed + 1`
30499 fi
30500
30501
30502
30503   if test $passed -gt 0; then
30504     for var in 5 4 2 '' ; do
30505       if test "$have_png" = 'no' ; then
30506         if test "x${var}" = 'x' ; then
30507           pnglib='png'
30508         else
30509           pnglib="png1${var}"
30510         fi
30511
30512 #       Test for compatible LIBPNG library
30513         failed=0
30514         passed=0
30515         if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
30516           if test "${pnglib}" != 'png' ; then
30517             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30518 $as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30519             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30520 /* end confdefs.h.  */
30521 #include <stdio.h>
30522 #include <stdlib.h>
30523 #include <png.h>
30524
30525 int
30526 main ()
30527 {
30528
30529 #if PNG_LIBPNG_VER_MINOR != ${var}
30530 #error LIBPNG library must be version 1${var}!
30531 Kaboom, Kaboom
30532 #endif
30533 return 0;
30534
30535   ;
30536   return 0;
30537 }
30538 _ACEOF
30539 if ac_fn_c_try_compile "$LINENO"; then :
30540               ac_cv_libpng_ok='yes'
30541 else
30542   ac_cv_libpng_ok='no'
30543 fi
30544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545             if test "$ac_cv_libpng_ok" = 'yes' ; then
30546               passed=`expr $passed + 1`
30547               { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30548 $as_echo "$as_me: yes" >&6;}
30549             else
30550               failed=`expr $failed + 1`
30551               { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30552 $as_echo "$as_me: no" >&6;}
30553             fi
30554           else
30555             passed=`expr $passed + 1`
30556             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30557 $as_echo "$as_me: yes" >&6;}
30558           fi
30559         fi
30560
30561         if test $passed -gt 0 -a $failed -le 0; then
30562           if test "1${var}" = '15' ; then
30563             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30564 $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30565 if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30566   $as_echo_n "(cached) " >&6
30567 else
30568   ac_check_lib_save_LIBS=$LIBS
30569 LIBS="-lpng15  $LIBS"
30570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30571 /* end confdefs.h.  */
30572
30573 /* Override any GCC internal prototype to avoid an error.
30574    Use char because int might match the return type of a GCC
30575    builtin and then its argument prototype would still apply.  */
30576 #ifdef __cplusplus
30577 extern "C"
30578 #endif
30579 char png_get_io_ptr ();
30580 int
30581 main ()
30582 {
30583 return png_get_io_ptr ();
30584   ;
30585   return 0;
30586 }
30587 _ACEOF
30588 if ac_fn_c_try_link "$LINENO"; then :
30589   ac_cv_lib_png15_png_get_io_ptr=yes
30590 else
30591   ac_cv_lib_png15_png_get_io_ptr=no
30592 fi
30593 rm -f core conftest.err conftest.$ac_objext \
30594     conftest$ac_exeext conftest.$ac_ext
30595 LIBS=$ac_check_lib_save_LIBS
30596 fi
30597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30598 $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30599 if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30600   passed=`expr $passed + 1`
30601 else
30602   failed=`expr $failed + 1`
30603 fi
30604
30605             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30606 $as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30607 if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30608   $as_echo_n "(cached) " >&6
30609 else
30610   ac_check_lib_save_LIBS=$LIBS
30611 LIBS="-lpng15  $LIBS"
30612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30613 /* end confdefs.h.  */
30614
30615 /* Override any GCC internal prototype to avoid an error.
30616    Use char because int might match the return type of a GCC
30617    builtin and then its argument prototype would still apply.  */
30618 #ifdef __cplusplus
30619 extern "C"
30620 #endif
30621 char png_longjmp ();
30622 int
30623 main ()
30624 {
30625 return png_longjmp ();
30626   ;
30627   return 0;
30628 }
30629 _ACEOF
30630 if ac_fn_c_try_link "$LINENO"; then :
30631   ac_cv_lib_png15_png_longjmp=yes
30632 else
30633   ac_cv_lib_png15_png_longjmp=no
30634 fi
30635 rm -f core conftest.err conftest.$ac_objext \
30636     conftest$ac_exeext conftest.$ac_ext
30637 LIBS=$ac_check_lib_save_LIBS
30638 fi
30639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30640 $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30641 if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30642   passed=`expr $passed + 1`
30643 else
30644   failed=`expr $failed + 1`
30645 fi
30646
30647           fi
30648           if test "1${var}" = '14' ; then
30649             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30650 $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30651 if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30652   $as_echo_n "(cached) " >&6
30653 else
30654   ac_check_lib_save_LIBS=$LIBS
30655 LIBS="-lpng14  $LIBS"
30656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30657 /* end confdefs.h.  */
30658
30659 /* Override any GCC internal prototype to avoid an error.
30660    Use char because int might match the return type of a GCC
30661    builtin and then its argument prototype would still apply.  */
30662 #ifdef __cplusplus
30663 extern "C"
30664 #endif
30665 char png_get_io_ptr ();
30666 int
30667 main ()
30668 {
30669 return png_get_io_ptr ();
30670   ;
30671   return 0;
30672 }
30673 _ACEOF
30674 if ac_fn_c_try_link "$LINENO"; then :
30675   ac_cv_lib_png14_png_get_io_ptr=yes
30676 else
30677   ac_cv_lib_png14_png_get_io_ptr=no
30678 fi
30679 rm -f core conftest.err conftest.$ac_objext \
30680     conftest$ac_exeext conftest.$ac_ext
30681 LIBS=$ac_check_lib_save_LIBS
30682 fi
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30684 $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30685 if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30686   passed=`expr $passed + 1`
30687 else
30688   failed=`expr $failed + 1`
30689 fi
30690
30691             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30692 $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30693 if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30694   $as_echo_n "(cached) " >&6
30695 else
30696   ac_check_lib_save_LIBS=$LIBS
30697 LIBS="-lpng14  $LIBS"
30698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30699 /* end confdefs.h.  */
30700
30701 /* Override any GCC internal prototype to avoid an error.
30702    Use char because int might match the return type of a GCC
30703    builtin and then its argument prototype would still apply.  */
30704 #ifdef __cplusplus
30705 extern "C"
30706 #endif
30707 char png_get_io_state ();
30708 int
30709 main ()
30710 {
30711 return png_get_io_state ();
30712   ;
30713   return 0;
30714 }
30715 _ACEOF
30716 if ac_fn_c_try_link "$LINENO"; then :
30717   ac_cv_lib_png14_png_get_io_state=yes
30718 else
30719   ac_cv_lib_png14_png_get_io_state=no
30720 fi
30721 rm -f core conftest.err conftest.$ac_objext \
30722     conftest$ac_exeext conftest.$ac_ext
30723 LIBS=$ac_check_lib_save_LIBS
30724 fi
30725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30726 $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30727 if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30728   passed=`expr $passed + 1`
30729 else
30730   failed=`expr $failed + 1`
30731 fi
30732
30733           fi
30734           if test "1${var}" = '12' ; then
30735             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30736 $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30737 if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30738   $as_echo_n "(cached) " >&6
30739 else
30740   ac_check_lib_save_LIBS=$LIBS
30741 LIBS="-lpng12  $LIBS"
30742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h.  */
30744
30745 /* Override any GCC internal prototype to avoid an error.
30746    Use char because int might match the return type of a GCC
30747    builtin and then its argument prototype would still apply.  */
30748 #ifdef __cplusplus
30749 extern "C"
30750 #endif
30751 char png_get_io_ptr ();
30752 int
30753 main ()
30754 {
30755 return png_get_io_ptr ();
30756   ;
30757   return 0;
30758 }
30759 _ACEOF
30760 if ac_fn_c_try_link "$LINENO"; then :
30761   ac_cv_lib_png12_png_get_io_ptr=yes
30762 else
30763   ac_cv_lib_png12_png_get_io_ptr=no
30764 fi
30765 rm -f core conftest.err conftest.$ac_objext \
30766     conftest$ac_exeext conftest.$ac_ext
30767 LIBS=$ac_check_lib_save_LIBS
30768 fi
30769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30770 $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30771 if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30772   passed=`expr $passed + 1`
30773 else
30774   failed=`expr $failed + 1`
30775 fi
30776
30777           fi
30778           if test "1${var}" = '1' ; then
30779               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30780 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30781 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30782   $as_echo_n "(cached) " >&6
30783 else
30784   ac_check_lib_save_LIBS=$LIBS
30785 LIBS="-lpng  $LIBS"
30786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30787 /* end confdefs.h.  */
30788
30789 /* Override any GCC internal prototype to avoid an error.
30790    Use char because int might match the return type of a GCC
30791    builtin and then its argument prototype would still apply.  */
30792 #ifdef __cplusplus
30793 extern "C"
30794 #endif
30795 char png_get_io_ptr ();
30796 int
30797 main ()
30798 {
30799 return png_get_io_ptr ();
30800   ;
30801   return 0;
30802 }
30803 _ACEOF
30804 if ac_fn_c_try_link "$LINENO"; then :
30805   ac_cv_lib_png_png_get_io_ptr=yes
30806 else
30807   ac_cv_lib_png_png_get_io_ptr=no
30808 fi
30809 rm -f core conftest.err conftest.$ac_objext \
30810     conftest$ac_exeext conftest.$ac_ext
30811 LIBS=$ac_check_lib_save_LIBS
30812 fi
30813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30814 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30815 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30816   passed=`expr $passed + 1`
30817 else
30818   failed=`expr $failed + 1`
30819 fi
30820
30821           fi
30822           if test $passed -gt 0 -a $failed -le 0 ; then
30823             { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30824 $as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30825             if test $passed -gt 0 ; then
30826               if test $failed -gt 0 ; then
30827                   { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30828 $as_echo "$as_me: no -- some components failed test" >&6;}
30829                   have_png='no (failed tests)'
30830               else
30831                   PNG_LIBS="-l${pnglib}"
30832                   LIBS="$PNG_LIBS $LIBS"
30833
30834 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30835
30836                   { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30837 $as_echo "$as_me: yes" >&6;}
30838                   have_png='yes'
30839               fi
30840             fi
30841           fi
30842         fi
30843       fi
30844     done
30845   fi
30846 fi
30847
30848  if test "$have_png" = 'yes'; then
30849   PNG_DELEGATE_TRUE=
30850   PNG_DELEGATE_FALSE='#'
30851 else
30852   PNG_DELEGATE_TRUE='#'
30853   PNG_DELEGATE_FALSE=
30854 fi
30855
30856
30857
30858
30859
30860 #
30861 # Check for RSVG delegate library.
30862 #
30863
30864 # Check whether --with-rsvg was given.
30865 if test "${with_rsvg+set}" = set; then :
30866   withval=$with_rsvg; with_rsvg=$withval
30867 else
30868   with_rsvg=$have_x
30869 fi
30870
30871
30872 if test "$with_rsvg" != 'yes'; then
30873     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30874 fi
30875
30876 have_rsvg='no'
30877 have_cairo='no'
30878 RSVG_CFLAGS=""
30879 RSVG_LIBS=""
30880 RSVG_PKG=""
30881 if test "x$with_rsvg" = "xyes"; then
30882     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30883 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
30884
30885 pkg_failed=no
30886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30887 $as_echo_n "checking for RSVG... " >&6; }
30888
30889 if test -n "$RSVG_CFLAGS"; then
30890     pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30891  elif test -n "$PKG_CONFIG"; then
30892     if test -n "$PKG_CONFIG" && \
30893     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30894   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30895   ac_status=$?
30896   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30897   test $ac_status = 0; }; then
30898   pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30899 else
30900   pkg_failed=yes
30901 fi
30902  else
30903     pkg_failed=untried
30904 fi
30905 if test -n "$RSVG_LIBS"; then
30906     pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30907  elif test -n "$PKG_CONFIG"; then
30908     if test -n "$PKG_CONFIG" && \
30909     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30910   ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30911   ac_status=$?
30912   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30913   test $ac_status = 0; }; then
30914   pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30915 else
30916   pkg_failed=yes
30917 fi
30918  else
30919     pkg_failed=untried
30920 fi
30921
30922
30923
30924 if test $pkg_failed = yes; then
30925
30926 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30927         _pkg_short_errors_supported=yes
30928 else
30929         _pkg_short_errors_supported=no
30930 fi
30931         if test $_pkg_short_errors_supported = yes; then
30932                 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30933         else
30934                 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30935         fi
30936         # Put the nasty error message in config.log where it belongs
30937         echo "$RSVG_PKG_ERRORS" >&5
30938
30939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30940 $as_echo "no" >&6; }
30941                 have_rsvg=no
30942 elif test $pkg_failed = untried; then
30943         have_rsvg=no
30944 else
30945         RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30946         RSVG_LIBS=$pkg_cv_RSVG_LIBS
30947         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30948 $as_echo "yes" >&6; }
30949         have_rsvg=yes
30950 fi
30951     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30952 $as_echo "$as_me: " >&6;}
30953
30954 pkg_failed=no
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30956 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30957
30958 if test -n "$CAIRO_SVG_CFLAGS"; then
30959     pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30960  elif test -n "$PKG_CONFIG"; then
30961     if test -n "$PKG_CONFIG" && \
30962     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30963   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30964   ac_status=$?
30965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30966   test $ac_status = 0; }; then
30967   pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30968 else
30969   pkg_failed=yes
30970 fi
30971  else
30972     pkg_failed=untried
30973 fi
30974 if test -n "$CAIRO_SVG_LIBS"; then
30975     pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30976  elif test -n "$PKG_CONFIG"; then
30977     if test -n "$PKG_CONFIG" && \
30978     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30979   ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30980   ac_status=$?
30981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30982   test $ac_status = 0; }; then
30983   pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30984 else
30985   pkg_failed=yes
30986 fi
30987  else
30988     pkg_failed=untried
30989 fi
30990
30991
30992
30993 if test $pkg_failed = yes; then
30994
30995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30996         _pkg_short_errors_supported=yes
30997 else
30998         _pkg_short_errors_supported=no
30999 fi
31000         if test $_pkg_short_errors_supported = yes; then
31001                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31002         else
31003                 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31004         fi
31005         # Put the nasty error message in config.log where it belongs
31006         echo "$CAIRO_SVG_PKG_ERRORS" >&5
31007
31008         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31009 $as_echo "no" >&6; }
31010                 have_cairo=no
31011 elif test $pkg_failed = untried; then
31012         have_cairo=no
31013 else
31014         CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31015         CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31016         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31017 $as_echo "yes" >&6; }
31018         have_cairo=yes
31019 fi
31020     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31021 $as_echo "$as_me: " >&6;}
31022 fi
31023
31024 if test "$have_rsvg" = 'yes'; then
31025
31026 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
31027
31028     if test "$with_modules" = 'no'; then
31029         CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31030     fi
31031 fi
31032
31033 if test "$have_cairo" = 'yes'; then
31034
31035 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
31036
31037     if test "$with_modules" = 'no'; then
31038         CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31039     fi
31040 fi
31041
31042  if test "$have_rsvg" = 'yes'; then
31043   RSVG_DELEGATE_TRUE=
31044   RSVG_DELEGATE_FALSE='#'
31045 else
31046   RSVG_DELEGATE_TRUE='#'
31047   RSVG_DELEGATE_FALSE=
31048 fi
31049
31050  if test "$have_cairo" = 'yes'; then
31051   CAIRO_DELEGATE_TRUE=
31052   CAIRO_DELEGATE_FALSE='#'
31053 else
31054   CAIRO_DELEGATE_TRUE='#'
31055   CAIRO_DELEGATE_FALSE=
31056 fi
31057
31058
31059
31060
31061
31062 #
31063 # Check for TIFF delegate library.
31064 #
31065
31066 # Check whether --with-tiff was given.
31067 if test "${with_tiff+set}" = set; then :
31068   withval=$with_tiff; with_tiff=$withval
31069 else
31070   with_tiff='yes'
31071 fi
31072
31073
31074 if test "$with_tiff" != 'yes'; then
31075     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31076 fi
31077
31078 have_tiff='no'
31079 TIFF_LIBS=''
31080 if test "$with_tiff" != 'no'; then
31081     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31082 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31083     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
31084 $as_echo_n "checking for TIFF... " >&6; }
31085     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31086 $as_echo "$as_me: " >&6;}
31087     failed=0
31088     passed=0
31089     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
31090 if test "x$ac_cv_header_tiff_h" = xyes; then :
31091   passed=`expr $passed + 1`
31092 else
31093   failed=`expr $failed + 1`
31094 fi
31095
31096
31097     ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
31098 if test "x$ac_cv_header_tiffio_h" = xyes; then :
31099   passed=`expr $passed + 1`
31100 else
31101   failed=`expr $failed + 1`
31102 fi
31103
31104
31105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
31106 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
31107 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
31108   $as_echo_n "(cached) " >&6
31109 else
31110   ac_check_lib_save_LIBS=$LIBS
31111 LIBS="-ltiff  $LIBS"
31112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31113 /* end confdefs.h.  */
31114
31115 /* Override any GCC internal prototype to avoid an error.
31116    Use char because int might match the return type of a GCC
31117    builtin and then its argument prototype would still apply.  */
31118 #ifdef __cplusplus
31119 extern "C"
31120 #endif
31121 char TIFFOpen ();
31122 int
31123 main ()
31124 {
31125 return TIFFOpen ();
31126   ;
31127   return 0;
31128 }
31129 _ACEOF
31130 if ac_fn_c_try_link "$LINENO"; then :
31131   ac_cv_lib_tiff_TIFFOpen=yes
31132 else
31133   ac_cv_lib_tiff_TIFFOpen=no
31134 fi
31135 rm -f core conftest.err conftest.$ac_objext \
31136     conftest$ac_exeext conftest.$ac_ext
31137 LIBS=$ac_check_lib_save_LIBS
31138 fi
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31140 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
31141 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
31142   passed=`expr $passed + 1`
31143 else
31144   failed=`expr $failed + 1`
31145 fi
31146
31147     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
31148 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
31149 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
31150   $as_echo_n "(cached) " >&6
31151 else
31152   ac_check_lib_save_LIBS=$LIBS
31153 LIBS="-ltiff  $LIBS"
31154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31155 /* end confdefs.h.  */
31156
31157 /* Override any GCC internal prototype to avoid an error.
31158    Use char because int might match the return type of a GCC
31159    builtin and then its argument prototype would still apply.  */
31160 #ifdef __cplusplus
31161 extern "C"
31162 #endif
31163 char TIFFClientOpen ();
31164 int
31165 main ()
31166 {
31167 return TIFFClientOpen ();
31168   ;
31169   return 0;
31170 }
31171 _ACEOF
31172 if ac_fn_c_try_link "$LINENO"; then :
31173   ac_cv_lib_tiff_TIFFClientOpen=yes
31174 else
31175   ac_cv_lib_tiff_TIFFClientOpen=no
31176 fi
31177 rm -f core conftest.err conftest.$ac_objext \
31178     conftest$ac_exeext conftest.$ac_ext
31179 LIBS=$ac_check_lib_save_LIBS
31180 fi
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
31182 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
31183 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
31184   passed=`expr $passed + 1`
31185 else
31186   failed=`expr $failed + 1`
31187 fi
31188
31189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
31190 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
31191 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
31192   $as_echo_n "(cached) " >&6
31193 else
31194   ac_check_lib_save_LIBS=$LIBS
31195 LIBS="-ltiff  $LIBS"
31196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31197 /* end confdefs.h.  */
31198
31199 /* Override any GCC internal prototype to avoid an error.
31200    Use char because int might match the return type of a GCC
31201    builtin and then its argument prototype would still apply.  */
31202 #ifdef __cplusplus
31203 extern "C"
31204 #endif
31205 char TIFFIsBigEndian ();
31206 int
31207 main ()
31208 {
31209 return TIFFIsBigEndian ();
31210   ;
31211   return 0;
31212 }
31213 _ACEOF
31214 if ac_fn_c_try_link "$LINENO"; then :
31215   ac_cv_lib_tiff_TIFFIsBigEndian=yes
31216 else
31217   ac_cv_lib_tiff_TIFFIsBigEndian=no
31218 fi
31219 rm -f core conftest.err conftest.$ac_objext \
31220     conftest$ac_exeext conftest.$ac_ext
31221 LIBS=$ac_check_lib_save_LIBS
31222 fi
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
31224 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
31225 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
31226   passed=`expr $passed + 1`
31227 else
31228   failed=`expr $failed + 1`
31229 fi
31230
31231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
31232 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
31233 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
31234   $as_echo_n "(cached) " >&6
31235 else
31236   ac_check_lib_save_LIBS=$LIBS
31237 LIBS="-ltiff  $LIBS"
31238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31239 /* end confdefs.h.  */
31240
31241 /* Override any GCC internal prototype to avoid an error.
31242    Use char because int might match the return type of a GCC
31243    builtin and then its argument prototype would still apply.  */
31244 #ifdef __cplusplus
31245 extern "C"
31246 #endif
31247 char TIFFIsByteSwapped ();
31248 int
31249 main ()
31250 {
31251 return TIFFIsByteSwapped ();
31252   ;
31253   return 0;
31254 }
31255 _ACEOF
31256 if ac_fn_c_try_link "$LINENO"; then :
31257   ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31258 else
31259   ac_cv_lib_tiff_TIFFIsByteSwapped=no
31260 fi
31261 rm -f core conftest.err conftest.$ac_objext \
31262     conftest$ac_exeext conftest.$ac_ext
31263 LIBS=$ac_check_lib_save_LIBS
31264 fi
31265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
31266 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
31267 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
31268   passed=`expr $passed + 1`
31269 else
31270   failed=`expr $failed + 1`
31271 fi
31272
31273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
31274 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
31275 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
31276   $as_echo_n "(cached) " >&6
31277 else
31278   ac_check_lib_save_LIBS=$LIBS
31279 LIBS="-ltiff  $LIBS"
31280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31281 /* end confdefs.h.  */
31282
31283 /* Override any GCC internal prototype to avoid an error.
31284    Use char because int might match the return type of a GCC
31285    builtin and then its argument prototype would still apply.  */
31286 #ifdef __cplusplus
31287 extern "C"
31288 #endif
31289 char TIFFReadRGBATile ();
31290 int
31291 main ()
31292 {
31293 return TIFFReadRGBATile ();
31294   ;
31295   return 0;
31296 }
31297 _ACEOF
31298 if ac_fn_c_try_link "$LINENO"; then :
31299   ac_cv_lib_tiff_TIFFReadRGBATile=yes
31300 else
31301   ac_cv_lib_tiff_TIFFReadRGBATile=no
31302 fi
31303 rm -f core conftest.err conftest.$ac_objext \
31304     conftest$ac_exeext conftest.$ac_ext
31305 LIBS=$ac_check_lib_save_LIBS
31306 fi
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
31308 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
31309 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
31310   passed=`expr $passed + 1`
31311 else
31312   failed=`expr $failed + 1`
31313 fi
31314
31315     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
31316 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
31317 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
31318   $as_echo_n "(cached) " >&6
31319 else
31320   ac_check_lib_save_LIBS=$LIBS
31321 LIBS="-ltiff  $LIBS"
31322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323 /* end confdefs.h.  */
31324
31325 /* Override any GCC internal prototype to avoid an error.
31326    Use char because int might match the return type of a GCC
31327    builtin and then its argument prototype would still apply.  */
31328 #ifdef __cplusplus
31329 extern "C"
31330 #endif
31331 char TIFFReadRGBAStrip ();
31332 int
31333 main ()
31334 {
31335 return TIFFReadRGBAStrip ();
31336   ;
31337   return 0;
31338 }
31339 _ACEOF
31340 if ac_fn_c_try_link "$LINENO"; then :
31341   ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31342 else
31343   ac_cv_lib_tiff_TIFFReadRGBAStrip=no
31344 fi
31345 rm -f core conftest.err conftest.$ac_objext \
31346     conftest$ac_exeext conftest.$ac_ext
31347 LIBS=$ac_check_lib_save_LIBS
31348 fi
31349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
31350 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
31351 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
31352   passed=`expr $passed + 1`
31353 else
31354   failed=`expr $failed + 1`
31355 fi
31356
31357     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
31358 $as_echo_n "checking if TIFF package is complete... " >&6; }
31359     if test $passed -gt 0; then
31360         if test $failed -gt 0; then
31361             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31362 $as_echo "$as_me: no -- some components failed test" >&6;}
31363             have_tiff='no (failed tests)'
31364         else
31365             TIFF_LIBS='-ltiff'
31366             LIBS="$TIFF_LIBS $LIBS"
31367
31368 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
31369
31370             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31371 $as_echo "$as_me: yes" >&6;}
31372             have_tiff='yes'
31373             for ac_header in tiffconf.h
31374 do :
31375   ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
31376 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
31377   cat >>confdefs.h <<_ACEOF
31378 #define HAVE_TIFFCONF_H 1
31379 _ACEOF
31380
31381 fi
31382
31383 done
31384
31385             for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
31386               TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
31387               TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
31388 do :
31389   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31390 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
31391 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
31392   cat >>confdefs.h <<_ACEOF
31393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31394 _ACEOF
31395
31396 fi
31397 done
31398
31399         fi
31400     else
31401         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31402 $as_echo "$as_me: no" >&6;}
31403     fi
31404 fi
31405  if test "$have_tiff" = 'yes'; then
31406   TIFF_DELEGATE_TRUE=
31407   TIFF_DELEGATE_FALSE='#'
31408 else
31409   TIFF_DELEGATE_TRUE='#'
31410   TIFF_DELEGATE_FALSE=
31411 fi
31412
31413
31414
31415
31416 #
31417 # Check for WEBP delegate library.
31418 #
31419
31420 # Check whether --with-webp was given.
31421 if test "${with_webp+set}" = set; then :
31422   withval=$with_webp; with_webp=$withval
31423 else
31424   with_webp='yes'
31425 fi
31426
31427
31428 if test "$with_webp" != 'yes'; then
31429     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31430 fi
31431
31432 have_webp='no'
31433 WEBP_LIBS=''
31434 if test "$with_webp" != 'no'; then
31435     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31436 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31437     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31438 $as_echo_n "checking for WEBP... " >&6; }
31439     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31440 $as_echo "$as_me: " >&6;}
31441     failed=0
31442     passed=0
31443     ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31444 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31445   passed=`expr $passed + 1`
31446 else
31447   failed=`expr $failed + 1`
31448 fi
31449
31450
31451     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31452 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31453 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31454   $as_echo_n "(cached) " >&6
31455 else
31456   ac_check_lib_save_LIBS=$LIBS
31457 LIBS="-lwebp  $LIBS"
31458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459 /* end confdefs.h.  */
31460
31461 /* Override any GCC internal prototype to avoid an error.
31462    Use char because int might match the return type of a GCC
31463    builtin and then its argument prototype would still apply.  */
31464 #ifdef __cplusplus
31465 extern "C"
31466 #endif
31467 char WebPDecodeRGB ();
31468 int
31469 main ()
31470 {
31471 return WebPDecodeRGB ();
31472   ;
31473   return 0;
31474 }
31475 _ACEOF
31476 if ac_fn_c_try_link "$LINENO"; then :
31477   ac_cv_lib_webp_WebPDecodeRGB=yes
31478 else
31479   ac_cv_lib_webp_WebPDecodeRGB=no
31480 fi
31481 rm -f core conftest.err conftest.$ac_objext \
31482     conftest$ac_exeext conftest.$ac_ext
31483 LIBS=$ac_check_lib_save_LIBS
31484 fi
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31486 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31487 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31488   passed=`expr $passed + 1`
31489 else
31490   failed=`expr $failed + 1`
31491 fi
31492
31493     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31494 $as_echo_n "checking if WEBP package is complete... " >&6; }
31495     if test $passed -gt 0; then
31496         if test $failed -gt 0; then
31497             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31498 $as_echo "$as_me: no -- some components failed test" >&6;}
31499             have_webp='no (failed tests)'
31500         else
31501             WEBP_LIBS='-lwebp'
31502             LIBS="$WEBP_LIBS $LIBS"
31503
31504 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31505
31506             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31507 $as_echo "$as_me: yes" >&6;}
31508             have_webp='yes'
31509         fi
31510     else
31511         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31512 $as_echo "$as_me: no" >&6;}
31513     fi
31514 fi
31515  if test "$have_webp" = 'yes'; then
31516   WEBP_DELEGATE_TRUE=
31517   WEBP_DELEGATE_FALSE='#'
31518 else
31519   WEBP_DELEGATE_TRUE='#'
31520   WEBP_DELEGATE_FALSE=
31521 fi
31522
31523
31524
31525
31526 #
31527 # Set Windows font directory.
31528 #
31529
31530 # Check whether --with-windows-font-dir was given.
31531 if test "${with_windows_font_dir+set}" = set; then :
31532   withval=$with_windows_font_dir; with_windows_font_dir=$withval
31533 else
31534   with_windows_font_dir=''
31535 fi
31536
31537 if test "$with_windows_font_dir" != '' ; then
31538     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31539 fi
31540
31541
31542 #
31543 # Check for WMF delegate library.
31544 #
31545
31546 # Check whether --with-wmf was given.
31547 if test "${with_wmf+set}" = set; then :
31548   withval=$with_wmf; with_wmf=$withval
31549 else
31550   with_wmf='yes'
31551 fi
31552
31553
31554 if test "$with_wmf" != 'yes'; then
31555     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31556 fi
31557
31558 have_wmf='no'
31559 WMF_LIBS=''
31560 if test "$with_wmf" != 'no'; then
31561     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31562 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31563     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
31564 $as_echo_n "checking for WMF... " >&6; }
31565     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31566 $as_echo "$as_me: " >&6;}
31567     failed=0
31568     passed=0
31569     ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31570 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31571   passed=`expr $passed + 1`
31572 else
31573   failed=`expr $failed + 1`
31574 fi
31575
31576
31577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31578 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31579 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
31580   $as_echo_n "(cached) " >&6
31581 else
31582   ac_check_lib_save_LIBS=$LIBS
31583 LIBS="-lwmf "-lwmflite" $LIBS"
31584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31585 /* end confdefs.h.  */
31586
31587 /* Override any GCC internal prototype to avoid an error.
31588    Use char because int might match the return type of a GCC
31589    builtin and then its argument prototype would still apply.  */
31590 #ifdef __cplusplus
31591 extern "C"
31592 #endif
31593 char wmf_eps_function ();
31594 int
31595 main ()
31596 {
31597 return wmf_eps_function ();
31598   ;
31599   return 0;
31600 }
31601 _ACEOF
31602 if ac_fn_c_try_link "$LINENO"; then :
31603   ac_cv_lib_wmf_wmf_eps_function=yes
31604 else
31605   ac_cv_lib_wmf_wmf_eps_function=no
31606 fi
31607 rm -f core conftest.err conftest.$ac_objext \
31608     conftest$ac_exeext conftest.$ac_ext
31609 LIBS=$ac_check_lib_save_LIBS
31610 fi
31611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31612 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31613 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31614   passed=`expr $passed + 1`
31615 else
31616   failed=`expr $failed + 1`
31617 fi
31618
31619     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31620 $as_echo_n "checking if WMF package is complete... " >&6; }
31621     if test $passed -gt 0; then
31622         if test $failed -gt 0; then
31623             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31624 $as_echo "$as_me: no -- some components failed test" >&6;}
31625             have_wmf='no (failed tests)'
31626         else
31627             WMF_LIBS='-lwmf -lwmflite'
31628             LIBS="$WMF_LIBS $LIBS"
31629
31630 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
31631
31632             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31633 $as_echo "$as_me: yes" >&6;}
31634             have_wmf='yes'
31635         fi
31636     else
31637         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31638 $as_echo "$as_me: no" >&6;}
31639     fi
31640 fi
31641  if test "$have_wmf" = 'yes'; then
31642   WMF_DELEGATE_TRUE=
31643   WMF_DELEGATE_FALSE='#'
31644 else
31645   WMF_DELEGATE_TRUE='#'
31646   WMF_DELEGATE_FALSE=
31647 fi
31648
31649
31650
31651
31652
31653
31654 #
31655 # Check for XML delegate library.
31656 #
31657
31658 # Check whether --with-xml was given.
31659 if test "${with_xml+set}" = set; then :
31660   withval=$with_xml; with_xml=$withval
31661 else
31662   with_xml=$have_x
31663 fi
31664
31665
31666 if test "$with_xml" != 'yes' ; then
31667     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31668 fi
31669
31670 have_xml='no'
31671 XML_LIBS=''
31672 if test "$with_xml" != 'no'; then
31673     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31674 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
31675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31676 $as_echo_n "checking for XML... " >&6; }
31677     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31678 $as_echo "$as_me: " >&6;}
31679     PERSIST_LDFLAGS=$LDFLAGS
31680     PERSIST_CPPFLAGS=$CPPFLAGS
31681     xml2_config=''
31682     # Extract the first word of "xml2-config", so it can be a program name with args.
31683 set dummy xml2-config; ac_word=$2
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31685 $as_echo_n "checking for $ac_word... " >&6; }
31686 if ${ac_cv_path_xml2_config+:} false; then :
31687   $as_echo_n "(cached) " >&6
31688 else
31689   case $xml2_config in
31690   [\\/]* | ?:[\\/]*)
31691   ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31692   ;;
31693   *)
31694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31695 for as_dir in $PATH
31696 do
31697   IFS=$as_save_IFS
31698   test -z "$as_dir" && as_dir=.
31699     for ac_exec_ext in '' $ac_executable_extensions; do
31700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31701     ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31703     break 2
31704   fi
31705 done
31706   done
31707 IFS=$as_save_IFS
31708
31709   ;;
31710 esac
31711 fi
31712 xml2_config=$ac_cv_path_xml2_config
31713 if test -n "$xml2_config"; then
31714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31715 $as_echo "$xml2_config" >&6; }
31716 else
31717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31718 $as_echo "no" >&6; }
31719 fi
31720
31721     if test -n "$xml2_config"; then
31722         # Debian installs libxml headers under /usr/include/libxml2/libxml with
31723         # the shared library installed under /usr/lib, whereas the package
31724         # installs itself under $prefix/libxml and $prefix/lib.
31725         xml2_prefix=`xml2-config --prefix`
31726         if test -d "${xml2_prefix}/include/libxml2"; then
31727             CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31728         fi
31729         if test "${xml2_prefix}" != '/usr'; then
31730             LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31731         fi
31732     fi
31733     failed=0
31734     passed=0
31735     ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31736 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31737   passed=`expr $passed + 1`
31738 else
31739   failed=`expr $failed + 1`
31740 fi
31741
31742
31743     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31744 $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31745 if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31746   $as_echo_n "(cached) " >&6
31747 else
31748   ac_check_lib_save_LIBS=$LIBS
31749 LIBS="-lxml2  $LIBS"
31750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31751 /* end confdefs.h.  */
31752
31753 /* Override any GCC internal prototype to avoid an error.
31754    Use char because int might match the return type of a GCC
31755    builtin and then its argument prototype would still apply.  */
31756 #ifdef __cplusplus
31757 extern "C"
31758 #endif
31759 char xmlSAXVersion ();
31760 int
31761 main ()
31762 {
31763 return xmlSAXVersion ();
31764   ;
31765   return 0;
31766 }
31767 _ACEOF
31768 if ac_fn_c_try_link "$LINENO"; then :
31769   ac_cv_lib_xml2_xmlSAXVersion=yes
31770 else
31771   ac_cv_lib_xml2_xmlSAXVersion=no
31772 fi
31773 rm -f core conftest.err conftest.$ac_objext \
31774     conftest$ac_exeext conftest.$ac_ext
31775 LIBS=$ac_check_lib_save_LIBS
31776 fi
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31778 $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31779 if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31780   passed=`expr $passed + 1`
31781 else
31782   failed=`expr $failed + 1`
31783 fi
31784
31785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31786 $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31787 if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31788   $as_echo_n "(cached) " >&6
31789 else
31790   ac_check_lib_save_LIBS=$LIBS
31791 LIBS="-lxml2  $LIBS"
31792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31793 /* end confdefs.h.  */
31794
31795 /* Override any GCC internal prototype to avoid an error.
31796    Use char because int might match the return type of a GCC
31797    builtin and then its argument prototype would still apply.  */
31798 #ifdef __cplusplus
31799 extern "C"
31800 #endif
31801 char xmlParseChunk ();
31802 int
31803 main ()
31804 {
31805 return xmlParseChunk ();
31806   ;
31807   return 0;
31808 }
31809 _ACEOF
31810 if ac_fn_c_try_link "$LINENO"; then :
31811   ac_cv_lib_xml2_xmlParseChunk=yes
31812 else
31813   ac_cv_lib_xml2_xmlParseChunk=no
31814 fi
31815 rm -f core conftest.err conftest.$ac_objext \
31816     conftest$ac_exeext conftest.$ac_ext
31817 LIBS=$ac_check_lib_save_LIBS
31818 fi
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31820 $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31821 if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31822   passed=`expr $passed + 1`
31823 else
31824   failed=`expr $failed + 1`
31825 fi
31826
31827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31828 $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31829 if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31830   $as_echo_n "(cached) " >&6
31831 else
31832   ac_check_lib_save_LIBS=$LIBS
31833 LIBS="-lxml2  $LIBS"
31834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31835 /* end confdefs.h.  */
31836
31837 /* Override any GCC internal prototype to avoid an error.
31838    Use char because int might match the return type of a GCC
31839    builtin and then its argument prototype would still apply.  */
31840 #ifdef __cplusplus
31841 extern "C"
31842 #endif
31843 char xmlCreatePushParserCtxt ();
31844 int
31845 main ()
31846 {
31847 return xmlCreatePushParserCtxt ();
31848   ;
31849   return 0;
31850 }
31851 _ACEOF
31852 if ac_fn_c_try_link "$LINENO"; then :
31853   ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31854 else
31855   ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31856 fi
31857 rm -f core conftest.err conftest.$ac_objext \
31858     conftest$ac_exeext conftest.$ac_ext
31859 LIBS=$ac_check_lib_save_LIBS
31860 fi
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31862 $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31863 if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31864   passed=`expr $passed + 1`
31865 else
31866   failed=`expr $failed + 1`
31867 fi
31868
31869     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31870 $as_echo_n "checking if XML package is complete... " >&6; }
31871     if test $passed -gt 0; then
31872         if test $failed -gt 0; then
31873             { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31874 $as_echo "$as_me: no -- some components failed test" >&6;}
31875             have_xml='no (failed tests)'
31876             LDFLAGS="$PERSIST_LDFLAGS"
31877             CPPFLAGS="$PERSIST_CPPFLAGS"
31878         else
31879             XML_LIBS='-lxml2'
31880             LIBS="$XML_LIBS $LIBS"
31881
31882 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31883
31884             { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31885 $as_echo "$as_me: yes" >&6;}
31886             have_xml='yes'
31887         fi
31888     else
31889         { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31890 $as_echo "$as_me: no" >&6;}
31891     fi
31892 fi
31893  if test "$have_xml" = 'yes'; then
31894   XML_DELEGATE_TRUE=
31895   XML_DELEGATE_FALSE='#'
31896 else
31897   XML_DELEGATE_TRUE='#'
31898   XML_DELEGATE_FALSE=
31899 fi
31900
31901
31902
31903
31904 # Substitute compiler name to build/link PerlMagick
31905 #
31906
31907
31908 #
31909 # Configure install Paths
31910 #
31911
31912 # Subdirectory under lib to place ImageMagick lib files
31913 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31914
31915 cat >>confdefs.h <<_ACEOF
31916 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31917 _ACEOF
31918
31919
31920 # Path to ImageMagick bin directory
31921 EXECUTABLE_PATH="${BIN_DIR}"
31922 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31923 case "${build_os}" in
31924   mingw* )
31925     DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31926     ;;
31927 esac
31928
31929 cat >>confdefs.h <<_ACEOF
31930 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31931 _ACEOF
31932
31933
31934
31935 # Path to ImageMagick lib
31936 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31937 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31938 case "${build_os}" in
31939   mingw* )
31940     DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31941     ;;
31942 esac
31943
31944 cat >>confdefs.h <<_ACEOF
31945 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31946 _ACEOF
31947
31948
31949
31950 #
31951 # Subdirectory under lib to place ImageMagick coder module files
31952 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31953
31954 cat >>confdefs.h <<_ACEOF
31955 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31956 _ACEOF
31957
31958 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31959 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31960 case "${build_os}" in
31961   mingw* )
31962     DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31963     ;;
31964 esac
31965
31966 cat >>confdefs.h <<_ACEOF
31967 #define CODER_PATH "$DEFINE_CODER_PATH"
31968 _ACEOF
31969
31970
31971
31972 #
31973 # Subdirectory under lib to place ImageMagick filter module files
31974 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31975
31976 cat >>confdefs.h <<_ACEOF
31977 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31978 _ACEOF
31979
31980 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31981 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31982 case "${build_os}" in
31983   mingw* )
31984     DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31985     ;;
31986 esac
31987
31988 cat >>confdefs.h <<_ACEOF
31989 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31990 _ACEOF
31991
31992
31993
31994 #
31995 # Path to ImageMagick documentation files
31996 DOCUMENTATION_RELATIVE_PATH=""
31997 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31998 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31999 case "${build_os}" in
32000   mingw* )
32001     DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32002     ;;
32003 esac
32004
32005 cat >>confdefs.h <<_ACEOF
32006 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32007 _ACEOF
32008
32009
32010
32011 # Subdirectory to place ImageMagick configuration files
32012 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
32013
32014 cat >>confdefs.h <<_ACEOF
32015 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32016 _ACEOF
32017
32018 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32019 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32020 case "${build_os}" in
32021   mingw* )
32022     DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32023     ;;
32024 esac
32025
32026 cat >>confdefs.h <<_ACEOF
32027 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32028 _ACEOF
32029
32030
32031
32032 # Subdirectory to place ImageMagick configuration files
32033 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
32034
32035 cat >>confdefs.h <<_ACEOF
32036 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
32037 _ACEOF
32038
32039 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
32040 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
32041 case "${build_os}" in
32042   mingw* )
32043     DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
32044     ;;
32045 esac
32046
32047 cat >>confdefs.h <<_ACEOF
32048 #define SHARE_PATH "$DEFINE_SHARE_PATH"
32049 _ACEOF
32050
32051
32052
32053 #
32054 # program_transform_name is formed for use in a Makefile, so create a
32055 # modified version for use in a shell script.
32056 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32057
32058 # Default delegate definitions
32059 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32060 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
32062 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
32063 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32064 $as_echo "$as_me: " >&6;}
32065 AutotraceDecodeDelegateDefault='autotrace'
32066 BlenderDecodeDelegateDefault='blender'
32067 BZIPDelegateDefault='bzip2'
32068 BrowseDelegateDefault='xdg-open'
32069 CGMDecodeDelegateDefault='ralcgm'
32070 CatDelegateDefault='cat'
32071 DNGDecodeDelegateDefault='ufraw-batch'
32072 GVCDecodeDelegateDefault='dot'
32073 DVIDecodeDelegateDefault='dvips'
32074 EchoDelegateDefault='echo'
32075 EditorDelegateDefault='xterm'
32076 FIGDecodeDelegateDefault='fig2dev'
32077 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32078 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32079 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32080 GnuplotDecodeDelegateDefault='gnuplot'
32081 HPGLDecodeDelegateDefault='hp2xx'
32082 HTMLDecodeDelegateDefault='html2ps'
32083 ILBMDecodeDelegateDefault='ilbmtoppm'
32084 ILBMEncodeDelegateDefault='ppmtoilbm'
32085 LPDelegateDefault='lp'
32086 LPRDelegateDefault='lpr'
32087 LZWDecodeDelegateDefault='uncompress'
32088 LZWEncodeDelegateDefault='compress'
32089 LaunchDelegateDefault='gimp'
32090 MANDelegateDefault='groff'
32091 MPEGDecodeDelegateDefault='ffmpeg'
32092 MPEGEncodeDelegateDefault='ffmpeg'
32093 MrSIDDecodeDelegateDefault='mrsidgeodecode'
32094 MVDelegateDefault='mv'
32095 PCLDelegateDefault='pcl6'
32096 PGPDecodeDelegateDefault='pgpv'
32097 POVDelegateDefault='povray'
32098 if test "$native_win32_build" = 'yes'; then
32099     PSDelegateDefault='gswin32c'
32100 elif test "$gslib_framework" = 'yes'; then
32101     PSDelegateDefault='gsc'
32102 else
32103     PSDelegateDefault='gs'
32104 fi
32105 RLEEncodeDelegateDefault='rawtorle'
32106 RMDelegateDefault='rm'
32107 RSVGDecodeDelegateDefault='rsvg'
32108 SCANDecodeDelegateDefault='scanimage'
32109 TXTDelegateDefault='enscript'
32110 UniconvertorDelegateDefault='uniconvertor'
32111 WMFDecodeDelegateDefault='wmf2eps'
32112 WWWDecodeDelegateDefault='curl'
32113 XPSDelegateDefault='gxps'
32114 ZipDelegateDefault='gzip'
32115
32116 # Search for delegates
32117 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32118 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
32119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32120 $as_echo_n "checking for $ac_word... " >&6; }
32121 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
32122   $as_echo_n "(cached) " >&6
32123 else
32124   case $AutotraceDecodeDelegate in
32125   [\\/]* | ?:[\\/]*)
32126   ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32127   ;;
32128   *)
32129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32130 for as_dir in $PATH
32131 do
32132   IFS=$as_save_IFS
32133   test -z "$as_dir" && as_dir=.
32134     for ac_exec_ext in '' $ac_executable_extensions; do
32135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32136     ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32138     break 2
32139   fi
32140 done
32141   done
32142 IFS=$as_save_IFS
32143
32144   test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32145   ;;
32146 esac
32147 fi
32148 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32149 if test -n "$AutotraceDecodeDelegate"; then
32150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
32151 $as_echo "$AutotraceDecodeDelegate" >&6; }
32152 else
32153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32154 $as_echo "no" >&6; }
32155 fi
32156
32157
32158 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32159 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32161 $as_echo_n "checking for $ac_word... " >&6; }
32162 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
32163   $as_echo_n "(cached) " >&6
32164 else
32165   case $BlenderDecodeDelegate in
32166   [\\/]* | ?:[\\/]*)
32167   ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32168   ;;
32169   *)
32170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32171 for as_dir in $PATH
32172 do
32173   IFS=$as_save_IFS
32174   test -z "$as_dir" && as_dir=.
32175     for ac_exec_ext in '' $ac_executable_extensions; do
32176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32177     ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32179     break 2
32180   fi
32181 done
32182   done
32183 IFS=$as_save_IFS
32184
32185   test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32186   ;;
32187 esac
32188 fi
32189 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32190 if test -n "$BlenderDecodeDelegate"; then
32191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
32192 $as_echo "$BlenderDecodeDelegate" >&6; }
32193 else
32194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32195 $as_echo "no" >&6; }
32196 fi
32197
32198
32199 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32200 set dummy "$BZIPDelegateDefault"; ac_word=$2
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32202 $as_echo_n "checking for $ac_word... " >&6; }
32203 if ${ac_cv_path_BZIPDelegate+:} false; then :
32204   $as_echo_n "(cached) " >&6
32205 else
32206   case $BZIPDelegate in
32207   [\\/]* | ?:[\\/]*)
32208   ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32209   ;;
32210   *)
32211   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32212 for as_dir in $PATH
32213 do
32214   IFS=$as_save_IFS
32215   test -z "$as_dir" && as_dir=.
32216     for ac_exec_ext in '' $ac_executable_extensions; do
32217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32218     ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
32219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32220     break 2
32221   fi
32222 done
32223   done
32224 IFS=$as_save_IFS
32225
32226   test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32227   ;;
32228 esac
32229 fi
32230 BZIPDelegate=$ac_cv_path_BZIPDelegate
32231 if test -n "$BZIPDelegate"; then
32232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
32233 $as_echo "$BZIPDelegate" >&6; }
32234 else
32235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32236 $as_echo "no" >&6; }
32237 fi
32238
32239
32240 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
32241 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32243 $as_echo_n "checking for $ac_word... " >&6; }
32244 if ${ac_cv_path_BrowseDelegate+:} false; then :
32245   $as_echo_n "(cached) " >&6
32246 else
32247   case $BrowseDelegate in
32248   [\\/]* | ?:[\\/]*)
32249   ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32250   ;;
32251   *)
32252   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32253 for as_dir in $PATH
32254 do
32255   IFS=$as_save_IFS
32256   test -z "$as_dir" && as_dir=.
32257     for ac_exec_ext in '' $ac_executable_extensions; do
32258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32259     ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
32260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32261     break 2
32262   fi
32263 done
32264   done
32265 IFS=$as_save_IFS
32266
32267   test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
32268   ;;
32269 esac
32270 fi
32271 BrowseDelegate=$ac_cv_path_BrowseDelegate
32272 if test -n "$BrowseDelegate"; then
32273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
32274 $as_echo "$BrowseDelegate" >&6; }
32275 else
32276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32277 $as_echo "no" >&6; }
32278 fi
32279
32280
32281 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32282 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
32283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32284 $as_echo_n "checking for $ac_word... " >&6; }
32285 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
32286   $as_echo_n "(cached) " >&6
32287 else
32288   case $CGMDecodeDelegate in
32289   [\\/]* | ?:[\\/]*)
32290   ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32291   ;;
32292   *)
32293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32294 for as_dir in $PATH
32295 do
32296   IFS=$as_save_IFS
32297   test -z "$as_dir" && as_dir=.
32298     for ac_exec_ext in '' $ac_executable_extensions; do
32299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32300     ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32302     break 2
32303   fi
32304 done
32305   done
32306 IFS=$as_save_IFS
32307
32308   test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32309   ;;
32310 esac
32311 fi
32312 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32313 if test -n "$CGMDecodeDelegate"; then
32314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
32315 $as_echo "$CGMDecodeDelegate" >&6; }
32316 else
32317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32318 $as_echo "no" >&6; }
32319 fi
32320
32321
32322 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32323 set dummy "$CatDelegateDefault"; ac_word=$2
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32325 $as_echo_n "checking for $ac_word... " >&6; }
32326 if ${ac_cv_path_CatDelegate+:} false; then :
32327   $as_echo_n "(cached) " >&6
32328 else
32329   case $CatDelegate in
32330   [\\/]* | ?:[\\/]*)
32331   ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32332   ;;
32333   *)
32334   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32335 for as_dir in $PATH
32336 do
32337   IFS=$as_save_IFS
32338   test -z "$as_dir" && as_dir=.
32339     for ac_exec_ext in '' $ac_executable_extensions; do
32340   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32341     ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
32342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32343     break 2
32344   fi
32345 done
32346   done
32347 IFS=$as_save_IFS
32348
32349   test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32350   ;;
32351 esac
32352 fi
32353 CatDelegate=$ac_cv_path_CatDelegate
32354 if test -n "$CatDelegate"; then
32355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
32356 $as_echo "$CatDelegate" >&6; }
32357 else
32358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32359 $as_echo "no" >&6; }
32360 fi
32361
32362
32363 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32364 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
32365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32366 $as_echo_n "checking for $ac_word... " >&6; }
32367 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
32368   $as_echo_n "(cached) " >&6
32369 else
32370   case $DNGDecodeDelegate in
32371   [\\/]* | ?:[\\/]*)
32372   ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32373   ;;
32374   *)
32375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376 for as_dir in $PATH
32377 do
32378   IFS=$as_save_IFS
32379   test -z "$as_dir" && as_dir=.
32380     for ac_exec_ext in '' $ac_executable_extensions; do
32381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32382     ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32384     break 2
32385   fi
32386 done
32387   done
32388 IFS=$as_save_IFS
32389
32390   test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32391   ;;
32392 esac
32393 fi
32394 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32395 if test -n "$DNGDecodeDelegate"; then
32396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
32397 $as_echo "$DNGDecodeDelegate" >&6; }
32398 else
32399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32400 $as_echo "no" >&6; }
32401 fi
32402
32403
32404 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32405 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32407 $as_echo_n "checking for $ac_word... " >&6; }
32408 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
32409   $as_echo_n "(cached) " >&6
32410 else
32411   case $GVCDecodeDelegate in
32412   [\\/]* | ?:[\\/]*)
32413   ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32414   ;;
32415   *)
32416   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32417 for as_dir in $PATH
32418 do
32419   IFS=$as_save_IFS
32420   test -z "$as_dir" && as_dir=.
32421     for ac_exec_ext in '' $ac_executable_extensions; do
32422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32423     ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32425     break 2
32426   fi
32427 done
32428   done
32429 IFS=$as_save_IFS
32430
32431   test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32432   ;;
32433 esac
32434 fi
32435 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32436 if test -n "$GVCDecodeDelegate"; then
32437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
32438 $as_echo "$GVCDecodeDelegate" >&6; }
32439 else
32440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32441 $as_echo "no" >&6; }
32442 fi
32443
32444
32445 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32446 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
32447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32448 $as_echo_n "checking for $ac_word... " >&6; }
32449 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
32450   $as_echo_n "(cached) " >&6
32451 else
32452   case $DVIDecodeDelegate in
32453   [\\/]* | ?:[\\/]*)
32454   ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32455   ;;
32456   *)
32457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32458 for as_dir in $PATH
32459 do
32460   IFS=$as_save_IFS
32461   test -z "$as_dir" && as_dir=.
32462     for ac_exec_ext in '' $ac_executable_extensions; do
32463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32464     ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32466     break 2
32467   fi
32468 done
32469   done
32470 IFS=$as_save_IFS
32471
32472   test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32473   ;;
32474 esac
32475 fi
32476 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32477 if test -n "$DVIDecodeDelegate"; then
32478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
32479 $as_echo "$DVIDecodeDelegate" >&6; }
32480 else
32481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32482 $as_echo "no" >&6; }
32483 fi
32484
32485
32486 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32487 set dummy "$EchoDelegateDefault"; ac_word=$2
32488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32489 $as_echo_n "checking for $ac_word... " >&6; }
32490 if ${ac_cv_path_EchoDelegate+:} false; then :
32491   $as_echo_n "(cached) " >&6
32492 else
32493   case $EchoDelegate in
32494   [\\/]* | ?:[\\/]*)
32495   ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32496   ;;
32497   *)
32498   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32499 for as_dir in $PATH
32500 do
32501   IFS=$as_save_IFS
32502   test -z "$as_dir" && as_dir=.
32503     for ac_exec_ext in '' $ac_executable_extensions; do
32504   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32505     ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
32506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32507     break 2
32508   fi
32509 done
32510   done
32511 IFS=$as_save_IFS
32512
32513   test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32514   ;;
32515 esac
32516 fi
32517 EchoDelegate=$ac_cv_path_EchoDelegate
32518 if test -n "$EchoDelegate"; then
32519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32520 $as_echo "$EchoDelegate" >&6; }
32521 else
32522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32523 $as_echo "no" >&6; }
32524 fi
32525
32526
32527 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32528 set dummy "$EditorDelegateDefault"; ac_word=$2
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32530 $as_echo_n "checking for $ac_word... " >&6; }
32531 if ${ac_cv_path_EditorDelegate+:} false; then :
32532   $as_echo_n "(cached) " >&6
32533 else
32534   case $EditorDelegate in
32535   [\\/]* | ?:[\\/]*)
32536   ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32537   ;;
32538   *)
32539   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32540 for as_dir in $PATH
32541 do
32542   IFS=$as_save_IFS
32543   test -z "$as_dir" && as_dir=.
32544     for ac_exec_ext in '' $ac_executable_extensions; do
32545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32546     ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32548     break 2
32549   fi
32550 done
32551   done
32552 IFS=$as_save_IFS
32553
32554   test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32555   ;;
32556 esac
32557 fi
32558 EditorDelegate=$ac_cv_path_EditorDelegate
32559 if test -n "$EditorDelegate"; then
32560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32561 $as_echo "$EditorDelegate" >&6; }
32562 else
32563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32564 $as_echo "no" >&6; }
32565 fi
32566
32567
32568 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32569 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32571 $as_echo_n "checking for $ac_word... " >&6; }
32572 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
32573   $as_echo_n "(cached) " >&6
32574 else
32575   case $FIGDecodeDelegate in
32576   [\\/]* | ?:[\\/]*)
32577   ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32578   ;;
32579   *)
32580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32581 for as_dir in $PATH
32582 do
32583   IFS=$as_save_IFS
32584   test -z "$as_dir" && as_dir=.
32585     for ac_exec_ext in '' $ac_executable_extensions; do
32586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32587     ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32589     break 2
32590   fi
32591 done
32592   done
32593 IFS=$as_save_IFS
32594
32595   test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32596   ;;
32597 esac
32598 fi
32599 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32600 if test -n "$FIGDecodeDelegate"; then
32601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
32602 $as_echo "$FIGDecodeDelegate" >&6; }
32603 else
32604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32605 $as_echo "no" >&6; }
32606 fi
32607
32608
32609 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32610 set dummy "$ConvertDelegateDefault"; ac_word=$2
32611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32612 $as_echo_n "checking for $ac_word... " >&6; }
32613 if ${ac_cv_path_ConvertDelegate+:} false; then :
32614   $as_echo_n "(cached) " >&6
32615 else
32616   case $ConvertDelegate in
32617   [\\/]* | ?:[\\/]*)
32618   ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32619   ;;
32620   *)
32621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32622 for as_dir in $PATH
32623 do
32624   IFS=$as_save_IFS
32625   test -z "$as_dir" && as_dir=.
32626     for ac_exec_ext in '' $ac_executable_extensions; do
32627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32628     ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
32629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32630     break 2
32631   fi
32632 done
32633   done
32634 IFS=$as_save_IFS
32635
32636   test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32637   ;;
32638 esac
32639 fi
32640 ConvertDelegate=$ac_cv_path_ConvertDelegate
32641 if test -n "$ConvertDelegate"; then
32642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
32643 $as_echo "$ConvertDelegate" >&6; }
32644 else
32645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32646 $as_echo "no" >&6; }
32647 fi
32648
32649
32650 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32651 set dummy "$DisplayDelegateDefault"; ac_word=$2
32652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32653 $as_echo_n "checking for $ac_word... " >&6; }
32654 if ${ac_cv_path_DisplayDelegate+:} false; then :
32655   $as_echo_n "(cached) " >&6
32656 else
32657   case $DisplayDelegate in
32658   [\\/]* | ?:[\\/]*)
32659   ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32660   ;;
32661   *)
32662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32663 for as_dir in $PATH
32664 do
32665   IFS=$as_save_IFS
32666   test -z "$as_dir" && as_dir=.
32667     for ac_exec_ext in '' $ac_executable_extensions; do
32668   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32669     ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
32670     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32671     break 2
32672   fi
32673 done
32674   done
32675 IFS=$as_save_IFS
32676
32677   test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32678   ;;
32679 esac
32680 fi
32681 DisplayDelegate=$ac_cv_path_DisplayDelegate
32682 if test -n "$DisplayDelegate"; then
32683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
32684 $as_echo "$DisplayDelegate" >&6; }
32685 else
32686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32687 $as_echo "no" >&6; }
32688 fi
32689
32690
32691 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32692 set dummy "$MogrifyDelegateDefault"; ac_word=$2
32693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32694 $as_echo_n "checking for $ac_word... " >&6; }
32695 if ${ac_cv_path_MogrifyDelegate+:} false; then :
32696   $as_echo_n "(cached) " >&6
32697 else
32698   case $MogrifyDelegate in
32699   [\\/]* | ?:[\\/]*)
32700   ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32701   ;;
32702   *)
32703   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32704 for as_dir in $PATH
32705 do
32706   IFS=$as_save_IFS
32707   test -z "$as_dir" && as_dir=.
32708     for ac_exec_ext in '' $ac_executable_extensions; do
32709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32710     ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
32711     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32712     break 2
32713   fi
32714 done
32715   done
32716 IFS=$as_save_IFS
32717
32718   test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32719   ;;
32720 esac
32721 fi
32722 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32723 if test -n "$MogrifyDelegate"; then
32724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
32725 $as_echo "$MogrifyDelegate" >&6; }
32726 else
32727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32728 $as_echo "no" >&6; }
32729 fi
32730
32731
32732 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32733 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
32734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32735 $as_echo_n "checking for $ac_word... " >&6; }
32736 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
32737   $as_echo_n "(cached) " >&6
32738 else
32739   case $GnuplotDecodeDelegate in
32740   [\\/]* | ?:[\\/]*)
32741   ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32742   ;;
32743   *)
32744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32745 for as_dir in $PATH
32746 do
32747   IFS=$as_save_IFS
32748   test -z "$as_dir" && as_dir=.
32749     for ac_exec_ext in '' $ac_executable_extensions; do
32750   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32751     ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32752     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32753     break 2
32754   fi
32755 done
32756   done
32757 IFS=$as_save_IFS
32758
32759   test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32760   ;;
32761 esac
32762 fi
32763 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32764 if test -n "$GnuplotDecodeDelegate"; then
32765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
32766 $as_echo "$GnuplotDecodeDelegate" >&6; }
32767 else
32768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32769 $as_echo "no" >&6; }
32770 fi
32771
32772
32773 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32774 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
32775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32776 $as_echo_n "checking for $ac_word... " >&6; }
32777 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
32778   $as_echo_n "(cached) " >&6
32779 else
32780   case $HPGLDecodeDelegate in
32781   [\\/]* | ?:[\\/]*)
32782   ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32783   ;;
32784   *)
32785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32786 for as_dir in $PATH
32787 do
32788   IFS=$as_save_IFS
32789   test -z "$as_dir" && as_dir=.
32790     for ac_exec_ext in '' $ac_executable_extensions; do
32791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32792     ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32794     break 2
32795   fi
32796 done
32797   done
32798 IFS=$as_save_IFS
32799
32800   test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32801   ;;
32802 esac
32803 fi
32804 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32805 if test -n "$HPGLDecodeDelegate"; then
32806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
32807 $as_echo "$HPGLDecodeDelegate" >&6; }
32808 else
32809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32810 $as_echo "no" >&6; }
32811 fi
32812
32813
32814 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32815 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32817 $as_echo_n "checking for $ac_word... " >&6; }
32818 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32819   $as_echo_n "(cached) " >&6
32820 else
32821   case $HTMLDecodeDelegate in
32822   [\\/]* | ?:[\\/]*)
32823   ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32824   ;;
32825   *)
32826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32827 for as_dir in $PATH
32828 do
32829   IFS=$as_save_IFS
32830   test -z "$as_dir" && as_dir=.
32831     for ac_exec_ext in '' $ac_executable_extensions; do
32832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32833     ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32834     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32835     break 2
32836   fi
32837 done
32838   done
32839 IFS=$as_save_IFS
32840
32841   test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32842   ;;
32843 esac
32844 fi
32845 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32846 if test -n "$HTMLDecodeDelegate"; then
32847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32848 $as_echo "$HTMLDecodeDelegate" >&6; }
32849 else
32850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32851 $as_echo "no" >&6; }
32852 fi
32853
32854
32855 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32856 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32858 $as_echo_n "checking for $ac_word... " >&6; }
32859 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32860   $as_echo_n "(cached) " >&6
32861 else
32862   case $ILBMDecodeDelegate in
32863   [\\/]* | ?:[\\/]*)
32864   ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32865   ;;
32866   *)
32867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32868 for as_dir in $PATH
32869 do
32870   IFS=$as_save_IFS
32871   test -z "$as_dir" && as_dir=.
32872     for ac_exec_ext in '' $ac_executable_extensions; do
32873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32874     ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32875     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32876     break 2
32877   fi
32878 done
32879   done
32880 IFS=$as_save_IFS
32881
32882   test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32883   ;;
32884 esac
32885 fi
32886 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32887 if test -n "$ILBMDecodeDelegate"; then
32888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32889 $as_echo "$ILBMDecodeDelegate" >&6; }
32890 else
32891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32892 $as_echo "no" >&6; }
32893 fi
32894
32895
32896 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32897 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32899 $as_echo_n "checking for $ac_word... " >&6; }
32900 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32901   $as_echo_n "(cached) " >&6
32902 else
32903   case $ILBMEncodeDelegate in
32904   [\\/]* | ?:[\\/]*)
32905   ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32906   ;;
32907   *)
32908   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32909 for as_dir in $PATH
32910 do
32911   IFS=$as_save_IFS
32912   test -z "$as_dir" && as_dir=.
32913     for ac_exec_ext in '' $ac_executable_extensions; do
32914   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32915     ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32916     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32917     break 2
32918   fi
32919 done
32920   done
32921 IFS=$as_save_IFS
32922
32923   test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32924   ;;
32925 esac
32926 fi
32927 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32928 if test -n "$ILBMEncodeDelegate"; then
32929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32930 $as_echo "$ILBMEncodeDelegate" >&6; }
32931 else
32932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32933 $as_echo "no" >&6; }
32934 fi
32935
32936
32937 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32938 set dummy "$LPDelegateDefault"; ac_word=$2
32939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32940 $as_echo_n "checking for $ac_word... " >&6; }
32941 if ${ac_cv_path_LPDelegate+:} false; then :
32942   $as_echo_n "(cached) " >&6
32943 else
32944   case $LPDelegate in
32945   [\\/]* | ?:[\\/]*)
32946   ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32947   ;;
32948   *)
32949   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32950 for as_dir in $PATH
32951 do
32952   IFS=$as_save_IFS
32953   test -z "$as_dir" && as_dir=.
32954     for ac_exec_ext in '' $ac_executable_extensions; do
32955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32956     ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32958     break 2
32959   fi
32960 done
32961   done
32962 IFS=$as_save_IFS
32963
32964   test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32965   ;;
32966 esac
32967 fi
32968 LPDelegate=$ac_cv_path_LPDelegate
32969 if test -n "$LPDelegate"; then
32970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32971 $as_echo "$LPDelegate" >&6; }
32972 else
32973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32974 $as_echo "no" >&6; }
32975 fi
32976
32977
32978 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32979 set dummy "$LPRDelegateDefault"; ac_word=$2
32980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32981 $as_echo_n "checking for $ac_word... " >&6; }
32982 if ${ac_cv_path_LPRDelegate+:} false; then :
32983   $as_echo_n "(cached) " >&6
32984 else
32985   case $LPRDelegate in
32986   [\\/]* | ?:[\\/]*)
32987   ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32988   ;;
32989   *)
32990   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32991 for as_dir in $PATH
32992 do
32993   IFS=$as_save_IFS
32994   test -z "$as_dir" && as_dir=.
32995     for ac_exec_ext in '' $ac_executable_extensions; do
32996   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32997     ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32999     break 2
33000   fi
33001 done
33002   done
33003 IFS=$as_save_IFS
33004
33005   test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33006   ;;
33007 esac
33008 fi
33009 LPRDelegate=$ac_cv_path_LPRDelegate
33010 if test -n "$LPRDelegate"; then
33011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
33012 $as_echo "$LPRDelegate" >&6; }
33013 else
33014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33015 $as_echo "no" >&6; }
33016 fi
33017
33018
33019 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
33020 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33022 $as_echo_n "checking for $ac_word... " >&6; }
33023 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
33024   $as_echo_n "(cached) " >&6
33025 else
33026   case $LZWDecodeDelegate in
33027   [\\/]* | ?:[\\/]*)
33028   ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
33029   ;;
33030   *)
33031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33032 for as_dir in $PATH
33033 do
33034   IFS=$as_save_IFS
33035   test -z "$as_dir" && as_dir=.
33036     for ac_exec_ext in '' $ac_executable_extensions; do
33037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33038     ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33040     break 2
33041   fi
33042 done
33043   done
33044 IFS=$as_save_IFS
33045
33046   test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
33047   ;;
33048 esac
33049 fi
33050 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
33051 if test -n "$LZWDecodeDelegate"; then
33052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
33053 $as_echo "$LZWDecodeDelegate" >&6; }
33054 else
33055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33056 $as_echo "no" >&6; }
33057 fi
33058
33059
33060 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
33061 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33063 $as_echo_n "checking for $ac_word... " >&6; }
33064 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
33065   $as_echo_n "(cached) " >&6
33066 else
33067   case $LZWEncodeDelegate in
33068   [\\/]* | ?:[\\/]*)
33069   ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
33070   ;;
33071   *)
33072   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33073 for as_dir in $PATH
33074 do
33075   IFS=$as_save_IFS
33076   test -z "$as_dir" && as_dir=.
33077     for ac_exec_ext in '' $ac_executable_extensions; do
33078   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33079     ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33080     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33081     break 2
33082   fi
33083 done
33084   done
33085 IFS=$as_save_IFS
33086
33087   test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
33088   ;;
33089 esac
33090 fi
33091 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
33092 if test -n "$LZWEncodeDelegate"; then
33093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
33094 $as_echo "$LZWEncodeDelegate" >&6; }
33095 else
33096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33097 $as_echo "no" >&6; }
33098 fi
33099
33100
33101 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33102 set dummy "$LaunchDelegateDefault"; ac_word=$2
33103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33104 $as_echo_n "checking for $ac_word... " >&6; }
33105 if ${ac_cv_path_LaunchDelegate+:} false; then :
33106   $as_echo_n "(cached) " >&6
33107 else
33108   case $LaunchDelegate in
33109   [\\/]* | ?:[\\/]*)
33110   ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33111   ;;
33112   *)
33113   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33114 for as_dir in $PATH
33115 do
33116   IFS=$as_save_IFS
33117   test -z "$as_dir" && as_dir=.
33118     for ac_exec_ext in '' $ac_executable_extensions; do
33119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33120     ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
33121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33122     break 2
33123   fi
33124 done
33125   done
33126 IFS=$as_save_IFS
33127
33128   test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33129   ;;
33130 esac
33131 fi
33132 LaunchDelegate=$ac_cv_path_LaunchDelegate
33133 if test -n "$LaunchDelegate"; then
33134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
33135 $as_echo "$LaunchDelegate" >&6; }
33136 else
33137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33138 $as_echo "no" >&6; }
33139 fi
33140
33141
33142 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33143 set dummy "$MANDelegateDefault"; ac_word=$2
33144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33145 $as_echo_n "checking for $ac_word... " >&6; }
33146 if ${ac_cv_path_MANDelegate+:} false; then :
33147   $as_echo_n "(cached) " >&6
33148 else
33149   case $MANDelegate in
33150   [\\/]* | ?:[\\/]*)
33151   ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33152   ;;
33153   *)
33154   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33155 for as_dir in $PATH
33156 do
33157   IFS=$as_save_IFS
33158   test -z "$as_dir" && as_dir=.
33159     for ac_exec_ext in '' $ac_executable_extensions; do
33160   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33161     ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
33162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33163     break 2
33164   fi
33165 done
33166   done
33167 IFS=$as_save_IFS
33168
33169   test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33170   ;;
33171 esac
33172 fi
33173 MANDelegate=$ac_cv_path_MANDelegate
33174 if test -n "$MANDelegate"; then
33175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
33176 $as_echo "$MANDelegate" >&6; }
33177 else
33178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33179 $as_echo "no" >&6; }
33180 fi
33181
33182
33183 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33184 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
33185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33186 $as_echo_n "checking for $ac_word... " >&6; }
33187 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
33188   $as_echo_n "(cached) " >&6
33189 else
33190   case $MPEGDecodeDelegate in
33191   [\\/]* | ?:[\\/]*)
33192   ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33193   ;;
33194   *)
33195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33196 for as_dir in $PATH
33197 do
33198   IFS=$as_save_IFS
33199   test -z "$as_dir" && as_dir=.
33200     for ac_exec_ext in '' $ac_executable_extensions; do
33201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33202     ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33204     break 2
33205   fi
33206 done
33207   done
33208 IFS=$as_save_IFS
33209
33210   test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33211   ;;
33212 esac
33213 fi
33214 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33215 if test -n "$MPEGDecodeDelegate"; then
33216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
33217 $as_echo "$MPEGDecodeDelegate" >&6; }
33218 else
33219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33220 $as_echo "no" >&6; }
33221 fi
33222
33223
33224 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33225 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
33226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33227 $as_echo_n "checking for $ac_word... " >&6; }
33228 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
33229   $as_echo_n "(cached) " >&6
33230 else
33231   case $MPEGEncodeDelegate in
33232   [\\/]* | ?:[\\/]*)
33233   ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33234   ;;
33235   *)
33236   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33237 for as_dir in $PATH
33238 do
33239   IFS=$as_save_IFS
33240   test -z "$as_dir" && as_dir=.
33241     for ac_exec_ext in '' $ac_executable_extensions; do
33242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33243     ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33245     break 2
33246   fi
33247 done
33248   done
33249 IFS=$as_save_IFS
33250
33251   test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33252   ;;
33253 esac
33254 fi
33255 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33256 if test -n "$MPEGEncodeDelegate"; then
33257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
33258 $as_echo "$MPEGEncodeDelegate" >&6; }
33259 else
33260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33261 $as_echo "no" >&6; }
33262 fi
33263
33264
33265 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33266 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33268 $as_echo_n "checking for $ac_word... " >&6; }
33269 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
33270   $as_echo_n "(cached) " >&6
33271 else
33272   case $MrSIDDecodeDelegate in
33273   [\\/]* | ?:[\\/]*)
33274   ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33275   ;;
33276   *)
33277   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33278 for as_dir in $PATH
33279 do
33280   IFS=$as_save_IFS
33281   test -z "$as_dir" && as_dir=.
33282     for ac_exec_ext in '' $ac_executable_extensions; do
33283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33284     ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33286     break 2
33287   fi
33288 done
33289   done
33290 IFS=$as_save_IFS
33291
33292   test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33293   ;;
33294 esac
33295 fi
33296 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33297 if test -n "$MrSIDDecodeDelegate"; then
33298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33299 $as_echo "$MrSIDDecodeDelegate" >&6; }
33300 else
33301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33302 $as_echo "no" >&6; }
33303 fi
33304
33305
33306 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33307 set dummy "$MVDelegateDefault"; ac_word=$2
33308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33309 $as_echo_n "checking for $ac_word... " >&6; }
33310 if ${ac_cv_path_MVDelegate+:} false; then :
33311   $as_echo_n "(cached) " >&6
33312 else
33313   case $MVDelegate in
33314   [\\/]* | ?:[\\/]*)
33315   ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33316   ;;
33317   *)
33318   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33319 for as_dir in $PATH
33320 do
33321   IFS=$as_save_IFS
33322   test -z "$as_dir" && as_dir=.
33323     for ac_exec_ext in '' $ac_executable_extensions; do
33324   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33325     ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
33326     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33327     break 2
33328   fi
33329 done
33330   done
33331 IFS=$as_save_IFS
33332
33333   test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33334   ;;
33335 esac
33336 fi
33337 MVDelegate=$ac_cv_path_MVDelegate
33338 if test -n "$MVDelegate"; then
33339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
33340 $as_echo "$MVDelegate" >&6; }
33341 else
33342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33343 $as_echo "no" >&6; }
33344 fi
33345
33346
33347 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33348 set dummy "$PCLDelegateDefault"; ac_word=$2
33349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33350 $as_echo_n "checking for $ac_word... " >&6; }
33351 if ${ac_cv_path_PCLDelegate+:} false; then :
33352   $as_echo_n "(cached) " >&6
33353 else
33354   case $PCLDelegate in
33355   [\\/]* | ?:[\\/]*)
33356   ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33357   ;;
33358   *)
33359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33360 for as_dir in $PATH
33361 do
33362   IFS=$as_save_IFS
33363   test -z "$as_dir" && as_dir=.
33364     for ac_exec_ext in '' $ac_executable_extensions; do
33365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33366     ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
33367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33368     break 2
33369   fi
33370 done
33371   done
33372 IFS=$as_save_IFS
33373
33374   test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33375   ;;
33376 esac
33377 fi
33378 PCLDelegate=$ac_cv_path_PCLDelegate
33379 if test -n "$PCLDelegate"; then
33380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
33381 $as_echo "$PCLDelegate" >&6; }
33382 else
33383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33384 $as_echo "no" >&6; }
33385 fi
33386
33387
33388 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33389 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
33390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33391 $as_echo_n "checking for $ac_word... " >&6; }
33392 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
33393   $as_echo_n "(cached) " >&6
33394 else
33395   case $PGPDecodeDelegate in
33396   [\\/]* | ?:[\\/]*)
33397   ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33398   ;;
33399   *)
33400   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33401 for as_dir in $PATH
33402 do
33403   IFS=$as_save_IFS
33404   test -z "$as_dir" && as_dir=.
33405     for ac_exec_ext in '' $ac_executable_extensions; do
33406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33407     ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33409     break 2
33410   fi
33411 done
33412   done
33413 IFS=$as_save_IFS
33414
33415   test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33416   ;;
33417 esac
33418 fi
33419 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33420 if test -n "$PGPDecodeDelegate"; then
33421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
33422 $as_echo "$PGPDecodeDelegate" >&6; }
33423 else
33424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33425 $as_echo "no" >&6; }
33426 fi
33427
33428
33429 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33430 set dummy "$POVDelegateDefault"; ac_word=$2
33431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33432 $as_echo_n "checking for $ac_word... " >&6; }
33433 if ${ac_cv_path_POVDelegate+:} false; then :
33434   $as_echo_n "(cached) " >&6
33435 else
33436   case $POVDelegate in
33437   [\\/]* | ?:[\\/]*)
33438   ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33439   ;;
33440   *)
33441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33442 for as_dir in $PATH
33443 do
33444   IFS=$as_save_IFS
33445   test -z "$as_dir" && as_dir=.
33446     for ac_exec_ext in '' $ac_executable_extensions; do
33447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33448     ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
33449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33450     break 2
33451   fi
33452 done
33453   done
33454 IFS=$as_save_IFS
33455
33456   test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33457   ;;
33458 esac
33459 fi
33460 POVDelegate=$ac_cv_path_POVDelegate
33461 if test -n "$POVDelegate"; then
33462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
33463 $as_echo "$POVDelegate" >&6; }
33464 else
33465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33466 $as_echo "no" >&6; }
33467 fi
33468
33469
33470 for ac_prog in gsx gsc "$PSDelegateDefault"
33471 do
33472   # Extract the first word of "$ac_prog", so it can be a program name with args.
33473 set dummy $ac_prog; ac_word=$2
33474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33475 $as_echo_n "checking for $ac_word... " >&6; }
33476 if ${ac_cv_path_PSDelegate+:} false; then :
33477   $as_echo_n "(cached) " >&6
33478 else
33479   case $PSDelegate in
33480   [\\/]* | ?:[\\/]*)
33481   ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33482   ;;
33483   *)
33484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33485 for as_dir in $PATH
33486 do
33487   IFS=$as_save_IFS
33488   test -z "$as_dir" && as_dir=.
33489     for ac_exec_ext in '' $ac_executable_extensions; do
33490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33491     ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
33492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33493     break 2
33494   fi
33495 done
33496   done
33497 IFS=$as_save_IFS
33498
33499   ;;
33500 esac
33501 fi
33502 PSDelegate=$ac_cv_path_PSDelegate
33503 if test -n "$PSDelegate"; then
33504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
33505 $as_echo "$PSDelegate" >&6; }
33506 else
33507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33508 $as_echo "no" >&6; }
33509 fi
33510
33511
33512   test -n "$PSDelegate" && break
33513 done
33514 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33515
33516 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33517 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33519 $as_echo_n "checking for $ac_word... " >&6; }
33520 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
33521   $as_echo_n "(cached) " >&6
33522 else
33523   case $RLEEncodeDelegate in
33524   [\\/]* | ?:[\\/]*)
33525   ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33526   ;;
33527   *)
33528   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33529 for as_dir in $PATH
33530 do
33531   IFS=$as_save_IFS
33532   test -z "$as_dir" && as_dir=.
33533     for ac_exec_ext in '' $ac_executable_extensions; do
33534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33535     ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33537     break 2
33538   fi
33539 done
33540   done
33541 IFS=$as_save_IFS
33542
33543   test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33544   ;;
33545 esac
33546 fi
33547 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33548 if test -n "$RLEEncodeDelegate"; then
33549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
33550 $as_echo "$RLEEncodeDelegate" >&6; }
33551 else
33552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33553 $as_echo "no" >&6; }
33554 fi
33555
33556
33557 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33558 set dummy "$RMDelegateDefault"; ac_word=$2
33559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33560 $as_echo_n "checking for $ac_word... " >&6; }
33561 if ${ac_cv_path_RMDelegate+:} false; then :
33562   $as_echo_n "(cached) " >&6
33563 else
33564   case $RMDelegate in
33565   [\\/]* | ?:[\\/]*)
33566   ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33567   ;;
33568   *)
33569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33570 for as_dir in $PATH
33571 do
33572   IFS=$as_save_IFS
33573   test -z "$as_dir" && as_dir=.
33574     for ac_exec_ext in '' $ac_executable_extensions; do
33575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33576     ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
33577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33578     break 2
33579   fi
33580 done
33581   done
33582 IFS=$as_save_IFS
33583
33584   test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33585   ;;
33586 esac
33587 fi
33588 RMDelegate=$ac_cv_path_RMDelegate
33589 if test -n "$RMDelegate"; then
33590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
33591 $as_echo "$RMDelegate" >&6; }
33592 else
33593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33594 $as_echo "no" >&6; }
33595 fi
33596
33597
33598 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33599 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33601 $as_echo_n "checking for $ac_word... " >&6; }
33602 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
33603   $as_echo_n "(cached) " >&6
33604 else
33605   case $RSVGDecodeDelegate in
33606   [\\/]* | ?:[\\/]*)
33607   ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33608   ;;
33609   *)
33610   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33611 for as_dir in $PATH
33612 do
33613   IFS=$as_save_IFS
33614   test -z "$as_dir" && as_dir=.
33615     for ac_exec_ext in '' $ac_executable_extensions; do
33616   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33617     ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33619     break 2
33620   fi
33621 done
33622   done
33623 IFS=$as_save_IFS
33624
33625   test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33626   ;;
33627 esac
33628 fi
33629 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33630 if test -n "$RSVGDecodeDelegate"; then
33631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33632 $as_echo "$RSVGDecodeDelegate" >&6; }
33633 else
33634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33635 $as_echo "no" >&6; }
33636 fi
33637
33638
33639 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33640 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
33641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33642 $as_echo_n "checking for $ac_word... " >&6; }
33643 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
33644   $as_echo_n "(cached) " >&6
33645 else
33646   case $SCANDecodeDelegate in
33647   [\\/]* | ?:[\\/]*)
33648   ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33649   ;;
33650   *)
33651   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33652 for as_dir in $PATH
33653 do
33654   IFS=$as_save_IFS
33655   test -z "$as_dir" && as_dir=.
33656     for ac_exec_ext in '' $ac_executable_extensions; do
33657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33658     ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33659     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33660     break 2
33661   fi
33662 done
33663   done
33664 IFS=$as_save_IFS
33665
33666   test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33667   ;;
33668 esac
33669 fi
33670 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33671 if test -n "$SCANDecodeDelegate"; then
33672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
33673 $as_echo "$SCANDecodeDelegate" >&6; }
33674 else
33675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33676 $as_echo "no" >&6; }
33677 fi
33678
33679
33680 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33681 set dummy "$TXTDelegateDefault"; ac_word=$2
33682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33683 $as_echo_n "checking for $ac_word... " >&6; }
33684 if ${ac_cv_path_TXTDelegate+:} false; then :
33685   $as_echo_n "(cached) " >&6
33686 else
33687   case $TXTDelegate in
33688   [\\/]* | ?:[\\/]*)
33689   ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33690   ;;
33691   *)
33692   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33693 for as_dir in $PATH
33694 do
33695   IFS=$as_save_IFS
33696   test -z "$as_dir" && as_dir=.
33697     for ac_exec_ext in '' $ac_executable_extensions; do
33698   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33699     ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
33700     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33701     break 2
33702   fi
33703 done
33704   done
33705 IFS=$as_save_IFS
33706
33707   test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33708   ;;
33709 esac
33710 fi
33711 TXTDelegate=$ac_cv_path_TXTDelegate
33712 if test -n "$TXTDelegate"; then
33713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
33714 $as_echo "$TXTDelegate" >&6; }
33715 else
33716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33717 $as_echo "no" >&6; }
33718 fi
33719
33720
33721 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33722 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33724 $as_echo_n "checking for $ac_word... " >&6; }
33725 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
33726   $as_echo_n "(cached) " >&6
33727 else
33728   case $UniconvertorDelegate in
33729   [\\/]* | ?:[\\/]*)
33730   ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33731   ;;
33732   *)
33733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33734 for as_dir in $PATH
33735 do
33736   IFS=$as_save_IFS
33737   test -z "$as_dir" && as_dir=.
33738     for ac_exec_ext in '' $ac_executable_extensions; do
33739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33740     ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33742     break 2
33743   fi
33744 done
33745   done
33746 IFS=$as_save_IFS
33747
33748   test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33749   ;;
33750 esac
33751 fi
33752 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33753 if test -n "$UniconvertorDelegate"; then
33754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33755 $as_echo "$UniconvertorDelegate" >&6; }
33756 else
33757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33758 $as_echo "no" >&6; }
33759 fi
33760
33761
33762 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33763 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33765 $as_echo_n "checking for $ac_word... " >&6; }
33766 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
33767   $as_echo_n "(cached) " >&6
33768 else
33769   case $WMFDecodeDelegate in
33770   [\\/]* | ?:[\\/]*)
33771   ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33772   ;;
33773   *)
33774   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33775 for as_dir in $PATH
33776 do
33777   IFS=$as_save_IFS
33778   test -z "$as_dir" && as_dir=.
33779     for ac_exec_ext in '' $ac_executable_extensions; do
33780   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33781     ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33783     break 2
33784   fi
33785 done
33786   done
33787 IFS=$as_save_IFS
33788
33789   test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33790   ;;
33791 esac
33792 fi
33793 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33794 if test -n "$WMFDecodeDelegate"; then
33795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
33796 $as_echo "$WMFDecodeDelegate" >&6; }
33797 else
33798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33799 $as_echo "no" >&6; }
33800 fi
33801
33802
33803 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33804 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
33805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33806 $as_echo_n "checking for $ac_word... " >&6; }
33807 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
33808   $as_echo_n "(cached) " >&6
33809 else
33810   case $WWWDecodeDelegate in
33811   [\\/]* | ?:[\\/]*)
33812   ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33813   ;;
33814   *)
33815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33816 for as_dir in $PATH
33817 do
33818   IFS=$as_save_IFS
33819   test -z "$as_dir" && as_dir=.
33820     for ac_exec_ext in '' $ac_executable_extensions; do
33821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33822     ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33824     break 2
33825   fi
33826 done
33827   done
33828 IFS=$as_save_IFS
33829
33830   test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33831   ;;
33832 esac
33833 fi
33834 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33835 if test -n "$WWWDecodeDelegate"; then
33836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33837 $as_echo "$WWWDecodeDelegate" >&6; }
33838 else
33839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33841 fi
33842
33843
33844 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33845 set dummy "$XPSDelegateDefault"; ac_word=$2
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33847 $as_echo_n "checking for $ac_word... " >&6; }
33848 if ${ac_cv_path_XPSDelegate+:} false; then :
33849   $as_echo_n "(cached) " >&6
33850 else
33851   case $XPSDelegate in
33852   [\\/]* | ?:[\\/]*)
33853   ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33854   ;;
33855   *)
33856   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33857 for as_dir in $PATH
33858 do
33859   IFS=$as_save_IFS
33860   test -z "$as_dir" && as_dir=.
33861     for ac_exec_ext in '' $ac_executable_extensions; do
33862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33863     ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33865     break 2
33866   fi
33867 done
33868   done
33869 IFS=$as_save_IFS
33870
33871   test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33872   ;;
33873 esac
33874 fi
33875 XPSDelegate=$ac_cv_path_XPSDelegate
33876 if test -n "$XPSDelegate"; then
33877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33878 $as_echo "$XPSDelegate" >&6; }
33879 else
33880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33881 $as_echo "no" >&6; }
33882 fi
33883
33884
33885 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33886 set dummy "$ZipDelegateDefault"; ac_word=$2
33887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33888 $as_echo_n "checking for $ac_word... " >&6; }
33889 if ${ac_cv_path_ZipDelegate+:} false; then :
33890   $as_echo_n "(cached) " >&6
33891 else
33892   case $ZipDelegate in
33893   [\\/]* | ?:[\\/]*)
33894   ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33895   ;;
33896   *)
33897   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33898 for as_dir in $PATH
33899 do
33900   IFS=$as_save_IFS
33901   test -z "$as_dir" && as_dir=.
33902     for ac_exec_ext in '' $ac_executable_extensions; do
33903   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33904     ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33905     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33906     break 2
33907   fi
33908 done
33909   done
33910 IFS=$as_save_IFS
33911
33912   test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33913   ;;
33914 esac
33915 fi
33916 ZipDelegate=$ac_cv_path_ZipDelegate
33917 if test -n "$ZipDelegate"; then
33918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33919 $as_echo "$ZipDelegate" >&6; }
33920 else
33921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33922 $as_echo "no" >&6; }
33923 fi
33924
33925
33926
33927 # Prefer lpr to lp; lp needs options tacked on.
33928 if test "$LPRDelegate" != no; then
33929     PrintDelegate="$LPRDelegate"
33930 else
33931     PrintDelegate="$LPDelegate -c -s"
33932 fi
33933
33934
33935 # Installed ImageMagick utiltity paths
33936 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33937 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33938 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33939
33940 # Set delegate booleans
33941 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33942 have_fig2dev='no'    ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33943 have_gs='no'         ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33944 have_hp2xx='no'      ; if test "$HPGLDecodeDelegate" !=  "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33945 have_ilbmtoppm='no'  ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33946 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33947 have_pcl='no'        ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33948 have_ppmtoilbm='no'  ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33949 have_ralcgm='no'     ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33950 have_xps='no'        ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33951
33952 #
33953 # Test for font directories
33954 #
33955 type_include_files=''
33956
33957 # Dejavu fonts.
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33959 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33960 dejavu_font_dir=''
33961 if test "${with_dejavu_font_dir}" != 'default'; then
33962   dejavu_font_dir="${with_dejavu_font_dir}/"
33963 else
33964   for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33965     if test -f "${font_dir}DejaVuSerif.ttf"; then
33966       dejavu_font_dir="${font_dir}"
33967       break 1
33968     fi
33969   done
33970 fi
33971 if test "${dejavu_font_dir}x" != 'x'; then
33972   type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33973   { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33974 $as_echo "$as_me: $dejavu_font_dir" >&6;}
33975 else
33976   { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33977 $as_echo "$as_me: not found!" >&6;};
33978 fi
33979
33980
33981 # Windows
33982 windows_font_dir=''
33983 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33984    windows_font_dir="${with_windows_font_dir}/"
33985 fi
33986 if test "${windows_font_dir}x" != 'x'; then
33987     if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33988       windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33989     fi
33990     if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33991       windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33992     fi
33993     if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33994       windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33995     fi
33996 fi
33997 if test "${windows_font_dir}x" != 'x'; then
33998   type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33999 fi
34000
34001
34002 # Ghostscript
34003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
34004 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34005 ghostscript_font_dir=''
34006 if test "${with_gs_font_dir}" != 'default'; then
34007   ghostscript_font_dir="${with_gs_font_dir}/"
34008 else
34009   if test "${native_win32_build}" = 'yes'; then
34010     # Native Windows Build
34011     for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34012       if test -f "${font_dir}a010013l.pfb"; then
34013         ghostscript_font_dir="$font_dir"
34014         break 1
34015       fi
34016     done
34017     if test "${PSDelegate}" != 'gswin32c'; then
34018       ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34019     fi
34020   else
34021     # Linux / Mac OS X / Unix Build
34022     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
34023       if test -f "${font_dir}a010013l.pfb"; then
34024         ghostscript_font_dir="${font_dir}"
34025         break 1
34026       fi
34027     done
34028     if test "${ghostscript_font_dir}x" = 'x'; then
34029       if test "$PSDelegate" != 'gs'; then
34030         ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34031       fi
34032     fi
34033   fi
34034 fi
34035 if test "${ghostscript_font_dir}x" != 'x'; then
34036   type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
34037   { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34038 $as_echo "$as_me: $ghostscript_font_dir" >&6;}
34039 else
34040   { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34041 $as_echo "$as_me: not found!" >&6;};
34042 fi
34043
34044 case "${build_os}" in
34045   mingw* )
34046     PSDelegate=`$WinPathScript "$PSDelegate" 1`
34047     ;;
34048 esac
34049
34050
34051
34052 #
34053 # Handle case where user doesn't want frozen paths
34054 #
34055 if test "$with_frozenpaths" != 'yes'; then
34056   # Re-set delegate definitions to default (no paths)
34057   AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
34058   BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34059   BZIPDelegate="$BZIPDelegateDefault"
34060   BrowseDelegate="$BrowseDelegateDefault"
34061   CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34062   CatDelegate="$CatDelegateDefault"
34063   ConvertDelegate="$ConvertDelegateDefault"
34064   GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34065   DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34066   EchoDelegate="$EchoDelegateDefault"
34067   EditorDelegate="$EditorDelegateDefault"
34068   FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34069   GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34070   HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34071   HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34072   ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34073   ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34074   LPDelegate="$LPDelegateDefault"
34075   LZWDecodeDelegate="$LZWDecodeDelegateDefault"
34076   LZWEncodeDelegate="$LZWEncodeDelegateDefault"
34077   LaunchDelegate="$LaunchDelegateDefault"
34078   MANDelegate="$MANDelegateDefault"
34079   MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34080   MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
34081   MogrifyDelegate="$MogrifyDelegateDefault"
34082   MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34083   MVDelegate="$MVDelegateDefault"
34084   PCLDelegate="$PCLDelegateDefault"
34085   PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34086   POVDelegate="$POVDelegateDefault"
34087   PSDelegate="$PSDelegateDefault"
34088   RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34089   RMDelegate="$RMDelegateDefault"
34090   RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
34091   SCANDecodeDelegate="$SCANDecodeDelegateDefault"
34092   ShowImageDelegate="$ShowImageDelegateDefault"
34093   TXTDelegate="$TXTDelegateDefault"
34094   UniconvertorDelegate="$UniconvertorDelegateDefault"
34095   WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34096   WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34097   XPSDelegate="$XPSDelegateDefault"
34098   ZipDelegate="$ZipDelegateDefault"
34099 fi
34100
34101 # Delegate substitutions
34102
34103
34104
34105
34106
34107
34108
34109
34110
34111
34112
34113
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144 #
34145 # RPM support.
34146 #
34147 RPM=''
34148 for ac_prog in gnutar gtar tar
34149 do
34150   # Extract the first word of "$ac_prog", so it can be a program name with args.
34151 set dummy $ac_prog; ac_word=$2
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34153 $as_echo_n "checking for $ac_word... " >&6; }
34154 if ${ac_cv_prog_TAR+:} false; then :
34155   $as_echo_n "(cached) " >&6
34156 else
34157   if test -n "$TAR"; then
34158   ac_cv_prog_TAR="$TAR" # Let the user override the test.
34159 else
34160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34161 for as_dir in $PATH
34162 do
34163   IFS=$as_save_IFS
34164   test -z "$as_dir" && as_dir=.
34165     for ac_exec_ext in '' $ac_executable_extensions; do
34166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34167     ac_cv_prog_TAR="$ac_prog"
34168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34169     break 2
34170   fi
34171 done
34172   done
34173 IFS=$as_save_IFS
34174
34175 fi
34176 fi
34177 TAR=$ac_cv_prog_TAR
34178 if test -n "$TAR"; then
34179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
34180 $as_echo "$TAR" >&6; }
34181 else
34182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34183 $as_echo "no" >&6; }
34184 fi
34185
34186
34187   test -n "$TAR" && break
34188 done
34189
34190 for ac_prog in perl
34191 do
34192   # Extract the first word of "$ac_prog", so it can be a program name with args.
34193 set dummy $ac_prog; ac_word=$2
34194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34195 $as_echo_n "checking for $ac_word... " >&6; }
34196 if ${ac_cv_prog_PERL+:} false; then :
34197   $as_echo_n "(cached) " >&6
34198 else
34199   if test -n "$PERL"; then
34200   ac_cv_prog_PERL="$PERL" # Let the user override the test.
34201 else
34202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34203 for as_dir in $PATH
34204 do
34205   IFS=$as_save_IFS
34206   test -z "$as_dir" && as_dir=.
34207     for ac_exec_ext in '' $ac_executable_extensions; do
34208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34209     ac_cv_prog_PERL="$ac_prog"
34210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34211     break 2
34212   fi
34213 done
34214   done
34215 IFS=$as_save_IFS
34216
34217 fi
34218 fi
34219 PERL=$ac_cv_prog_PERL
34220 if test -n "$PERL"; then
34221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34222 $as_echo "$PERL" >&6; }
34223 else
34224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34225 $as_echo "no" >&6; }
34226 fi
34227
34228
34229   test -n "$PERL" && break
34230 done
34231
34232 for ac_prog in rpmbuild rpm
34233 do
34234   # Extract the first word of "$ac_prog", so it can be a program name with args.
34235 set dummy $ac_prog; ac_word=$2
34236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34237 $as_echo_n "checking for $ac_word... " >&6; }
34238 if ${ac_cv_prog_RPM+:} false; then :
34239   $as_echo_n "(cached) " >&6
34240 else
34241   if test -n "$RPM"; then
34242   ac_cv_prog_RPM="$RPM" # Let the user override the test.
34243 else
34244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34245 for as_dir in $PATH
34246 do
34247   IFS=$as_save_IFS
34248   test -z "$as_dir" && as_dir=.
34249     for ac_exec_ext in '' $ac_executable_extensions; do
34250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34251     ac_cv_prog_RPM="$ac_prog"
34252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34253     break 2
34254   fi
34255 done
34256   done
34257 IFS=$as_save_IFS
34258
34259 fi
34260 fi
34261 RPM=$ac_cv_prog_RPM
34262 if test -n "$RPM"; then
34263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
34264 $as_echo "$RPM" >&6; }
34265 else
34266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34267 $as_echo "no" >&6; }
34268 fi
34269
34270
34271   test -n "$RPM" && break
34272 done
34273
34274
34275 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34276
34277
34278 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34279
34280
34281 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34282
34283
34284 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34285
34286
34287  if test "x$RPM" != "x" ; then
34288   RPM_DELEGATE_TRUE=
34289   RPM_DELEGATE_FALSE='#'
34290 else
34291   RPM_DELEGATE_TRUE='#'
34292   RPM_DELEGATE_FALSE=
34293 fi
34294
34295
34296 #
34297 # 7ZIP support (http://p7zip.sourceforge.net/)
34298 #
34299 P7ZIP=''
34300 for ac_prog in 7za
34301 do
34302   # Extract the first word of "$ac_prog", so it can be a program name with args.
34303 set dummy $ac_prog; ac_word=$2
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34305 $as_echo_n "checking for $ac_word... " >&6; }
34306 if ${ac_cv_prog_P7ZIP+:} false; then :
34307   $as_echo_n "(cached) " >&6
34308 else
34309   if test -n "$P7ZIP"; then
34310   ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34311 else
34312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34313 for as_dir in $PATH
34314 do
34315   IFS=$as_save_IFS
34316   test -z "$as_dir" && as_dir=.
34317     for ac_exec_ext in '' $ac_executable_extensions; do
34318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34319     ac_cv_prog_P7ZIP="$ac_prog"
34320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34321     break 2
34322   fi
34323 done
34324   done
34325 IFS=$as_save_IFS
34326
34327 fi
34328 fi
34329 P7ZIP=$ac_cv_prog_P7ZIP
34330 if test -n "$P7ZIP"; then
34331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
34332 $as_echo "$P7ZIP" >&6; }
34333 else
34334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34335 $as_echo "no" >&6; }
34336 fi
34337
34338
34339   test -n "$P7ZIP" && break
34340 done
34341
34342
34343  if test "x$P7ZIP" != "x" ; then
34344   P7ZIP_DELEGATE_TRUE=
34345   P7ZIP_DELEGATE_FALSE='#'
34346 else
34347   P7ZIP_DELEGATE_TRUE='#'
34348   P7ZIP_DELEGATE_FALSE=
34349 fi
34350
34351
34352 #
34353 # ZIP support (http://www.info-zip.org/Zip.html)
34354 #
34355 ZIP=''
34356 for ac_prog in zip
34357 do
34358   # Extract the first word of "$ac_prog", so it can be a program name with args.
34359 set dummy $ac_prog; ac_word=$2
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34361 $as_echo_n "checking for $ac_word... " >&6; }
34362 if ${ac_cv_prog_ZIP+:} false; then :
34363   $as_echo_n "(cached) " >&6
34364 else
34365   if test -n "$ZIP"; then
34366   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34367 else
34368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34369 for as_dir in $PATH
34370 do
34371   IFS=$as_save_IFS
34372   test -z "$as_dir" && as_dir=.
34373     for ac_exec_ext in '' $ac_executable_extensions; do
34374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34375     ac_cv_prog_ZIP="$ac_prog"
34376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34377     break 2
34378   fi
34379 done
34380   done
34381 IFS=$as_save_IFS
34382
34383 fi
34384 fi
34385 ZIP=$ac_cv_prog_ZIP
34386 if test -n "$ZIP"; then
34387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
34388 $as_echo "$ZIP" >&6; }
34389 else
34390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34391 $as_echo "no" >&6; }
34392 fi
34393
34394
34395   test -n "$ZIP" && break
34396 done
34397
34398
34399  if test "x$ZIP" != "x" ; then
34400   ZIP_DELEGATE_TRUE=
34401   ZIP_DELEGATE_FALSE='#'
34402 else
34403   ZIP_DELEGATE_TRUE='#'
34404   ZIP_DELEGATE_FALSE=
34405 fi
34406
34407
34408 #
34409 # GhostPCL related configuration.
34410 #
34411 PCLColorDevice=ppmraw
34412 PCLCMYKDevice=pamcmyk32
34413 PCLMonoDevice=pbmraw
34414 if test -z "$PCLVersion"; then
34415     PCLVersion='unknown'
34416 fi
34417 if test $have_pcl = 'yes'; then
34418     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34419 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
34421 $as_echo_n "checking for PCL... " >&6; }
34422     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34423 $as_echo "$as_me: " >&6;}
34424     # PCLColorDevice
34425     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
34426 $as_echo_n "checking for pcl color device... " >&6; }
34427     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34428         :
34429     else
34430         PCLColorDevice=ppmraw
34431     fi
34432     { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34433 $as_echo "$as_me: $PCLColorDevice" >&6;}
34434
34435     # PCLCMYKDevice
34436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
34437 $as_echo_n "checking for pcl CMYK device... " >&6; }
34438     if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34439         :
34440     else
34441         PCLCMYKDevice=$PCLColorDevice
34442     fi
34443     { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34444 $as_echo "$as_me: $PCLCMYKDevice" >&6;}
34445
34446     # PCLMonoDevice
34447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
34448 $as_echo_n "checking for pcl mono device... " >&6; }
34449     if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34450         :
34451     else
34452         PCLMonoDevice=$PCLColorDevice
34453     fi
34454     { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34455 $as_echo "$as_me: $PCLMonoDevice" >&6;}
34456 fi
34457
34458
34459
34460
34461
34462
34463 #
34464 # GhostXPS related configuration.
34465 #
34466 XPSColorDevice=ppmraw
34467 XPSCMYKDevice=bmpsep8
34468 XPSMonoDevice=pbmraw
34469 if test -z "$XPSVersion"; then
34470     XPSVersion='unknown'
34471 fi
34472 if test $have_xps = 'yes'; then
34473     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34474 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
34476 $as_echo_n "checking for XPS... " >&6; }
34477     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34478 $as_echo "$as_me: " >&6;}
34479     # XPSColorDevice
34480     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
34481 $as_echo_n "checking for xps color device... " >&6; }
34482     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34483         :
34484     else
34485         XPSColorDevice=ppmraw
34486     fi
34487     { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34488 $as_echo "$as_me: $XPSColorDevice" >&6;}
34489
34490     # XPSCMYKDevice
34491     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
34492 $as_echo_n "checking for xps CMYK device... " >&6; }
34493     if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34494         :
34495     else
34496         XPSCMYKDevice=$XPSColorDevice
34497     fi
34498     { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34499 $as_echo "$as_me: $XPSCMYKDevice" >&6;}
34500
34501     # XPSMonoDevice
34502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
34503 $as_echo_n "checking for xps mono device... " >&6; }
34504     if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34505         :
34506     else
34507         XPSMonoDevice=$XPSColorDevice
34508     fi
34509     { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34510 $as_echo "$as_me: $XPSMonoDevice" >&6;}
34511 fi
34512
34513
34514
34515
34516
34517
34518 #
34519 # Ghostscript related configuration.
34520 #
34521 GSAlphaDevice=pngalpha
34522 GSColorDevice=pnmraw
34523 GSCMYKDevice=pam
34524 GSMonoDevice=pbmraw
34525 GSPDFDevice=pdfwrite
34526 GSPSDevice=pswrite
34527 GSEPSDevice=epswrite
34528 GSVersion='unknown'
34529 if test $have_gs = 'yes'; then
34530     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34531 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34532     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
34533 $as_echo_n "checking for Ghostscript... " >&6; }
34534     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34535 $as_echo "$as_me: " >&6;}
34536     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
34537 $as_echo_n "checking for Ghostscript version... " >&6; }
34538     if GSVersion=`$PSDelegate --version`; then
34539         :
34540     else
34541         GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34542     fi
34543     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34544 $as_echo "$as_me: $GSVersion" >&6;}
34545
34546     # GSAlphaDevice
34547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
34548 $as_echo_n "checking for gs alpha device... " >&6; }
34549     if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34550         :
34551     else
34552         GSAlphaDevice=pnmraw
34553     fi
34554     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34555 $as_echo "$as_me: $GSAlphaDevice" >&6;}
34556
34557     # GSColorDevice
34558     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
34559 $as_echo_n "checking for gs color device... " >&6; }
34560     if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34561         :
34562     else
34563         GSColorDevice=pnmraw
34564     fi
34565     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34566 $as_echo "$as_me: $GSColorDevice" >&6;}
34567
34568     # GSCMYKDevice
34569     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
34570 $as_echo_n "checking for gs CMYK device... " >&6; }
34571     if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34572         :
34573     else
34574         GSCMYKDevice=bmpsep8
34575     fi
34576     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34577 $as_echo "$as_me: $GSCMYKDevice" >&6;}
34578
34579     # GSMonoDevice
34580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
34581 $as_echo_n "checking for gs mono device... " >&6; }
34582     if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34583         :
34584     else
34585         GSMonoDevice=$GSColorDevice
34586     fi
34587     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34588 $as_echo "$as_me: $GSMonoDevice" >&6;}
34589
34590     # GSPDFDevice
34591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
34592 $as_echo_n "checking for gs PDF writing device... " >&6; }
34593     if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34594         :
34595     else
34596         GSPDFDevice=nodevice
34597     fi
34598         { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34599 $as_echo "$as_me: $GSPDFDevice" >&6;}
34600
34601     # GSPSDevice
34602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
34603 $as_echo_n "checking for gs PS writing device... " >&6; }
34604     if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34605         :
34606     else
34607         GSPSDevice=nodevice
34608     fi
34609     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34610 $as_echo "$as_me: $GSPSDevice" >&6;}
34611
34612     # GSEPSDevice
34613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
34614 $as_echo_n "checking for gs EPS writing device... " >&6; }
34615     if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34616         :
34617     else
34618         GSEPSDevice=nodevice
34619     fi
34620     { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34621 $as_echo "$as_me: $GSEPSDevice" >&6;}
34622 fi
34623
34624
34625
34626
34627
34628
34629
34630
34631
34632
34633 #
34634 # PerlMagick-related configuration
34635 #
34636
34637 # Look for PERL if PerlMagick requested
34638 # If name/path of desired PERL interpreter is specified, look for that one first
34639 have_perl='no'
34640 if test "$with_perl" != 'no'; then
34641     { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34642 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
34643     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
34644 $as_echo_n "checking for Perl... " >&6; }
34645     { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34646 $as_echo "$as_me: " >&6;}
34647     if test "$with_perl" != 'yes'; then
34648         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
34649 $as_echo_n "checking for perl... " >&6; }
34650 if ${ac_cv_path_PERL+:} false; then :
34651   $as_echo_n "(cached) " >&6
34652 else
34653   ac_cv_path_PERL="$with_perl"
34654 fi
34655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
34656 $as_echo "$ac_cv_path_PERL" >&6; };
34657         PERL=$ac_cv_path_PERL
34658                 have_perl="$ac_cv_path_PERL"
34659     else
34660         for ac_prog in perl perl5
34661 do
34662   # Extract the first word of "$ac_prog", so it can be a program name with args.
34663 set dummy $ac_prog; ac_word=$2
34664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34665 $as_echo_n "checking for $ac_word... " >&6; }
34666 if ${ac_cv_path_PERL+:} false; then :
34667   $as_echo_n "(cached) " >&6
34668 else
34669   case $PERL in
34670   [\\/]* | ?:[\\/]*)
34671   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34672   ;;
34673   *)
34674   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34675 for as_dir in $PATH
34676 do
34677   IFS=$as_save_IFS
34678   test -z "$as_dir" && as_dir=.
34679     for ac_exec_ext in '' $ac_executable_extensions; do
34680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34681     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34683     break 2
34684   fi
34685 done
34686   done
34687 IFS=$as_save_IFS
34688
34689   ;;
34690 esac
34691 fi
34692 PERL=$ac_cv_path_PERL
34693 if test -n "$PERL"; then
34694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34695 $as_echo "$PERL" >&6; }
34696 else
34697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34698 $as_echo "no" >&6; }
34699 fi
34700
34701
34702   test -n "$PERL" && break
34703 done
34704         if test "$ac_cv_path_PERL"; then
34705             have_perl="$ac_cv_path_PERL"
34706         fi
34707     fi
34708 fi
34709
34710 if test "$with_perl" != 'yes' ; then
34711     DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34712 fi
34713
34714 PERL_SUPPORTS_DESTDIR='no'
34715
34716 with_perl_static='no'
34717 with_perl_dynamic='no'
34718 if test "$have_perl" != 'no'; then
34719     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34720         with_perl_static='yes'
34721     fi
34722     if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34723         with_perl_dynamic='yes'
34724     fi
34725     # Is PERL's MakeMaker new enough to support DESTDIR?
34726
34727
34728
34729
34730     if test -n "$PERL"; then :
34731
34732         ax_perl_version="5.8.1"
34733
34734         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34735 $as_echo_n "checking for perl version... " >&6; }
34736
34737         perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34738
34739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34740 $as_echo "$perl_version" >&6; }
34741
34742         PERL_VERSION=$perl_version
34743
34744
34745
34746
34747
34748   # Used to indicate true or false condition
34749   ax_compare_version=false
34750
34751   # Convert the two version strings to be compared into a format that
34752   # allows a simple string comparison.  The end result is that a version
34753   # string of the form 1.12.5-r617 will be converted to the form
34754   # 0001001200050617.  In other words, each number is zero padded to four
34755   # digits, and non digits are removed.
34756
34757   ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34758                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34759                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34760                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34761                      -e 's/[^0-9]//g'`
34762
34763
34764   ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34765                      -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34766                      -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34767                      -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34768                      -e 's/[^0-9]//g'`
34769
34770
34771     ax_compare_version=`echo "x$ax_compare_version_A
34772 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34773
34774
34775
34776     if test "$ax_compare_version" = "true" ; then
34777
34778             :
34779             PERL_SUPPORTS_DESTDIR='yes'
34780
34781     else
34782             :
34783             PERL_SUPPORTS_DESTDIR='no'
34784
34785   fi
34786
34787
34788 else
34789
34790         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34791 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34792         PERL_SUPPORTS_DESTDIR='no'
34793
34794 fi
34795
34796 fi
34797  if test "$have_perl" != 'no'; then
34798   WITH_PERL_TRUE=
34799   WITH_PERL_FALSE='#'
34800 else
34801   WITH_PERL_TRUE='#'
34802   WITH_PERL_FALSE=
34803 fi
34804
34805  if test $with_perl_static = 'yes'; then
34806   WITH_PERL_STATIC_TRUE=
34807   WITH_PERL_STATIC_FALSE='#'
34808 else
34809   WITH_PERL_STATIC_TRUE='#'
34810   WITH_PERL_STATIC_FALSE=
34811 fi
34812
34813  if test $with_perl_dynamic = 'yes'; then
34814   WITH_PERL_DYNAMIC_TRUE=
34815   WITH_PERL_DYNAMIC_FALSE='#'
34816 else
34817   WITH_PERL_DYNAMIC_TRUE='#'
34818   WITH_PERL_DYNAMIC_FALSE=
34819 fi
34820
34821
34822
34823 # Determine path to pick up MagickCore library from for use with building PerlMagick
34824 MAGICKCORE_PATH="${LIB_DIR}"
34825 if test $with_perl_static = 'yes'; then
34826     # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34827     libtool_objdir=$objdir
34828
34829     # Linker search path to library, followed by -lMagickCore
34830     MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34831 fi
34832
34833
34834 # Create a simple string containing format names for all delegate libraries
34835 DELEGATES=''
34836 if test "$have_autotrace"  = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34837 if test "$have_bzlib"      = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34838 if test "$have_djvu"       = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34839 if test "$have_dps"        = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34840 if test "$have_fftw"       = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34841 if test "$have_fpx"        = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34842 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34843 if test "$have_freetype"   = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34844 if test "$have_gslib"      = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34845 if test "$have_gvc"        = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34846 if test "$have_jbig"       = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34847 if test "$have_jpeg"       = 'yes'; then
34848   DELEGATES="$DELEGATES jpeg";
34849   if test "$have_png"      = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34850 fi
34851 if test "$have_jp2"        = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34852 if test "$have_lcms2"      = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34853 if test "$have_lcms"       = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34854 if test "$have_lqr"        = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34855 if test "$have_lzma"       = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34856 if test "$have_ffmpeg"     = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34857 if test "$have_openexr"    = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34858 if test "$have_png"        = 'yes'; then DELEGATES="$DELEGATES png"; fi
34859 if test "$have_rsvg"       = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34860 if test "$have_tiff"       = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34861 if test "$have_x"          = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34862 if test "$have_xml"        = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34863 if test "$have_wmf"        = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34864 if test "$have_zlib"       = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34865
34866
34867
34868 #
34869 # Handle special compiler flags
34870 #
34871
34872 # Add '-p' if prof source profiling support enabled
34873 if test "$enable_prof" = 'yes'; then
34874     CFLAGS="-p $CFLAGS"
34875     CXXFLAGS="-p $CXXFLAGS"
34876     LDFLAGS="-p $LDFLAGS"
34877 fi
34878
34879 # Add '-pg' if gprof source profiling support enabled
34880 if test "$enable_gprof" = 'yes'; then
34881     CFLAGS="-pg $CFLAGS"
34882     CXXFLAGS="-pg $CXXFLAGS"
34883     LDFLAGS="-pg $LDFLAGS"
34884 fi
34885
34886 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34887 # This is a gcc-specific feature
34888 if test "$enable_gcov" = 'yes'; then
34889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34890 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34891 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34892   $as_echo_n "(cached) " >&6
34893 else
34894   ac_check_lib_save_LIBS=$LIBS
34895 LIBS="-lgcov  $LIBS"
34896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34897 /* end confdefs.h.  */
34898
34899 /* Override any GCC internal prototype to avoid an error.
34900    Use char because int might match the return type of a GCC
34901    builtin and then its argument prototype would still apply.  */
34902 #ifdef __cplusplus
34903 extern "C"
34904 #endif
34905 char _gcov_init ();
34906 int
34907 main ()
34908 {
34909 return _gcov_init ();
34910   ;
34911   return 0;
34912 }
34913 _ACEOF
34914 if ac_fn_c_try_link "$LINENO"; then :
34915   ac_cv_lib_gcov__gcov_init=yes
34916 else
34917   ac_cv_lib_gcov__gcov_init=no
34918 fi
34919 rm -f core conftest.err conftest.$ac_objext \
34920     conftest$ac_exeext conftest.$ac_ext
34921 LIBS=$ac_check_lib_save_LIBS
34922 fi
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34924 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34925 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34926   cat >>confdefs.h <<_ACEOF
34927 #define HAVE_LIBGCOV 1
34928 _ACEOF
34929
34930   LIBS="-lgcov $LIBS"
34931
34932 fi
34933
34934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34935 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34936 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34937   $as_echo_n "(cached) " >&6
34938 else
34939   ac_check_lib_save_LIBS=$LIBS
34940 LIBS="-lgcov  $LIBS"
34941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34942 /* end confdefs.h.  */
34943
34944 /* Override any GCC internal prototype to avoid an error.
34945    Use char because int might match the return type of a GCC
34946    builtin and then its argument prototype would still apply.  */
34947 #ifdef __cplusplus
34948 extern "C"
34949 #endif
34950 char __gcov_init ();
34951 int
34952 main ()
34953 {
34954 return __gcov_init ();
34955   ;
34956   return 0;
34957 }
34958 _ACEOF
34959 if ac_fn_c_try_link "$LINENO"; then :
34960   ac_cv_lib_gcov___gcov_init=yes
34961 else
34962   ac_cv_lib_gcov___gcov_init=no
34963 fi
34964 rm -f core conftest.err conftest.$ac_objext \
34965     conftest$ac_exeext conftest.$ac_ext
34966 LIBS=$ac_check_lib_save_LIBS
34967 fi
34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34969 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34970 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34971   cat >>confdefs.h <<_ACEOF
34972 #define HAVE_LIBGCOV 1
34973 _ACEOF
34974
34975   LIBS="-lgcov $LIBS"
34976
34977 fi
34978
34979     case "$target_os" in
34980         darwin*)
34981             OSX_GCOV_LDFLAG="-Wl,-single_module"
34982         ;;
34983         *)
34984             OSX_GCOV_LDFLAG=""
34985         ;;
34986     esac
34987
34988     CFLAGS="-ftest-coverage -fprofile-arcs  $CFLAGS"
34989     CXXFLAGS="-ftest-coverage -fprofile-arcs  $CXXFLAGS"
34990     LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34991 fi
34992
34993 #
34994 # Build library dependency list for libMagickCore
34995 #
34996
34997 MAGICK_LIBLTDL='' # Libltdl for build
34998 MAGICK_API_LIBLTDL=''   # libltdl for dependent application (API) build
34999 MAGICK_LTDLDEPS=''      # extra libltdl dependencies
35000 if test "$with_ltdl" != 'no'
35001 then
35002   if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35003     MAGICK_API_LIBLTDL='-lltdl'
35004   fi
35005   MAGICK_LIBLTDL=${LIBLTDL}
35006   MAGICK_LTDLDEPS=${LTDLDEPS}
35007 fi
35008
35009
35010
35011 if test "$with_modules" != 'no'; then
35012     MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
35013 else
35014     MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
35015 fi
35016
35017
35018 #
35019 # Remove extraneous spaces from output variables (asthetic)
35020 #
35021 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/  */ /g'`
35022 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/  */ /g'`
35023 X_LIBS=`echo $X_LIBS | sed -e 's/  */ /g'`
35024 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/  */ /g'`
35025
35026 CC=`echo $CC | sed -e 's/  */ /g'`
35027 CFLAGS=`echo $CFLAGS | sed -e 's/  */ /g'`
35028 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/  */ /g'`
35029 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/  */ /g'`
35030 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35031 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/  */ /g'`
35032 LDFLAGS=`echo $LDFLAGS | sed -e 's/  */ /g'`
35033 TESTED_LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35034 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/  */ /g'`
35035 #LIBS=`echo $LIBS | sed -e 's/  */ /g'`
35036
35037 # Pass only user-provided LIBS as "global" libraries
35038 LIBS=$USER_LIBS
35039
35040 #AC_SUBST(CPPFLAGS)
35041
35042 #AC_SUBST(LDFLAGS)
35043 #AC_SUBST(X_PRE_LIBS)
35044 #AC_SUBST(X_LIBS)
35045 #AC_SUBST(X_EXTRA_LIBS)
35046
35047 MAGICK_CFLAGS=$CFLAGS
35048 MAGICK_CXXFLAGS="$CXXFLAGS"
35049 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/  */ /g'`
35050 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/  */ /g'`
35051 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35052 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35053
35054
35055
35056
35057
35058
35059
35060
35061
35062 # Set configured scripts to executable.
35063 ac_config_commands="$ac_config_commands default"
35064
35065 ac_config_commands="$ac_config_commands MagickCore-config.in"
35066
35067 ac_config_commands="$ac_config_commands MagickWand-config.in"
35068
35069 ac_config_commands="$ac_config_commands Magick++-config.in"
35070
35071 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35072
35073
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35075 $as_echo "$as_me: -------------------------------------------------------------" >&6;}
35076 { $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35077 $as_echo "$as_me: Update ImageMagick configuration" >&6;}
35078 cat >confcache <<\_ACEOF
35079 # This file is a shell script that caches the results of configure
35080 # tests run on this system so they can be shared between configure
35081 # scripts and configure runs, see configure's option --config-cache.
35082 # It is not useful on other systems.  If it contains results you don't
35083 # want to keep, you may remove or edit it.
35084 #
35085 # config.status only pays attention to the cache file if you give it
35086 # the --recheck option to rerun configure.
35087 #
35088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
35089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
35090 # following values.
35091
35092 _ACEOF
35093
35094 # The following way of writing the cache mishandles newlines in values,
35095 # but we know of no workaround that is simple, portable, and efficient.
35096 # So, we kill variables containing newlines.
35097 # Ultrix sh set writes to stderr and can't be redirected directly,
35098 # and sets the high bit in the cache file unless we assign to the vars.
35099 (
35100   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35101     eval ac_val=\$$ac_var
35102     case $ac_val in #(
35103     *${as_nl}*)
35104       case $ac_var in #(
35105       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
35106 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35107       esac
35108       case $ac_var in #(
35109       _ | IFS | as_nl) ;; #(
35110       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
35111       *) { eval $ac_var=; unset $ac_var;} ;;
35112       esac ;;
35113     esac
35114   done
35115
35116   (set) 2>&1 |
35117     case $as_nl`(ac_space=' '; set) 2>&1` in #(
35118     *${as_nl}ac_space=\ *)
35119       # `set' does not quote correctly, so add quotes: double-quote
35120       # substitution turns \\\\ into \\, and sed turns \\ into \.
35121       sed -n \
35122         "s/'/'\\\\''/g;
35123           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35124       ;; #(
35125     *)
35126       # `set' quotes correctly as required by POSIX, so do not add quotes.
35127       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35128       ;;
35129     esac |
35130     sort
35131 ) |
35132   sed '
35133      /^ac_cv_env_/b end
35134      t clear
35135      :clear
35136      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35137      t end
35138      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35139      :end' >>confcache
35140 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35141   if test -w "$cache_file"; then
35142     if test "x$cache_file" != "x/dev/null"; then
35143       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
35144 $as_echo "$as_me: updating cache $cache_file" >&6;}
35145       if test ! -f "$cache_file" || test -h "$cache_file"; then
35146         cat confcache >"$cache_file"
35147       else
35148         case $cache_file in #(
35149         */* | ?:*)
35150           mv -f confcache "$cache_file"$$ &&
35151           mv -f "$cache_file"$$ "$cache_file" ;; #(
35152         *)
35153           mv -f confcache "$cache_file" ;;
35154         esac
35155       fi
35156     fi
35157   else
35158     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
35159 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35160   fi
35161 fi
35162 rm -f confcache
35163
35164 test "x$prefix" = xNONE && prefix=$ac_default_prefix
35165 # Let make expand exec_prefix.
35166 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35167
35168 DEFS=-DHAVE_CONFIG_H
35169
35170 ac_libobjs=
35171 ac_ltlibobjs=
35172 U=
35173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35174   # 1. Remove the extension, and $U if already installed.
35175   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35176   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35177   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
35178   #    will be set to the directory where LIBOBJS objects are built.
35179   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35180   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
35181 done
35182 LIBOBJS=$ac_libobjs
35183
35184 LTLIBOBJS=$ac_ltlibobjs
35185
35186
35187  if test -n "$EXEEXT"; then
35188   am__EXEEXT_TRUE=
35189   am__EXEEXT_FALSE='#'
35190 else
35191   am__EXEEXT_TRUE='#'
35192   am__EXEEXT_FALSE=
35193 fi
35194
35195 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
35196   as_fn_error $? "conditional \"AMDEP\" was never defined.
35197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35198 fi
35199 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35200   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35201 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35202 fi
35203 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
35204   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
35205 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35206 fi
35207 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35208   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35209 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35210 fi
35211 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
35212   as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
35213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35214 fi
35215 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
35216   as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
35217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35218 fi
35219 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
35220   as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
35221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35222 fi
35223 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
35224   as_fn_error $? "conditional \"USING_CL\" was never defined.
35225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35226 fi
35227 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
35228   as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
35229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35230 fi
35231 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
35232   as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
35233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35234 fi
35235 LT_CONFIG_H=config/config.h
35236
35237     _ltdl_libobjs=
35238     _ltdl_ltlibobjs=
35239     if test -n "$_LT_LIBOBJS"; then
35240       # Remove the extension.
35241       _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
35242       for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
35243         _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
35244         _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
35245       done
35246     fi
35247     ltdl_LIBOBJS=$_ltdl_libobjs
35248
35249     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
35250
35251
35252 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
35253   as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
35254 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35255 fi
35256 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
35257   as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
35258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35259 fi
35260 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35261   as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35262 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35263 fi
35264 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
35265   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
35266 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35267 fi
35268
35269 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
35270   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
35271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35272 fi
35273 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
35274   as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
35275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35276 fi
35277 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
35278   as_fn_error $? "conditional \"HasUMEM\" was never defined.
35279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35280 fi
35281 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
35282   as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
35283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35284 fi
35285 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
35286   as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
35287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35288 fi
35289 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
35290   as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
35291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35292 fi
35293 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
35294   as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
35295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35296 fi
35297 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
35298   as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
35299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35300 fi
35301 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
35302   as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
35303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35304 fi
35305 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
35306   as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
35307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35308 fi
35309 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
35310   as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
35311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35312 fi
35313 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
35314   as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
35315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35316 fi
35317 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
35318   as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
35319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35320 fi
35321 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
35322   as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
35323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35324 fi
35325 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
35326   as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
35327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35328 fi
35329 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
35330   as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
35331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35332 fi
35333 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
35334   as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
35335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35336 fi
35337 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
35338   as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
35339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35340 fi
35341 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
35342   as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
35343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35344 fi
35345 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
35346   as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
35347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35348 fi
35349 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35350   as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35352 fi
35353 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
35354   as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
35355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35356 fi
35357 if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35358   as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35360 fi
35361 if test -z "${PANGOFT2_DELEGATE_TRUE}" && test -z "${PANGOFT2_DELEGATE_FALSE}"; then
35362   as_fn_error $? "conditional \"PANGOFT2_DELEGATE\" was never defined.
35363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35364 fi
35365 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
35366   as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
35367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35368 fi
35369 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
35370   as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
35371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35372 fi
35373 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
35374   as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
35375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35376 fi
35377 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
35378   as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
35379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35380 fi
35381 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35382   as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35384 fi
35385 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
35386   as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
35387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35388 fi
35389 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
35390   as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
35391 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35392 fi
35393 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
35394   as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
35395 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35396 fi
35397 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
35398   as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
35399 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35400 fi
35401 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
35402   as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
35403 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35404 fi
35405 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
35406   as_fn_error $? "conditional \"WITH_PERL\" was never defined.
35407 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35408 fi
35409 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
35410   as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
35411 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35412 fi
35413 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
35414   as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
35415 Usually this means the macro was only invoked conditionally." "$LINENO" 5
35416 fi
35417
35418 : "${CONFIG_STATUS=./config.status}"
35419 ac_write_fail=0
35420 ac_clean_files_save=$ac_clean_files
35421 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
35422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
35423 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
35424 as_write_fail=0
35425 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
35426 #! $SHELL
35427 # Generated by $as_me.
35428 # Run this file to recreate the current configuration.
35429 # Compiler output produced by configure, useful for debugging
35430 # configure, is in config.log if it exists.
35431
35432 debug=false
35433 ac_cs_recheck=false
35434 ac_cs_silent=false
35435
35436 SHELL=\${CONFIG_SHELL-$SHELL}
35437 export SHELL
35438 _ASEOF
35439 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35440 ## -------------------- ##
35441 ## M4sh Initialization. ##
35442 ## -------------------- ##
35443
35444 # Be more Bourne compatible
35445 DUALCASE=1; export DUALCASE # for MKS sh
35446 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35447   emulate sh
35448   NULLCMD=:
35449   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35450   # is contrary to our usage.  Disable this feature.
35451   alias -g '${1+"$@"}'='"$@"'
35452   setopt NO_GLOB_SUBST
35453 else
35454   case `(set -o) 2>/dev/null` in #(
35455   *posix*) :
35456     set -o posix ;; #(
35457   *) :
35458      ;;
35459 esac
35460 fi
35461
35462
35463 as_nl='
35464 '
35465 export as_nl
35466 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35467 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35468 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35469 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35470 # Prefer a ksh shell builtin over an external printf program on Solaris,
35471 # but without wasting forks for bash or zsh.
35472 if test -z "$BASH_VERSION$ZSH_VERSION" \
35473     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35474   as_echo='print -r --'
35475   as_echo_n='print -rn --'
35476 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35477   as_echo='printf %s\n'
35478   as_echo_n='printf %s'
35479 else
35480   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35481     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35482     as_echo_n='/usr/ucb/echo -n'
35483   else
35484     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35485     as_echo_n_body='eval
35486       arg=$1;
35487       case $arg in #(
35488       *"$as_nl"*)
35489         expr "X$arg" : "X\\(.*\\)$as_nl";
35490         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35491       esac;
35492       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35493     '
35494     export as_echo_n_body
35495     as_echo_n='sh -c $as_echo_n_body as_echo'
35496   fi
35497   export as_echo_body
35498   as_echo='sh -c $as_echo_body as_echo'
35499 fi
35500
35501 # The user is always right.
35502 if test "${PATH_SEPARATOR+set}" != set; then
35503   PATH_SEPARATOR=:
35504   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35505     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35506       PATH_SEPARATOR=';'
35507   }
35508 fi
35509
35510
35511 # IFS
35512 # We need space, tab and new line, in precisely that order.  Quoting is
35513 # there to prevent editors from complaining about space-tab.
35514 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35515 # splitting by setting IFS to empty value.)
35516 IFS=" ""        $as_nl"
35517
35518 # Find who we are.  Look in the path if we contain no directory separator.
35519 as_myself=
35520 case $0 in #((
35521   *[\\/]* ) as_myself=$0 ;;
35522   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35523 for as_dir in $PATH
35524 do
35525   IFS=$as_save_IFS
35526   test -z "$as_dir" && as_dir=.
35527     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35528   done
35529 IFS=$as_save_IFS
35530
35531      ;;
35532 esac
35533 # We did not find ourselves, most probably we were run as `sh COMMAND'
35534 # in which case we are not to be found in the path.
35535 if test "x$as_myself" = x; then
35536   as_myself=$0
35537 fi
35538 if test ! -f "$as_myself"; then
35539   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35540   exit 1
35541 fi
35542
35543 # Unset variables that we do not need and which cause bugs (e.g. in
35544 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
35545 # suppresses any "Segmentation fault" message there.  '((' could
35546 # trigger a bug in pdksh 5.2.14.
35547 for as_var in BASH_ENV ENV MAIL MAILPATH
35548 do eval test x\${$as_var+set} = xset \
35549   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35550 done
35551 PS1='$ '
35552 PS2='> '
35553 PS4='+ '
35554
35555 # NLS nuisances.
35556 LC_ALL=C
35557 export LC_ALL
35558 LANGUAGE=C
35559 export LANGUAGE
35560
35561 # CDPATH.
35562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35563
35564
35565 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35566 # ----------------------------------------
35567 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35568 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35569 # script with STATUS, using 1 if that was 0.
35570 as_fn_error ()
35571 {
35572   as_status=$1; test $as_status -eq 0 && as_status=1
35573   if test "$4"; then
35574     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35575     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35576   fi
35577   $as_echo "$as_me: error: $2" >&2
35578   as_fn_exit $as_status
35579 } # as_fn_error
35580
35581
35582 # as_fn_set_status STATUS
35583 # -----------------------
35584 # Set $? to STATUS, without forking.
35585 as_fn_set_status ()
35586 {
35587   return $1
35588 } # as_fn_set_status
35589
35590 # as_fn_exit STATUS
35591 # -----------------
35592 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35593 as_fn_exit ()
35594 {
35595   set +e
35596   as_fn_set_status $1
35597   exit $1
35598 } # as_fn_exit
35599
35600 # as_fn_unset VAR
35601 # ---------------
35602 # Portably unset VAR.
35603 as_fn_unset ()
35604 {
35605   { eval $1=; unset $1;}
35606 }
35607 as_unset=as_fn_unset
35608 # as_fn_append VAR VALUE
35609 # ----------------------
35610 # Append the text in VALUE to the end of the definition contained in VAR. Take
35611 # advantage of any shell optimizations that allow amortized linear growth over
35612 # repeated appends, instead of the typical quadratic growth present in naive
35613 # implementations.
35614 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35615   eval 'as_fn_append ()
35616   {
35617     eval $1+=\$2
35618   }'
35619 else
35620   as_fn_append ()
35621   {
35622     eval $1=\$$1\$2
35623   }
35624 fi # as_fn_append
35625
35626 # as_fn_arith ARG...
35627 # ------------------
35628 # Perform arithmetic evaluation on the ARGs, and store the result in the
35629 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35630 # must be portable across $(()) and expr.
35631 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35632   eval 'as_fn_arith ()
35633   {
35634     as_val=$(( $* ))
35635   }'
35636 else
35637   as_fn_arith ()
35638   {
35639     as_val=`expr "$@" || test $? -eq 1`
35640   }
35641 fi # as_fn_arith
35642
35643
35644 if expr a : '\(a\)' >/dev/null 2>&1 &&
35645    test "X`expr 00001 : '.*\(...\)'`" = X001; then
35646   as_expr=expr
35647 else
35648   as_expr=false
35649 fi
35650
35651 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35652   as_basename=basename
35653 else
35654   as_basename=false
35655 fi
35656
35657 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35658   as_dirname=dirname
35659 else
35660   as_dirname=false
35661 fi
35662
35663 as_me=`$as_basename -- "$0" ||
35664 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35665          X"$0" : 'X\(//\)$' \| \
35666          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35667 $as_echo X/"$0" |
35668     sed '/^.*\/\([^/][^/]*\)\/*$/{
35669             s//\1/
35670             q
35671           }
35672           /^X\/\(\/\/\)$/{
35673             s//\1/
35674             q
35675           }
35676           /^X\/\(\/\).*/{
35677             s//\1/
35678             q
35679           }
35680           s/.*/./; q'`
35681
35682 # Avoid depending upon Character Ranges.
35683 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35684 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35685 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35686 as_cr_digits='0123456789'
35687 as_cr_alnum=$as_cr_Letters$as_cr_digits
35688
35689 ECHO_C= ECHO_N= ECHO_T=
35690 case `echo -n x` in #(((((
35691 -n*)
35692   case `echo 'xy\c'` in
35693   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
35694   xy)  ECHO_C='\c';;
35695   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
35696        ECHO_T=' ';;
35697   esac;;
35698 *)
35699   ECHO_N='-n';;
35700 esac
35701
35702 rm -f conf$$ conf$$.exe conf$$.file
35703 if test -d conf$$.dir; then
35704   rm -f conf$$.dir/conf$$.file
35705 else
35706   rm -f conf$$.dir
35707   mkdir conf$$.dir 2>/dev/null
35708 fi
35709 if (echo >conf$$.file) 2>/dev/null; then
35710   if ln -s conf$$.file conf$$ 2>/dev/null; then
35711     as_ln_s='ln -s'
35712     # ... but there are two gotchas:
35713     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35714     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35715     # In both cases, we have to default to `cp -p'.
35716     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35717       as_ln_s='cp -p'
35718   elif ln conf$$.file conf$$ 2>/dev/null; then
35719     as_ln_s=ln
35720   else
35721     as_ln_s='cp -p'
35722   fi
35723 else
35724   as_ln_s='cp -p'
35725 fi
35726 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35727 rmdir conf$$.dir 2>/dev/null
35728
35729
35730 # as_fn_mkdir_p
35731 # -------------
35732 # Create "$as_dir" as a directory, including parents if necessary.
35733 as_fn_mkdir_p ()
35734 {
35735
35736   case $as_dir in #(
35737   -*) as_dir=./$as_dir;;
35738   esac
35739   test -d "$as_dir" || eval $as_mkdir_p || {
35740     as_dirs=
35741     while :; do
35742       case $as_dir in #(
35743       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35744       *) as_qdir=$as_dir;;
35745       esac
35746       as_dirs="'$as_qdir' $as_dirs"
35747       as_dir=`$as_dirname -- "$as_dir" ||
35748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35749          X"$as_dir" : 'X\(//\)[^/]' \| \
35750          X"$as_dir" : 'X\(//\)$' \| \
35751          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35752 $as_echo X"$as_dir" |
35753     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35754             s//\1/
35755             q
35756           }
35757           /^X\(\/\/\)[^/].*/{
35758             s//\1/
35759             q
35760           }
35761           /^X\(\/\/\)$/{
35762             s//\1/
35763             q
35764           }
35765           /^X\(\/\).*/{
35766             s//\1/
35767             q
35768           }
35769           s/.*/./; q'`
35770       test -d "$as_dir" && break
35771     done
35772     test -z "$as_dirs" || eval "mkdir $as_dirs"
35773   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35774
35775
35776 } # as_fn_mkdir_p
35777 if mkdir -p . 2>/dev/null; then
35778   as_mkdir_p='mkdir -p "$as_dir"'
35779 else
35780   test -d ./-p && rmdir ./-p
35781   as_mkdir_p=false
35782 fi
35783
35784 if test -x / >/dev/null 2>&1; then
35785   as_test_x='test -x'
35786 else
35787   if ls -dL / >/dev/null 2>&1; then
35788     as_ls_L_option=L
35789   else
35790     as_ls_L_option=
35791   fi
35792   as_test_x='
35793     eval sh -c '\''
35794       if test -d "$1"; then
35795         test -d "$1/.";
35796       else
35797         case $1 in #(
35798         -*)set "./$1";;
35799         esac;
35800         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35801         ???[sx]*):;;*)false;;esac;fi
35802     '\'' sh
35803   '
35804 fi
35805 as_executable_p=$as_test_x
35806
35807 # Sed expression to map a string onto a valid CPP name.
35808 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35809
35810 # Sed expression to map a string onto a valid variable name.
35811 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35812
35813
35814 exec 6>&1
35815 ## ----------------------------------- ##
35816 ## Main body of $CONFIG_STATUS script. ##
35817 ## ----------------------------------- ##
35818 _ASEOF
35819 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35820
35821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35822 # Save the log message, to keep $0 and so on meaningful, and to
35823 # report actual input values of CONFIG_FILES etc. instead of their
35824 # values after options handling.
35825 ac_log="
35826 This file was extended by ImageMagick $as_me 7.0.0-0, which was
35827 generated by GNU Autoconf 2.68.  Invocation command line was
35828
35829   CONFIG_FILES    = $CONFIG_FILES
35830   CONFIG_HEADERS  = $CONFIG_HEADERS
35831   CONFIG_LINKS    = $CONFIG_LINKS
35832   CONFIG_COMMANDS = $CONFIG_COMMANDS
35833   $ $0 $@
35834
35835 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35836 "
35837
35838 _ACEOF
35839
35840 case $ac_config_files in *"
35841 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35842 esac
35843
35844 case $ac_config_headers in *"
35845 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35846 esac
35847
35848
35849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35850 # Files that config.status was made for.
35851 config_files="$ac_config_files"
35852 config_headers="$ac_config_headers"
35853 config_commands="$ac_config_commands"
35854
35855 _ACEOF
35856
35857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35858 ac_cs_usage="\
35859 \`$as_me' instantiates files and other configuration actions
35860 from templates according to the current configuration.  Unless the files
35861 and actions are specified as TAGs, all are instantiated by default.
35862
35863 Usage: $0 [OPTION]... [TAG]...
35864
35865   -h, --help       print this help, then exit
35866   -V, --version    print version number and configuration settings, then exit
35867       --config     print configuration, then exit
35868   -q, --quiet, --silent
35869                    do not print progress messages
35870   -d, --debug      don't remove temporary files
35871       --recheck    update $as_me by reconfiguring in the same conditions
35872       --file=FILE[:TEMPLATE]
35873                    instantiate the configuration file FILE
35874       --header=FILE[:TEMPLATE]
35875                    instantiate the configuration header FILE
35876
35877 Configuration files:
35878 $config_files
35879
35880 Configuration headers:
35881 $config_headers
35882
35883 Configuration commands:
35884 $config_commands
35885
35886 Report bugs to <http://www.imagemagick.org>."
35887
35888 _ACEOF
35889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35890 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35891 ac_cs_version="\\
35892 ImageMagick config.status 7.0.0-0
35893 configured by $0, generated by GNU Autoconf 2.68,
35894   with options \\"\$ac_cs_config\\"
35895
35896 Copyright (C) 2010 Free Software Foundation, Inc.
35897 This config.status script is free software; the Free Software Foundation
35898 gives unlimited permission to copy, distribute and modify it."
35899
35900 ac_pwd='$ac_pwd'
35901 srcdir='$srcdir'
35902 INSTALL='$INSTALL'
35903 MKDIR_P='$MKDIR_P'
35904 AWK='$AWK'
35905 test -n "\$AWK" || AWK=awk
35906 _ACEOF
35907
35908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35909 # The default lists apply if the user does not specify any file.
35910 ac_need_defaults=:
35911 while test $# != 0
35912 do
35913   case $1 in
35914   --*=?*)
35915     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35916     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35917     ac_shift=:
35918     ;;
35919   --*=)
35920     ac_option=`expr "X$1" : 'X\([^=]*\)='`
35921     ac_optarg=
35922     ac_shift=:
35923     ;;
35924   *)
35925     ac_option=$1
35926     ac_optarg=$2
35927     ac_shift=shift
35928     ;;
35929   esac
35930
35931   case $ac_option in
35932   # Handling of the options.
35933   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35934     ac_cs_recheck=: ;;
35935   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35936     $as_echo "$ac_cs_version"; exit ;;
35937   --config | --confi | --conf | --con | --co | --c )
35938     $as_echo "$ac_cs_config"; exit ;;
35939   --debug | --debu | --deb | --de | --d | -d )
35940     debug=: ;;
35941   --file | --fil | --fi | --f )
35942     $ac_shift
35943     case $ac_optarg in
35944     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35945     '') as_fn_error $? "missing file argument" ;;
35946     esac
35947     as_fn_append CONFIG_FILES " '$ac_optarg'"
35948     ac_need_defaults=false;;
35949   --header | --heade | --head | --hea )
35950     $ac_shift
35951     case $ac_optarg in
35952     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35953     esac
35954     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35955     ac_need_defaults=false;;
35956   --he | --h)
35957     # Conflict between --help and --header
35958     as_fn_error $? "ambiguous option: \`$1'
35959 Try \`$0 --help' for more information.";;
35960   --help | --hel | -h )
35961     $as_echo "$ac_cs_usage"; exit ;;
35962   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35963   | -silent | --silent | --silen | --sile | --sil | --si | --s)
35964     ac_cs_silent=: ;;
35965
35966   # This is an error.
35967   -*) as_fn_error $? "unrecognized option: \`$1'
35968 Try \`$0 --help' for more information." ;;
35969
35970   *) as_fn_append ac_config_targets " $1"
35971      ac_need_defaults=false ;;
35972
35973   esac
35974   shift
35975 done
35976
35977 ac_configure_extra_args=
35978
35979 if $ac_cs_silent; then
35980   exec 6>/dev/null
35981   ac_configure_extra_args="$ac_configure_extra_args --silent"
35982 fi
35983
35984 _ACEOF
35985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35986 if \$ac_cs_recheck; then
35987   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35988   shift
35989   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35990   CONFIG_SHELL='$SHELL'
35991   export CONFIG_SHELL
35992   exec "\$@"
35993 fi
35994
35995 _ACEOF
35996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35997 exec 5>>config.log
35998 {
35999   echo
36000   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36001 ## Running $as_me. ##
36002 _ASBOX
36003   $as_echo "$ac_log"
36004 } >&5
36005
36006 _ACEOF
36007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36008 #
36009 # INIT-COMMANDS
36010 #
36011 PACKAGE="$PACKAGE"
36012 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36013
36014
36015 # The HP-UX ksh and POSIX shell print the target directory to stdout
36016 # if CDPATH is set.
36017 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36018
36019 sed_quote_subst='$sed_quote_subst'
36020 double_quote_subst='$double_quote_subst'
36021 delay_variable_subst='$delay_variable_subst'
36022 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36023 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36024 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36025 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36026 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36027 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36028 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36029 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36030 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36031 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36032 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36033 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36034 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36035 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36036 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36037 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36038 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36039 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36040 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36041 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36042 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36043 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36044 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36045 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36046 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36047 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36048 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36049 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36050 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36051 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36052 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36053 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36054 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36055 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36056 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36057 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36058 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36059 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36060 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36061 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36062 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36063 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36064 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36065 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36066 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36067 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36068 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36069 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36070 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36071 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36072 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36073 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36074 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36075 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36076 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36077 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36078 lt_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"`'
36079 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36080 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36081 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36082 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36083 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36084 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36085 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36086 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36087 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36088 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36089 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36090 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36091 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36092 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36093 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36094 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36095 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36096 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36097 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36098 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36099 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36100 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36101 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36102 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36103 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36104 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36105 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36106 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36107 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36108 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36109 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36110 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36111 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36112 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36113 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
36114 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36115 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36116 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36117 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36118 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36119 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36120 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36121 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36122 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36123 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36124 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36125 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36126 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36127 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36128 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36129 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36130 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36131 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36132 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36133 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36134 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36135 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36136 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36137 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36138 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36139 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36140 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36141 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36142 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36143 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36144 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36145 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36146 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36147 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36148 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36149 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36150 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36151 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36152 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36153 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36154 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36155 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36156 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36157 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36158 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36159 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36160 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36161 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36162 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36163 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36164 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36165 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
36166 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
36167 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
36168 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36169 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36170 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36171 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36172 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36173 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36174 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36175 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36176 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36177 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36178 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36179 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36180 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36181 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36182 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36183 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36184 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36185 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
36186 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36187 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36188 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36189 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36190 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36191 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36192 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36193 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
36194 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36195 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36196 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36197 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36198 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36199 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36200 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36201 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36202 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36203 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36204 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36205 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36206 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36207 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
36208
36209 LTCC='$LTCC'
36210 LTCFLAGS='$LTCFLAGS'
36211 compiler='$compiler_DEFAULT'
36212
36213 # A function that is used when there is no print builtin or printf.
36214 func_fallback_echo ()
36215 {
36216   eval 'cat <<_LTECHO_EOF
36217 \$1
36218 _LTECHO_EOF'
36219 }
36220
36221 # Quote evaled strings.
36222 for var in SED \
36223 GREP \
36224 EGREP \
36225 FGREP \
36226 SHELL \
36227 ECHO \
36228 LD \
36229 AS \
36230 DLLTOOL \
36231 OBJDUMP \
36232 NM \
36233 LN_S \
36234 lt_SP2NL \
36235 lt_NL2SP \
36236 reload_flag \
36237 deplibs_check_method \
36238 file_magic_cmd \
36239 file_magic_glob \
36240 want_nocaseglob \
36241 sharedlib_from_linklib_cmd \
36242 AR \
36243 AR_FLAGS \
36244 archiver_list_spec \
36245 STRIP \
36246 RANLIB \
36247 CC \
36248 CFLAGS \
36249 compiler \
36250 lt_cv_sys_global_symbol_pipe \
36251 lt_cv_sys_global_symbol_to_cdecl \
36252 lt_cv_sys_global_symbol_to_c_name_address \
36253 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36254 nm_file_list_spec \
36255 lt_prog_compiler_no_builtin_flag \
36256 lt_prog_compiler_pic \
36257 lt_prog_compiler_wl \
36258 lt_prog_compiler_static \
36259 lt_cv_prog_compiler_c_o \
36260 need_locks \
36261 MANIFEST_TOOL \
36262 DSYMUTIL \
36263 NMEDIT \
36264 LIPO \
36265 OTOOL \
36266 OTOOL64 \
36267 shrext_cmds \
36268 export_dynamic_flag_spec \
36269 whole_archive_flag_spec \
36270 compiler_needs_object \
36271 with_gnu_ld \
36272 allow_undefined_flag \
36273 no_undefined_flag \
36274 hardcode_libdir_flag_spec \
36275 hardcode_libdir_flag_spec_ld \
36276 hardcode_libdir_separator \
36277 exclude_expsyms \
36278 include_expsyms \
36279 file_list_spec \
36280 variables_saved_for_relink \
36281 libname_spec \
36282 library_names_spec \
36283 soname_spec \
36284 install_override_mode \
36285 finish_eval \
36286 old_striplib \
36287 striplib \
36288 compiler_lib_search_dirs \
36289 predep_objects \
36290 postdep_objects \
36291 predeps \
36292 postdeps \
36293 compiler_lib_search_path \
36294 LD_CXX \
36295 reload_flag_CXX \
36296 compiler_CXX \
36297 lt_prog_compiler_no_builtin_flag_CXX \
36298 lt_prog_compiler_pic_CXX \
36299 lt_prog_compiler_wl_CXX \
36300 lt_prog_compiler_static_CXX \
36301 lt_cv_prog_compiler_c_o_CXX \
36302 export_dynamic_flag_spec_CXX \
36303 whole_archive_flag_spec_CXX \
36304 compiler_needs_object_CXX \
36305 with_gnu_ld_CXX \
36306 allow_undefined_flag_CXX \
36307 no_undefined_flag_CXX \
36308 hardcode_libdir_flag_spec_CXX \
36309 hardcode_libdir_flag_spec_ld_CXX \
36310 hardcode_libdir_separator_CXX \
36311 exclude_expsyms_CXX \
36312 include_expsyms_CXX \
36313 file_list_spec_CXX \
36314 compiler_lib_search_dirs_CXX \
36315 predep_objects_CXX \
36316 postdep_objects_CXX \
36317 predeps_CXX \
36318 postdeps_CXX \
36319 compiler_lib_search_path_CXX; do
36320     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36321     *[\\\\\\\`\\"\\\$]*)
36322       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
36323       ;;
36324     *)
36325       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36326       ;;
36327     esac
36328 done
36329
36330 # Double-quote double-evaled strings.
36331 for var in reload_cmds \
36332 old_postinstall_cmds \
36333 old_postuninstall_cmds \
36334 old_archive_cmds \
36335 extract_expsyms_cmds \
36336 old_archive_from_new_cmds \
36337 old_archive_from_expsyms_cmds \
36338 archive_cmds \
36339 archive_expsym_cmds \
36340 module_cmds \
36341 module_expsym_cmds \
36342 export_symbols_cmds \
36343 prelink_cmds \
36344 postlink_cmds \
36345 postinstall_cmds \
36346 postuninstall_cmds \
36347 finish_cmds \
36348 sys_lib_search_path_spec \
36349 sys_lib_dlsearch_path_spec \
36350 reload_cmds_CXX \
36351 old_archive_cmds_CXX \
36352 old_archive_from_new_cmds_CXX \
36353 old_archive_from_expsyms_cmds_CXX \
36354 archive_cmds_CXX \
36355 archive_expsym_cmds_CXX \
36356 module_cmds_CXX \
36357 module_expsym_cmds_CXX \
36358 export_symbols_cmds_CXX \
36359 prelink_cmds_CXX \
36360 postlink_cmds_CXX; do
36361     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
36362     *[\\\\\\\`\\"\\\$]*)
36363       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
36364       ;;
36365     *)
36366       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36367       ;;
36368     esac
36369 done
36370
36371 ac_aux_dir='$ac_aux_dir'
36372 xsi_shell='$xsi_shell'
36373 lt_shell_append='$lt_shell_append'
36374
36375 # See if we are running on zsh, and set the options which allow our
36376 # commands through without removal of \ escapes INIT.
36377 if test -n "\${ZSH_VERSION+set}" ; then
36378    setopt NO_GLOB_SUBST
36379 fi
36380
36381
36382     PACKAGE='$PACKAGE'
36383     VERSION='$VERSION'
36384     TIMESTAMP='$TIMESTAMP'
36385     RM='$RM'
36386     ofile='$ofile'
36387
36388
36389
36390
36391
36392
36393 _ACEOF
36394
36395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36396
36397 # Handling of arguments.
36398 for ac_config_target in $ac_config_targets
36399 do
36400   case $ac_config_target in
36401     "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
36402     "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
36403     "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36404     "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36405     "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36406     "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36407     "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
36408     "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
36409     "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36410     "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36411     "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36412     "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36413     "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
36414     "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
36415     "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36416     "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
36417     "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36418     "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36419     "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
36420     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36421     "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36422     "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36423     "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36424     "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36425     "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36426     "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36427     "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36428     "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36429     "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36430     "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36431     "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36432     "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36433     "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36434     "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36435     "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36436     "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
36437     "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36438     "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
36439     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36440     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
36441     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
36442     "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
36443     "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
36444     "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36445     "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36446
36447   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36448   esac
36449 done
36450
36451
36452 # If the user did not use the arguments to specify the items to instantiate,
36453 # then the envvar interface is used.  Set only those that are not.
36454 # We use the long form for the default assignment because of an extremely
36455 # bizarre bug on SunOS 4.1.3.
36456 if $ac_need_defaults; then
36457   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36458   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36459   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36460 fi
36461
36462 # Have a temporary directory for convenience.  Make it in the build tree
36463 # simply because there is no reason against having it here, and in addition,
36464 # creating and moving files from /tmp can sometimes cause problems.
36465 # Hook for its removal unless debugging.
36466 # Note that there is a small window in which the directory will not be cleaned:
36467 # after its creation but before its name has been assigned to `$tmp'.
36468 $debug ||
36469 {
36470   tmp= ac_tmp=
36471   trap 'exit_status=$?
36472   : "${ac_tmp:=$tmp}"
36473   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36474 ' 0
36475   trap 'as_fn_exit 1' 1 2 13 15
36476 }
36477 # Create a (secure) tmp directory for tmp files.
36478
36479 {
36480   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36481   test -d "$tmp"
36482 }  ||
36483 {
36484   tmp=./conf$$-$RANDOM
36485   (umask 077 && mkdir "$tmp")
36486 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36487 ac_tmp=$tmp
36488
36489 # Set up the scripts for CONFIG_FILES section.
36490 # No need to generate them if there are no CONFIG_FILES.
36491 # This happens for instance with `./config.status config.h'.
36492 if test -n "$CONFIG_FILES"; then
36493
36494
36495 ac_cr=`echo X | tr X '\015'`
36496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36497 # But we know of no other shell where ac_cr would be empty at this
36498 # point, so we can use a bashism as a fallback.
36499 if test "x$ac_cr" = x; then
36500   eval ac_cr=\$\'\\r\'
36501 fi
36502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36504   ac_cs_awk_cr='\\r'
36505 else
36506   ac_cs_awk_cr=$ac_cr
36507 fi
36508
36509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36510 _ACEOF
36511
36512
36513 {
36514   echo "cat >conf$$subs.awk <<_ACEOF" &&
36515   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36516   echo "_ACEOF"
36517 } >conf$$subs.sh ||
36518   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36520 ac_delim='%!_!# '
36521 for ac_last_try in false false false false false :; do
36522   . ./conf$$subs.sh ||
36523     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36524
36525   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36526   if test $ac_delim_n = $ac_delim_num; then
36527     break
36528   elif $ac_last_try; then
36529     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36530   else
36531     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36532   fi
36533 done
36534 rm -f conf$$subs.sh
36535
36536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36537 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36538 _ACEOF
36539 sed -n '
36540 h
36541 s/^/S["/; s/!.*/"]=/
36542 p
36543 g
36544 s/^[^!]*!//
36545 :repl
36546 t repl
36547 s/'"$ac_delim"'$//
36548 t delim
36549 :nl
36550 h
36551 s/\(.\{148\}\)..*/\1/
36552 t more1
36553 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36554 p
36555 n
36556 b repl
36557 :more1
36558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36559 p
36560 g
36561 s/.\{148\}//
36562 t nl
36563 :delim
36564 h
36565 s/\(.\{148\}\)..*/\1/
36566 t more2
36567 s/["\\]/\\&/g; s/^/"/; s/$/"/
36568 p
36569 b
36570 :more2
36571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36572 p
36573 g
36574 s/.\{148\}//
36575 t delim
36576 ' <conf$$subs.awk | sed '
36577 /^[^""]/{
36578   N
36579   s/\n//
36580 }
36581 ' >>$CONFIG_STATUS || ac_write_fail=1
36582 rm -f conf$$subs.awk
36583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36584 _ACAWK
36585 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36586   for (key in S) S_is_set[key] = 1
36587   FS = "\a"
36588
36589 }
36590 {
36591   line = $ 0
36592   nfields = split(line, field, "@")
36593   substed = 0
36594   len = length(field[1])
36595   for (i = 2; i < nfields; i++) {
36596     key = field[i]
36597     keylen = length(key)
36598     if (S_is_set[key]) {
36599       value = S[key]
36600       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36601       len += length(value) + length(field[++i])
36602       substed = 1
36603     } else
36604       len += 1 + keylen
36605   }
36606
36607   print line
36608 }
36609
36610 _ACAWK
36611 _ACEOF
36612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36614   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36615 else
36616   cat
36617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36618   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36619 _ACEOF
36620
36621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36623 # trailing colons and then remove the whole line if VPATH becomes empty
36624 # (actually we leave an empty line to preserve line numbers).
36625 if test "x$srcdir" = x.; then
36626   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
36627 h
36628 s///
36629 s/^/:/
36630 s/[      ]*$/:/
36631 s/:\$(srcdir):/:/g
36632 s/:\${srcdir}:/:/g
36633 s/:@srcdir@:/:/g
36634 s/^:*//
36635 s/:*$//
36636 x
36637 s/\(=[   ]*\).*/\1/
36638 G
36639 s/\n//
36640 s/^[^=]*=[       ]*$//
36641 }'
36642 fi
36643
36644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36645 fi # test -n "$CONFIG_FILES"
36646
36647 # Set up the scripts for CONFIG_HEADERS section.
36648 # No need to generate them if there are no CONFIG_HEADERS.
36649 # This happens for instance with `./config.status Makefile'.
36650 if test -n "$CONFIG_HEADERS"; then
36651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36652 BEGIN {
36653 _ACEOF
36654
36655 # Transform confdefs.h into an awk script `defines.awk', embedded as
36656 # here-document in config.status, that substitutes the proper values into
36657 # config.h.in to produce config.h.
36658
36659 # Create a delimiter string that does not exist in confdefs.h, to ease
36660 # handling of long lines.
36661 ac_delim='%!_!# '
36662 for ac_last_try in false false :; do
36663   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36664   if test -z "$ac_tt"; then
36665     break
36666   elif $ac_last_try; then
36667     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36668   else
36669     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36670   fi
36671 done
36672
36673 # For the awk script, D is an array of macro values keyed by name,
36674 # likewise P contains macro parameters if any.  Preserve backslash
36675 # newline sequences.
36676
36677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36678 sed -n '
36679 s/.\{148\}/&'"$ac_delim"'/g
36680 t rset
36681 :rset
36682 s/^[     ]*#[    ]*define[       ][      ]*/ /
36683 t def
36684 d
36685 :def
36686 s/\\$//
36687 t bsnl
36688 s/["\\]/\\&/g
36689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36690 D["\1"]=" \3"/p
36691 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
36692 d
36693 :bsnl
36694 s/["\\]/\\&/g
36695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
36696 D["\1"]=" \3\\\\\\n"\\/p
36697 t cont
36698 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36699 t cont
36700 d
36701 :cont
36702 n
36703 s/.\{148\}/&'"$ac_delim"'/g
36704 t clear
36705 :clear
36706 s/\\$//
36707 t bsnlc
36708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36709 d
36710 :bsnlc
36711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36712 b cont
36713 ' <confdefs.h | sed '
36714 s/'"$ac_delim"'/"\\\
36715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36716
36717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36718   for (key in D) D_is_set[key] = 1
36719   FS = "\a"
36720 }
36721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36722   line = \$ 0
36723   split(line, arg, " ")
36724   if (arg[1] == "#") {
36725     defundef = arg[2]
36726     mac1 = arg[3]
36727   } else {
36728     defundef = substr(arg[1], 2)
36729     mac1 = arg[2]
36730   }
36731   split(mac1, mac2, "(") #)
36732   macro = mac2[1]
36733   prefix = substr(line, 1, index(line, defundef) - 1)
36734   if (D_is_set[macro]) {
36735     # Preserve the white space surrounding the "#".
36736     print prefix "define", macro P[macro] D[macro]
36737     next
36738   } else {
36739     # Replace #undef with comments.  This is necessary, for example,
36740     # in the case of _POSIX_SOURCE, which is predefined and required
36741     # on some systems where configure will not decide to define it.
36742     if (defundef == "undef") {
36743       print "/*", prefix defundef, macro, "*/"
36744       next
36745     }
36746   }
36747 }
36748 { print }
36749 _ACAWK
36750 _ACEOF
36751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36752   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36753 fi # test -n "$CONFIG_HEADERS"
36754
36755
36756 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
36757 shift
36758 for ac_tag
36759 do
36760   case $ac_tag in
36761   :[FHLC]) ac_mode=$ac_tag; continue;;
36762   esac
36763   case $ac_mode$ac_tag in
36764   :[FHL]*:*);;
36765   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36766   :[FH]-) ac_tag=-:-;;
36767   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36768   esac
36769   ac_save_IFS=$IFS
36770   IFS=:
36771   set x $ac_tag
36772   IFS=$ac_save_IFS
36773   shift
36774   ac_file=$1
36775   shift
36776
36777   case $ac_mode in
36778   :L) ac_source=$1;;
36779   :[FH])
36780     ac_file_inputs=
36781     for ac_f
36782     do
36783       case $ac_f in
36784       -) ac_f="$ac_tmp/stdin";;
36785       *) # Look for the file first in the build tree, then in the source tree
36786          # (if the path is not absolute).  The absolute path cannot be DOS-style,
36787          # because $ac_f cannot contain `:'.
36788          test -f "$ac_f" ||
36789            case $ac_f in
36790            [\\/$]*) false;;
36791            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36792            esac ||
36793            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36794       esac
36795       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36796       as_fn_append ac_file_inputs " '$ac_f'"
36797     done
36798
36799     # Let's still pretend it is `configure' which instantiates (i.e., don't
36800     # use $as_me), people would be surprised to read:
36801     #    /* config.h.  Generated by config.status.  */
36802     configure_input='Generated from '`
36803           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36804         `' by configure.'
36805     if test x"$ac_file" != x-; then
36806       configure_input="$ac_file.  $configure_input"
36807       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36808 $as_echo "$as_me: creating $ac_file" >&6;}
36809     fi
36810     # Neutralize special characters interpreted by sed in replacement strings.
36811     case $configure_input in #(
36812     *\&* | *\|* | *\\* )
36813        ac_sed_conf_input=`$as_echo "$configure_input" |
36814        sed 's/[\\\\&|]/\\\\&/g'`;; #(
36815     *) ac_sed_conf_input=$configure_input;;
36816     esac
36817
36818     case $ac_tag in
36819     *:-:* | *:-) cat >"$ac_tmp/stdin" \
36820       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36821     esac
36822     ;;
36823   esac
36824
36825   ac_dir=`$as_dirname -- "$ac_file" ||
36826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36827          X"$ac_file" : 'X\(//\)[^/]' \| \
36828          X"$ac_file" : 'X\(//\)$' \| \
36829          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36830 $as_echo X"$ac_file" |
36831     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36832             s//\1/
36833             q
36834           }
36835           /^X\(\/\/\)[^/].*/{
36836             s//\1/
36837             q
36838           }
36839           /^X\(\/\/\)$/{
36840             s//\1/
36841             q
36842           }
36843           /^X\(\/\).*/{
36844             s//\1/
36845             q
36846           }
36847           s/.*/./; q'`
36848   as_dir="$ac_dir"; as_fn_mkdir_p
36849   ac_builddir=.
36850
36851 case "$ac_dir" in
36852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36853 *)
36854   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36855   # A ".." for each directory in $ac_dir_suffix.
36856   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36857   case $ac_top_builddir_sub in
36858   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36859   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36860   esac ;;
36861 esac
36862 ac_abs_top_builddir=$ac_pwd
36863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36864 # for backward compatibility:
36865 ac_top_builddir=$ac_top_build_prefix
36866
36867 case $srcdir in
36868   .)  # We are building in place.
36869     ac_srcdir=.
36870     ac_top_srcdir=$ac_top_builddir_sub
36871     ac_abs_top_srcdir=$ac_pwd ;;
36872   [\\/]* | ?:[\\/]* )  # Absolute name.
36873     ac_srcdir=$srcdir$ac_dir_suffix;
36874     ac_top_srcdir=$srcdir
36875     ac_abs_top_srcdir=$srcdir ;;
36876   *) # Relative name.
36877     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36878     ac_top_srcdir=$ac_top_build_prefix$srcdir
36879     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36880 esac
36881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36882
36883
36884   case $ac_mode in
36885   :F)
36886   #
36887   # CONFIG_FILE
36888   #
36889
36890   case $INSTALL in
36891   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36892   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36893   esac
36894   ac_MKDIR_P=$MKDIR_P
36895   case $MKDIR_P in
36896   [\\/$]* | ?:[\\/]* ) ;;
36897   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36898   esac
36899 _ACEOF
36900
36901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36902 # If the template does not know about datarootdir, expand it.
36903 # FIXME: This hack should be removed a few years after 2.60.
36904 ac_datarootdir_hack=; ac_datarootdir_seen=
36905 ac_sed_dataroot='
36906 /datarootdir/ {
36907   p
36908   q
36909 }
36910 /@datadir@/p
36911 /@docdir@/p
36912 /@infodir@/p
36913 /@localedir@/p
36914 /@mandir@/p'
36915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36916 *datarootdir*) ac_datarootdir_seen=yes;;
36917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36918   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36919 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36920 _ACEOF
36921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36922   ac_datarootdir_hack='
36923   s&@datadir@&$datadir&g
36924   s&@docdir@&$docdir&g
36925   s&@infodir@&$infodir&g
36926   s&@localedir@&$localedir&g
36927   s&@mandir@&$mandir&g
36928   s&\\\${datarootdir}&$datarootdir&g' ;;
36929 esac
36930 _ACEOF
36931
36932 # Neutralize VPATH when `$srcdir' = `.'.
36933 # Shell code in configure.ac might set extrasub.
36934 # FIXME: do we really want to maintain this feature?
36935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36936 ac_sed_extra="$ac_vpsub
36937 $extrasub
36938 _ACEOF
36939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36940 :t
36941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36942 s|@configure_input@|$ac_sed_conf_input|;t t
36943 s&@top_builddir@&$ac_top_builddir_sub&;t t
36944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36945 s&@srcdir@&$ac_srcdir&;t t
36946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36947 s&@top_srcdir@&$ac_top_srcdir&;t t
36948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36949 s&@builddir@&$ac_builddir&;t t
36950 s&@abs_builddir@&$ac_abs_builddir&;t t
36951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36952 s&@INSTALL@&$ac_INSTALL&;t t
36953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36954 $ac_datarootdir_hack
36955 "
36956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36957   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36958
36959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36960   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36961   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
36962       "$ac_tmp/out"`; test -z "$ac_out"; } &&
36963   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36964 which seems to be undefined.  Please make sure it is defined" >&5
36965 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36966 which seems to be undefined.  Please make sure it is defined" >&2;}
36967
36968   rm -f "$ac_tmp/stdin"
36969   case $ac_file in
36970   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36971   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36972   esac \
36973   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36974  ;;
36975   :H)
36976   #
36977   # CONFIG_HEADER
36978   #
36979   if test x"$ac_file" != x-; then
36980     {
36981       $as_echo "/* $configure_input  */" \
36982       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36983     } >"$ac_tmp/config.h" \
36984       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36985     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36986       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36987 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36988     else
36989       rm -f "$ac_file"
36990       mv "$ac_tmp/config.h" "$ac_file" \
36991         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36992     fi
36993   else
36994     $as_echo "/* $configure_input  */" \
36995       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36996       || as_fn_error $? "could not create -" "$LINENO" 5
36997   fi
36998 # Compute "$ac_file"'s index in $config_headers.
36999 _am_arg="$ac_file"
37000 _am_stamp_count=1
37001 for _am_header in $config_headers :; do
37002   case $_am_header in
37003     $_am_arg | $_am_arg:* )
37004       break ;;
37005     * )
37006       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37007   esac
37008 done
37009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37011          X"$_am_arg" : 'X\(//\)[^/]' \| \
37012          X"$_am_arg" : 'X\(//\)$' \| \
37013          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37014 $as_echo X"$_am_arg" |
37015     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37016             s//\1/
37017             q
37018           }
37019           /^X\(\/\/\)[^/].*/{
37020             s//\1/
37021             q
37022           }
37023           /^X\(\/\/\)$/{
37024             s//\1/
37025             q
37026           }
37027           /^X\(\/\).*/{
37028             s//\1/
37029             q
37030           }
37031           s/.*/./; q'`/stamp-h$_am_stamp_count
37032  ;;
37033
37034   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37035 $as_echo "$as_me: executing $ac_file commands" >&6;}
37036  ;;
37037   esac
37038
37039
37040   case $ac_file$ac_mode in
37041     "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
37042 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37043 ac_prefix_conf_PKG=`echo MagickCore`
37044 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37045 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
37046 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37047 if test ".$ac_prefix_conf_INP" = "."; then
37048    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37049      case "$ac_file" in
37050         *.h) ac_prefix_conf_INP=$ac_file ;;
37051         *)
37052      esac
37053      test ".$ac_prefix_conf_INP" != "." && break
37054    done
37055 fi
37056 if test ".$ac_prefix_conf_INP" = "."; then
37057    case "$ac_prefix_conf_OUT" in
37058       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37059       ;;
37060       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37061       ;;
37062       *) ac_prefix_conf_INP=config.h
37063       ;;
37064    esac
37065 fi
37066 if test -z "$ac_prefix_conf_PKG" ; then
37067    as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
37068 else
37069   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37070      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37071   fi fi
37072   { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37073 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37074   if test -f $ac_prefix_conf_INP ; then
37075     $as_echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37076     $as_echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37077     $as_echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37078     $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37079     $as_echo "#endif/" >> conftest.prefix
37080     $as_echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37081     $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37082     $as_echo "#endif/" >> conftest.prefix
37083     # now executing _script on _DEF input to create _OUT output file
37084     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
37085     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37086     echo ' ' >>$tmp/pconfig.h
37087     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37088
37089     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37090     echo ' ' >>$tmp/pconfig.h
37091     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37092     echo "#endif" >>$tmp/pconfig.h
37093     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37094       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37095 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37096     else
37097       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37098 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37099          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37100          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37101          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37102 $as_echo X"$ac_prefix_conf_OUT" |
37103     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37104             s//\1/
37105             q
37106           }
37107           /^X\(\/\/\)[^/].*/{
37108             s//\1/
37109             q
37110           }
37111           /^X\(\/\/\)$/{
37112             s//\1/
37113             q
37114           }
37115           /^X\(\/\).*/{
37116             s//\1/
37117             q
37118           }
37119           s/.*/./; q'`
37120       as_dir="$ac_dir"; as_fn_mkdir_p
37121       rm -f "$ac_prefix_conf_OUT"
37122       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37123     fi
37124     cp conftest.prefix _configs.sed
37125   else
37126     as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
37127   fi
37128   rm -f conftest.*
37129 fi
37130  ;;
37131     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37132   # Autoconf 2.62 quotes --file arguments for eval, but not when files
37133   # are listed without --file.  Let's play safe and only enable the eval
37134   # if we detect the quoting.
37135   case $CONFIG_FILES in
37136   *\'*) eval set x "$CONFIG_FILES" ;;
37137   *)   set x $CONFIG_FILES ;;
37138   esac
37139   shift
37140   for mf
37141   do
37142     # Strip MF so we end up with the name of the file.
37143     mf=`echo "$mf" | sed -e 's/:.*$//'`
37144     # Check whether this is an Automake generated Makefile or not.
37145     # We used to match only the files named `Makefile.in', but
37146     # some people rename them; so instead we look at the file content.
37147     # Grep'ing the first line is not enough: some people post-process
37148     # each Makefile.in and add a new line on top of each file to say so.
37149     # Grep'ing the whole file is not good either: AIX grep has a line
37150     # limit of 2048, but all sed's we know have understand at least 4000.
37151     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37152       dirpart=`$as_dirname -- "$mf" ||
37153 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37154          X"$mf" : 'X\(//\)[^/]' \| \
37155          X"$mf" : 'X\(//\)$' \| \
37156          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37157 $as_echo X"$mf" |
37158     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37159             s//\1/
37160             q
37161           }
37162           /^X\(\/\/\)[^/].*/{
37163             s//\1/
37164             q
37165           }
37166           /^X\(\/\/\)$/{
37167             s//\1/
37168             q
37169           }
37170           /^X\(\/\).*/{
37171             s//\1/
37172             q
37173           }
37174           s/.*/./; q'`
37175     else
37176       continue
37177     fi
37178     # Extract the definition of DEPDIR, am__include, and am__quote
37179     # from the Makefile without running `make'.
37180     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37181     test -z "$DEPDIR" && continue
37182     am__include=`sed -n 's/^am__include = //p' < "$mf"`
37183     test -z "am__include" && continue
37184     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
37185     # When using ansi2knr, U may be empty or an underscore; expand it
37186     U=`sed -n 's/^U = //p' < "$mf"`
37187     # Find all dependency output files, they are included files with
37188     # $(DEPDIR) in their names.  We invoke sed twice because it is the
37189     # simplest approach to changing $(DEPDIR) to its actual value in the
37190     # expansion.
37191     for file in `sed -n "
37192       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37193          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
37194       # Make sure the directory exists.
37195       test -f "$dirpart/$file" && continue
37196       fdir=`$as_dirname -- "$file" ||
37197 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37198          X"$file" : 'X\(//\)[^/]' \| \
37199          X"$file" : 'X\(//\)$' \| \
37200          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37201 $as_echo X"$file" |
37202     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37203             s//\1/
37204             q
37205           }
37206           /^X\(\/\/\)[^/].*/{
37207             s//\1/
37208             q
37209           }
37210           /^X\(\/\/\)$/{
37211             s//\1/
37212             q
37213           }
37214           /^X\(\/\).*/{
37215             s//\1/
37216             q
37217           }
37218           s/.*/./; q'`
37219       as_dir=$dirpart/$fdir; as_fn_mkdir_p
37220       # echo "creating $dirpart/$file"
37221       echo '# dummy' > "$dirpart/$file"
37222     done
37223   done
37224 }
37225  ;;
37226     "libtool":C)
37227
37228     # See if we are running on zsh, and set the options which allow our
37229     # commands through without removal of \ escapes.
37230     if test -n "${ZSH_VERSION+set}" ; then
37231       setopt NO_GLOB_SUBST
37232     fi
37233
37234     cfgfile="${ofile}T"
37235     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37236     $RM "$cfgfile"
37237
37238     cat <<_LT_EOF >> "$cfgfile"
37239 #! $SHELL
37240
37241 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37242 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37243 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37244 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37245 #
37246 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
37247 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
37248 #                 Inc.
37249 #   Written by Gordon Matzigkeit, 1996
37250 #
37251 #   This file is part of GNU Libtool.
37252 #
37253 # GNU Libtool is free software; you can redistribute it and/or
37254 # modify it under the terms of the GNU General Public License as
37255 # published by the Free Software Foundation; either version 2 of
37256 # the License, or (at your option) any later version.
37257 #
37258 # As a special exception to the GNU General Public License,
37259 # if you distribute this file as part of a program or library that
37260 # is built using GNU Libtool, you may include this file under the
37261 # same distribution terms that you use for the rest of that program.
37262 #
37263 # GNU Libtool is distributed in the hope that it will be useful,
37264 # but WITHOUT ANY WARRANTY; without even the implied warranty of
37265 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
37266 # GNU General Public License for more details.
37267 #
37268 # You should have received a copy of the GNU General Public License
37269 # along with GNU Libtool; see the file COPYING.  If not, a copy
37270 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37271 # obtained by writing to the Free Software Foundation, Inc.,
37272 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37273
37274
37275 # The names of the tagged configurations supported by this script.
37276 available_tags="CXX "
37277
37278 # ### BEGIN LIBTOOL CONFIG
37279
37280 # A sed program that does not truncate output.
37281 SED=$lt_SED
37282
37283 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
37284 Xsed="\$SED -e 1s/^X//"
37285
37286 # A grep program that handles long lines.
37287 GREP=$lt_GREP
37288
37289 # An ERE matcher.
37290 EGREP=$lt_EGREP
37291
37292 # A literal string matcher.
37293 FGREP=$lt_FGREP
37294
37295 # Shell to use when invoking shell scripts.
37296 SHELL=$lt_SHELL
37297
37298 # An echo program that protects backslashes.
37299 ECHO=$lt_ECHO
37300
37301 # Which release of libtool.m4 was used?
37302 macro_version=$macro_version
37303 macro_revision=$macro_revision
37304
37305 # Assembler program.
37306 AS=$lt_AS
37307
37308 # DLL creation program.
37309 DLLTOOL=$lt_DLLTOOL
37310
37311 # Object dumper program.
37312 OBJDUMP=$lt_OBJDUMP
37313
37314 # Whether or not to build shared libraries.
37315 build_libtool_libs=$enable_shared
37316
37317 # Whether or not to build static libraries.
37318 build_old_libs=$enable_static
37319
37320 # What type of objects to build.
37321 pic_mode=$pic_mode
37322
37323 # Whether or not to optimize for fast installation.
37324 fast_install=$enable_fast_install
37325
37326 # The host system.
37327 host_alias=$host_alias
37328 host=$host
37329 host_os=$host_os
37330
37331 # The build system.
37332 build_alias=$build_alias
37333 build=$build
37334 build_os=$build_os
37335
37336 # A BSD- or MS-compatible name lister.
37337 NM=$lt_NM
37338
37339 # Whether we need soft or hard links.
37340 LN_S=$lt_LN_S
37341
37342 # What is the maximum length of a command?
37343 max_cmd_len=$max_cmd_len
37344
37345 # Object file suffix (normally "o").
37346 objext=$ac_objext
37347
37348 # Executable file suffix (normally "").
37349 exeext=$exeext
37350
37351 # whether the shell understands "unset".
37352 lt_unset=$lt_unset
37353
37354 # turn spaces into newlines.
37355 SP2NL=$lt_lt_SP2NL
37356
37357 # turn newlines into spaces.
37358 NL2SP=$lt_lt_NL2SP
37359
37360 # convert \$build file names to \$host format.
37361 to_host_file_cmd=$lt_cv_to_host_file_cmd
37362
37363 # convert \$build files to toolchain format.
37364 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37365
37366 # Method to check whether dependent libraries are shared objects.
37367 deplibs_check_method=$lt_deplibs_check_method
37368
37369 # Command to use when deplibs_check_method = "file_magic".
37370 file_magic_cmd=$lt_file_magic_cmd
37371
37372 # How to find potential files when deplibs_check_method = "file_magic".
37373 file_magic_glob=$lt_file_magic_glob
37374
37375 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37376 want_nocaseglob=$lt_want_nocaseglob
37377
37378 # Command to associate shared and link libraries.
37379 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37380
37381 # The archiver.
37382 AR=$lt_AR
37383
37384 # Flags to create an archive.
37385 AR_FLAGS=$lt_AR_FLAGS
37386
37387 # How to feed a file listing to the archiver.
37388 archiver_list_spec=$lt_archiver_list_spec
37389
37390 # A symbol stripping program.
37391 STRIP=$lt_STRIP
37392
37393 # Commands used to install an old-style archive.
37394 RANLIB=$lt_RANLIB
37395 old_postinstall_cmds=$lt_old_postinstall_cmds
37396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
37397
37398 # Whether to use a lock for old archive extraction.
37399 lock_old_archive_extraction=$lock_old_archive_extraction
37400
37401 # A C compiler.
37402 LTCC=$lt_CC
37403
37404 # LTCC compiler flags.
37405 LTCFLAGS=$lt_CFLAGS
37406
37407 # Take the output of nm and produce a listing of raw symbols and C names.
37408 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37409
37410 # Transform the output of nm in a proper C declaration.
37411 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37412
37413 # Transform the output of nm in a C name address pair.
37414 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37415
37416 # Transform the output of nm in a C name address pair when lib prefix is needed.
37417 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37418
37419 # Specify filename containing input files for \$NM.
37420 nm_file_list_spec=$lt_nm_file_list_spec
37421
37422 # The root where to search for dependent libraries,and in which our libraries should be installed.
37423 lt_sysroot=$lt_sysroot
37424
37425 # The name of the directory that contains temporary libtool files.
37426 objdir=$objdir
37427
37428 # Used to examine libraries when file_magic_cmd begins with "file".
37429 MAGIC_CMD=$MAGIC_CMD
37430
37431 # Must we lock files when doing compilation?
37432 need_locks=$lt_need_locks
37433
37434 # Manifest tool.
37435 MANIFEST_TOOL=$lt_MANIFEST_TOOL
37436
37437 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37438 DSYMUTIL=$lt_DSYMUTIL
37439
37440 # Tool to change global to local symbols on Mac OS X.
37441 NMEDIT=$lt_NMEDIT
37442
37443 # Tool to manipulate fat objects and archives on Mac OS X.
37444 LIPO=$lt_LIPO
37445
37446 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
37447 OTOOL=$lt_OTOOL
37448
37449 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37450 OTOOL64=$lt_OTOOL64
37451
37452 # Old archive suffix (normally "a").
37453 libext=$libext
37454
37455 # Shared library suffix (normally ".so").
37456 shrext_cmds=$lt_shrext_cmds
37457
37458 # The commands to extract the exported symbol list from a shared archive.
37459 extract_expsyms_cmds=$lt_extract_expsyms_cmds
37460
37461 # Variables whose values should be saved in libtool wrapper scripts and
37462 # restored at link time.
37463 variables_saved_for_relink=$lt_variables_saved_for_relink
37464
37465 # Do we need the "lib" prefix for modules?
37466 need_lib_prefix=$need_lib_prefix
37467
37468 # Do we need a version for libraries?
37469 need_version=$need_version
37470
37471 # Library versioning type.
37472 version_type=$version_type
37473
37474 # Shared library runtime path variable.
37475 runpath_var=$runpath_var
37476
37477 # Shared library path variable.
37478 shlibpath_var=$shlibpath_var
37479
37480 # Is shlibpath searched before the hard-coded library search path?
37481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37482
37483 # Format of library name prefix.
37484 libname_spec=$lt_libname_spec
37485
37486 # List of archive names.  First name is the real one, the rest are links.
37487 # The last name is the one that the linker finds with -lNAME
37488 library_names_spec=$lt_library_names_spec
37489
37490 # The coded name of the library, if different from the real name.
37491 soname_spec=$lt_soname_spec
37492
37493 # Permission mode override for installation of shared libraries.
37494 install_override_mode=$lt_install_override_mode
37495
37496 # Command to use after installation of a shared archive.
37497 postinstall_cmds=$lt_postinstall_cmds
37498
37499 # Command to use after uninstallation of a shared archive.
37500 postuninstall_cmds=$lt_postuninstall_cmds
37501
37502 # Commands used to finish a libtool library installation in a directory.
37503 finish_cmds=$lt_finish_cmds
37504
37505 # As "finish_cmds", except a single script fragment to be evaled but
37506 # not shown.
37507 finish_eval=$lt_finish_eval
37508
37509 # Whether we should hardcode library paths into libraries.
37510 hardcode_into_libs=$hardcode_into_libs
37511
37512 # Compile-time system search path for libraries.
37513 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37514
37515 # Run-time system search path for libraries.
37516 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37517
37518 # Whether dlopen is supported.
37519 dlopen_support=$enable_dlopen
37520
37521 # Whether dlopen of programs is supported.
37522 dlopen_self=$enable_dlopen_self
37523
37524 # Whether dlopen of statically linked programs is supported.
37525 dlopen_self_static=$enable_dlopen_self_static
37526
37527 # Commands to strip libraries.
37528 old_striplib=$lt_old_striplib
37529 striplib=$lt_striplib
37530
37531
37532 # The linker used to build libraries.
37533 LD=$lt_LD
37534
37535 # How to create reloadable object files.
37536 reload_flag=$lt_reload_flag
37537 reload_cmds=$lt_reload_cmds
37538
37539 # Commands used to build an old-style archive.
37540 old_archive_cmds=$lt_old_archive_cmds
37541
37542 # A language specific compiler.
37543 CC=$lt_compiler
37544
37545 # Is the compiler the GNU compiler?
37546 with_gcc=$GCC
37547
37548 # Compiler flag to turn off builtin functions.
37549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37550
37551 # Additional compiler flags for building library objects.
37552 pic_flag=$lt_lt_prog_compiler_pic
37553
37554 # How to pass a linker flag through the compiler.
37555 wl=$lt_lt_prog_compiler_wl
37556
37557 # Compiler flag to prevent dynamic linking.
37558 link_static_flag=$lt_lt_prog_compiler_static
37559
37560 # Does compiler simultaneously support -c and -o options?
37561 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37562
37563 # Whether or not to add -lc for building shared libraries.
37564 build_libtool_need_lc=$archive_cmds_need_lc
37565
37566 # Whether or not to disallow shared libs when runtime libs are static.
37567 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37568
37569 # Compiler flag to allow reflexive dlopens.
37570 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37571
37572 # Compiler flag to generate shared objects directly from archives.
37573 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37574
37575 # Whether the compiler copes with passing no objects directly.
37576 compiler_needs_object=$lt_compiler_needs_object
37577
37578 # Create an old-style archive from a shared archive.
37579 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37580
37581 # Create a temporary old-style archive to link instead of a shared archive.
37582 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37583
37584 # Commands used to build a shared archive.
37585 archive_cmds=$lt_archive_cmds
37586 archive_expsym_cmds=$lt_archive_expsym_cmds
37587
37588 # Commands used to build a loadable module if different from building
37589 # a shared archive.
37590 module_cmds=$lt_module_cmds
37591 module_expsym_cmds=$lt_module_expsym_cmds
37592
37593 # Whether we are building with GNU ld or not.
37594 with_gnu_ld=$lt_with_gnu_ld
37595
37596 # Flag that allows shared libraries with undefined symbols to be built.
37597 allow_undefined_flag=$lt_allow_undefined_flag
37598
37599 # Flag that enforces no undefined symbols.
37600 no_undefined_flag=$lt_no_undefined_flag
37601
37602 # Flag to hardcode \$libdir into a binary during linking.
37603 # This must work even if \$libdir does not exist
37604 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37605
37606 # If ld is used when linking, flag to hardcode \$libdir into a binary
37607 # during linking.  This must work even if \$libdir does not exist.
37608 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37609
37610 # Whether we need a single "-rpath" flag with a separated argument.
37611 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37612
37613 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37614 # DIR into the resulting binary.
37615 hardcode_direct=$hardcode_direct
37616
37617 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37618 # DIR into the resulting binary and the resulting library dependency is
37619 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37620 # library is relocated.
37621 hardcode_direct_absolute=$hardcode_direct_absolute
37622
37623 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37624 # into the resulting binary.
37625 hardcode_minus_L=$hardcode_minus_L
37626
37627 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37628 # into the resulting binary.
37629 hardcode_shlibpath_var=$hardcode_shlibpath_var
37630
37631 # Set to "yes" if building a shared library automatically hardcodes DIR
37632 # into the library and all subsequent libraries and executables linked
37633 # against it.
37634 hardcode_automatic=$hardcode_automatic
37635
37636 # Set to yes if linker adds runtime paths of dependent libraries
37637 # to runtime path list.
37638 inherit_rpath=$inherit_rpath
37639
37640 # Whether libtool must link a program against all its dependency libraries.
37641 link_all_deplibs=$link_all_deplibs
37642
37643 # Set to "yes" if exported symbols are required.
37644 always_export_symbols=$always_export_symbols
37645
37646 # The commands to list exported symbols.
37647 export_symbols_cmds=$lt_export_symbols_cmds
37648
37649 # Symbols that should not be listed in the preloaded symbols.
37650 exclude_expsyms=$lt_exclude_expsyms
37651
37652 # Symbols that must always be exported.
37653 include_expsyms=$lt_include_expsyms
37654
37655 # Commands necessary for linking programs (against libraries) with templates.
37656 prelink_cmds=$lt_prelink_cmds
37657
37658 # Commands necessary for finishing linking programs.
37659 postlink_cmds=$lt_postlink_cmds
37660
37661 # Specify filename containing input files.
37662 file_list_spec=$lt_file_list_spec
37663
37664 # How to hardcode a shared library path into an executable.
37665 hardcode_action=$hardcode_action
37666
37667 # The directories searched by this compiler when creating a shared library.
37668 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37669
37670 # Dependencies to place before and after the objects being linked to
37671 # create a shared library.
37672 predep_objects=$lt_predep_objects
37673 postdep_objects=$lt_postdep_objects
37674 predeps=$lt_predeps
37675 postdeps=$lt_postdeps
37676
37677 # The library search path used internally by the compiler when linking
37678 # a shared library.
37679 compiler_lib_search_path=$lt_compiler_lib_search_path
37680
37681 # ### END LIBTOOL CONFIG
37682
37683 _LT_EOF
37684
37685   case $host_os in
37686   aix3*)
37687     cat <<\_LT_EOF >> "$cfgfile"
37688 # AIX sometimes has problems with the GCC collect2 program.  For some
37689 # reason, if we set the COLLECT_NAMES environment variable, the problems
37690 # vanish in a puff of smoke.
37691 if test "X${COLLECT_NAMES+set}" != Xset; then
37692   COLLECT_NAMES=
37693   export COLLECT_NAMES
37694 fi
37695 _LT_EOF
37696     ;;
37697   esac
37698
37699
37700 ltmain="$ac_aux_dir/ltmain.sh"
37701
37702
37703   # We use sed instead of cat because bash on DJGPP gets confused if
37704   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
37705   # text mode, it properly converts lines to CR/LF.  This bash problem
37706   # is reportedly fixed, but why not run on old versions too?
37707   sed '$q' "$ltmain" >> "$cfgfile" \
37708      || (rm -f "$cfgfile"; exit 1)
37709
37710   if test x"$xsi_shell" = xyes; then
37711   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37712 func_dirname ()\
37713 {\
37714 \    case ${1} in\
37715 \      */*) func_dirname_result="${1%/*}${2}" ;;\
37716 \      *  ) func_dirname_result="${3}" ;;\
37717 \    esac\
37718 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37719   && mv -f "$cfgfile.tmp" "$cfgfile" \
37720     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37721 test 0 -eq $? || _lt_function_replace_fail=:
37722
37723
37724   sed -e '/^func_basename ()$/,/^} # func_basename /c\
37725 func_basename ()\
37726 {\
37727 \    func_basename_result="${1##*/}"\
37728 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37729   && mv -f "$cfgfile.tmp" "$cfgfile" \
37730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37731 test 0 -eq $? || _lt_function_replace_fail=:
37732
37733
37734   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37735 func_dirname_and_basename ()\
37736 {\
37737 \    case ${1} in\
37738 \      */*) func_dirname_result="${1%/*}${2}" ;;\
37739 \      *  ) func_dirname_result="${3}" ;;\
37740 \    esac\
37741 \    func_basename_result="${1##*/}"\
37742 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37743   && mv -f "$cfgfile.tmp" "$cfgfile" \
37744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37745 test 0 -eq $? || _lt_function_replace_fail=:
37746
37747
37748   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37749 func_stripname ()\
37750 {\
37751 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37752 \    # positional parameters, so assign one to ordinary parameter first.\
37753 \    func_stripname_result=${3}\
37754 \    func_stripname_result=${func_stripname_result#"${1}"}\
37755 \    func_stripname_result=${func_stripname_result%"${2}"}\
37756 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37757   && mv -f "$cfgfile.tmp" "$cfgfile" \
37758     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37759 test 0 -eq $? || _lt_function_replace_fail=:
37760
37761
37762   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37763 func_split_long_opt ()\
37764 {\
37765 \    func_split_long_opt_name=${1%%=*}\
37766 \    func_split_long_opt_arg=${1#*=}\
37767 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37768   && mv -f "$cfgfile.tmp" "$cfgfile" \
37769     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37770 test 0 -eq $? || _lt_function_replace_fail=:
37771
37772
37773   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37774 func_split_short_opt ()\
37775 {\
37776 \    func_split_short_opt_arg=${1#??}\
37777 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37778 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37779   && mv -f "$cfgfile.tmp" "$cfgfile" \
37780     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37781 test 0 -eq $? || _lt_function_replace_fail=:
37782
37783
37784   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37785 func_lo2o ()\
37786 {\
37787 \    case ${1} in\
37788 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37789 \      *)    func_lo2o_result=${1} ;;\
37790 \    esac\
37791 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37792   && mv -f "$cfgfile.tmp" "$cfgfile" \
37793     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37794 test 0 -eq $? || _lt_function_replace_fail=:
37795
37796
37797   sed -e '/^func_xform ()$/,/^} # func_xform /c\
37798 func_xform ()\
37799 {\
37800     func_xform_result=${1%.*}.lo\
37801 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37802   && mv -f "$cfgfile.tmp" "$cfgfile" \
37803     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37804 test 0 -eq $? || _lt_function_replace_fail=:
37805
37806
37807   sed -e '/^func_arith ()$/,/^} # func_arith /c\
37808 func_arith ()\
37809 {\
37810     func_arith_result=$(( $* ))\
37811 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37812   && mv -f "$cfgfile.tmp" "$cfgfile" \
37813     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37814 test 0 -eq $? || _lt_function_replace_fail=:
37815
37816
37817   sed -e '/^func_len ()$/,/^} # func_len /c\
37818 func_len ()\
37819 {\
37820     func_len_result=${#1}\
37821 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37822   && mv -f "$cfgfile.tmp" "$cfgfile" \
37823     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37824 test 0 -eq $? || _lt_function_replace_fail=:
37825
37826 fi
37827
37828 if test x"$lt_shell_append" = xyes; then
37829   sed -e '/^func_append ()$/,/^} # func_append /c\
37830 func_append ()\
37831 {\
37832     eval "${1}+=\\${2}"\
37833 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37834   && mv -f "$cfgfile.tmp" "$cfgfile" \
37835     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37836 test 0 -eq $? || _lt_function_replace_fail=:
37837
37838
37839   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37840 func_append_quoted ()\
37841 {\
37842 \    func_quote_for_eval "${2}"\
37843 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37844 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37845   && mv -f "$cfgfile.tmp" "$cfgfile" \
37846     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37847 test 0 -eq $? || _lt_function_replace_fail=:
37848
37849
37850   # Save a `func_append' function call where possible by direct use of '+='
37851   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37852     && mv -f "$cfgfile.tmp" "$cfgfile" \
37853       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37854   test 0 -eq $? || _lt_function_replace_fail=:
37855 else
37856   # Save a `func_append' function call even when '+=' is not available
37857   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37858     && mv -f "$cfgfile.tmp" "$cfgfile" \
37859       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37860   test 0 -eq $? || _lt_function_replace_fail=:
37861 fi
37862
37863 if test x"$_lt_function_replace_fail" = x":"; then
37864   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37865 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37866 fi
37867
37868
37869    mv -f "$cfgfile" "$ofile" ||
37870     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37871   chmod +x "$ofile"
37872
37873
37874     cat <<_LT_EOF >> "$ofile"
37875
37876 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37877
37878 # The linker used to build libraries.
37879 LD=$lt_LD_CXX
37880
37881 # How to create reloadable object files.
37882 reload_flag=$lt_reload_flag_CXX
37883 reload_cmds=$lt_reload_cmds_CXX
37884
37885 # Commands used to build an old-style archive.
37886 old_archive_cmds=$lt_old_archive_cmds_CXX
37887
37888 # A language specific compiler.
37889 CC=$lt_compiler_CXX
37890
37891 # Is the compiler the GNU compiler?
37892 with_gcc=$GCC_CXX
37893
37894 # Compiler flag to turn off builtin functions.
37895 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37896
37897 # Additional compiler flags for building library objects.
37898 pic_flag=$lt_lt_prog_compiler_pic_CXX
37899
37900 # How to pass a linker flag through the compiler.
37901 wl=$lt_lt_prog_compiler_wl_CXX
37902
37903 # Compiler flag to prevent dynamic linking.
37904 link_static_flag=$lt_lt_prog_compiler_static_CXX
37905
37906 # Does compiler simultaneously support -c and -o options?
37907 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37908
37909 # Whether or not to add -lc for building shared libraries.
37910 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37911
37912 # Whether or not to disallow shared libs when runtime libs are static.
37913 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37914
37915 # Compiler flag to allow reflexive dlopens.
37916 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37917
37918 # Compiler flag to generate shared objects directly from archives.
37919 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37920
37921 # Whether the compiler copes with passing no objects directly.
37922 compiler_needs_object=$lt_compiler_needs_object_CXX
37923
37924 # Create an old-style archive from a shared archive.
37925 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37926
37927 # Create a temporary old-style archive to link instead of a shared archive.
37928 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37929
37930 # Commands used to build a shared archive.
37931 archive_cmds=$lt_archive_cmds_CXX
37932 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37933
37934 # Commands used to build a loadable module if different from building
37935 # a shared archive.
37936 module_cmds=$lt_module_cmds_CXX
37937 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37938
37939 # Whether we are building with GNU ld or not.
37940 with_gnu_ld=$lt_with_gnu_ld_CXX
37941
37942 # Flag that allows shared libraries with undefined symbols to be built.
37943 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37944
37945 # Flag that enforces no undefined symbols.
37946 no_undefined_flag=$lt_no_undefined_flag_CXX
37947
37948 # Flag to hardcode \$libdir into a binary during linking.
37949 # This must work even if \$libdir does not exist
37950 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37951
37952 # If ld is used when linking, flag to hardcode \$libdir into a binary
37953 # during linking.  This must work even if \$libdir does not exist.
37954 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37955
37956 # Whether we need a single "-rpath" flag with a separated argument.
37957 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37958
37959 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37960 # DIR into the resulting binary.
37961 hardcode_direct=$hardcode_direct_CXX
37962
37963 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37964 # DIR into the resulting binary and the resulting library dependency is
37965 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37966 # library is relocated.
37967 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37968
37969 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37970 # into the resulting binary.
37971 hardcode_minus_L=$hardcode_minus_L_CXX
37972
37973 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37974 # into the resulting binary.
37975 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37976
37977 # Set to "yes" if building a shared library automatically hardcodes DIR
37978 # into the library and all subsequent libraries and executables linked
37979 # against it.
37980 hardcode_automatic=$hardcode_automatic_CXX
37981
37982 # Set to yes if linker adds runtime paths of dependent libraries
37983 # to runtime path list.
37984 inherit_rpath=$inherit_rpath_CXX
37985
37986 # Whether libtool must link a program against all its dependency libraries.
37987 link_all_deplibs=$link_all_deplibs_CXX
37988
37989 # Set to "yes" if exported symbols are required.
37990 always_export_symbols=$always_export_symbols_CXX
37991
37992 # The commands to list exported symbols.
37993 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37994
37995 # Symbols that should not be listed in the preloaded symbols.
37996 exclude_expsyms=$lt_exclude_expsyms_CXX
37997
37998 # Symbols that must always be exported.
37999 include_expsyms=$lt_include_expsyms_CXX
38000
38001 # Commands necessary for linking programs (against libraries) with templates.
38002 prelink_cmds=$lt_prelink_cmds_CXX
38003
38004 # Commands necessary for finishing linking programs.
38005 postlink_cmds=$lt_postlink_cmds_CXX
38006
38007 # Specify filename containing input files.
38008 file_list_spec=$lt_file_list_spec_CXX
38009
38010 # How to hardcode a shared library path into an executable.
38011 hardcode_action=$hardcode_action_CXX
38012
38013 # The directories searched by this compiler when creating a shared library.
38014 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38015
38016 # Dependencies to place before and after the objects being linked to
38017 # create a shared library.
38018 predep_objects=$lt_predep_objects_CXX
38019 postdep_objects=$lt_postdep_objects_CXX
38020 predeps=$lt_predeps_CXX
38021 postdeps=$lt_postdeps_CXX
38022
38023 # The library search path used internally by the compiler when linking
38024 # a shared library.
38025 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38026
38027 # ### END LIBTOOL TAG CONFIG: CXX
38028 _LT_EOF
38029
38030  ;;
38031     "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
38032     "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
38033     "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38034     "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38035
38036   esac
38037 done # for ac_tag
38038
38039
38040 as_fn_exit 0
38041 _ACEOF
38042 ac_clean_files=$ac_clean_files_save
38043
38044 test $ac_write_fail = 0 ||
38045   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
38046
38047
38048 # configure is writing to config.log, and then calls config.status.
38049 # config.status does its own redirection, appending to config.log.
38050 # Unfortunately, on DOS this fails, as config.log is still kept open
38051 # by configure, so config.status won't be able to write to it; its
38052 # output is simply discarded.  So we exec the FD to /dev/null,
38053 # effectively closing config.log, so it can be properly (re)opened and
38054 # appended to by config.status.  When coming back to configure, we
38055 # need to make the FD available again.
38056 if test "$no_create" != yes; then
38057   ac_cs_success=:
38058   ac_config_status_args=
38059   test "$silent" = yes &&
38060     ac_config_status_args="$ac_config_status_args --quiet"
38061   exec 5>/dev/null
38062   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38063   exec 5>>config.log
38064   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38065   # would make configure fail if this is the last instruction.
38066   $ac_cs_success || as_fn_exit 1
38067 fi
38068 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
38069   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38070 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38071 fi
38072
38073
38074 rm -f magick-version
38075
38076 result_dejavu_font_dir='none'
38077 if test "${dejavu_font_dir}x" != 'x'; then
38078     result_dejavu_font_dir=$dejavu_font_dir
38079 fi
38080
38081 result_ghostscript_font_dir='none'
38082 if test "${ghostscript_font_dir}x" != 'x'; then
38083     result_ghostscript_font_dir=$ghostscript_font_dir
38084 fi
38085
38086 result_windows_font_dir='none'
38087 if test "${windows_font_dir}x" != 'x'; then
38088     result_windows_font_dir=${windows_font_dir}
38089 fi
38090
38091 { $as_echo "$as_me:${as_lineno-$LINENO}:
38092 ImageMagick is configured as follows. Please verify that this configuration
38093 matches your expectations.
38094
38095 Host system type: $host
38096 Build system type: $build
38097
38098                   Option                        Value
38099 -------------------------------------------------------------------------------
38100 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
38101 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
38102 Module support    --with-modules=$with_modules          $with_modules
38103 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
38104 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
38105 High Dynamic Range Imagery
38106                   --enable-hdri=$enable_hdri            $enable_hdri
38107
38108 Delegate Configuration:
38109 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
38110 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
38111 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
38112 DJVU              --with-djvu=$with_djvu                $have_djvu
38113 DPS               --with-dps=$with_dps          $have_dps
38114 FFTW              --with-fftw=$with_fftw                $have_fftw
38115 FlashPIX          --with-fpx=$with_fpx          $have_fpx
38116 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
38117 FreeType          --with-freetype=$with_freetype                $have_freetype
38118 GhostPCL          None                          $PCLDelegate ($PCLVersion)
38119 GhostXPS          None                          $XPSDelegate ($XPSVersion)
38120 Ghostscript       None                          $PSDelegate ($GSVersion)
38121 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
38122 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
38123 Graphviz          --with-gvc=$with_gvc          $have_gvc
38124 JBIG              --with-jbig=$with_jbig                $have_jbig
38125 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
38126 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
38127 LCMS v1           --with-lcms=$with_lcms                $have_lcms
38128 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
38129 LQR               --with-lqr=$with_lqr          $have_lqr
38130 LZMA              --with-lzma=$with_lzma                $have_lzma
38131 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
38132 OpenEXR           --with-openexr=$with_openexr          $have_openexr
38133 PANGO             --with-pango=$with_pango              $have_pango
38134 PERL              --with-perl=$with_perl                $have_perl
38135 PNG               --with-png=$with_png          $have_png
38136 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
38137 TIFF              --with-tiff=$with_tiff                $have_tiff
38138 WEBP              --with-webp=$with_webp                $have_webp
38139 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
38140 WMF               --with-wmf=$with_wmf          $have_wmf
38141 X11               --with-x=$with_x                      $have_x
38142 XML               --with-xml=$with_xml          $have_xml
38143 ZLIB              --with-zlib=$with_zlib                $have_zlib
38144
38145 X11 Configuration:
38146       X_CFLAGS        = $X_CFLAGS
38147       X_PRE_LIBS      = $X_PRE_LIBS
38148       X_LIBS          = $X_LIBS
38149       X_EXTRA_LIBS    = $X_EXTRA_LIBS
38150
38151 Options used to compile and link:
38152   PREFIX          = $PREFIX_DIR
38153   EXEC-PREFIX     = $EXEC_PREFIX_DIR
38154   VERSION         = $PACKAGE_VERSION
38155   CC              = $CC
38156   CFLAGS          = $CFLAGS
38157   CPPFLAGS        = $MAGICK_CPPFLAGS
38158   PCFLAGS         = $MAGICK_PCFLAGS
38159   DEFS            = $DEFS
38160   LDFLAGS         = $LDFLAGS
38161   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38162   LIBS            = $MAGICK_LIBS
38163   CXX             = $CXX
38164   CXXFLAGS        = $CXXFLAGS
38165   FEATURES        = $MAGICK_FEATURES
38166 " >&5
38167 $as_echo "$as_me:
38168 ImageMagick is configured as follows. Please verify that this configuration
38169 matches your expectations.
38170
38171 Host system type: $host
38172 Build system type: $build
38173
38174                   Option                        Value
38175 -------------------------------------------------------------------------------
38176 Shared libraries  --enable-shared=$enable_shared                $libtool_build_shared_libs
38177 Static libraries  --enable-static=$enable_static                $libtool_build_static_libs
38178 Module support    --with-modules=$with_modules          $with_modules
38179 GNU ld            --with-gnu-ld=$with_gnu_ld            $lt_cv_prog_gnu_ld
38180 Quantum depth     --with-quantum-depth=$with_quantum_depth      $with_quantum_depth
38181 High Dynamic Range Imagery
38182                   --enable-hdri=$enable_hdri            $enable_hdri
38183
38184 Delegate Configuration:
38185 BZLIB             --with-bzlib=$with_bzlib              $have_bzlib
38186 Autotrace         --with-autotrace=$with_autotrace              $have_autotrace
38187 Dejavu fonts      --with-dejavu-font-dir=$with_dejavu_font_dir  $result_dejavu_font_dir
38188 DJVU              --with-djvu=$with_djvu                $have_djvu
38189 DPS               --with-dps=$with_dps          $have_dps
38190 FFTW              --with-fftw=$with_fftw                $have_fftw
38191 FlashPIX          --with-fpx=$with_fpx          $have_fpx
38192 FontConfig        --with-fontconfig=$with_fontconfig            $have_fontconfig
38193 FreeType          --with-freetype=$with_freetype                $have_freetype
38194 GhostPCL          None                          $PCLDelegate ($PCLVersion)
38195 GhostXPS          None                          $XPSDelegate ($XPSVersion)
38196 Ghostscript       None                          $PSDelegate ($GSVersion)
38197 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir  $result_ghostscript_font_dir
38198 Ghostscript lib   --with-gslib=$with_gslib              $have_gslib
38199 Graphviz          --with-gvc=$with_gvc          $have_gvc
38200 JBIG              --with-jbig=$with_jbig                $have_jbig
38201 JPEG v1           --with-jpeg=$with_jpeg                $have_jpeg
38202 JPEG-2000         --with-jp2=$with_jp2          $have_jp2
38203 LCMS v1           --with-lcms=$with_lcms                $have_lcms
38204 LCMS v2           --with-lcms2=$with_lcms2              $have_lcms2
38205 LQR               --with-lqr=$with_lqr          $have_lqr
38206 LZMA              --with-lzma=$with_lzma                $have_lzma
38207 Magick++          --with-magick-plus-plus=$with_magick_plus_plus        $have_magick_plus_plus
38208 OpenEXR           --with-openexr=$with_openexr          $have_openexr
38209 PANGO             --with-pango=$with_pango              $have_pango
38210 PERL              --with-perl=$with_perl                $have_perl
38211 PNG               --with-png=$with_png          $have_png
38212 RSVG              --with-rsvg=$with_rsvg                $have_rsvg
38213 TIFF              --with-tiff=$with_tiff                $have_tiff
38214 WEBP              --with-webp=$with_webp                $have_webp
38215 Windows fonts     --with-windows-font-dir=$with_windows_font_dir        $result_windows_font_dir
38216 WMF               --with-wmf=$with_wmf          $have_wmf
38217 X11               --with-x=$with_x                      $have_x
38218 XML               --with-xml=$with_xml          $have_xml
38219 ZLIB              --with-zlib=$with_zlib                $have_zlib
38220
38221 X11 Configuration:
38222       X_CFLAGS        = $X_CFLAGS
38223       X_PRE_LIBS      = $X_PRE_LIBS
38224       X_LIBS          = $X_LIBS
38225       X_EXTRA_LIBS    = $X_EXTRA_LIBS
38226
38227 Options used to compile and link:
38228   PREFIX          = $PREFIX_DIR
38229   EXEC-PREFIX     = $EXEC_PREFIX_DIR
38230   VERSION         = $PACKAGE_VERSION
38231   CC              = $CC
38232   CFLAGS          = $CFLAGS
38233   CPPFLAGS        = $MAGICK_CPPFLAGS
38234   PCFLAGS         = $MAGICK_PCFLAGS
38235   DEFS            = $DEFS
38236   LDFLAGS         = $LDFLAGS
38237   MAGICK_LDFLAGS  = $MAGICK_LDFLAGS
38238   LIBS            = $MAGICK_LIBS
38239   CXX             = $CXX
38240   CXXFLAGS        = $CXXFLAGS
38241   FEATURES        = $MAGICK_FEATURES
38242 " >&6;}